Skip to content
Open
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
3 changes: 2 additions & 1 deletion generated-sources/api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ src/models/ProviderAppMetadata1.ts
src/models/ProviderInfo.ts
src/models/ProviderMetadata1.ts
src/models/ProviderMetadataInfo.ts
src/models/QuotaOptimizationConfig.ts
src/models/ReadConfig.ts
src/models/ReadConfigAllOf.ts
src/models/ReadConfigObject.ts
src/models/ReadFilter.ts
src/models/RedirectResponse.ts
src/models/Revision.ts
src/models/SalesforceQuotaOptimizationConfig.ts
src/models/SearchOperators.ts
src/models/SearchSupport.ts
src/models/SelectedFieldsAutoConfig.ts
Expand All @@ -214,6 +214,7 @@ src/models/StringFieldOptions.ts
src/models/SubscribeConfig.ts
src/models/SubscribeConfigAllOf.ts
src/models/SubscribeConfigObject.ts
src/models/SubscribeProviderOptions.ts
src/models/SubscribeRequirements.ts
src/models/SubscribeSupport.ts
src/models/Support.ts
Expand Down
18 changes: 9 additions & 9 deletions generated-sources/api/src/models/BaseSubscribeConfigObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ import {
ConfigUpdateEventFromJSONTyped,
ConfigUpdateEventToJSON,
} from './ConfigUpdateEvent';
import type { SalesforceQuotaOptimizationConfig } from './SalesforceQuotaOptimizationConfig';
import type { SubscribeProviderOptions } from './SubscribeProviderOptions';
import {
SalesforceQuotaOptimizationConfigFromJSON,
SalesforceQuotaOptimizationConfigFromJSONTyped,
SalesforceQuotaOptimizationConfigToJSON,
} from './SalesforceQuotaOptimizationConfig';
SubscribeProviderOptionsFromJSON,
SubscribeProviderOptionsFromJSONTyped,
SubscribeProviderOptionsToJSON,
} from './SubscribeProviderOptions';

/**
*
Expand Down Expand Up @@ -88,10 +88,10 @@ export interface BaseSubscribeConfigObject {
otherEvents?: Array<string>;
/**
*
* @type {SalesforceQuotaOptimizationConfig}
* @type {SubscribeProviderOptions}
* @memberof BaseSubscribeConfigObject
*/
salesforceQuotaOptimization?: SalesforceQuotaOptimizationConfig;
providerOptions?: SubscribeProviderOptions;
}

/**
Expand Down Expand Up @@ -123,7 +123,7 @@ export function BaseSubscribeConfigObjectFromJSONTyped(json: any, ignoreDiscrimi
'updateEvent': !exists(json, 'updateEvent') ? undefined : ConfigUpdateEventFromJSON(json['updateEvent']),
'deleteEvent': !exists(json, 'deleteEvent') ? undefined : ConfigDeleteEventFromJSON(json['deleteEvent']),
'otherEvents': !exists(json, 'otherEvents') ? undefined : json['otherEvents'],
'salesforceQuotaOptimization': !exists(json, 'salesforceQuotaOptimization') ? undefined : SalesforceQuotaOptimizationConfigFromJSON(json['salesforceQuotaOptimization']),
'providerOptions': !exists(json, 'providerOptions') ? undefined : SubscribeProviderOptionsFromJSON(json['providerOptions']),
};
}

Expand All @@ -143,7 +143,7 @@ export function BaseSubscribeConfigObjectToJSON(value?: BaseSubscribeConfigObjec
'updateEvent': ConfigUpdateEventToJSON(value.updateEvent),
'deleteEvent': ConfigDeleteEventToJSON(value.deleteEvent),
'otherEvents': value.otherEvents,
'salesforceQuotaOptimization': SalesforceQuotaOptimizationConfigToJSON(value.salesforceQuotaOptimization),
'providerOptions': SubscribeProviderOptionsToJSON(value.providerOptions),
};
}

5 changes: 3 additions & 2 deletions generated-sources/api/src/models/CreateDestinationRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface CreateDestinationRequest {
*/
name: string;
/**
* The type of the destination.
* The type of the destination. For `slack`, set `metadata.url` to a Slack incoming webhook URL.
* @type {string}
* @memberof CreateDestinationRequest
*/
Expand All @@ -65,7 +65,8 @@ export interface CreateDestinationRequest {
export const CreateDestinationRequestTypeEnum = {
Webhook: 'webhook',
Kinesis: 'kinesis',
S3: 's3'
S3: 's3',
Slack: 'slack'
} as const;
export type CreateDestinationRequestTypeEnum = typeof CreateDestinationRequestTypeEnum[keyof typeof CreateDestinationRequestTypeEnum];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { exists, mapValues } from '../runtime';
*/
export interface CreateDestinationRequestMetadata {
/**
* Webhook URL, must start with "https://".
* Webhook URL, must start with "https://". For `slack` destinations, this is the Slack incoming webhook URL.
* @type {string}
* @memberof CreateDestinationRequestMetadata
*/
Expand Down
66 changes: 66 additions & 0 deletions generated-sources/api/src/models/QuotaOptimizationConfig.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';
/**
* Reduces API quota consumption for update events by filtering irrelevant change events at the source, so only updates that affect watched fields are delivered. Requires `updateEvent.requiredWatchFields` to be non-empty; it cannot be used with `updateEvent.watchFieldsAuto: all`. Currently supported for Salesforce.
* @export
* @interface QuotaOptimizationConfig
*/
export interface QuotaOptimizationConfig {
/**
* Whether quota optimization is enabled for this object.
* @type {boolean}
* @memberof QuotaOptimizationConfig
*/
enabled: boolean;
}

/**
* Check if a given object implements the QuotaOptimizationConfig interface.
*/
export function instanceOfQuotaOptimizationConfig(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "enabled" in value;

return isInstance;
}

export function QuotaOptimizationConfigFromJSON(json: any): QuotaOptimizationConfig {
return QuotaOptimizationConfigFromJSONTyped(json, false);
}

export function QuotaOptimizationConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotaOptimizationConfig {
if ((json === undefined) || (json === null)) {
return json;
}
return {

'enabled': json['enabled'],
};
}

export function QuotaOptimizationConfigToJSON(value?: QuotaOptimizationConfig | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {

'enabled': value.enabled,
};
}

This file was deleted.

18 changes: 9 additions & 9 deletions generated-sources/api/src/models/SubscribeConfigObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ import {
ConfigUpdateEventFromJSONTyped,
ConfigUpdateEventToJSON,
} from './ConfigUpdateEvent';
import type { SalesforceQuotaOptimizationConfig } from './SalesforceQuotaOptimizationConfig';
import type { SubscribeProviderOptions } from './SubscribeProviderOptions';
import {
SalesforceQuotaOptimizationConfigFromJSON,
SalesforceQuotaOptimizationConfigFromJSONTyped,
SalesforceQuotaOptimizationConfigToJSON,
} from './SalesforceQuotaOptimizationConfig';
SubscribeProviderOptionsFromJSON,
SubscribeProviderOptionsFromJSONTyped,
SubscribeProviderOptionsToJSON,
} from './SubscribeProviderOptions';

/**
*
Expand Down Expand Up @@ -88,10 +88,10 @@ export interface SubscribeConfigObject {
otherEvents?: Array<string>;
/**
*
* @type {SalesforceQuotaOptimizationConfig}
* @type {SubscribeProviderOptions}
* @memberof SubscribeConfigObject
*/
salesforceQuotaOptimization?: SalesforceQuotaOptimizationConfig;
providerOptions?: SubscribeProviderOptions;
}

/**
Expand Down Expand Up @@ -123,7 +123,7 @@ export function SubscribeConfigObjectFromJSONTyped(json: any, ignoreDiscriminato
'updateEvent': !exists(json, 'updateEvent') ? undefined : ConfigUpdateEventFromJSON(json['updateEvent']),
'deleteEvent': !exists(json, 'deleteEvent') ? undefined : ConfigDeleteEventFromJSON(json['deleteEvent']),
'otherEvents': !exists(json, 'otherEvents') ? undefined : json['otherEvents'],
'salesforceQuotaOptimization': !exists(json, 'salesforceQuotaOptimization') ? undefined : SalesforceQuotaOptimizationConfigFromJSON(json['salesforceQuotaOptimization']),
'providerOptions': !exists(json, 'providerOptions') ? undefined : SubscribeProviderOptionsFromJSON(json['providerOptions']),
};
}

Expand All @@ -143,7 +143,7 @@ export function SubscribeConfigObjectToJSON(value?: SubscribeConfigObject | null
'updateEvent': ConfigUpdateEventToJSON(value.updateEvent),
'deleteEvent': ConfigDeleteEventToJSON(value.deleteEvent),
'otherEvents': value.otherEvents,
'salesforceQuotaOptimization': SalesforceQuotaOptimizationConfigToJSON(value.salesforceQuotaOptimization),
'providerOptions': SubscribeProviderOptionsToJSON(value.providerOptions),
};
}

72 changes: 72 additions & 0 deletions generated-sources/api/src/models/SubscribeProviderOptions.ts
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 { QuotaOptimizationConfig } from './QuotaOptimizationConfig';
import {
QuotaOptimizationConfigFromJSON,
QuotaOptimizationConfigFromJSONTyped,
QuotaOptimizationConfigToJSON,
} from './QuotaOptimizationConfig';

/**
* 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.
* @export
* @interface SubscribeProviderOptions
*/
export interface SubscribeProviderOptions {
/**
*
* @type {QuotaOptimizationConfig}
* @memberof SubscribeProviderOptions
*/
quotaOptimization?: QuotaOptimizationConfig;
}

/**
* Check if a given object implements the SubscribeProviderOptions interface.
*/
export function instanceOfSubscribeProviderOptions(value: object): boolean {
let isInstance = true;

return isInstance;
}

export function SubscribeProviderOptionsFromJSON(json: any): SubscribeProviderOptions {
return SubscribeProviderOptionsFromJSONTyped(json, false);
}

export function SubscribeProviderOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubscribeProviderOptions {
if ((json === undefined) || (json === null)) {
return json;
}
return {

'quotaOptimization': !exists(json, 'quotaOptimization') ? undefined : QuotaOptimizationConfigFromJSON(json['quotaOptimization']),
};
}

export function SubscribeProviderOptionsToJSON(value?: SubscribeProviderOptions | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {

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

3 changes: 2 additions & 1 deletion generated-sources/api/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,13 +176,13 @@ export * from './ProviderAppMetadata1';
export * from './ProviderInfo';
export * from './ProviderMetadata1';
export * from './ProviderMetadataInfo';
export * from './QuotaOptimizationConfig';
export * from './ReadConfig';
export * from './ReadConfigAllOf';
export * from './ReadConfigObject';
export * from './ReadFilter';
export * from './RedirectResponse';
export * from './Revision';
export * from './SalesforceQuotaOptimizationConfig';
export * from './SearchOperators';
export * from './SearchSupport';
export * from './SelectedFieldsAutoConfig';
Expand All @@ -191,6 +191,7 @@ export * from './StringFieldOptions';
export * from './SubscribeConfig';
export * from './SubscribeConfigAllOf';
export * from './SubscribeConfigObject';
export * from './SubscribeProviderOptions';
export * from './SubscribeRequirements';
export * from './SubscribeSupport';
export * from './Support';
Expand Down
Loading