diff --git a/generated-sources/api/.openapi-generator/FILES b/generated-sources/api/.openapi-generator/FILES index 11fc493f..937a73bb 100644 --- a/generated-sources/api/.openapi-generator/FILES +++ b/generated-sources/api/.openapi-generator/FILES @@ -242,6 +242,7 @@ src/models/UpdateProviderAppRequestProviderApp.ts src/models/UpdateTopicRequest.ts src/models/UpsertMetadataRequest.ts src/models/UpsertMetadataResponse.ts +src/models/UseSalesforceFlowsConfig.ts src/models/ValueDefault.ts src/models/ValueDefaultBoolean.ts src/models/ValueDefaultInteger.ts diff --git a/generated-sources/api/src/models/NotificationEventType.ts b/generated-sources/api/src/models/NotificationEventType.ts index a44a7250..fddf04e9 100644 --- a/generated-sources/api/src/models/NotificationEventType.ts +++ b/generated-sources/api/src/models/NotificationEventType.ts @@ -37,7 +37,8 @@ export const NotificationEventType = { SubscribeCreateSuccess: 'subscribe.create.success', SubscribeUpdateSuccess: 'subscribe.update.success', SubscribeDeleteSuccess: 'subscribe.delete.success', - DestinationWebhookDisabled: 'destination.webhook.disabled' + DestinationWebhookDisabled: 'destination.webhook.disabled', + DestinationDeliveryError: 'destination.delivery.error' } as const; export type NotificationEventType = typeof NotificationEventType[keyof typeof NotificationEventType]; diff --git a/generated-sources/api/src/models/SubscribeProviderOptions.ts b/generated-sources/api/src/models/SubscribeProviderOptions.ts index d9c39eea..2087aec7 100644 --- a/generated-sources/api/src/models/SubscribeProviderOptions.ts +++ b/generated-sources/api/src/models/SubscribeProviderOptions.ts @@ -19,6 +19,12 @@ 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. @@ -32,6 +38,12 @@ export interface SubscribeProviderOptions { * @memberof SubscribeProviderOptions */ quotaOptimization?: QuotaOptimizationConfig; + /** + * + * @type {UseSalesforceFlowsConfig} + * @memberof SubscribeProviderOptions + */ + useSalesforceFlows?: UseSalesforceFlowsConfig; } /** @@ -54,6 +66,7 @@ export function SubscribeProviderOptionsFromJSONTyped(json: any, ignoreDiscrimin return { 'quotaOptimization': !exists(json, 'quotaOptimization') ? undefined : QuotaOptimizationConfigFromJSON(json['quotaOptimization']), + 'useSalesforceFlows': !exists(json, 'useSalesforceFlows') ? undefined : UseSalesforceFlowsConfigFromJSON(json['useSalesforceFlows']), }; } @@ -67,6 +80,7 @@ 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 new file mode 100644 index 00000000..1b07bde9 --- /dev/null +++ b/generated-sources/api/src/models/UseSalesforceFlowsConfig.ts @@ -0,0 +1,66 @@ +/* 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'; +/** + * 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). + * @export + * @interface UseSalesforceFlowsConfig + */ +export interface UseSalesforceFlowsConfig { + /** + * Whether this object uses Salesforce record-triggered flows for subscribe. + * @type {boolean} + * @memberof UseSalesforceFlowsConfig + */ + enabled: boolean; +} + +/** + * Check if a given object implements the UseSalesforceFlowsConfig interface. + */ +export function instanceOfUseSalesforceFlowsConfig(value: object): boolean { + let isInstance = true; + isInstance = isInstance && "enabled" in value; + + return isInstance; +} + +export function UseSalesforceFlowsConfigFromJSON(json: any): UseSalesforceFlowsConfig { + return UseSalesforceFlowsConfigFromJSONTyped(json, false); +} + +export function UseSalesforceFlowsConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): UseSalesforceFlowsConfig { + if ((json === undefined) || (json === null)) { + return json; + } + return { + + 'enabled': json['enabled'], + }; +} + +export function UseSalesforceFlowsConfigToJSON(value?: UseSalesforceFlowsConfig | null): any { + if (value === undefined) { + return undefined; + } + if (value === null) { + return null; + } + return { + + 'enabled': value.enabled, + }; +} + diff --git a/generated-sources/api/src/models/index.ts b/generated-sources/api/src/models/index.ts index c59f168a..249cd2ec 100644 --- a/generated-sources/api/src/models/index.ts +++ b/generated-sources/api/src/models/index.ts @@ -219,6 +219,7 @@ export * from './UpdateProviderAppRequestProviderApp'; export * from './UpdateTopicRequest'; export * from './UpsertMetadataRequest'; export * from './UpsertMetadataResponse'; +export * from './UseSalesforceFlowsConfig'; export * from './ValueDefault'; export * from './ValueDefaultBoolean'; export * from './ValueDefaultInteger';