@aws-sdk/client-appflow 3.310.0 → 3.315.0

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.
@@ -1,5 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
- import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map as __map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, throwDefaultError, } from "@aws-sdk/smithy-client";
2
+ import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, map, parseEpochTimestamp as __parseEpochTimestamp, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
3
+ import { v4 as generateIdempotencyToken } from "uuid";
3
4
  import { AppflowServiceException as __BaseException } from "../models/AppflowServiceException";
4
5
  import { AccessDeniedException, ConflictException, ConnectorAuthenticationException, ConnectorServerException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnsupportedOperationException, ValidationException, } from "../models/models_0";
5
6
  export const se_CreateConnectorProfileCommand = async (input, context) => {
@@ -9,16 +10,15 @@ export const se_CreateConnectorProfileCommand = async (input, context) => {
9
10
  };
10
11
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-connector-profile";
11
12
  let body;
12
- body = JSON.stringify({
13
- ...(input.connectionMode != null && { connectionMode: input.connectionMode }),
14
- ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
15
- ...(input.connectorProfileConfig != null && {
16
- connectorProfileConfig: se_ConnectorProfileConfig(input.connectorProfileConfig, context),
17
- }),
18
- ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
19
- ...(input.connectorType != null && { connectorType: input.connectorType }),
20
- ...(input.kmsArn != null && { kmsArn: input.kmsArn }),
21
- });
13
+ body = JSON.stringify(take(input, {
14
+ clientToken: (_) => _ ?? generateIdempotencyToken(),
15
+ connectionMode: [],
16
+ connectorLabel: [],
17
+ connectorProfileConfig: (_) => _json(_),
18
+ connectorProfileName: [],
19
+ connectorType: [],
20
+ kmsArn: [],
21
+ }));
22
22
  return new __HttpRequest({
23
23
  protocol,
24
24
  hostname,
@@ -36,21 +36,18 @@ export const se_CreateFlowCommand = async (input, context) => {
36
36
  };
37
37
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/create-flow";
38
38
  let body;
39
- body = JSON.stringify({
40
- ...(input.description != null && { description: input.description }),
41
- ...(input.destinationFlowConfigList != null && {
42
- destinationFlowConfigList: se_DestinationFlowConfigList(input.destinationFlowConfigList, context),
43
- }),
44
- ...(input.flowName != null && { flowName: input.flowName }),
45
- ...(input.kmsArn != null && { kmsArn: input.kmsArn }),
46
- ...(input.metadataCatalogConfig != null && {
47
- metadataCatalogConfig: se_MetadataCatalogConfig(input.metadataCatalogConfig, context),
48
- }),
49
- ...(input.sourceFlowConfig != null && { sourceFlowConfig: se_SourceFlowConfig(input.sourceFlowConfig, context) }),
50
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
51
- ...(input.tasks != null && { tasks: se_Tasks(input.tasks, context) }),
52
- ...(input.triggerConfig != null && { triggerConfig: se_TriggerConfig(input.triggerConfig, context) }),
53
- });
39
+ body = JSON.stringify(take(input, {
40
+ clientToken: (_) => _ ?? generateIdempotencyToken(),
41
+ description: [],
42
+ destinationFlowConfigList: (_) => _json(_),
43
+ flowName: [],
44
+ kmsArn: [],
45
+ metadataCatalogConfig: (_) => _json(_),
46
+ sourceFlowConfig: (_) => _json(_),
47
+ tags: (_) => _json(_),
48
+ tasks: (_) => _json(_),
49
+ triggerConfig: (_) => se_TriggerConfig(_, context),
50
+ }));
54
51
  return new __HttpRequest({
55
52
  protocol,
56
53
  hostname,
@@ -68,10 +65,10 @@ export const se_DeleteConnectorProfileCommand = async (input, context) => {
68
65
  };
69
66
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-connector-profile";
70
67
  let body;
71
- body = JSON.stringify({
72
- ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
73
- ...(input.forceDelete != null && { forceDelete: input.forceDelete }),
74
- });
68
+ body = JSON.stringify(take(input, {
69
+ connectorProfileName: [],
70
+ forceDelete: [],
71
+ }));
75
72
  return new __HttpRequest({
76
73
  protocol,
77
74
  hostname,
@@ -89,10 +86,10 @@ export const se_DeleteFlowCommand = async (input, context) => {
89
86
  };
90
87
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/delete-flow";
91
88
  let body;
92
- body = JSON.stringify({
93
- ...(input.flowName != null && { flowName: input.flowName }),
94
- ...(input.forceDelete != null && { forceDelete: input.forceDelete }),
95
- });
89
+ body = JSON.stringify(take(input, {
90
+ flowName: [],
91
+ forceDelete: [],
92
+ }));
96
93
  return new __HttpRequest({
97
94
  protocol,
98
95
  hostname,
@@ -110,10 +107,10 @@ export const se_DescribeConnectorCommand = async (input, context) => {
110
107
  };
111
108
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector";
112
109
  let body;
113
- body = JSON.stringify({
114
- ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
115
- ...(input.connectorType != null && { connectorType: input.connectorType }),
116
- });
110
+ body = JSON.stringify(take(input, {
111
+ connectorLabel: [],
112
+ connectorType: [],
113
+ }));
117
114
  return new __HttpRequest({
118
115
  protocol,
119
116
  hostname,
@@ -131,12 +128,12 @@ export const se_DescribeConnectorEntityCommand = async (input, context) => {
131
128
  };
132
129
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector-entity";
133
130
  let body;
134
- body = JSON.stringify({
135
- ...(input.apiVersion != null && { apiVersion: input.apiVersion }),
136
- ...(input.connectorEntityName != null && { connectorEntityName: input.connectorEntityName }),
137
- ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
138
- ...(input.connectorType != null && { connectorType: input.connectorType }),
139
- });
131
+ body = JSON.stringify(take(input, {
132
+ apiVersion: [],
133
+ connectorEntityName: [],
134
+ connectorProfileName: [],
135
+ connectorType: [],
136
+ }));
140
137
  return new __HttpRequest({
141
138
  protocol,
142
139
  hostname,
@@ -154,15 +151,13 @@ export const se_DescribeConnectorProfilesCommand = async (input, context) => {
154
151
  };
155
152
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connector-profiles";
156
153
  let body;
157
- body = JSON.stringify({
158
- ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
159
- ...(input.connectorProfileNames != null && {
160
- connectorProfileNames: se_ConnectorProfileNameList(input.connectorProfileNames, context),
161
- }),
162
- ...(input.connectorType != null && { connectorType: input.connectorType }),
163
- ...(input.maxResults != null && { maxResults: input.maxResults }),
164
- ...(input.nextToken != null && { nextToken: input.nextToken }),
165
- });
154
+ body = JSON.stringify(take(input, {
155
+ connectorLabel: [],
156
+ connectorProfileNames: (_) => _json(_),
157
+ connectorType: [],
158
+ maxResults: [],
159
+ nextToken: [],
160
+ }));
166
161
  return new __HttpRequest({
167
162
  protocol,
168
163
  hostname,
@@ -180,11 +175,11 @@ export const se_DescribeConnectorsCommand = async (input, context) => {
180
175
  };
181
176
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-connectors";
182
177
  let body;
183
- body = JSON.stringify({
184
- ...(input.connectorTypes != null && { connectorTypes: se_ConnectorTypeList(input.connectorTypes, context) }),
185
- ...(input.maxResults != null && { maxResults: input.maxResults }),
186
- ...(input.nextToken != null && { nextToken: input.nextToken }),
187
- });
178
+ body = JSON.stringify(take(input, {
179
+ connectorTypes: (_) => _json(_),
180
+ maxResults: [],
181
+ nextToken: [],
182
+ }));
188
183
  return new __HttpRequest({
189
184
  protocol,
190
185
  hostname,
@@ -202,9 +197,9 @@ export const se_DescribeFlowCommand = async (input, context) => {
202
197
  };
203
198
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-flow";
204
199
  let body;
205
- body = JSON.stringify({
206
- ...(input.flowName != null && { flowName: input.flowName }),
207
- });
200
+ body = JSON.stringify(take(input, {
201
+ flowName: [],
202
+ }));
208
203
  return new __HttpRequest({
209
204
  protocol,
210
205
  hostname,
@@ -222,11 +217,11 @@ export const se_DescribeFlowExecutionRecordsCommand = async (input, context) =>
222
217
  };
223
218
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/describe-flow-execution-records";
224
219
  let body;
225
- body = JSON.stringify({
226
- ...(input.flowName != null && { flowName: input.flowName }),
227
- ...(input.maxResults != null && { maxResults: input.maxResults }),
228
- ...(input.nextToken != null && { nextToken: input.nextToken }),
229
- });
220
+ body = JSON.stringify(take(input, {
221
+ flowName: [],
222
+ maxResults: [],
223
+ nextToken: [],
224
+ }));
230
225
  return new __HttpRequest({
231
226
  protocol,
232
227
  hostname,
@@ -244,14 +239,14 @@ export const se_ListConnectorEntitiesCommand = async (input, context) => {
244
239
  };
245
240
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-connector-entities";
246
241
  let body;
247
- body = JSON.stringify({
248
- ...(input.apiVersion != null && { apiVersion: input.apiVersion }),
249
- ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
250
- ...(input.connectorType != null && { connectorType: input.connectorType }),
251
- ...(input.entitiesPath != null && { entitiesPath: input.entitiesPath }),
252
- ...(input.maxResults != null && { maxResults: input.maxResults }),
253
- ...(input.nextToken != null && { nextToken: input.nextToken }),
254
- });
242
+ body = JSON.stringify(take(input, {
243
+ apiVersion: [],
244
+ connectorProfileName: [],
245
+ connectorType: [],
246
+ entitiesPath: [],
247
+ maxResults: [],
248
+ nextToken: [],
249
+ }));
255
250
  return new __HttpRequest({
256
251
  protocol,
257
252
  hostname,
@@ -269,10 +264,10 @@ export const se_ListConnectorsCommand = async (input, context) => {
269
264
  };
270
265
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-connectors";
271
266
  let body;
272
- body = JSON.stringify({
273
- ...(input.maxResults != null && { maxResults: input.maxResults }),
274
- ...(input.nextToken != null && { nextToken: input.nextToken }),
275
- });
267
+ body = JSON.stringify(take(input, {
268
+ maxResults: [],
269
+ nextToken: [],
270
+ }));
276
271
  return new __HttpRequest({
277
272
  protocol,
278
273
  hostname,
@@ -290,10 +285,10 @@ export const se_ListFlowsCommand = async (input, context) => {
290
285
  };
291
286
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/list-flows";
292
287
  let body;
293
- body = JSON.stringify({
294
- ...(input.maxResults != null && { maxResults: input.maxResults }),
295
- ...(input.nextToken != null && { nextToken: input.nextToken }),
296
- });
288
+ body = JSON.stringify(take(input, {
289
+ maxResults: [],
290
+ nextToken: [],
291
+ }));
297
292
  return new __HttpRequest({
298
293
  protocol,
299
294
  hostname,
@@ -327,14 +322,13 @@ export const se_RegisterConnectorCommand = async (input, context) => {
327
322
  };
328
323
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/register-connector";
329
324
  let body;
330
- body = JSON.stringify({
331
- ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
332
- ...(input.connectorProvisioningConfig != null && {
333
- connectorProvisioningConfig: se_ConnectorProvisioningConfig(input.connectorProvisioningConfig, context),
334
- }),
335
- ...(input.connectorProvisioningType != null && { connectorProvisioningType: input.connectorProvisioningType }),
336
- ...(input.description != null && { description: input.description }),
337
- });
325
+ body = JSON.stringify(take(input, {
326
+ clientToken: (_) => _ ?? generateIdempotencyToken(),
327
+ connectorLabel: [],
328
+ connectorProvisioningConfig: (_) => _json(_),
329
+ connectorProvisioningType: [],
330
+ description: [],
331
+ }));
338
332
  return new __HttpRequest({
339
333
  protocol,
340
334
  hostname,
@@ -352,9 +346,10 @@ export const se_StartFlowCommand = async (input, context) => {
352
346
  };
353
347
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/start-flow";
354
348
  let body;
355
- body = JSON.stringify({
356
- ...(input.flowName != null && { flowName: input.flowName }),
357
- });
349
+ body = JSON.stringify(take(input, {
350
+ clientToken: (_) => _ ?? generateIdempotencyToken(),
351
+ flowName: [],
352
+ }));
358
353
  return new __HttpRequest({
359
354
  protocol,
360
355
  hostname,
@@ -372,9 +367,9 @@ export const se_StopFlowCommand = async (input, context) => {
372
367
  };
373
368
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/stop-flow";
374
369
  let body;
375
- body = JSON.stringify({
376
- ...(input.flowName != null && { flowName: input.flowName }),
377
- });
370
+ body = JSON.stringify(take(input, {
371
+ flowName: [],
372
+ }));
378
373
  return new __HttpRequest({
379
374
  protocol,
380
375
  hostname,
@@ -393,9 +388,9 @@ export const se_TagResourceCommand = async (input, context) => {
393
388
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
394
389
  resolvedPath = __resolvedPath(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
395
390
  let body;
396
- body = JSON.stringify({
397
- ...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
398
- });
391
+ body = JSON.stringify(take(input, {
392
+ tags: (_) => _json(_),
393
+ }));
399
394
  return new __HttpRequest({
400
395
  protocol,
401
396
  hostname,
@@ -413,10 +408,10 @@ export const se_UnregisterConnectorCommand = async (input, context) => {
413
408
  };
414
409
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/unregister-connector";
415
410
  let body;
416
- body = JSON.stringify({
417
- ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
418
- ...(input.forceDelete != null && { forceDelete: input.forceDelete }),
419
- });
411
+ body = JSON.stringify(take(input, {
412
+ connectorLabel: [],
413
+ forceDelete: [],
414
+ }));
420
415
  return new __HttpRequest({
421
416
  protocol,
422
417
  hostname,
@@ -457,13 +452,12 @@ export const se_UpdateConnectorProfileCommand = async (input, context) => {
457
452
  };
458
453
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-profile";
459
454
  let body;
460
- body = JSON.stringify({
461
- ...(input.connectionMode != null && { connectionMode: input.connectionMode }),
462
- ...(input.connectorProfileConfig != null && {
463
- connectorProfileConfig: se_ConnectorProfileConfig(input.connectorProfileConfig, context),
464
- }),
465
- ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
466
- });
455
+ body = JSON.stringify(take(input, {
456
+ clientToken: (_) => _ ?? generateIdempotencyToken(),
457
+ connectionMode: [],
458
+ connectorProfileConfig: (_) => _json(_),
459
+ connectorProfileName: [],
460
+ }));
467
461
  return new __HttpRequest({
468
462
  protocol,
469
463
  hostname,
@@ -481,13 +475,12 @@ export const se_UpdateConnectorRegistrationCommand = async (input, context) => {
481
475
  };
482
476
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-connector-registration";
483
477
  let body;
484
- body = JSON.stringify({
485
- ...(input.connectorLabel != null && { connectorLabel: input.connectorLabel }),
486
- ...(input.connectorProvisioningConfig != null && {
487
- connectorProvisioningConfig: se_ConnectorProvisioningConfig(input.connectorProvisioningConfig, context),
488
- }),
489
- ...(input.description != null && { description: input.description }),
490
- });
478
+ body = JSON.stringify(take(input, {
479
+ clientToken: (_) => _ ?? generateIdempotencyToken(),
480
+ connectorLabel: [],
481
+ connectorProvisioningConfig: (_) => _json(_),
482
+ description: [],
483
+ }));
491
484
  return new __HttpRequest({
492
485
  protocol,
493
486
  hostname,
@@ -505,19 +498,16 @@ export const se_UpdateFlowCommand = async (input, context) => {
505
498
  };
506
499
  const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/update-flow";
507
500
  let body;
508
- body = JSON.stringify({
509
- ...(input.description != null && { description: input.description }),
510
- ...(input.destinationFlowConfigList != null && {
511
- destinationFlowConfigList: se_DestinationFlowConfigList(input.destinationFlowConfigList, context),
512
- }),
513
- ...(input.flowName != null && { flowName: input.flowName }),
514
- ...(input.metadataCatalogConfig != null && {
515
- metadataCatalogConfig: se_MetadataCatalogConfig(input.metadataCatalogConfig, context),
516
- }),
517
- ...(input.sourceFlowConfig != null && { sourceFlowConfig: se_SourceFlowConfig(input.sourceFlowConfig, context) }),
518
- ...(input.tasks != null && { tasks: se_Tasks(input.tasks, context) }),
519
- ...(input.triggerConfig != null && { triggerConfig: se_TriggerConfig(input.triggerConfig, context) }),
520
- });
501
+ body = JSON.stringify(take(input, {
502
+ clientToken: (_) => _ ?? generateIdempotencyToken(),
503
+ description: [],
504
+ destinationFlowConfigList: (_) => _json(_),
505
+ flowName: [],
506
+ metadataCatalogConfig: (_) => _json(_),
507
+ sourceFlowConfig: (_) => _json(_),
508
+ tasks: (_) => _json(_),
509
+ triggerConfig: (_) => se_TriggerConfig(_, context),
510
+ }));
521
511
  return new __HttpRequest({
522
512
  protocol,
523
513
  hostname,
@@ -536,9 +526,10 @@ export const de_CreateConnectorProfileCommand = async (output, context) => {
536
526
  $metadata: deserializeMetadata(output),
537
527
  });
538
528
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
539
- if (data.connectorProfileArn != null) {
540
- contents.connectorProfileArn = __expectString(data.connectorProfileArn);
541
- }
529
+ const doc = take(data, {
530
+ connectorProfileArn: __expectString,
531
+ });
532
+ Object.assign(contents, doc);
542
533
  return contents;
543
534
  };
544
535
  const de_CreateConnectorProfileCommandError = async (output, context) => {
@@ -565,10 +556,9 @@ const de_CreateConnectorProfileCommandError = async (output, context) => {
565
556
  throw await de_ValidationExceptionRes(parsedOutput, context);
566
557
  default:
567
558
  const parsedBody = parsedOutput.body;
568
- throwDefaultError({
559
+ return throwDefaultError({
569
560
  output,
570
561
  parsedBody,
571
- exceptionCtor: __BaseException,
572
562
  errorCode,
573
563
  });
574
564
  }
@@ -581,12 +571,11 @@ export const de_CreateFlowCommand = async (output, context) => {
581
571
  $metadata: deserializeMetadata(output),
582
572
  });
583
573
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
584
- if (data.flowArn != null) {
585
- contents.flowArn = __expectString(data.flowArn);
586
- }
587
- if (data.flowStatus != null) {
588
- contents.flowStatus = __expectString(data.flowStatus);
589
- }
574
+ const doc = take(data, {
575
+ flowArn: __expectString,
576
+ flowStatus: __expectString,
577
+ });
578
+ Object.assign(contents, doc);
590
579
  return contents;
591
580
  };
592
581
  const de_CreateFlowCommandError = async (output, context) => {
@@ -619,10 +608,9 @@ const de_CreateFlowCommandError = async (output, context) => {
619
608
  throw await de_ValidationExceptionRes(parsedOutput, context);
620
609
  default:
621
610
  const parsedBody = parsedOutput.body;
622
- throwDefaultError({
611
+ return throwDefaultError({
623
612
  output,
624
613
  parsedBody,
625
- exceptionCtor: __BaseException,
626
614
  errorCode,
627
615
  });
628
616
  }
@@ -655,10 +643,9 @@ const de_DeleteConnectorProfileCommandError = async (output, context) => {
655
643
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
656
644
  default:
657
645
  const parsedBody = parsedOutput.body;
658
- throwDefaultError({
646
+ return throwDefaultError({
659
647
  output,
660
648
  parsedBody,
661
- exceptionCtor: __BaseException,
662
649
  errorCode,
663
650
  });
664
651
  }
@@ -691,10 +678,9 @@ const de_DeleteFlowCommandError = async (output, context) => {
691
678
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
692
679
  default:
693
680
  const parsedBody = parsedOutput.body;
694
- throwDefaultError({
681
+ return throwDefaultError({
695
682
  output,
696
683
  parsedBody,
697
- exceptionCtor: __BaseException,
698
684
  errorCode,
699
685
  });
700
686
  }
@@ -707,9 +693,10 @@ export const de_DescribeConnectorCommand = async (output, context) => {
707
693
  $metadata: deserializeMetadata(output),
708
694
  });
709
695
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
710
- if (data.connectorConfiguration != null) {
711
- contents.connectorConfiguration = de_ConnectorConfiguration(data.connectorConfiguration, context);
712
- }
696
+ const doc = take(data, {
697
+ connectorConfiguration: (_) => de_ConnectorConfiguration(_, context),
698
+ });
699
+ Object.assign(contents, doc);
713
700
  return contents;
714
701
  };
715
702
  const de_DescribeConnectorCommandError = async (output, context) => {
@@ -730,10 +717,9 @@ const de_DescribeConnectorCommandError = async (output, context) => {
730
717
  throw await de_ValidationExceptionRes(parsedOutput, context);
731
718
  default:
732
719
  const parsedBody = parsedOutput.body;
733
- throwDefaultError({
720
+ return throwDefaultError({
734
721
  output,
735
722
  parsedBody,
736
- exceptionCtor: __BaseException,
737
723
  errorCode,
738
724
  });
739
725
  }
@@ -746,9 +732,10 @@ export const de_DescribeConnectorEntityCommand = async (output, context) => {
746
732
  $metadata: deserializeMetadata(output),
747
733
  });
748
734
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
749
- if (data.connectorEntityFields != null) {
750
- contents.connectorEntityFields = de_ConnectorEntityFieldList(data.connectorEntityFields, context);
751
- }
735
+ const doc = take(data, {
736
+ connectorEntityFields: (_) => de_ConnectorEntityFieldList(_, context),
737
+ });
738
+ Object.assign(contents, doc);
752
739
  return contents;
753
740
  };
754
741
  const de_DescribeConnectorEntityCommandError = async (output, context) => {
@@ -775,10 +762,9 @@ const de_DescribeConnectorEntityCommandError = async (output, context) => {
775
762
  throw await de_ValidationExceptionRes(parsedOutput, context);
776
763
  default:
777
764
  const parsedBody = parsedOutput.body;
778
- throwDefaultError({
765
+ return throwDefaultError({
779
766
  output,
780
767
  parsedBody,
781
- exceptionCtor: __BaseException,
782
768
  errorCode,
783
769
  });
784
770
  }
@@ -791,12 +777,11 @@ export const de_DescribeConnectorProfilesCommand = async (output, context) => {
791
777
  $metadata: deserializeMetadata(output),
792
778
  });
793
779
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
794
- if (data.connectorProfileDetails != null) {
795
- contents.connectorProfileDetails = de_ConnectorProfileDetailList(data.connectorProfileDetails, context);
796
- }
797
- if (data.nextToken != null) {
798
- contents.nextToken = __expectString(data.nextToken);
799
- }
780
+ const doc = take(data, {
781
+ connectorProfileDetails: (_) => de_ConnectorProfileDetailList(_, context),
782
+ nextToken: __expectString,
783
+ });
784
+ Object.assign(contents, doc);
800
785
  return contents;
801
786
  };
802
787
  const de_DescribeConnectorProfilesCommandError = async (output, context) => {
@@ -814,10 +799,9 @@ const de_DescribeConnectorProfilesCommandError = async (output, context) => {
814
799
  throw await de_ValidationExceptionRes(parsedOutput, context);
815
800
  default:
816
801
  const parsedBody = parsedOutput.body;
817
- throwDefaultError({
802
+ return throwDefaultError({
818
803
  output,
819
804
  parsedBody,
820
- exceptionCtor: __BaseException,
821
805
  errorCode,
822
806
  });
823
807
  }
@@ -830,15 +814,12 @@ export const de_DescribeConnectorsCommand = async (output, context) => {
830
814
  $metadata: deserializeMetadata(output),
831
815
  });
832
816
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
833
- if (data.connectorConfigurations != null) {
834
- contents.connectorConfigurations = de_ConnectorConfigurationsMap(data.connectorConfigurations, context);
835
- }
836
- if (data.connectors != null) {
837
- contents.connectors = de_ConnectorList(data.connectors, context);
838
- }
839
- if (data.nextToken != null) {
840
- contents.nextToken = __expectString(data.nextToken);
841
- }
817
+ const doc = take(data, {
818
+ connectorConfigurations: (_) => de_ConnectorConfigurationsMap(_, context),
819
+ connectors: (_) => de_ConnectorList(_, context),
820
+ nextToken: __expectString,
821
+ });
822
+ Object.assign(contents, doc);
842
823
  return contents;
843
824
  };
844
825
  const de_DescribeConnectorsCommandError = async (output, context) => {
@@ -856,10 +837,9 @@ const de_DescribeConnectorsCommandError = async (output, context) => {
856
837
  throw await de_ValidationExceptionRes(parsedOutput, context);
857
838
  default:
858
839
  const parsedBody = parsedOutput.body;
859
- throwDefaultError({
840
+ return throwDefaultError({
860
841
  output,
861
842
  parsedBody,
862
- exceptionCtor: __BaseException,
863
843
  errorCode,
864
844
  });
865
845
  }
@@ -872,63 +852,28 @@ export const de_DescribeFlowCommand = async (output, context) => {
872
852
  $metadata: deserializeMetadata(output),
873
853
  });
874
854
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
875
- if (data.createdAt != null) {
876
- contents.createdAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.createdAt)));
877
- }
878
- if (data.createdBy != null) {
879
- contents.createdBy = __expectString(data.createdBy);
880
- }
881
- if (data.description != null) {
882
- contents.description = __expectString(data.description);
883
- }
884
- if (data.destinationFlowConfigList != null) {
885
- contents.destinationFlowConfigList = de_DestinationFlowConfigList(data.destinationFlowConfigList, context);
886
- }
887
- if (data.flowArn != null) {
888
- contents.flowArn = __expectString(data.flowArn);
889
- }
890
- if (data.flowName != null) {
891
- contents.flowName = __expectString(data.flowName);
892
- }
893
- if (data.flowStatus != null) {
894
- contents.flowStatus = __expectString(data.flowStatus);
895
- }
896
- if (data.flowStatusMessage != null) {
897
- contents.flowStatusMessage = __expectString(data.flowStatusMessage);
898
- }
899
- if (data.kmsArn != null) {
900
- contents.kmsArn = __expectString(data.kmsArn);
901
- }
902
- if (data.lastRunExecutionDetails != null) {
903
- contents.lastRunExecutionDetails = de_ExecutionDetails(data.lastRunExecutionDetails, context);
904
- }
905
- if (data.lastRunMetadataCatalogDetails != null) {
906
- contents.lastRunMetadataCatalogDetails = de_MetadataCatalogDetails(data.lastRunMetadataCatalogDetails, context);
907
- }
908
- if (data.lastUpdatedAt != null) {
909
- contents.lastUpdatedAt = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.lastUpdatedAt)));
910
- }
911
- if (data.lastUpdatedBy != null) {
912
- contents.lastUpdatedBy = __expectString(data.lastUpdatedBy);
913
- }
914
- if (data.metadataCatalogConfig != null) {
915
- contents.metadataCatalogConfig = de_MetadataCatalogConfig(data.metadataCatalogConfig, context);
916
- }
917
- if (data.schemaVersion != null) {
918
- contents.schemaVersion = __expectLong(data.schemaVersion);
919
- }
920
- if (data.sourceFlowConfig != null) {
921
- contents.sourceFlowConfig = de_SourceFlowConfig(data.sourceFlowConfig, context);
922
- }
923
- if (data.tags != null) {
924
- contents.tags = de_TagMap(data.tags, context);
925
- }
926
- if (data.tasks != null) {
927
- contents.tasks = de_Tasks(data.tasks, context);
928
- }
929
- if (data.triggerConfig != null) {
930
- contents.triggerConfig = de_TriggerConfig(data.triggerConfig, context);
931
- }
855
+ const doc = take(data, {
856
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
857
+ createdBy: __expectString,
858
+ description: __expectString,
859
+ destinationFlowConfigList: _json,
860
+ flowArn: __expectString,
861
+ flowName: __expectString,
862
+ flowStatus: __expectString,
863
+ flowStatusMessage: __expectString,
864
+ kmsArn: __expectString,
865
+ lastRunExecutionDetails: (_) => de_ExecutionDetails(_, context),
866
+ lastRunMetadataCatalogDetails: _json,
867
+ lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
868
+ lastUpdatedBy: __expectString,
869
+ metadataCatalogConfig: _json,
870
+ schemaVersion: __expectLong,
871
+ sourceFlowConfig: _json,
872
+ tags: _json,
873
+ tasks: _json,
874
+ triggerConfig: (_) => de_TriggerConfig(_, context),
875
+ });
876
+ Object.assign(contents, doc);
932
877
  return contents;
933
878
  };
934
879
  const de_DescribeFlowCommandError = async (output, context) => {
@@ -946,10 +891,9 @@ const de_DescribeFlowCommandError = async (output, context) => {
946
891
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
947
892
  default:
948
893
  const parsedBody = parsedOutput.body;
949
- throwDefaultError({
894
+ return throwDefaultError({
950
895
  output,
951
896
  parsedBody,
952
- exceptionCtor: __BaseException,
953
897
  errorCode,
954
898
  });
955
899
  }
@@ -962,12 +906,11 @@ export const de_DescribeFlowExecutionRecordsCommand = async (output, context) =>
962
906
  $metadata: deserializeMetadata(output),
963
907
  });
964
908
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
965
- if (data.flowExecutions != null) {
966
- contents.flowExecutions = de_FlowExecutionList(data.flowExecutions, context);
967
- }
968
- if (data.nextToken != null) {
969
- contents.nextToken = __expectString(data.nextToken);
970
- }
909
+ const doc = take(data, {
910
+ flowExecutions: (_) => de_FlowExecutionList(_, context),
911
+ nextToken: __expectString,
912
+ });
913
+ Object.assign(contents, doc);
971
914
  return contents;
972
915
  };
973
916
  const de_DescribeFlowExecutionRecordsCommandError = async (output, context) => {
@@ -988,10 +931,9 @@ const de_DescribeFlowExecutionRecordsCommandError = async (output, context) => {
988
931
  throw await de_ValidationExceptionRes(parsedOutput, context);
989
932
  default:
990
933
  const parsedBody = parsedOutput.body;
991
- throwDefaultError({
934
+ return throwDefaultError({
992
935
  output,
993
936
  parsedBody,
994
- exceptionCtor: __BaseException,
995
937
  errorCode,
996
938
  });
997
939
  }
@@ -1004,12 +946,11 @@ export const de_ListConnectorEntitiesCommand = async (output, context) => {
1004
946
  $metadata: deserializeMetadata(output),
1005
947
  });
1006
948
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1007
- if (data.connectorEntityMap != null) {
1008
- contents.connectorEntityMap = de_ConnectorEntityMap(data.connectorEntityMap, context);
1009
- }
1010
- if (data.nextToken != null) {
1011
- contents.nextToken = __expectString(data.nextToken);
1012
- }
949
+ const doc = take(data, {
950
+ connectorEntityMap: _json,
951
+ nextToken: __expectString,
952
+ });
953
+ Object.assign(contents, doc);
1013
954
  return contents;
1014
955
  };
1015
956
  const de_ListConnectorEntitiesCommandError = async (output, context) => {
@@ -1036,10 +977,9 @@ const de_ListConnectorEntitiesCommandError = async (output, context) => {
1036
977
  throw await de_ValidationExceptionRes(parsedOutput, context);
1037
978
  default:
1038
979
  const parsedBody = parsedOutput.body;
1039
- throwDefaultError({
980
+ return throwDefaultError({
1040
981
  output,
1041
982
  parsedBody,
1042
- exceptionCtor: __BaseException,
1043
983
  errorCode,
1044
984
  });
1045
985
  }
@@ -1052,12 +992,11 @@ export const de_ListConnectorsCommand = async (output, context) => {
1052
992
  $metadata: deserializeMetadata(output),
1053
993
  });
1054
994
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1055
- if (data.connectors != null) {
1056
- contents.connectors = de_ConnectorList(data.connectors, context);
1057
- }
1058
- if (data.nextToken != null) {
1059
- contents.nextToken = __expectString(data.nextToken);
1060
- }
995
+ const doc = take(data, {
996
+ connectors: (_) => de_ConnectorList(_, context),
997
+ nextToken: __expectString,
998
+ });
999
+ Object.assign(contents, doc);
1061
1000
  return contents;
1062
1001
  };
1063
1002
  const de_ListConnectorsCommandError = async (output, context) => {
@@ -1075,10 +1014,9 @@ const de_ListConnectorsCommandError = async (output, context) => {
1075
1014
  throw await de_ValidationExceptionRes(parsedOutput, context);
1076
1015
  default:
1077
1016
  const parsedBody = parsedOutput.body;
1078
- throwDefaultError({
1017
+ return throwDefaultError({
1079
1018
  output,
1080
1019
  parsedBody,
1081
- exceptionCtor: __BaseException,
1082
1020
  errorCode,
1083
1021
  });
1084
1022
  }
@@ -1091,12 +1029,11 @@ export const de_ListFlowsCommand = async (output, context) => {
1091
1029
  $metadata: deserializeMetadata(output),
1092
1030
  });
1093
1031
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1094
- if (data.flows != null) {
1095
- contents.flows = de_FlowList(data.flows, context);
1096
- }
1097
- if (data.nextToken != null) {
1098
- contents.nextToken = __expectString(data.nextToken);
1099
- }
1032
+ const doc = take(data, {
1033
+ flows: (_) => de_FlowList(_, context),
1034
+ nextToken: __expectString,
1035
+ });
1036
+ Object.assign(contents, doc);
1100
1037
  return contents;
1101
1038
  };
1102
1039
  const de_ListFlowsCommandError = async (output, context) => {
@@ -1114,10 +1051,9 @@ const de_ListFlowsCommandError = async (output, context) => {
1114
1051
  throw await de_ValidationExceptionRes(parsedOutput, context);
1115
1052
  default:
1116
1053
  const parsedBody = parsedOutput.body;
1117
- throwDefaultError({
1054
+ return throwDefaultError({
1118
1055
  output,
1119
1056
  parsedBody,
1120
- exceptionCtor: __BaseException,
1121
1057
  errorCode,
1122
1058
  });
1123
1059
  }
@@ -1130,9 +1066,10 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
1130
1066
  $metadata: deserializeMetadata(output),
1131
1067
  });
1132
1068
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1133
- if (data.tags != null) {
1134
- contents.tags = de_TagMap(data.tags, context);
1135
- }
1069
+ const doc = take(data, {
1070
+ tags: _json,
1071
+ });
1072
+ Object.assign(contents, doc);
1136
1073
  return contents;
1137
1074
  };
1138
1075
  const de_ListTagsForResourceCommandError = async (output, context) => {
@@ -1153,10 +1090,9 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
1153
1090
  throw await de_ValidationExceptionRes(parsedOutput, context);
1154
1091
  default:
1155
1092
  const parsedBody = parsedOutput.body;
1156
- throwDefaultError({
1093
+ return throwDefaultError({
1157
1094
  output,
1158
1095
  parsedBody,
1159
- exceptionCtor: __BaseException,
1160
1096
  errorCode,
1161
1097
  });
1162
1098
  }
@@ -1169,9 +1105,10 @@ export const de_RegisterConnectorCommand = async (output, context) => {
1169
1105
  $metadata: deserializeMetadata(output),
1170
1106
  });
1171
1107
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1172
- if (data.connectorArn != null) {
1173
- contents.connectorArn = __expectString(data.connectorArn);
1174
- }
1108
+ const doc = take(data, {
1109
+ connectorArn: __expectString,
1110
+ });
1111
+ Object.assign(contents, doc);
1175
1112
  return contents;
1176
1113
  };
1177
1114
  const de_RegisterConnectorCommandError = async (output, context) => {
@@ -1210,10 +1147,9 @@ const de_RegisterConnectorCommandError = async (output, context) => {
1210
1147
  throw await de_ValidationExceptionRes(parsedOutput, context);
1211
1148
  default:
1212
1149
  const parsedBody = parsedOutput.body;
1213
- throwDefaultError({
1150
+ return throwDefaultError({
1214
1151
  output,
1215
1152
  parsedBody,
1216
- exceptionCtor: __BaseException,
1217
1153
  errorCode,
1218
1154
  });
1219
1155
  }
@@ -1226,15 +1162,12 @@ export const de_StartFlowCommand = async (output, context) => {
1226
1162
  $metadata: deserializeMetadata(output),
1227
1163
  });
1228
1164
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1229
- if (data.executionId != null) {
1230
- contents.executionId = __expectString(data.executionId);
1231
- }
1232
- if (data.flowArn != null) {
1233
- contents.flowArn = __expectString(data.flowArn);
1234
- }
1235
- if (data.flowStatus != null) {
1236
- contents.flowStatus = __expectString(data.flowStatus);
1237
- }
1165
+ const doc = take(data, {
1166
+ executionId: __expectString,
1167
+ flowArn: __expectString,
1168
+ flowStatus: __expectString,
1169
+ });
1170
+ Object.assign(contents, doc);
1238
1171
  return contents;
1239
1172
  };
1240
1173
  const de_StartFlowCommandError = async (output, context) => {
@@ -1258,10 +1191,9 @@ const de_StartFlowCommandError = async (output, context) => {
1258
1191
  throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1259
1192
  default:
1260
1193
  const parsedBody = parsedOutput.body;
1261
- throwDefaultError({
1194
+ return throwDefaultError({
1262
1195
  output,
1263
1196
  parsedBody,
1264
- exceptionCtor: __BaseException,
1265
1197
  errorCode,
1266
1198
  });
1267
1199
  }
@@ -1274,12 +1206,11 @@ export const de_StopFlowCommand = async (output, context) => {
1274
1206
  $metadata: deserializeMetadata(output),
1275
1207
  });
1276
1208
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1277
- if (data.flowArn != null) {
1278
- contents.flowArn = __expectString(data.flowArn);
1279
- }
1280
- if (data.flowStatus != null) {
1281
- contents.flowStatus = __expectString(data.flowStatus);
1282
- }
1209
+ const doc = take(data, {
1210
+ flowArn: __expectString,
1211
+ flowStatus: __expectString,
1212
+ });
1213
+ Object.assign(contents, doc);
1283
1214
  return contents;
1284
1215
  };
1285
1216
  const de_StopFlowCommandError = async (output, context) => {
@@ -1303,10 +1234,9 @@ const de_StopFlowCommandError = async (output, context) => {
1303
1234
  throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
1304
1235
  default:
1305
1236
  const parsedBody = parsedOutput.body;
1306
- throwDefaultError({
1237
+ return throwDefaultError({
1307
1238
  output,
1308
1239
  parsedBody,
1309
- exceptionCtor: __BaseException,
1310
1240
  errorCode,
1311
1241
  });
1312
1242
  }
@@ -1339,10 +1269,9 @@ const de_TagResourceCommandError = async (output, context) => {
1339
1269
  throw await de_ValidationExceptionRes(parsedOutput, context);
1340
1270
  default:
1341
1271
  const parsedBody = parsedOutput.body;
1342
- throwDefaultError({
1272
+ return throwDefaultError({
1343
1273
  output,
1344
1274
  parsedBody,
1345
- exceptionCtor: __BaseException,
1346
1275
  errorCode,
1347
1276
  });
1348
1277
  }
@@ -1375,10 +1304,9 @@ const de_UnregisterConnectorCommandError = async (output, context) => {
1375
1304
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1376
1305
  default:
1377
1306
  const parsedBody = parsedOutput.body;
1378
- throwDefaultError({
1307
+ return throwDefaultError({
1379
1308
  output,
1380
1309
  parsedBody,
1381
- exceptionCtor: __BaseException,
1382
1310
  errorCode,
1383
1311
  });
1384
1312
  }
@@ -1411,10 +1339,9 @@ const de_UntagResourceCommandError = async (output, context) => {
1411
1339
  throw await de_ValidationExceptionRes(parsedOutput, context);
1412
1340
  default:
1413
1341
  const parsedBody = parsedOutput.body;
1414
- throwDefaultError({
1342
+ return throwDefaultError({
1415
1343
  output,
1416
1344
  parsedBody,
1417
- exceptionCtor: __BaseException,
1418
1345
  errorCode,
1419
1346
  });
1420
1347
  }
@@ -1427,9 +1354,10 @@ export const de_UpdateConnectorProfileCommand = async (output, context) => {
1427
1354
  $metadata: deserializeMetadata(output),
1428
1355
  });
1429
1356
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1430
- if (data.connectorProfileArn != null) {
1431
- contents.connectorProfileArn = __expectString(data.connectorProfileArn);
1432
- }
1357
+ const doc = take(data, {
1358
+ connectorProfileArn: __expectString,
1359
+ });
1360
+ Object.assign(contents, doc);
1433
1361
  return contents;
1434
1362
  };
1435
1363
  const de_UpdateConnectorProfileCommandError = async (output, context) => {
@@ -1456,10 +1384,9 @@ const de_UpdateConnectorProfileCommandError = async (output, context) => {
1456
1384
  throw await de_ValidationExceptionRes(parsedOutput, context);
1457
1385
  default:
1458
1386
  const parsedBody = parsedOutput.body;
1459
- throwDefaultError({
1387
+ return throwDefaultError({
1460
1388
  output,
1461
1389
  parsedBody,
1462
- exceptionCtor: __BaseException,
1463
1390
  errorCode,
1464
1391
  });
1465
1392
  }
@@ -1472,9 +1399,10 @@ export const de_UpdateConnectorRegistrationCommand = async (output, context) =>
1472
1399
  $metadata: deserializeMetadata(output),
1473
1400
  });
1474
1401
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1475
- if (data.connectorArn != null) {
1476
- contents.connectorArn = __expectString(data.connectorArn);
1477
- }
1402
+ const doc = take(data, {
1403
+ connectorArn: __expectString,
1404
+ });
1405
+ Object.assign(contents, doc);
1478
1406
  return contents;
1479
1407
  };
1480
1408
  const de_UpdateConnectorRegistrationCommandError = async (output, context) => {
@@ -1513,10 +1441,9 @@ const de_UpdateConnectorRegistrationCommandError = async (output, context) => {
1513
1441
  throw await de_ValidationExceptionRes(parsedOutput, context);
1514
1442
  default:
1515
1443
  const parsedBody = parsedOutput.body;
1516
- throwDefaultError({
1444
+ return throwDefaultError({
1517
1445
  output,
1518
1446
  parsedBody,
1519
- exceptionCtor: __BaseException,
1520
1447
  errorCode,
1521
1448
  });
1522
1449
  }
@@ -1529,9 +1456,10 @@ export const de_UpdateFlowCommand = async (output, context) => {
1529
1456
  $metadata: deserializeMetadata(output),
1530
1457
  });
1531
1458
  const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
1532
- if (data.flowStatus != null) {
1533
- contents.flowStatus = __expectString(data.flowStatus);
1534
- }
1459
+ const doc = take(data, {
1460
+ flowStatus: __expectString,
1461
+ });
1462
+ Object.assign(contents, doc);
1535
1463
  return contents;
1536
1464
  };
1537
1465
  const de_UpdateFlowCommandError = async (output, context) => {
@@ -1564,21 +1492,21 @@ const de_UpdateFlowCommandError = async (output, context) => {
1564
1492
  throw await de_ValidationExceptionRes(parsedOutput, context);
1565
1493
  default:
1566
1494
  const parsedBody = parsedOutput.body;
1567
- throwDefaultError({
1495
+ return throwDefaultError({
1568
1496
  output,
1569
1497
  parsedBody,
1570
- exceptionCtor: __BaseException,
1571
1498
  errorCode,
1572
1499
  });
1573
1500
  }
1574
1501
  };
1575
- const map = __map;
1502
+ const throwDefaultError = withBaseException(__BaseException);
1576
1503
  const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1577
1504
  const contents = map({});
1578
1505
  const data = parsedOutput.body;
1579
- if (data.message != null) {
1580
- contents.message = __expectString(data.message);
1581
- }
1506
+ const doc = take(data, {
1507
+ message: __expectString,
1508
+ });
1509
+ Object.assign(contents, doc);
1582
1510
  const exception = new AccessDeniedException({
1583
1511
  $metadata: deserializeMetadata(parsedOutput),
1584
1512
  ...contents,
@@ -1588,9 +1516,10 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
1588
1516
  const de_ConflictExceptionRes = async (parsedOutput, context) => {
1589
1517
  const contents = map({});
1590
1518
  const data = parsedOutput.body;
1591
- if (data.message != null) {
1592
- contents.message = __expectString(data.message);
1593
- }
1519
+ const doc = take(data, {
1520
+ message: __expectString,
1521
+ });
1522
+ Object.assign(contents, doc);
1594
1523
  const exception = new ConflictException({
1595
1524
  $metadata: deserializeMetadata(parsedOutput),
1596
1525
  ...contents,
@@ -1600,9 +1529,10 @@ const de_ConflictExceptionRes = async (parsedOutput, context) => {
1600
1529
  const de_ConnectorAuthenticationExceptionRes = async (parsedOutput, context) => {
1601
1530
  const contents = map({});
1602
1531
  const data = parsedOutput.body;
1603
- if (data.message != null) {
1604
- contents.message = __expectString(data.message);
1605
- }
1532
+ const doc = take(data, {
1533
+ message: __expectString,
1534
+ });
1535
+ Object.assign(contents, doc);
1606
1536
  const exception = new ConnectorAuthenticationException({
1607
1537
  $metadata: deserializeMetadata(parsedOutput),
1608
1538
  ...contents,
@@ -1612,9 +1542,10 @@ const de_ConnectorAuthenticationExceptionRes = async (parsedOutput, context) =>
1612
1542
  const de_ConnectorServerExceptionRes = async (parsedOutput, context) => {
1613
1543
  const contents = map({});
1614
1544
  const data = parsedOutput.body;
1615
- if (data.message != null) {
1616
- contents.message = __expectString(data.message);
1617
- }
1545
+ const doc = take(data, {
1546
+ message: __expectString,
1547
+ });
1548
+ Object.assign(contents, doc);
1618
1549
  const exception = new ConnectorServerException({
1619
1550
  $metadata: deserializeMetadata(parsedOutput),
1620
1551
  ...contents,
@@ -1624,9 +1555,10 @@ const de_ConnectorServerExceptionRes = async (parsedOutput, context) => {
1624
1555
  const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1625
1556
  const contents = map({});
1626
1557
  const data = parsedOutput.body;
1627
- if (data.message != null) {
1628
- contents.message = __expectString(data.message);
1629
- }
1558
+ const doc = take(data, {
1559
+ message: __expectString,
1560
+ });
1561
+ Object.assign(contents, doc);
1630
1562
  const exception = new InternalServerException({
1631
1563
  $metadata: deserializeMetadata(parsedOutput),
1632
1564
  ...contents,
@@ -1636,9 +1568,10 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
1636
1568
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1637
1569
  const contents = map({});
1638
1570
  const data = parsedOutput.body;
1639
- if (data.message != null) {
1640
- contents.message = __expectString(data.message);
1641
- }
1571
+ const doc = take(data, {
1572
+ message: __expectString,
1573
+ });
1574
+ Object.assign(contents, doc);
1642
1575
  const exception = new ResourceNotFoundException({
1643
1576
  $metadata: deserializeMetadata(parsedOutput),
1644
1577
  ...contents,
@@ -1648,9 +1581,10 @@ const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
1648
1581
  const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1649
1582
  const contents = map({});
1650
1583
  const data = parsedOutput.body;
1651
- if (data.message != null) {
1652
- contents.message = __expectString(data.message);
1653
- }
1584
+ const doc = take(data, {
1585
+ message: __expectString,
1586
+ });
1587
+ Object.assign(contents, doc);
1654
1588
  const exception = new ServiceQuotaExceededException({
1655
1589
  $metadata: deserializeMetadata(parsedOutput),
1656
1590
  ...contents,
@@ -1660,9 +1594,10 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
1660
1594
  const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1661
1595
  const contents = map({});
1662
1596
  const data = parsedOutput.body;
1663
- if (data.message != null) {
1664
- contents.message = __expectString(data.message);
1665
- }
1597
+ const doc = take(data, {
1598
+ message: __expectString,
1599
+ });
1600
+ Object.assign(contents, doc);
1666
1601
  const exception = new ThrottlingException({
1667
1602
  $metadata: deserializeMetadata(parsedOutput),
1668
1603
  ...contents,
@@ -1672,9 +1607,10 @@ const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
1672
1607
  const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
1673
1608
  const contents = map({});
1674
1609
  const data = parsedOutput.body;
1675
- if (data.message != null) {
1676
- contents.message = __expectString(data.message);
1677
- }
1610
+ const doc = take(data, {
1611
+ message: __expectString,
1612
+ });
1613
+ Object.assign(contents, doc);
1678
1614
  const exception = new UnsupportedOperationException({
1679
1615
  $metadata: deserializeMetadata(parsedOutput),
1680
1616
  ...contents,
@@ -1684,2303 +1620,244 @@ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
1684
1620
  const de_ValidationExceptionRes = async (parsedOutput, context) => {
1685
1621
  const contents = map({});
1686
1622
  const data = parsedOutput.body;
1687
- if (data.message != null) {
1688
- contents.message = __expectString(data.message);
1689
- }
1623
+ const doc = take(data, {
1624
+ message: __expectString,
1625
+ });
1626
+ Object.assign(contents, doc);
1690
1627
  const exception = new ValidationException({
1691
1628
  $metadata: deserializeMetadata(parsedOutput),
1692
1629
  ...contents,
1693
1630
  });
1694
1631
  return __decorateServiceException(exception, parsedOutput.body);
1695
1632
  };
1696
- const se_AggregationConfig = (input, context) => {
1697
- return {
1698
- ...(input.aggregationType != null && { aggregationType: input.aggregationType }),
1699
- ...(input.targetFileSize != null && { targetFileSize: input.targetFileSize }),
1700
- };
1701
- };
1702
- const se_AmplitudeConnectorProfileCredentials = (input, context) => {
1703
- return {
1704
- ...(input.apiKey != null && { apiKey: input.apiKey }),
1705
- ...(input.secretKey != null && { secretKey: input.secretKey }),
1706
- };
1707
- };
1708
- const se_AmplitudeConnectorProfileProperties = (input, context) => {
1709
- return {};
1710
- };
1711
- const se_AmplitudeSourceProperties = (input, context) => {
1712
- return {
1713
- ...(input.object != null && { object: input.object }),
1714
- };
1715
- };
1716
- const se_ApiKeyCredentials = (input, context) => {
1717
- return {
1718
- ...(input.apiKey != null && { apiKey: input.apiKey }),
1719
- ...(input.apiSecretKey != null && { apiSecretKey: input.apiSecretKey }),
1720
- };
1721
- };
1722
- const se_BasicAuthCredentials = (input, context) => {
1723
- return {
1724
- ...(input.password != null && { password: input.password }),
1725
- ...(input.username != null && { username: input.username }),
1726
- };
1727
- };
1728
- const se_ConnectorOAuthRequest = (input, context) => {
1729
- return {
1730
- ...(input.authCode != null && { authCode: input.authCode }),
1731
- ...(input.redirectUri != null && { redirectUri: input.redirectUri }),
1732
- };
1733
- };
1734
- const se_ConnectorOperator = (input, context) => {
1735
- return {
1736
- ...(input.Amplitude != null && { Amplitude: input.Amplitude }),
1737
- ...(input.CustomConnector != null && { CustomConnector: input.CustomConnector }),
1738
- ...(input.Datadog != null && { Datadog: input.Datadog }),
1739
- ...(input.Dynatrace != null && { Dynatrace: input.Dynatrace }),
1740
- ...(input.GoogleAnalytics != null && { GoogleAnalytics: input.GoogleAnalytics }),
1741
- ...(input.InforNexus != null && { InforNexus: input.InforNexus }),
1742
- ...(input.Marketo != null && { Marketo: input.Marketo }),
1743
- ...(input.Pardot != null && { Pardot: input.Pardot }),
1744
- ...(input.S3 != null && { S3: input.S3 }),
1745
- ...(input.SAPOData != null && { SAPOData: input.SAPOData }),
1746
- ...(input.Salesforce != null && { Salesforce: input.Salesforce }),
1747
- ...(input.ServiceNow != null && { ServiceNow: input.ServiceNow }),
1748
- ...(input.Singular != null && { Singular: input.Singular }),
1749
- ...(input.Slack != null && { Slack: input.Slack }),
1750
- ...(input.Trendmicro != null && { Trendmicro: input.Trendmicro }),
1751
- ...(input.Veeva != null && { Veeva: input.Veeva }),
1752
- ...(input.Zendesk != null && { Zendesk: input.Zendesk }),
1753
- };
1754
- };
1755
- const se_ConnectorProfileConfig = (input, context) => {
1756
- return {
1757
- ...(input.connectorProfileCredentials != null && {
1758
- connectorProfileCredentials: se_ConnectorProfileCredentials(input.connectorProfileCredentials, context),
1759
- }),
1760
- ...(input.connectorProfileProperties != null && {
1761
- connectorProfileProperties: se_ConnectorProfileProperties(input.connectorProfileProperties, context),
1762
- }),
1763
- };
1764
- };
1765
- const se_ConnectorProfileCredentials = (input, context) => {
1766
- return {
1767
- ...(input.Amplitude != null && { Amplitude: se_AmplitudeConnectorProfileCredentials(input.Amplitude, context) }),
1768
- ...(input.CustomConnector != null && {
1769
- CustomConnector: se_CustomConnectorProfileCredentials(input.CustomConnector, context),
1770
- }),
1771
- ...(input.Datadog != null && { Datadog: se_DatadogConnectorProfileCredentials(input.Datadog, context) }),
1772
- ...(input.Dynatrace != null && { Dynatrace: se_DynatraceConnectorProfileCredentials(input.Dynatrace, context) }),
1773
- ...(input.GoogleAnalytics != null && {
1774
- GoogleAnalytics: se_GoogleAnalyticsConnectorProfileCredentials(input.GoogleAnalytics, context),
1775
- }),
1776
- ...(input.Honeycode != null && { Honeycode: se_HoneycodeConnectorProfileCredentials(input.Honeycode, context) }),
1777
- ...(input.InforNexus != null && {
1778
- InforNexus: se_InforNexusConnectorProfileCredentials(input.InforNexus, context),
1779
- }),
1780
- ...(input.Marketo != null && { Marketo: se_MarketoConnectorProfileCredentials(input.Marketo, context) }),
1781
- ...(input.Pardot != null && { Pardot: se_PardotConnectorProfileCredentials(input.Pardot, context) }),
1782
- ...(input.Redshift != null && { Redshift: se_RedshiftConnectorProfileCredentials(input.Redshift, context) }),
1783
- ...(input.SAPOData != null && { SAPOData: se_SAPODataConnectorProfileCredentials(input.SAPOData, context) }),
1784
- ...(input.Salesforce != null && {
1785
- Salesforce: se_SalesforceConnectorProfileCredentials(input.Salesforce, context),
1786
- }),
1787
- ...(input.ServiceNow != null && {
1788
- ServiceNow: se_ServiceNowConnectorProfileCredentials(input.ServiceNow, context),
1789
- }),
1790
- ...(input.Singular != null && { Singular: se_SingularConnectorProfileCredentials(input.Singular, context) }),
1791
- ...(input.Slack != null && { Slack: se_SlackConnectorProfileCredentials(input.Slack, context) }),
1792
- ...(input.Snowflake != null && { Snowflake: se_SnowflakeConnectorProfileCredentials(input.Snowflake, context) }),
1793
- ...(input.Trendmicro != null && {
1794
- Trendmicro: se_TrendmicroConnectorProfileCredentials(input.Trendmicro, context),
1795
- }),
1796
- ...(input.Veeva != null && { Veeva: se_VeevaConnectorProfileCredentials(input.Veeva, context) }),
1797
- ...(input.Zendesk != null && { Zendesk: se_ZendeskConnectorProfileCredentials(input.Zendesk, context) }),
1798
- };
1799
- };
1800
- const se_ConnectorProfileNameList = (input, context) => {
1801
- return input
1802
- .filter((e) => e != null)
1803
- .map((entry) => {
1804
- return entry;
1805
- });
1806
- };
1807
- const se_ConnectorProfileProperties = (input, context) => {
1808
- return {
1809
- ...(input.Amplitude != null && { Amplitude: se_AmplitudeConnectorProfileProperties(input.Amplitude, context) }),
1810
- ...(input.CustomConnector != null && {
1811
- CustomConnector: se_CustomConnectorProfileProperties(input.CustomConnector, context),
1812
- }),
1813
- ...(input.Datadog != null && { Datadog: se_DatadogConnectorProfileProperties(input.Datadog, context) }),
1814
- ...(input.Dynatrace != null && { Dynatrace: se_DynatraceConnectorProfileProperties(input.Dynatrace, context) }),
1815
- ...(input.GoogleAnalytics != null && {
1816
- GoogleAnalytics: se_GoogleAnalyticsConnectorProfileProperties(input.GoogleAnalytics, context),
1817
- }),
1818
- ...(input.Honeycode != null && { Honeycode: se_HoneycodeConnectorProfileProperties(input.Honeycode, context) }),
1819
- ...(input.InforNexus != null && { InforNexus: se_InforNexusConnectorProfileProperties(input.InforNexus, context) }),
1820
- ...(input.Marketo != null && { Marketo: se_MarketoConnectorProfileProperties(input.Marketo, context) }),
1821
- ...(input.Pardot != null && { Pardot: se_PardotConnectorProfileProperties(input.Pardot, context) }),
1822
- ...(input.Redshift != null && { Redshift: se_RedshiftConnectorProfileProperties(input.Redshift, context) }),
1823
- ...(input.SAPOData != null && { SAPOData: se_SAPODataConnectorProfileProperties(input.SAPOData, context) }),
1824
- ...(input.Salesforce != null && { Salesforce: se_SalesforceConnectorProfileProperties(input.Salesforce, context) }),
1825
- ...(input.ServiceNow != null && { ServiceNow: se_ServiceNowConnectorProfileProperties(input.ServiceNow, context) }),
1826
- ...(input.Singular != null && { Singular: se_SingularConnectorProfileProperties(input.Singular, context) }),
1827
- ...(input.Slack != null && { Slack: se_SlackConnectorProfileProperties(input.Slack, context) }),
1828
- ...(input.Snowflake != null && { Snowflake: se_SnowflakeConnectorProfileProperties(input.Snowflake, context) }),
1829
- ...(input.Trendmicro != null && { Trendmicro: se_TrendmicroConnectorProfileProperties(input.Trendmicro, context) }),
1830
- ...(input.Veeva != null && { Veeva: se_VeevaConnectorProfileProperties(input.Veeva, context) }),
1831
- ...(input.Zendesk != null && { Zendesk: se_ZendeskConnectorProfileProperties(input.Zendesk, context) }),
1832
- };
1833
- };
1834
- const se_ConnectorProvisioningConfig = (input, context) => {
1835
- return {
1836
- ...(input.lambda != null && { lambda: se_LambdaConnectorProvisioningConfig(input.lambda, context) }),
1837
- };
1838
- };
1839
- const se_ConnectorTypeList = (input, context) => {
1840
- return input
1841
- .filter((e) => e != null)
1842
- .map((entry) => {
1843
- return entry;
1633
+ const se_ScheduledTriggerProperties = (input, context) => {
1634
+ return take(input, {
1635
+ dataPullMode: [],
1636
+ firstExecutionFrom: (_) => Math.round(_.getTime() / 1000),
1637
+ flowErrorDeactivationThreshold: [],
1638
+ scheduleEndTime: (_) => Math.round(_.getTime() / 1000),
1639
+ scheduleExpression: [],
1640
+ scheduleOffset: [],
1641
+ scheduleStartTime: (_) => Math.round(_.getTime() / 1000),
1642
+ timezone: [],
1844
1643
  });
1845
1644
  };
1846
- const se_CredentialsMap = (input, context) => {
1847
- return Object.entries(input).reduce((acc, [key, value]) => {
1848
- if (value === null) {
1849
- return acc;
1850
- }
1851
- acc[key] = value;
1852
- return acc;
1853
- }, {});
1854
- };
1855
- const se_CustomAuthCredentials = (input, context) => {
1856
- return {
1857
- ...(input.credentialsMap != null && { credentialsMap: se_CredentialsMap(input.credentialsMap, context) }),
1858
- ...(input.customAuthenticationType != null && { customAuthenticationType: input.customAuthenticationType }),
1859
- };
1860
- };
1861
- const se_CustomConnectorDestinationProperties = (input, context) => {
1862
- return {
1863
- ...(input.customProperties != null && { customProperties: se_CustomProperties(input.customProperties, context) }),
1864
- ...(input.entityName != null && { entityName: input.entityName }),
1865
- ...(input.errorHandlingConfig != null && {
1866
- errorHandlingConfig: se_ErrorHandlingConfig(input.errorHandlingConfig, context),
1867
- }),
1868
- ...(input.idFieldNames != null && { idFieldNames: se_IdFieldNameList(input.idFieldNames, context) }),
1869
- ...(input.writeOperationType != null && { writeOperationType: input.writeOperationType }),
1870
- };
1871
- };
1872
- const se_CustomConnectorProfileCredentials = (input, context) => {
1873
- return {
1874
- ...(input.apiKey != null && { apiKey: se_ApiKeyCredentials(input.apiKey, context) }),
1875
- ...(input.authenticationType != null && { authenticationType: input.authenticationType }),
1876
- ...(input.basic != null && { basic: se_BasicAuthCredentials(input.basic, context) }),
1877
- ...(input.custom != null && { custom: se_CustomAuthCredentials(input.custom, context) }),
1878
- ...(input.oauth2 != null && { oauth2: se_OAuth2Credentials(input.oauth2, context) }),
1879
- };
1880
- };
1881
- const se_CustomConnectorProfileProperties = (input, context) => {
1882
- return {
1883
- ...(input.oAuth2Properties != null && { oAuth2Properties: se_OAuth2Properties(input.oAuth2Properties, context) }),
1884
- ...(input.profileProperties != null && {
1885
- profileProperties: se_ProfilePropertiesMap(input.profileProperties, context),
1886
- }),
1887
- };
1645
+ const se_TriggerConfig = (input, context) => {
1646
+ return take(input, {
1647
+ triggerProperties: (_) => se_TriggerProperties(_, context),
1648
+ triggerType: [],
1649
+ });
1888
1650
  };
1889
- const se_CustomConnectorSourceProperties = (input, context) => {
1890
- return {
1891
- ...(input.customProperties != null && { customProperties: se_CustomProperties(input.customProperties, context) }),
1892
- ...(input.entityName != null && { entityName: input.entityName }),
1893
- };
1651
+ const se_TriggerProperties = (input, context) => {
1652
+ return take(input, {
1653
+ Scheduled: (_) => se_ScheduledTriggerProperties(_, context),
1654
+ });
1894
1655
  };
1895
- const se_CustomerProfilesDestinationProperties = (input, context) => {
1896
- return {
1897
- ...(input.domainName != null && { domainName: input.domainName }),
1898
- ...(input.objectTypeName != null && { objectTypeName: input.objectTypeName }),
1899
- };
1656
+ const de_ConnectorConfiguration = (output, context) => {
1657
+ return take(output, {
1658
+ authenticationConfig: _json,
1659
+ canUseAsDestination: __expectBoolean,
1660
+ canUseAsSource: __expectBoolean,
1661
+ connectorArn: __expectString,
1662
+ connectorDescription: __expectString,
1663
+ connectorLabel: __expectString,
1664
+ connectorMetadata: _json,
1665
+ connectorModes: _json,
1666
+ connectorName: __expectString,
1667
+ connectorOwner: __expectString,
1668
+ connectorProvisioningConfig: _json,
1669
+ connectorProvisioningType: __expectString,
1670
+ connectorRuntimeSettings: _json,
1671
+ connectorType: __expectString,
1672
+ connectorVersion: __expectString,
1673
+ isPrivateLinkEnabled: __expectBoolean,
1674
+ isPrivateLinkEndpointUrlRequired: __expectBoolean,
1675
+ logoURL: __expectString,
1676
+ registeredAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1677
+ registeredBy: __expectString,
1678
+ supportedApiVersions: _json,
1679
+ supportedDestinationConnectors: _json,
1680
+ supportedOperators: _json,
1681
+ supportedSchedulingFrequencies: _json,
1682
+ supportedTriggerTypes: _json,
1683
+ supportedWriteOperations: _json,
1684
+ });
1900
1685
  };
1901
- const se_CustomProperties = (input, context) => {
1902
- return Object.entries(input).reduce((acc, [key, value]) => {
1686
+ const de_ConnectorConfigurationsMap = (output, context) => {
1687
+ return Object.entries(output).reduce((acc, [key, value]) => {
1903
1688
  if (value === null) {
1904
1689
  return acc;
1905
1690
  }
1906
- acc[key] = value;
1691
+ acc[key] = de_ConnectorConfiguration(value, context);
1907
1692
  return acc;
1908
1693
  }, {});
1909
1694
  };
1910
- const se_DatadogConnectorProfileCredentials = (input, context) => {
1911
- return {
1912
- ...(input.apiKey != null && { apiKey: input.apiKey }),
1913
- ...(input.applicationKey != null && { applicationKey: input.applicationKey }),
1914
- };
1915
- };
1916
- const se_DatadogConnectorProfileProperties = (input, context) => {
1917
- return {
1918
- ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
1919
- };
1920
- };
1921
- const se_DatadogSourceProperties = (input, context) => {
1922
- return {
1923
- ...(input.object != null && { object: input.object }),
1924
- };
1925
- };
1926
- const se_DestinationConnectorProperties = (input, context) => {
1927
- return {
1928
- ...(input.CustomConnector != null && {
1929
- CustomConnector: se_CustomConnectorDestinationProperties(input.CustomConnector, context),
1930
- }),
1931
- ...(input.CustomerProfiles != null && {
1932
- CustomerProfiles: se_CustomerProfilesDestinationProperties(input.CustomerProfiles, context),
1933
- }),
1934
- ...(input.EventBridge != null && { EventBridge: se_EventBridgeDestinationProperties(input.EventBridge, context) }),
1935
- ...(input.Honeycode != null && { Honeycode: se_HoneycodeDestinationProperties(input.Honeycode, context) }),
1936
- ...(input.LookoutMetrics != null && {
1937
- LookoutMetrics: se_LookoutMetricsDestinationProperties(input.LookoutMetrics, context),
1938
- }),
1939
- ...(input.Marketo != null && { Marketo: se_MarketoDestinationProperties(input.Marketo, context) }),
1940
- ...(input.Redshift != null && { Redshift: se_RedshiftDestinationProperties(input.Redshift, context) }),
1941
- ...(input.S3 != null && { S3: se_S3DestinationProperties(input.S3, context) }),
1942
- ...(input.SAPOData != null && { SAPOData: se_SAPODataDestinationProperties(input.SAPOData, context) }),
1943
- ...(input.Salesforce != null && { Salesforce: se_SalesforceDestinationProperties(input.Salesforce, context) }),
1944
- ...(input.Snowflake != null && { Snowflake: se_SnowflakeDestinationProperties(input.Snowflake, context) }),
1945
- ...(input.Upsolver != null && { Upsolver: se_UpsolverDestinationProperties(input.Upsolver, context) }),
1946
- ...(input.Zendesk != null && { Zendesk: se_ZendeskDestinationProperties(input.Zendesk, context) }),
1947
- };
1695
+ const de_ConnectorDetail = (output, context) => {
1696
+ return take(output, {
1697
+ applicationType: __expectString,
1698
+ connectorDescription: __expectString,
1699
+ connectorLabel: __expectString,
1700
+ connectorModes: _json,
1701
+ connectorName: __expectString,
1702
+ connectorOwner: __expectString,
1703
+ connectorProvisioningType: __expectString,
1704
+ connectorType: __expectString,
1705
+ connectorVersion: __expectString,
1706
+ registeredAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1707
+ registeredBy: __expectString,
1708
+ });
1948
1709
  };
1949
- const se_DestinationFlowConfig = (input, context) => {
1950
- return {
1951
- ...(input.apiVersion != null && { apiVersion: input.apiVersion }),
1952
- ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
1953
- ...(input.connectorType != null && { connectorType: input.connectorType }),
1954
- ...(input.destinationConnectorProperties != null && {
1955
- destinationConnectorProperties: se_DestinationConnectorProperties(input.destinationConnectorProperties, context),
1956
- }),
1957
- };
1710
+ const de_ConnectorEntityField = (output, context) => {
1711
+ return take(output, {
1712
+ customProperties: _json,
1713
+ defaultValue: __expectString,
1714
+ description: __expectString,
1715
+ destinationProperties: _json,
1716
+ identifier: __expectString,
1717
+ isDeprecated: __expectBoolean,
1718
+ isPrimaryKey: __expectBoolean,
1719
+ label: __expectString,
1720
+ parentIdentifier: __expectString,
1721
+ sourceProperties: _json,
1722
+ supportedFieldTypeDetails: (_) => de_SupportedFieldTypeDetails(_, context),
1723
+ });
1958
1724
  };
1959
- const se_DestinationFlowConfigList = (input, context) => {
1960
- return input
1725
+ const de_ConnectorEntityFieldList = (output, context) => {
1726
+ const retVal = (output || [])
1961
1727
  .filter((e) => e != null)
1962
1728
  .map((entry) => {
1963
- return se_DestinationFlowConfig(entry, context);
1729
+ return de_ConnectorEntityField(entry, context);
1964
1730
  });
1731
+ return retVal;
1965
1732
  };
1966
- const se_DynatraceConnectorProfileCredentials = (input, context) => {
1967
- return {
1968
- ...(input.apiToken != null && { apiToken: input.apiToken }),
1969
- };
1970
- };
1971
- const se_DynatraceConnectorProfileProperties = (input, context) => {
1972
- return {
1973
- ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
1974
- };
1975
- };
1976
- const se_DynatraceSourceProperties = (input, context) => {
1977
- return {
1978
- ...(input.object != null && { object: input.object }),
1979
- };
1980
- };
1981
- const se_ErrorHandlingConfig = (input, context) => {
1982
- return {
1983
- ...(input.bucketName != null && { bucketName: input.bucketName }),
1984
- ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
1985
- ...(input.failOnFirstDestinationError != null && {
1986
- failOnFirstDestinationError: input.failOnFirstDestinationError,
1987
- }),
1988
- };
1989
- };
1990
- const se_EventBridgeDestinationProperties = (input, context) => {
1991
- return {
1992
- ...(input.errorHandlingConfig != null && {
1993
- errorHandlingConfig: se_ErrorHandlingConfig(input.errorHandlingConfig, context),
1994
- }),
1995
- ...(input.object != null && { object: input.object }),
1996
- };
1997
- };
1998
- const se_GlueDataCatalogConfig = (input, context) => {
1999
- return {
2000
- ...(input.databaseName != null && { databaseName: input.databaseName }),
2001
- ...(input.roleArn != null && { roleArn: input.roleArn }),
2002
- ...(input.tablePrefix != null && { tablePrefix: input.tablePrefix }),
2003
- };
2004
- };
2005
- const se_GoogleAnalyticsConnectorProfileCredentials = (input, context) => {
2006
- return {
2007
- ...(input.accessToken != null && { accessToken: input.accessToken }),
2008
- ...(input.clientId != null && { clientId: input.clientId }),
2009
- ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2010
- ...(input.oAuthRequest != null && { oAuthRequest: se_ConnectorOAuthRequest(input.oAuthRequest, context) }),
2011
- ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2012
- };
2013
- };
2014
- const se_GoogleAnalyticsConnectorProfileProperties = (input, context) => {
2015
- return {};
2016
- };
2017
- const se_GoogleAnalyticsSourceProperties = (input, context) => {
2018
- return {
2019
- ...(input.object != null && { object: input.object }),
2020
- };
2021
- };
2022
- const se_HoneycodeConnectorProfileCredentials = (input, context) => {
2023
- return {
2024
- ...(input.accessToken != null && { accessToken: input.accessToken }),
2025
- ...(input.oAuthRequest != null && { oAuthRequest: se_ConnectorOAuthRequest(input.oAuthRequest, context) }),
2026
- ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2027
- };
2028
- };
2029
- const se_HoneycodeConnectorProfileProperties = (input, context) => {
2030
- return {};
2031
- };
2032
- const se_HoneycodeDestinationProperties = (input, context) => {
2033
- return {
2034
- ...(input.errorHandlingConfig != null && {
2035
- errorHandlingConfig: se_ErrorHandlingConfig(input.errorHandlingConfig, context),
2036
- }),
2037
- ...(input.object != null && { object: input.object }),
2038
- };
2039
- };
2040
- const se_IdFieldNameList = (input, context) => {
2041
- return input
1733
+ const de_ConnectorList = (output, context) => {
1734
+ const retVal = (output || [])
2042
1735
  .filter((e) => e != null)
2043
1736
  .map((entry) => {
2044
- return entry;
1737
+ return de_ConnectorDetail(entry, context);
2045
1738
  });
1739
+ return retVal;
2046
1740
  };
2047
- const se_IncrementalPullConfig = (input, context) => {
2048
- return {
2049
- ...(input.datetimeTypeFieldName != null && { datetimeTypeFieldName: input.datetimeTypeFieldName }),
2050
- };
2051
- };
2052
- const se_InforNexusConnectorProfileCredentials = (input, context) => {
2053
- return {
2054
- ...(input.accessKeyId != null && { accessKeyId: input.accessKeyId }),
2055
- ...(input.datakey != null && { datakey: input.datakey }),
2056
- ...(input.secretAccessKey != null && { secretAccessKey: input.secretAccessKey }),
2057
- ...(input.userId != null && { userId: input.userId }),
2058
- };
2059
- };
2060
- const se_InforNexusConnectorProfileProperties = (input, context) => {
2061
- return {
2062
- ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2063
- };
2064
- };
2065
- const se_InforNexusSourceProperties = (input, context) => {
2066
- return {
2067
- ...(input.object != null && { object: input.object }),
2068
- };
2069
- };
2070
- const se_LambdaConnectorProvisioningConfig = (input, context) => {
2071
- return {
2072
- ...(input.lambdaArn != null && { lambdaArn: input.lambdaArn }),
2073
- };
2074
- };
2075
- const se_LookoutMetricsDestinationProperties = (input, context) => {
2076
- return {};
2077
- };
2078
- const se_MarketoConnectorProfileCredentials = (input, context) => {
2079
- return {
2080
- ...(input.accessToken != null && { accessToken: input.accessToken }),
2081
- ...(input.clientId != null && { clientId: input.clientId }),
2082
- ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2083
- ...(input.oAuthRequest != null && { oAuthRequest: se_ConnectorOAuthRequest(input.oAuthRequest, context) }),
2084
- };
2085
- };
2086
- const se_MarketoConnectorProfileProperties = (input, context) => {
2087
- return {
2088
- ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2089
- };
2090
- };
2091
- const se_MarketoDestinationProperties = (input, context) => {
2092
- return {
2093
- ...(input.errorHandlingConfig != null && {
2094
- errorHandlingConfig: se_ErrorHandlingConfig(input.errorHandlingConfig, context),
2095
- }),
2096
- ...(input.object != null && { object: input.object }),
2097
- };
2098
- };
2099
- const se_MarketoSourceProperties = (input, context) => {
2100
- return {
2101
- ...(input.object != null && { object: input.object }),
2102
- };
1741
+ const de_ConnectorProfile = (output, context) => {
1742
+ return take(output, {
1743
+ connectionMode: __expectString,
1744
+ connectorLabel: __expectString,
1745
+ connectorProfileArn: __expectString,
1746
+ connectorProfileName: __expectString,
1747
+ connectorProfileProperties: _json,
1748
+ connectorType: __expectString,
1749
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1750
+ credentialsArn: __expectString,
1751
+ lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1752
+ privateConnectionProvisioningState: _json,
1753
+ });
2103
1754
  };
2104
- const se_MetadataCatalogConfig = (input, context) => {
2105
- return {
2106
- ...(input.glueDataCatalog != null && { glueDataCatalog: se_GlueDataCatalogConfig(input.glueDataCatalog, context) }),
2107
- };
1755
+ const de_ConnectorProfileDetailList = (output, context) => {
1756
+ const retVal = (output || [])
1757
+ .filter((e) => e != null)
1758
+ .map((entry) => {
1759
+ return de_ConnectorProfile(entry, context);
1760
+ });
1761
+ return retVal;
2108
1762
  };
2109
- const se_OAuth2Credentials = (input, context) => {
2110
- return {
2111
- ...(input.accessToken != null && { accessToken: input.accessToken }),
2112
- ...(input.clientId != null && { clientId: input.clientId }),
2113
- ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2114
- ...(input.oAuthRequest != null && { oAuthRequest: se_ConnectorOAuthRequest(input.oAuthRequest, context) }),
2115
- ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2116
- };
1763
+ const de_ExecutionDetails = (output, context) => {
1764
+ return take(output, {
1765
+ mostRecentExecutionMessage: __expectString,
1766
+ mostRecentExecutionStatus: __expectString,
1767
+ mostRecentExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1768
+ });
2117
1769
  };
2118
- const se_OAuth2Properties = (input, context) => {
2119
- return {
2120
- ...(input.oAuth2GrantType != null && { oAuth2GrantType: input.oAuth2GrantType }),
2121
- ...(input.tokenUrl != null && { tokenUrl: input.tokenUrl }),
2122
- ...(input.tokenUrlCustomProperties != null && {
2123
- tokenUrlCustomProperties: se_TokenUrlCustomProperties(input.tokenUrlCustomProperties, context),
2124
- }),
2125
- };
1770
+ const de_ExecutionRecord = (output, context) => {
1771
+ return take(output, {
1772
+ dataPullEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1773
+ dataPullStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1774
+ executionId: __expectString,
1775
+ executionResult: _json,
1776
+ executionStatus: __expectString,
1777
+ lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1778
+ metadataCatalogDetails: _json,
1779
+ startedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1780
+ });
2126
1781
  };
2127
- const se_OAuthCredentials = (input, context) => {
2128
- return {
2129
- ...(input.accessToken != null && { accessToken: input.accessToken }),
2130
- ...(input.clientId != null && { clientId: input.clientId }),
2131
- ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2132
- ...(input.oAuthRequest != null && { oAuthRequest: se_ConnectorOAuthRequest(input.oAuthRequest, context) }),
2133
- ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2134
- };
1782
+ const de_FieldTypeDetails = (output, context) => {
1783
+ return take(output, {
1784
+ fieldLengthRange: (_) => de_Range(_, context),
1785
+ fieldType: __expectString,
1786
+ fieldValueRange: (_) => de_Range(_, context),
1787
+ filterOperators: _json,
1788
+ supportedDateFormat: __expectString,
1789
+ supportedValues: _json,
1790
+ valueRegexPattern: __expectString,
1791
+ });
2135
1792
  };
2136
- const se_OAuthProperties = (input, context) => {
2137
- return {
2138
- ...(input.authCodeUrl != null && { authCodeUrl: input.authCodeUrl }),
2139
- ...(input.oAuthScopes != null && { oAuthScopes: se_OAuthScopeList(input.oAuthScopes, context) }),
2140
- ...(input.tokenUrl != null && { tokenUrl: input.tokenUrl }),
2141
- };
1793
+ const de_FlowDefinition = (output, context) => {
1794
+ return take(output, {
1795
+ createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1796
+ createdBy: __expectString,
1797
+ description: __expectString,
1798
+ destinationConnectorLabel: __expectString,
1799
+ destinationConnectorType: __expectString,
1800
+ flowArn: __expectString,
1801
+ flowName: __expectString,
1802
+ flowStatus: __expectString,
1803
+ lastRunExecutionDetails: (_) => de_ExecutionDetails(_, context),
1804
+ lastUpdatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1805
+ lastUpdatedBy: __expectString,
1806
+ sourceConnectorLabel: __expectString,
1807
+ sourceConnectorType: __expectString,
1808
+ tags: _json,
1809
+ triggerType: __expectString,
1810
+ });
2142
1811
  };
2143
- const se_OAuthScopeList = (input, context) => {
2144
- return input
1812
+ const de_FlowExecutionList = (output, context) => {
1813
+ const retVal = (output || [])
2145
1814
  .filter((e) => e != null)
2146
1815
  .map((entry) => {
2147
- return entry;
1816
+ return de_ExecutionRecord(entry, context);
2148
1817
  });
1818
+ return retVal;
2149
1819
  };
2150
- const se_PardotConnectorProfileCredentials = (input, context) => {
2151
- return {
2152
- ...(input.accessToken != null && { accessToken: input.accessToken }),
2153
- ...(input.clientCredentialsArn != null && { clientCredentialsArn: input.clientCredentialsArn }),
2154
- ...(input.oAuthRequest != null && { oAuthRequest: se_ConnectorOAuthRequest(input.oAuthRequest, context) }),
2155
- ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2156
- };
2157
- };
2158
- const se_PardotConnectorProfileProperties = (input, context) => {
2159
- return {
2160
- ...(input.businessUnitId != null && { businessUnitId: input.businessUnitId }),
2161
- ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2162
- ...(input.isSandboxEnvironment != null && { isSandboxEnvironment: input.isSandboxEnvironment }),
2163
- };
2164
- };
2165
- const se_PardotSourceProperties = (input, context) => {
2166
- return {
2167
- ...(input.object != null && { object: input.object }),
2168
- };
2169
- };
2170
- const se_PathPrefixHierarchy = (input, context) => {
2171
- return input
1820
+ const de_FlowList = (output, context) => {
1821
+ const retVal = (output || [])
2172
1822
  .filter((e) => e != null)
2173
1823
  .map((entry) => {
2174
- return entry;
2175
- });
2176
- };
2177
- const se_PrefixConfig = (input, context) => {
2178
- return {
2179
- ...(input.pathPrefixHierarchy != null && {
2180
- pathPrefixHierarchy: se_PathPrefixHierarchy(input.pathPrefixHierarchy, context),
2181
- }),
2182
- ...(input.prefixFormat != null && { prefixFormat: input.prefixFormat }),
2183
- ...(input.prefixType != null && { prefixType: input.prefixType }),
2184
- };
2185
- };
2186
- const se_ProfilePropertiesMap = (input, context) => {
2187
- return Object.entries(input).reduce((acc, [key, value]) => {
2188
- if (value === null) {
2189
- return acc;
2190
- }
2191
- acc[key] = value;
2192
- return acc;
2193
- }, {});
2194
- };
2195
- const se_RedshiftConnectorProfileCredentials = (input, context) => {
2196
- return {
2197
- ...(input.password != null && { password: input.password }),
2198
- ...(input.username != null && { username: input.username }),
2199
- };
2200
- };
2201
- const se_RedshiftConnectorProfileProperties = (input, context) => {
2202
- return {
2203
- ...(input.bucketName != null && { bucketName: input.bucketName }),
2204
- ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2205
- ...(input.clusterIdentifier != null && { clusterIdentifier: input.clusterIdentifier }),
2206
- ...(input.dataApiRoleArn != null && { dataApiRoleArn: input.dataApiRoleArn }),
2207
- ...(input.databaseName != null && { databaseName: input.databaseName }),
2208
- ...(input.databaseUrl != null && { databaseUrl: input.databaseUrl }),
2209
- ...(input.isRedshiftServerless != null && { isRedshiftServerless: input.isRedshiftServerless }),
2210
- ...(input.roleArn != null && { roleArn: input.roleArn }),
2211
- ...(input.workgroupName != null && { workgroupName: input.workgroupName }),
2212
- };
2213
- };
2214
- const se_RedshiftDestinationProperties = (input, context) => {
2215
- return {
2216
- ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2217
- ...(input.errorHandlingConfig != null && {
2218
- errorHandlingConfig: se_ErrorHandlingConfig(input.errorHandlingConfig, context),
2219
- }),
2220
- ...(input.intermediateBucketName != null && { intermediateBucketName: input.intermediateBucketName }),
2221
- ...(input.object != null && { object: input.object }),
2222
- };
2223
- };
2224
- const se_S3DestinationProperties = (input, context) => {
2225
- return {
2226
- ...(input.bucketName != null && { bucketName: input.bucketName }),
2227
- ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2228
- ...(input.s3OutputFormatConfig != null && {
2229
- s3OutputFormatConfig: se_S3OutputFormatConfig(input.s3OutputFormatConfig, context),
2230
- }),
2231
- };
2232
- };
2233
- const se_S3InputFormatConfig = (input, context) => {
2234
- return {
2235
- ...(input.s3InputFileType != null && { s3InputFileType: input.s3InputFileType }),
2236
- };
2237
- };
2238
- const se_S3OutputFormatConfig = (input, context) => {
2239
- return {
2240
- ...(input.aggregationConfig != null && {
2241
- aggregationConfig: se_AggregationConfig(input.aggregationConfig, context),
2242
- }),
2243
- ...(input.fileType != null && { fileType: input.fileType }),
2244
- ...(input.prefixConfig != null && { prefixConfig: se_PrefixConfig(input.prefixConfig, context) }),
2245
- ...(input.preserveSourceDataTyping != null && { preserveSourceDataTyping: input.preserveSourceDataTyping }),
2246
- };
2247
- };
2248
- const se_S3SourceProperties = (input, context) => {
2249
- return {
2250
- ...(input.bucketName != null && { bucketName: input.bucketName }),
2251
- ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2252
- ...(input.s3InputFormatConfig != null && {
2253
- s3InputFormatConfig: se_S3InputFormatConfig(input.s3InputFormatConfig, context),
2254
- }),
2255
- };
2256
- };
2257
- const se_SalesforceConnectorProfileCredentials = (input, context) => {
2258
- return {
2259
- ...(input.accessToken != null && { accessToken: input.accessToken }),
2260
- ...(input.clientCredentialsArn != null && { clientCredentialsArn: input.clientCredentialsArn }),
2261
- ...(input.oAuthRequest != null && { oAuthRequest: se_ConnectorOAuthRequest(input.oAuthRequest, context) }),
2262
- ...(input.refreshToken != null && { refreshToken: input.refreshToken }),
2263
- };
2264
- };
2265
- const se_SalesforceConnectorProfileProperties = (input, context) => {
2266
- return {
2267
- ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2268
- ...(input.isSandboxEnvironment != null && { isSandboxEnvironment: input.isSandboxEnvironment }),
2269
- ...(input.usePrivateLinkForMetadataAndAuthorization != null && {
2270
- usePrivateLinkForMetadataAndAuthorization: input.usePrivateLinkForMetadataAndAuthorization,
2271
- }),
2272
- };
2273
- };
2274
- const se_SalesforceDestinationProperties = (input, context) => {
2275
- return {
2276
- ...(input.dataTransferApi != null && { dataTransferApi: input.dataTransferApi }),
2277
- ...(input.errorHandlingConfig != null && {
2278
- errorHandlingConfig: se_ErrorHandlingConfig(input.errorHandlingConfig, context),
2279
- }),
2280
- ...(input.idFieldNames != null && { idFieldNames: se_IdFieldNameList(input.idFieldNames, context) }),
2281
- ...(input.object != null && { object: input.object }),
2282
- ...(input.writeOperationType != null && { writeOperationType: input.writeOperationType }),
2283
- };
2284
- };
2285
- const se_SalesforceSourceProperties = (input, context) => {
2286
- return {
2287
- ...(input.dataTransferApi != null && { dataTransferApi: input.dataTransferApi }),
2288
- ...(input.enableDynamicFieldUpdate != null && { enableDynamicFieldUpdate: input.enableDynamicFieldUpdate }),
2289
- ...(input.includeDeletedRecords != null && { includeDeletedRecords: input.includeDeletedRecords }),
2290
- ...(input.object != null && { object: input.object }),
2291
- };
2292
- };
2293
- const se_SAPODataConnectorProfileCredentials = (input, context) => {
2294
- return {
2295
- ...(input.basicAuthCredentials != null && {
2296
- basicAuthCredentials: se_BasicAuthCredentials(input.basicAuthCredentials, context),
2297
- }),
2298
- ...(input.oAuthCredentials != null && { oAuthCredentials: se_OAuthCredentials(input.oAuthCredentials, context) }),
2299
- };
2300
- };
2301
- const se_SAPODataConnectorProfileProperties = (input, context) => {
2302
- return {
2303
- ...(input.applicationHostUrl != null && { applicationHostUrl: input.applicationHostUrl }),
2304
- ...(input.applicationServicePath != null && { applicationServicePath: input.applicationServicePath }),
2305
- ...(input.clientNumber != null && { clientNumber: input.clientNumber }),
2306
- ...(input.logonLanguage != null && { logonLanguage: input.logonLanguage }),
2307
- ...(input.oAuthProperties != null && { oAuthProperties: se_OAuthProperties(input.oAuthProperties, context) }),
2308
- ...(input.portNumber != null && { portNumber: input.portNumber }),
2309
- ...(input.privateLinkServiceName != null && { privateLinkServiceName: input.privateLinkServiceName }),
2310
- };
2311
- };
2312
- const se_SAPODataDestinationProperties = (input, context) => {
2313
- return {
2314
- ...(input.errorHandlingConfig != null && {
2315
- errorHandlingConfig: se_ErrorHandlingConfig(input.errorHandlingConfig, context),
2316
- }),
2317
- ...(input.idFieldNames != null && { idFieldNames: se_IdFieldNameList(input.idFieldNames, context) }),
2318
- ...(input.objectPath != null && { objectPath: input.objectPath }),
2319
- ...(input.successResponseHandlingConfig != null && {
2320
- successResponseHandlingConfig: se_SuccessResponseHandlingConfig(input.successResponseHandlingConfig, context),
2321
- }),
2322
- ...(input.writeOperationType != null && { writeOperationType: input.writeOperationType }),
2323
- };
2324
- };
2325
- const se_SAPODataSourceProperties = (input, context) => {
2326
- return {
2327
- ...(input.objectPath != null && { objectPath: input.objectPath }),
2328
- };
2329
- };
2330
- const se_ScheduledTriggerProperties = (input, context) => {
2331
- return {
2332
- ...(input.dataPullMode != null && { dataPullMode: input.dataPullMode }),
2333
- ...(input.firstExecutionFrom != null && {
2334
- firstExecutionFrom: Math.round(input.firstExecutionFrom.getTime() / 1000),
2335
- }),
2336
- ...(input.flowErrorDeactivationThreshold != null && {
2337
- flowErrorDeactivationThreshold: input.flowErrorDeactivationThreshold,
2338
- }),
2339
- ...(input.scheduleEndTime != null && { scheduleEndTime: Math.round(input.scheduleEndTime.getTime() / 1000) }),
2340
- ...(input.scheduleExpression != null && { scheduleExpression: input.scheduleExpression }),
2341
- ...(input.scheduleOffset != null && { scheduleOffset: input.scheduleOffset }),
2342
- ...(input.scheduleStartTime != null && { scheduleStartTime: Math.round(input.scheduleStartTime.getTime() / 1000) }),
2343
- ...(input.timezone != null && { timezone: input.timezone }),
2344
- };
2345
- };
2346
- const se_ServiceNowConnectorProfileCredentials = (input, context) => {
2347
- return {
2348
- ...(input.password != null && { password: input.password }),
2349
- ...(input.username != null && { username: input.username }),
2350
- };
2351
- };
2352
- const se_ServiceNowConnectorProfileProperties = (input, context) => {
2353
- return {
2354
- ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2355
- };
2356
- };
2357
- const se_ServiceNowSourceProperties = (input, context) => {
2358
- return {
2359
- ...(input.object != null && { object: input.object }),
2360
- };
2361
- };
2362
- const se_SingularConnectorProfileCredentials = (input, context) => {
2363
- return {
2364
- ...(input.apiKey != null && { apiKey: input.apiKey }),
2365
- };
2366
- };
2367
- const se_SingularConnectorProfileProperties = (input, context) => {
2368
- return {};
2369
- };
2370
- const se_SingularSourceProperties = (input, context) => {
2371
- return {
2372
- ...(input.object != null && { object: input.object }),
2373
- };
2374
- };
2375
- const se_SlackConnectorProfileCredentials = (input, context) => {
2376
- return {
2377
- ...(input.accessToken != null && { accessToken: input.accessToken }),
2378
- ...(input.clientId != null && { clientId: input.clientId }),
2379
- ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2380
- ...(input.oAuthRequest != null && { oAuthRequest: se_ConnectorOAuthRequest(input.oAuthRequest, context) }),
2381
- };
2382
- };
2383
- const se_SlackConnectorProfileProperties = (input, context) => {
2384
- return {
2385
- ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2386
- };
2387
- };
2388
- const se_SlackSourceProperties = (input, context) => {
2389
- return {
2390
- ...(input.object != null && { object: input.object }),
2391
- };
2392
- };
2393
- const se_SnowflakeConnectorProfileCredentials = (input, context) => {
2394
- return {
2395
- ...(input.password != null && { password: input.password }),
2396
- ...(input.username != null && { username: input.username }),
2397
- };
2398
- };
2399
- const se_SnowflakeConnectorProfileProperties = (input, context) => {
2400
- return {
2401
- ...(input.accountName != null && { accountName: input.accountName }),
2402
- ...(input.bucketName != null && { bucketName: input.bucketName }),
2403
- ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2404
- ...(input.privateLinkServiceName != null && { privateLinkServiceName: input.privateLinkServiceName }),
2405
- ...(input.region != null && { region: input.region }),
2406
- ...(input.stage != null && { stage: input.stage }),
2407
- ...(input.warehouse != null && { warehouse: input.warehouse }),
2408
- };
2409
- };
2410
- const se_SnowflakeDestinationProperties = (input, context) => {
2411
- return {
2412
- ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2413
- ...(input.errorHandlingConfig != null && {
2414
- errorHandlingConfig: se_ErrorHandlingConfig(input.errorHandlingConfig, context),
2415
- }),
2416
- ...(input.intermediateBucketName != null && { intermediateBucketName: input.intermediateBucketName }),
2417
- ...(input.object != null && { object: input.object }),
2418
- };
2419
- };
2420
- const se_SourceConnectorProperties = (input, context) => {
2421
- return {
2422
- ...(input.Amplitude != null && { Amplitude: se_AmplitudeSourceProperties(input.Amplitude, context) }),
2423
- ...(input.CustomConnector != null && {
2424
- CustomConnector: se_CustomConnectorSourceProperties(input.CustomConnector, context),
2425
- }),
2426
- ...(input.Datadog != null && { Datadog: se_DatadogSourceProperties(input.Datadog, context) }),
2427
- ...(input.Dynatrace != null && { Dynatrace: se_DynatraceSourceProperties(input.Dynatrace, context) }),
2428
- ...(input.GoogleAnalytics != null && {
2429
- GoogleAnalytics: se_GoogleAnalyticsSourceProperties(input.GoogleAnalytics, context),
2430
- }),
2431
- ...(input.InforNexus != null && { InforNexus: se_InforNexusSourceProperties(input.InforNexus, context) }),
2432
- ...(input.Marketo != null && { Marketo: se_MarketoSourceProperties(input.Marketo, context) }),
2433
- ...(input.Pardot != null && { Pardot: se_PardotSourceProperties(input.Pardot, context) }),
2434
- ...(input.S3 != null && { S3: se_S3SourceProperties(input.S3, context) }),
2435
- ...(input.SAPOData != null && { SAPOData: se_SAPODataSourceProperties(input.SAPOData, context) }),
2436
- ...(input.Salesforce != null && { Salesforce: se_SalesforceSourceProperties(input.Salesforce, context) }),
2437
- ...(input.ServiceNow != null && { ServiceNow: se_ServiceNowSourceProperties(input.ServiceNow, context) }),
2438
- ...(input.Singular != null && { Singular: se_SingularSourceProperties(input.Singular, context) }),
2439
- ...(input.Slack != null && { Slack: se_SlackSourceProperties(input.Slack, context) }),
2440
- ...(input.Trendmicro != null && { Trendmicro: se_TrendmicroSourceProperties(input.Trendmicro, context) }),
2441
- ...(input.Veeva != null && { Veeva: se_VeevaSourceProperties(input.Veeva, context) }),
2442
- ...(input.Zendesk != null && { Zendesk: se_ZendeskSourceProperties(input.Zendesk, context) }),
2443
- };
2444
- };
2445
- const se_SourceFields = (input, context) => {
2446
- return input
2447
- .filter((e) => e != null)
2448
- .map((entry) => {
2449
- return entry;
2450
- });
2451
- };
2452
- const se_SourceFlowConfig = (input, context) => {
2453
- return {
2454
- ...(input.apiVersion != null && { apiVersion: input.apiVersion }),
2455
- ...(input.connectorProfileName != null && { connectorProfileName: input.connectorProfileName }),
2456
- ...(input.connectorType != null && { connectorType: input.connectorType }),
2457
- ...(input.incrementalPullConfig != null && {
2458
- incrementalPullConfig: se_IncrementalPullConfig(input.incrementalPullConfig, context),
2459
- }),
2460
- ...(input.sourceConnectorProperties != null && {
2461
- sourceConnectorProperties: se_SourceConnectorProperties(input.sourceConnectorProperties, context),
2462
- }),
2463
- };
2464
- };
2465
- const se_SuccessResponseHandlingConfig = (input, context) => {
2466
- return {
2467
- ...(input.bucketName != null && { bucketName: input.bucketName }),
2468
- ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2469
- };
2470
- };
2471
- const se_TagMap = (input, context) => {
2472
- return Object.entries(input).reduce((acc, [key, value]) => {
2473
- if (value === null) {
2474
- return acc;
2475
- }
2476
- acc[key] = value;
2477
- return acc;
2478
- }, {});
2479
- };
2480
- const se_Task = (input, context) => {
2481
- return {
2482
- ...(input.connectorOperator != null && {
2483
- connectorOperator: se_ConnectorOperator(input.connectorOperator, context),
2484
- }),
2485
- ...(input.destinationField != null && { destinationField: input.destinationField }),
2486
- ...(input.sourceFields != null && { sourceFields: se_SourceFields(input.sourceFields, context) }),
2487
- ...(input.taskProperties != null && { taskProperties: se_TaskPropertiesMap(input.taskProperties, context) }),
2488
- ...(input.taskType != null && { taskType: input.taskType }),
2489
- };
2490
- };
2491
- const se_TaskPropertiesMap = (input, context) => {
2492
- return Object.entries(input).reduce((acc, [key, value]) => {
2493
- if (value === null) {
2494
- return acc;
2495
- }
2496
- acc[key] = value;
2497
- return acc;
2498
- }, {});
2499
- };
2500
- const se_Tasks = (input, context) => {
2501
- return input
2502
- .filter((e) => e != null)
2503
- .map((entry) => {
2504
- return se_Task(entry, context);
2505
- });
2506
- };
2507
- const se_TokenUrlCustomProperties = (input, context) => {
2508
- return Object.entries(input).reduce((acc, [key, value]) => {
2509
- if (value === null) {
2510
- return acc;
2511
- }
2512
- acc[key] = value;
2513
- return acc;
2514
- }, {});
2515
- };
2516
- const se_TrendmicroConnectorProfileCredentials = (input, context) => {
2517
- return {
2518
- ...(input.apiSecretKey != null && { apiSecretKey: input.apiSecretKey }),
2519
- };
2520
- };
2521
- const se_TrendmicroConnectorProfileProperties = (input, context) => {
2522
- return {};
2523
- };
2524
- const se_TrendmicroSourceProperties = (input, context) => {
2525
- return {
2526
- ...(input.object != null && { object: input.object }),
2527
- };
2528
- };
2529
- const se_TriggerConfig = (input, context) => {
2530
- return {
2531
- ...(input.triggerProperties != null && {
2532
- triggerProperties: se_TriggerProperties(input.triggerProperties, context),
2533
- }),
2534
- ...(input.triggerType != null && { triggerType: input.triggerType }),
2535
- };
2536
- };
2537
- const se_TriggerProperties = (input, context) => {
2538
- return {
2539
- ...(input.Scheduled != null && { Scheduled: se_ScheduledTriggerProperties(input.Scheduled, context) }),
2540
- };
2541
- };
2542
- const se_UpsolverDestinationProperties = (input, context) => {
2543
- return {
2544
- ...(input.bucketName != null && { bucketName: input.bucketName }),
2545
- ...(input.bucketPrefix != null && { bucketPrefix: input.bucketPrefix }),
2546
- ...(input.s3OutputFormatConfig != null && {
2547
- s3OutputFormatConfig: se_UpsolverS3OutputFormatConfig(input.s3OutputFormatConfig, context),
2548
- }),
2549
- };
2550
- };
2551
- const se_UpsolverS3OutputFormatConfig = (input, context) => {
2552
- return {
2553
- ...(input.aggregationConfig != null && {
2554
- aggregationConfig: se_AggregationConfig(input.aggregationConfig, context),
2555
- }),
2556
- ...(input.fileType != null && { fileType: input.fileType }),
2557
- ...(input.prefixConfig != null && { prefixConfig: se_PrefixConfig(input.prefixConfig, context) }),
2558
- };
2559
- };
2560
- const se_VeevaConnectorProfileCredentials = (input, context) => {
2561
- return {
2562
- ...(input.password != null && { password: input.password }),
2563
- ...(input.username != null && { username: input.username }),
2564
- };
2565
- };
2566
- const se_VeevaConnectorProfileProperties = (input, context) => {
2567
- return {
2568
- ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2569
- };
2570
- };
2571
- const se_VeevaSourceProperties = (input, context) => {
2572
- return {
2573
- ...(input.documentType != null && { documentType: input.documentType }),
2574
- ...(input.includeAllVersions != null && { includeAllVersions: input.includeAllVersions }),
2575
- ...(input.includeRenditions != null && { includeRenditions: input.includeRenditions }),
2576
- ...(input.includeSourceFiles != null && { includeSourceFiles: input.includeSourceFiles }),
2577
- ...(input.object != null && { object: input.object }),
2578
- };
2579
- };
2580
- const se_ZendeskConnectorProfileCredentials = (input, context) => {
2581
- return {
2582
- ...(input.accessToken != null && { accessToken: input.accessToken }),
2583
- ...(input.clientId != null && { clientId: input.clientId }),
2584
- ...(input.clientSecret != null && { clientSecret: input.clientSecret }),
2585
- ...(input.oAuthRequest != null && { oAuthRequest: se_ConnectorOAuthRequest(input.oAuthRequest, context) }),
2586
- };
2587
- };
2588
- const se_ZendeskConnectorProfileProperties = (input, context) => {
2589
- return {
2590
- ...(input.instanceUrl != null && { instanceUrl: input.instanceUrl }),
2591
- };
2592
- };
2593
- const se_ZendeskDestinationProperties = (input, context) => {
2594
- return {
2595
- ...(input.errorHandlingConfig != null && {
2596
- errorHandlingConfig: se_ErrorHandlingConfig(input.errorHandlingConfig, context),
2597
- }),
2598
- ...(input.idFieldNames != null && { idFieldNames: se_IdFieldNameList(input.idFieldNames, context) }),
2599
- ...(input.object != null && { object: input.object }),
2600
- ...(input.writeOperationType != null && { writeOperationType: input.writeOperationType }),
2601
- };
2602
- };
2603
- const se_ZendeskSourceProperties = (input, context) => {
2604
- return {
2605
- ...(input.object != null && { object: input.object }),
2606
- };
2607
- };
2608
- const de_AggregationConfig = (output, context) => {
2609
- return {
2610
- aggregationType: __expectString(output.aggregationType),
2611
- targetFileSize: __expectLong(output.targetFileSize),
2612
- };
2613
- };
2614
- const de_AmplitudeConnectorProfileProperties = (output, context) => {
2615
- return {};
2616
- };
2617
- const de_AmplitudeMetadata = (output, context) => {
2618
- return {};
2619
- };
2620
- const de_AmplitudeSourceProperties = (output, context) => {
2621
- return {
2622
- object: __expectString(output.object),
2623
- };
2624
- };
2625
- const de_AuthCodeUrlList = (output, context) => {
2626
- const retVal = (output || [])
2627
- .filter((e) => e != null)
2628
- .map((entry) => {
2629
- if (entry === null) {
2630
- return null;
2631
- }
2632
- return __expectString(entry);
2633
- });
2634
- return retVal;
2635
- };
2636
- const de_AuthenticationConfig = (output, context) => {
2637
- return {
2638
- customAuthConfigs: output.customAuthConfigs != null ? de_CustomAuthConfigList(output.customAuthConfigs, context) : undefined,
2639
- isApiKeyAuthSupported: __expectBoolean(output.isApiKeyAuthSupported),
2640
- isBasicAuthSupported: __expectBoolean(output.isBasicAuthSupported),
2641
- isCustomAuthSupported: __expectBoolean(output.isCustomAuthSupported),
2642
- isOAuth2Supported: __expectBoolean(output.isOAuth2Supported),
2643
- oAuth2Defaults: output.oAuth2Defaults != null ? de_OAuth2Defaults(output.oAuth2Defaults, context) : undefined,
2644
- };
2645
- };
2646
- const de_AuthParameter = (output, context) => {
2647
- return {
2648
- connectorSuppliedValues: output.connectorSuppliedValues != null
2649
- ? de_ConnectorSuppliedValueList(output.connectorSuppliedValues, context)
2650
- : undefined,
2651
- description: __expectString(output.description),
2652
- isRequired: __expectBoolean(output.isRequired),
2653
- isSensitiveField: __expectBoolean(output.isSensitiveField),
2654
- key: __expectString(output.key),
2655
- label: __expectString(output.label),
2656
- };
2657
- };
2658
- const de_AuthParameterList = (output, context) => {
2659
- const retVal = (output || [])
2660
- .filter((e) => e != null)
2661
- .map((entry) => {
2662
- if (entry === null) {
2663
- return null;
2664
- }
2665
- return de_AuthParameter(entry, context);
2666
- });
2667
- return retVal;
2668
- };
2669
- const de_ConnectorConfiguration = (output, context) => {
2670
- return {
2671
- authenticationConfig: output.authenticationConfig != null ? de_AuthenticationConfig(output.authenticationConfig, context) : undefined,
2672
- canUseAsDestination: __expectBoolean(output.canUseAsDestination),
2673
- canUseAsSource: __expectBoolean(output.canUseAsSource),
2674
- connectorArn: __expectString(output.connectorArn),
2675
- connectorDescription: __expectString(output.connectorDescription),
2676
- connectorLabel: __expectString(output.connectorLabel),
2677
- connectorMetadata: output.connectorMetadata != null ? de_ConnectorMetadata(output.connectorMetadata, context) : undefined,
2678
- connectorModes: output.connectorModes != null ? de_ConnectorModeList(output.connectorModes, context) : undefined,
2679
- connectorName: __expectString(output.connectorName),
2680
- connectorOwner: __expectString(output.connectorOwner),
2681
- connectorProvisioningConfig: output.connectorProvisioningConfig != null
2682
- ? de_ConnectorProvisioningConfig(output.connectorProvisioningConfig, context)
2683
- : undefined,
2684
- connectorProvisioningType: __expectString(output.connectorProvisioningType),
2685
- connectorRuntimeSettings: output.connectorRuntimeSettings != null
2686
- ? de_ConnectorRuntimeSettingList(output.connectorRuntimeSettings, context)
2687
- : undefined,
2688
- connectorType: __expectString(output.connectorType),
2689
- connectorVersion: __expectString(output.connectorVersion),
2690
- isPrivateLinkEnabled: __expectBoolean(output.isPrivateLinkEnabled),
2691
- isPrivateLinkEndpointUrlRequired: __expectBoolean(output.isPrivateLinkEndpointUrlRequired),
2692
- logoURL: __expectString(output.logoURL),
2693
- registeredAt: output.registeredAt != null
2694
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
2695
- : undefined,
2696
- registeredBy: __expectString(output.registeredBy),
2697
- supportedApiVersions: output.supportedApiVersions != null
2698
- ? de_SupportedApiVersionList(output.supportedApiVersions, context)
2699
- : undefined,
2700
- supportedDestinationConnectors: output.supportedDestinationConnectors != null
2701
- ? de_ConnectorTypeList(output.supportedDestinationConnectors, context)
2702
- : undefined,
2703
- supportedOperators: output.supportedOperators != null ? de_SupportedOperatorList(output.supportedOperators, context) : undefined,
2704
- supportedSchedulingFrequencies: output.supportedSchedulingFrequencies != null
2705
- ? de_SchedulingFrequencyTypeList(output.supportedSchedulingFrequencies, context)
2706
- : undefined,
2707
- supportedTriggerTypes: output.supportedTriggerTypes != null ? de_TriggerTypeList(output.supportedTriggerTypes, context) : undefined,
2708
- supportedWriteOperations: output.supportedWriteOperations != null
2709
- ? de_SupportedWriteOperationList(output.supportedWriteOperations, context)
2710
- : undefined,
2711
- };
2712
- };
2713
- const de_ConnectorConfigurationsMap = (output, context) => {
2714
- return Object.entries(output).reduce((acc, [key, value]) => {
2715
- if (value === null) {
2716
- return acc;
2717
- }
2718
- acc[key] = de_ConnectorConfiguration(value, context);
2719
- return acc;
2720
- }, {});
2721
- };
2722
- const de_ConnectorDetail = (output, context) => {
2723
- return {
2724
- applicationType: __expectString(output.applicationType),
2725
- connectorDescription: __expectString(output.connectorDescription),
2726
- connectorLabel: __expectString(output.connectorLabel),
2727
- connectorModes: output.connectorModes != null ? de_ConnectorModeList(output.connectorModes, context) : undefined,
2728
- connectorName: __expectString(output.connectorName),
2729
- connectorOwner: __expectString(output.connectorOwner),
2730
- connectorProvisioningType: __expectString(output.connectorProvisioningType),
2731
- connectorType: __expectString(output.connectorType),
2732
- connectorVersion: __expectString(output.connectorVersion),
2733
- registeredAt: output.registeredAt != null
2734
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.registeredAt)))
2735
- : undefined,
2736
- registeredBy: __expectString(output.registeredBy),
2737
- };
2738
- };
2739
- const de_ConnectorEntity = (output, context) => {
2740
- return {
2741
- hasNestedEntities: __expectBoolean(output.hasNestedEntities),
2742
- label: __expectString(output.label),
2743
- name: __expectString(output.name),
2744
- };
2745
- };
2746
- const de_ConnectorEntityField = (output, context) => {
2747
- return {
2748
- customProperties: output.customProperties != null ? de_CustomProperties(output.customProperties, context) : undefined,
2749
- defaultValue: __expectString(output.defaultValue),
2750
- description: __expectString(output.description),
2751
- destinationProperties: output.destinationProperties != null
2752
- ? de_DestinationFieldProperties(output.destinationProperties, context)
2753
- : undefined,
2754
- identifier: __expectString(output.identifier),
2755
- isDeprecated: __expectBoolean(output.isDeprecated),
2756
- isPrimaryKey: __expectBoolean(output.isPrimaryKey),
2757
- label: __expectString(output.label),
2758
- parentIdentifier: __expectString(output.parentIdentifier),
2759
- sourceProperties: output.sourceProperties != null ? de_SourceFieldProperties(output.sourceProperties, context) : undefined,
2760
- supportedFieldTypeDetails: output.supportedFieldTypeDetails != null
2761
- ? de_SupportedFieldTypeDetails(output.supportedFieldTypeDetails, context)
2762
- : undefined,
2763
- };
2764
- };
2765
- const de_ConnectorEntityFieldList = (output, context) => {
2766
- const retVal = (output || [])
2767
- .filter((e) => e != null)
2768
- .map((entry) => {
2769
- if (entry === null) {
2770
- return null;
2771
- }
2772
- return de_ConnectorEntityField(entry, context);
2773
- });
2774
- return retVal;
2775
- };
2776
- const de_ConnectorEntityList = (output, context) => {
2777
- const retVal = (output || [])
2778
- .filter((e) => e != null)
2779
- .map((entry) => {
2780
- if (entry === null) {
2781
- return null;
2782
- }
2783
- return de_ConnectorEntity(entry, context);
2784
- });
2785
- return retVal;
2786
- };
2787
- const de_ConnectorEntityMap = (output, context) => {
2788
- return Object.entries(output).reduce((acc, [key, value]) => {
2789
- if (value === null) {
2790
- return acc;
2791
- }
2792
- acc[key] = de_ConnectorEntityList(value, context);
2793
- return acc;
2794
- }, {});
2795
- };
2796
- const de_ConnectorList = (output, context) => {
2797
- const retVal = (output || [])
2798
- .filter((e) => e != null)
2799
- .map((entry) => {
2800
- if (entry === null) {
2801
- return null;
2802
- }
2803
- return de_ConnectorDetail(entry, context);
2804
- });
2805
- return retVal;
2806
- };
2807
- const de_ConnectorMetadata = (output, context) => {
2808
- return {
2809
- Amplitude: output.Amplitude != null ? de_AmplitudeMetadata(output.Amplitude, context) : undefined,
2810
- CustomerProfiles: output.CustomerProfiles != null ? de_CustomerProfilesMetadata(output.CustomerProfiles, context) : undefined,
2811
- Datadog: output.Datadog != null ? de_DatadogMetadata(output.Datadog, context) : undefined,
2812
- Dynatrace: output.Dynatrace != null ? de_DynatraceMetadata(output.Dynatrace, context) : undefined,
2813
- EventBridge: output.EventBridge != null ? de_EventBridgeMetadata(output.EventBridge, context) : undefined,
2814
- GoogleAnalytics: output.GoogleAnalytics != null ? de_GoogleAnalyticsMetadata(output.GoogleAnalytics, context) : undefined,
2815
- Honeycode: output.Honeycode != null ? de_HoneycodeMetadata(output.Honeycode, context) : undefined,
2816
- InforNexus: output.InforNexus != null ? de_InforNexusMetadata(output.InforNexus, context) : undefined,
2817
- Marketo: output.Marketo != null ? de_MarketoMetadata(output.Marketo, context) : undefined,
2818
- Pardot: output.Pardot != null ? de_PardotMetadata(output.Pardot, context) : undefined,
2819
- Redshift: output.Redshift != null ? de_RedshiftMetadata(output.Redshift, context) : undefined,
2820
- S3: output.S3 != null ? de_S3Metadata(output.S3, context) : undefined,
2821
- SAPOData: output.SAPOData != null ? de_SAPODataMetadata(output.SAPOData, context) : undefined,
2822
- Salesforce: output.Salesforce != null ? de_SalesforceMetadata(output.Salesforce, context) : undefined,
2823
- ServiceNow: output.ServiceNow != null ? de_ServiceNowMetadata(output.ServiceNow, context) : undefined,
2824
- Singular: output.Singular != null ? de_SingularMetadata(output.Singular, context) : undefined,
2825
- Slack: output.Slack != null ? de_SlackMetadata(output.Slack, context) : undefined,
2826
- Snowflake: output.Snowflake != null ? de_SnowflakeMetadata(output.Snowflake, context) : undefined,
2827
- Trendmicro: output.Trendmicro != null ? de_TrendmicroMetadata(output.Trendmicro, context) : undefined,
2828
- Upsolver: output.Upsolver != null ? de_UpsolverMetadata(output.Upsolver, context) : undefined,
2829
- Veeva: output.Veeva != null ? de_VeevaMetadata(output.Veeva, context) : undefined,
2830
- Zendesk: output.Zendesk != null ? de_ZendeskMetadata(output.Zendesk, context) : undefined,
2831
- };
2832
- };
2833
- const de_ConnectorModeList = (output, context) => {
2834
- const retVal = (output || [])
2835
- .filter((e) => e != null)
2836
- .map((entry) => {
2837
- if (entry === null) {
2838
- return null;
2839
- }
2840
- return __expectString(entry);
2841
- });
2842
- return retVal;
2843
- };
2844
- const de_ConnectorOperator = (output, context) => {
2845
- return {
2846
- Amplitude: __expectString(output.Amplitude),
2847
- CustomConnector: __expectString(output.CustomConnector),
2848
- Datadog: __expectString(output.Datadog),
2849
- Dynatrace: __expectString(output.Dynatrace),
2850
- GoogleAnalytics: __expectString(output.GoogleAnalytics),
2851
- InforNexus: __expectString(output.InforNexus),
2852
- Marketo: __expectString(output.Marketo),
2853
- Pardot: __expectString(output.Pardot),
2854
- S3: __expectString(output.S3),
2855
- SAPOData: __expectString(output.SAPOData),
2856
- Salesforce: __expectString(output.Salesforce),
2857
- ServiceNow: __expectString(output.ServiceNow),
2858
- Singular: __expectString(output.Singular),
2859
- Slack: __expectString(output.Slack),
2860
- Trendmicro: __expectString(output.Trendmicro),
2861
- Veeva: __expectString(output.Veeva),
2862
- Zendesk: __expectString(output.Zendesk),
2863
- };
2864
- };
2865
- const de_ConnectorProfile = (output, context) => {
2866
- return {
2867
- connectionMode: __expectString(output.connectionMode),
2868
- connectorLabel: __expectString(output.connectorLabel),
2869
- connectorProfileArn: __expectString(output.connectorProfileArn),
2870
- connectorProfileName: __expectString(output.connectorProfileName),
2871
- connectorProfileProperties: output.connectorProfileProperties != null
2872
- ? de_ConnectorProfileProperties(output.connectorProfileProperties, context)
2873
- : undefined,
2874
- connectorType: __expectString(output.connectorType),
2875
- createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
2876
- credentialsArn: __expectString(output.credentialsArn),
2877
- lastUpdatedAt: output.lastUpdatedAt != null
2878
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
2879
- : undefined,
2880
- privateConnectionProvisioningState: output.privateConnectionProvisioningState != null
2881
- ? de_PrivateConnectionProvisioningState(output.privateConnectionProvisioningState, context)
2882
- : undefined,
2883
- };
2884
- };
2885
- const de_ConnectorProfileDetailList = (output, context) => {
2886
- const retVal = (output || [])
2887
- .filter((e) => e != null)
2888
- .map((entry) => {
2889
- if (entry === null) {
2890
- return null;
2891
- }
2892
- return de_ConnectorProfile(entry, context);
2893
- });
2894
- return retVal;
2895
- };
2896
- const de_ConnectorProfileProperties = (output, context) => {
2897
- return {
2898
- Amplitude: output.Amplitude != null ? de_AmplitudeConnectorProfileProperties(output.Amplitude, context) : undefined,
2899
- CustomConnector: output.CustomConnector != null ? de_CustomConnectorProfileProperties(output.CustomConnector, context) : undefined,
2900
- Datadog: output.Datadog != null ? de_DatadogConnectorProfileProperties(output.Datadog, context) : undefined,
2901
- Dynatrace: output.Dynatrace != null ? de_DynatraceConnectorProfileProperties(output.Dynatrace, context) : undefined,
2902
- GoogleAnalytics: output.GoogleAnalytics != null
2903
- ? de_GoogleAnalyticsConnectorProfileProperties(output.GoogleAnalytics, context)
2904
- : undefined,
2905
- Honeycode: output.Honeycode != null ? de_HoneycodeConnectorProfileProperties(output.Honeycode, context) : undefined,
2906
- InforNexus: output.InforNexus != null ? de_InforNexusConnectorProfileProperties(output.InforNexus, context) : undefined,
2907
- Marketo: output.Marketo != null ? de_MarketoConnectorProfileProperties(output.Marketo, context) : undefined,
2908
- Pardot: output.Pardot != null ? de_PardotConnectorProfileProperties(output.Pardot, context) : undefined,
2909
- Redshift: output.Redshift != null ? de_RedshiftConnectorProfileProperties(output.Redshift, context) : undefined,
2910
- SAPOData: output.SAPOData != null ? de_SAPODataConnectorProfileProperties(output.SAPOData, context) : undefined,
2911
- Salesforce: output.Salesforce != null ? de_SalesforceConnectorProfileProperties(output.Salesforce, context) : undefined,
2912
- ServiceNow: output.ServiceNow != null ? de_ServiceNowConnectorProfileProperties(output.ServiceNow, context) : undefined,
2913
- Singular: output.Singular != null ? de_SingularConnectorProfileProperties(output.Singular, context) : undefined,
2914
- Slack: output.Slack != null ? de_SlackConnectorProfileProperties(output.Slack, context) : undefined,
2915
- Snowflake: output.Snowflake != null ? de_SnowflakeConnectorProfileProperties(output.Snowflake, context) : undefined,
2916
- Trendmicro: output.Trendmicro != null ? de_TrendmicroConnectorProfileProperties(output.Trendmicro, context) : undefined,
2917
- Veeva: output.Veeva != null ? de_VeevaConnectorProfileProperties(output.Veeva, context) : undefined,
2918
- Zendesk: output.Zendesk != null ? de_ZendeskConnectorProfileProperties(output.Zendesk, context) : undefined,
2919
- };
2920
- };
2921
- const de_ConnectorProvisioningConfig = (output, context) => {
2922
- return {
2923
- lambda: output.lambda != null ? de_LambdaConnectorProvisioningConfig(output.lambda, context) : undefined,
2924
- };
2925
- };
2926
- const de_ConnectorRuntimeSetting = (output, context) => {
2927
- return {
2928
- connectorSuppliedValueOptions: output.connectorSuppliedValueOptions != null
2929
- ? de_ConnectorSuppliedValueOptionList(output.connectorSuppliedValueOptions, context)
2930
- : undefined,
2931
- dataType: __expectString(output.dataType),
2932
- description: __expectString(output.description),
2933
- isRequired: __expectBoolean(output.isRequired),
2934
- key: __expectString(output.key),
2935
- label: __expectString(output.label),
2936
- scope: __expectString(output.scope),
2937
- };
2938
- };
2939
- const de_ConnectorRuntimeSettingList = (output, context) => {
2940
- const retVal = (output || [])
2941
- .filter((e) => e != null)
2942
- .map((entry) => {
2943
- if (entry === null) {
2944
- return null;
2945
- }
2946
- return de_ConnectorRuntimeSetting(entry, context);
2947
- });
2948
- return retVal;
2949
- };
2950
- const de_ConnectorSuppliedValueList = (output, context) => {
2951
- const retVal = (output || [])
2952
- .filter((e) => e != null)
2953
- .map((entry) => {
2954
- if (entry === null) {
2955
- return null;
2956
- }
2957
- return __expectString(entry);
2958
- });
2959
- return retVal;
2960
- };
2961
- const de_ConnectorSuppliedValueOptionList = (output, context) => {
2962
- const retVal = (output || [])
2963
- .filter((e) => e != null)
2964
- .map((entry) => {
2965
- if (entry === null) {
2966
- return null;
2967
- }
2968
- return __expectString(entry);
2969
- });
2970
- return retVal;
2971
- };
2972
- const de_ConnectorTypeList = (output, context) => {
2973
- const retVal = (output || [])
2974
- .filter((e) => e != null)
2975
- .map((entry) => {
2976
- if (entry === null) {
2977
- return null;
2978
- }
2979
- return __expectString(entry);
2980
- });
2981
- return retVal;
2982
- };
2983
- const de_CustomAuthConfig = (output, context) => {
2984
- return {
2985
- authParameters: output.authParameters != null ? de_AuthParameterList(output.authParameters, context) : undefined,
2986
- customAuthenticationType: __expectString(output.customAuthenticationType),
2987
- };
2988
- };
2989
- const de_CustomAuthConfigList = (output, context) => {
2990
- const retVal = (output || [])
2991
- .filter((e) => e != null)
2992
- .map((entry) => {
2993
- if (entry === null) {
2994
- return null;
2995
- }
2996
- return de_CustomAuthConfig(entry, context);
2997
- });
2998
- return retVal;
2999
- };
3000
- const de_CustomConnectorDestinationProperties = (output, context) => {
3001
- return {
3002
- customProperties: output.customProperties != null ? de_CustomProperties(output.customProperties, context) : undefined,
3003
- entityName: __expectString(output.entityName),
3004
- errorHandlingConfig: output.errorHandlingConfig != null ? de_ErrorHandlingConfig(output.errorHandlingConfig, context) : undefined,
3005
- idFieldNames: output.idFieldNames != null ? de_IdFieldNameList(output.idFieldNames, context) : undefined,
3006
- writeOperationType: __expectString(output.writeOperationType),
3007
- };
3008
- };
3009
- const de_CustomConnectorProfileProperties = (output, context) => {
3010
- return {
3011
- oAuth2Properties: output.oAuth2Properties != null ? de_OAuth2Properties(output.oAuth2Properties, context) : undefined,
3012
- profileProperties: output.profileProperties != null ? de_ProfilePropertiesMap(output.profileProperties, context) : undefined,
3013
- };
3014
- };
3015
- const de_CustomConnectorSourceProperties = (output, context) => {
3016
- return {
3017
- customProperties: output.customProperties != null ? de_CustomProperties(output.customProperties, context) : undefined,
3018
- entityName: __expectString(output.entityName),
3019
- };
3020
- };
3021
- const de_CustomerProfilesDestinationProperties = (output, context) => {
3022
- return {
3023
- domainName: __expectString(output.domainName),
3024
- objectTypeName: __expectString(output.objectTypeName),
3025
- };
3026
- };
3027
- const de_CustomerProfilesMetadata = (output, context) => {
3028
- return {};
3029
- };
3030
- const de_CustomProperties = (output, context) => {
3031
- return Object.entries(output).reduce((acc, [key, value]) => {
3032
- if (value === null) {
3033
- return acc;
3034
- }
3035
- acc[key] = __expectString(value);
3036
- return acc;
3037
- }, {});
3038
- };
3039
- const de_DatadogConnectorProfileProperties = (output, context) => {
3040
- return {
3041
- instanceUrl: __expectString(output.instanceUrl),
3042
- };
3043
- };
3044
- const de_DatadogMetadata = (output, context) => {
3045
- return {};
3046
- };
3047
- const de_DatadogSourceProperties = (output, context) => {
3048
- return {
3049
- object: __expectString(output.object),
3050
- };
3051
- };
3052
- const de_DestinationConnectorProperties = (output, context) => {
3053
- return {
3054
- CustomConnector: output.CustomConnector != null
3055
- ? de_CustomConnectorDestinationProperties(output.CustomConnector, context)
3056
- : undefined,
3057
- CustomerProfiles: output.CustomerProfiles != null
3058
- ? de_CustomerProfilesDestinationProperties(output.CustomerProfiles, context)
3059
- : undefined,
3060
- EventBridge: output.EventBridge != null ? de_EventBridgeDestinationProperties(output.EventBridge, context) : undefined,
3061
- Honeycode: output.Honeycode != null ? de_HoneycodeDestinationProperties(output.Honeycode, context) : undefined,
3062
- LookoutMetrics: output.LookoutMetrics != null
3063
- ? de_LookoutMetricsDestinationProperties(output.LookoutMetrics, context)
3064
- : undefined,
3065
- Marketo: output.Marketo != null ? de_MarketoDestinationProperties(output.Marketo, context) : undefined,
3066
- Redshift: output.Redshift != null ? de_RedshiftDestinationProperties(output.Redshift, context) : undefined,
3067
- S3: output.S3 != null ? de_S3DestinationProperties(output.S3, context) : undefined,
3068
- SAPOData: output.SAPOData != null ? de_SAPODataDestinationProperties(output.SAPOData, context) : undefined,
3069
- Salesforce: output.Salesforce != null ? de_SalesforceDestinationProperties(output.Salesforce, context) : undefined,
3070
- Snowflake: output.Snowflake != null ? de_SnowflakeDestinationProperties(output.Snowflake, context) : undefined,
3071
- Upsolver: output.Upsolver != null ? de_UpsolverDestinationProperties(output.Upsolver, context) : undefined,
3072
- Zendesk: output.Zendesk != null ? de_ZendeskDestinationProperties(output.Zendesk, context) : undefined,
3073
- };
3074
- };
3075
- const de_DestinationFieldProperties = (output, context) => {
3076
- return {
3077
- isCreatable: __expectBoolean(output.isCreatable),
3078
- isDefaultedOnCreate: __expectBoolean(output.isDefaultedOnCreate),
3079
- isNullable: __expectBoolean(output.isNullable),
3080
- isUpdatable: __expectBoolean(output.isUpdatable),
3081
- isUpsertable: __expectBoolean(output.isUpsertable),
3082
- supportedWriteOperations: output.supportedWriteOperations != null
3083
- ? de_SupportedWriteOperationList(output.supportedWriteOperations, context)
3084
- : undefined,
3085
- };
3086
- };
3087
- const de_DestinationFlowConfig = (output, context) => {
3088
- return {
3089
- apiVersion: __expectString(output.apiVersion),
3090
- connectorProfileName: __expectString(output.connectorProfileName),
3091
- connectorType: __expectString(output.connectorType),
3092
- destinationConnectorProperties: output.destinationConnectorProperties != null
3093
- ? de_DestinationConnectorProperties(output.destinationConnectorProperties, context)
3094
- : undefined,
3095
- };
3096
- };
3097
- const de_DestinationFlowConfigList = (output, context) => {
3098
- const retVal = (output || [])
3099
- .filter((e) => e != null)
3100
- .map((entry) => {
3101
- if (entry === null) {
3102
- return null;
3103
- }
3104
- return de_DestinationFlowConfig(entry, context);
3105
- });
3106
- return retVal;
3107
- };
3108
- const de_DynatraceConnectorProfileProperties = (output, context) => {
3109
- return {
3110
- instanceUrl: __expectString(output.instanceUrl),
3111
- };
3112
- };
3113
- const de_DynatraceMetadata = (output, context) => {
3114
- return {};
3115
- };
3116
- const de_DynatraceSourceProperties = (output, context) => {
3117
- return {
3118
- object: __expectString(output.object),
3119
- };
3120
- };
3121
- const de_ErrorHandlingConfig = (output, context) => {
3122
- return {
3123
- bucketName: __expectString(output.bucketName),
3124
- bucketPrefix: __expectString(output.bucketPrefix),
3125
- failOnFirstDestinationError: __expectBoolean(output.failOnFirstDestinationError),
3126
- };
3127
- };
3128
- const de_ErrorInfo = (output, context) => {
3129
- return {
3130
- executionMessage: __expectString(output.executionMessage),
3131
- putFailuresCount: __expectLong(output.putFailuresCount),
3132
- };
3133
- };
3134
- const de_EventBridgeDestinationProperties = (output, context) => {
3135
- return {
3136
- errorHandlingConfig: output.errorHandlingConfig != null ? de_ErrorHandlingConfig(output.errorHandlingConfig, context) : undefined,
3137
- object: __expectString(output.object),
3138
- };
3139
- };
3140
- const de_EventBridgeMetadata = (output, context) => {
3141
- return {};
3142
- };
3143
- const de_ExecutionDetails = (output, context) => {
3144
- return {
3145
- mostRecentExecutionMessage: __expectString(output.mostRecentExecutionMessage),
3146
- mostRecentExecutionStatus: __expectString(output.mostRecentExecutionStatus),
3147
- mostRecentExecutionTime: output.mostRecentExecutionTime != null
3148
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.mostRecentExecutionTime)))
3149
- : undefined,
3150
- };
3151
- };
3152
- const de_ExecutionRecord = (output, context) => {
3153
- return {
3154
- dataPullEndTime: output.dataPullEndTime != null
3155
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.dataPullEndTime)))
3156
- : undefined,
3157
- dataPullStartTime: output.dataPullStartTime != null
3158
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.dataPullStartTime)))
3159
- : undefined,
3160
- executionId: __expectString(output.executionId),
3161
- executionResult: output.executionResult != null ? de_ExecutionResult(output.executionResult, context) : undefined,
3162
- executionStatus: __expectString(output.executionStatus),
3163
- lastUpdatedAt: output.lastUpdatedAt != null
3164
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
3165
- : undefined,
3166
- metadataCatalogDetails: output.metadataCatalogDetails != null
3167
- ? de_MetadataCatalogDetails(output.metadataCatalogDetails, context)
3168
- : undefined,
3169
- startedAt: output.startedAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.startedAt))) : undefined,
3170
- };
3171
- };
3172
- const de_ExecutionResult = (output, context) => {
3173
- return {
3174
- bytesProcessed: __expectLong(output.bytesProcessed),
3175
- bytesWritten: __expectLong(output.bytesWritten),
3176
- errorInfo: output.errorInfo != null ? de_ErrorInfo(output.errorInfo, context) : undefined,
3177
- recordsProcessed: __expectLong(output.recordsProcessed),
3178
- };
3179
- };
3180
- const de_FieldTypeDetails = (output, context) => {
3181
- return {
3182
- fieldLengthRange: output.fieldLengthRange != null ? de_Range(output.fieldLengthRange, context) : undefined,
3183
- fieldType: __expectString(output.fieldType),
3184
- fieldValueRange: output.fieldValueRange != null ? de_Range(output.fieldValueRange, context) : undefined,
3185
- filterOperators: output.filterOperators != null ? de_FilterOperatorList(output.filterOperators, context) : undefined,
3186
- supportedDateFormat: __expectString(output.supportedDateFormat),
3187
- supportedValues: output.supportedValues != null ? de_SupportedValueList(output.supportedValues, context) : undefined,
3188
- valueRegexPattern: __expectString(output.valueRegexPattern),
3189
- };
3190
- };
3191
- const de_FilterOperatorList = (output, context) => {
3192
- const retVal = (output || [])
3193
- .filter((e) => e != null)
3194
- .map((entry) => {
3195
- if (entry === null) {
3196
- return null;
3197
- }
3198
- return __expectString(entry);
3199
- });
3200
- return retVal;
3201
- };
3202
- const de_FlowDefinition = (output, context) => {
3203
- return {
3204
- createdAt: output.createdAt != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.createdAt))) : undefined,
3205
- createdBy: __expectString(output.createdBy),
3206
- description: __expectString(output.description),
3207
- destinationConnectorLabel: __expectString(output.destinationConnectorLabel),
3208
- destinationConnectorType: __expectString(output.destinationConnectorType),
3209
- flowArn: __expectString(output.flowArn),
3210
- flowName: __expectString(output.flowName),
3211
- flowStatus: __expectString(output.flowStatus),
3212
- lastRunExecutionDetails: output.lastRunExecutionDetails != null ? de_ExecutionDetails(output.lastRunExecutionDetails, context) : undefined,
3213
- lastUpdatedAt: output.lastUpdatedAt != null
3214
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.lastUpdatedAt)))
3215
- : undefined,
3216
- lastUpdatedBy: __expectString(output.lastUpdatedBy),
3217
- sourceConnectorLabel: __expectString(output.sourceConnectorLabel),
3218
- sourceConnectorType: __expectString(output.sourceConnectorType),
3219
- tags: output.tags != null ? de_TagMap(output.tags, context) : undefined,
3220
- triggerType: __expectString(output.triggerType),
3221
- };
3222
- };
3223
- const de_FlowExecutionList = (output, context) => {
3224
- const retVal = (output || [])
3225
- .filter((e) => e != null)
3226
- .map((entry) => {
3227
- if (entry === null) {
3228
- return null;
3229
- }
3230
- return de_ExecutionRecord(entry, context);
3231
- });
3232
- return retVal;
3233
- };
3234
- const de_FlowList = (output, context) => {
3235
- const retVal = (output || [])
3236
- .filter((e) => e != null)
3237
- .map((entry) => {
3238
- if (entry === null) {
3239
- return null;
3240
- }
3241
- return de_FlowDefinition(entry, context);
3242
- });
3243
- return retVal;
3244
- };
3245
- const de_GlueDataCatalogConfig = (output, context) => {
3246
- return {
3247
- databaseName: __expectString(output.databaseName),
3248
- roleArn: __expectString(output.roleArn),
3249
- tablePrefix: __expectString(output.tablePrefix),
3250
- };
3251
- };
3252
- const de_GoogleAnalyticsConnectorProfileProperties = (output, context) => {
3253
- return {};
3254
- };
3255
- const de_GoogleAnalyticsMetadata = (output, context) => {
3256
- return {
3257
- oAuthScopes: output.oAuthScopes != null ? de_OAuthScopeList(output.oAuthScopes, context) : undefined,
3258
- };
3259
- };
3260
- const de_GoogleAnalyticsSourceProperties = (output, context) => {
3261
- return {
3262
- object: __expectString(output.object),
3263
- };
3264
- };
3265
- const de_HoneycodeConnectorProfileProperties = (output, context) => {
3266
- return {};
3267
- };
3268
- const de_HoneycodeDestinationProperties = (output, context) => {
3269
- return {
3270
- errorHandlingConfig: output.errorHandlingConfig != null ? de_ErrorHandlingConfig(output.errorHandlingConfig, context) : undefined,
3271
- object: __expectString(output.object),
3272
- };
3273
- };
3274
- const de_HoneycodeMetadata = (output, context) => {
3275
- return {
3276
- oAuthScopes: output.oAuthScopes != null ? de_OAuthScopeList(output.oAuthScopes, context) : undefined,
3277
- };
3278
- };
3279
- const de_IdFieldNameList = (output, context) => {
3280
- const retVal = (output || [])
3281
- .filter((e) => e != null)
3282
- .map((entry) => {
3283
- if (entry === null) {
3284
- return null;
3285
- }
3286
- return __expectString(entry);
3287
- });
3288
- return retVal;
3289
- };
3290
- const de_IncrementalPullConfig = (output, context) => {
3291
- return {
3292
- datetimeTypeFieldName: __expectString(output.datetimeTypeFieldName),
3293
- };
3294
- };
3295
- const de_InforNexusConnectorProfileProperties = (output, context) => {
3296
- return {
3297
- instanceUrl: __expectString(output.instanceUrl),
3298
- };
3299
- };
3300
- const de_InforNexusMetadata = (output, context) => {
3301
- return {};
3302
- };
3303
- const de_InforNexusSourceProperties = (output, context) => {
3304
- return {
3305
- object: __expectString(output.object),
3306
- };
3307
- };
3308
- const de_LambdaConnectorProvisioningConfig = (output, context) => {
3309
- return {
3310
- lambdaArn: __expectString(output.lambdaArn),
3311
- };
3312
- };
3313
- const de_LookoutMetricsDestinationProperties = (output, context) => {
3314
- return {};
3315
- };
3316
- const de_MarketoConnectorProfileProperties = (output, context) => {
3317
- return {
3318
- instanceUrl: __expectString(output.instanceUrl),
3319
- };
3320
- };
3321
- const de_MarketoDestinationProperties = (output, context) => {
3322
- return {
3323
- errorHandlingConfig: output.errorHandlingConfig != null ? de_ErrorHandlingConfig(output.errorHandlingConfig, context) : undefined,
3324
- object: __expectString(output.object),
3325
- };
3326
- };
3327
- const de_MarketoMetadata = (output, context) => {
3328
- return {};
3329
- };
3330
- const de_MarketoSourceProperties = (output, context) => {
3331
- return {
3332
- object: __expectString(output.object),
3333
- };
3334
- };
3335
- const de_MetadataCatalogConfig = (output, context) => {
3336
- return {
3337
- glueDataCatalog: output.glueDataCatalog != null ? de_GlueDataCatalogConfig(output.glueDataCatalog, context) : undefined,
3338
- };
3339
- };
3340
- const de_MetadataCatalogDetail = (output, context) => {
3341
- return {
3342
- catalogType: __expectString(output.catalogType),
3343
- partitionRegistrationOutput: output.partitionRegistrationOutput != null
3344
- ? de_RegistrationOutput(output.partitionRegistrationOutput, context)
3345
- : undefined,
3346
- tableName: __expectString(output.tableName),
3347
- tableRegistrationOutput: output.tableRegistrationOutput != null
3348
- ? de_RegistrationOutput(output.tableRegistrationOutput, context)
3349
- : undefined,
3350
- };
3351
- };
3352
- const de_MetadataCatalogDetails = (output, context) => {
3353
- const retVal = (output || [])
3354
- .filter((e) => e != null)
3355
- .map((entry) => {
3356
- if (entry === null) {
3357
- return null;
3358
- }
3359
- return de_MetadataCatalogDetail(entry, context);
3360
- });
3361
- return retVal;
3362
- };
3363
- const de_OAuth2CustomParameter = (output, context) => {
3364
- return {
3365
- connectorSuppliedValues: output.connectorSuppliedValues != null
3366
- ? de_ConnectorSuppliedValueList(output.connectorSuppliedValues, context)
3367
- : undefined,
3368
- description: __expectString(output.description),
3369
- isRequired: __expectBoolean(output.isRequired),
3370
- isSensitiveField: __expectBoolean(output.isSensitiveField),
3371
- key: __expectString(output.key),
3372
- label: __expectString(output.label),
3373
- type: __expectString(output.type),
3374
- };
3375
- };
3376
- const de_OAuth2CustomPropertiesList = (output, context) => {
3377
- const retVal = (output || [])
3378
- .filter((e) => e != null)
3379
- .map((entry) => {
3380
- if (entry === null) {
3381
- return null;
3382
- }
3383
- return de_OAuth2CustomParameter(entry, context);
3384
- });
3385
- return retVal;
3386
- };
3387
- const de_OAuth2Defaults = (output, context) => {
3388
- return {
3389
- authCodeUrls: output.authCodeUrls != null ? de_AuthCodeUrlList(output.authCodeUrls, context) : undefined,
3390
- oauth2CustomProperties: output.oauth2CustomProperties != null
3391
- ? de_OAuth2CustomPropertiesList(output.oauth2CustomProperties, context)
3392
- : undefined,
3393
- oauth2GrantTypesSupported: output.oauth2GrantTypesSupported != null
3394
- ? de_OAuth2GrantTypeSupportedList(output.oauth2GrantTypesSupported, context)
3395
- : undefined,
3396
- oauthScopes: output.oauthScopes != null ? de_OAuthScopeList(output.oauthScopes, context) : undefined,
3397
- tokenUrls: output.tokenUrls != null ? de_TokenUrlList(output.tokenUrls, context) : undefined,
3398
- };
3399
- };
3400
- const de_OAuth2GrantTypeSupportedList = (output, context) => {
3401
- const retVal = (output || [])
3402
- .filter((e) => e != null)
3403
- .map((entry) => {
3404
- if (entry === null) {
3405
- return null;
3406
- }
3407
- return __expectString(entry);
3408
- });
3409
- return retVal;
3410
- };
3411
- const de_OAuth2Properties = (output, context) => {
3412
- return {
3413
- oAuth2GrantType: __expectString(output.oAuth2GrantType),
3414
- tokenUrl: __expectString(output.tokenUrl),
3415
- tokenUrlCustomProperties: output.tokenUrlCustomProperties != null
3416
- ? de_TokenUrlCustomProperties(output.tokenUrlCustomProperties, context)
3417
- : undefined,
3418
- };
3419
- };
3420
- const de_OAuthProperties = (output, context) => {
3421
- return {
3422
- authCodeUrl: __expectString(output.authCodeUrl),
3423
- oAuthScopes: output.oAuthScopes != null ? de_OAuthScopeList(output.oAuthScopes, context) : undefined,
3424
- tokenUrl: __expectString(output.tokenUrl),
3425
- };
3426
- };
3427
- const de_OAuthScopeList = (output, context) => {
3428
- const retVal = (output || [])
3429
- .filter((e) => e != null)
3430
- .map((entry) => {
3431
- if (entry === null) {
3432
- return null;
3433
- }
3434
- return __expectString(entry);
3435
- });
3436
- return retVal;
3437
- };
3438
- const de_PardotConnectorProfileProperties = (output, context) => {
3439
- return {
3440
- businessUnitId: __expectString(output.businessUnitId),
3441
- instanceUrl: __expectString(output.instanceUrl),
3442
- isSandboxEnvironment: __expectBoolean(output.isSandboxEnvironment),
3443
- };
3444
- };
3445
- const de_PardotMetadata = (output, context) => {
3446
- return {};
3447
- };
3448
- const de_PardotSourceProperties = (output, context) => {
3449
- return {
3450
- object: __expectString(output.object),
3451
- };
3452
- };
3453
- const de_PathPrefixHierarchy = (output, context) => {
3454
- const retVal = (output || [])
3455
- .filter((e) => e != null)
3456
- .map((entry) => {
3457
- if (entry === null) {
3458
- return null;
3459
- }
3460
- return __expectString(entry);
1824
+ return de_FlowDefinition(entry, context);
3461
1825
  });
3462
1826
  return retVal;
3463
1827
  };
3464
- const de_PrefixConfig = (output, context) => {
3465
- return {
3466
- pathPrefixHierarchy: output.pathPrefixHierarchy != null ? de_PathPrefixHierarchy(output.pathPrefixHierarchy, context) : undefined,
3467
- prefixFormat: __expectString(output.prefixFormat),
3468
- prefixType: __expectString(output.prefixType),
3469
- };
3470
- };
3471
- const de_PrivateConnectionProvisioningState = (output, context) => {
3472
- return {
3473
- failureCause: __expectString(output.failureCause),
3474
- failureMessage: __expectString(output.failureMessage),
3475
- status: __expectString(output.status),
3476
- };
3477
- };
3478
- const de_ProfilePropertiesMap = (output, context) => {
3479
- return Object.entries(output).reduce((acc, [key, value]) => {
3480
- if (value === null) {
3481
- return acc;
3482
- }
3483
- acc[key] = __expectString(value);
3484
- return acc;
3485
- }, {});
3486
- };
3487
1828
  const de_Range = (output, context) => {
3488
- return {
3489
- maximum: __limitedParseDouble(output.maximum),
3490
- minimum: __limitedParseDouble(output.minimum),
3491
- };
3492
- };
3493
- const de_RedshiftConnectorProfileProperties = (output, context) => {
3494
- return {
3495
- bucketName: __expectString(output.bucketName),
3496
- bucketPrefix: __expectString(output.bucketPrefix),
3497
- clusterIdentifier: __expectString(output.clusterIdentifier),
3498
- dataApiRoleArn: __expectString(output.dataApiRoleArn),
3499
- databaseName: __expectString(output.databaseName),
3500
- databaseUrl: __expectString(output.databaseUrl),
3501
- isRedshiftServerless: __expectBoolean(output.isRedshiftServerless),
3502
- roleArn: __expectString(output.roleArn),
3503
- workgroupName: __expectString(output.workgroupName),
3504
- };
3505
- };
3506
- const de_RedshiftDestinationProperties = (output, context) => {
3507
- return {
3508
- bucketPrefix: __expectString(output.bucketPrefix),
3509
- errorHandlingConfig: output.errorHandlingConfig != null ? de_ErrorHandlingConfig(output.errorHandlingConfig, context) : undefined,
3510
- intermediateBucketName: __expectString(output.intermediateBucketName),
3511
- object: __expectString(output.object),
3512
- };
3513
- };
3514
- const de_RedshiftMetadata = (output, context) => {
3515
- return {};
3516
- };
3517
- const de_RegionList = (output, context) => {
3518
- const retVal = (output || [])
3519
- .filter((e) => e != null)
3520
- .map((entry) => {
3521
- if (entry === null) {
3522
- return null;
3523
- }
3524
- return __expectString(entry);
3525
- });
3526
- return retVal;
3527
- };
3528
- const de_RegistrationOutput = (output, context) => {
3529
- return {
3530
- message: __expectString(output.message),
3531
- result: __expectString(output.result),
3532
- status: __expectString(output.status),
3533
- };
3534
- };
3535
- const de_S3DestinationProperties = (output, context) => {
3536
- return {
3537
- bucketName: __expectString(output.bucketName),
3538
- bucketPrefix: __expectString(output.bucketPrefix),
3539
- s3OutputFormatConfig: output.s3OutputFormatConfig != null ? de_S3OutputFormatConfig(output.s3OutputFormatConfig, context) : undefined,
3540
- };
3541
- };
3542
- const de_S3InputFormatConfig = (output, context) => {
3543
- return {
3544
- s3InputFileType: __expectString(output.s3InputFileType),
3545
- };
3546
- };
3547
- const de_S3Metadata = (output, context) => {
3548
- return {};
3549
- };
3550
- const de_S3OutputFormatConfig = (output, context) => {
3551
- return {
3552
- aggregationConfig: output.aggregationConfig != null ? de_AggregationConfig(output.aggregationConfig, context) : undefined,
3553
- fileType: __expectString(output.fileType),
3554
- prefixConfig: output.prefixConfig != null ? de_PrefixConfig(output.prefixConfig, context) : undefined,
3555
- preserveSourceDataTyping: __expectBoolean(output.preserveSourceDataTyping),
3556
- };
3557
- };
3558
- const de_S3SourceProperties = (output, context) => {
3559
- return {
3560
- bucketName: __expectString(output.bucketName),
3561
- bucketPrefix: __expectString(output.bucketPrefix),
3562
- s3InputFormatConfig: output.s3InputFormatConfig != null ? de_S3InputFormatConfig(output.s3InputFormatConfig, context) : undefined,
3563
- };
3564
- };
3565
- const de_SalesforceConnectorProfileProperties = (output, context) => {
3566
- return {
3567
- instanceUrl: __expectString(output.instanceUrl),
3568
- isSandboxEnvironment: __expectBoolean(output.isSandboxEnvironment),
3569
- usePrivateLinkForMetadataAndAuthorization: __expectBoolean(output.usePrivateLinkForMetadataAndAuthorization),
3570
- };
3571
- };
3572
- const de_SalesforceDataTransferApiList = (output, context) => {
3573
- const retVal = (output || [])
3574
- .filter((e) => e != null)
3575
- .map((entry) => {
3576
- if (entry === null) {
3577
- return null;
3578
- }
3579
- return __expectString(entry);
1829
+ return take(output, {
1830
+ maximum: __limitedParseDouble,
1831
+ minimum: __limitedParseDouble,
3580
1832
  });
3581
- return retVal;
3582
- };
3583
- const de_SalesforceDestinationProperties = (output, context) => {
3584
- return {
3585
- dataTransferApi: __expectString(output.dataTransferApi),
3586
- errorHandlingConfig: output.errorHandlingConfig != null ? de_ErrorHandlingConfig(output.errorHandlingConfig, context) : undefined,
3587
- idFieldNames: output.idFieldNames != null ? de_IdFieldNameList(output.idFieldNames, context) : undefined,
3588
- object: __expectString(output.object),
3589
- writeOperationType: __expectString(output.writeOperationType),
3590
- };
3591
- };
3592
- const de_SalesforceMetadata = (output, context) => {
3593
- return {
3594
- dataTransferApis: output.dataTransferApis != null ? de_SalesforceDataTransferApiList(output.dataTransferApis, context) : undefined,
3595
- oAuthScopes: output.oAuthScopes != null ? de_OAuthScopeList(output.oAuthScopes, context) : undefined,
3596
- };
3597
- };
3598
- const de_SalesforceSourceProperties = (output, context) => {
3599
- return {
3600
- dataTransferApi: __expectString(output.dataTransferApi),
3601
- enableDynamicFieldUpdate: __expectBoolean(output.enableDynamicFieldUpdate),
3602
- includeDeletedRecords: __expectBoolean(output.includeDeletedRecords),
3603
- object: __expectString(output.object),
3604
- };
3605
- };
3606
- const de_SAPODataConnectorProfileProperties = (output, context) => {
3607
- return {
3608
- applicationHostUrl: __expectString(output.applicationHostUrl),
3609
- applicationServicePath: __expectString(output.applicationServicePath),
3610
- clientNumber: __expectString(output.clientNumber),
3611
- logonLanguage: __expectString(output.logonLanguage),
3612
- oAuthProperties: output.oAuthProperties != null ? de_OAuthProperties(output.oAuthProperties, context) : undefined,
3613
- portNumber: __expectInt32(output.portNumber),
3614
- privateLinkServiceName: __expectString(output.privateLinkServiceName),
3615
- };
3616
- };
3617
- const de_SAPODataDestinationProperties = (output, context) => {
3618
- return {
3619
- errorHandlingConfig: output.errorHandlingConfig != null ? de_ErrorHandlingConfig(output.errorHandlingConfig, context) : undefined,
3620
- idFieldNames: output.idFieldNames != null ? de_IdFieldNameList(output.idFieldNames, context) : undefined,
3621
- objectPath: __expectString(output.objectPath),
3622
- successResponseHandlingConfig: output.successResponseHandlingConfig != null
3623
- ? de_SuccessResponseHandlingConfig(output.successResponseHandlingConfig, context)
3624
- : undefined,
3625
- writeOperationType: __expectString(output.writeOperationType),
3626
- };
3627
- };
3628
- const de_SAPODataMetadata = (output, context) => {
3629
- return {};
3630
- };
3631
- const de_SAPODataSourceProperties = (output, context) => {
3632
- return {
3633
- objectPath: __expectString(output.objectPath),
3634
- };
3635
1833
  };
3636
1834
  const de_ScheduledTriggerProperties = (output, context) => {
3637
- return {
3638
- dataPullMode: __expectString(output.dataPullMode),
3639
- firstExecutionFrom: output.firstExecutionFrom != null
3640
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.firstExecutionFrom)))
3641
- : undefined,
3642
- flowErrorDeactivationThreshold: __expectInt32(output.flowErrorDeactivationThreshold),
3643
- scheduleEndTime: output.scheduleEndTime != null
3644
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.scheduleEndTime)))
3645
- : undefined,
3646
- scheduleExpression: __expectString(output.scheduleExpression),
3647
- scheduleOffset: __expectLong(output.scheduleOffset),
3648
- scheduleStartTime: output.scheduleStartTime != null
3649
- ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.scheduleStartTime)))
3650
- : undefined,
3651
- timezone: __expectString(output.timezone),
3652
- };
3653
- };
3654
- const de_SchedulingFrequencyTypeList = (output, context) => {
3655
- const retVal = (output || [])
3656
- .filter((e) => e != null)
3657
- .map((entry) => {
3658
- if (entry === null) {
3659
- return null;
3660
- }
3661
- return __expectString(entry);
3662
- });
3663
- return retVal;
3664
- };
3665
- const de_ServiceNowConnectorProfileProperties = (output, context) => {
3666
- return {
3667
- instanceUrl: __expectString(output.instanceUrl),
3668
- };
3669
- };
3670
- const de_ServiceNowMetadata = (output, context) => {
3671
- return {};
3672
- };
3673
- const de_ServiceNowSourceProperties = (output, context) => {
3674
- return {
3675
- object: __expectString(output.object),
3676
- };
3677
- };
3678
- const de_SingularConnectorProfileProperties = (output, context) => {
3679
- return {};
3680
- };
3681
- const de_SingularMetadata = (output, context) => {
3682
- return {};
3683
- };
3684
- const de_SingularSourceProperties = (output, context) => {
3685
- return {
3686
- object: __expectString(output.object),
3687
- };
3688
- };
3689
- const de_SlackConnectorProfileProperties = (output, context) => {
3690
- return {
3691
- instanceUrl: __expectString(output.instanceUrl),
3692
- };
3693
- };
3694
- const de_SlackMetadata = (output, context) => {
3695
- return {
3696
- oAuthScopes: output.oAuthScopes != null ? de_OAuthScopeList(output.oAuthScopes, context) : undefined,
3697
- };
3698
- };
3699
- const de_SlackSourceProperties = (output, context) => {
3700
- return {
3701
- object: __expectString(output.object),
3702
- };
3703
- };
3704
- const de_SnowflakeConnectorProfileProperties = (output, context) => {
3705
- return {
3706
- accountName: __expectString(output.accountName),
3707
- bucketName: __expectString(output.bucketName),
3708
- bucketPrefix: __expectString(output.bucketPrefix),
3709
- privateLinkServiceName: __expectString(output.privateLinkServiceName),
3710
- region: __expectString(output.region),
3711
- stage: __expectString(output.stage),
3712
- warehouse: __expectString(output.warehouse),
3713
- };
3714
- };
3715
- const de_SnowflakeDestinationProperties = (output, context) => {
3716
- return {
3717
- bucketPrefix: __expectString(output.bucketPrefix),
3718
- errorHandlingConfig: output.errorHandlingConfig != null ? de_ErrorHandlingConfig(output.errorHandlingConfig, context) : undefined,
3719
- intermediateBucketName: __expectString(output.intermediateBucketName),
3720
- object: __expectString(output.object),
3721
- };
3722
- };
3723
- const de_SnowflakeMetadata = (output, context) => {
3724
- return {
3725
- supportedRegions: output.supportedRegions != null ? de_RegionList(output.supportedRegions, context) : undefined,
3726
- };
3727
- };
3728
- const de_SourceConnectorProperties = (output, context) => {
3729
- return {
3730
- Amplitude: output.Amplitude != null ? de_AmplitudeSourceProperties(output.Amplitude, context) : undefined,
3731
- CustomConnector: output.CustomConnector != null ? de_CustomConnectorSourceProperties(output.CustomConnector, context) : undefined,
3732
- Datadog: output.Datadog != null ? de_DatadogSourceProperties(output.Datadog, context) : undefined,
3733
- Dynatrace: output.Dynatrace != null ? de_DynatraceSourceProperties(output.Dynatrace, context) : undefined,
3734
- GoogleAnalytics: output.GoogleAnalytics != null ? de_GoogleAnalyticsSourceProperties(output.GoogleAnalytics, context) : undefined,
3735
- InforNexus: output.InforNexus != null ? de_InforNexusSourceProperties(output.InforNexus, context) : undefined,
3736
- Marketo: output.Marketo != null ? de_MarketoSourceProperties(output.Marketo, context) : undefined,
3737
- Pardot: output.Pardot != null ? de_PardotSourceProperties(output.Pardot, context) : undefined,
3738
- S3: output.S3 != null ? de_S3SourceProperties(output.S3, context) : undefined,
3739
- SAPOData: output.SAPOData != null ? de_SAPODataSourceProperties(output.SAPOData, context) : undefined,
3740
- Salesforce: output.Salesforce != null ? de_SalesforceSourceProperties(output.Salesforce, context) : undefined,
3741
- ServiceNow: output.ServiceNow != null ? de_ServiceNowSourceProperties(output.ServiceNow, context) : undefined,
3742
- Singular: output.Singular != null ? de_SingularSourceProperties(output.Singular, context) : undefined,
3743
- Slack: output.Slack != null ? de_SlackSourceProperties(output.Slack, context) : undefined,
3744
- Trendmicro: output.Trendmicro != null ? de_TrendmicroSourceProperties(output.Trendmicro, context) : undefined,
3745
- Veeva: output.Veeva != null ? de_VeevaSourceProperties(output.Veeva, context) : undefined,
3746
- Zendesk: output.Zendesk != null ? de_ZendeskSourceProperties(output.Zendesk, context) : undefined,
3747
- };
3748
- };
3749
- const de_SourceFieldProperties = (output, context) => {
3750
- return {
3751
- isQueryable: __expectBoolean(output.isQueryable),
3752
- isRetrievable: __expectBoolean(output.isRetrievable),
3753
- isTimestampFieldForIncrementalQueries: __expectBoolean(output.isTimestampFieldForIncrementalQueries),
3754
- };
3755
- };
3756
- const de_SourceFields = (output, context) => {
3757
- const retVal = (output || [])
3758
- .filter((e) => e != null)
3759
- .map((entry) => {
3760
- if (entry === null) {
3761
- return null;
3762
- }
3763
- return __expectString(entry);
3764
- });
3765
- return retVal;
3766
- };
3767
- const de_SourceFlowConfig = (output, context) => {
3768
- return {
3769
- apiVersion: __expectString(output.apiVersion),
3770
- connectorProfileName: __expectString(output.connectorProfileName),
3771
- connectorType: __expectString(output.connectorType),
3772
- incrementalPullConfig: output.incrementalPullConfig != null
3773
- ? de_IncrementalPullConfig(output.incrementalPullConfig, context)
3774
- : undefined,
3775
- sourceConnectorProperties: output.sourceConnectorProperties != null
3776
- ? de_SourceConnectorProperties(output.sourceConnectorProperties, context)
3777
- : undefined,
3778
- };
3779
- };
3780
- const de_SuccessResponseHandlingConfig = (output, context) => {
3781
- return {
3782
- bucketName: __expectString(output.bucketName),
3783
- bucketPrefix: __expectString(output.bucketPrefix),
3784
- };
3785
- };
3786
- const de_SupportedApiVersionList = (output, context) => {
3787
- const retVal = (output || [])
3788
- .filter((e) => e != null)
3789
- .map((entry) => {
3790
- if (entry === null) {
3791
- return null;
3792
- }
3793
- return __expectString(entry);
1835
+ return take(output, {
1836
+ dataPullMode: __expectString,
1837
+ firstExecutionFrom: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1838
+ flowErrorDeactivationThreshold: __expectInt32,
1839
+ scheduleEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1840
+ scheduleExpression: __expectString,
1841
+ scheduleOffset: __expectLong,
1842
+ scheduleStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
1843
+ timezone: __expectString,
3794
1844
  });
3795
- return retVal;
3796
1845
  };
3797
1846
  const de_SupportedFieldTypeDetails = (output, context) => {
3798
- return {
3799
- v1: output.v1 != null ? de_FieldTypeDetails(output.v1, context) : undefined,
3800
- };
3801
- };
3802
- const de_SupportedOperatorList = (output, context) => {
3803
- const retVal = (output || [])
3804
- .filter((e) => e != null)
3805
- .map((entry) => {
3806
- if (entry === null) {
3807
- return null;
3808
- }
3809
- return __expectString(entry);
3810
- });
3811
- return retVal;
3812
- };
3813
- const de_SupportedValueList = (output, context) => {
3814
- const retVal = (output || [])
3815
- .filter((e) => e != null)
3816
- .map((entry) => {
3817
- if (entry === null) {
3818
- return null;
3819
- }
3820
- return __expectString(entry);
3821
- });
3822
- return retVal;
3823
- };
3824
- const de_SupportedWriteOperationList = (output, context) => {
3825
- const retVal = (output || [])
3826
- .filter((e) => e != null)
3827
- .map((entry) => {
3828
- if (entry === null) {
3829
- return null;
3830
- }
3831
- return __expectString(entry);
3832
- });
3833
- return retVal;
3834
- };
3835
- const de_TagMap = (output, context) => {
3836
- return Object.entries(output).reduce((acc, [key, value]) => {
3837
- if (value === null) {
3838
- return acc;
3839
- }
3840
- acc[key] = __expectString(value);
3841
- return acc;
3842
- }, {});
3843
- };
3844
- const de_Task = (output, context) => {
3845
- return {
3846
- connectorOperator: output.connectorOperator != null ? de_ConnectorOperator(output.connectorOperator, context) : undefined,
3847
- destinationField: __expectString(output.destinationField),
3848
- sourceFields: output.sourceFields != null ? de_SourceFields(output.sourceFields, context) : undefined,
3849
- taskProperties: output.taskProperties != null ? de_TaskPropertiesMap(output.taskProperties, context) : undefined,
3850
- taskType: __expectString(output.taskType),
3851
- };
3852
- };
3853
- const de_TaskPropertiesMap = (output, context) => {
3854
- return Object.entries(output).reduce((acc, [key, value]) => {
3855
- if (value === null) {
3856
- return acc;
3857
- }
3858
- acc[key] = __expectString(value);
3859
- return acc;
3860
- }, {});
3861
- };
3862
- const de_Tasks = (output, context) => {
3863
- const retVal = (output || [])
3864
- .filter((e) => e != null)
3865
- .map((entry) => {
3866
- if (entry === null) {
3867
- return null;
3868
- }
3869
- return de_Task(entry, context);
3870
- });
3871
- return retVal;
3872
- };
3873
- const de_TokenUrlCustomProperties = (output, context) => {
3874
- return Object.entries(output).reduce((acc, [key, value]) => {
3875
- if (value === null) {
3876
- return acc;
3877
- }
3878
- acc[key] = __expectString(value);
3879
- return acc;
3880
- }, {});
3881
- };
3882
- const de_TokenUrlList = (output, context) => {
3883
- const retVal = (output || [])
3884
- .filter((e) => e != null)
3885
- .map((entry) => {
3886
- if (entry === null) {
3887
- return null;
3888
- }
3889
- return __expectString(entry);
1847
+ return take(output, {
1848
+ v1: (_) => de_FieldTypeDetails(_, context),
3890
1849
  });
3891
- return retVal;
3892
- };
3893
- const de_TrendmicroConnectorProfileProperties = (output, context) => {
3894
- return {};
3895
- };
3896
- const de_TrendmicroMetadata = (output, context) => {
3897
- return {};
3898
- };
3899
- const de_TrendmicroSourceProperties = (output, context) => {
3900
- return {
3901
- object: __expectString(output.object),
3902
- };
3903
1850
  };
3904
1851
  const de_TriggerConfig = (output, context) => {
3905
- return {
3906
- triggerProperties: output.triggerProperties != null ? de_TriggerProperties(output.triggerProperties, context) : undefined,
3907
- triggerType: __expectString(output.triggerType),
3908
- };
1852
+ return take(output, {
1853
+ triggerProperties: (_) => de_TriggerProperties(_, context),
1854
+ triggerType: __expectString,
1855
+ });
3909
1856
  };
3910
1857
  const de_TriggerProperties = (output, context) => {
3911
- return {
3912
- Scheduled: output.Scheduled != null ? de_ScheduledTriggerProperties(output.Scheduled, context) : undefined,
3913
- };
3914
- };
3915
- const de_TriggerTypeList = (output, context) => {
3916
- const retVal = (output || [])
3917
- .filter((e) => e != null)
3918
- .map((entry) => {
3919
- if (entry === null) {
3920
- return null;
3921
- }
3922
- return __expectString(entry);
1858
+ return take(output, {
1859
+ Scheduled: (_) => de_ScheduledTriggerProperties(_, context),
3923
1860
  });
3924
- return retVal;
3925
- };
3926
- const de_UpsolverDestinationProperties = (output, context) => {
3927
- return {
3928
- bucketName: __expectString(output.bucketName),
3929
- bucketPrefix: __expectString(output.bucketPrefix),
3930
- s3OutputFormatConfig: output.s3OutputFormatConfig != null
3931
- ? de_UpsolverS3OutputFormatConfig(output.s3OutputFormatConfig, context)
3932
- : undefined,
3933
- };
3934
- };
3935
- const de_UpsolverMetadata = (output, context) => {
3936
- return {};
3937
- };
3938
- const de_UpsolverS3OutputFormatConfig = (output, context) => {
3939
- return {
3940
- aggregationConfig: output.aggregationConfig != null ? de_AggregationConfig(output.aggregationConfig, context) : undefined,
3941
- fileType: __expectString(output.fileType),
3942
- prefixConfig: output.prefixConfig != null ? de_PrefixConfig(output.prefixConfig, context) : undefined,
3943
- };
3944
- };
3945
- const de_VeevaConnectorProfileProperties = (output, context) => {
3946
- return {
3947
- instanceUrl: __expectString(output.instanceUrl),
3948
- };
3949
- };
3950
- const de_VeevaMetadata = (output, context) => {
3951
- return {};
3952
- };
3953
- const de_VeevaSourceProperties = (output, context) => {
3954
- return {
3955
- documentType: __expectString(output.documentType),
3956
- includeAllVersions: __expectBoolean(output.includeAllVersions),
3957
- includeRenditions: __expectBoolean(output.includeRenditions),
3958
- includeSourceFiles: __expectBoolean(output.includeSourceFiles),
3959
- object: __expectString(output.object),
3960
- };
3961
- };
3962
- const de_ZendeskConnectorProfileProperties = (output, context) => {
3963
- return {
3964
- instanceUrl: __expectString(output.instanceUrl),
3965
- };
3966
- };
3967
- const de_ZendeskDestinationProperties = (output, context) => {
3968
- return {
3969
- errorHandlingConfig: output.errorHandlingConfig != null ? de_ErrorHandlingConfig(output.errorHandlingConfig, context) : undefined,
3970
- idFieldNames: output.idFieldNames != null ? de_IdFieldNameList(output.idFieldNames, context) : undefined,
3971
- object: __expectString(output.object),
3972
- writeOperationType: __expectString(output.writeOperationType),
3973
- };
3974
- };
3975
- const de_ZendeskMetadata = (output, context) => {
3976
- return {
3977
- oAuthScopes: output.oAuthScopes != null ? de_OAuthScopeList(output.oAuthScopes, context) : undefined,
3978
- };
3979
- };
3980
- const de_ZendeskSourceProperties = (output, context) => {
3981
- return {
3982
- object: __expectString(output.object),
3983
- };
3984
1861
  };
3985
1862
  const deserializeMetadata = (output) => ({
3986
1863
  httpStatusCode: output.statusCode,