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
1 change: 1 addition & 0 deletions generated-sources/api/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ src/models/CreateBillingAccountSessionRequest.ts
src/models/CreateConsumerRequest.ts
src/models/CreateDestinationRequest.ts
src/models/CreateDestinationRequestMetadata.ts
src/models/CreateDestinationRequestSecrets.ts
src/models/CreateEvent.ts
src/models/CreateGroupRequest.ts
src/models/CreateInstallationRequest.ts
Expand Down
8 changes: 8 additions & 0 deletions generated-sources/api/src/models/BaseConfigContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ export interface BaseConfigContent {
* @memberof BaseConfigContent
*/
provider?: string;
/**
* The SaaS module that we are integrating with.
* @type {string}
* @memberof BaseConfigContent
*/
module?: string;
/**
*
* @type {BaseReadConfig}
Expand Down Expand Up @@ -84,6 +90,7 @@ export function BaseConfigContentFromJSONTyped(json: any, ignoreDiscriminator: b
return {

'provider': !exists(json, 'provider') ? undefined : json['provider'],
'module': !exists(json, 'module') ? undefined : json['module'],
'read': !exists(json, 'read') ? undefined : BaseReadConfigFromJSON(json['read']),
'write': !exists(json, 'write') ? undefined : BaseWriteConfigFromJSON(json['write']),
'proxy': !exists(json, 'proxy') ? undefined : BaseProxyConfigFromJSON(json['proxy']),
Expand All @@ -100,6 +107,7 @@ export function BaseConfigContentToJSON(value?: BaseConfigContent | null): any {
return {

'provider': value.provider,
'module': value.module,
'read': BaseReadConfigToJSON(value.read),
'write': BaseWriteConfigToJSON(value.write),
'proxy': BaseProxyConfigToJSON(value.proxy),
Expand Down
8 changes: 8 additions & 0 deletions generated-sources/api/src/models/BaseProxyConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export interface BaseProxyConfig {
* @memberof BaseProxyConfig
*/
enabled?: boolean;
/**
* Default is false. If this is set to true, the base URL for the proxy action will be the module's base URL. Otherwise, it is assumed that the base URL is the provider's root base URL.
* @type {boolean}
* @memberof BaseProxyConfig
*/
useModule?: boolean;
}

/**
Expand All @@ -47,6 +53,7 @@ export function BaseProxyConfigFromJSONTyped(json: any, ignoreDiscriminator: boo
return {

'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
'useModule': !exists(json, 'useModule') ? undefined : json['useModule'],
};
}

Expand All @@ -60,6 +67,7 @@ export function BaseProxyConfigToJSON(value?: BaseProxyConfig | null): any {
return {

'enabled': value.enabled,
'useModule': value.useModule,
};
}

8 changes: 8 additions & 0 deletions generated-sources/api/src/models/ConfigContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ export interface ConfigContent {
* @memberof ConfigContent
*/
provider: string;
/**
* The SaaS module that we are integrating with.
* @type {string}
* @memberof ConfigContent
*/
module?: string;
/**
*
* @type {ReadConfig}
Expand Down Expand Up @@ -97,6 +103,7 @@ export function ConfigContentFromJSONTyped(json: any, ignoreDiscriminator: boole
return {

'provider': json['provider'],
'module': !exists(json, 'module') ? undefined : json['module'],
'read': !exists(json, 'read') ? undefined : ReadConfigFromJSON(json['read']),
'write': !exists(json, 'write') ? undefined : WriteConfigFromJSON(json['write']),
'proxy': !exists(json, 'proxy') ? undefined : BaseProxyConfigFromJSON(json['proxy']),
Expand All @@ -114,6 +121,7 @@ export function ConfigContentToJSON(value?: ConfigContent | null): any {
return {

'provider': value.provider,
'module': value.module,
'read': ReadConfigToJSON(value.read),
'write': WriteConfigToJSON(value.write),
'proxy': BaseProxyConfigToJSON(value.proxy),
Expand Down
29 changes: 27 additions & 2 deletions generated-sources/api/src/models/CreateDestinationRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import {
CreateDestinationRequestMetadataFromJSONTyped,
CreateDestinationRequestMetadataToJSON,
} from './CreateDestinationRequestMetadata';
import type { CreateDestinationRequestSecrets } from './CreateDestinationRequestSecrets';
import {
CreateDestinationRequestSecretsFromJSON,
CreateDestinationRequestSecretsFromJSONTyped,
CreateDestinationRequestSecretsToJSON,
} from './CreateDestinationRequestSecrets';

/**
*
Expand All @@ -33,11 +39,17 @@ export interface CreateDestinationRequest {
*/
name: string;
/**
* The type of the destination
* The type of the destination.
* @type {string}
* @memberof CreateDestinationRequest
*/
type: string;
type: CreateDestinationRequestTypeEnum;
/**
*
* @type {CreateDestinationRequestSecrets}
* @memberof CreateDestinationRequest
*/
secrets?: CreateDestinationRequestSecrets;
/**
*
* @type {CreateDestinationRequestMetadata}
Expand All @@ -46,6 +58,17 @@ export interface CreateDestinationRequest {
metadata: CreateDestinationRequestMetadata;
}


/**
* @export
*/
export const CreateDestinationRequestTypeEnum = {
Webhook: 'webhook',
Kinesis: 'kinesis'
} as const;
export type CreateDestinationRequestTypeEnum = typeof CreateDestinationRequestTypeEnum[keyof typeof CreateDestinationRequestTypeEnum];


/**
* Check if a given object implements the CreateDestinationRequest interface.
*/
Expand All @@ -70,6 +93,7 @@ export function CreateDestinationRequestFromJSONTyped(json: any, ignoreDiscrimin

'name': json['name'],
'type': json['type'],
'secrets': !exists(json, 'secrets') ? undefined : CreateDestinationRequestSecretsFromJSON(json['secrets']),
'metadata': CreateDestinationRequestMetadataFromJSON(json['metadata']),
};
}
Expand All @@ -85,6 +109,7 @@ export function CreateDestinationRequestToJSON(value?: CreateDestinationRequest

'name': value.name,
'type': value.type,
'secrets': CreateDestinationRequestSecretsToJSON(value.secrets),
'metadata': CreateDestinationRequestMetadataToJSON(value.metadata),
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,30 @@ export interface CreateDestinationRequestMetadata {
* @memberof CreateDestinationRequestMetadata
*/
headers?: { [key: string]: string; } | null;
/**
* The AWS region where the kinesis destination is hosted.
* @type {string}
* @memberof CreateDestinationRequestMetadata
*/
kinesisRegion?: string;
/**
* The name of the Kinesis stream to send events to.
* @type {string}
* @memberof CreateDestinationRequestMetadata
*/
kinesisStreamName?: string;
/**
* The endpoint URL for the Kinesis stream.
* @type {string}
* @memberof CreateDestinationRequestMetadata
*/
kinesisEndpointUrl?: string;
/**
* The template for the partition key to use when sending events to Kinesis (a JMESPath template)
* @type {string}
* @memberof CreateDestinationRequestMetadata
*/
kinesisPartitionKeyTemplate?: string;
}

/**
Expand All @@ -54,6 +78,10 @@ export function CreateDestinationRequestMetadataFromJSONTyped(json: any, ignoreD

'url': !exists(json, 'url') ? undefined : json['url'],
'headers': !exists(json, 'headers') ? undefined : json['headers'],
'kinesisRegion': !exists(json, 'kinesisRegion') ? undefined : json['kinesisRegion'],
'kinesisStreamName': !exists(json, 'kinesisStreamName') ? undefined : json['kinesisStreamName'],
'kinesisEndpointUrl': !exists(json, 'kinesisEndpointUrl') ? undefined : json['kinesisEndpointUrl'],
'kinesisPartitionKeyTemplate': !exists(json, 'kinesisPartitionKeyTemplate') ? undefined : json['kinesisPartitionKeyTemplate'],
};
}

Expand All @@ -68,6 +96,10 @@ export function CreateDestinationRequestMetadataToJSON(value?: CreateDestination

'url': value.url,
'headers': value.headers,
'kinesisRegion': value.kinesisRegion,
'kinesisStreamName': value.kinesisStreamName,
'kinesisEndpointUrl': value.kinesisEndpointUrl,
'kinesisPartitionKeyTemplate': value.kinesisPartitionKeyTemplate,
};
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/* 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';
/**
* Secrets for the destination.
* @export
* @interface CreateDestinationRequestSecrets
*/
export interface CreateDestinationRequestSecrets {
/**
* The AWS access key ID for the Kinesis destination.
* @type {string}
* @memberof CreateDestinationRequestSecrets
*/
awsKeyId?: string;
/**
* The AWS secret access key for the Kinesis destination.
* @type {string}
* @memberof CreateDestinationRequestSecrets
*/
awsSecretKey?: string;
/**
* The AWS session token for the Kinesis destination.
* @type {string}
* @memberof CreateDestinationRequestSecrets
*/
awsSessionToken?: string;
}

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

return isInstance;
}

export function CreateDestinationRequestSecretsFromJSON(json: any): CreateDestinationRequestSecrets {
return CreateDestinationRequestSecretsFromJSONTyped(json, false);
}

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

'awsKeyId': !exists(json, 'awsKeyId') ? undefined : json['awsKeyId'],
'awsSecretKey': !exists(json, 'awsSecretKey') ? undefined : json['awsSecretKey'],
'awsSessionToken': !exists(json, 'awsSessionToken') ? undefined : json['awsSessionToken'],
};
}

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

'awsKeyId': value.awsKeyId,
'awsSecretKey': value.awsSecretKey,
'awsSessionToken': value.awsSessionToken,
};
}

6 changes: 3 additions & 3 deletions generated-sources/api/src/models/FieldSetting.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface FieldSetting {
* @type {FieldSettingDefault}
* @memberof FieldSetting
*/
default?: FieldSettingDefault;
_default?: FieldSettingDefault;
/**
* Whether the default value should be applied when creating a record.
* @type {string}
Expand Down Expand Up @@ -85,7 +85,7 @@ export function FieldSettingFromJSONTyped(json: any, ignoreDiscriminator: boolea
}
return {

'default': !exists(json, 'default') ? undefined : FieldSettingDefaultFromJSON(json['default']),
'_default': !exists(json, 'default') ? undefined : FieldSettingDefaultFromJSON(json['default']),
'writeOnCreate': !exists(json, 'writeOnCreate') ? undefined : json['writeOnCreate'],
'writeOnUpdate': !exists(json, 'writeOnUpdate') ? undefined : json['writeOnUpdate'],
};
Expand All @@ -100,7 +100,7 @@ export function FieldSettingToJSON(value?: FieldSetting | null): any {
}
return {

'default': FieldSettingDefaultToJSON(value.default),
'default': FieldSettingDefaultToJSON(value._default),
'writeOnCreate': value.writeOnCreate,
'writeOnUpdate': value.writeOnUpdate,
};
Expand Down
8 changes: 8 additions & 0 deletions generated-sources/api/src/models/HydratedIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ export interface HydratedIntegration {
* @memberof HydratedIntegration
*/
displayName?: string;
/**
*
* @type {string}
* @memberof HydratedIntegration
*/
module?: string;
/**
*
* @type {string}
Expand Down Expand Up @@ -99,6 +105,7 @@ export function HydratedIntegrationFromJSONTyped(json: any, ignoreDiscriminator:

'name': json['name'],
'displayName': !exists(json, 'displayName') ? undefined : json['displayName'],
'module': !exists(json, 'module') ? undefined : json['module'],
'provider': json['provider'],
'read': !exists(json, 'read') ? undefined : HydratedIntegrationReadFromJSON(json['read']),
'write': !exists(json, 'write') ? undefined : HydratedIntegrationWriteFromJSON(json['write']),
Expand All @@ -117,6 +124,7 @@ export function HydratedIntegrationToJSON(value?: HydratedIntegration | null): a

'name': value.name,
'displayName': value.displayName,
'module': value.module,
'provider': value.provider,
'read': HydratedIntegrationReadToJSON(value.read),
'write': HydratedIntegrationWriteToJSON(value.write),
Expand Down
8 changes: 8 additions & 0 deletions generated-sources/api/src/models/HydratedIntegrationProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ export interface HydratedIntegrationProxy {
* @memberof HydratedIntegrationProxy
*/
enabled?: boolean;
/**
* Default is false. If this is set to true, the base URL for the proxy action will be the module's base URL. Otherwise, it is assumed that the base URL is the provider's root base URL.
* @type {boolean}
* @memberof HydratedIntegrationProxy
*/
useModule?: boolean;
}

/**
Expand All @@ -47,6 +53,7 @@ export function HydratedIntegrationProxyFromJSONTyped(json: any, ignoreDiscrimin
return {

'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
'useModule': !exists(json, 'useModule') ? undefined : json['useModule'],
};
}

Expand All @@ -60,6 +67,7 @@ export function HydratedIntegrationProxyToJSON(value?: HydratedIntegrationProxy
return {

'enabled': value.enabled,
'useModule': value.useModule,
};
}

Loading
Loading