Skip to content
Merged
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 @@ -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
Expand Down
14 changes: 14 additions & 0 deletions generated-sources/api/src/models/BaseSubscribeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import {
BaseSubscribeConfigObjectFromJSONTyped,
BaseSubscribeConfigObjectToJSON,
} from './BaseSubscribeConfigObject';
import type { SubscribeInstallationProviderOptions } from './SubscribeInstallationProviderOptions';
import {
SubscribeInstallationProviderOptionsFromJSON,
SubscribeInstallationProviderOptionsFromJSONTyped,
SubscribeInstallationProviderOptionsToJSON,
} from './SubscribeInstallationProviderOptions';

/**
*
Expand All @@ -32,6 +38,12 @@ export interface BaseSubscribeConfig {
* @memberof BaseSubscribeConfig
*/
objects?: { [key: string]: BaseSubscribeConfigObject; };
/**
*
* @type {SubscribeInstallationProviderOptions}
* @memberof BaseSubscribeConfig
*/
providerOptions?: SubscribeInstallationProviderOptions;
}

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

Expand All @@ -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),
};
}

14 changes: 14 additions & 0 deletions generated-sources/api/src/models/SubscribeConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import {
SubscribeConfigObjectFromJSONTyped,
SubscribeConfigObjectToJSON,
} from './SubscribeConfigObject';
import type { SubscribeInstallationProviderOptions } from './SubscribeInstallationProviderOptions';
import {
SubscribeInstallationProviderOptionsFromJSON,
SubscribeInstallationProviderOptionsFromJSONTyped,
SubscribeInstallationProviderOptionsToJSON,
} from './SubscribeInstallationProviderOptions';

/**
*
Expand All @@ -32,6 +38,12 @@ export interface SubscribeConfig {
* @memberof SubscribeConfig
*/
objects: { [key: string]: SubscribeConfigObject; };
/**
*
* @type {SubscribeInstallationProviderOptions}
* @memberof SubscribeConfig
*/
providerOptions?: SubscribeInstallationProviderOptions;
}

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

Expand All @@ -68,6 +81,7 @@ export function SubscribeConfigToJSON(value?: SubscribeConfig | null): any {
return {

'objects': (mapValues(value.objects, SubscribeConfigObjectToJSON)),
'providerOptions': SubscribeInstallationProviderOptionsToJSON(value.providerOptions),
};
}

Original file line number Diff line number Diff line change
@@ -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.<name>.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),
};
}

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

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

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

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

4 changes: 2 additions & 2 deletions generated-sources/api/src/models/UseSalesforceFlowsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
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 @@ -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';
Expand Down
Loading