@aws-sdk/client-customer-profiles 3.306.0 → 3.310.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.
- package/dist-cjs/commands/AddProfileKeyCommand.js +2 -2
- package/dist-cjs/commands/CreateDomainCommand.js +2 -2
- package/dist-cjs/commands/CreateIntegrationWorkflowCommand.js +2 -2
- package/dist-cjs/commands/CreateProfileCommand.js +2 -2
- package/dist-cjs/commands/DeleteDomainCommand.js +2 -2
- package/dist-cjs/commands/DeleteIntegrationCommand.js +2 -2
- package/dist-cjs/commands/DeleteProfileCommand.js +2 -2
- package/dist-cjs/commands/DeleteProfileKeyCommand.js +2 -2
- package/dist-cjs/commands/DeleteProfileObjectCommand.js +2 -2
- package/dist-cjs/commands/DeleteProfileObjectTypeCommand.js +2 -2
- package/dist-cjs/commands/DeleteWorkflowCommand.js +2 -2
- package/dist-cjs/commands/GetAutoMergingPreviewCommand.js +2 -2
- package/dist-cjs/commands/GetDomainCommand.js +2 -2
- package/dist-cjs/commands/GetIdentityResolutionJobCommand.js +2 -2
- package/dist-cjs/commands/GetIntegrationCommand.js +2 -2
- package/dist-cjs/commands/GetMatchesCommand.js +2 -2
- package/dist-cjs/commands/GetProfileObjectTypeCommand.js +2 -2
- package/dist-cjs/commands/GetProfileObjectTypeTemplateCommand.js +2 -2
- package/dist-cjs/commands/GetWorkflowCommand.js +2 -2
- package/dist-cjs/commands/GetWorkflowStepsCommand.js +2 -2
- package/dist-cjs/commands/ListAccountIntegrationsCommand.js +2 -2
- package/dist-cjs/commands/ListDomainsCommand.js +2 -2
- package/dist-cjs/commands/ListIdentityResolutionJobsCommand.js +2 -2
- package/dist-cjs/commands/ListIntegrationsCommand.js +2 -2
- package/dist-cjs/commands/ListProfileObjectTypeTemplatesCommand.js +2 -2
- package/dist-cjs/commands/ListProfileObjectTypesCommand.js +2 -2
- package/dist-cjs/commands/ListProfileObjectsCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListWorkflowsCommand.js +2 -2
- package/dist-cjs/commands/MergeProfilesCommand.js +2 -2
- package/dist-cjs/commands/PutIntegrationCommand.js +2 -2
- package/dist-cjs/commands/PutProfileObjectCommand.js +2 -2
- package/dist-cjs/commands/PutProfileObjectTypeCommand.js +2 -2
- package/dist-cjs/commands/SearchProfilesCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateDomainCommand.js +2 -2
- package/dist-cjs/commands/UpdateProfileCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +669 -723
- package/dist-es/commands/AddProfileKeyCommand.js +3 -3
- package/dist-es/commands/CreateDomainCommand.js +3 -3
- package/dist-es/commands/CreateIntegrationWorkflowCommand.js +3 -3
- package/dist-es/commands/CreateProfileCommand.js +3 -3
- package/dist-es/commands/DeleteDomainCommand.js +3 -3
- package/dist-es/commands/DeleteIntegrationCommand.js +3 -3
- package/dist-es/commands/DeleteProfileCommand.js +3 -3
- package/dist-es/commands/DeleteProfileKeyCommand.js +3 -3
- package/dist-es/commands/DeleteProfileObjectCommand.js +3 -3
- package/dist-es/commands/DeleteProfileObjectTypeCommand.js +3 -3
- package/dist-es/commands/DeleteWorkflowCommand.js +3 -3
- package/dist-es/commands/GetAutoMergingPreviewCommand.js +3 -3
- package/dist-es/commands/GetDomainCommand.js +3 -3
- package/dist-es/commands/GetIdentityResolutionJobCommand.js +3 -3
- package/dist-es/commands/GetIntegrationCommand.js +3 -3
- package/dist-es/commands/GetMatchesCommand.js +3 -3
- package/dist-es/commands/GetProfileObjectTypeCommand.js +3 -3
- package/dist-es/commands/GetProfileObjectTypeTemplateCommand.js +3 -3
- package/dist-es/commands/GetWorkflowCommand.js +3 -3
- package/dist-es/commands/GetWorkflowStepsCommand.js +3 -3
- package/dist-es/commands/ListAccountIntegrationsCommand.js +3 -3
- package/dist-es/commands/ListDomainsCommand.js +3 -3
- package/dist-es/commands/ListIdentityResolutionJobsCommand.js +3 -3
- package/dist-es/commands/ListIntegrationsCommand.js +3 -3
- package/dist-es/commands/ListProfileObjectTypeTemplatesCommand.js +3 -3
- package/dist-es/commands/ListProfileObjectTypesCommand.js +3 -3
- package/dist-es/commands/ListProfileObjectsCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListWorkflowsCommand.js +3 -3
- package/dist-es/commands/MergeProfilesCommand.js +3 -3
- package/dist-es/commands/PutIntegrationCommand.js +3 -3
- package/dist-es/commands/PutProfileObjectCommand.js +3 -3
- package/dist-es/commands/PutProfileObjectTypeCommand.js +3 -3
- package/dist-es/commands/SearchProfilesCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateDomainCommand.js +3 -3
- package/dist-es/commands/UpdateProfileCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +591 -645
- package/dist-types/protocols/Aws_restJson1.d.ts +304 -76
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +76 -76
- package/package.json +35 -35
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.de_GetAutoMergingPreviewCommand = exports.de_DeleteWorkflowCommand = exports.de_DeleteProfileObjectTypeCommand = exports.de_DeleteProfileObjectCommand = exports.de_DeleteProfileKeyCommand = exports.de_DeleteProfileCommand = exports.de_DeleteIntegrationCommand = exports.de_DeleteDomainCommand = exports.de_CreateProfileCommand = exports.de_CreateIntegrationWorkflowCommand = exports.de_CreateDomainCommand = exports.de_AddProfileKeyCommand = exports.se_UpdateProfileCommand = exports.se_UpdateDomainCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_SearchProfilesCommand = exports.se_PutProfileObjectTypeCommand = exports.se_PutProfileObjectCommand = exports.se_PutIntegrationCommand = exports.se_MergeProfilesCommand = exports.se_ListWorkflowsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProfileObjectTypeTemplatesCommand = exports.se_ListProfileObjectTypesCommand = exports.se_ListProfileObjectsCommand = exports.se_ListIntegrationsCommand = exports.se_ListIdentityResolutionJobsCommand = exports.se_ListDomainsCommand = exports.se_ListAccountIntegrationsCommand = exports.se_GetWorkflowStepsCommand = exports.se_GetWorkflowCommand = exports.se_GetProfileObjectTypeTemplateCommand = exports.se_GetProfileObjectTypeCommand = exports.se_GetMatchesCommand = exports.se_GetIntegrationCommand = exports.se_GetIdentityResolutionJobCommand = exports.se_GetDomainCommand = exports.se_GetAutoMergingPreviewCommand = exports.se_DeleteWorkflowCommand = exports.se_DeleteProfileObjectTypeCommand = exports.se_DeleteProfileObjectCommand = exports.se_DeleteProfileKeyCommand = exports.se_DeleteProfileCommand = exports.se_DeleteIntegrationCommand = exports.se_DeleteDomainCommand = exports.se_CreateProfileCommand = exports.se_CreateIntegrationWorkflowCommand = exports.se_CreateDomainCommand = exports.se_AddProfileKeyCommand = void 0;
|
|
4
|
+
exports.de_UpdateProfileCommand = exports.de_UpdateDomainCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_SearchProfilesCommand = exports.de_PutProfileObjectTypeCommand = exports.de_PutProfileObjectCommand = exports.de_PutIntegrationCommand = exports.de_MergeProfilesCommand = exports.de_ListWorkflowsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProfileObjectTypeTemplatesCommand = exports.de_ListProfileObjectTypesCommand = exports.de_ListProfileObjectsCommand = exports.de_ListIntegrationsCommand = exports.de_ListIdentityResolutionJobsCommand = exports.de_ListDomainsCommand = exports.de_ListAccountIntegrationsCommand = exports.de_GetWorkflowStepsCommand = exports.de_GetWorkflowCommand = exports.de_GetProfileObjectTypeTemplateCommand = exports.de_GetProfileObjectTypeCommand = exports.de_GetMatchesCommand = exports.de_GetIntegrationCommand = exports.de_GetIdentityResolutionJobCommand = exports.de_GetDomainCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const CustomerProfilesServiceException_1 = require("../models/CustomerProfilesServiceException");
|
|
8
8
|
const models_0_1 = require("../models/models_0");
|
|
9
|
-
const
|
|
9
|
+
const se_AddProfileKeyCommand = async (input, context) => {
|
|
10
10
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
@@ -17,7 +17,7 @@ const serializeAws_restJson1AddProfileKeyCommand = async (input, context) => {
|
|
|
17
17
|
body = JSON.stringify({
|
|
18
18
|
...(input.KeyName != null && { KeyName: input.KeyName }),
|
|
19
19
|
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
20
|
-
...(input.Values != null && { Values:
|
|
20
|
+
...(input.Values != null && { Values: se_requestValueList(input.Values, context) }),
|
|
21
21
|
});
|
|
22
22
|
return new protocol_http_1.HttpRequest({
|
|
23
23
|
protocol,
|
|
@@ -29,8 +29,8 @@ const serializeAws_restJson1AddProfileKeyCommand = async (input, context) => {
|
|
|
29
29
|
body,
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
exports.
|
|
33
|
-
const
|
|
32
|
+
exports.se_AddProfileKeyCommand = se_AddProfileKeyCommand;
|
|
33
|
+
const se_CreateDomainCommand = async (input, context) => {
|
|
34
34
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
35
|
const headers = {
|
|
36
36
|
"content-type": "application/json",
|
|
@@ -42,8 +42,8 @@ const serializeAws_restJson1CreateDomainCommand = async (input, context) => {
|
|
|
42
42
|
...(input.DeadLetterQueueUrl != null && { DeadLetterQueueUrl: input.DeadLetterQueueUrl }),
|
|
43
43
|
...(input.DefaultEncryptionKey != null && { DefaultEncryptionKey: input.DefaultEncryptionKey }),
|
|
44
44
|
...(input.DefaultExpirationDays != null && { DefaultExpirationDays: input.DefaultExpirationDays }),
|
|
45
|
-
...(input.Matching != null && { Matching:
|
|
46
|
-
...(input.Tags != null && { Tags:
|
|
45
|
+
...(input.Matching != null && { Matching: se_MatchingRequest(input.Matching, context) }),
|
|
46
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
47
47
|
});
|
|
48
48
|
return new protocol_http_1.HttpRequest({
|
|
49
49
|
protocol,
|
|
@@ -55,8 +55,8 @@ const serializeAws_restJson1CreateDomainCommand = async (input, context) => {
|
|
|
55
55
|
body,
|
|
56
56
|
});
|
|
57
57
|
};
|
|
58
|
-
exports.
|
|
59
|
-
const
|
|
58
|
+
exports.se_CreateDomainCommand = se_CreateDomainCommand;
|
|
59
|
+
const se_CreateIntegrationWorkflowCommand = async (input, context) => {
|
|
60
60
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
61
61
|
const headers = {
|
|
62
62
|
"content-type": "application/json",
|
|
@@ -67,11 +67,11 @@ const serializeAws_restJson1CreateIntegrationWorkflowCommand = async (input, con
|
|
|
67
67
|
let body;
|
|
68
68
|
body = JSON.stringify({
|
|
69
69
|
...(input.IntegrationConfig != null && {
|
|
70
|
-
IntegrationConfig:
|
|
70
|
+
IntegrationConfig: se_IntegrationConfig(input.IntegrationConfig, context),
|
|
71
71
|
}),
|
|
72
72
|
...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
|
|
73
73
|
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
74
|
-
...(input.Tags != null && { Tags:
|
|
74
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
75
75
|
...(input.WorkflowType != null && { WorkflowType: input.WorkflowType }),
|
|
76
76
|
});
|
|
77
77
|
return new protocol_http_1.HttpRequest({
|
|
@@ -84,8 +84,8 @@ const serializeAws_restJson1CreateIntegrationWorkflowCommand = async (input, con
|
|
|
84
84
|
body,
|
|
85
85
|
});
|
|
86
86
|
};
|
|
87
|
-
exports.
|
|
88
|
-
const
|
|
87
|
+
exports.se_CreateIntegrationWorkflowCommand = se_CreateIntegrationWorkflowCommand;
|
|
88
|
+
const se_CreateProfileCommand = async (input, context) => {
|
|
89
89
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
90
90
|
const headers = {
|
|
91
91
|
"content-type": "application/json",
|
|
@@ -96,11 +96,9 @@ const serializeAws_restJson1CreateProfileCommand = async (input, context) => {
|
|
|
96
96
|
body = JSON.stringify({
|
|
97
97
|
...(input.AccountNumber != null && { AccountNumber: input.AccountNumber }),
|
|
98
98
|
...(input.AdditionalInformation != null && { AdditionalInformation: input.AdditionalInformation }),
|
|
99
|
-
...(input.Address != null && { Address:
|
|
100
|
-
...(input.Attributes != null && { Attributes:
|
|
101
|
-
...(input.BillingAddress != null && {
|
|
102
|
-
BillingAddress: serializeAws_restJson1Address(input.BillingAddress, context),
|
|
103
|
-
}),
|
|
99
|
+
...(input.Address != null && { Address: se_Address(input.Address, context) }),
|
|
100
|
+
...(input.Attributes != null && { Attributes: se_Attributes(input.Attributes, context) }),
|
|
101
|
+
...(input.BillingAddress != null && { BillingAddress: se_Address(input.BillingAddress, context) }),
|
|
104
102
|
...(input.BirthDate != null && { BirthDate: input.BirthDate }),
|
|
105
103
|
...(input.BusinessEmailAddress != null && { BusinessEmailAddress: input.BusinessEmailAddress }),
|
|
106
104
|
...(input.BusinessName != null && { BusinessName: input.BusinessName }),
|
|
@@ -111,18 +109,14 @@ const serializeAws_restJson1CreateProfileCommand = async (input, context) => {
|
|
|
111
109
|
...(input.GenderString != null && { GenderString: input.GenderString }),
|
|
112
110
|
...(input.HomePhoneNumber != null && { HomePhoneNumber: input.HomePhoneNumber }),
|
|
113
111
|
...(input.LastName != null && { LastName: input.LastName }),
|
|
114
|
-
...(input.MailingAddress != null && {
|
|
115
|
-
MailingAddress: serializeAws_restJson1Address(input.MailingAddress, context),
|
|
116
|
-
}),
|
|
112
|
+
...(input.MailingAddress != null && { MailingAddress: se_Address(input.MailingAddress, context) }),
|
|
117
113
|
...(input.MiddleName != null && { MiddleName: input.MiddleName }),
|
|
118
114
|
...(input.MobilePhoneNumber != null && { MobilePhoneNumber: input.MobilePhoneNumber }),
|
|
119
115
|
...(input.PartyType != null && { PartyType: input.PartyType }),
|
|
120
116
|
...(input.PartyTypeString != null && { PartyTypeString: input.PartyTypeString }),
|
|
121
117
|
...(input.PersonalEmailAddress != null && { PersonalEmailAddress: input.PersonalEmailAddress }),
|
|
122
118
|
...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
|
|
123
|
-
...(input.ShippingAddress != null && {
|
|
124
|
-
ShippingAddress: serializeAws_restJson1Address(input.ShippingAddress, context),
|
|
125
|
-
}),
|
|
119
|
+
...(input.ShippingAddress != null && { ShippingAddress: se_Address(input.ShippingAddress, context) }),
|
|
126
120
|
});
|
|
127
121
|
return new protocol_http_1.HttpRequest({
|
|
128
122
|
protocol,
|
|
@@ -134,8 +128,8 @@ const serializeAws_restJson1CreateProfileCommand = async (input, context) => {
|
|
|
134
128
|
body,
|
|
135
129
|
});
|
|
136
130
|
};
|
|
137
|
-
exports.
|
|
138
|
-
const
|
|
131
|
+
exports.se_CreateProfileCommand = se_CreateProfileCommand;
|
|
132
|
+
const se_DeleteDomainCommand = async (input, context) => {
|
|
139
133
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
140
134
|
const headers = {};
|
|
141
135
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}";
|
|
@@ -151,8 +145,8 @@ const serializeAws_restJson1DeleteDomainCommand = async (input, context) => {
|
|
|
151
145
|
body,
|
|
152
146
|
});
|
|
153
147
|
};
|
|
154
|
-
exports.
|
|
155
|
-
const
|
|
148
|
+
exports.se_DeleteDomainCommand = se_DeleteDomainCommand;
|
|
149
|
+
const se_DeleteIntegrationCommand = async (input, context) => {
|
|
156
150
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
157
151
|
const headers = {
|
|
158
152
|
"content-type": "application/json",
|
|
@@ -173,8 +167,8 @@ const serializeAws_restJson1DeleteIntegrationCommand = async (input, context) =>
|
|
|
173
167
|
body,
|
|
174
168
|
});
|
|
175
169
|
};
|
|
176
|
-
exports.
|
|
177
|
-
const
|
|
170
|
+
exports.se_DeleteIntegrationCommand = se_DeleteIntegrationCommand;
|
|
171
|
+
const se_DeleteProfileCommand = async (input, context) => {
|
|
178
172
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
179
173
|
const headers = {
|
|
180
174
|
"content-type": "application/json",
|
|
@@ -195,8 +189,8 @@ const serializeAws_restJson1DeleteProfileCommand = async (input, context) => {
|
|
|
195
189
|
body,
|
|
196
190
|
});
|
|
197
191
|
};
|
|
198
|
-
exports.
|
|
199
|
-
const
|
|
192
|
+
exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
|
|
193
|
+
const se_DeleteProfileKeyCommand = async (input, context) => {
|
|
200
194
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
201
195
|
const headers = {
|
|
202
196
|
"content-type": "application/json",
|
|
@@ -208,7 +202,7 @@ const serializeAws_restJson1DeleteProfileKeyCommand = async (input, context) =>
|
|
|
208
202
|
body = JSON.stringify({
|
|
209
203
|
...(input.KeyName != null && { KeyName: input.KeyName }),
|
|
210
204
|
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
211
|
-
...(input.Values != null && { Values:
|
|
205
|
+
...(input.Values != null && { Values: se_requestValueList(input.Values, context) }),
|
|
212
206
|
});
|
|
213
207
|
return new protocol_http_1.HttpRequest({
|
|
214
208
|
protocol,
|
|
@@ -220,8 +214,8 @@ const serializeAws_restJson1DeleteProfileKeyCommand = async (input, context) =>
|
|
|
220
214
|
body,
|
|
221
215
|
});
|
|
222
216
|
};
|
|
223
|
-
exports.
|
|
224
|
-
const
|
|
217
|
+
exports.se_DeleteProfileKeyCommand = se_DeleteProfileKeyCommand;
|
|
218
|
+
const se_DeleteProfileObjectCommand = async (input, context) => {
|
|
225
219
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
226
220
|
const headers = {
|
|
227
221
|
"content-type": "application/json",
|
|
@@ -245,8 +239,8 @@ const serializeAws_restJson1DeleteProfileObjectCommand = async (input, context)
|
|
|
245
239
|
body,
|
|
246
240
|
});
|
|
247
241
|
};
|
|
248
|
-
exports.
|
|
249
|
-
const
|
|
242
|
+
exports.se_DeleteProfileObjectCommand = se_DeleteProfileObjectCommand;
|
|
243
|
+
const se_DeleteProfileObjectTypeCommand = async (input, context) => {
|
|
250
244
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
251
245
|
const headers = {};
|
|
252
246
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -264,8 +258,8 @@ const serializeAws_restJson1DeleteProfileObjectTypeCommand = async (input, conte
|
|
|
264
258
|
body,
|
|
265
259
|
});
|
|
266
260
|
};
|
|
267
|
-
exports.
|
|
268
|
-
const
|
|
261
|
+
exports.se_DeleteProfileObjectTypeCommand = se_DeleteProfileObjectTypeCommand;
|
|
262
|
+
const se_DeleteWorkflowCommand = async (input, context) => {
|
|
269
263
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
270
264
|
const headers = {};
|
|
271
265
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -283,8 +277,8 @@ const serializeAws_restJson1DeleteWorkflowCommand = async (input, context) => {
|
|
|
283
277
|
body,
|
|
284
278
|
});
|
|
285
279
|
};
|
|
286
|
-
exports.
|
|
287
|
-
const
|
|
280
|
+
exports.se_DeleteWorkflowCommand = se_DeleteWorkflowCommand;
|
|
281
|
+
const se_GetAutoMergingPreviewCommand = async (input, context) => {
|
|
288
282
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
289
283
|
const headers = {
|
|
290
284
|
"content-type": "application/json",
|
|
@@ -295,11 +289,9 @@ const serializeAws_restJson1GetAutoMergingPreviewCommand = async (input, context
|
|
|
295
289
|
let body;
|
|
296
290
|
body = JSON.stringify({
|
|
297
291
|
...(input.ConflictResolution != null && {
|
|
298
|
-
ConflictResolution:
|
|
299
|
-
}),
|
|
300
|
-
...(input.Consolidation != null && {
|
|
301
|
-
Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
|
|
292
|
+
ConflictResolution: se_ConflictResolution(input.ConflictResolution, context),
|
|
302
293
|
}),
|
|
294
|
+
...(input.Consolidation != null && { Consolidation: se_Consolidation(input.Consolidation, context) }),
|
|
303
295
|
...(input.MinAllowedConfidenceScoreForMerging != null && {
|
|
304
296
|
MinAllowedConfidenceScoreForMerging: (0, smithy_client_1.serializeFloat)(input.MinAllowedConfidenceScoreForMerging),
|
|
305
297
|
}),
|
|
@@ -314,8 +306,8 @@ const serializeAws_restJson1GetAutoMergingPreviewCommand = async (input, context
|
|
|
314
306
|
body,
|
|
315
307
|
});
|
|
316
308
|
};
|
|
317
|
-
exports.
|
|
318
|
-
const
|
|
309
|
+
exports.se_GetAutoMergingPreviewCommand = se_GetAutoMergingPreviewCommand;
|
|
310
|
+
const se_GetDomainCommand = async (input, context) => {
|
|
319
311
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
320
312
|
const headers = {};
|
|
321
313
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}";
|
|
@@ -331,8 +323,8 @@ const serializeAws_restJson1GetDomainCommand = async (input, context) => {
|
|
|
331
323
|
body,
|
|
332
324
|
});
|
|
333
325
|
};
|
|
334
|
-
exports.
|
|
335
|
-
const
|
|
326
|
+
exports.se_GetDomainCommand = se_GetDomainCommand;
|
|
327
|
+
const se_GetIdentityResolutionJobCommand = async (input, context) => {
|
|
336
328
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
337
329
|
const headers = {};
|
|
338
330
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -350,8 +342,8 @@ const serializeAws_restJson1GetIdentityResolutionJobCommand = async (input, cont
|
|
|
350
342
|
body,
|
|
351
343
|
});
|
|
352
344
|
};
|
|
353
|
-
exports.
|
|
354
|
-
const
|
|
345
|
+
exports.se_GetIdentityResolutionJobCommand = se_GetIdentityResolutionJobCommand;
|
|
346
|
+
const se_GetIntegrationCommand = async (input, context) => {
|
|
355
347
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
356
348
|
const headers = {
|
|
357
349
|
"content-type": "application/json",
|
|
@@ -372,8 +364,8 @@ const serializeAws_restJson1GetIntegrationCommand = async (input, context) => {
|
|
|
372
364
|
body,
|
|
373
365
|
});
|
|
374
366
|
};
|
|
375
|
-
exports.
|
|
376
|
-
const
|
|
367
|
+
exports.se_GetIntegrationCommand = se_GetIntegrationCommand;
|
|
368
|
+
const se_GetMatchesCommand = async (input, context) => {
|
|
377
369
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
378
370
|
const headers = {};
|
|
379
371
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/matches";
|
|
@@ -394,8 +386,8 @@ const serializeAws_restJson1GetMatchesCommand = async (input, context) => {
|
|
|
394
386
|
body,
|
|
395
387
|
});
|
|
396
388
|
};
|
|
397
|
-
exports.
|
|
398
|
-
const
|
|
389
|
+
exports.se_GetMatchesCommand = se_GetMatchesCommand;
|
|
390
|
+
const se_GetProfileObjectTypeCommand = async (input, context) => {
|
|
399
391
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
400
392
|
const headers = {};
|
|
401
393
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -413,8 +405,8 @@ const serializeAws_restJson1GetProfileObjectTypeCommand = async (input, context)
|
|
|
413
405
|
body,
|
|
414
406
|
});
|
|
415
407
|
};
|
|
416
|
-
exports.
|
|
417
|
-
const
|
|
408
|
+
exports.se_GetProfileObjectTypeCommand = se_GetProfileObjectTypeCommand;
|
|
409
|
+
const se_GetProfileObjectTypeTemplateCommand = async (input, context) => {
|
|
418
410
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
419
411
|
const headers = {};
|
|
420
412
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates/{TemplateId}";
|
|
@@ -430,8 +422,8 @@ const serializeAws_restJson1GetProfileObjectTypeTemplateCommand = async (input,
|
|
|
430
422
|
body,
|
|
431
423
|
});
|
|
432
424
|
};
|
|
433
|
-
exports.
|
|
434
|
-
const
|
|
425
|
+
exports.se_GetProfileObjectTypeTemplateCommand = se_GetProfileObjectTypeTemplateCommand;
|
|
426
|
+
const se_GetWorkflowCommand = async (input, context) => {
|
|
435
427
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
436
428
|
const headers = {};
|
|
437
429
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -449,8 +441,8 @@ const serializeAws_restJson1GetWorkflowCommand = async (input, context) => {
|
|
|
449
441
|
body,
|
|
450
442
|
});
|
|
451
443
|
};
|
|
452
|
-
exports.
|
|
453
|
-
const
|
|
444
|
+
exports.se_GetWorkflowCommand = se_GetWorkflowCommand;
|
|
445
|
+
const se_GetWorkflowStepsCommand = async (input, context) => {
|
|
454
446
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
455
447
|
const headers = {};
|
|
456
448
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -473,8 +465,8 @@ const serializeAws_restJson1GetWorkflowStepsCommand = async (input, context) =>
|
|
|
473
465
|
body,
|
|
474
466
|
});
|
|
475
467
|
};
|
|
476
|
-
exports.
|
|
477
|
-
const
|
|
468
|
+
exports.se_GetWorkflowStepsCommand = se_GetWorkflowStepsCommand;
|
|
469
|
+
const se_ListAccountIntegrationsCommand = async (input, context) => {
|
|
478
470
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
479
471
|
const headers = {
|
|
480
472
|
"content-type": "application/json",
|
|
@@ -500,8 +492,8 @@ const serializeAws_restJson1ListAccountIntegrationsCommand = async (input, conte
|
|
|
500
492
|
body,
|
|
501
493
|
});
|
|
502
494
|
};
|
|
503
|
-
exports.
|
|
504
|
-
const
|
|
495
|
+
exports.se_ListAccountIntegrationsCommand = se_ListAccountIntegrationsCommand;
|
|
496
|
+
const se_ListDomainsCommand = async (input, context) => {
|
|
505
497
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
506
498
|
const headers = {};
|
|
507
499
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains";
|
|
@@ -521,8 +513,8 @@ const serializeAws_restJson1ListDomainsCommand = async (input, context) => {
|
|
|
521
513
|
body,
|
|
522
514
|
});
|
|
523
515
|
};
|
|
524
|
-
exports.
|
|
525
|
-
const
|
|
516
|
+
exports.se_ListDomainsCommand = se_ListDomainsCommand;
|
|
517
|
+
const se_ListIdentityResolutionJobsCommand = async (input, context) => {
|
|
526
518
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
527
519
|
const headers = {};
|
|
528
520
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
@@ -544,8 +536,8 @@ const serializeAws_restJson1ListIdentityResolutionJobsCommand = async (input, co
|
|
|
544
536
|
body,
|
|
545
537
|
});
|
|
546
538
|
};
|
|
547
|
-
exports.
|
|
548
|
-
const
|
|
539
|
+
exports.se_ListIdentityResolutionJobsCommand = se_ListIdentityResolutionJobsCommand;
|
|
540
|
+
const se_ListIntegrationsCommand = async (input, context) => {
|
|
549
541
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
550
542
|
const headers = {};
|
|
551
543
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/integrations";
|
|
@@ -567,8 +559,8 @@ const serializeAws_restJson1ListIntegrationsCommand = async (input, context) =>
|
|
|
567
559
|
body,
|
|
568
560
|
});
|
|
569
561
|
};
|
|
570
|
-
exports.
|
|
571
|
-
const
|
|
562
|
+
exports.se_ListIntegrationsCommand = se_ListIntegrationsCommand;
|
|
563
|
+
const se_ListProfileObjectsCommand = async (input, context) => {
|
|
572
564
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
573
565
|
const headers = {
|
|
574
566
|
"content-type": "application/json",
|
|
@@ -581,9 +573,7 @@ const serializeAws_restJson1ListProfileObjectsCommand = async (input, context) =
|
|
|
581
573
|
});
|
|
582
574
|
let body;
|
|
583
575
|
body = JSON.stringify({
|
|
584
|
-
...(input.ObjectFilter != null && {
|
|
585
|
-
ObjectFilter: serializeAws_restJson1ObjectFilter(input.ObjectFilter, context),
|
|
586
|
-
}),
|
|
576
|
+
...(input.ObjectFilter != null && { ObjectFilter: se_ObjectFilter(input.ObjectFilter, context) }),
|
|
587
577
|
...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
|
|
588
578
|
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
589
579
|
});
|
|
@@ -598,8 +588,8 @@ const serializeAws_restJson1ListProfileObjectsCommand = async (input, context) =
|
|
|
598
588
|
body,
|
|
599
589
|
});
|
|
600
590
|
};
|
|
601
|
-
exports.
|
|
602
|
-
const
|
|
591
|
+
exports.se_ListProfileObjectsCommand = se_ListProfileObjectsCommand;
|
|
592
|
+
const se_ListProfileObjectTypesCommand = async (input, context) => {
|
|
603
593
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
604
594
|
const headers = {};
|
|
605
595
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/domains/{DomainName}/object-types";
|
|
@@ -620,8 +610,8 @@ const serializeAws_restJson1ListProfileObjectTypesCommand = async (input, contex
|
|
|
620
610
|
body,
|
|
621
611
|
});
|
|
622
612
|
};
|
|
623
|
-
exports.
|
|
624
|
-
const
|
|
613
|
+
exports.se_ListProfileObjectTypesCommand = se_ListProfileObjectTypesCommand;
|
|
614
|
+
const se_ListProfileObjectTypeTemplatesCommand = async (input, context) => {
|
|
625
615
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
626
616
|
const headers = {};
|
|
627
617
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/templates";
|
|
@@ -641,8 +631,8 @@ const serializeAws_restJson1ListProfileObjectTypeTemplatesCommand = async (input
|
|
|
641
631
|
body,
|
|
642
632
|
});
|
|
643
633
|
};
|
|
644
|
-
exports.
|
|
645
|
-
const
|
|
634
|
+
exports.se_ListProfileObjectTypeTemplatesCommand = se_ListProfileObjectTypeTemplatesCommand;
|
|
635
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
646
636
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
647
637
|
const headers = {};
|
|
648
638
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -658,8 +648,8 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
658
648
|
body,
|
|
659
649
|
});
|
|
660
650
|
};
|
|
661
|
-
exports.
|
|
662
|
-
const
|
|
651
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
652
|
+
const se_ListWorkflowsCommand = async (input, context) => {
|
|
663
653
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
664
654
|
const headers = {
|
|
665
655
|
"content-type": "application/json",
|
|
@@ -688,8 +678,8 @@ const serializeAws_restJson1ListWorkflowsCommand = async (input, context) => {
|
|
|
688
678
|
body,
|
|
689
679
|
});
|
|
690
680
|
};
|
|
691
|
-
exports.
|
|
692
|
-
const
|
|
681
|
+
exports.se_ListWorkflowsCommand = se_ListWorkflowsCommand;
|
|
682
|
+
const se_MergeProfilesCommand = async (input, context) => {
|
|
693
683
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
694
684
|
const headers = {
|
|
695
685
|
"content-type": "application/json",
|
|
@@ -700,11 +690,11 @@ const serializeAws_restJson1MergeProfilesCommand = async (input, context) => {
|
|
|
700
690
|
let body;
|
|
701
691
|
body = JSON.stringify({
|
|
702
692
|
...(input.FieldSourceProfileIds != null && {
|
|
703
|
-
FieldSourceProfileIds:
|
|
693
|
+
FieldSourceProfileIds: se_FieldSourceProfileIds(input.FieldSourceProfileIds, context),
|
|
704
694
|
}),
|
|
705
695
|
...(input.MainProfileId != null && { MainProfileId: input.MainProfileId }),
|
|
706
696
|
...(input.ProfileIdsToBeMerged != null && {
|
|
707
|
-
ProfileIdsToBeMerged:
|
|
697
|
+
ProfileIdsToBeMerged: se_ProfileIdToBeMergedList(input.ProfileIdsToBeMerged, context),
|
|
708
698
|
}),
|
|
709
699
|
});
|
|
710
700
|
return new protocol_http_1.HttpRequest({
|
|
@@ -717,8 +707,8 @@ const serializeAws_restJson1MergeProfilesCommand = async (input, context) => {
|
|
|
717
707
|
body,
|
|
718
708
|
});
|
|
719
709
|
};
|
|
720
|
-
exports.
|
|
721
|
-
const
|
|
710
|
+
exports.se_MergeProfilesCommand = se_MergeProfilesCommand;
|
|
711
|
+
const se_PutIntegrationCommand = async (input, context) => {
|
|
722
712
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
723
713
|
const headers = {
|
|
724
714
|
"content-type": "application/json",
|
|
@@ -727,14 +717,10 @@ const serializeAws_restJson1PutIntegrationCommand = async (input, context) => {
|
|
|
727
717
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "DomainName", () => input.DomainName, "{DomainName}", false);
|
|
728
718
|
let body;
|
|
729
719
|
body = JSON.stringify({
|
|
730
|
-
...(input.FlowDefinition != null && {
|
|
731
|
-
FlowDefinition: serializeAws_restJson1FlowDefinition(input.FlowDefinition, context),
|
|
732
|
-
}),
|
|
720
|
+
...(input.FlowDefinition != null && { FlowDefinition: se_FlowDefinition(input.FlowDefinition, context) }),
|
|
733
721
|
...(input.ObjectTypeName != null && { ObjectTypeName: input.ObjectTypeName }),
|
|
734
|
-
...(input.ObjectTypeNames != null && {
|
|
735
|
-
|
|
736
|
-
}),
|
|
737
|
-
...(input.Tags != null && { Tags: serializeAws_restJson1TagMap(input.Tags, context) }),
|
|
722
|
+
...(input.ObjectTypeNames != null && { ObjectTypeNames: se_ObjectTypeNames(input.ObjectTypeNames, context) }),
|
|
723
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
738
724
|
...(input.Uri != null && { Uri: input.Uri }),
|
|
739
725
|
});
|
|
740
726
|
return new protocol_http_1.HttpRequest({
|
|
@@ -747,8 +733,8 @@ const serializeAws_restJson1PutIntegrationCommand = async (input, context) => {
|
|
|
747
733
|
body,
|
|
748
734
|
});
|
|
749
735
|
};
|
|
750
|
-
exports.
|
|
751
|
-
const
|
|
736
|
+
exports.se_PutIntegrationCommand = se_PutIntegrationCommand;
|
|
737
|
+
const se_PutProfileObjectCommand = async (input, context) => {
|
|
752
738
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
753
739
|
const headers = {
|
|
754
740
|
"content-type": "application/json",
|
|
@@ -770,8 +756,8 @@ const serializeAws_restJson1PutProfileObjectCommand = async (input, context) =>
|
|
|
770
756
|
body,
|
|
771
757
|
});
|
|
772
758
|
};
|
|
773
|
-
exports.
|
|
774
|
-
const
|
|
759
|
+
exports.se_PutProfileObjectCommand = se_PutProfileObjectCommand;
|
|
760
|
+
const se_PutProfileObjectTypeCommand = async (input, context) => {
|
|
775
761
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
776
762
|
const headers = {
|
|
777
763
|
"content-type": "application/json",
|
|
@@ -786,12 +772,12 @@ const serializeAws_restJson1PutProfileObjectTypeCommand = async (input, context)
|
|
|
786
772
|
...(input.Description != null && { Description: input.Description }),
|
|
787
773
|
...(input.EncryptionKey != null && { EncryptionKey: input.EncryptionKey }),
|
|
788
774
|
...(input.ExpirationDays != null && { ExpirationDays: input.ExpirationDays }),
|
|
789
|
-
...(input.Fields != null && { Fields:
|
|
790
|
-
...(input.Keys != null && { Keys:
|
|
775
|
+
...(input.Fields != null && { Fields: se_FieldMap(input.Fields, context) }),
|
|
776
|
+
...(input.Keys != null && { Keys: se_KeyMap(input.Keys, context) }),
|
|
791
777
|
...(input.SourceLastUpdatedTimestampFormat != null && {
|
|
792
778
|
SourceLastUpdatedTimestampFormat: input.SourceLastUpdatedTimestampFormat,
|
|
793
779
|
}),
|
|
794
|
-
...(input.Tags != null && { Tags:
|
|
780
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
795
781
|
...(input.TemplateId != null && { TemplateId: input.TemplateId }),
|
|
796
782
|
});
|
|
797
783
|
return new protocol_http_1.HttpRequest({
|
|
@@ -804,8 +790,8 @@ const serializeAws_restJson1PutProfileObjectTypeCommand = async (input, context)
|
|
|
804
790
|
body,
|
|
805
791
|
});
|
|
806
792
|
};
|
|
807
|
-
exports.
|
|
808
|
-
const
|
|
793
|
+
exports.se_PutProfileObjectTypeCommand = se_PutProfileObjectTypeCommand;
|
|
794
|
+
const se_SearchProfilesCommand = async (input, context) => {
|
|
809
795
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
810
796
|
const headers = {
|
|
811
797
|
"content-type": "application/json",
|
|
@@ -819,11 +805,11 @@ const serializeAws_restJson1SearchProfilesCommand = async (input, context) => {
|
|
|
819
805
|
let body;
|
|
820
806
|
body = JSON.stringify({
|
|
821
807
|
...(input.AdditionalSearchKeys != null && {
|
|
822
|
-
AdditionalSearchKeys:
|
|
808
|
+
AdditionalSearchKeys: se_additionalSearchKeysList(input.AdditionalSearchKeys, context),
|
|
823
809
|
}),
|
|
824
810
|
...(input.KeyName != null && { KeyName: input.KeyName }),
|
|
825
811
|
...(input.LogicalOperator != null && { LogicalOperator: input.LogicalOperator }),
|
|
826
|
-
...(input.Values != null && { Values:
|
|
812
|
+
...(input.Values != null && { Values: se_requestValueList(input.Values, context) }),
|
|
827
813
|
});
|
|
828
814
|
return new protocol_http_1.HttpRequest({
|
|
829
815
|
protocol,
|
|
@@ -836,8 +822,8 @@ const serializeAws_restJson1SearchProfilesCommand = async (input, context) => {
|
|
|
836
822
|
body,
|
|
837
823
|
});
|
|
838
824
|
};
|
|
839
|
-
exports.
|
|
840
|
-
const
|
|
825
|
+
exports.se_SearchProfilesCommand = se_SearchProfilesCommand;
|
|
826
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
841
827
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
842
828
|
const headers = {
|
|
843
829
|
"content-type": "application/json",
|
|
@@ -846,7 +832,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
846
832
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
847
833
|
let body;
|
|
848
834
|
body = JSON.stringify({
|
|
849
|
-
...(input.tags != null && { tags:
|
|
835
|
+
...(input.tags != null && { tags: se_TagMap(input.tags, context) }),
|
|
850
836
|
});
|
|
851
837
|
return new protocol_http_1.HttpRequest({
|
|
852
838
|
protocol,
|
|
@@ -858,8 +844,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
858
844
|
body,
|
|
859
845
|
});
|
|
860
846
|
};
|
|
861
|
-
exports.
|
|
862
|
-
const
|
|
847
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
848
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
863
849
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
864
850
|
const headers = {};
|
|
865
851
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
@@ -882,8 +868,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
882
868
|
body,
|
|
883
869
|
});
|
|
884
870
|
};
|
|
885
|
-
exports.
|
|
886
|
-
const
|
|
871
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
872
|
+
const se_UpdateDomainCommand = async (input, context) => {
|
|
887
873
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
888
874
|
const headers = {
|
|
889
875
|
"content-type": "application/json",
|
|
@@ -895,8 +881,8 @@ const serializeAws_restJson1UpdateDomainCommand = async (input, context) => {
|
|
|
895
881
|
...(input.DeadLetterQueueUrl != null && { DeadLetterQueueUrl: input.DeadLetterQueueUrl }),
|
|
896
882
|
...(input.DefaultEncryptionKey != null && { DefaultEncryptionKey: input.DefaultEncryptionKey }),
|
|
897
883
|
...(input.DefaultExpirationDays != null && { DefaultExpirationDays: input.DefaultExpirationDays }),
|
|
898
|
-
...(input.Matching != null && { Matching:
|
|
899
|
-
...(input.Tags != null && { Tags:
|
|
884
|
+
...(input.Matching != null && { Matching: se_MatchingRequest(input.Matching, context) }),
|
|
885
|
+
...(input.Tags != null && { Tags: se_TagMap(input.Tags, context) }),
|
|
900
886
|
});
|
|
901
887
|
return new protocol_http_1.HttpRequest({
|
|
902
888
|
protocol,
|
|
@@ -908,8 +894,8 @@ const serializeAws_restJson1UpdateDomainCommand = async (input, context) => {
|
|
|
908
894
|
body,
|
|
909
895
|
});
|
|
910
896
|
};
|
|
911
|
-
exports.
|
|
912
|
-
const
|
|
897
|
+
exports.se_UpdateDomainCommand = se_UpdateDomainCommand;
|
|
898
|
+
const se_UpdateProfileCommand = async (input, context) => {
|
|
913
899
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
914
900
|
const headers = {
|
|
915
901
|
"content-type": "application/json",
|
|
@@ -920,11 +906,9 @@ const serializeAws_restJson1UpdateProfileCommand = async (input, context) => {
|
|
|
920
906
|
body = JSON.stringify({
|
|
921
907
|
...(input.AccountNumber != null && { AccountNumber: input.AccountNumber }),
|
|
922
908
|
...(input.AdditionalInformation != null && { AdditionalInformation: input.AdditionalInformation }),
|
|
923
|
-
...(input.Address != null && { Address:
|
|
924
|
-
...(input.Attributes != null && { Attributes:
|
|
925
|
-
...(input.BillingAddress != null && {
|
|
926
|
-
BillingAddress: serializeAws_restJson1UpdateAddress(input.BillingAddress, context),
|
|
927
|
-
}),
|
|
909
|
+
...(input.Address != null && { Address: se_UpdateAddress(input.Address, context) }),
|
|
910
|
+
...(input.Attributes != null && { Attributes: se_UpdateAttributes(input.Attributes, context) }),
|
|
911
|
+
...(input.BillingAddress != null && { BillingAddress: se_UpdateAddress(input.BillingAddress, context) }),
|
|
928
912
|
...(input.BirthDate != null && { BirthDate: input.BirthDate }),
|
|
929
913
|
...(input.BusinessEmailAddress != null && { BusinessEmailAddress: input.BusinessEmailAddress }),
|
|
930
914
|
...(input.BusinessName != null && { BusinessName: input.BusinessName }),
|
|
@@ -935,9 +919,7 @@ const serializeAws_restJson1UpdateProfileCommand = async (input, context) => {
|
|
|
935
919
|
...(input.GenderString != null && { GenderString: input.GenderString }),
|
|
936
920
|
...(input.HomePhoneNumber != null && { HomePhoneNumber: input.HomePhoneNumber }),
|
|
937
921
|
...(input.LastName != null && { LastName: input.LastName }),
|
|
938
|
-
...(input.MailingAddress != null && {
|
|
939
|
-
MailingAddress: serializeAws_restJson1UpdateAddress(input.MailingAddress, context),
|
|
940
|
-
}),
|
|
922
|
+
...(input.MailingAddress != null && { MailingAddress: se_UpdateAddress(input.MailingAddress, context) }),
|
|
941
923
|
...(input.MiddleName != null && { MiddleName: input.MiddleName }),
|
|
942
924
|
...(input.MobilePhoneNumber != null && { MobilePhoneNumber: input.MobilePhoneNumber }),
|
|
943
925
|
...(input.PartyType != null && { PartyType: input.PartyType }),
|
|
@@ -945,9 +927,7 @@ const serializeAws_restJson1UpdateProfileCommand = async (input, context) => {
|
|
|
945
927
|
...(input.PersonalEmailAddress != null && { PersonalEmailAddress: input.PersonalEmailAddress }),
|
|
946
928
|
...(input.PhoneNumber != null && { PhoneNumber: input.PhoneNumber }),
|
|
947
929
|
...(input.ProfileId != null && { ProfileId: input.ProfileId }),
|
|
948
|
-
...(input.ShippingAddress != null && {
|
|
949
|
-
ShippingAddress: serializeAws_restJson1UpdateAddress(input.ShippingAddress, context),
|
|
950
|
-
}),
|
|
930
|
+
...(input.ShippingAddress != null && { ShippingAddress: se_UpdateAddress(input.ShippingAddress, context) }),
|
|
951
931
|
});
|
|
952
932
|
return new protocol_http_1.HttpRequest({
|
|
953
933
|
protocol,
|
|
@@ -959,10 +939,10 @@ const serializeAws_restJson1UpdateProfileCommand = async (input, context) => {
|
|
|
959
939
|
body,
|
|
960
940
|
});
|
|
961
941
|
};
|
|
962
|
-
exports.
|
|
963
|
-
const
|
|
942
|
+
exports.se_UpdateProfileCommand = se_UpdateProfileCommand;
|
|
943
|
+
const de_AddProfileKeyCommand = async (output, context) => {
|
|
964
944
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
965
|
-
return
|
|
945
|
+
return de_AddProfileKeyCommandError(output, context);
|
|
966
946
|
}
|
|
967
947
|
const contents = map({
|
|
968
948
|
$metadata: deserializeMetadata(output),
|
|
@@ -972,12 +952,12 @@ const deserializeAws_restJson1AddProfileKeyCommand = async (output, context) =>
|
|
|
972
952
|
contents.KeyName = (0, smithy_client_1.expectString)(data.KeyName);
|
|
973
953
|
}
|
|
974
954
|
if (data.Values != null) {
|
|
975
|
-
contents.Values =
|
|
955
|
+
contents.Values = de_requestValueList(data.Values, context);
|
|
976
956
|
}
|
|
977
957
|
return contents;
|
|
978
958
|
};
|
|
979
|
-
exports.
|
|
980
|
-
const
|
|
959
|
+
exports.de_AddProfileKeyCommand = de_AddProfileKeyCommand;
|
|
960
|
+
const de_AddProfileKeyCommandError = async (output, context) => {
|
|
981
961
|
const parsedOutput = {
|
|
982
962
|
...output,
|
|
983
963
|
body: await parseErrorBody(output.body, context),
|
|
@@ -986,19 +966,19 @@ const deserializeAws_restJson1AddProfileKeyCommandError = async (output, context
|
|
|
986
966
|
switch (errorCode) {
|
|
987
967
|
case "AccessDeniedException":
|
|
988
968
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
989
|
-
throw await
|
|
969
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
990
970
|
case "BadRequestException":
|
|
991
971
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
992
|
-
throw await
|
|
972
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
993
973
|
case "InternalServerException":
|
|
994
974
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
995
|
-
throw await
|
|
975
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
996
976
|
case "ResourceNotFoundException":
|
|
997
977
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
998
|
-
throw await
|
|
978
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
999
979
|
case "ThrottlingException":
|
|
1000
980
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1001
|
-
throw await
|
|
981
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1002
982
|
default:
|
|
1003
983
|
const parsedBody = parsedOutput.body;
|
|
1004
984
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1009,9 +989,9 @@ const deserializeAws_restJson1AddProfileKeyCommandError = async (output, context
|
|
|
1009
989
|
});
|
|
1010
990
|
}
|
|
1011
991
|
};
|
|
1012
|
-
const
|
|
992
|
+
const de_CreateDomainCommand = async (output, context) => {
|
|
1013
993
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1014
|
-
return
|
|
994
|
+
return de_CreateDomainCommandError(output, context);
|
|
1015
995
|
}
|
|
1016
996
|
const contents = map({
|
|
1017
997
|
$metadata: deserializeMetadata(output),
|
|
@@ -1036,15 +1016,15 @@ const deserializeAws_restJson1CreateDomainCommand = async (output, context) => {
|
|
|
1036
1016
|
contents.LastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedAt)));
|
|
1037
1017
|
}
|
|
1038
1018
|
if (data.Matching != null) {
|
|
1039
|
-
contents.Matching =
|
|
1019
|
+
contents.Matching = de_MatchingResponse(data.Matching, context);
|
|
1040
1020
|
}
|
|
1041
1021
|
if (data.Tags != null) {
|
|
1042
|
-
contents.Tags =
|
|
1022
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1043
1023
|
}
|
|
1044
1024
|
return contents;
|
|
1045
1025
|
};
|
|
1046
|
-
exports.
|
|
1047
|
-
const
|
|
1026
|
+
exports.de_CreateDomainCommand = de_CreateDomainCommand;
|
|
1027
|
+
const de_CreateDomainCommandError = async (output, context) => {
|
|
1048
1028
|
const parsedOutput = {
|
|
1049
1029
|
...output,
|
|
1050
1030
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1053,19 +1033,19 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1053
1033
|
switch (errorCode) {
|
|
1054
1034
|
case "AccessDeniedException":
|
|
1055
1035
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1056
|
-
throw await
|
|
1036
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1057
1037
|
case "BadRequestException":
|
|
1058
1038
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1059
|
-
throw await
|
|
1039
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1060
1040
|
case "InternalServerException":
|
|
1061
1041
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1062
|
-
throw await
|
|
1042
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1063
1043
|
case "ResourceNotFoundException":
|
|
1064
1044
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1065
|
-
throw await
|
|
1045
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1066
1046
|
case "ThrottlingException":
|
|
1067
1047
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1068
|
-
throw await
|
|
1048
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1069
1049
|
default:
|
|
1070
1050
|
const parsedBody = parsedOutput.body;
|
|
1071
1051
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1076,9 +1056,9 @@ const deserializeAws_restJson1CreateDomainCommandError = async (output, context)
|
|
|
1076
1056
|
});
|
|
1077
1057
|
}
|
|
1078
1058
|
};
|
|
1079
|
-
const
|
|
1059
|
+
const de_CreateIntegrationWorkflowCommand = async (output, context) => {
|
|
1080
1060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1081
|
-
return
|
|
1061
|
+
return de_CreateIntegrationWorkflowCommandError(output, context);
|
|
1082
1062
|
}
|
|
1083
1063
|
const contents = map({
|
|
1084
1064
|
$metadata: deserializeMetadata(output),
|
|
@@ -1092,8 +1072,8 @@ const deserializeAws_restJson1CreateIntegrationWorkflowCommand = async (output,
|
|
|
1092
1072
|
}
|
|
1093
1073
|
return contents;
|
|
1094
1074
|
};
|
|
1095
|
-
exports.
|
|
1096
|
-
const
|
|
1075
|
+
exports.de_CreateIntegrationWorkflowCommand = de_CreateIntegrationWorkflowCommand;
|
|
1076
|
+
const de_CreateIntegrationWorkflowCommandError = async (output, context) => {
|
|
1097
1077
|
const parsedOutput = {
|
|
1098
1078
|
...output,
|
|
1099
1079
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1102,19 +1082,19 @@ const deserializeAws_restJson1CreateIntegrationWorkflowCommandError = async (out
|
|
|
1102
1082
|
switch (errorCode) {
|
|
1103
1083
|
case "AccessDeniedException":
|
|
1104
1084
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1105
|
-
throw await
|
|
1085
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1106
1086
|
case "BadRequestException":
|
|
1107
1087
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1108
|
-
throw await
|
|
1088
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1109
1089
|
case "InternalServerException":
|
|
1110
1090
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1111
|
-
throw await
|
|
1091
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1112
1092
|
case "ResourceNotFoundException":
|
|
1113
1093
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1114
|
-
throw await
|
|
1094
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1115
1095
|
case "ThrottlingException":
|
|
1116
1096
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1117
|
-
throw await
|
|
1097
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1118
1098
|
default:
|
|
1119
1099
|
const parsedBody = parsedOutput.body;
|
|
1120
1100
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1125,9 +1105,9 @@ const deserializeAws_restJson1CreateIntegrationWorkflowCommandError = async (out
|
|
|
1125
1105
|
});
|
|
1126
1106
|
}
|
|
1127
1107
|
};
|
|
1128
|
-
const
|
|
1108
|
+
const de_CreateProfileCommand = async (output, context) => {
|
|
1129
1109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1130
|
-
return
|
|
1110
|
+
return de_CreateProfileCommandError(output, context);
|
|
1131
1111
|
}
|
|
1132
1112
|
const contents = map({
|
|
1133
1113
|
$metadata: deserializeMetadata(output),
|
|
@@ -1138,8 +1118,8 @@ const deserializeAws_restJson1CreateProfileCommand = async (output, context) =>
|
|
|
1138
1118
|
}
|
|
1139
1119
|
return contents;
|
|
1140
1120
|
};
|
|
1141
|
-
exports.
|
|
1142
|
-
const
|
|
1121
|
+
exports.de_CreateProfileCommand = de_CreateProfileCommand;
|
|
1122
|
+
const de_CreateProfileCommandError = async (output, context) => {
|
|
1143
1123
|
const parsedOutput = {
|
|
1144
1124
|
...output,
|
|
1145
1125
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1148,19 +1128,19 @@ const deserializeAws_restJson1CreateProfileCommandError = async (output, context
|
|
|
1148
1128
|
switch (errorCode) {
|
|
1149
1129
|
case "AccessDeniedException":
|
|
1150
1130
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1151
|
-
throw await
|
|
1131
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1152
1132
|
case "BadRequestException":
|
|
1153
1133
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1154
|
-
throw await
|
|
1134
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1155
1135
|
case "InternalServerException":
|
|
1156
1136
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1157
|
-
throw await
|
|
1137
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1158
1138
|
case "ResourceNotFoundException":
|
|
1159
1139
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1160
|
-
throw await
|
|
1140
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1161
1141
|
case "ThrottlingException":
|
|
1162
1142
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1163
|
-
throw await
|
|
1143
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1164
1144
|
default:
|
|
1165
1145
|
const parsedBody = parsedOutput.body;
|
|
1166
1146
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1171,9 +1151,9 @@ const deserializeAws_restJson1CreateProfileCommandError = async (output, context
|
|
|
1171
1151
|
});
|
|
1172
1152
|
}
|
|
1173
1153
|
};
|
|
1174
|
-
const
|
|
1154
|
+
const de_DeleteDomainCommand = async (output, context) => {
|
|
1175
1155
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1176
|
-
return
|
|
1156
|
+
return de_DeleteDomainCommandError(output, context);
|
|
1177
1157
|
}
|
|
1178
1158
|
const contents = map({
|
|
1179
1159
|
$metadata: deserializeMetadata(output),
|
|
@@ -1184,8 +1164,8 @@ const deserializeAws_restJson1DeleteDomainCommand = async (output, context) => {
|
|
|
1184
1164
|
}
|
|
1185
1165
|
return contents;
|
|
1186
1166
|
};
|
|
1187
|
-
exports.
|
|
1188
|
-
const
|
|
1167
|
+
exports.de_DeleteDomainCommand = de_DeleteDomainCommand;
|
|
1168
|
+
const de_DeleteDomainCommandError = async (output, context) => {
|
|
1189
1169
|
const parsedOutput = {
|
|
1190
1170
|
...output,
|
|
1191
1171
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1194,19 +1174,19 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1194
1174
|
switch (errorCode) {
|
|
1195
1175
|
case "AccessDeniedException":
|
|
1196
1176
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1197
|
-
throw await
|
|
1177
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1198
1178
|
case "BadRequestException":
|
|
1199
1179
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1200
|
-
throw await
|
|
1180
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1201
1181
|
case "InternalServerException":
|
|
1202
1182
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1203
|
-
throw await
|
|
1183
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1204
1184
|
case "ResourceNotFoundException":
|
|
1205
1185
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1206
|
-
throw await
|
|
1186
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1207
1187
|
case "ThrottlingException":
|
|
1208
1188
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1209
|
-
throw await
|
|
1189
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1210
1190
|
default:
|
|
1211
1191
|
const parsedBody = parsedOutput.body;
|
|
1212
1192
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1217,9 +1197,9 @@ const deserializeAws_restJson1DeleteDomainCommandError = async (output, context)
|
|
|
1217
1197
|
});
|
|
1218
1198
|
}
|
|
1219
1199
|
};
|
|
1220
|
-
const
|
|
1200
|
+
const de_DeleteIntegrationCommand = async (output, context) => {
|
|
1221
1201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1222
|
-
return
|
|
1202
|
+
return de_DeleteIntegrationCommandError(output, context);
|
|
1223
1203
|
}
|
|
1224
1204
|
const contents = map({
|
|
1225
1205
|
$metadata: deserializeMetadata(output),
|
|
@@ -1230,8 +1210,8 @@ const deserializeAws_restJson1DeleteIntegrationCommand = async (output, context)
|
|
|
1230
1210
|
}
|
|
1231
1211
|
return contents;
|
|
1232
1212
|
};
|
|
1233
|
-
exports.
|
|
1234
|
-
const
|
|
1213
|
+
exports.de_DeleteIntegrationCommand = de_DeleteIntegrationCommand;
|
|
1214
|
+
const de_DeleteIntegrationCommandError = async (output, context) => {
|
|
1235
1215
|
const parsedOutput = {
|
|
1236
1216
|
...output,
|
|
1237
1217
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1240,19 +1220,19 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
|
|
|
1240
1220
|
switch (errorCode) {
|
|
1241
1221
|
case "AccessDeniedException":
|
|
1242
1222
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1243
|
-
throw await
|
|
1223
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1244
1224
|
case "BadRequestException":
|
|
1245
1225
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1246
|
-
throw await
|
|
1226
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1247
1227
|
case "InternalServerException":
|
|
1248
1228
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1249
|
-
throw await
|
|
1229
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1250
1230
|
case "ResourceNotFoundException":
|
|
1251
1231
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1252
|
-
throw await
|
|
1232
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1253
1233
|
case "ThrottlingException":
|
|
1254
1234
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1255
|
-
throw await
|
|
1235
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1256
1236
|
default:
|
|
1257
1237
|
const parsedBody = parsedOutput.body;
|
|
1258
1238
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1263,9 +1243,9 @@ const deserializeAws_restJson1DeleteIntegrationCommandError = async (output, con
|
|
|
1263
1243
|
});
|
|
1264
1244
|
}
|
|
1265
1245
|
};
|
|
1266
|
-
const
|
|
1246
|
+
const de_DeleteProfileCommand = async (output, context) => {
|
|
1267
1247
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1268
|
-
return
|
|
1248
|
+
return de_DeleteProfileCommandError(output, context);
|
|
1269
1249
|
}
|
|
1270
1250
|
const contents = map({
|
|
1271
1251
|
$metadata: deserializeMetadata(output),
|
|
@@ -1276,8 +1256,8 @@ const deserializeAws_restJson1DeleteProfileCommand = async (output, context) =>
|
|
|
1276
1256
|
}
|
|
1277
1257
|
return contents;
|
|
1278
1258
|
};
|
|
1279
|
-
exports.
|
|
1280
|
-
const
|
|
1259
|
+
exports.de_DeleteProfileCommand = de_DeleteProfileCommand;
|
|
1260
|
+
const de_DeleteProfileCommandError = async (output, context) => {
|
|
1281
1261
|
const parsedOutput = {
|
|
1282
1262
|
...output,
|
|
1283
1263
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1286,19 +1266,19 @@ const deserializeAws_restJson1DeleteProfileCommandError = async (output, context
|
|
|
1286
1266
|
switch (errorCode) {
|
|
1287
1267
|
case "AccessDeniedException":
|
|
1288
1268
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1289
|
-
throw await
|
|
1269
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1290
1270
|
case "BadRequestException":
|
|
1291
1271
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1292
|
-
throw await
|
|
1272
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1293
1273
|
case "InternalServerException":
|
|
1294
1274
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1295
|
-
throw await
|
|
1275
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1296
1276
|
case "ResourceNotFoundException":
|
|
1297
1277
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1298
|
-
throw await
|
|
1278
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1299
1279
|
case "ThrottlingException":
|
|
1300
1280
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1301
|
-
throw await
|
|
1281
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1302
1282
|
default:
|
|
1303
1283
|
const parsedBody = parsedOutput.body;
|
|
1304
1284
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1309,9 +1289,9 @@ const deserializeAws_restJson1DeleteProfileCommandError = async (output, context
|
|
|
1309
1289
|
});
|
|
1310
1290
|
}
|
|
1311
1291
|
};
|
|
1312
|
-
const
|
|
1292
|
+
const de_DeleteProfileKeyCommand = async (output, context) => {
|
|
1313
1293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1314
|
-
return
|
|
1294
|
+
return de_DeleteProfileKeyCommandError(output, context);
|
|
1315
1295
|
}
|
|
1316
1296
|
const contents = map({
|
|
1317
1297
|
$metadata: deserializeMetadata(output),
|
|
@@ -1322,8 +1302,8 @@ const deserializeAws_restJson1DeleteProfileKeyCommand = async (output, context)
|
|
|
1322
1302
|
}
|
|
1323
1303
|
return contents;
|
|
1324
1304
|
};
|
|
1325
|
-
exports.
|
|
1326
|
-
const
|
|
1305
|
+
exports.de_DeleteProfileKeyCommand = de_DeleteProfileKeyCommand;
|
|
1306
|
+
const de_DeleteProfileKeyCommandError = async (output, context) => {
|
|
1327
1307
|
const parsedOutput = {
|
|
1328
1308
|
...output,
|
|
1329
1309
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1332,19 +1312,19 @@ const deserializeAws_restJson1DeleteProfileKeyCommandError = async (output, cont
|
|
|
1332
1312
|
switch (errorCode) {
|
|
1333
1313
|
case "AccessDeniedException":
|
|
1334
1314
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1335
|
-
throw await
|
|
1315
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1336
1316
|
case "BadRequestException":
|
|
1337
1317
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1338
|
-
throw await
|
|
1318
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1339
1319
|
case "InternalServerException":
|
|
1340
1320
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1341
|
-
throw await
|
|
1321
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1342
1322
|
case "ResourceNotFoundException":
|
|
1343
1323
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1344
|
-
throw await
|
|
1324
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1345
1325
|
case "ThrottlingException":
|
|
1346
1326
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1347
|
-
throw await
|
|
1327
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1348
1328
|
default:
|
|
1349
1329
|
const parsedBody = parsedOutput.body;
|
|
1350
1330
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1355,9 +1335,9 @@ const deserializeAws_restJson1DeleteProfileKeyCommandError = async (output, cont
|
|
|
1355
1335
|
});
|
|
1356
1336
|
}
|
|
1357
1337
|
};
|
|
1358
|
-
const
|
|
1338
|
+
const de_DeleteProfileObjectCommand = async (output, context) => {
|
|
1359
1339
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1360
|
-
return
|
|
1340
|
+
return de_DeleteProfileObjectCommandError(output, context);
|
|
1361
1341
|
}
|
|
1362
1342
|
const contents = map({
|
|
1363
1343
|
$metadata: deserializeMetadata(output),
|
|
@@ -1368,8 +1348,8 @@ const deserializeAws_restJson1DeleteProfileObjectCommand = async (output, contex
|
|
|
1368
1348
|
}
|
|
1369
1349
|
return contents;
|
|
1370
1350
|
};
|
|
1371
|
-
exports.
|
|
1372
|
-
const
|
|
1351
|
+
exports.de_DeleteProfileObjectCommand = de_DeleteProfileObjectCommand;
|
|
1352
|
+
const de_DeleteProfileObjectCommandError = async (output, context) => {
|
|
1373
1353
|
const parsedOutput = {
|
|
1374
1354
|
...output,
|
|
1375
1355
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1378,19 +1358,19 @@ const deserializeAws_restJson1DeleteProfileObjectCommandError = async (output, c
|
|
|
1378
1358
|
switch (errorCode) {
|
|
1379
1359
|
case "AccessDeniedException":
|
|
1380
1360
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1381
|
-
throw await
|
|
1361
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1382
1362
|
case "BadRequestException":
|
|
1383
1363
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1384
|
-
throw await
|
|
1364
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1385
1365
|
case "InternalServerException":
|
|
1386
1366
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1387
|
-
throw await
|
|
1367
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1388
1368
|
case "ResourceNotFoundException":
|
|
1389
1369
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1390
|
-
throw await
|
|
1370
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1391
1371
|
case "ThrottlingException":
|
|
1392
1372
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1393
|
-
throw await
|
|
1373
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1394
1374
|
default:
|
|
1395
1375
|
const parsedBody = parsedOutput.body;
|
|
1396
1376
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1401,9 +1381,9 @@ const deserializeAws_restJson1DeleteProfileObjectCommandError = async (output, c
|
|
|
1401
1381
|
});
|
|
1402
1382
|
}
|
|
1403
1383
|
};
|
|
1404
|
-
const
|
|
1384
|
+
const de_DeleteProfileObjectTypeCommand = async (output, context) => {
|
|
1405
1385
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1406
|
-
return
|
|
1386
|
+
return de_DeleteProfileObjectTypeCommandError(output, context);
|
|
1407
1387
|
}
|
|
1408
1388
|
const contents = map({
|
|
1409
1389
|
$metadata: deserializeMetadata(output),
|
|
@@ -1414,8 +1394,8 @@ const deserializeAws_restJson1DeleteProfileObjectTypeCommand = async (output, co
|
|
|
1414
1394
|
}
|
|
1415
1395
|
return contents;
|
|
1416
1396
|
};
|
|
1417
|
-
exports.
|
|
1418
|
-
const
|
|
1397
|
+
exports.de_DeleteProfileObjectTypeCommand = de_DeleteProfileObjectTypeCommand;
|
|
1398
|
+
const de_DeleteProfileObjectTypeCommandError = async (output, context) => {
|
|
1419
1399
|
const parsedOutput = {
|
|
1420
1400
|
...output,
|
|
1421
1401
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1424,19 +1404,19 @@ const deserializeAws_restJson1DeleteProfileObjectTypeCommandError = async (outpu
|
|
|
1424
1404
|
switch (errorCode) {
|
|
1425
1405
|
case "AccessDeniedException":
|
|
1426
1406
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1427
|
-
throw await
|
|
1407
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1428
1408
|
case "BadRequestException":
|
|
1429
1409
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1430
|
-
throw await
|
|
1410
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1431
1411
|
case "InternalServerException":
|
|
1432
1412
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1433
|
-
throw await
|
|
1413
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1434
1414
|
case "ResourceNotFoundException":
|
|
1435
1415
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1436
|
-
throw await
|
|
1416
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1437
1417
|
case "ThrottlingException":
|
|
1438
1418
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1439
|
-
throw await
|
|
1419
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1440
1420
|
default:
|
|
1441
1421
|
const parsedBody = parsedOutput.body;
|
|
1442
1422
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1447,9 +1427,9 @@ const deserializeAws_restJson1DeleteProfileObjectTypeCommandError = async (outpu
|
|
|
1447
1427
|
});
|
|
1448
1428
|
}
|
|
1449
1429
|
};
|
|
1450
|
-
const
|
|
1430
|
+
const de_DeleteWorkflowCommand = async (output, context) => {
|
|
1451
1431
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1452
|
-
return
|
|
1432
|
+
return de_DeleteWorkflowCommandError(output, context);
|
|
1453
1433
|
}
|
|
1454
1434
|
const contents = map({
|
|
1455
1435
|
$metadata: deserializeMetadata(output),
|
|
@@ -1457,8 +1437,8 @@ const deserializeAws_restJson1DeleteWorkflowCommand = async (output, context) =>
|
|
|
1457
1437
|
await collectBody(output.body, context);
|
|
1458
1438
|
return contents;
|
|
1459
1439
|
};
|
|
1460
|
-
exports.
|
|
1461
|
-
const
|
|
1440
|
+
exports.de_DeleteWorkflowCommand = de_DeleteWorkflowCommand;
|
|
1441
|
+
const de_DeleteWorkflowCommandError = async (output, context) => {
|
|
1462
1442
|
const parsedOutput = {
|
|
1463
1443
|
...output,
|
|
1464
1444
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1467,19 +1447,19 @@ const deserializeAws_restJson1DeleteWorkflowCommandError = async (output, contex
|
|
|
1467
1447
|
switch (errorCode) {
|
|
1468
1448
|
case "AccessDeniedException":
|
|
1469
1449
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1470
|
-
throw await
|
|
1450
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1471
1451
|
case "BadRequestException":
|
|
1472
1452
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1473
|
-
throw await
|
|
1453
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1474
1454
|
case "InternalServerException":
|
|
1475
1455
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1476
|
-
throw await
|
|
1456
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1477
1457
|
case "ResourceNotFoundException":
|
|
1478
1458
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1479
|
-
throw await
|
|
1459
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1480
1460
|
case "ThrottlingException":
|
|
1481
1461
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1482
|
-
throw await
|
|
1462
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1483
1463
|
default:
|
|
1484
1464
|
const parsedBody = parsedOutput.body;
|
|
1485
1465
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1490,9 +1470,9 @@ const deserializeAws_restJson1DeleteWorkflowCommandError = async (output, contex
|
|
|
1490
1470
|
});
|
|
1491
1471
|
}
|
|
1492
1472
|
};
|
|
1493
|
-
const
|
|
1473
|
+
const de_GetAutoMergingPreviewCommand = async (output, context) => {
|
|
1494
1474
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1495
|
-
return
|
|
1475
|
+
return de_GetAutoMergingPreviewCommandError(output, context);
|
|
1496
1476
|
}
|
|
1497
1477
|
const contents = map({
|
|
1498
1478
|
$metadata: deserializeMetadata(output),
|
|
@@ -1512,8 +1492,8 @@ const deserializeAws_restJson1GetAutoMergingPreviewCommand = async (output, cont
|
|
|
1512
1492
|
}
|
|
1513
1493
|
return contents;
|
|
1514
1494
|
};
|
|
1515
|
-
exports.
|
|
1516
|
-
const
|
|
1495
|
+
exports.de_GetAutoMergingPreviewCommand = de_GetAutoMergingPreviewCommand;
|
|
1496
|
+
const de_GetAutoMergingPreviewCommandError = async (output, context) => {
|
|
1517
1497
|
const parsedOutput = {
|
|
1518
1498
|
...output,
|
|
1519
1499
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1522,19 +1502,19 @@ const deserializeAws_restJson1GetAutoMergingPreviewCommandError = async (output,
|
|
|
1522
1502
|
switch (errorCode) {
|
|
1523
1503
|
case "AccessDeniedException":
|
|
1524
1504
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1525
|
-
throw await
|
|
1505
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1526
1506
|
case "BadRequestException":
|
|
1527
1507
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1528
|
-
throw await
|
|
1508
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1529
1509
|
case "InternalServerException":
|
|
1530
1510
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1531
|
-
throw await
|
|
1511
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1532
1512
|
case "ResourceNotFoundException":
|
|
1533
1513
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1534
|
-
throw await
|
|
1514
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1535
1515
|
case "ThrottlingException":
|
|
1536
1516
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1537
|
-
throw await
|
|
1517
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1538
1518
|
default:
|
|
1539
1519
|
const parsedBody = parsedOutput.body;
|
|
1540
1520
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1545,9 +1525,9 @@ const deserializeAws_restJson1GetAutoMergingPreviewCommandError = async (output,
|
|
|
1545
1525
|
});
|
|
1546
1526
|
}
|
|
1547
1527
|
};
|
|
1548
|
-
const
|
|
1528
|
+
const de_GetDomainCommand = async (output, context) => {
|
|
1549
1529
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1550
|
-
return
|
|
1530
|
+
return de_GetDomainCommandError(output, context);
|
|
1551
1531
|
}
|
|
1552
1532
|
const contents = map({
|
|
1553
1533
|
$metadata: deserializeMetadata(output),
|
|
@@ -1572,18 +1552,18 @@ const deserializeAws_restJson1GetDomainCommand = async (output, context) => {
|
|
|
1572
1552
|
contents.LastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedAt)));
|
|
1573
1553
|
}
|
|
1574
1554
|
if (data.Matching != null) {
|
|
1575
|
-
contents.Matching =
|
|
1555
|
+
contents.Matching = de_MatchingResponse(data.Matching, context);
|
|
1576
1556
|
}
|
|
1577
1557
|
if (data.Stats != null) {
|
|
1578
|
-
contents.Stats =
|
|
1558
|
+
contents.Stats = de_DomainStats(data.Stats, context);
|
|
1579
1559
|
}
|
|
1580
1560
|
if (data.Tags != null) {
|
|
1581
|
-
contents.Tags =
|
|
1561
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1582
1562
|
}
|
|
1583
1563
|
return contents;
|
|
1584
1564
|
};
|
|
1585
|
-
exports.
|
|
1586
|
-
const
|
|
1565
|
+
exports.de_GetDomainCommand = de_GetDomainCommand;
|
|
1566
|
+
const de_GetDomainCommandError = async (output, context) => {
|
|
1587
1567
|
const parsedOutput = {
|
|
1588
1568
|
...output,
|
|
1589
1569
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1592,19 +1572,19 @@ const deserializeAws_restJson1GetDomainCommandError = async (output, context) =>
|
|
|
1592
1572
|
switch (errorCode) {
|
|
1593
1573
|
case "AccessDeniedException":
|
|
1594
1574
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1595
|
-
throw await
|
|
1575
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1596
1576
|
case "BadRequestException":
|
|
1597
1577
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1598
|
-
throw await
|
|
1578
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1599
1579
|
case "InternalServerException":
|
|
1600
1580
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1601
|
-
throw await
|
|
1581
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1602
1582
|
case "ResourceNotFoundException":
|
|
1603
1583
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1604
|
-
throw await
|
|
1584
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1605
1585
|
case "ThrottlingException":
|
|
1606
1586
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1607
|
-
throw await
|
|
1587
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1608
1588
|
default:
|
|
1609
1589
|
const parsedBody = parsedOutput.body;
|
|
1610
1590
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1615,22 +1595,22 @@ const deserializeAws_restJson1GetDomainCommandError = async (output, context) =>
|
|
|
1615
1595
|
});
|
|
1616
1596
|
}
|
|
1617
1597
|
};
|
|
1618
|
-
const
|
|
1598
|
+
const de_GetIdentityResolutionJobCommand = async (output, context) => {
|
|
1619
1599
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1620
|
-
return
|
|
1600
|
+
return de_GetIdentityResolutionJobCommandError(output, context);
|
|
1621
1601
|
}
|
|
1622
1602
|
const contents = map({
|
|
1623
1603
|
$metadata: deserializeMetadata(output),
|
|
1624
1604
|
});
|
|
1625
1605
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1626
1606
|
if (data.AutoMerging != null) {
|
|
1627
|
-
contents.AutoMerging =
|
|
1607
|
+
contents.AutoMerging = de_AutoMerging(data.AutoMerging, context);
|
|
1628
1608
|
}
|
|
1629
1609
|
if (data.DomainName != null) {
|
|
1630
1610
|
contents.DomainName = (0, smithy_client_1.expectString)(data.DomainName);
|
|
1631
1611
|
}
|
|
1632
1612
|
if (data.ExportingLocation != null) {
|
|
1633
|
-
contents.ExportingLocation =
|
|
1613
|
+
contents.ExportingLocation = de_ExportingLocation(data.ExportingLocation, context);
|
|
1634
1614
|
}
|
|
1635
1615
|
if (data.JobEndTime != null) {
|
|
1636
1616
|
contents.JobEndTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.JobEndTime)));
|
|
@@ -1645,7 +1625,7 @@ const deserializeAws_restJson1GetIdentityResolutionJobCommand = async (output, c
|
|
|
1645
1625
|
contents.JobStartTime = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.JobStartTime)));
|
|
1646
1626
|
}
|
|
1647
1627
|
if (data.JobStats != null) {
|
|
1648
|
-
contents.JobStats =
|
|
1628
|
+
contents.JobStats = de_JobStats(data.JobStats, context);
|
|
1649
1629
|
}
|
|
1650
1630
|
if (data.LastUpdatedAt != null) {
|
|
1651
1631
|
contents.LastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedAt)));
|
|
@@ -1658,8 +1638,8 @@ const deserializeAws_restJson1GetIdentityResolutionJobCommand = async (output, c
|
|
|
1658
1638
|
}
|
|
1659
1639
|
return contents;
|
|
1660
1640
|
};
|
|
1661
|
-
exports.
|
|
1662
|
-
const
|
|
1641
|
+
exports.de_GetIdentityResolutionJobCommand = de_GetIdentityResolutionJobCommand;
|
|
1642
|
+
const de_GetIdentityResolutionJobCommandError = async (output, context) => {
|
|
1663
1643
|
const parsedOutput = {
|
|
1664
1644
|
...output,
|
|
1665
1645
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1668,19 +1648,19 @@ const deserializeAws_restJson1GetIdentityResolutionJobCommandError = async (outp
|
|
|
1668
1648
|
switch (errorCode) {
|
|
1669
1649
|
case "AccessDeniedException":
|
|
1670
1650
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1671
|
-
throw await
|
|
1651
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1672
1652
|
case "BadRequestException":
|
|
1673
1653
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1674
|
-
throw await
|
|
1654
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1675
1655
|
case "InternalServerException":
|
|
1676
1656
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1677
|
-
throw await
|
|
1657
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1678
1658
|
case "ResourceNotFoundException":
|
|
1679
1659
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1680
|
-
throw await
|
|
1660
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1681
1661
|
case "ThrottlingException":
|
|
1682
1662
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1683
|
-
throw await
|
|
1663
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1684
1664
|
default:
|
|
1685
1665
|
const parsedBody = parsedOutput.body;
|
|
1686
1666
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1691,9 +1671,9 @@ const deserializeAws_restJson1GetIdentityResolutionJobCommandError = async (outp
|
|
|
1691
1671
|
});
|
|
1692
1672
|
}
|
|
1693
1673
|
};
|
|
1694
|
-
const
|
|
1674
|
+
const de_GetIntegrationCommand = async (output, context) => {
|
|
1695
1675
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1696
|
-
return
|
|
1676
|
+
return de_GetIntegrationCommandError(output, context);
|
|
1697
1677
|
}
|
|
1698
1678
|
const contents = map({
|
|
1699
1679
|
$metadata: deserializeMetadata(output),
|
|
@@ -1715,10 +1695,10 @@ const deserializeAws_restJson1GetIntegrationCommand = async (output, context) =>
|
|
|
1715
1695
|
contents.ObjectTypeName = (0, smithy_client_1.expectString)(data.ObjectTypeName);
|
|
1716
1696
|
}
|
|
1717
1697
|
if (data.ObjectTypeNames != null) {
|
|
1718
|
-
contents.ObjectTypeNames =
|
|
1698
|
+
contents.ObjectTypeNames = de_ObjectTypeNames(data.ObjectTypeNames, context);
|
|
1719
1699
|
}
|
|
1720
1700
|
if (data.Tags != null) {
|
|
1721
|
-
contents.Tags =
|
|
1701
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1722
1702
|
}
|
|
1723
1703
|
if (data.Uri != null) {
|
|
1724
1704
|
contents.Uri = (0, smithy_client_1.expectString)(data.Uri);
|
|
@@ -1728,8 +1708,8 @@ const deserializeAws_restJson1GetIntegrationCommand = async (output, context) =>
|
|
|
1728
1708
|
}
|
|
1729
1709
|
return contents;
|
|
1730
1710
|
};
|
|
1731
|
-
exports.
|
|
1732
|
-
const
|
|
1711
|
+
exports.de_GetIntegrationCommand = de_GetIntegrationCommand;
|
|
1712
|
+
const de_GetIntegrationCommandError = async (output, context) => {
|
|
1733
1713
|
const parsedOutput = {
|
|
1734
1714
|
...output,
|
|
1735
1715
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1738,19 +1718,19 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
|
|
|
1738
1718
|
switch (errorCode) {
|
|
1739
1719
|
case "AccessDeniedException":
|
|
1740
1720
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1741
|
-
throw await
|
|
1721
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1742
1722
|
case "BadRequestException":
|
|
1743
1723
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1744
|
-
throw await
|
|
1724
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1745
1725
|
case "InternalServerException":
|
|
1746
1726
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1747
|
-
throw await
|
|
1727
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1748
1728
|
case "ResourceNotFoundException":
|
|
1749
1729
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1750
|
-
throw await
|
|
1730
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1751
1731
|
case "ThrottlingException":
|
|
1752
1732
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1753
|
-
throw await
|
|
1733
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1754
1734
|
default:
|
|
1755
1735
|
const parsedBody = parsedOutput.body;
|
|
1756
1736
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1761,9 +1741,9 @@ const deserializeAws_restJson1GetIntegrationCommandError = async (output, contex
|
|
|
1761
1741
|
});
|
|
1762
1742
|
}
|
|
1763
1743
|
};
|
|
1764
|
-
const
|
|
1744
|
+
const de_GetMatchesCommand = async (output, context) => {
|
|
1765
1745
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1766
|
-
return
|
|
1746
|
+
return de_GetMatchesCommandError(output, context);
|
|
1767
1747
|
}
|
|
1768
1748
|
const contents = map({
|
|
1769
1749
|
$metadata: deserializeMetadata(output),
|
|
@@ -1773,7 +1753,7 @@ const deserializeAws_restJson1GetMatchesCommand = async (output, context) => {
|
|
|
1773
1753
|
contents.MatchGenerationDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.MatchGenerationDate)));
|
|
1774
1754
|
}
|
|
1775
1755
|
if (data.Matches != null) {
|
|
1776
|
-
contents.Matches =
|
|
1756
|
+
contents.Matches = de_MatchesList(data.Matches, context);
|
|
1777
1757
|
}
|
|
1778
1758
|
if (data.NextToken != null) {
|
|
1779
1759
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
@@ -1783,8 +1763,8 @@ const deserializeAws_restJson1GetMatchesCommand = async (output, context) => {
|
|
|
1783
1763
|
}
|
|
1784
1764
|
return contents;
|
|
1785
1765
|
};
|
|
1786
|
-
exports.
|
|
1787
|
-
const
|
|
1766
|
+
exports.de_GetMatchesCommand = de_GetMatchesCommand;
|
|
1767
|
+
const de_GetMatchesCommandError = async (output, context) => {
|
|
1788
1768
|
const parsedOutput = {
|
|
1789
1769
|
...output,
|
|
1790
1770
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1793,19 +1773,19 @@ const deserializeAws_restJson1GetMatchesCommandError = async (output, context) =
|
|
|
1793
1773
|
switch (errorCode) {
|
|
1794
1774
|
case "AccessDeniedException":
|
|
1795
1775
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1796
|
-
throw await
|
|
1776
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1797
1777
|
case "BadRequestException":
|
|
1798
1778
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1799
|
-
throw await
|
|
1779
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1800
1780
|
case "InternalServerException":
|
|
1801
1781
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1802
|
-
throw await
|
|
1782
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1803
1783
|
case "ResourceNotFoundException":
|
|
1804
1784
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1805
|
-
throw await
|
|
1785
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1806
1786
|
case "ThrottlingException":
|
|
1807
1787
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1808
|
-
throw await
|
|
1788
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1809
1789
|
default:
|
|
1810
1790
|
const parsedBody = parsedOutput.body;
|
|
1811
1791
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1816,9 +1796,9 @@ const deserializeAws_restJson1GetMatchesCommandError = async (output, context) =
|
|
|
1816
1796
|
});
|
|
1817
1797
|
}
|
|
1818
1798
|
};
|
|
1819
|
-
const
|
|
1799
|
+
const de_GetProfileObjectTypeCommand = async (output, context) => {
|
|
1820
1800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1821
|
-
return
|
|
1801
|
+
return de_GetProfileObjectTypeCommandError(output, context);
|
|
1822
1802
|
}
|
|
1823
1803
|
const contents = map({
|
|
1824
1804
|
$metadata: deserializeMetadata(output),
|
|
@@ -1840,10 +1820,10 @@ const deserializeAws_restJson1GetProfileObjectTypeCommand = async (output, conte
|
|
|
1840
1820
|
contents.ExpirationDays = (0, smithy_client_1.expectInt32)(data.ExpirationDays);
|
|
1841
1821
|
}
|
|
1842
1822
|
if (data.Fields != null) {
|
|
1843
|
-
contents.Fields =
|
|
1823
|
+
contents.Fields = de_FieldMap(data.Fields, context);
|
|
1844
1824
|
}
|
|
1845
1825
|
if (data.Keys != null) {
|
|
1846
|
-
contents.Keys =
|
|
1826
|
+
contents.Keys = de_KeyMap(data.Keys, context);
|
|
1847
1827
|
}
|
|
1848
1828
|
if (data.LastUpdatedAt != null) {
|
|
1849
1829
|
contents.LastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedAt)));
|
|
@@ -1855,15 +1835,15 @@ const deserializeAws_restJson1GetProfileObjectTypeCommand = async (output, conte
|
|
|
1855
1835
|
contents.SourceLastUpdatedTimestampFormat = (0, smithy_client_1.expectString)(data.SourceLastUpdatedTimestampFormat);
|
|
1856
1836
|
}
|
|
1857
1837
|
if (data.Tags != null) {
|
|
1858
|
-
contents.Tags =
|
|
1838
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
1859
1839
|
}
|
|
1860
1840
|
if (data.TemplateId != null) {
|
|
1861
1841
|
contents.TemplateId = (0, smithy_client_1.expectString)(data.TemplateId);
|
|
1862
1842
|
}
|
|
1863
1843
|
return contents;
|
|
1864
1844
|
};
|
|
1865
|
-
exports.
|
|
1866
|
-
const
|
|
1845
|
+
exports.de_GetProfileObjectTypeCommand = de_GetProfileObjectTypeCommand;
|
|
1846
|
+
const de_GetProfileObjectTypeCommandError = async (output, context) => {
|
|
1867
1847
|
const parsedOutput = {
|
|
1868
1848
|
...output,
|
|
1869
1849
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1872,19 +1852,19 @@ const deserializeAws_restJson1GetProfileObjectTypeCommandError = async (output,
|
|
|
1872
1852
|
switch (errorCode) {
|
|
1873
1853
|
case "AccessDeniedException":
|
|
1874
1854
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1875
|
-
throw await
|
|
1855
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1876
1856
|
case "BadRequestException":
|
|
1877
1857
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1878
|
-
throw await
|
|
1858
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1879
1859
|
case "InternalServerException":
|
|
1880
1860
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1881
|
-
throw await
|
|
1861
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1882
1862
|
case "ResourceNotFoundException":
|
|
1883
1863
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1884
|
-
throw await
|
|
1864
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1885
1865
|
case "ThrottlingException":
|
|
1886
1866
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1887
|
-
throw await
|
|
1867
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1888
1868
|
default:
|
|
1889
1869
|
const parsedBody = parsedOutput.body;
|
|
1890
1870
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1895,9 +1875,9 @@ const deserializeAws_restJson1GetProfileObjectTypeCommandError = async (output,
|
|
|
1895
1875
|
});
|
|
1896
1876
|
}
|
|
1897
1877
|
};
|
|
1898
|
-
const
|
|
1878
|
+
const de_GetProfileObjectTypeTemplateCommand = async (output, context) => {
|
|
1899
1879
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1900
|
-
return
|
|
1880
|
+
return de_GetProfileObjectTypeTemplateCommandError(output, context);
|
|
1901
1881
|
}
|
|
1902
1882
|
const contents = map({
|
|
1903
1883
|
$metadata: deserializeMetadata(output),
|
|
@@ -1907,10 +1887,10 @@ const deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = async (outpu
|
|
|
1907
1887
|
contents.AllowProfileCreation = (0, smithy_client_1.expectBoolean)(data.AllowProfileCreation);
|
|
1908
1888
|
}
|
|
1909
1889
|
if (data.Fields != null) {
|
|
1910
|
-
contents.Fields =
|
|
1890
|
+
contents.Fields = de_FieldMap(data.Fields, context);
|
|
1911
1891
|
}
|
|
1912
1892
|
if (data.Keys != null) {
|
|
1913
|
-
contents.Keys =
|
|
1893
|
+
contents.Keys = de_KeyMap(data.Keys, context);
|
|
1914
1894
|
}
|
|
1915
1895
|
if (data.SourceLastUpdatedTimestampFormat != null) {
|
|
1916
1896
|
contents.SourceLastUpdatedTimestampFormat = (0, smithy_client_1.expectString)(data.SourceLastUpdatedTimestampFormat);
|
|
@@ -1926,8 +1906,8 @@ const deserializeAws_restJson1GetProfileObjectTypeTemplateCommand = async (outpu
|
|
|
1926
1906
|
}
|
|
1927
1907
|
return contents;
|
|
1928
1908
|
};
|
|
1929
|
-
exports.
|
|
1930
|
-
const
|
|
1909
|
+
exports.de_GetProfileObjectTypeTemplateCommand = de_GetProfileObjectTypeTemplateCommand;
|
|
1910
|
+
const de_GetProfileObjectTypeTemplateCommandError = async (output, context) => {
|
|
1931
1911
|
const parsedOutput = {
|
|
1932
1912
|
...output,
|
|
1933
1913
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1936,19 +1916,19 @@ const deserializeAws_restJson1GetProfileObjectTypeTemplateCommandError = async (
|
|
|
1936
1916
|
switch (errorCode) {
|
|
1937
1917
|
case "AccessDeniedException":
|
|
1938
1918
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
1939
|
-
throw await
|
|
1919
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1940
1920
|
case "BadRequestException":
|
|
1941
1921
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
1942
|
-
throw await
|
|
1922
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
1943
1923
|
case "InternalServerException":
|
|
1944
1924
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
1945
|
-
throw await
|
|
1925
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1946
1926
|
case "ResourceNotFoundException":
|
|
1947
1927
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
1948
|
-
throw await
|
|
1928
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1949
1929
|
case "ThrottlingException":
|
|
1950
1930
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
1951
|
-
throw await
|
|
1931
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1952
1932
|
default:
|
|
1953
1933
|
const parsedBody = parsedOutput.body;
|
|
1954
1934
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1959,16 +1939,16 @@ const deserializeAws_restJson1GetProfileObjectTypeTemplateCommandError = async (
|
|
|
1959
1939
|
});
|
|
1960
1940
|
}
|
|
1961
1941
|
};
|
|
1962
|
-
const
|
|
1942
|
+
const de_GetWorkflowCommand = async (output, context) => {
|
|
1963
1943
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1964
|
-
return
|
|
1944
|
+
return de_GetWorkflowCommandError(output, context);
|
|
1965
1945
|
}
|
|
1966
1946
|
const contents = map({
|
|
1967
1947
|
$metadata: deserializeMetadata(output),
|
|
1968
1948
|
});
|
|
1969
1949
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1970
1950
|
if (data.Attributes != null) {
|
|
1971
|
-
contents.Attributes =
|
|
1951
|
+
contents.Attributes = de_WorkflowAttributes(data.Attributes, context);
|
|
1972
1952
|
}
|
|
1973
1953
|
if (data.ErrorDescription != null) {
|
|
1974
1954
|
contents.ErrorDescription = (0, smithy_client_1.expectString)(data.ErrorDescription);
|
|
@@ -1977,7 +1957,7 @@ const deserializeAws_restJson1GetWorkflowCommand = async (output, context) => {
|
|
|
1977
1957
|
contents.LastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedAt)));
|
|
1978
1958
|
}
|
|
1979
1959
|
if (data.Metrics != null) {
|
|
1980
|
-
contents.Metrics =
|
|
1960
|
+
contents.Metrics = de_WorkflowMetrics(data.Metrics, context);
|
|
1981
1961
|
}
|
|
1982
1962
|
if (data.StartDate != null) {
|
|
1983
1963
|
contents.StartDate = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.StartDate)));
|
|
@@ -1993,8 +1973,8 @@ const deserializeAws_restJson1GetWorkflowCommand = async (output, context) => {
|
|
|
1993
1973
|
}
|
|
1994
1974
|
return contents;
|
|
1995
1975
|
};
|
|
1996
|
-
exports.
|
|
1997
|
-
const
|
|
1976
|
+
exports.de_GetWorkflowCommand = de_GetWorkflowCommand;
|
|
1977
|
+
const de_GetWorkflowCommandError = async (output, context) => {
|
|
1998
1978
|
const parsedOutput = {
|
|
1999
1979
|
...output,
|
|
2000
1980
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2003,19 +1983,19 @@ const deserializeAws_restJson1GetWorkflowCommandError = async (output, context)
|
|
|
2003
1983
|
switch (errorCode) {
|
|
2004
1984
|
case "AccessDeniedException":
|
|
2005
1985
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2006
|
-
throw await
|
|
1986
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2007
1987
|
case "BadRequestException":
|
|
2008
1988
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2009
|
-
throw await
|
|
1989
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2010
1990
|
case "InternalServerException":
|
|
2011
1991
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2012
|
-
throw await
|
|
1992
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2013
1993
|
case "ResourceNotFoundException":
|
|
2014
1994
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2015
|
-
throw await
|
|
1995
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2016
1996
|
case "ThrottlingException":
|
|
2017
1997
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2018
|
-
throw await
|
|
1998
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2019
1999
|
default:
|
|
2020
2000
|
const parsedBody = parsedOutput.body;
|
|
2021
2001
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2026,16 +2006,16 @@ const deserializeAws_restJson1GetWorkflowCommandError = async (output, context)
|
|
|
2026
2006
|
});
|
|
2027
2007
|
}
|
|
2028
2008
|
};
|
|
2029
|
-
const
|
|
2009
|
+
const de_GetWorkflowStepsCommand = async (output, context) => {
|
|
2030
2010
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2031
|
-
return
|
|
2011
|
+
return de_GetWorkflowStepsCommandError(output, context);
|
|
2032
2012
|
}
|
|
2033
2013
|
const contents = map({
|
|
2034
2014
|
$metadata: deserializeMetadata(output),
|
|
2035
2015
|
});
|
|
2036
2016
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2037
2017
|
if (data.Items != null) {
|
|
2038
|
-
contents.Items =
|
|
2018
|
+
contents.Items = de_WorkflowStepsList(data.Items, context);
|
|
2039
2019
|
}
|
|
2040
2020
|
if (data.NextToken != null) {
|
|
2041
2021
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
@@ -2048,8 +2028,8 @@ const deserializeAws_restJson1GetWorkflowStepsCommand = async (output, context)
|
|
|
2048
2028
|
}
|
|
2049
2029
|
return contents;
|
|
2050
2030
|
};
|
|
2051
|
-
exports.
|
|
2052
|
-
const
|
|
2031
|
+
exports.de_GetWorkflowStepsCommand = de_GetWorkflowStepsCommand;
|
|
2032
|
+
const de_GetWorkflowStepsCommandError = async (output, context) => {
|
|
2053
2033
|
const parsedOutput = {
|
|
2054
2034
|
...output,
|
|
2055
2035
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2058,19 +2038,19 @@ const deserializeAws_restJson1GetWorkflowStepsCommandError = async (output, cont
|
|
|
2058
2038
|
switch (errorCode) {
|
|
2059
2039
|
case "AccessDeniedException":
|
|
2060
2040
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2061
|
-
throw await
|
|
2041
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2062
2042
|
case "BadRequestException":
|
|
2063
2043
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2064
|
-
throw await
|
|
2044
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2065
2045
|
case "InternalServerException":
|
|
2066
2046
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2067
|
-
throw await
|
|
2047
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2068
2048
|
case "ResourceNotFoundException":
|
|
2069
2049
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2070
|
-
throw await
|
|
2050
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2071
2051
|
case "ThrottlingException":
|
|
2072
2052
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2073
|
-
throw await
|
|
2053
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2074
2054
|
default:
|
|
2075
2055
|
const parsedBody = parsedOutput.body;
|
|
2076
2056
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2081,24 +2061,24 @@ const deserializeAws_restJson1GetWorkflowStepsCommandError = async (output, cont
|
|
|
2081
2061
|
});
|
|
2082
2062
|
}
|
|
2083
2063
|
};
|
|
2084
|
-
const
|
|
2064
|
+
const de_ListAccountIntegrationsCommand = async (output, context) => {
|
|
2085
2065
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2086
|
-
return
|
|
2066
|
+
return de_ListAccountIntegrationsCommandError(output, context);
|
|
2087
2067
|
}
|
|
2088
2068
|
const contents = map({
|
|
2089
2069
|
$metadata: deserializeMetadata(output),
|
|
2090
2070
|
});
|
|
2091
2071
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2092
2072
|
if (data.Items != null) {
|
|
2093
|
-
contents.Items =
|
|
2073
|
+
contents.Items = de_IntegrationList(data.Items, context);
|
|
2094
2074
|
}
|
|
2095
2075
|
if (data.NextToken != null) {
|
|
2096
2076
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2097
2077
|
}
|
|
2098
2078
|
return contents;
|
|
2099
2079
|
};
|
|
2100
|
-
exports.
|
|
2101
|
-
const
|
|
2080
|
+
exports.de_ListAccountIntegrationsCommand = de_ListAccountIntegrationsCommand;
|
|
2081
|
+
const de_ListAccountIntegrationsCommandError = async (output, context) => {
|
|
2102
2082
|
const parsedOutput = {
|
|
2103
2083
|
...output,
|
|
2104
2084
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2107,19 +2087,19 @@ const deserializeAws_restJson1ListAccountIntegrationsCommandError = async (outpu
|
|
|
2107
2087
|
switch (errorCode) {
|
|
2108
2088
|
case "AccessDeniedException":
|
|
2109
2089
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2110
|
-
throw await
|
|
2090
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2111
2091
|
case "BadRequestException":
|
|
2112
2092
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2113
|
-
throw await
|
|
2093
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2114
2094
|
case "InternalServerException":
|
|
2115
2095
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2116
|
-
throw await
|
|
2096
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2117
2097
|
case "ResourceNotFoundException":
|
|
2118
2098
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2119
|
-
throw await
|
|
2099
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2120
2100
|
case "ThrottlingException":
|
|
2121
2101
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2122
|
-
throw await
|
|
2102
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2123
2103
|
default:
|
|
2124
2104
|
const parsedBody = parsedOutput.body;
|
|
2125
2105
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2130,24 +2110,24 @@ const deserializeAws_restJson1ListAccountIntegrationsCommandError = async (outpu
|
|
|
2130
2110
|
});
|
|
2131
2111
|
}
|
|
2132
2112
|
};
|
|
2133
|
-
const
|
|
2113
|
+
const de_ListDomainsCommand = async (output, context) => {
|
|
2134
2114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2135
|
-
return
|
|
2115
|
+
return de_ListDomainsCommandError(output, context);
|
|
2136
2116
|
}
|
|
2137
2117
|
const contents = map({
|
|
2138
2118
|
$metadata: deserializeMetadata(output),
|
|
2139
2119
|
});
|
|
2140
2120
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2141
2121
|
if (data.Items != null) {
|
|
2142
|
-
contents.Items =
|
|
2122
|
+
contents.Items = de_DomainList(data.Items, context);
|
|
2143
2123
|
}
|
|
2144
2124
|
if (data.NextToken != null) {
|
|
2145
2125
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2146
2126
|
}
|
|
2147
2127
|
return contents;
|
|
2148
2128
|
};
|
|
2149
|
-
exports.
|
|
2150
|
-
const
|
|
2129
|
+
exports.de_ListDomainsCommand = de_ListDomainsCommand;
|
|
2130
|
+
const de_ListDomainsCommandError = async (output, context) => {
|
|
2151
2131
|
const parsedOutput = {
|
|
2152
2132
|
...output,
|
|
2153
2133
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2156,19 +2136,19 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
|
|
|
2156
2136
|
switch (errorCode) {
|
|
2157
2137
|
case "AccessDeniedException":
|
|
2158
2138
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2159
|
-
throw await
|
|
2139
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2160
2140
|
case "BadRequestException":
|
|
2161
2141
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2162
|
-
throw await
|
|
2142
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2163
2143
|
case "InternalServerException":
|
|
2164
2144
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2165
|
-
throw await
|
|
2145
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2166
2146
|
case "ResourceNotFoundException":
|
|
2167
2147
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2168
|
-
throw await
|
|
2148
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2169
2149
|
case "ThrottlingException":
|
|
2170
2150
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2171
|
-
throw await
|
|
2151
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2172
2152
|
default:
|
|
2173
2153
|
const parsedBody = parsedOutput.body;
|
|
2174
2154
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2179,24 +2159,24 @@ const deserializeAws_restJson1ListDomainsCommandError = async (output, context)
|
|
|
2179
2159
|
});
|
|
2180
2160
|
}
|
|
2181
2161
|
};
|
|
2182
|
-
const
|
|
2162
|
+
const de_ListIdentityResolutionJobsCommand = async (output, context) => {
|
|
2183
2163
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2184
|
-
return
|
|
2164
|
+
return de_ListIdentityResolutionJobsCommandError(output, context);
|
|
2185
2165
|
}
|
|
2186
2166
|
const contents = map({
|
|
2187
2167
|
$metadata: deserializeMetadata(output),
|
|
2188
2168
|
});
|
|
2189
2169
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2190
2170
|
if (data.IdentityResolutionJobsList != null) {
|
|
2191
|
-
contents.IdentityResolutionJobsList =
|
|
2171
|
+
contents.IdentityResolutionJobsList = de_IdentityResolutionJobsList(data.IdentityResolutionJobsList, context);
|
|
2192
2172
|
}
|
|
2193
2173
|
if (data.NextToken != null) {
|
|
2194
2174
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2195
2175
|
}
|
|
2196
2176
|
return contents;
|
|
2197
2177
|
};
|
|
2198
|
-
exports.
|
|
2199
|
-
const
|
|
2178
|
+
exports.de_ListIdentityResolutionJobsCommand = de_ListIdentityResolutionJobsCommand;
|
|
2179
|
+
const de_ListIdentityResolutionJobsCommandError = async (output, context) => {
|
|
2200
2180
|
const parsedOutput = {
|
|
2201
2181
|
...output,
|
|
2202
2182
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2205,19 +2185,19 @@ const deserializeAws_restJson1ListIdentityResolutionJobsCommandError = async (ou
|
|
|
2205
2185
|
switch (errorCode) {
|
|
2206
2186
|
case "AccessDeniedException":
|
|
2207
2187
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2208
|
-
throw await
|
|
2188
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2209
2189
|
case "BadRequestException":
|
|
2210
2190
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2211
|
-
throw await
|
|
2191
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2212
2192
|
case "InternalServerException":
|
|
2213
2193
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2214
|
-
throw await
|
|
2194
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2215
2195
|
case "ResourceNotFoundException":
|
|
2216
2196
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2217
|
-
throw await
|
|
2197
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2218
2198
|
case "ThrottlingException":
|
|
2219
2199
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2220
|
-
throw await
|
|
2200
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2221
2201
|
default:
|
|
2222
2202
|
const parsedBody = parsedOutput.body;
|
|
2223
2203
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2228,24 +2208,24 @@ const deserializeAws_restJson1ListIdentityResolutionJobsCommandError = async (ou
|
|
|
2228
2208
|
});
|
|
2229
2209
|
}
|
|
2230
2210
|
};
|
|
2231
|
-
const
|
|
2211
|
+
const de_ListIntegrationsCommand = async (output, context) => {
|
|
2232
2212
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2233
|
-
return
|
|
2213
|
+
return de_ListIntegrationsCommandError(output, context);
|
|
2234
2214
|
}
|
|
2235
2215
|
const contents = map({
|
|
2236
2216
|
$metadata: deserializeMetadata(output),
|
|
2237
2217
|
});
|
|
2238
2218
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2239
2219
|
if (data.Items != null) {
|
|
2240
|
-
contents.Items =
|
|
2220
|
+
contents.Items = de_IntegrationList(data.Items, context);
|
|
2241
2221
|
}
|
|
2242
2222
|
if (data.NextToken != null) {
|
|
2243
2223
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2244
2224
|
}
|
|
2245
2225
|
return contents;
|
|
2246
2226
|
};
|
|
2247
|
-
exports.
|
|
2248
|
-
const
|
|
2227
|
+
exports.de_ListIntegrationsCommand = de_ListIntegrationsCommand;
|
|
2228
|
+
const de_ListIntegrationsCommandError = async (output, context) => {
|
|
2249
2229
|
const parsedOutput = {
|
|
2250
2230
|
...output,
|
|
2251
2231
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2254,19 +2234,19 @@ const deserializeAws_restJson1ListIntegrationsCommandError = async (output, cont
|
|
|
2254
2234
|
switch (errorCode) {
|
|
2255
2235
|
case "AccessDeniedException":
|
|
2256
2236
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2257
|
-
throw await
|
|
2237
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2258
2238
|
case "BadRequestException":
|
|
2259
2239
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2260
|
-
throw await
|
|
2240
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2261
2241
|
case "InternalServerException":
|
|
2262
2242
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2263
|
-
throw await
|
|
2243
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2264
2244
|
case "ResourceNotFoundException":
|
|
2265
2245
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2266
|
-
throw await
|
|
2246
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2267
2247
|
case "ThrottlingException":
|
|
2268
2248
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2269
|
-
throw await
|
|
2249
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2270
2250
|
default:
|
|
2271
2251
|
const parsedBody = parsedOutput.body;
|
|
2272
2252
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2277,24 +2257,24 @@ const deserializeAws_restJson1ListIntegrationsCommandError = async (output, cont
|
|
|
2277
2257
|
});
|
|
2278
2258
|
}
|
|
2279
2259
|
};
|
|
2280
|
-
const
|
|
2260
|
+
const de_ListProfileObjectsCommand = async (output, context) => {
|
|
2281
2261
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2282
|
-
return
|
|
2262
|
+
return de_ListProfileObjectsCommandError(output, context);
|
|
2283
2263
|
}
|
|
2284
2264
|
const contents = map({
|
|
2285
2265
|
$metadata: deserializeMetadata(output),
|
|
2286
2266
|
});
|
|
2287
2267
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2288
2268
|
if (data.Items != null) {
|
|
2289
|
-
contents.Items =
|
|
2269
|
+
contents.Items = de_ProfileObjectList(data.Items, context);
|
|
2290
2270
|
}
|
|
2291
2271
|
if (data.NextToken != null) {
|
|
2292
2272
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2293
2273
|
}
|
|
2294
2274
|
return contents;
|
|
2295
2275
|
};
|
|
2296
|
-
exports.
|
|
2297
|
-
const
|
|
2276
|
+
exports.de_ListProfileObjectsCommand = de_ListProfileObjectsCommand;
|
|
2277
|
+
const de_ListProfileObjectsCommandError = async (output, context) => {
|
|
2298
2278
|
const parsedOutput = {
|
|
2299
2279
|
...output,
|
|
2300
2280
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2303,19 +2283,19 @@ const deserializeAws_restJson1ListProfileObjectsCommandError = async (output, co
|
|
|
2303
2283
|
switch (errorCode) {
|
|
2304
2284
|
case "AccessDeniedException":
|
|
2305
2285
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2306
|
-
throw await
|
|
2286
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2307
2287
|
case "BadRequestException":
|
|
2308
2288
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2309
|
-
throw await
|
|
2289
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2310
2290
|
case "InternalServerException":
|
|
2311
2291
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2312
|
-
throw await
|
|
2292
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2313
2293
|
case "ResourceNotFoundException":
|
|
2314
2294
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2315
|
-
throw await
|
|
2295
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2316
2296
|
case "ThrottlingException":
|
|
2317
2297
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2318
|
-
throw await
|
|
2298
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2319
2299
|
default:
|
|
2320
2300
|
const parsedBody = parsedOutput.body;
|
|
2321
2301
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2326,24 +2306,24 @@ const deserializeAws_restJson1ListProfileObjectsCommandError = async (output, co
|
|
|
2326
2306
|
});
|
|
2327
2307
|
}
|
|
2328
2308
|
};
|
|
2329
|
-
const
|
|
2309
|
+
const de_ListProfileObjectTypesCommand = async (output, context) => {
|
|
2330
2310
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2331
|
-
return
|
|
2311
|
+
return de_ListProfileObjectTypesCommandError(output, context);
|
|
2332
2312
|
}
|
|
2333
2313
|
const contents = map({
|
|
2334
2314
|
$metadata: deserializeMetadata(output),
|
|
2335
2315
|
});
|
|
2336
2316
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2337
2317
|
if (data.Items != null) {
|
|
2338
|
-
contents.Items =
|
|
2318
|
+
contents.Items = de_ProfileObjectTypeList(data.Items, context);
|
|
2339
2319
|
}
|
|
2340
2320
|
if (data.NextToken != null) {
|
|
2341
2321
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2342
2322
|
}
|
|
2343
2323
|
return contents;
|
|
2344
2324
|
};
|
|
2345
|
-
exports.
|
|
2346
|
-
const
|
|
2325
|
+
exports.de_ListProfileObjectTypesCommand = de_ListProfileObjectTypesCommand;
|
|
2326
|
+
const de_ListProfileObjectTypesCommandError = async (output, context) => {
|
|
2347
2327
|
const parsedOutput = {
|
|
2348
2328
|
...output,
|
|
2349
2329
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2352,19 +2332,19 @@ const deserializeAws_restJson1ListProfileObjectTypesCommandError = async (output
|
|
|
2352
2332
|
switch (errorCode) {
|
|
2353
2333
|
case "AccessDeniedException":
|
|
2354
2334
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2355
|
-
throw await
|
|
2335
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2356
2336
|
case "BadRequestException":
|
|
2357
2337
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2358
|
-
throw await
|
|
2338
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2359
2339
|
case "InternalServerException":
|
|
2360
2340
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2361
|
-
throw await
|
|
2341
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2362
2342
|
case "ResourceNotFoundException":
|
|
2363
2343
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2364
|
-
throw await
|
|
2344
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2365
2345
|
case "ThrottlingException":
|
|
2366
2346
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2367
|
-
throw await
|
|
2347
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2368
2348
|
default:
|
|
2369
2349
|
const parsedBody = parsedOutput.body;
|
|
2370
2350
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2375,24 +2355,24 @@ const deserializeAws_restJson1ListProfileObjectTypesCommandError = async (output
|
|
|
2375
2355
|
});
|
|
2376
2356
|
}
|
|
2377
2357
|
};
|
|
2378
|
-
const
|
|
2358
|
+
const de_ListProfileObjectTypeTemplatesCommand = async (output, context) => {
|
|
2379
2359
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2380
|
-
return
|
|
2360
|
+
return de_ListProfileObjectTypeTemplatesCommandError(output, context);
|
|
2381
2361
|
}
|
|
2382
2362
|
const contents = map({
|
|
2383
2363
|
$metadata: deserializeMetadata(output),
|
|
2384
2364
|
});
|
|
2385
2365
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2386
2366
|
if (data.Items != null) {
|
|
2387
|
-
contents.Items =
|
|
2367
|
+
contents.Items = de_ProfileObjectTypeTemplateList(data.Items, context);
|
|
2388
2368
|
}
|
|
2389
2369
|
if (data.NextToken != null) {
|
|
2390
2370
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2391
2371
|
}
|
|
2392
2372
|
return contents;
|
|
2393
2373
|
};
|
|
2394
|
-
exports.
|
|
2395
|
-
const
|
|
2374
|
+
exports.de_ListProfileObjectTypeTemplatesCommand = de_ListProfileObjectTypeTemplatesCommand;
|
|
2375
|
+
const de_ListProfileObjectTypeTemplatesCommandError = async (output, context) => {
|
|
2396
2376
|
const parsedOutput = {
|
|
2397
2377
|
...output,
|
|
2398
2378
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2401,19 +2381,19 @@ const deserializeAws_restJson1ListProfileObjectTypeTemplatesCommandError = async
|
|
|
2401
2381
|
switch (errorCode) {
|
|
2402
2382
|
case "AccessDeniedException":
|
|
2403
2383
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2404
|
-
throw await
|
|
2384
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2405
2385
|
case "BadRequestException":
|
|
2406
2386
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2407
|
-
throw await
|
|
2387
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2408
2388
|
case "InternalServerException":
|
|
2409
2389
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2410
|
-
throw await
|
|
2390
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2411
2391
|
case "ResourceNotFoundException":
|
|
2412
2392
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2413
|
-
throw await
|
|
2393
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2414
2394
|
case "ThrottlingException":
|
|
2415
2395
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2416
|
-
throw await
|
|
2396
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2417
2397
|
default:
|
|
2418
2398
|
const parsedBody = parsedOutput.body;
|
|
2419
2399
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2424,21 +2404,21 @@ const deserializeAws_restJson1ListProfileObjectTypeTemplatesCommandError = async
|
|
|
2424
2404
|
});
|
|
2425
2405
|
}
|
|
2426
2406
|
};
|
|
2427
|
-
const
|
|
2407
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2428
2408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2429
|
-
return
|
|
2409
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
2430
2410
|
}
|
|
2431
2411
|
const contents = map({
|
|
2432
2412
|
$metadata: deserializeMetadata(output),
|
|
2433
2413
|
});
|
|
2434
2414
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2435
2415
|
if (data.tags != null) {
|
|
2436
|
-
contents.tags =
|
|
2416
|
+
contents.tags = de_TagMap(data.tags, context);
|
|
2437
2417
|
}
|
|
2438
2418
|
return contents;
|
|
2439
2419
|
};
|
|
2440
|
-
exports.
|
|
2441
|
-
const
|
|
2420
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2421
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2442
2422
|
const parsedOutput = {
|
|
2443
2423
|
...output,
|
|
2444
2424
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2447,13 +2427,13 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2447
2427
|
switch (errorCode) {
|
|
2448
2428
|
case "BadRequestException":
|
|
2449
2429
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2450
|
-
throw await
|
|
2430
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2451
2431
|
case "InternalServerException":
|
|
2452
2432
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2453
|
-
throw await
|
|
2433
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2454
2434
|
case "ResourceNotFoundException":
|
|
2455
2435
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2456
|
-
throw await
|
|
2436
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2457
2437
|
default:
|
|
2458
2438
|
const parsedBody = parsedOutput.body;
|
|
2459
2439
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2464,24 +2444,24 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
2464
2444
|
});
|
|
2465
2445
|
}
|
|
2466
2446
|
};
|
|
2467
|
-
const
|
|
2447
|
+
const de_ListWorkflowsCommand = async (output, context) => {
|
|
2468
2448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2469
|
-
return
|
|
2449
|
+
return de_ListWorkflowsCommandError(output, context);
|
|
2470
2450
|
}
|
|
2471
2451
|
const contents = map({
|
|
2472
2452
|
$metadata: deserializeMetadata(output),
|
|
2473
2453
|
});
|
|
2474
2454
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2475
2455
|
if (data.Items != null) {
|
|
2476
|
-
contents.Items =
|
|
2456
|
+
contents.Items = de_WorkflowList(data.Items, context);
|
|
2477
2457
|
}
|
|
2478
2458
|
if (data.NextToken != null) {
|
|
2479
2459
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2480
2460
|
}
|
|
2481
2461
|
return contents;
|
|
2482
2462
|
};
|
|
2483
|
-
exports.
|
|
2484
|
-
const
|
|
2463
|
+
exports.de_ListWorkflowsCommand = de_ListWorkflowsCommand;
|
|
2464
|
+
const de_ListWorkflowsCommandError = async (output, context) => {
|
|
2485
2465
|
const parsedOutput = {
|
|
2486
2466
|
...output,
|
|
2487
2467
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2490,19 +2470,19 @@ const deserializeAws_restJson1ListWorkflowsCommandError = async (output, context
|
|
|
2490
2470
|
switch (errorCode) {
|
|
2491
2471
|
case "AccessDeniedException":
|
|
2492
2472
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2493
|
-
throw await
|
|
2473
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2494
2474
|
case "BadRequestException":
|
|
2495
2475
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2496
|
-
throw await
|
|
2476
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2497
2477
|
case "InternalServerException":
|
|
2498
2478
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2499
|
-
throw await
|
|
2479
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2500
2480
|
case "ResourceNotFoundException":
|
|
2501
2481
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2502
|
-
throw await
|
|
2482
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2503
2483
|
case "ThrottlingException":
|
|
2504
2484
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2505
|
-
throw await
|
|
2485
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2506
2486
|
default:
|
|
2507
2487
|
const parsedBody = parsedOutput.body;
|
|
2508
2488
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2513,9 +2493,9 @@ const deserializeAws_restJson1ListWorkflowsCommandError = async (output, context
|
|
|
2513
2493
|
});
|
|
2514
2494
|
}
|
|
2515
2495
|
};
|
|
2516
|
-
const
|
|
2496
|
+
const de_MergeProfilesCommand = async (output, context) => {
|
|
2517
2497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2518
|
-
return
|
|
2498
|
+
return de_MergeProfilesCommandError(output, context);
|
|
2519
2499
|
}
|
|
2520
2500
|
const contents = map({
|
|
2521
2501
|
$metadata: deserializeMetadata(output),
|
|
@@ -2526,8 +2506,8 @@ const deserializeAws_restJson1MergeProfilesCommand = async (output, context) =>
|
|
|
2526
2506
|
}
|
|
2527
2507
|
return contents;
|
|
2528
2508
|
};
|
|
2529
|
-
exports.
|
|
2530
|
-
const
|
|
2509
|
+
exports.de_MergeProfilesCommand = de_MergeProfilesCommand;
|
|
2510
|
+
const de_MergeProfilesCommandError = async (output, context) => {
|
|
2531
2511
|
const parsedOutput = {
|
|
2532
2512
|
...output,
|
|
2533
2513
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2536,16 +2516,16 @@ const deserializeAws_restJson1MergeProfilesCommandError = async (output, context
|
|
|
2536
2516
|
switch (errorCode) {
|
|
2537
2517
|
case "BadRequestException":
|
|
2538
2518
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2539
|
-
throw await
|
|
2519
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2540
2520
|
case "InternalServerException":
|
|
2541
2521
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2542
|
-
throw await
|
|
2522
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2543
2523
|
case "ResourceNotFoundException":
|
|
2544
2524
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2545
|
-
throw await
|
|
2525
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2546
2526
|
case "ThrottlingException":
|
|
2547
2527
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2548
|
-
throw await
|
|
2528
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2549
2529
|
default:
|
|
2550
2530
|
const parsedBody = parsedOutput.body;
|
|
2551
2531
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2556,9 +2536,9 @@ const deserializeAws_restJson1MergeProfilesCommandError = async (output, context
|
|
|
2556
2536
|
});
|
|
2557
2537
|
}
|
|
2558
2538
|
};
|
|
2559
|
-
const
|
|
2539
|
+
const de_PutIntegrationCommand = async (output, context) => {
|
|
2560
2540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2561
|
-
return
|
|
2541
|
+
return de_PutIntegrationCommandError(output, context);
|
|
2562
2542
|
}
|
|
2563
2543
|
const contents = map({
|
|
2564
2544
|
$metadata: deserializeMetadata(output),
|
|
@@ -2580,10 +2560,10 @@ const deserializeAws_restJson1PutIntegrationCommand = async (output, context) =>
|
|
|
2580
2560
|
contents.ObjectTypeName = (0, smithy_client_1.expectString)(data.ObjectTypeName);
|
|
2581
2561
|
}
|
|
2582
2562
|
if (data.ObjectTypeNames != null) {
|
|
2583
|
-
contents.ObjectTypeNames =
|
|
2563
|
+
contents.ObjectTypeNames = de_ObjectTypeNames(data.ObjectTypeNames, context);
|
|
2584
2564
|
}
|
|
2585
2565
|
if (data.Tags != null) {
|
|
2586
|
-
contents.Tags =
|
|
2566
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
2587
2567
|
}
|
|
2588
2568
|
if (data.Uri != null) {
|
|
2589
2569
|
contents.Uri = (0, smithy_client_1.expectString)(data.Uri);
|
|
@@ -2593,8 +2573,8 @@ const deserializeAws_restJson1PutIntegrationCommand = async (output, context) =>
|
|
|
2593
2573
|
}
|
|
2594
2574
|
return contents;
|
|
2595
2575
|
};
|
|
2596
|
-
exports.
|
|
2597
|
-
const
|
|
2576
|
+
exports.de_PutIntegrationCommand = de_PutIntegrationCommand;
|
|
2577
|
+
const de_PutIntegrationCommandError = async (output, context) => {
|
|
2598
2578
|
const parsedOutput = {
|
|
2599
2579
|
...output,
|
|
2600
2580
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2603,19 +2583,19 @@ const deserializeAws_restJson1PutIntegrationCommandError = async (output, contex
|
|
|
2603
2583
|
switch (errorCode) {
|
|
2604
2584
|
case "AccessDeniedException":
|
|
2605
2585
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2606
|
-
throw await
|
|
2586
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2607
2587
|
case "BadRequestException":
|
|
2608
2588
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2609
|
-
throw await
|
|
2589
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2610
2590
|
case "InternalServerException":
|
|
2611
2591
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2612
|
-
throw await
|
|
2592
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2613
2593
|
case "ResourceNotFoundException":
|
|
2614
2594
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2615
|
-
throw await
|
|
2595
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2616
2596
|
case "ThrottlingException":
|
|
2617
2597
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2618
|
-
throw await
|
|
2598
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2619
2599
|
default:
|
|
2620
2600
|
const parsedBody = parsedOutput.body;
|
|
2621
2601
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2626,9 +2606,9 @@ const deserializeAws_restJson1PutIntegrationCommandError = async (output, contex
|
|
|
2626
2606
|
});
|
|
2627
2607
|
}
|
|
2628
2608
|
};
|
|
2629
|
-
const
|
|
2609
|
+
const de_PutProfileObjectCommand = async (output, context) => {
|
|
2630
2610
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2631
|
-
return
|
|
2611
|
+
return de_PutProfileObjectCommandError(output, context);
|
|
2632
2612
|
}
|
|
2633
2613
|
const contents = map({
|
|
2634
2614
|
$metadata: deserializeMetadata(output),
|
|
@@ -2639,8 +2619,8 @@ const deserializeAws_restJson1PutProfileObjectCommand = async (output, context)
|
|
|
2639
2619
|
}
|
|
2640
2620
|
return contents;
|
|
2641
2621
|
};
|
|
2642
|
-
exports.
|
|
2643
|
-
const
|
|
2622
|
+
exports.de_PutProfileObjectCommand = de_PutProfileObjectCommand;
|
|
2623
|
+
const de_PutProfileObjectCommandError = async (output, context) => {
|
|
2644
2624
|
const parsedOutput = {
|
|
2645
2625
|
...output,
|
|
2646
2626
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2649,19 +2629,19 @@ const deserializeAws_restJson1PutProfileObjectCommandError = async (output, cont
|
|
|
2649
2629
|
switch (errorCode) {
|
|
2650
2630
|
case "AccessDeniedException":
|
|
2651
2631
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2652
|
-
throw await
|
|
2632
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2653
2633
|
case "BadRequestException":
|
|
2654
2634
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2655
|
-
throw await
|
|
2635
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2656
2636
|
case "InternalServerException":
|
|
2657
2637
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2658
|
-
throw await
|
|
2638
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2659
2639
|
case "ResourceNotFoundException":
|
|
2660
2640
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2661
|
-
throw await
|
|
2641
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2662
2642
|
case "ThrottlingException":
|
|
2663
2643
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2664
|
-
throw await
|
|
2644
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2665
2645
|
default:
|
|
2666
2646
|
const parsedBody = parsedOutput.body;
|
|
2667
2647
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2672,9 +2652,9 @@ const deserializeAws_restJson1PutProfileObjectCommandError = async (output, cont
|
|
|
2672
2652
|
});
|
|
2673
2653
|
}
|
|
2674
2654
|
};
|
|
2675
|
-
const
|
|
2655
|
+
const de_PutProfileObjectTypeCommand = async (output, context) => {
|
|
2676
2656
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2677
|
-
return
|
|
2657
|
+
return de_PutProfileObjectTypeCommandError(output, context);
|
|
2678
2658
|
}
|
|
2679
2659
|
const contents = map({
|
|
2680
2660
|
$metadata: deserializeMetadata(output),
|
|
@@ -2696,10 +2676,10 @@ const deserializeAws_restJson1PutProfileObjectTypeCommand = async (output, conte
|
|
|
2696
2676
|
contents.ExpirationDays = (0, smithy_client_1.expectInt32)(data.ExpirationDays);
|
|
2697
2677
|
}
|
|
2698
2678
|
if (data.Fields != null) {
|
|
2699
|
-
contents.Fields =
|
|
2679
|
+
contents.Fields = de_FieldMap(data.Fields, context);
|
|
2700
2680
|
}
|
|
2701
2681
|
if (data.Keys != null) {
|
|
2702
|
-
contents.Keys =
|
|
2682
|
+
contents.Keys = de_KeyMap(data.Keys, context);
|
|
2703
2683
|
}
|
|
2704
2684
|
if (data.LastUpdatedAt != null) {
|
|
2705
2685
|
contents.LastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedAt)));
|
|
@@ -2711,15 +2691,15 @@ const deserializeAws_restJson1PutProfileObjectTypeCommand = async (output, conte
|
|
|
2711
2691
|
contents.SourceLastUpdatedTimestampFormat = (0, smithy_client_1.expectString)(data.SourceLastUpdatedTimestampFormat);
|
|
2712
2692
|
}
|
|
2713
2693
|
if (data.Tags != null) {
|
|
2714
|
-
contents.Tags =
|
|
2694
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
2715
2695
|
}
|
|
2716
2696
|
if (data.TemplateId != null) {
|
|
2717
2697
|
contents.TemplateId = (0, smithy_client_1.expectString)(data.TemplateId);
|
|
2718
2698
|
}
|
|
2719
2699
|
return contents;
|
|
2720
2700
|
};
|
|
2721
|
-
exports.
|
|
2722
|
-
const
|
|
2701
|
+
exports.de_PutProfileObjectTypeCommand = de_PutProfileObjectTypeCommand;
|
|
2702
|
+
const de_PutProfileObjectTypeCommandError = async (output, context) => {
|
|
2723
2703
|
const parsedOutput = {
|
|
2724
2704
|
...output,
|
|
2725
2705
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2728,19 +2708,19 @@ const deserializeAws_restJson1PutProfileObjectTypeCommandError = async (output,
|
|
|
2728
2708
|
switch (errorCode) {
|
|
2729
2709
|
case "AccessDeniedException":
|
|
2730
2710
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2731
|
-
throw await
|
|
2711
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2732
2712
|
case "BadRequestException":
|
|
2733
2713
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2734
|
-
throw await
|
|
2714
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2735
2715
|
case "InternalServerException":
|
|
2736
2716
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2737
|
-
throw await
|
|
2717
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2738
2718
|
case "ResourceNotFoundException":
|
|
2739
2719
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2740
|
-
throw await
|
|
2720
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2741
2721
|
case "ThrottlingException":
|
|
2742
2722
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2743
|
-
throw await
|
|
2723
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2744
2724
|
default:
|
|
2745
2725
|
const parsedBody = parsedOutput.body;
|
|
2746
2726
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2751,24 +2731,24 @@ const deserializeAws_restJson1PutProfileObjectTypeCommandError = async (output,
|
|
|
2751
2731
|
});
|
|
2752
2732
|
}
|
|
2753
2733
|
};
|
|
2754
|
-
const
|
|
2734
|
+
const de_SearchProfilesCommand = async (output, context) => {
|
|
2755
2735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2756
|
-
return
|
|
2736
|
+
return de_SearchProfilesCommandError(output, context);
|
|
2757
2737
|
}
|
|
2758
2738
|
const contents = map({
|
|
2759
2739
|
$metadata: deserializeMetadata(output),
|
|
2760
2740
|
});
|
|
2761
2741
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2762
2742
|
if (data.Items != null) {
|
|
2763
|
-
contents.Items =
|
|
2743
|
+
contents.Items = de_ProfileList(data.Items, context);
|
|
2764
2744
|
}
|
|
2765
2745
|
if (data.NextToken != null) {
|
|
2766
2746
|
contents.NextToken = (0, smithy_client_1.expectString)(data.NextToken);
|
|
2767
2747
|
}
|
|
2768
2748
|
return contents;
|
|
2769
2749
|
};
|
|
2770
|
-
exports.
|
|
2771
|
-
const
|
|
2750
|
+
exports.de_SearchProfilesCommand = de_SearchProfilesCommand;
|
|
2751
|
+
const de_SearchProfilesCommandError = async (output, context) => {
|
|
2772
2752
|
const parsedOutput = {
|
|
2773
2753
|
...output,
|
|
2774
2754
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2777,19 +2757,19 @@ const deserializeAws_restJson1SearchProfilesCommandError = async (output, contex
|
|
|
2777
2757
|
switch (errorCode) {
|
|
2778
2758
|
case "AccessDeniedException":
|
|
2779
2759
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2780
|
-
throw await
|
|
2760
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2781
2761
|
case "BadRequestException":
|
|
2782
2762
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2783
|
-
throw await
|
|
2763
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2784
2764
|
case "InternalServerException":
|
|
2785
2765
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2786
|
-
throw await
|
|
2766
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2787
2767
|
case "ResourceNotFoundException":
|
|
2788
2768
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2789
|
-
throw await
|
|
2769
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2790
2770
|
case "ThrottlingException":
|
|
2791
2771
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2792
|
-
throw await
|
|
2772
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2793
2773
|
default:
|
|
2794
2774
|
const parsedBody = parsedOutput.body;
|
|
2795
2775
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2800,9 +2780,9 @@ const deserializeAws_restJson1SearchProfilesCommandError = async (output, contex
|
|
|
2800
2780
|
});
|
|
2801
2781
|
}
|
|
2802
2782
|
};
|
|
2803
|
-
const
|
|
2783
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
2804
2784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2805
|
-
return
|
|
2785
|
+
return de_TagResourceCommandError(output, context);
|
|
2806
2786
|
}
|
|
2807
2787
|
const contents = map({
|
|
2808
2788
|
$metadata: deserializeMetadata(output),
|
|
@@ -2810,8 +2790,8 @@ const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
|
2810
2790
|
await collectBody(output.body, context);
|
|
2811
2791
|
return contents;
|
|
2812
2792
|
};
|
|
2813
|
-
exports.
|
|
2814
|
-
const
|
|
2793
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
2794
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
2815
2795
|
const parsedOutput = {
|
|
2816
2796
|
...output,
|
|
2817
2797
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2820,13 +2800,13 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2820
2800
|
switch (errorCode) {
|
|
2821
2801
|
case "BadRequestException":
|
|
2822
2802
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2823
|
-
throw await
|
|
2803
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2824
2804
|
case "InternalServerException":
|
|
2825
2805
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2826
|
-
throw await
|
|
2806
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2827
2807
|
case "ResourceNotFoundException":
|
|
2828
2808
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2829
|
-
throw await
|
|
2809
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2830
2810
|
default:
|
|
2831
2811
|
const parsedBody = parsedOutput.body;
|
|
2832
2812
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2837,9 +2817,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2837
2817
|
});
|
|
2838
2818
|
}
|
|
2839
2819
|
};
|
|
2840
|
-
const
|
|
2820
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
2841
2821
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2842
|
-
return
|
|
2822
|
+
return de_UntagResourceCommandError(output, context);
|
|
2843
2823
|
}
|
|
2844
2824
|
const contents = map({
|
|
2845
2825
|
$metadata: deserializeMetadata(output),
|
|
@@ -2847,8 +2827,8 @@ const deserializeAws_restJson1UntagResourceCommand = async (output, context) =>
|
|
|
2847
2827
|
await collectBody(output.body, context);
|
|
2848
2828
|
return contents;
|
|
2849
2829
|
};
|
|
2850
|
-
exports.
|
|
2851
|
-
const
|
|
2830
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
2831
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
2852
2832
|
const parsedOutput = {
|
|
2853
2833
|
...output,
|
|
2854
2834
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2857,13 +2837,13 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2857
2837
|
switch (errorCode) {
|
|
2858
2838
|
case "BadRequestException":
|
|
2859
2839
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2860
|
-
throw await
|
|
2840
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2861
2841
|
case "InternalServerException":
|
|
2862
2842
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2863
|
-
throw await
|
|
2843
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2864
2844
|
case "ResourceNotFoundException":
|
|
2865
2845
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2866
|
-
throw await
|
|
2846
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2867
2847
|
default:
|
|
2868
2848
|
const parsedBody = parsedOutput.body;
|
|
2869
2849
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2874,9 +2854,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2874
2854
|
});
|
|
2875
2855
|
}
|
|
2876
2856
|
};
|
|
2877
|
-
const
|
|
2857
|
+
const de_UpdateDomainCommand = async (output, context) => {
|
|
2878
2858
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2879
|
-
return
|
|
2859
|
+
return de_UpdateDomainCommandError(output, context);
|
|
2880
2860
|
}
|
|
2881
2861
|
const contents = map({
|
|
2882
2862
|
$metadata: deserializeMetadata(output),
|
|
@@ -2901,15 +2881,15 @@ const deserializeAws_restJson1UpdateDomainCommand = async (output, context) => {
|
|
|
2901
2881
|
contents.LastUpdatedAt = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(data.LastUpdatedAt)));
|
|
2902
2882
|
}
|
|
2903
2883
|
if (data.Matching != null) {
|
|
2904
|
-
contents.Matching =
|
|
2884
|
+
contents.Matching = de_MatchingResponse(data.Matching, context);
|
|
2905
2885
|
}
|
|
2906
2886
|
if (data.Tags != null) {
|
|
2907
|
-
contents.Tags =
|
|
2887
|
+
contents.Tags = de_TagMap(data.Tags, context);
|
|
2908
2888
|
}
|
|
2909
2889
|
return contents;
|
|
2910
2890
|
};
|
|
2911
|
-
exports.
|
|
2912
|
-
const
|
|
2891
|
+
exports.de_UpdateDomainCommand = de_UpdateDomainCommand;
|
|
2892
|
+
const de_UpdateDomainCommandError = async (output, context) => {
|
|
2913
2893
|
const parsedOutput = {
|
|
2914
2894
|
...output,
|
|
2915
2895
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2918,19 +2898,19 @@ const deserializeAws_restJson1UpdateDomainCommandError = async (output, context)
|
|
|
2918
2898
|
switch (errorCode) {
|
|
2919
2899
|
case "AccessDeniedException":
|
|
2920
2900
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2921
|
-
throw await
|
|
2901
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2922
2902
|
case "BadRequestException":
|
|
2923
2903
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2924
|
-
throw await
|
|
2904
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2925
2905
|
case "InternalServerException":
|
|
2926
2906
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2927
|
-
throw await
|
|
2907
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2928
2908
|
case "ResourceNotFoundException":
|
|
2929
2909
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2930
|
-
throw await
|
|
2910
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2931
2911
|
case "ThrottlingException":
|
|
2932
2912
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2933
|
-
throw await
|
|
2913
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2934
2914
|
default:
|
|
2935
2915
|
const parsedBody = parsedOutput.body;
|
|
2936
2916
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2941,9 +2921,9 @@ const deserializeAws_restJson1UpdateDomainCommandError = async (output, context)
|
|
|
2941
2921
|
});
|
|
2942
2922
|
}
|
|
2943
2923
|
};
|
|
2944
|
-
const
|
|
2924
|
+
const de_UpdateProfileCommand = async (output, context) => {
|
|
2945
2925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2946
|
-
return
|
|
2926
|
+
return de_UpdateProfileCommandError(output, context);
|
|
2947
2927
|
}
|
|
2948
2928
|
const contents = map({
|
|
2949
2929
|
$metadata: deserializeMetadata(output),
|
|
@@ -2954,8 +2934,8 @@ const deserializeAws_restJson1UpdateProfileCommand = async (output, context) =>
|
|
|
2954
2934
|
}
|
|
2955
2935
|
return contents;
|
|
2956
2936
|
};
|
|
2957
|
-
exports.
|
|
2958
|
-
const
|
|
2937
|
+
exports.de_UpdateProfileCommand = de_UpdateProfileCommand;
|
|
2938
|
+
const de_UpdateProfileCommandError = async (output, context) => {
|
|
2959
2939
|
const parsedOutput = {
|
|
2960
2940
|
...output,
|
|
2961
2941
|
body: await parseErrorBody(output.body, context),
|
|
@@ -2964,19 +2944,19 @@ const deserializeAws_restJson1UpdateProfileCommandError = async (output, context
|
|
|
2964
2944
|
switch (errorCode) {
|
|
2965
2945
|
case "AccessDeniedException":
|
|
2966
2946
|
case "com.amazonaws.customerprofiles#AccessDeniedException":
|
|
2967
|
-
throw await
|
|
2947
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2968
2948
|
case "BadRequestException":
|
|
2969
2949
|
case "com.amazonaws.customerprofiles#BadRequestException":
|
|
2970
|
-
throw await
|
|
2950
|
+
throw await de_BadRequestExceptionRes(parsedOutput, context);
|
|
2971
2951
|
case "InternalServerException":
|
|
2972
2952
|
case "com.amazonaws.customerprofiles#InternalServerException":
|
|
2973
|
-
throw await
|
|
2953
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2974
2954
|
case "ResourceNotFoundException":
|
|
2975
2955
|
case "com.amazonaws.customerprofiles#ResourceNotFoundException":
|
|
2976
|
-
throw await
|
|
2956
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2977
2957
|
case "ThrottlingException":
|
|
2978
2958
|
case "com.amazonaws.customerprofiles#ThrottlingException":
|
|
2979
|
-
throw await
|
|
2959
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2980
2960
|
default:
|
|
2981
2961
|
const parsedBody = parsedOutput.body;
|
|
2982
2962
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2988,7 +2968,7 @@ const deserializeAws_restJson1UpdateProfileCommandError = async (output, context
|
|
|
2988
2968
|
}
|
|
2989
2969
|
};
|
|
2990
2970
|
const map = smithy_client_1.map;
|
|
2991
|
-
const
|
|
2971
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
2992
2972
|
const contents = map({});
|
|
2993
2973
|
const data = parsedOutput.body;
|
|
2994
2974
|
if (data.Message != null) {
|
|
@@ -3000,7 +2980,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
3000
2980
|
});
|
|
3001
2981
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3002
2982
|
};
|
|
3003
|
-
const
|
|
2983
|
+
const de_BadRequestExceptionRes = async (parsedOutput, context) => {
|
|
3004
2984
|
const contents = map({});
|
|
3005
2985
|
const data = parsedOutput.body;
|
|
3006
2986
|
if (data.Message != null) {
|
|
@@ -3012,7 +2992,7 @@ const deserializeAws_restJson1BadRequestExceptionResponse = async (parsedOutput,
|
|
|
3012
2992
|
});
|
|
3013
2993
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3014
2994
|
};
|
|
3015
|
-
const
|
|
2995
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
3016
2996
|
const contents = map({});
|
|
3017
2997
|
const data = parsedOutput.body;
|
|
3018
2998
|
if (data.Message != null) {
|
|
@@ -3024,7 +3004,7 @@ const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOut
|
|
|
3024
3004
|
});
|
|
3025
3005
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3026
3006
|
};
|
|
3027
|
-
const
|
|
3007
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
3028
3008
|
const contents = map({});
|
|
3029
3009
|
const data = parsedOutput.body;
|
|
3030
3010
|
if (data.Message != null) {
|
|
@@ -3036,7 +3016,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
3036
3016
|
});
|
|
3037
3017
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3038
3018
|
};
|
|
3039
|
-
const
|
|
3019
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
3040
3020
|
const contents = map({});
|
|
3041
3021
|
const data = parsedOutput.body;
|
|
3042
3022
|
if (data.Message != null) {
|
|
@@ -3048,20 +3028,20 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
3048
3028
|
});
|
|
3049
3029
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
3050
3030
|
};
|
|
3051
|
-
const
|
|
3031
|
+
const se_AdditionalSearchKey = (input, context) => {
|
|
3052
3032
|
return {
|
|
3053
3033
|
...(input.KeyName != null && { KeyName: input.KeyName }),
|
|
3054
|
-
...(input.Values != null && { Values:
|
|
3034
|
+
...(input.Values != null && { Values: se_requestValueList(input.Values, context) }),
|
|
3055
3035
|
};
|
|
3056
3036
|
};
|
|
3057
|
-
const
|
|
3037
|
+
const se_additionalSearchKeysList = (input, context) => {
|
|
3058
3038
|
return input
|
|
3059
3039
|
.filter((e) => e != null)
|
|
3060
3040
|
.map((entry) => {
|
|
3061
|
-
return
|
|
3041
|
+
return se_AdditionalSearchKey(entry, context);
|
|
3062
3042
|
});
|
|
3063
3043
|
};
|
|
3064
|
-
const
|
|
3044
|
+
const se_Address = (input, context) => {
|
|
3065
3045
|
return {
|
|
3066
3046
|
...(input.Address1 != null && { Address1: input.Address1 }),
|
|
3067
3047
|
...(input.Address2 != null && { Address2: input.Address2 }),
|
|
@@ -3075,15 +3055,13 @@ const serializeAws_restJson1Address = (input, context) => {
|
|
|
3075
3055
|
...(input.State != null && { State: input.State }),
|
|
3076
3056
|
};
|
|
3077
3057
|
};
|
|
3078
|
-
const
|
|
3058
|
+
const se_AppflowIntegration = (input, context) => {
|
|
3079
3059
|
return {
|
|
3080
|
-
...(input.Batches != null && { Batches:
|
|
3081
|
-
...(input.FlowDefinition != null && {
|
|
3082
|
-
FlowDefinition: serializeAws_restJson1FlowDefinition(input.FlowDefinition, context),
|
|
3083
|
-
}),
|
|
3060
|
+
...(input.Batches != null && { Batches: se_Batches(input.Batches, context) }),
|
|
3061
|
+
...(input.FlowDefinition != null && { FlowDefinition: se_FlowDefinition(input.FlowDefinition, context) }),
|
|
3084
3062
|
};
|
|
3085
3063
|
};
|
|
3086
|
-
const
|
|
3064
|
+
const se_Attributes = (input, context) => {
|
|
3087
3065
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3088
3066
|
if (value === null) {
|
|
3089
3067
|
return acc;
|
|
@@ -3092,7 +3070,7 @@ const serializeAws_restJson1Attributes = (input, context) => {
|
|
|
3092
3070
|
return acc;
|
|
3093
3071
|
}, {});
|
|
3094
3072
|
};
|
|
3095
|
-
const
|
|
3073
|
+
const se_AttributeSourceIdMap = (input, context) => {
|
|
3096
3074
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3097
3075
|
if (value === null) {
|
|
3098
3076
|
return acc;
|
|
@@ -3101,40 +3079,38 @@ const serializeAws_restJson1AttributeSourceIdMap = (input, context) => {
|
|
|
3101
3079
|
return acc;
|
|
3102
3080
|
}, {});
|
|
3103
3081
|
};
|
|
3104
|
-
const
|
|
3082
|
+
const se_AutoMerging = (input, context) => {
|
|
3105
3083
|
return {
|
|
3106
3084
|
...(input.ConflictResolution != null && {
|
|
3107
|
-
ConflictResolution:
|
|
3108
|
-
}),
|
|
3109
|
-
...(input.Consolidation != null && {
|
|
3110
|
-
Consolidation: serializeAws_restJson1Consolidation(input.Consolidation, context),
|
|
3085
|
+
ConflictResolution: se_ConflictResolution(input.ConflictResolution, context),
|
|
3111
3086
|
}),
|
|
3087
|
+
...(input.Consolidation != null && { Consolidation: se_Consolidation(input.Consolidation, context) }),
|
|
3112
3088
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3113
3089
|
...(input.MinAllowedConfidenceScoreForMerging != null && {
|
|
3114
3090
|
MinAllowedConfidenceScoreForMerging: (0, smithy_client_1.serializeFloat)(input.MinAllowedConfidenceScoreForMerging),
|
|
3115
3091
|
}),
|
|
3116
3092
|
};
|
|
3117
3093
|
};
|
|
3118
|
-
const
|
|
3094
|
+
const se_Batch = (input, context) => {
|
|
3119
3095
|
return {
|
|
3120
3096
|
...(input.EndTime != null && { EndTime: Math.round(input.EndTime.getTime() / 1000) }),
|
|
3121
3097
|
...(input.StartTime != null && { StartTime: Math.round(input.StartTime.getTime() / 1000) }),
|
|
3122
3098
|
};
|
|
3123
3099
|
};
|
|
3124
|
-
const
|
|
3100
|
+
const se_Batches = (input, context) => {
|
|
3125
3101
|
return input
|
|
3126
3102
|
.filter((e) => e != null)
|
|
3127
3103
|
.map((entry) => {
|
|
3128
|
-
return
|
|
3104
|
+
return se_Batch(entry, context);
|
|
3129
3105
|
});
|
|
3130
3106
|
};
|
|
3131
|
-
const
|
|
3107
|
+
const se_ConflictResolution = (input, context) => {
|
|
3132
3108
|
return {
|
|
3133
3109
|
...(input.ConflictResolvingModel != null && { ConflictResolvingModel: input.ConflictResolvingModel }),
|
|
3134
3110
|
...(input.SourceName != null && { SourceName: input.SourceName }),
|
|
3135
3111
|
};
|
|
3136
3112
|
};
|
|
3137
|
-
const
|
|
3113
|
+
const se_ConnectorOperator = (input, context) => {
|
|
3138
3114
|
return {
|
|
3139
3115
|
...(input.Marketo != null && { Marketo: input.Marketo }),
|
|
3140
3116
|
...(input.S3 != null && { S3: input.S3 }),
|
|
@@ -3143,44 +3119,40 @@ const serializeAws_restJson1ConnectorOperator = (input, context) => {
|
|
|
3143
3119
|
...(input.Zendesk != null && { Zendesk: input.Zendesk }),
|
|
3144
3120
|
};
|
|
3145
3121
|
};
|
|
3146
|
-
const
|
|
3122
|
+
const se_Consolidation = (input, context) => {
|
|
3147
3123
|
return {
|
|
3148
3124
|
...(input.MatchingAttributesList != null && {
|
|
3149
|
-
MatchingAttributesList:
|
|
3125
|
+
MatchingAttributesList: se_MatchingAttributesList(input.MatchingAttributesList, context),
|
|
3150
3126
|
}),
|
|
3151
3127
|
};
|
|
3152
3128
|
};
|
|
3153
|
-
const
|
|
3129
|
+
const se_ExportingConfig = (input, context) => {
|
|
3154
3130
|
return {
|
|
3155
|
-
...(input.S3Exporting != null && {
|
|
3156
|
-
S3Exporting: serializeAws_restJson1S3ExportingConfig(input.S3Exporting, context),
|
|
3157
|
-
}),
|
|
3131
|
+
...(input.S3Exporting != null && { S3Exporting: se_S3ExportingConfig(input.S3Exporting, context) }),
|
|
3158
3132
|
};
|
|
3159
3133
|
};
|
|
3160
|
-
const
|
|
3134
|
+
const se_FieldMap = (input, context) => {
|
|
3161
3135
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3162
3136
|
if (value === null) {
|
|
3163
3137
|
return acc;
|
|
3164
3138
|
}
|
|
3165
|
-
acc[key] =
|
|
3139
|
+
acc[key] = se_ObjectTypeField(value, context);
|
|
3166
3140
|
return acc;
|
|
3167
3141
|
}, {});
|
|
3168
3142
|
};
|
|
3169
|
-
const
|
|
3143
|
+
const se_FieldNameList = (input, context) => {
|
|
3170
3144
|
return input
|
|
3171
3145
|
.filter((e) => e != null)
|
|
3172
3146
|
.map((entry) => {
|
|
3173
3147
|
return entry;
|
|
3174
3148
|
});
|
|
3175
3149
|
};
|
|
3176
|
-
const
|
|
3150
|
+
const se_FieldSourceProfileIds = (input, context) => {
|
|
3177
3151
|
return {
|
|
3178
3152
|
...(input.AccountNumber != null && { AccountNumber: input.AccountNumber }),
|
|
3179
3153
|
...(input.AdditionalInformation != null && { AdditionalInformation: input.AdditionalInformation }),
|
|
3180
3154
|
...(input.Address != null && { Address: input.Address }),
|
|
3181
|
-
...(input.Attributes != null && {
|
|
3182
|
-
Attributes: serializeAws_restJson1AttributeSourceIdMap(input.Attributes, context),
|
|
3183
|
-
}),
|
|
3155
|
+
...(input.Attributes != null && { Attributes: se_AttributeSourceIdMap(input.Attributes, context) }),
|
|
3184
3156
|
...(input.BillingAddress != null && { BillingAddress: input.BillingAddress }),
|
|
3185
3157
|
...(input.BirthDate != null && { BirthDate: input.BirthDate }),
|
|
3186
3158
|
...(input.BusinessEmailAddress != null && { BusinessEmailAddress: input.BusinessEmailAddress }),
|
|
@@ -3200,105 +3172,99 @@ const serializeAws_restJson1FieldSourceProfileIds = (input, context) => {
|
|
|
3200
3172
|
...(input.ShippingAddress != null && { ShippingAddress: input.ShippingAddress }),
|
|
3201
3173
|
};
|
|
3202
3174
|
};
|
|
3203
|
-
const
|
|
3175
|
+
const se_FlowDefinition = (input, context) => {
|
|
3204
3176
|
return {
|
|
3205
3177
|
...(input.Description != null && { Description: input.Description }),
|
|
3206
3178
|
...(input.FlowName != null && { FlowName: input.FlowName }),
|
|
3207
3179
|
...(input.KmsArn != null && { KmsArn: input.KmsArn }),
|
|
3208
|
-
...(input.SourceFlowConfig != null && {
|
|
3209
|
-
|
|
3210
|
-
}),
|
|
3211
|
-
...(input.Tasks != null && { Tasks: serializeAws_restJson1Tasks(input.Tasks, context) }),
|
|
3212
|
-
...(input.TriggerConfig != null && {
|
|
3213
|
-
TriggerConfig: serializeAws_restJson1TriggerConfig(input.TriggerConfig, context),
|
|
3214
|
-
}),
|
|
3180
|
+
...(input.SourceFlowConfig != null && { SourceFlowConfig: se_SourceFlowConfig(input.SourceFlowConfig, context) }),
|
|
3181
|
+
...(input.Tasks != null && { Tasks: se_Tasks(input.Tasks, context) }),
|
|
3182
|
+
...(input.TriggerConfig != null && { TriggerConfig: se_TriggerConfig(input.TriggerConfig, context) }),
|
|
3215
3183
|
};
|
|
3216
3184
|
};
|
|
3217
|
-
const
|
|
3185
|
+
const se_IncrementalPullConfig = (input, context) => {
|
|
3218
3186
|
return {
|
|
3219
3187
|
...(input.DatetimeTypeFieldName != null && { DatetimeTypeFieldName: input.DatetimeTypeFieldName }),
|
|
3220
3188
|
};
|
|
3221
3189
|
};
|
|
3222
|
-
const
|
|
3190
|
+
const se_IntegrationConfig = (input, context) => {
|
|
3223
3191
|
return {
|
|
3224
3192
|
...(input.AppflowIntegration != null && {
|
|
3225
|
-
AppflowIntegration:
|
|
3193
|
+
AppflowIntegration: se_AppflowIntegration(input.AppflowIntegration, context),
|
|
3226
3194
|
}),
|
|
3227
3195
|
};
|
|
3228
3196
|
};
|
|
3229
|
-
const
|
|
3197
|
+
const se_JobSchedule = (input, context) => {
|
|
3230
3198
|
return {
|
|
3231
3199
|
...(input.DayOfTheWeek != null && { DayOfTheWeek: input.DayOfTheWeek }),
|
|
3232
3200
|
...(input.Time != null && { Time: input.Time }),
|
|
3233
3201
|
};
|
|
3234
3202
|
};
|
|
3235
|
-
const
|
|
3203
|
+
const se_KeyMap = (input, context) => {
|
|
3236
3204
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3237
3205
|
if (value === null) {
|
|
3238
3206
|
return acc;
|
|
3239
3207
|
}
|
|
3240
|
-
acc[key] =
|
|
3208
|
+
acc[key] = se_ObjectTypeKeyList(value, context);
|
|
3241
3209
|
return acc;
|
|
3242
3210
|
}, {});
|
|
3243
3211
|
};
|
|
3244
|
-
const
|
|
3212
|
+
const se_MarketoSourceProperties = (input, context) => {
|
|
3245
3213
|
return {
|
|
3246
3214
|
...(input.Object != null && { Object: input.Object }),
|
|
3247
3215
|
};
|
|
3248
3216
|
};
|
|
3249
|
-
const
|
|
3217
|
+
const se_MatchingAttributes = (input, context) => {
|
|
3250
3218
|
return input
|
|
3251
3219
|
.filter((e) => e != null)
|
|
3252
3220
|
.map((entry) => {
|
|
3253
3221
|
return entry;
|
|
3254
3222
|
});
|
|
3255
3223
|
};
|
|
3256
|
-
const
|
|
3224
|
+
const se_MatchingAttributesList = (input, context) => {
|
|
3257
3225
|
return input
|
|
3258
3226
|
.filter((e) => e != null)
|
|
3259
3227
|
.map((entry) => {
|
|
3260
|
-
return
|
|
3228
|
+
return se_MatchingAttributes(entry, context);
|
|
3261
3229
|
});
|
|
3262
3230
|
};
|
|
3263
|
-
const
|
|
3231
|
+
const se_MatchingRequest = (input, context) => {
|
|
3264
3232
|
return {
|
|
3265
|
-
...(input.AutoMerging != null && { AutoMerging:
|
|
3233
|
+
...(input.AutoMerging != null && { AutoMerging: se_AutoMerging(input.AutoMerging, context) }),
|
|
3266
3234
|
...(input.Enabled != null && { Enabled: input.Enabled }),
|
|
3267
|
-
...(input.ExportingConfig != null && {
|
|
3268
|
-
|
|
3269
|
-
}),
|
|
3270
|
-
...(input.JobSchedule != null && { JobSchedule: serializeAws_restJson1JobSchedule(input.JobSchedule, context) }),
|
|
3235
|
+
...(input.ExportingConfig != null && { ExportingConfig: se_ExportingConfig(input.ExportingConfig, context) }),
|
|
3236
|
+
...(input.JobSchedule != null && { JobSchedule: se_JobSchedule(input.JobSchedule, context) }),
|
|
3271
3237
|
};
|
|
3272
3238
|
};
|
|
3273
|
-
const
|
|
3239
|
+
const se_ObjectFilter = (input, context) => {
|
|
3274
3240
|
return {
|
|
3275
3241
|
...(input.KeyName != null && { KeyName: input.KeyName }),
|
|
3276
|
-
...(input.Values != null && { Values:
|
|
3242
|
+
...(input.Values != null && { Values: se_requestValueList(input.Values, context) }),
|
|
3277
3243
|
};
|
|
3278
3244
|
};
|
|
3279
|
-
const
|
|
3245
|
+
const se_ObjectTypeField = (input, context) => {
|
|
3280
3246
|
return {
|
|
3281
3247
|
...(input.ContentType != null && { ContentType: input.ContentType }),
|
|
3282
3248
|
...(input.Source != null && { Source: input.Source }),
|
|
3283
3249
|
...(input.Target != null && { Target: input.Target }),
|
|
3284
3250
|
};
|
|
3285
3251
|
};
|
|
3286
|
-
const
|
|
3252
|
+
const se_ObjectTypeKey = (input, context) => {
|
|
3287
3253
|
return {
|
|
3288
|
-
...(input.FieldNames != null && { FieldNames:
|
|
3254
|
+
...(input.FieldNames != null && { FieldNames: se_FieldNameList(input.FieldNames, context) }),
|
|
3289
3255
|
...(input.StandardIdentifiers != null && {
|
|
3290
|
-
StandardIdentifiers:
|
|
3256
|
+
StandardIdentifiers: se_StandardIdentifierList(input.StandardIdentifiers, context),
|
|
3291
3257
|
}),
|
|
3292
3258
|
};
|
|
3293
3259
|
};
|
|
3294
|
-
const
|
|
3260
|
+
const se_ObjectTypeKeyList = (input, context) => {
|
|
3295
3261
|
return input
|
|
3296
3262
|
.filter((e) => e != null)
|
|
3297
3263
|
.map((entry) => {
|
|
3298
|
-
return
|
|
3264
|
+
return se_ObjectTypeKey(entry, context);
|
|
3299
3265
|
});
|
|
3300
3266
|
};
|
|
3301
|
-
const
|
|
3267
|
+
const se_ObjectTypeNames = (input, context) => {
|
|
3302
3268
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3303
3269
|
if (value === null) {
|
|
3304
3270
|
return acc;
|
|
@@ -3307,40 +3273,40 @@ const serializeAws_restJson1ObjectTypeNames = (input, context) => {
|
|
|
3307
3273
|
return acc;
|
|
3308
3274
|
}, {});
|
|
3309
3275
|
};
|
|
3310
|
-
const
|
|
3276
|
+
const se_ProfileIdToBeMergedList = (input, context) => {
|
|
3311
3277
|
return input
|
|
3312
3278
|
.filter((e) => e != null)
|
|
3313
3279
|
.map((entry) => {
|
|
3314
3280
|
return entry;
|
|
3315
3281
|
});
|
|
3316
3282
|
};
|
|
3317
|
-
const
|
|
3283
|
+
const se_requestValueList = (input, context) => {
|
|
3318
3284
|
return input
|
|
3319
3285
|
.filter((e) => e != null)
|
|
3320
3286
|
.map((entry) => {
|
|
3321
3287
|
return entry;
|
|
3322
3288
|
});
|
|
3323
3289
|
};
|
|
3324
|
-
const
|
|
3290
|
+
const se_S3ExportingConfig = (input, context) => {
|
|
3325
3291
|
return {
|
|
3326
3292
|
...(input.S3BucketName != null && { S3BucketName: input.S3BucketName }),
|
|
3327
3293
|
...(input.S3KeyName != null && { S3KeyName: input.S3KeyName }),
|
|
3328
3294
|
};
|
|
3329
3295
|
};
|
|
3330
|
-
const
|
|
3296
|
+
const se_S3SourceProperties = (input, context) => {
|
|
3331
3297
|
return {
|
|
3332
3298
|
...(input.BucketName != null && { BucketName: input.BucketName }),
|
|
3333
3299
|
...(input.BucketPrefix != null && { BucketPrefix: input.BucketPrefix }),
|
|
3334
3300
|
};
|
|
3335
3301
|
};
|
|
3336
|
-
const
|
|
3302
|
+
const se_SalesforceSourceProperties = (input, context) => {
|
|
3337
3303
|
return {
|
|
3338
3304
|
...(input.EnableDynamicFieldUpdate != null && { EnableDynamicFieldUpdate: input.EnableDynamicFieldUpdate }),
|
|
3339
3305
|
...(input.IncludeDeletedRecords != null && { IncludeDeletedRecords: input.IncludeDeletedRecords }),
|
|
3340
3306
|
...(input.Object != null && { Object: input.Object }),
|
|
3341
3307
|
};
|
|
3342
3308
|
};
|
|
3343
|
-
const
|
|
3309
|
+
const se_ScheduledTriggerProperties = (input, context) => {
|
|
3344
3310
|
return {
|
|
3345
3311
|
...(input.DataPullMode != null && { DataPullMode: input.DataPullMode }),
|
|
3346
3312
|
...(input.FirstExecutionFrom != null && {
|
|
@@ -3353,51 +3319,47 @@ const serializeAws_restJson1ScheduledTriggerProperties = (input, context) => {
|
|
|
3353
3319
|
...(input.Timezone != null && { Timezone: input.Timezone }),
|
|
3354
3320
|
};
|
|
3355
3321
|
};
|
|
3356
|
-
const
|
|
3322
|
+
const se_ServiceNowSourceProperties = (input, context) => {
|
|
3357
3323
|
return {
|
|
3358
3324
|
...(input.Object != null && { Object: input.Object }),
|
|
3359
3325
|
};
|
|
3360
3326
|
};
|
|
3361
|
-
const
|
|
3327
|
+
const se_SourceConnectorProperties = (input, context) => {
|
|
3362
3328
|
return {
|
|
3363
|
-
...(input.Marketo != null && { Marketo:
|
|
3364
|
-
...(input.S3 != null && { S3:
|
|
3365
|
-
...(input.Salesforce != null && {
|
|
3366
|
-
|
|
3367
|
-
}),
|
|
3368
|
-
...(input.ServiceNow != null && {
|
|
3369
|
-
ServiceNow: serializeAws_restJson1ServiceNowSourceProperties(input.ServiceNow, context),
|
|
3370
|
-
}),
|
|
3371
|
-
...(input.Zendesk != null && { Zendesk: serializeAws_restJson1ZendeskSourceProperties(input.Zendesk, context) }),
|
|
3329
|
+
...(input.Marketo != null && { Marketo: se_MarketoSourceProperties(input.Marketo, context) }),
|
|
3330
|
+
...(input.S3 != null && { S3: se_S3SourceProperties(input.S3, context) }),
|
|
3331
|
+
...(input.Salesforce != null && { Salesforce: se_SalesforceSourceProperties(input.Salesforce, context) }),
|
|
3332
|
+
...(input.ServiceNow != null && { ServiceNow: se_ServiceNowSourceProperties(input.ServiceNow, context) }),
|
|
3333
|
+
...(input.Zendesk != null && { Zendesk: se_ZendeskSourceProperties(input.Zendesk, context) }),
|
|
3372
3334
|
};
|
|
3373
3335
|
};
|
|
3374
|
-
const
|
|
3336
|
+
const se_SourceFields = (input, context) => {
|
|
3375
3337
|
return input
|
|
3376
3338
|
.filter((e) => e != null)
|
|
3377
3339
|
.map((entry) => {
|
|
3378
3340
|
return entry;
|
|
3379
3341
|
});
|
|
3380
3342
|
};
|
|
3381
|
-
const
|
|
3343
|
+
const se_SourceFlowConfig = (input, context) => {
|
|
3382
3344
|
return {
|
|
3383
3345
|
...(input.ConnectorProfileName != null && { ConnectorProfileName: input.ConnectorProfileName }),
|
|
3384
3346
|
...(input.ConnectorType != null && { ConnectorType: input.ConnectorType }),
|
|
3385
3347
|
...(input.IncrementalPullConfig != null && {
|
|
3386
|
-
IncrementalPullConfig:
|
|
3348
|
+
IncrementalPullConfig: se_IncrementalPullConfig(input.IncrementalPullConfig, context),
|
|
3387
3349
|
}),
|
|
3388
3350
|
...(input.SourceConnectorProperties != null && {
|
|
3389
|
-
SourceConnectorProperties:
|
|
3351
|
+
SourceConnectorProperties: se_SourceConnectorProperties(input.SourceConnectorProperties, context),
|
|
3390
3352
|
}),
|
|
3391
3353
|
};
|
|
3392
3354
|
};
|
|
3393
|
-
const
|
|
3355
|
+
const se_StandardIdentifierList = (input, context) => {
|
|
3394
3356
|
return input
|
|
3395
3357
|
.filter((e) => e != null)
|
|
3396
3358
|
.map((entry) => {
|
|
3397
3359
|
return entry;
|
|
3398
3360
|
});
|
|
3399
3361
|
};
|
|
3400
|
-
const
|
|
3362
|
+
const se_TagMap = (input, context) => {
|
|
3401
3363
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3402
3364
|
if (value === null) {
|
|
3403
3365
|
return acc;
|
|
@@ -3406,22 +3368,18 @@ const serializeAws_restJson1TagMap = (input, context) => {
|
|
|
3406
3368
|
return acc;
|
|
3407
3369
|
}, {});
|
|
3408
3370
|
};
|
|
3409
|
-
const
|
|
3371
|
+
const se_Task = (input, context) => {
|
|
3410
3372
|
return {
|
|
3411
3373
|
...(input.ConnectorOperator != null && {
|
|
3412
|
-
ConnectorOperator:
|
|
3374
|
+
ConnectorOperator: se_ConnectorOperator(input.ConnectorOperator, context),
|
|
3413
3375
|
}),
|
|
3414
3376
|
...(input.DestinationField != null && { DestinationField: input.DestinationField }),
|
|
3415
|
-
...(input.SourceFields != null && {
|
|
3416
|
-
|
|
3417
|
-
}),
|
|
3418
|
-
...(input.TaskProperties != null && {
|
|
3419
|
-
TaskProperties: serializeAws_restJson1TaskPropertiesMap(input.TaskProperties, context),
|
|
3420
|
-
}),
|
|
3377
|
+
...(input.SourceFields != null && { SourceFields: se_SourceFields(input.SourceFields, context) }),
|
|
3378
|
+
...(input.TaskProperties != null && { TaskProperties: se_TaskPropertiesMap(input.TaskProperties, context) }),
|
|
3421
3379
|
...(input.TaskType != null && { TaskType: input.TaskType }),
|
|
3422
3380
|
};
|
|
3423
3381
|
};
|
|
3424
|
-
const
|
|
3382
|
+
const se_TaskPropertiesMap = (input, context) => {
|
|
3425
3383
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3426
3384
|
if (value === null) {
|
|
3427
3385
|
return acc;
|
|
@@ -3430,29 +3388,27 @@ const serializeAws_restJson1TaskPropertiesMap = (input, context) => {
|
|
|
3430
3388
|
return acc;
|
|
3431
3389
|
}, {});
|
|
3432
3390
|
};
|
|
3433
|
-
const
|
|
3391
|
+
const se_Tasks = (input, context) => {
|
|
3434
3392
|
return input
|
|
3435
3393
|
.filter((e) => e != null)
|
|
3436
3394
|
.map((entry) => {
|
|
3437
|
-
return
|
|
3395
|
+
return se_Task(entry, context);
|
|
3438
3396
|
});
|
|
3439
3397
|
};
|
|
3440
|
-
const
|
|
3398
|
+
const se_TriggerConfig = (input, context) => {
|
|
3441
3399
|
return {
|
|
3442
3400
|
...(input.TriggerProperties != null && {
|
|
3443
|
-
TriggerProperties:
|
|
3401
|
+
TriggerProperties: se_TriggerProperties(input.TriggerProperties, context),
|
|
3444
3402
|
}),
|
|
3445
3403
|
...(input.TriggerType != null && { TriggerType: input.TriggerType }),
|
|
3446
3404
|
};
|
|
3447
3405
|
};
|
|
3448
|
-
const
|
|
3406
|
+
const se_TriggerProperties = (input, context) => {
|
|
3449
3407
|
return {
|
|
3450
|
-
...(input.Scheduled != null && {
|
|
3451
|
-
Scheduled: serializeAws_restJson1ScheduledTriggerProperties(input.Scheduled, context),
|
|
3452
|
-
}),
|
|
3408
|
+
...(input.Scheduled != null && { Scheduled: se_ScheduledTriggerProperties(input.Scheduled, context) }),
|
|
3453
3409
|
};
|
|
3454
3410
|
};
|
|
3455
|
-
const
|
|
3411
|
+
const se_UpdateAddress = (input, context) => {
|
|
3456
3412
|
return {
|
|
3457
3413
|
...(input.Address1 != null && { Address1: input.Address1 }),
|
|
3458
3414
|
...(input.Address2 != null && { Address2: input.Address2 }),
|
|
@@ -3466,7 +3422,7 @@ const serializeAws_restJson1UpdateAddress = (input, context) => {
|
|
|
3466
3422
|
...(input.State != null && { State: input.State }),
|
|
3467
3423
|
};
|
|
3468
3424
|
};
|
|
3469
|
-
const
|
|
3425
|
+
const se_UpdateAttributes = (input, context) => {
|
|
3470
3426
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
3471
3427
|
if (value === null) {
|
|
3472
3428
|
return acc;
|
|
@@ -3475,12 +3431,12 @@ const serializeAws_restJson1UpdateAttributes = (input, context) => {
|
|
|
3475
3431
|
return acc;
|
|
3476
3432
|
}, {});
|
|
3477
3433
|
};
|
|
3478
|
-
const
|
|
3434
|
+
const se_ZendeskSourceProperties = (input, context) => {
|
|
3479
3435
|
return {
|
|
3480
3436
|
...(input.Object != null && { Object: input.Object }),
|
|
3481
3437
|
};
|
|
3482
3438
|
};
|
|
3483
|
-
const
|
|
3439
|
+
const de_Address = (output, context) => {
|
|
3484
3440
|
return {
|
|
3485
3441
|
Address1: (0, smithy_client_1.expectString)(output.Address1),
|
|
3486
3442
|
Address2: (0, smithy_client_1.expectString)(output.Address2),
|
|
@@ -3494,21 +3450,21 @@ const deserializeAws_restJson1Address = (output, context) => {
|
|
|
3494
3450
|
State: (0, smithy_client_1.expectString)(output.State),
|
|
3495
3451
|
};
|
|
3496
3452
|
};
|
|
3497
|
-
const
|
|
3453
|
+
const de_AppflowIntegrationWorkflowAttributes = (output, context) => {
|
|
3498
3454
|
return {
|
|
3499
3455
|
ConnectorProfileName: (0, smithy_client_1.expectString)(output.ConnectorProfileName),
|
|
3500
3456
|
RoleArn: (0, smithy_client_1.expectString)(output.RoleArn),
|
|
3501
3457
|
SourceConnectorType: (0, smithy_client_1.expectString)(output.SourceConnectorType),
|
|
3502
3458
|
};
|
|
3503
3459
|
};
|
|
3504
|
-
const
|
|
3460
|
+
const de_AppflowIntegrationWorkflowMetrics = (output, context) => {
|
|
3505
3461
|
return {
|
|
3506
3462
|
RecordsProcessed: (0, smithy_client_1.expectLong)(output.RecordsProcessed),
|
|
3507
3463
|
StepsCompleted: (0, smithy_client_1.expectLong)(output.StepsCompleted),
|
|
3508
3464
|
TotalSteps: (0, smithy_client_1.expectLong)(output.TotalSteps),
|
|
3509
3465
|
};
|
|
3510
3466
|
};
|
|
3511
|
-
const
|
|
3467
|
+
const de_AppflowIntegrationWorkflowStep = (output, context) => {
|
|
3512
3468
|
return {
|
|
3513
3469
|
BatchRecordsEndTime: (0, smithy_client_1.expectString)(output.BatchRecordsEndTime),
|
|
3514
3470
|
BatchRecordsStartTime: (0, smithy_client_1.expectString)(output.BatchRecordsStartTime),
|
|
@@ -3522,7 +3478,7 @@ const deserializeAws_restJson1AppflowIntegrationWorkflowStep = (output, context)
|
|
|
3522
3478
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3523
3479
|
};
|
|
3524
3480
|
};
|
|
3525
|
-
const
|
|
3481
|
+
const de_Attributes = (output, context) => {
|
|
3526
3482
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3527
3483
|
if (value === null) {
|
|
3528
3484
|
return acc;
|
|
@@ -3531,41 +3487,39 @@ const deserializeAws_restJson1Attributes = (output, context) => {
|
|
|
3531
3487
|
return acc;
|
|
3532
3488
|
}, {});
|
|
3533
3489
|
};
|
|
3534
|
-
const
|
|
3490
|
+
const de_AutoMerging = (output, context) => {
|
|
3535
3491
|
return {
|
|
3536
|
-
ConflictResolution: output.ConflictResolution != null
|
|
3537
|
-
|
|
3538
|
-
: undefined,
|
|
3539
|
-
Consolidation: output.Consolidation != null ? deserializeAws_restJson1Consolidation(output.Consolidation, context) : undefined,
|
|
3492
|
+
ConflictResolution: output.ConflictResolution != null ? de_ConflictResolution(output.ConflictResolution, context) : undefined,
|
|
3493
|
+
Consolidation: output.Consolidation != null ? de_Consolidation(output.Consolidation, context) : undefined,
|
|
3540
3494
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3541
3495
|
MinAllowedConfidenceScoreForMerging: (0, smithy_client_1.limitedParseDouble)(output.MinAllowedConfidenceScoreForMerging),
|
|
3542
3496
|
};
|
|
3543
3497
|
};
|
|
3544
|
-
const
|
|
3498
|
+
const de_ConflictResolution = (output, context) => {
|
|
3545
3499
|
return {
|
|
3546
3500
|
ConflictResolvingModel: (0, smithy_client_1.expectString)(output.ConflictResolvingModel),
|
|
3547
3501
|
SourceName: (0, smithy_client_1.expectString)(output.SourceName),
|
|
3548
3502
|
};
|
|
3549
3503
|
};
|
|
3550
|
-
const
|
|
3504
|
+
const de_Consolidation = (output, context) => {
|
|
3551
3505
|
return {
|
|
3552
3506
|
MatchingAttributesList: output.MatchingAttributesList != null
|
|
3553
|
-
?
|
|
3507
|
+
? de_MatchingAttributesList(output.MatchingAttributesList, context)
|
|
3554
3508
|
: undefined,
|
|
3555
3509
|
};
|
|
3556
3510
|
};
|
|
3557
|
-
const
|
|
3511
|
+
const de_DomainList = (output, context) => {
|
|
3558
3512
|
const retVal = (output || [])
|
|
3559
3513
|
.filter((e) => e != null)
|
|
3560
3514
|
.map((entry) => {
|
|
3561
3515
|
if (entry === null) {
|
|
3562
3516
|
return null;
|
|
3563
3517
|
}
|
|
3564
|
-
return
|
|
3518
|
+
return de_ListDomainItem(entry, context);
|
|
3565
3519
|
});
|
|
3566
3520
|
return retVal;
|
|
3567
3521
|
};
|
|
3568
|
-
const
|
|
3522
|
+
const de_DomainStats = (output, context) => {
|
|
3569
3523
|
return {
|
|
3570
3524
|
MeteringProfileCount: (0, smithy_client_1.expectLong)(output.MeteringProfileCount),
|
|
3571
3525
|
ObjectCount: (0, smithy_client_1.expectLong)(output.ObjectCount),
|
|
@@ -3573,26 +3527,26 @@ const deserializeAws_restJson1DomainStats = (output, context) => {
|
|
|
3573
3527
|
TotalSize: (0, smithy_client_1.expectLong)(output.TotalSize),
|
|
3574
3528
|
};
|
|
3575
3529
|
};
|
|
3576
|
-
const
|
|
3530
|
+
const de_ExportingConfig = (output, context) => {
|
|
3577
3531
|
return {
|
|
3578
|
-
S3Exporting: output.S3Exporting != null ?
|
|
3532
|
+
S3Exporting: output.S3Exporting != null ? de_S3ExportingConfig(output.S3Exporting, context) : undefined,
|
|
3579
3533
|
};
|
|
3580
3534
|
};
|
|
3581
|
-
const
|
|
3535
|
+
const de_ExportingLocation = (output, context) => {
|
|
3582
3536
|
return {
|
|
3583
|
-
S3Exporting: output.S3Exporting != null ?
|
|
3537
|
+
S3Exporting: output.S3Exporting != null ? de_S3ExportingLocation(output.S3Exporting, context) : undefined,
|
|
3584
3538
|
};
|
|
3585
3539
|
};
|
|
3586
|
-
const
|
|
3540
|
+
const de_FieldMap = (output, context) => {
|
|
3587
3541
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3588
3542
|
if (value === null) {
|
|
3589
3543
|
return acc;
|
|
3590
3544
|
}
|
|
3591
|
-
acc[key] =
|
|
3545
|
+
acc[key] = de_ObjectTypeField(value, context);
|
|
3592
3546
|
return acc;
|
|
3593
3547
|
}, {});
|
|
3594
3548
|
};
|
|
3595
|
-
const
|
|
3549
|
+
const de_FieldNameList = (output, context) => {
|
|
3596
3550
|
const retVal = (output || [])
|
|
3597
3551
|
.filter((e) => e != null)
|
|
3598
3552
|
.map((entry) => {
|
|
@@ -3603,94 +3557,92 @@ const deserializeAws_restJson1FieldNameList = (output, context) => {
|
|
|
3603
3557
|
});
|
|
3604
3558
|
return retVal;
|
|
3605
3559
|
};
|
|
3606
|
-
const
|
|
3560
|
+
const de_FoundByKeyValue = (output, context) => {
|
|
3607
3561
|
return {
|
|
3608
3562
|
KeyName: (0, smithy_client_1.expectString)(output.KeyName),
|
|
3609
|
-
Values: output.Values != null ?
|
|
3563
|
+
Values: output.Values != null ? de_requestValueList(output.Values, context) : undefined,
|
|
3610
3564
|
};
|
|
3611
3565
|
};
|
|
3612
|
-
const
|
|
3566
|
+
const de_foundByList = (output, context) => {
|
|
3613
3567
|
const retVal = (output || [])
|
|
3614
3568
|
.filter((e) => e != null)
|
|
3615
3569
|
.map((entry) => {
|
|
3616
3570
|
if (entry === null) {
|
|
3617
3571
|
return null;
|
|
3618
3572
|
}
|
|
3619
|
-
return
|
|
3573
|
+
return de_FoundByKeyValue(entry, context);
|
|
3620
3574
|
});
|
|
3621
3575
|
return retVal;
|
|
3622
3576
|
};
|
|
3623
|
-
const
|
|
3577
|
+
const de_IdentityResolutionJob = (output, context) => {
|
|
3624
3578
|
return {
|
|
3625
3579
|
DomainName: (0, smithy_client_1.expectString)(output.DomainName),
|
|
3626
|
-
ExportingLocation: output.ExportingLocation != null
|
|
3627
|
-
? deserializeAws_restJson1ExportingLocation(output.ExportingLocation, context)
|
|
3628
|
-
: undefined,
|
|
3580
|
+
ExportingLocation: output.ExportingLocation != null ? de_ExportingLocation(output.ExportingLocation, context) : undefined,
|
|
3629
3581
|
JobEndTime: output.JobEndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.JobEndTime))) : undefined,
|
|
3630
3582
|
JobId: (0, smithy_client_1.expectString)(output.JobId),
|
|
3631
3583
|
JobStartTime: output.JobStartTime != null
|
|
3632
3584
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.JobStartTime)))
|
|
3633
3585
|
: undefined,
|
|
3634
|
-
JobStats: output.JobStats != null ?
|
|
3586
|
+
JobStats: output.JobStats != null ? de_JobStats(output.JobStats, context) : undefined,
|
|
3635
3587
|
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
3636
3588
|
Status: (0, smithy_client_1.expectString)(output.Status),
|
|
3637
3589
|
};
|
|
3638
3590
|
};
|
|
3639
|
-
const
|
|
3591
|
+
const de_IdentityResolutionJobsList = (output, context) => {
|
|
3640
3592
|
const retVal = (output || [])
|
|
3641
3593
|
.filter((e) => e != null)
|
|
3642
3594
|
.map((entry) => {
|
|
3643
3595
|
if (entry === null) {
|
|
3644
3596
|
return null;
|
|
3645
3597
|
}
|
|
3646
|
-
return
|
|
3598
|
+
return de_IdentityResolutionJob(entry, context);
|
|
3647
3599
|
});
|
|
3648
3600
|
return retVal;
|
|
3649
3601
|
};
|
|
3650
|
-
const
|
|
3602
|
+
const de_IntegrationList = (output, context) => {
|
|
3651
3603
|
const retVal = (output || [])
|
|
3652
3604
|
.filter((e) => e != null)
|
|
3653
3605
|
.map((entry) => {
|
|
3654
3606
|
if (entry === null) {
|
|
3655
3607
|
return null;
|
|
3656
3608
|
}
|
|
3657
|
-
return
|
|
3609
|
+
return de_ListIntegrationItem(entry, context);
|
|
3658
3610
|
});
|
|
3659
3611
|
return retVal;
|
|
3660
3612
|
};
|
|
3661
|
-
const
|
|
3613
|
+
const de_JobSchedule = (output, context) => {
|
|
3662
3614
|
return {
|
|
3663
3615
|
DayOfTheWeek: (0, smithy_client_1.expectString)(output.DayOfTheWeek),
|
|
3664
3616
|
Time: (0, smithy_client_1.expectString)(output.Time),
|
|
3665
3617
|
};
|
|
3666
3618
|
};
|
|
3667
|
-
const
|
|
3619
|
+
const de_JobStats = (output, context) => {
|
|
3668
3620
|
return {
|
|
3669
3621
|
NumberOfMatchesFound: (0, smithy_client_1.expectLong)(output.NumberOfMatchesFound),
|
|
3670
3622
|
NumberOfMergesDone: (0, smithy_client_1.expectLong)(output.NumberOfMergesDone),
|
|
3671
3623
|
NumberOfProfilesReviewed: (0, smithy_client_1.expectLong)(output.NumberOfProfilesReviewed),
|
|
3672
3624
|
};
|
|
3673
3625
|
};
|
|
3674
|
-
const
|
|
3626
|
+
const de_KeyMap = (output, context) => {
|
|
3675
3627
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3676
3628
|
if (value === null) {
|
|
3677
3629
|
return acc;
|
|
3678
3630
|
}
|
|
3679
|
-
acc[key] =
|
|
3631
|
+
acc[key] = de_ObjectTypeKeyList(value, context);
|
|
3680
3632
|
return acc;
|
|
3681
3633
|
}, {});
|
|
3682
3634
|
};
|
|
3683
|
-
const
|
|
3635
|
+
const de_ListDomainItem = (output, context) => {
|
|
3684
3636
|
return {
|
|
3685
3637
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
3686
3638
|
DomainName: (0, smithy_client_1.expectString)(output.DomainName),
|
|
3687
3639
|
LastUpdatedAt: output.LastUpdatedAt != null
|
|
3688
3640
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
|
|
3689
3641
|
: undefined,
|
|
3690
|
-
Tags: output.Tags != null ?
|
|
3642
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
3691
3643
|
};
|
|
3692
3644
|
};
|
|
3693
|
-
const
|
|
3645
|
+
const de_ListIntegrationItem = (output, context) => {
|
|
3694
3646
|
return {
|
|
3695
3647
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
3696
3648
|
DomainName: (0, smithy_client_1.expectString)(output.DomainName),
|
|
@@ -3699,22 +3651,20 @@ const deserializeAws_restJson1ListIntegrationItem = (output, context) => {
|
|
|
3699
3651
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
|
|
3700
3652
|
: undefined,
|
|
3701
3653
|
ObjectTypeName: (0, smithy_client_1.expectString)(output.ObjectTypeName),
|
|
3702
|
-
ObjectTypeNames: output.ObjectTypeNames != null
|
|
3703
|
-
|
|
3704
|
-
: undefined,
|
|
3705
|
-
Tags: output.Tags != null ? deserializeAws_restJson1TagMap(output.Tags, context) : undefined,
|
|
3654
|
+
ObjectTypeNames: output.ObjectTypeNames != null ? de_ObjectTypeNames(output.ObjectTypeNames, context) : undefined,
|
|
3655
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
3706
3656
|
Uri: (0, smithy_client_1.expectString)(output.Uri),
|
|
3707
3657
|
WorkflowId: (0, smithy_client_1.expectString)(output.WorkflowId),
|
|
3708
3658
|
};
|
|
3709
3659
|
};
|
|
3710
|
-
const
|
|
3660
|
+
const de_ListProfileObjectsItem = (output, context) => {
|
|
3711
3661
|
return {
|
|
3712
3662
|
Object: (0, smithy_client_1.expectString)(output.Object),
|
|
3713
3663
|
ObjectTypeName: (0, smithy_client_1.expectString)(output.ObjectTypeName),
|
|
3714
3664
|
ProfileObjectUniqueKey: (0, smithy_client_1.expectString)(output.ProfileObjectUniqueKey),
|
|
3715
3665
|
};
|
|
3716
3666
|
};
|
|
3717
|
-
const
|
|
3667
|
+
const de_ListProfileObjectTypeItem = (output, context) => {
|
|
3718
3668
|
return {
|
|
3719
3669
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
3720
3670
|
Description: (0, smithy_client_1.expectString)(output.Description),
|
|
@@ -3722,17 +3672,17 @@ const deserializeAws_restJson1ListProfileObjectTypeItem = (output, context) => {
|
|
|
3722
3672
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastUpdatedAt)))
|
|
3723
3673
|
: undefined,
|
|
3724
3674
|
ObjectTypeName: (0, smithy_client_1.expectString)(output.ObjectTypeName),
|
|
3725
|
-
Tags: output.Tags != null ?
|
|
3675
|
+
Tags: output.Tags != null ? de_TagMap(output.Tags, context) : undefined,
|
|
3726
3676
|
};
|
|
3727
3677
|
};
|
|
3728
|
-
const
|
|
3678
|
+
const de_ListProfileObjectTypeTemplateItem = (output, context) => {
|
|
3729
3679
|
return {
|
|
3730
3680
|
SourceName: (0, smithy_client_1.expectString)(output.SourceName),
|
|
3731
3681
|
SourceObject: (0, smithy_client_1.expectString)(output.SourceObject),
|
|
3732
3682
|
TemplateId: (0, smithy_client_1.expectString)(output.TemplateId),
|
|
3733
3683
|
};
|
|
3734
3684
|
};
|
|
3735
|
-
const
|
|
3685
|
+
const de_ListWorkflowsItem = (output, context) => {
|
|
3736
3686
|
return {
|
|
3737
3687
|
CreatedAt: output.CreatedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.CreatedAt))) : undefined,
|
|
3738
3688
|
LastUpdatedAt: output.LastUpdatedAt != null
|
|
@@ -3744,18 +3694,18 @@ const deserializeAws_restJson1ListWorkflowsItem = (output, context) => {
|
|
|
3744
3694
|
WorkflowType: (0, smithy_client_1.expectString)(output.WorkflowType),
|
|
3745
3695
|
};
|
|
3746
3696
|
};
|
|
3747
|
-
const
|
|
3697
|
+
const de_MatchesList = (output, context) => {
|
|
3748
3698
|
const retVal = (output || [])
|
|
3749
3699
|
.filter((e) => e != null)
|
|
3750
3700
|
.map((entry) => {
|
|
3751
3701
|
if (entry === null) {
|
|
3752
3702
|
return null;
|
|
3753
3703
|
}
|
|
3754
|
-
return
|
|
3704
|
+
return de_MatchItem(entry, context);
|
|
3755
3705
|
});
|
|
3756
3706
|
return retVal;
|
|
3757
3707
|
};
|
|
3758
|
-
const
|
|
3708
|
+
const de_MatchingAttributes = (output, context) => {
|
|
3759
3709
|
const retVal = (output || [])
|
|
3760
3710
|
.filter((e) => e != null)
|
|
3761
3711
|
.map((entry) => {
|
|
@@ -3766,61 +3716,57 @@ const deserializeAws_restJson1MatchingAttributes = (output, context) => {
|
|
|
3766
3716
|
});
|
|
3767
3717
|
return retVal;
|
|
3768
3718
|
};
|
|
3769
|
-
const
|
|
3719
|
+
const de_MatchingAttributesList = (output, context) => {
|
|
3770
3720
|
const retVal = (output || [])
|
|
3771
3721
|
.filter((e) => e != null)
|
|
3772
3722
|
.map((entry) => {
|
|
3773
3723
|
if (entry === null) {
|
|
3774
3724
|
return null;
|
|
3775
3725
|
}
|
|
3776
|
-
return
|
|
3726
|
+
return de_MatchingAttributes(entry, context);
|
|
3777
3727
|
});
|
|
3778
3728
|
return retVal;
|
|
3779
3729
|
};
|
|
3780
|
-
const
|
|
3730
|
+
const de_MatchingResponse = (output, context) => {
|
|
3781
3731
|
return {
|
|
3782
|
-
AutoMerging: output.AutoMerging != null ?
|
|
3732
|
+
AutoMerging: output.AutoMerging != null ? de_AutoMerging(output.AutoMerging, context) : undefined,
|
|
3783
3733
|
Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
|
|
3784
|
-
ExportingConfig: output.ExportingConfig != null
|
|
3785
|
-
|
|
3786
|
-
: undefined,
|
|
3787
|
-
JobSchedule: output.JobSchedule != null ? deserializeAws_restJson1JobSchedule(output.JobSchedule, context) : undefined,
|
|
3734
|
+
ExportingConfig: output.ExportingConfig != null ? de_ExportingConfig(output.ExportingConfig, context) : undefined,
|
|
3735
|
+
JobSchedule: output.JobSchedule != null ? de_JobSchedule(output.JobSchedule, context) : undefined,
|
|
3788
3736
|
};
|
|
3789
3737
|
};
|
|
3790
|
-
const
|
|
3738
|
+
const de_MatchItem = (output, context) => {
|
|
3791
3739
|
return {
|
|
3792
3740
|
ConfidenceScore: (0, smithy_client_1.limitedParseDouble)(output.ConfidenceScore),
|
|
3793
3741
|
MatchId: (0, smithy_client_1.expectString)(output.MatchId),
|
|
3794
|
-
ProfileIds: output.ProfileIds != null ?
|
|
3742
|
+
ProfileIds: output.ProfileIds != null ? de_ProfileIdList(output.ProfileIds, context) : undefined,
|
|
3795
3743
|
};
|
|
3796
3744
|
};
|
|
3797
|
-
const
|
|
3745
|
+
const de_ObjectTypeField = (output, context) => {
|
|
3798
3746
|
return {
|
|
3799
3747
|
ContentType: (0, smithy_client_1.expectString)(output.ContentType),
|
|
3800
3748
|
Source: (0, smithy_client_1.expectString)(output.Source),
|
|
3801
3749
|
Target: (0, smithy_client_1.expectString)(output.Target),
|
|
3802
3750
|
};
|
|
3803
3751
|
};
|
|
3804
|
-
const
|
|
3752
|
+
const de_ObjectTypeKey = (output, context) => {
|
|
3805
3753
|
return {
|
|
3806
|
-
FieldNames: output.FieldNames != null ?
|
|
3807
|
-
StandardIdentifiers: output.StandardIdentifiers != null
|
|
3808
|
-
? deserializeAws_restJson1StandardIdentifierList(output.StandardIdentifiers, context)
|
|
3809
|
-
: undefined,
|
|
3754
|
+
FieldNames: output.FieldNames != null ? de_FieldNameList(output.FieldNames, context) : undefined,
|
|
3755
|
+
StandardIdentifiers: output.StandardIdentifiers != null ? de_StandardIdentifierList(output.StandardIdentifiers, context) : undefined,
|
|
3810
3756
|
};
|
|
3811
3757
|
};
|
|
3812
|
-
const
|
|
3758
|
+
const de_ObjectTypeKeyList = (output, context) => {
|
|
3813
3759
|
const retVal = (output || [])
|
|
3814
3760
|
.filter((e) => e != null)
|
|
3815
3761
|
.map((entry) => {
|
|
3816
3762
|
if (entry === null) {
|
|
3817
3763
|
return null;
|
|
3818
3764
|
}
|
|
3819
|
-
return
|
|
3765
|
+
return de_ObjectTypeKey(entry, context);
|
|
3820
3766
|
});
|
|
3821
3767
|
return retVal;
|
|
3822
3768
|
};
|
|
3823
|
-
const
|
|
3769
|
+
const de_ObjectTypeNames = (output, context) => {
|
|
3824
3770
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3825
3771
|
if (value === null) {
|
|
3826
3772
|
return acc;
|
|
@@ -3829,25 +3775,25 @@ const deserializeAws_restJson1ObjectTypeNames = (output, context) => {
|
|
|
3829
3775
|
return acc;
|
|
3830
3776
|
}, {});
|
|
3831
3777
|
};
|
|
3832
|
-
const
|
|
3778
|
+
const de_Profile = (output, context) => {
|
|
3833
3779
|
return {
|
|
3834
3780
|
AccountNumber: (0, smithy_client_1.expectString)(output.AccountNumber),
|
|
3835
3781
|
AdditionalInformation: (0, smithy_client_1.expectString)(output.AdditionalInformation),
|
|
3836
|
-
Address: output.Address != null ?
|
|
3837
|
-
Attributes: output.Attributes != null ?
|
|
3838
|
-
BillingAddress: output.BillingAddress != null ?
|
|
3782
|
+
Address: output.Address != null ? de_Address(output.Address, context) : undefined,
|
|
3783
|
+
Attributes: output.Attributes != null ? de_Attributes(output.Attributes, context) : undefined,
|
|
3784
|
+
BillingAddress: output.BillingAddress != null ? de_Address(output.BillingAddress, context) : undefined,
|
|
3839
3785
|
BirthDate: (0, smithy_client_1.expectString)(output.BirthDate),
|
|
3840
3786
|
BusinessEmailAddress: (0, smithy_client_1.expectString)(output.BusinessEmailAddress),
|
|
3841
3787
|
BusinessName: (0, smithy_client_1.expectString)(output.BusinessName),
|
|
3842
3788
|
BusinessPhoneNumber: (0, smithy_client_1.expectString)(output.BusinessPhoneNumber),
|
|
3843
3789
|
EmailAddress: (0, smithy_client_1.expectString)(output.EmailAddress),
|
|
3844
3790
|
FirstName: (0, smithy_client_1.expectString)(output.FirstName),
|
|
3845
|
-
FoundByItems: output.FoundByItems != null ?
|
|
3791
|
+
FoundByItems: output.FoundByItems != null ? de_foundByList(output.FoundByItems, context) : undefined,
|
|
3846
3792
|
Gender: (0, smithy_client_1.expectString)(output.Gender),
|
|
3847
3793
|
GenderString: (0, smithy_client_1.expectString)(output.GenderString),
|
|
3848
3794
|
HomePhoneNumber: (0, smithy_client_1.expectString)(output.HomePhoneNumber),
|
|
3849
3795
|
LastName: (0, smithy_client_1.expectString)(output.LastName),
|
|
3850
|
-
MailingAddress: output.MailingAddress != null ?
|
|
3796
|
+
MailingAddress: output.MailingAddress != null ? de_Address(output.MailingAddress, context) : undefined,
|
|
3851
3797
|
MiddleName: (0, smithy_client_1.expectString)(output.MiddleName),
|
|
3852
3798
|
MobilePhoneNumber: (0, smithy_client_1.expectString)(output.MobilePhoneNumber),
|
|
3853
3799
|
PartyType: (0, smithy_client_1.expectString)(output.PartyType),
|
|
@@ -3855,10 +3801,10 @@ const deserializeAws_restJson1Profile = (output, context) => {
|
|
|
3855
3801
|
PersonalEmailAddress: (0, smithy_client_1.expectString)(output.PersonalEmailAddress),
|
|
3856
3802
|
PhoneNumber: (0, smithy_client_1.expectString)(output.PhoneNumber),
|
|
3857
3803
|
ProfileId: (0, smithy_client_1.expectString)(output.ProfileId),
|
|
3858
|
-
ShippingAddress: output.ShippingAddress != null ?
|
|
3804
|
+
ShippingAddress: output.ShippingAddress != null ? de_Address(output.ShippingAddress, context) : undefined,
|
|
3859
3805
|
};
|
|
3860
3806
|
};
|
|
3861
|
-
const
|
|
3807
|
+
const de_ProfileIdList = (output, context) => {
|
|
3862
3808
|
const retVal = (output || [])
|
|
3863
3809
|
.filter((e) => e != null)
|
|
3864
3810
|
.map((entry) => {
|
|
@@ -3869,51 +3815,51 @@ const deserializeAws_restJson1ProfileIdList = (output, context) => {
|
|
|
3869
3815
|
});
|
|
3870
3816
|
return retVal;
|
|
3871
3817
|
};
|
|
3872
|
-
const
|
|
3818
|
+
const de_ProfileList = (output, context) => {
|
|
3873
3819
|
const retVal = (output || [])
|
|
3874
3820
|
.filter((e) => e != null)
|
|
3875
3821
|
.map((entry) => {
|
|
3876
3822
|
if (entry === null) {
|
|
3877
3823
|
return null;
|
|
3878
3824
|
}
|
|
3879
|
-
return
|
|
3825
|
+
return de_Profile(entry, context);
|
|
3880
3826
|
});
|
|
3881
3827
|
return retVal;
|
|
3882
3828
|
};
|
|
3883
|
-
const
|
|
3829
|
+
const de_ProfileObjectList = (output, context) => {
|
|
3884
3830
|
const retVal = (output || [])
|
|
3885
3831
|
.filter((e) => e != null)
|
|
3886
3832
|
.map((entry) => {
|
|
3887
3833
|
if (entry === null) {
|
|
3888
3834
|
return null;
|
|
3889
3835
|
}
|
|
3890
|
-
return
|
|
3836
|
+
return de_ListProfileObjectsItem(entry, context);
|
|
3891
3837
|
});
|
|
3892
3838
|
return retVal;
|
|
3893
3839
|
};
|
|
3894
|
-
const
|
|
3840
|
+
const de_ProfileObjectTypeList = (output, context) => {
|
|
3895
3841
|
const retVal = (output || [])
|
|
3896
3842
|
.filter((e) => e != null)
|
|
3897
3843
|
.map((entry) => {
|
|
3898
3844
|
if (entry === null) {
|
|
3899
3845
|
return null;
|
|
3900
3846
|
}
|
|
3901
|
-
return
|
|
3847
|
+
return de_ListProfileObjectTypeItem(entry, context);
|
|
3902
3848
|
});
|
|
3903
3849
|
return retVal;
|
|
3904
3850
|
};
|
|
3905
|
-
const
|
|
3851
|
+
const de_ProfileObjectTypeTemplateList = (output, context) => {
|
|
3906
3852
|
const retVal = (output || [])
|
|
3907
3853
|
.filter((e) => e != null)
|
|
3908
3854
|
.map((entry) => {
|
|
3909
3855
|
if (entry === null) {
|
|
3910
3856
|
return null;
|
|
3911
3857
|
}
|
|
3912
|
-
return
|
|
3858
|
+
return de_ListProfileObjectTypeTemplateItem(entry, context);
|
|
3913
3859
|
});
|
|
3914
3860
|
return retVal;
|
|
3915
3861
|
};
|
|
3916
|
-
const
|
|
3862
|
+
const de_requestValueList = (output, context) => {
|
|
3917
3863
|
const retVal = (output || [])
|
|
3918
3864
|
.filter((e) => e != null)
|
|
3919
3865
|
.map((entry) => {
|
|
@@ -3924,19 +3870,19 @@ const deserializeAws_restJson1requestValueList = (output, context) => {
|
|
|
3924
3870
|
});
|
|
3925
3871
|
return retVal;
|
|
3926
3872
|
};
|
|
3927
|
-
const
|
|
3873
|
+
const de_S3ExportingConfig = (output, context) => {
|
|
3928
3874
|
return {
|
|
3929
3875
|
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
3930
3876
|
S3KeyName: (0, smithy_client_1.expectString)(output.S3KeyName),
|
|
3931
3877
|
};
|
|
3932
3878
|
};
|
|
3933
|
-
const
|
|
3879
|
+
const de_S3ExportingLocation = (output, context) => {
|
|
3934
3880
|
return {
|
|
3935
3881
|
S3BucketName: (0, smithy_client_1.expectString)(output.S3BucketName),
|
|
3936
3882
|
S3KeyName: (0, smithy_client_1.expectString)(output.S3KeyName),
|
|
3937
3883
|
};
|
|
3938
3884
|
};
|
|
3939
|
-
const
|
|
3885
|
+
const de_StandardIdentifierList = (output, context) => {
|
|
3940
3886
|
const retVal = (output || [])
|
|
3941
3887
|
.filter((e) => e != null)
|
|
3942
3888
|
.map((entry) => {
|
|
@@ -3947,7 +3893,7 @@ const deserializeAws_restJson1StandardIdentifierList = (output, context) => {
|
|
|
3947
3893
|
});
|
|
3948
3894
|
return retVal;
|
|
3949
3895
|
};
|
|
3950
|
-
const
|
|
3896
|
+
const de_TagMap = (output, context) => {
|
|
3951
3897
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
3952
3898
|
if (value === null) {
|
|
3953
3899
|
return acc;
|
|
@@ -3956,46 +3902,46 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
3956
3902
|
return acc;
|
|
3957
3903
|
}, {});
|
|
3958
3904
|
};
|
|
3959
|
-
const
|
|
3905
|
+
const de_WorkflowAttributes = (output, context) => {
|
|
3960
3906
|
return {
|
|
3961
3907
|
AppflowIntegration: output.AppflowIntegration != null
|
|
3962
|
-
?
|
|
3908
|
+
? de_AppflowIntegrationWorkflowAttributes(output.AppflowIntegration, context)
|
|
3963
3909
|
: undefined,
|
|
3964
3910
|
};
|
|
3965
3911
|
};
|
|
3966
|
-
const
|
|
3912
|
+
const de_WorkflowList = (output, context) => {
|
|
3967
3913
|
const retVal = (output || [])
|
|
3968
3914
|
.filter((e) => e != null)
|
|
3969
3915
|
.map((entry) => {
|
|
3970
3916
|
if (entry === null) {
|
|
3971
3917
|
return null;
|
|
3972
3918
|
}
|
|
3973
|
-
return
|
|
3919
|
+
return de_ListWorkflowsItem(entry, context);
|
|
3974
3920
|
});
|
|
3975
3921
|
return retVal;
|
|
3976
3922
|
};
|
|
3977
|
-
const
|
|
3923
|
+
const de_WorkflowMetrics = (output, context) => {
|
|
3978
3924
|
return {
|
|
3979
3925
|
AppflowIntegration: output.AppflowIntegration != null
|
|
3980
|
-
?
|
|
3926
|
+
? de_AppflowIntegrationWorkflowMetrics(output.AppflowIntegration, context)
|
|
3981
3927
|
: undefined,
|
|
3982
3928
|
};
|
|
3983
3929
|
};
|
|
3984
|
-
const
|
|
3930
|
+
const de_WorkflowStepItem = (output, context) => {
|
|
3985
3931
|
return {
|
|
3986
3932
|
AppflowIntegration: output.AppflowIntegration != null
|
|
3987
|
-
?
|
|
3933
|
+
? de_AppflowIntegrationWorkflowStep(output.AppflowIntegration, context)
|
|
3988
3934
|
: undefined,
|
|
3989
3935
|
};
|
|
3990
3936
|
};
|
|
3991
|
-
const
|
|
3937
|
+
const de_WorkflowStepsList = (output, context) => {
|
|
3992
3938
|
const retVal = (output || [])
|
|
3993
3939
|
.filter((e) => e != null)
|
|
3994
3940
|
.map((entry) => {
|
|
3995
3941
|
if (entry === null) {
|
|
3996
3942
|
return null;
|
|
3997
3943
|
}
|
|
3998
|
-
return
|
|
3944
|
+
return de_WorkflowStepItem(entry, context);
|
|
3999
3945
|
});
|
|
4000
3946
|
return retVal;
|
|
4001
3947
|
};
|