From 8adbb1ea4e39a5914192d5ffb328bf0c68c921df Mon Sep 17 00:00:00 2001 From: Ampersand Ops Date: Wed, 16 Sep 2026 19:51:34 +0000 Subject: [PATCH] [auto] Update openapi to e63cefb05e32f7b7bb47e6564a4694d7cf27b661 --- .../api/.openapi-generator/FILES | 1 + .../api/src/models/BaseSubscribeConfig.ts | 14 ++++ .../api/src/models/SubscribeConfig.ts | 14 ++++ .../SubscribeInstallationProviderOptions.ts | 72 +++++++++++++++++++ .../src/models/SubscribeProviderOptions.ts | 16 +---- .../src/models/UseSalesforceFlowsConfig.ts | 4 +- generated-sources/api/src/models/index.ts | 1 + 7 files changed, 105 insertions(+), 17 deletions(-) create mode 100644 generated-sources/api/src/models/SubscribeInstallationProviderOptions.ts diff --git a/generated-sources/api/.openapi-generator/FILES b/generated-sources/api/.openapi-generator/FILES index 937a73bb2..74cebc999 100644 --- a/generated-sources/api/.openapi-generator/FILES +++ b/generated-sources/api/.openapi-generator/FILES @@ -214,6 +214,7 @@ src/models/StringFieldOptions.ts src/models/SubscribeConfig.ts src/models/SubscribeConfigAllOf.ts src/models/SubscribeConfigObject.ts +src/models/SubscribeInstallationProviderOptions.ts src/models/SubscribeProviderOptions.ts src/models/SubscribeRequirements.ts src/models/SubscribeSupport.ts diff --git a/generated-sources/api/src/models/BaseSubscribeConfig.ts b/generated-sources/api/src/models/BaseSubscribeConfig.ts index ae77856af..ac6188c1b 100644 --- a/generated-sources/api/src/models/BaseSubscribeConfig.ts +++ b/generated-sources/api/src/models/BaseSubscribeConfig.ts @@ -19,6 +19,12 @@ import { BaseSubscribeConfigObjectFromJSONTyped, BaseSubscribeConfigObjectToJSON, } from './BaseSubscribeConfigObject'; +import type { SubscribeInstallationProviderOptions } from './SubscribeInstallationProviderOptions'; +import { + SubscribeInstallationProviderOptionsFromJSON, + SubscribeInstallationProviderOptionsFromJSONTyped, + SubscribeInstallationProviderOptionsToJSON, +} from './SubscribeInstallationProviderOptions'; /** * @@ -32,6 +38,12 @@ export interface BaseSubscribeConfig { * @memberof BaseSubscribeConfig */ objects?: { [key: string]: BaseSubscribeConfigObject; }; + /** + * + * @type {SubscribeInstallationProviderOptions} + * @memberof BaseSubscribeConfig + */ + providerOptions?: SubscribeInstallationProviderOptions; } /** @@ -54,6 +66,7 @@ export function BaseSubscribeConfigFromJSONTyped(json: any, ignoreDiscriminator: return { 'objects': !exists(json, 'objects') ? undefined : (mapValues(json['objects'], BaseSubscribeConfigObjectFromJSON)), + 'providerOptions': !exists(json, 'providerOptions') ? undefined : SubscribeInstallationProviderOptionsFromJSON(json['providerOptions']), }; } @@ -67,6 +80,7 @@ export function BaseSubscribeConfigToJSON(value?: BaseSubscribeConfig | null): a return { 'objects': value.objects === undefined ? undefined : (mapValues(value.objects, BaseSubscribeConfigObjectToJSON)), + 'providerOptions': SubscribeInstallationProviderOptionsToJSON(value.providerOptions), }; } diff --git a/generated-sources/api/src/models/SubscribeConfig.ts b/generated-sources/api/src/models/SubscribeConfig.ts index 920bec5e3..9992eda80 100644 --- a/generated-sources/api/src/models/SubscribeConfig.ts +++ b/generated-sources/api/src/models/SubscribeConfig.ts @@ -19,6 +19,12 @@ import { SubscribeConfigObjectFromJSONTyped, SubscribeConfigObjectToJSON, } from './SubscribeConfigObject'; +import type { SubscribeInstallationProviderOptions } from './SubscribeInstallationProviderOptions'; +import { + SubscribeInstallationProviderOptionsFromJSON, + SubscribeInstallationProviderOptionsFromJSONTyped, + SubscribeInstallationProviderOptionsToJSON, +} from './SubscribeInstallationProviderOptions'; /** * @@ -32,6 +38,12 @@ export interface SubscribeConfig { * @memberof SubscribeConfig */ objects: { [key: string]: SubscribeConfigObject; }; + /** + * + * @type {SubscribeInstallationProviderOptions} + * @memberof SubscribeConfig + */ + providerOptions?: SubscribeInstallationProviderOptions; } /** @@ -55,6 +67,7 @@ export function SubscribeConfigFromJSONTyped(json: any, ignoreDiscriminator: boo return { 'objects': (mapValues(json['objects'], SubscribeConfigObjectFromJSON)), + 'providerOptions': !exists(json, 'providerOptions') ? undefined : SubscribeInstallationProviderOptionsFromJSON(json['providerOptions']), }; } @@ -68,6 +81,7 @@ export function SubscribeConfigToJSON(value?: SubscribeConfig | null): any { return { 'objects': (mapValues(value.objects, SubscribeConfigObjectToJSON)), + 'providerOptions': SubscribeInstallationProviderOptionsToJSON(value.providerOptions), }; } diff --git a/generated-sources/api/src/models/SubscribeInstallationProviderOptions.ts b/generated-sources/api/src/models/SubscribeInstallationProviderOptions.ts new file mode 100644 index 000000000..b6112df6a --- /dev/null +++ b/generated-sources/api/src/models/SubscribeInstallationProviderOptions.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Ampersand public API + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { exists, mapValues } from '../runtime'; +import type { UseSalesforceFlowsConfig } from './UseSalesforceFlowsConfig'; +import { + UseSalesforceFlowsConfigFromJSON, + UseSalesforceFlowsConfigFromJSONTyped, + UseSalesforceFlowsConfigToJSON, +} from './UseSalesforceFlowsConfig'; + +/** + * Subscribe options that apply to the whole installation and only to certain providers. Each option documents which providers support it; setting one for a provider that does not support it is rejected. For options that are set per object, see `subscribe.objects..providerOptions`. + * @export + * @interface SubscribeInstallationProviderOptions + */ +export interface SubscribeInstallationProviderOptions { + /** + * + * @type {UseSalesforceFlowsConfig} + * @memberof SubscribeInstallationProviderOptions + */ + useSalesforceFlows?: UseSalesforceFlowsConfig; +} + +/** + * Check if a given object implements the SubscribeInstallationProviderOptions interface. + */ +export function instanceOfSubscribeInstallationProviderOptions(value: object): boolean { + let isInstance = true; + + return isInstance; +} + +export function SubscribeInstallationProviderOptionsFromJSON(json: any): SubscribeInstallationProviderOptions { + return SubscribeInstallationProviderOptionsFromJSONTyped(json, false); +} + +export function SubscribeInstallationProviderOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscribeInstallationProviderOptions { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'useSalesforceFlows': !exists(json, 'useSalesforceFlows') ? undefined : UseSalesforceFlowsConfigFromJSON(json['useSalesforceFlows']), + }; +} + +export function SubscribeInstallationProviderOptionsToJSON(value?: SubscribeInstallationProviderOptions | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'useSalesforceFlows': UseSalesforceFlowsConfigToJSON(value.useSalesforceFlows), + }; +} + diff --git a/generated-sources/api/src/models/SubscribeProviderOptions.ts b/generated-sources/api/src/models/SubscribeProviderOptions.ts index 2087aec70..a59dea08d 100644 --- a/generated-sources/api/src/models/SubscribeProviderOptions.ts +++ b/generated-sources/api/src/models/SubscribeProviderOptions.ts @@ -19,15 +19,9 @@ import { QuotaOptimizationConfigFromJSONTyped, QuotaOptimizationConfigToJSON, } from './QuotaOptimizationConfig'; -import type { UseSalesforceFlowsConfig } from './UseSalesforceFlowsConfig'; -import { - UseSalesforceFlowsConfigFromJSON, - UseSalesforceFlowsConfigFromJSONTyped, - UseSalesforceFlowsConfigToJSON, -} from './UseSalesforceFlowsConfig'; /** - * Subscribe options that only apply to certain providers. Each option documents which providers support it; setting one for a provider that does not support it is rejected. + * Per-object subscribe options that only apply to certain providers. Each option documents which providers support it; setting one for a provider that does not support it is rejected. Options that apply to the whole subscription live on `subscribe.providerOptions` instead. * @export * @interface SubscribeProviderOptions */ @@ -38,12 +32,6 @@ export interface SubscribeProviderOptions { * @memberof SubscribeProviderOptions */ quotaOptimization?: QuotaOptimizationConfig; - /** - * - * @type {UseSalesforceFlowsConfig} - * @memberof SubscribeProviderOptions - */ - useSalesforceFlows?: UseSalesforceFlowsConfig; } /** @@ -66,7 +54,6 @@ export function SubscribeProviderOptionsFromJSONTyped(json: any, ignoreDiscrimin return { 'quotaOptimization': !exists(json, 'quotaOptimization') ? undefined : QuotaOptimizationConfigFromJSON(json['quotaOptimization']), - 'useSalesforceFlows': !exists(json, 'useSalesforceFlows') ? undefined : UseSalesforceFlowsConfigFromJSON(json['useSalesforceFlows']), }; } @@ -80,7 +67,6 @@ export function SubscribeProviderOptionsToJSON(value?: SubscribeProviderOptions return { 'quotaOptimization': QuotaOptimizationConfigToJSON(value.quotaOptimization), - 'useSalesforceFlows': UseSalesforceFlowsConfigToJSON(value.useSalesforceFlows), }; } diff --git a/generated-sources/api/src/models/UseSalesforceFlowsConfig.ts b/generated-sources/api/src/models/UseSalesforceFlowsConfig.ts index 1b07bde9f..fa407cf41 100644 --- a/generated-sources/api/src/models/UseSalesforceFlowsConfig.ts +++ b/generated-sources/api/src/models/UseSalesforceFlowsConfig.ts @@ -14,13 +14,13 @@ import { exists, mapValues } from '../runtime'; /** - * Opt a Salesforce subscribe installation into record-triggered flows and outbound messages instead of Change Data Capture. An installation uses only one subscribe method: if any object sets this to enabled, every object with a subscribe event in that installation must set it too. Delete events are not supported on this path. Defaults to false (CDC). + * Opt this installation's Salesforce subscription into record-triggered flows and outbound messages instead of Change Data Capture. Delete events are not supported on this path. Defaults to false (CDC). * @export * @interface UseSalesforceFlowsConfig */ export interface UseSalesforceFlowsConfig { /** - * Whether this object uses Salesforce record-triggered flows for subscribe. + * Whether this installation uses Salesforce record-triggered flows for subscribe. * @type {boolean} * @memberof UseSalesforceFlowsConfig */ diff --git a/generated-sources/api/src/models/index.ts b/generated-sources/api/src/models/index.ts index 249cd2ec2..92a8d772d 100644 --- a/generated-sources/api/src/models/index.ts +++ b/generated-sources/api/src/models/index.ts @@ -191,6 +191,7 @@ export * from './StringFieldOptions'; export * from './SubscribeConfig'; export * from './SubscribeConfigAllOf'; export * from './SubscribeConfigObject'; +export * from './SubscribeInstallationProviderOptions'; export * from './SubscribeProviderOptions'; export * from './SubscribeRequirements'; export * from './SubscribeSupport';