twilio 6.0.0 → 6.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/lib/rest/ConversationsBase.d.ts +3 -0
  2. package/lib/rest/ConversationsBase.js +5 -0
  3. package/lib/rest/InsightsBase.d.ts +3 -0
  4. package/lib/rest/InsightsBase.js +5 -0
  5. package/lib/rest/IntelligenceBase.d.ts +3 -0
  6. package/lib/rest/IntelligenceBase.js +5 -0
  7. package/lib/rest/KnowledgeBase.d.ts +3 -0
  8. package/lib/rest/KnowledgeBase.js +5 -0
  9. package/lib/rest/Memory.d.ts +4 -0
  10. package/lib/rest/Memory.js +8 -0
  11. package/lib/rest/MemoryBase.d.ts +13 -0
  12. package/lib/rest/MemoryBase.js +31 -0
  13. package/lib/rest/Twilio.d.ts +5 -0
  14. package/lib/rest/Twilio.js +5 -0
  15. package/lib/rest/VoiceBase.d.ts +3 -0
  16. package/lib/rest/VoiceBase.js +5 -0
  17. package/lib/rest/api/v2010/account/call/recording.d.ts +2 -0
  18. package/lib/rest/api/v2010/account/call/recording.js +4 -0
  19. package/lib/rest/api/v2010/account/call/transcription.d.ts +1 -1
  20. package/lib/rest/api/v2010/account/call/transcription.js +6 -4
  21. package/lib/rest/api/v2010/account/call.d.ts +2 -0
  22. package/lib/rest/api/v2010/account/call.js +4 -0
  23. package/lib/rest/api/v2010/account/conference/participant.d.ts +2 -0
  24. package/lib/rest/api/v2010/account/conference/participant.js +4 -0
  25. package/lib/rest/conversations/V2.d.ts +38 -0
  26. package/lib/rest/conversations/V2.js +72 -0
  27. package/lib/rest/conversations/v2/action.d.ts +241 -0
  28. package/lib/rest/conversations/v2/action.js +246 -0
  29. package/lib/rest/conversations/v2/communication.d.ts +479 -0
  30. package/lib/rest/conversations/v2/communication.js +436 -0
  31. package/lib/rest/conversations/v2/configuration.d.ts +906 -0
  32. package/lib/rest/conversations/v2/configuration.js +619 -0
  33. package/lib/rest/conversations/v2/conversation.d.ts +936 -0
  34. package/lib/rest/conversations/v2/conversation.js +664 -0
  35. package/lib/rest/conversations/v2/operation.d.ts +167 -0
  36. package/lib/rest/conversations/v2/operation.js +170 -0
  37. package/lib/rest/conversations/v2/participant.d.ts +469 -0
  38. package/lib/rest/conversations/v2/participant.js +442 -0
  39. package/lib/rest/flexApi/v1/plugin/pluginVersions.d.ts +1 -1
  40. package/lib/rest/flexApi/v1/plugin/pluginVersions.js +8 -6
  41. package/lib/rest/insights/V3.d.ts +20 -0
  42. package/lib/rest/insights/V3.js +42 -0
  43. package/lib/rest/insights/v1/call/callSummary.d.ts +10 -10
  44. package/lib/rest/insights/v1/call/event.d.ts +4 -4
  45. package/lib/rest/insights/v1/callSummaries.d.ts +12 -9
  46. package/lib/rest/insights/v3/metadata.d.ts +115 -0
  47. package/lib/rest/insights/v3/metadata.js +118 -0
  48. package/lib/rest/insights/v3/query.d.ts +180 -0
  49. package/lib/rest/insights/v3/query.js +214 -0
  50. package/lib/rest/intelligence/V3.d.ts +35 -0
  51. package/lib/rest/intelligence/V3.js +65 -0
  52. package/lib/rest/intelligence/v3/configuration.d.ts +693 -0
  53. package/lib/rest/intelligence/v3/configuration.js +528 -0
  54. package/lib/rest/intelligence/v3/conversation.d.ts +478 -0
  55. package/lib/rest/intelligence/v3/conversation.js +342 -0
  56. package/lib/rest/intelligence/v3/operator.d.ts +619 -0
  57. package/lib/rest/intelligence/v3/operator.js +493 -0
  58. package/lib/rest/intelligence/v3/operatorResult.d.ts +543 -0
  59. package/lib/rest/intelligence/v3/operatorResult.js +478 -0
  60. package/lib/rest/intelligence/v3/version.d.ts +469 -0
  61. package/lib/rest/intelligence/v3/version.js +341 -0
  62. package/lib/rest/knowledge/V2.d.ts +31 -0
  63. package/lib/rest/knowledge/V2.js +62 -0
  64. package/lib/rest/knowledge/v2/chunk.d.ts +209 -0
  65. package/lib/rest/knowledge/v2/chunk.js +178 -0
  66. package/lib/rest/knowledge/v2/knowledge.d.ts +507 -0
  67. package/lib/rest/knowledge/v2/knowledge.js +466 -0
  68. package/lib/rest/knowledge/v2/knowledgeBasis.d.ts +484 -0
  69. package/lib/rest/knowledge/v2/knowledgeBasis.js +441 -0
  70. package/lib/rest/knowledge/v2/operation.d.ts +162 -0
  71. package/lib/rest/knowledge/v2/operation.js +175 -0
  72. package/lib/rest/knowledge/v2/search.d.ts +180 -0
  73. package/lib/rest/knowledge/v2/search.js +174 -0
  74. package/lib/rest/memory/V1.d.ts +76 -0
  75. package/lib/rest/memory/V1.js +140 -0
  76. package/lib/rest/memory/v1/bulk.d.ts +129 -0
  77. package/lib/rest/memory/v1/bulk.js +158 -0
  78. package/lib/rest/memory/v1/conversationSummary.d.ts +531 -0
  79. package/lib/rest/memory/v1/conversationSummary.js +473 -0
  80. package/lib/rest/memory/v1/dataMapping.d.ts +630 -0
  81. package/lib/rest/memory/v1/dataMapping.js +512 -0
  82. package/lib/rest/memory/v1/event.d.ts +153 -0
  83. package/lib/rest/memory/v1/event.js +159 -0
  84. package/lib/rest/memory/v1/identifier.d.ts +362 -0
  85. package/lib/rest/memory/v1/identifier.js +369 -0
  86. package/lib/rest/memory/v1/identityResolutionSetting.d.ts +247 -0
  87. package/lib/rest/memory/v1/identityResolutionSetting.js +229 -0
  88. package/lib/rest/memory/v1/import.d.ts +292 -0
  89. package/lib/rest/memory/v1/import.js +280 -0
  90. package/lib/rest/memory/v1/lookup.d.ts +82 -0
  91. package/lib/rest/memory/v1/lookup.js +118 -0
  92. package/lib/rest/memory/v1/observation.d.ts +521 -0
  93. package/lib/rest/memory/v1/observation.js +477 -0
  94. package/lib/rest/memory/v1/operation.d.ts +162 -0
  95. package/lib/rest/memory/v1/operation.js +175 -0
  96. package/lib/rest/memory/v1/profile.d.ts +548 -0
  97. package/lib/rest/memory/v1/profile.js +531 -0
  98. package/lib/rest/memory/v1/recall.d.ts +306 -0
  99. package/lib/rest/memory/v1/recall.js +234 -0
  100. package/lib/rest/memory/v1/revision.d.ts +246 -0
  101. package/lib/rest/memory/v1/revision.js +195 -0
  102. package/lib/rest/memory/v1/store.d.ts +544 -0
  103. package/lib/rest/memory/v1/store.js +534 -0
  104. package/lib/rest/memory/v1/trait.d.ts +233 -0
  105. package/lib/rest/memory/v1/trait.js +190 -0
  106. package/lib/rest/memory/v1/traitGroup.d.ts +758 -0
  107. package/lib/rest/memory/v1/traitGroup.js +555 -0
  108. package/lib/rest/messaging/v2/channelsSender.d.ts +8 -0
  109. package/lib/rest/messaging/v2/channelsSender.js +2 -0
  110. package/lib/rest/previewIam/versionless/organization/roleAssignment.d.ts +32 -0
  111. package/lib/rest/previewIam/versionless/organization/roleAssignment.js +14 -0
  112. package/lib/rest/studio/v2/flow.d.ts +4 -0
  113. package/lib/rest/studio/v2/flow.js +8 -0
  114. package/lib/rest/verify/v2/service/webhook.d.ts +2 -2
  115. package/lib/rest/verify/v2/service/webhook.js +8 -8
  116. package/lib/rest/voice/V3.d.ts +15 -0
  117. package/lib/rest/voice/V3.js +37 -0
  118. package/lib/rest/voice/v3/transcription.d.ts +378 -0
  119. package/lib/rest/voice/v3/transcription.js +264 -0
  120. package/lib/twiml/VoiceResponse.d.ts +8 -0
  121. package/package.json +1 -1
@@ -0,0 +1,630 @@
1
+ import { inspect, InspectOptions } from "util";
2
+ import TokenPage, { TokenPaginationPayload } from "../../../base/TokenPage";
3
+ import Response from "../../../http/response";
4
+ import V1 from "../V1";
5
+ import { ApiResponse } from "../../../base/ApiResponse";
6
+ /**
7
+ * A data mapping connects external data sources to a Memory Store, enabling automatic ingestion and mapping of data to profile traits.
8
+ */
9
+ export declare class CreateDataMappingInput {
10
+ /**
11
+ * Name of the data mapping.
12
+ */
13
+ "displayName": string;
14
+ /**
15
+ * A human readable description of this resource, up to 512 characters.
16
+ */
17
+ "description"?: string;
18
+ /**
19
+ * Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
20
+ */
21
+ "isEnabled"?: boolean;
22
+ "mappingTo": DataMappingToTraits;
23
+ "mappingFrom": DataMappingFromDataSet;
24
+ constructor(payload: any);
25
+ }
26
+ /**
27
+ * Writable fields of a data mapping. Used directly as the PATCH request body (all fields optional). Composed into CreateDataMappingInput via allOf.
28
+ */
29
+ export declare class DataMappingCore {
30
+ /**
31
+ * Name of the data mapping.
32
+ */
33
+ "displayName"?: string;
34
+ /**
35
+ * A human readable description of this resource, up to 512 characters.
36
+ */
37
+ "description"?: string;
38
+ /**
39
+ * Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
40
+ */
41
+ "isEnabled"?: boolean;
42
+ "mappingTo"?: DataMappingToTraits;
43
+ constructor(payload: any);
44
+ }
45
+ /**
46
+ * Configuration for mapping from a TDI dataset.
47
+ */
48
+ export declare class DataMappingFromDataSet {
49
+ /**
50
+ * The source data type, which determines the source of the data and the required configuration parameters.
51
+ */
52
+ "type": string;
53
+ /**
54
+ * The unique identifier of the TDI dataset to connect.
55
+ */
56
+ "datasetId": string;
57
+ constructor(payload: any);
58
+ }
59
+ /**
60
+ * Configuration for mapping data to traits in a Memory Store.
61
+ */
62
+ export declare class DataMappingToTraits {
63
+ /**
64
+ * The destination data type, which determines where to write the data and the required configuration parameters.
65
+ */
66
+ "type": string;
67
+ /**
68
+ * The list of field to trait mappings.
69
+ */
70
+ "mappings": Array<MappingTraitItem>;
71
+ constructor(payload: any);
72
+ }
73
+ /**
74
+ * The type of data mapping defining how data flows into the Memory Store.
75
+ */
76
+ export type DataMappingType = "DATASET";
77
+ /**
78
+ * Maps a field from a source to a Trait in the Memory Store.
79
+ */
80
+ export declare class MappingTraitItem {
81
+ /**
82
+ * The name of the field/column in the source. Deprecated in favor of expression.
83
+ */
84
+ "fieldName": string;
85
+ /**
86
+ * The expression identifying the field/column in the source.
87
+ */
88
+ "expression"?: string;
89
+ /**
90
+ * The name of the Trait Group to map to.
91
+ */
92
+ "traitGroup": string;
93
+ /**
94
+ * The name of the trait within the Trait Group to map to.
95
+ */
96
+ "traitName": string;
97
+ constructor(payload: any);
98
+ }
99
+ /**
100
+ * Options to pass to patch a DataMappingInstance
101
+ */
102
+ export interface DataMappingContextPatchOptions {
103
+ /** Allows for optimistic concurrency control by making the request conditional. Server will only act if the resource\'s current Entity Tag (ETag) matches the one provided, preventing accidental overwrites. */
104
+ ifMatch?: string;
105
+ /** */
106
+ dataMappingCore?: DataMappingCore;
107
+ }
108
+ /**
109
+ * Options to pass to create a DataMappingInstance
110
+ */
111
+ export interface DataMappingListInstanceCreateOptions {
112
+ /** */
113
+ createDataMappingInput: CreateDataMappingInput;
114
+ }
115
+ /**
116
+ * Options to pass to each
117
+ */
118
+ export interface DataMappingListInstanceEachOptions {
119
+ /** The maximum number of items to return per page, maximum of 100. */
120
+ pageSize?: number;
121
+ /** The token for the page of results to retrieve. */
122
+ pageToken?: string;
123
+ /** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
124
+ orderBy?: "ASC" | "DESC";
125
+ /** Filter data mappings by type. */
126
+ type?: DataMappingType;
127
+ /** Function to process each record. If this and a positional callback are passed, this one will be used */
128
+ callback?: (item: DataMappingInstance, done: (err?: Error) => void) => void;
129
+ /** Function to be called upon completion of streaming */
130
+ done?: Function;
131
+ /** Upper limit for the number of records to return. each() guarantees never to return more than limit. Default is no limit */
132
+ limit?: number;
133
+ }
134
+ /**
135
+ * Options to pass to list
136
+ */
137
+ export interface DataMappingListInstanceOptions {
138
+ /** The maximum number of items to return per page, maximum of 100. */
139
+ pageSize?: number;
140
+ /** The token for the page of results to retrieve. */
141
+ pageToken?: string;
142
+ /** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
143
+ orderBy?: "ASC" | "DESC";
144
+ /** Filter data mappings by type. */
145
+ type?: DataMappingType;
146
+ /** Upper limit for the number of records to return. list() guarantees never to return more than limit. Default is no limit */
147
+ limit?: number;
148
+ }
149
+ /**
150
+ * Options to pass to page
151
+ */
152
+ export interface DataMappingListInstancePageOptions {
153
+ /** The maximum number of items to return per page, maximum of 100. */
154
+ pageSize?: number;
155
+ /** The token for the page of results to retrieve. */
156
+ pageToken?: string;
157
+ /** Either \'ASC\' or \'DESC\' to sort results ascending or descending respectively. */
158
+ orderBy?: "ASC" | "DESC";
159
+ /** Filter data mappings by type. */
160
+ type?: DataMappingType;
161
+ }
162
+ export interface DataMappingContext {
163
+ /**
164
+ * Remove a DataMappingInstance
165
+ *
166
+ * @param callback - Callback to handle processed record
167
+ *
168
+ * @returns Resolves to processed DataMappingInstance
169
+ */
170
+ remove(callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
171
+ /**
172
+ * Remove a DataMappingInstance and return HTTP info
173
+ *
174
+ * @param callback - Callback to handle processed record
175
+ *
176
+ * @returns Resolves to processed DataMappingInstance with HTTP metadata
177
+ */
178
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
179
+ /**
180
+ * Fetch a DataMappingInstance
181
+ *
182
+ * @param callback - Callback to handle processed record
183
+ *
184
+ * @returns Resolves to processed DataMappingInstance
185
+ */
186
+ fetch(callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
187
+ /**
188
+ * Fetch a DataMappingInstance and return HTTP info
189
+ *
190
+ * @param callback - Callback to handle processed record
191
+ *
192
+ * @returns Resolves to processed DataMappingInstance with HTTP metadata
193
+ */
194
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
195
+ /**
196
+ * Patch a DataMappingInstance
197
+ *
198
+ * @param callback - Callback to handle processed record
199
+ *
200
+ * @returns Resolves to processed DataMappingInstance
201
+ */
202
+ patch(callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
203
+ /**
204
+ * Patch a DataMappingInstance
205
+ *
206
+ * @param params - Body for request
207
+ * @param headers - header params for request
208
+ * @param callback - Callback to handle processed record
209
+ *
210
+ * @returns Resolves to processed DataMappingInstance
211
+ */
212
+ patch(params: DataMappingCore, headers?: any, callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
213
+ /**
214
+ * Patch a DataMappingInstance and return HTTP info
215
+ *
216
+ * @param callback - Callback to handle processed record
217
+ *
218
+ * @returns Resolves to processed DataMappingInstance with HTTP metadata
219
+ */
220
+ patchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
221
+ /**
222
+ * Patch a DataMappingInstance and return HTTP info
223
+ *
224
+ * @param params - Body for request
225
+ * @param headers - header params for request
226
+ * @param callback - Callback to handle processed record
227
+ *
228
+ * @returns Resolves to processed DataMappingInstance with HTTP metadata
229
+ */
230
+ patchWithHttpInfo(params: DataMappingCore, headers?: any, callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
231
+ /**
232
+ * Provide a user-friendly representation
233
+ */
234
+ toJSON(): any;
235
+ [inspect.custom](_depth: any, options: InspectOptions): any;
236
+ }
237
+ export interface DataMappingContextSolution {
238
+ storeId: string;
239
+ dataMappingId: string;
240
+ }
241
+ export declare class DataMappingContextImpl implements DataMappingContext {
242
+ protected _version: V1;
243
+ protected _solution: DataMappingContextSolution;
244
+ protected _uri: string;
245
+ constructor(_version: V1, storeId: string, dataMappingId: string);
246
+ remove(callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
247
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
248
+ fetch(callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
249
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
250
+ patch(params?: DataMappingCore | ((error: Error | null, item?: DataMappingInstance) => any), headers?: any, callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
251
+ patchWithHttpInfo(params?: DataMappingCore | ((error: Error | null, item?: ApiResponse<DataMappingInstance>) => any), headers?: any, callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
252
+ /**
253
+ * Provide a user-friendly representation
254
+ *
255
+ * @returns Object
256
+ */
257
+ toJSON(): DataMappingContextSolution;
258
+ [inspect.custom](_depth: any, options: InspectOptions): string;
259
+ }
260
+ /**
261
+ * Nested model for CreateDataMappingInput
262
+ */
263
+ export interface CreateDataMappingInput {
264
+ displayName: string;
265
+ description?: string;
266
+ isEnabled?: boolean;
267
+ mappingTo: DataMappingToTraits;
268
+ mappingFrom: DataMappingFromDataSet;
269
+ }
270
+ /**
271
+ * Nested model for DataMappingCore
272
+ */
273
+ export interface DataMappingCore {
274
+ displayName?: string;
275
+ description?: string;
276
+ isEnabled?: boolean;
277
+ mappingTo?: DataMappingToTraits;
278
+ }
279
+ /**
280
+ * Nested model for DataMappingFromDataSet
281
+ */
282
+ export interface DataMappingFromDataSet {
283
+ type: string;
284
+ datasetId: string;
285
+ }
286
+ /**
287
+ * Nested model for DataMappingToTraits
288
+ */
289
+ export interface DataMappingToTraits {
290
+ type: string;
291
+ mappings: Array<MappingTraitItem>;
292
+ }
293
+ /**
294
+ * Nested model for MappingTraitItem
295
+ */
296
+ export interface MappingTraitItem {
297
+ fieldName: string;
298
+ expression?: string;
299
+ traitGroup: string;
300
+ traitName: string;
301
+ }
302
+ interface DataMappingPayload extends TokenPaginationPayload {
303
+ dataMappings: DataMappingResource[];
304
+ }
305
+ /**
306
+ * Response model for CreateDataMapping202Response operations
307
+ */
308
+ interface CreateDataMapping202Response_ResponseResource {
309
+ message?: string;
310
+ statusUrl?: string;
311
+ }
312
+ /**
313
+ * Response model for PatchDataMapping202Response operations
314
+ */
315
+ interface PatchDataMapping202Response_ResponseResource {
316
+ message?: string;
317
+ statusUrl?: string;
318
+ }
319
+ /**
320
+ * Response model for DataMapping operations
321
+ */
322
+ interface DataMapping_ResponseResource {
323
+ displayName: string;
324
+ description?: string;
325
+ isEnabled?: boolean;
326
+ mappingTo: DataMappingToTraits;
327
+ mappingFrom: DataMappingFromDataSet;
328
+ id: string;
329
+ createdAt: Date;
330
+ updatedAt: Date;
331
+ version: number;
332
+ }
333
+ /**
334
+ * Response model for DeleteDataMapping202Response operations
335
+ */
336
+ interface DeleteDataMapping202Response_ResponseResource {
337
+ message?: string;
338
+ statusUrl?: string;
339
+ }
340
+ /**
341
+ * Union type for all possible response models
342
+ */
343
+ type DataMappingResource = CreateDataMapping202Response_ResponseResource | PatchDataMapping202Response_ResponseResource | DataMapping_ResponseResource | DeleteDataMapping202Response_ResponseResource;
344
+ export declare class DataMappingInstance {
345
+ protected _version: V1;
346
+ protected _solution: DataMappingContextSolution;
347
+ protected _context?: DataMappingContext;
348
+ constructor(_version: V1, _payload: DataMappingResource, storeId: string, dataMappingId?: string);
349
+ message?: string;
350
+ /**
351
+ * URI to check operation status.
352
+ */
353
+ statusUrl?: string;
354
+ /**
355
+ * Name of the data mapping.
356
+ */
357
+ displayName?: string;
358
+ /**
359
+ * A human readable description of this resource, up to 512 characters.
360
+ */
361
+ description?: string;
362
+ /**
363
+ * Flag indicating whether the data mapping is active. When true, data will be ingested and mapped according to the configuration. When false, the data mapping will be inactive and no data will be ingested into the Memory Store.
364
+ */
365
+ isEnabled?: boolean;
366
+ mappingTo?: DataMappingToTraits;
367
+ mappingFrom?: DataMappingFromDataSet;
368
+ /**
369
+ * The unique identifier for the data mapping.
370
+ */
371
+ id?: string;
372
+ /**
373
+ * The ISO 8601 timestamp when the data mapping was created.
374
+ */
375
+ createdAt?: Date;
376
+ /**
377
+ * The ISO 8601 timestamp when the data mapping was last updated.
378
+ */
379
+ updatedAt?: Date;
380
+ /**
381
+ * The current version number of the DataMapping. Incremented on each successful update.
382
+ */
383
+ version?: number;
384
+ private get _proxy();
385
+ /**
386
+ * Remove a DataMappingInstance
387
+ *
388
+ * @param callback - Callback to handle processed record
389
+ *
390
+ * @returns Resolves to processed DataMappingInstance
391
+ */
392
+ remove(callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
393
+ /**
394
+ * Remove a DataMappingInstance and return HTTP info
395
+ *
396
+ * @param callback - Callback to handle processed record
397
+ *
398
+ * @returns Resolves to processed DataMappingInstance with HTTP metadata
399
+ */
400
+ removeWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
401
+ /**
402
+ * Fetch a DataMappingInstance
403
+ *
404
+ * @param callback - Callback to handle processed record
405
+ *
406
+ * @returns Resolves to processed DataMappingInstance
407
+ */
408
+ fetch(callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
409
+ /**
410
+ * Fetch a DataMappingInstance and return HTTP info
411
+ *
412
+ * @param callback - Callback to handle processed record
413
+ *
414
+ * @returns Resolves to processed DataMappingInstance with HTTP metadata
415
+ */
416
+ fetchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
417
+ /**
418
+ * Patch a DataMappingInstance
419
+ *
420
+ * @param callback - Callback to handle processed record
421
+ *
422
+ * @returns Resolves to processed DataMappingInstance
423
+ */
424
+ patch(callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
425
+ /**
426
+ * Patch a DataMappingInstance
427
+ *
428
+ * @param params - Body for request
429
+ * @param headers - header params for request
430
+ * @param callback - Callback to handle processed record
431
+ *
432
+ * @returns Resolves to processed DataMappingInstance
433
+ */
434
+ patch(params: DataMappingCore, headers?: any, callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
435
+ /**
436
+ * Patch a DataMappingInstance and return HTTP info
437
+ *
438
+ * @param callback - Callback to handle processed record
439
+ *
440
+ * @returns Resolves to processed DataMappingInstance with HTTP metadata
441
+ */
442
+ patchWithHttpInfo(callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
443
+ /**
444
+ * Patch a DataMappingInstance and return HTTP info
445
+ *
446
+ * @param params - Body for request
447
+ * @param headers - header params for request
448
+ * @param callback - Callback to handle processed record
449
+ *
450
+ * @returns Resolves to processed DataMappingInstance with HTTP metadata
451
+ */
452
+ patchWithHttpInfo(params: DataMappingCore, headers?: any, callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
453
+ /**
454
+ * Provide a user-friendly representation
455
+ *
456
+ * @returns Object
457
+ */
458
+ toJSON(): {
459
+ message: string;
460
+ statusUrl: string;
461
+ displayName: string;
462
+ description: string;
463
+ isEnabled: boolean;
464
+ mappingTo: DataMappingToTraits;
465
+ mappingFrom: DataMappingFromDataSet;
466
+ id: string;
467
+ createdAt: Date;
468
+ updatedAt: Date;
469
+ version: number;
470
+ };
471
+ [inspect.custom](_depth: any, options: InspectOptions): string;
472
+ }
473
+ export interface DataMappingSolution {
474
+ storeId: string;
475
+ }
476
+ export interface DataMappingListInstance {
477
+ _version: V1;
478
+ _solution: DataMappingSolution;
479
+ _uri: string;
480
+ (dataMappingId: string): DataMappingContext;
481
+ get(dataMappingId: string): DataMappingContext;
482
+ /**
483
+ * Create a DataMappingInstance
484
+ *
485
+ * @param params - Body for request
486
+ * @param headers - header params for request
487
+ * @param callback - Callback to handle processed record
488
+ *
489
+ * @returns Resolves to processed DataMappingInstance
490
+ */
491
+ create(params: CreateDataMappingInput, headers?: any, callback?: (error: Error | null, item?: DataMappingInstance) => any): Promise<DataMappingInstance>;
492
+ /**
493
+ * Create a DataMappingInstance and return HTTP info
494
+ *
495
+ * @param params - Body for request
496
+ * @param headers - header params for request
497
+ * @param callback - Callback to handle processed record
498
+ *
499
+ * @returns Resolves to processed DataMappingInstance with HTTP metadata
500
+ */
501
+ createWithHttpInfo(params: CreateDataMappingInput, headers?: any, callback?: (error: Error | null, item?: ApiResponse<DataMappingInstance>) => any): Promise<ApiResponse<DataMappingInstance>>;
502
+ /**
503
+ * Streams DataMappingInstance records from the API.
504
+ *
505
+ * This operation lazily loads records as efficiently as possible until the limit
506
+ * is reached.
507
+ *
508
+ * The results are passed into the callback function, so this operation is memory
509
+ * efficient.
510
+ *
511
+ * If a function is passed as the first argument, it will be used as the callback
512
+ * function.
513
+ *
514
+ * @param { DataMappingListInstanceEachOptions } [params] - Options for request
515
+ * @param { function } [callback] - Function to process each record
516
+ */
517
+ each(callback?: (item: DataMappingInstance, done: (err?: Error) => void) => void): void;
518
+ each(params: DataMappingListInstanceEachOptions, callback?: (item: DataMappingInstance, done: (err?: Error) => void) => void): void;
519
+ /**
520
+ * Streams DataMappingInstance records from the API with HTTP metadata captured per page.
521
+ *
522
+ * This operation lazily loads records as efficiently as possible until the limit
523
+ * is reached. HTTP metadata (status code, headers) is captured for each page request.
524
+ *
525
+ * The results are passed into the callback function, so this operation is memory
526
+ * efficient.
527
+ *
528
+ * If a function is passed as the first argument, it will be used as the callback
529
+ * function.
530
+ *
531
+ * @param { DataMappingListInstanceEachOptions } [params] - Options for request
532
+ * @param { function } [callback] - Function to process each record
533
+ */
534
+ eachWithHttpInfo(callback?: (item: DataMappingInstance, done: (err?: Error) => void) => void): void;
535
+ eachWithHttpInfo(params: DataMappingListInstanceEachOptions, callback?: (item: DataMappingInstance, done: (err?: Error) => void) => void): void;
536
+ /**
537
+ * Retrieve a single target page of DataMappingInstance records from the API.
538
+ *
539
+ * The request is executed immediately.
540
+ *
541
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
542
+ * @param { function } [callback] - Callback to handle list of records
543
+ */
544
+ getPage(targetUrl: string, callback?: (error: Error | null, items: DataMappingPage) => any): Promise<DataMappingPage>;
545
+ /**
546
+ * Retrieve a single target page of DataMappingInstance records from the API with HTTP metadata.
547
+ *
548
+ * The request is executed immediately.
549
+ *
550
+ * @param { string } [targetUrl] - API-generated URL for the requested results page
551
+ * @param { function } [callback] - Callback to handle list of records with metadata
552
+ */
553
+ getPageWithHttpInfo(targetUrl: string, callback?: (error: Error | null, items: ApiResponse<DataMappingPage>) => any): Promise<ApiResponse<DataMappingPage>>;
554
+ /**
555
+ * Lists DataMappingInstance records from the API as a list.
556
+ *
557
+ * If a function is passed as the first argument, it will be used as the callback
558
+ * function.
559
+ *
560
+ * @param { DataMappingListInstanceOptions } [params] - Options for request
561
+ * @param { function } [callback] - Callback to handle list of records
562
+ */
563
+ list(callback?: (error: Error | null, items: DataMappingInstance[]) => any): Promise<DataMappingInstance[]>;
564
+ list(params: DataMappingListInstanceOptions, callback?: (error: Error | null, items: DataMappingInstance[]) => any): Promise<DataMappingInstance[]>;
565
+ /**
566
+ * Lists DataMappingInstance records from the API as a list with HTTP metadata.
567
+ *
568
+ * Returns all records along with HTTP metadata from the first page fetched.
569
+ *
570
+ * If a function is passed as the first argument, it will be used as the callback
571
+ * function.
572
+ *
573
+ * @param { DataMappingListInstanceOptions } [params] - Options for request
574
+ * @param { function } [callback] - Callback to handle list of records with metadata
575
+ */
576
+ listWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<DataMappingInstance[]>) => any): Promise<ApiResponse<DataMappingInstance[]>>;
577
+ listWithHttpInfo(params: DataMappingListInstanceOptions, callback?: (error: Error | null, items: ApiResponse<DataMappingInstance[]>) => any): Promise<ApiResponse<DataMappingInstance[]>>;
578
+ /**
579
+ * Retrieve a single page of DataMappingInstance records from the API.
580
+ *
581
+ * The request is executed immediately.
582
+ *
583
+ * If a function is passed as the first argument, it will be used as the callback
584
+ * function.
585
+ *
586
+ * @param { DataMappingListInstancePageOptions } [params] - Options for request
587
+ * @param { function } [callback] - Callback to handle list of records
588
+ */
589
+ page(callback?: (error: Error | null, items: DataMappingPage) => any): Promise<DataMappingPage>;
590
+ page(params: DataMappingListInstancePageOptions, callback?: (error: Error | null, items: DataMappingPage) => any): Promise<DataMappingPage>;
591
+ /**
592
+ * Retrieve a single page of DataMappingInstance records from the API with HTTP metadata.
593
+ *
594
+ * The request is executed immediately.
595
+ *
596
+ * If a function is passed as the first argument, it will be used as the callback
597
+ * function.
598
+ *
599
+ * @param { DataMappingListInstancePageOptions } [params] - Options for request
600
+ * @param { function } [callback] - Callback to handle list of records with metadata
601
+ */
602
+ pageWithHttpInfo(callback?: (error: Error | null, items: ApiResponse<DataMappingPage>) => any): Promise<ApiResponse<DataMappingPage>>;
603
+ pageWithHttpInfo(params: DataMappingListInstancePageOptions, callback?: (error: Error | null, items: ApiResponse<DataMappingPage>) => any): Promise<ApiResponse<DataMappingPage>>;
604
+ /**
605
+ * Provide a user-friendly representation
606
+ */
607
+ toJSON(): any;
608
+ [inspect.custom](_depth: any, options: InspectOptions): any;
609
+ }
610
+ export declare function DataMappingListInstance(version: V1, storeId: string): DataMappingListInstance;
611
+ export declare class DataMappingPage extends TokenPage<V1, DataMappingPayload, DataMappingResource, DataMappingInstance> {
612
+ /**
613
+ * Initialize the DataMappingPage
614
+ *
615
+ * @param version - Version of the resource
616
+ * @param response - Response from the API
617
+ * @param uri - URI of the resource
618
+ * @param params - Query parameters
619
+ * @param solution - Path solution
620
+ */
621
+ constructor(version: V1, response: Response<string>, uri: string, params: any, solution: DataMappingSolution);
622
+ /**
623
+ * Build an instance of DataMappingInstance
624
+ *
625
+ * @param payload - Payload response from the API
626
+ */
627
+ getInstance(payload: DataMappingResource): DataMappingInstance;
628
+ [inspect.custom](depth: any, options: InspectOptions): string;
629
+ }
630
+ export {};