-
Notifications
You must be signed in to change notification settings - Fork 180
/
writeListRequest.ts
35 lines (33 loc) · 1.19 KB
/
writeListRequest.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { List } from '../list';
import { ListManualDatasource } from '../listManualDatasource';
import { ListSalesForceDataSource } from '../listSalesForceDataSource';
/**
* Represents a response object for a Salesforce data source with modified integration ID.
* @remarks
* Vonage API's will return information using `snake_case`. This represents the
* pure response before the client will transform the keys into `camelCase`.
*/
export type SaleForceDataSourceRequest = Omit<
ListSalesForceDataSource,
'integrationId'
> & {
/**
* The integration ID defining Salesforce credentials to use for this data source.
*/
integration_id: string;
};
/**
* Represents a request object for creating or updating a list with associated metadata.
* @remarks
* Vonage API's will return information using `snake_case`. This represents the
* pure response before the client will transform the keys into `camelCase`.
*/
export type WriteListRequest = Pick<
List,
'name' | 'description' | 'tags' | 'attributes'
> & {
/**
* The data source for the list, which can be either a manual data source or a Salesforce data source.
*/
datasource?: ListManualDatasource | SaleForceDataSourceRequest;
};