Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions generated-sources/api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion generated-sources/api/src/models/NotificationEventType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down
14 changes: 14 additions & 0 deletions generated-sources/api/src/models/SubscribeProviderOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -32,6 +38,12 @@ export interface SubscribeProviderOptions {
* @memberof SubscribeProviderOptions
*/
quotaOptimization?: QuotaOptimizationConfig;
/**
*
* @type {UseSalesforceFlowsConfig}
* @memberof SubscribeProviderOptions
*/
useSalesforceFlows?: UseSalesforceFlowsConfig;
}

/**
Expand All @@ -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']),
};
}

Expand All @@ -67,6 +80,7 @@ export function SubscribeProviderOptionsToJSON(value?: SubscribeProviderOptions
return {

'quotaOptimization': QuotaOptimizationConfigToJSON(value.quotaOptimization),
'useSalesforceFlows': UseSalesforceFlowsConfigToJSON(value.useSalesforceFlows),
};
}

66 changes: 66 additions & 0 deletions generated-sources/api/src/models/UseSalesforceFlowsConfig.ts
Original file line number Diff line number Diff line change
@@ -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,
};
}

1 change: 1 addition & 0 deletions generated-sources/api/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Loading