@aws-sdk/client-chime-sdk-messaging 3.121.0 → 3.130.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/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_restJson1.js +113 -179
- package/dist-es/protocols/Aws_restJson1.js +79 -145
- package/package.json +26 -26
|
@@ -23,8 +23,7 @@ export var serializeAws_restJson1AssociateChannelFlowCommand = function (input,
|
|
|
23
23
|
else {
|
|
24
24
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
25
25
|
}
|
|
26
|
-
body = JSON.stringify(__assign({}, (input.ChannelFlowArn
|
|
27
|
-
input.ChannelFlowArn !== null && { ChannelFlowArn: input.ChannelFlowArn })));
|
|
26
|
+
body = JSON.stringify(__assign({}, (input.ChannelFlowArn != null && { ChannelFlowArn: input.ChannelFlowArn })));
|
|
28
27
|
return [2, new __HttpRequest({
|
|
29
28
|
protocol: protocol,
|
|
30
29
|
hostname: hostname,
|
|
@@ -59,8 +58,7 @@ export var serializeAws_restJson1BatchCreateChannelMembershipCommand = function
|
|
|
59
58
|
query = {
|
|
60
59
|
operation: "batch-create",
|
|
61
60
|
};
|
|
62
|
-
body = JSON.stringify(__assign(__assign({}, (input.MemberArns
|
|
63
|
-
input.MemberArns !== null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) })), (input.Type !== undefined && input.Type !== null && { Type: input.Type })));
|
|
61
|
+
body = JSON.stringify(__assign(__assign({}, (input.MemberArns != null && { MemberArns: serializeAws_restJson1MemberArns(input.MemberArns, context) })), (input.Type != null && { Type: input.Type })));
|
|
64
62
|
return [2, new __HttpRequest({
|
|
65
63
|
protocol: protocol,
|
|
66
64
|
hostname: hostname,
|
|
@@ -99,11 +97,9 @@ export var serializeAws_restJson1ChannelFlowCallbackCommand = function (input, c
|
|
|
99
97
|
query = {
|
|
100
98
|
operation: "channel-flow-callback",
|
|
101
99
|
};
|
|
102
|
-
body = JSON.stringify(__assign(__assign({ CallbackId: (_c = input.CallbackId) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ChannelMessage
|
|
103
|
-
input.ChannelMessage !== null && {
|
|
100
|
+
body = JSON.stringify(__assign(__assign({ CallbackId: (_c = input.CallbackId) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.ChannelMessage != null && {
|
|
104
101
|
ChannelMessage: serializeAws_restJson1ChannelMessageCallback(input.ChannelMessage, context),
|
|
105
|
-
})), (input.DeleteResource
|
|
106
|
-
input.DeleteResource !== null && { DeleteResource: input.DeleteResource })));
|
|
102
|
+
})), (input.DeleteResource != null && { DeleteResource: input.DeleteResource })));
|
|
107
103
|
return [2, new __HttpRequest({
|
|
108
104
|
protocol: protocol,
|
|
109
105
|
hostname: hostname,
|
|
@@ -127,13 +123,9 @@ export var serializeAws_restJson1CreateChannelCommand = function (input, context
|
|
|
127
123
|
_a = _d.sent(), hostname = _a.hostname, _b = _a.protocol, protocol = _b === void 0 ? "https" : _b, port = _a.port, basePath = _a.path;
|
|
128
124
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
129
125
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
130
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn !==
|
|
131
|
-
input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn })), (input.ChannelId !== undefined && input.ChannelId !== null && { ChannelId: input.ChannelId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.MemberArns !== undefined &&
|
|
132
|
-
input.MemberArns !== null && { MemberArns: serializeAws_restJson1ChannelMemberArns(input.MemberArns, context) })), (input.Metadata !== undefined && input.Metadata !== null && { Metadata: input.Metadata })), (input.Mode !== undefined && input.Mode !== null && { Mode: input.Mode })), (input.ModeratorArns !== undefined &&
|
|
133
|
-
input.ModeratorArns !== null && {
|
|
126
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), (input.ChannelId != null && { ChannelId: input.ChannelId })), { ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }), (input.MemberArns != null && { MemberArns: serializeAws_restJson1ChannelMemberArns(input.MemberArns, context) })), (input.Metadata != null && { Metadata: input.Metadata })), (input.Mode != null && { Mode: input.Mode })), (input.ModeratorArns != null && {
|
|
134
127
|
ModeratorArns: serializeAws_restJson1ChannelModeratorArns(input.ModeratorArns, context),
|
|
135
|
-
})), (input.Name
|
|
136
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
128
|
+
})), (input.Name != null && { Name: input.Name })), (input.Privacy != null && { Privacy: input.Privacy })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
137
129
|
return [2, new __HttpRequest({
|
|
138
130
|
protocol: protocol,
|
|
139
131
|
hostname: hostname,
|
|
@@ -165,7 +157,7 @@ export var serializeAws_restJson1CreateChannelBanCommand = function (input, cont
|
|
|
165
157
|
else {
|
|
166
158
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
167
159
|
}
|
|
168
|
-
body = JSON.stringify(__assign({}, (input.MemberArn
|
|
160
|
+
body = JSON.stringify(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })));
|
|
169
161
|
return [2, new __HttpRequest({
|
|
170
162
|
protocol: protocol,
|
|
171
163
|
hostname: hostname,
|
|
@@ -189,11 +181,7 @@ export var serializeAws_restJson1CreateChannelFlowCommand = function (input, con
|
|
|
189
181
|
"content-type": "application/json",
|
|
190
182
|
};
|
|
191
183
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channel-flows";
|
|
192
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn
|
|
193
|
-
input.AppInstanceArn !== null && { AppInstanceArn: input.AppInstanceArn })), (input.ClientRequestToken !== undefined &&
|
|
194
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.Name !== undefined && input.Name !== null && { Name: input.Name })), (input.Processors !== undefined &&
|
|
195
|
-
input.Processors !== null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) })), (input.Tags !== undefined &&
|
|
196
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
184
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign({}, (input.AppInstanceArn != null && { AppInstanceArn: input.AppInstanceArn })), (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.Name != null && { Name: input.Name })), (input.Processors != null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
197
185
|
return [2, new __HttpRequest({
|
|
198
186
|
protocol: protocol,
|
|
199
187
|
hostname: hostname,
|
|
@@ -225,7 +213,7 @@ export var serializeAws_restJson1CreateChannelMembershipCommand = function (inpu
|
|
|
225
213
|
else {
|
|
226
214
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
227
215
|
}
|
|
228
|
-
body = JSON.stringify(__assign(__assign({}, (input.MemberArn
|
|
216
|
+
body = JSON.stringify(__assign(__assign({}, (input.MemberArn != null && { MemberArn: input.MemberArn })), (input.Type != null && { Type: input.Type })));
|
|
229
217
|
return [2, new __HttpRequest({
|
|
230
218
|
protocol: protocol,
|
|
231
219
|
hostname: hostname,
|
|
@@ -257,8 +245,7 @@ export var serializeAws_restJson1CreateChannelModeratorCommand = function (input
|
|
|
257
245
|
else {
|
|
258
246
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
259
247
|
}
|
|
260
|
-
body = JSON.stringify(__assign({}, (input.ChannelModeratorArn
|
|
261
|
-
input.ChannelModeratorArn !== null && { ChannelModeratorArn: input.ChannelModeratorArn })));
|
|
248
|
+
body = JSON.stringify(__assign({}, (input.ChannelModeratorArn != null && { ChannelModeratorArn: input.ChannelModeratorArn })));
|
|
262
249
|
return [2, new __HttpRequest({
|
|
263
250
|
protocol: protocol,
|
|
264
251
|
hostname: hostname,
|
|
@@ -1251,8 +1238,7 @@ export var serializeAws_restJson1PutChannelMembershipPreferencesCommand = functi
|
|
|
1251
1238
|
else {
|
|
1252
1239
|
throw new Error("No value provided for input HTTP label: MemberArn.");
|
|
1253
1240
|
}
|
|
1254
|
-
body = JSON.stringify(__assign({}, (input.Preferences
|
|
1255
|
-
input.Preferences !== null && {
|
|
1241
|
+
body = JSON.stringify(__assign({}, (input.Preferences != null && {
|
|
1256
1242
|
Preferences: serializeAws_restJson1ChannelMembershipPreferences(input.Preferences, context),
|
|
1257
1243
|
})));
|
|
1258
1244
|
return [2, new __HttpRequest({
|
|
@@ -1323,8 +1309,7 @@ export var serializeAws_restJson1SearchChannelsCommand = function (input, contex
|
|
|
1323
1309
|
headers = __assign({ "content-type": "application/json" }, (isSerializableHeaderValue(input.ChimeBearer) && { "x-amz-chime-bearer": input.ChimeBearer }));
|
|
1324
1310
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/channels";
|
|
1325
1311
|
query = __assign(__assign({ operation: "search" }, (input.MaxResults !== undefined && { "max-results": input.MaxResults.toString() })), (input.NextToken !== undefined && { "next-token": input.NextToken }));
|
|
1326
|
-
body = JSON.stringify(__assign({}, (input.Fields
|
|
1327
|
-
input.Fields !== null && { Fields: serializeAws_restJson1SearchFields(input.Fields, context) })));
|
|
1312
|
+
body = JSON.stringify(__assign({}, (input.Fields != null && { Fields: serializeAws_restJson1SearchFields(input.Fields, context) })));
|
|
1328
1313
|
return [2, new __HttpRequest({
|
|
1329
1314
|
protocol: protocol,
|
|
1330
1315
|
hostname: hostname,
|
|
@@ -1358,13 +1343,11 @@ export var serializeAws_restJson1SendChannelMessageCommand = function (input, co
|
|
|
1358
1343
|
else {
|
|
1359
1344
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1360
1345
|
}
|
|
1361
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content
|
|
1362
|
-
input.MessageAttributes !== null && {
|
|
1346
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
1363
1347
|
MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
|
|
1364
|
-
})), (input.Metadata
|
|
1365
|
-
input.PushNotification !== null && {
|
|
1348
|
+
})), (input.Metadata != null && { Metadata: input.Metadata })), (input.Persistence != null && { Persistence: input.Persistence })), (input.PushNotification != null && {
|
|
1366
1349
|
PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
|
|
1367
|
-
})), (input.Type
|
|
1350
|
+
})), (input.Type != null && { Type: input.Type })));
|
|
1368
1351
|
return [2, new __HttpRequest({
|
|
1369
1352
|
protocol: protocol,
|
|
1370
1353
|
hostname: hostname,
|
|
@@ -1391,8 +1374,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
1391
1374
|
query = {
|
|
1392
1375
|
operation: "tag-resource",
|
|
1393
1376
|
};
|
|
1394
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN
|
|
1395
|
-
input.Tags !== null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
1377
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.Tags != null && { Tags: serializeAws_restJson1TagList(input.Tags, context) })));
|
|
1396
1378
|
return [2, new __HttpRequest({
|
|
1397
1379
|
protocol: protocol,
|
|
1398
1380
|
hostname: hostname,
|
|
@@ -1420,8 +1402,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
1420
1402
|
query = {
|
|
1421
1403
|
operation: "untag-resource",
|
|
1422
1404
|
};
|
|
1423
|
-
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN
|
|
1424
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
1405
|
+
body = JSON.stringify(__assign(__assign({}, (input.ResourceARN != null && { ResourceARN: input.ResourceARN })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeyList(input.TagKeys, context) })));
|
|
1425
1406
|
return [2, new __HttpRequest({
|
|
1426
1407
|
protocol: protocol,
|
|
1427
1408
|
hostname: hostname,
|
|
@@ -1454,7 +1435,7 @@ export var serializeAws_restJson1UpdateChannelCommand = function (input, context
|
|
|
1454
1435
|
else {
|
|
1455
1436
|
throw new Error("No value provided for input HTTP label: ChannelArn.");
|
|
1456
1437
|
}
|
|
1457
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Metadata
|
|
1438
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Metadata != null && { Metadata: input.Metadata })), (input.Mode != null && { Mode: input.Mode })), (input.Name != null && { Name: input.Name })));
|
|
1458
1439
|
return [2, new __HttpRequest({
|
|
1459
1440
|
protocol: protocol,
|
|
1460
1441
|
hostname: hostname,
|
|
@@ -1488,8 +1469,7 @@ export var serializeAws_restJson1UpdateChannelFlowCommand = function (input, con
|
|
|
1488
1469
|
else {
|
|
1489
1470
|
throw new Error("No value provided for input HTTP label: ChannelFlowArn.");
|
|
1490
1471
|
}
|
|
1491
|
-
body = JSON.stringify(__assign(__assign({}, (input.Name
|
|
1492
|
-
input.Processors !== null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) })));
|
|
1472
|
+
body = JSON.stringify(__assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Processors != null && { Processors: serializeAws_restJson1ProcessorList(input.Processors, context) })));
|
|
1493
1473
|
return [2, new __HttpRequest({
|
|
1494
1474
|
protocol: protocol,
|
|
1495
1475
|
hostname: hostname,
|
|
@@ -1532,7 +1512,7 @@ export var serializeAws_restJson1UpdateChannelMessageCommand = function (input,
|
|
|
1532
1512
|
else {
|
|
1533
1513
|
throw new Error("No value provided for input HTTP label: MessageId.");
|
|
1534
1514
|
}
|
|
1535
|
-
body = JSON.stringify(__assign(__assign({}, (input.Content
|
|
1515
|
+
body = JSON.stringify(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.Metadata != null && { Metadata: input.Metadata })));
|
|
1536
1516
|
return [2, new __HttpRequest({
|
|
1537
1517
|
protocol: protocol,
|
|
1538
1518
|
hostname: hostname,
|
|
@@ -5428,17 +5408,14 @@ var serializeAws_restJson1ChannelMemberArns = function (input, context) {
|
|
|
5428
5408
|
});
|
|
5429
5409
|
};
|
|
5430
5410
|
var serializeAws_restJson1ChannelMembershipPreferences = function (input, context) {
|
|
5431
|
-
return __assign({}, (input.PushNotifications
|
|
5432
|
-
input.PushNotifications !== null && {
|
|
5411
|
+
return __assign({}, (input.PushNotifications != null && {
|
|
5433
5412
|
PushNotifications: serializeAws_restJson1PushNotificationPreferences(input.PushNotifications, context),
|
|
5434
5413
|
}));
|
|
5435
5414
|
};
|
|
5436
5415
|
var serializeAws_restJson1ChannelMessageCallback = function (input, context) {
|
|
5437
|
-
return __assign(__assign(__assign(__assign(__assign({}, (input.Content
|
|
5438
|
-
input.MessageAttributes !== null && {
|
|
5416
|
+
return __assign(__assign(__assign(__assign(__assign({}, (input.Content != null && { Content: input.Content })), (input.MessageAttributes != null && {
|
|
5439
5417
|
MessageAttributes: serializeAws_restJson1MessageAttributeMap(input.MessageAttributes, context),
|
|
5440
|
-
})), (input.MessageId
|
|
5441
|
-
input.PushNotification !== null && {
|
|
5418
|
+
})), (input.MessageId != null && { MessageId: input.MessageId })), (input.Metadata != null && { Metadata: input.Metadata })), (input.PushNotification != null && {
|
|
5442
5419
|
PushNotification: serializeAws_restJson1PushNotificationConfiguration(input.PushNotification, context),
|
|
5443
5420
|
}));
|
|
5444
5421
|
};
|
|
@@ -5453,8 +5430,7 @@ var serializeAws_restJson1ChannelModeratorArns = function (input, context) {
|
|
|
5453
5430
|
});
|
|
5454
5431
|
};
|
|
5455
5432
|
var serializeAws_restJson1LambdaConfiguration = function (input, context) {
|
|
5456
|
-
return __assign(__assign({}, (input.InvocationType
|
|
5457
|
-
input.InvocationType !== null && { InvocationType: input.InvocationType })), (input.ResourceArn !== undefined && input.ResourceArn !== null && { ResourceArn: input.ResourceArn }));
|
|
5433
|
+
return __assign(__assign({}, (input.InvocationType != null && { InvocationType: input.InvocationType })), (input.ResourceArn != null && { ResourceArn: input.ResourceArn }));
|
|
5458
5434
|
};
|
|
5459
5435
|
var serializeAws_restJson1MemberArns = function (input, context) {
|
|
5460
5436
|
return input
|
|
@@ -5487,22 +5463,17 @@ var serializeAws_restJson1MessageAttributeStringValues = function (input, contex
|
|
|
5487
5463
|
});
|
|
5488
5464
|
};
|
|
5489
5465
|
var serializeAws_restJson1MessageAttributeValue = function (input, context) {
|
|
5490
|
-
return __assign({}, (input.StringValues
|
|
5491
|
-
input.StringValues !== null && {
|
|
5466
|
+
return __assign({}, (input.StringValues != null && {
|
|
5492
5467
|
StringValues: serializeAws_restJson1MessageAttributeStringValues(input.StringValues, context),
|
|
5493
5468
|
}));
|
|
5494
5469
|
};
|
|
5495
5470
|
var serializeAws_restJson1Processor = function (input, context) {
|
|
5496
|
-
return __assign(__assign(__assign(__assign({}, (input.Configuration
|
|
5497
|
-
input.Configuration !== null && {
|
|
5471
|
+
return __assign(__assign(__assign(__assign({}, (input.Configuration != null && {
|
|
5498
5472
|
Configuration: serializeAws_restJson1ProcessorConfiguration(input.Configuration, context),
|
|
5499
|
-
})), (input.ExecutionOrder
|
|
5500
|
-
input.ExecutionOrder !== null && { ExecutionOrder: input.ExecutionOrder })), (input.FallbackAction !== undefined &&
|
|
5501
|
-
input.FallbackAction !== null && { FallbackAction: input.FallbackAction })), (input.Name !== undefined && input.Name !== null && { Name: input.Name }));
|
|
5473
|
+
})), (input.ExecutionOrder != null && { ExecutionOrder: input.ExecutionOrder })), (input.FallbackAction != null && { FallbackAction: input.FallbackAction })), (input.Name != null && { Name: input.Name }));
|
|
5502
5474
|
};
|
|
5503
5475
|
var serializeAws_restJson1ProcessorConfiguration = function (input, context) {
|
|
5504
|
-
return __assign({}, (input.Lambda
|
|
5505
|
-
input.Lambda !== null && { Lambda: serializeAws_restJson1LambdaConfiguration(input.Lambda, context) }));
|
|
5476
|
+
return __assign({}, (input.Lambda != null && { Lambda: serializeAws_restJson1LambdaConfiguration(input.Lambda, context) }));
|
|
5506
5477
|
};
|
|
5507
5478
|
var serializeAws_restJson1ProcessorList = function (input, context) {
|
|
5508
5479
|
return input
|
|
@@ -5515,15 +5486,13 @@ var serializeAws_restJson1ProcessorList = function (input, context) {
|
|
|
5515
5486
|
});
|
|
5516
5487
|
};
|
|
5517
5488
|
var serializeAws_restJson1PushNotificationConfiguration = function (input, context) {
|
|
5518
|
-
return __assign(__assign(__assign({}, (input.Body
|
|
5489
|
+
return __assign(__assign(__assign({}, (input.Body != null && { Body: input.Body })), (input.Title != null && { Title: input.Title })), (input.Type != null && { Type: input.Type }));
|
|
5519
5490
|
};
|
|
5520
5491
|
var serializeAws_restJson1PushNotificationPreferences = function (input, context) {
|
|
5521
|
-
return __assign(__assign({}, (input.AllowNotifications
|
|
5522
|
-
input.AllowNotifications !== null && { AllowNotifications: input.AllowNotifications })), (input.FilterRule !== undefined && input.FilterRule !== null && { FilterRule: input.FilterRule }));
|
|
5492
|
+
return __assign(__assign({}, (input.AllowNotifications != null && { AllowNotifications: input.AllowNotifications })), (input.FilterRule != null && { FilterRule: input.FilterRule }));
|
|
5523
5493
|
};
|
|
5524
5494
|
var serializeAws_restJson1SearchField = function (input, context) {
|
|
5525
|
-
return __assign(__assign(__assign({}, (input.Key
|
|
5526
|
-
input.Values !== null && { Values: serializeAws_restJson1SearchFieldValues(input.Values, context) }));
|
|
5495
|
+
return __assign(__assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Operator != null && { Operator: input.Operator })), (input.Values != null && { Values: serializeAws_restJson1SearchFieldValues(input.Values, context) }));
|
|
5527
5496
|
};
|
|
5528
5497
|
var serializeAws_restJson1SearchFields = function (input, context) {
|
|
5529
5498
|
return input
|
|
@@ -5546,7 +5515,7 @@ var serializeAws_restJson1SearchFieldValues = function (input, context) {
|
|
|
5546
5515
|
});
|
|
5547
5516
|
};
|
|
5548
5517
|
var serializeAws_restJson1Tag = function (input, context) {
|
|
5549
|
-
return __assign(__assign({}, (input.Key
|
|
5518
|
+
return __assign(__assign({}, (input.Key != null && { Key: input.Key })), (input.Value != null && { Value: input.Value }));
|
|
5550
5519
|
};
|
|
5551
5520
|
var serializeAws_restJson1TagKeyList = function (input, context) {
|
|
5552
5521
|
return input
|
|
@@ -5570,7 +5539,7 @@ var serializeAws_restJson1TagList = function (input, context) {
|
|
|
5570
5539
|
};
|
|
5571
5540
|
var deserializeAws_restJson1AppInstanceUserMembershipSummary = function (output, context) {
|
|
5572
5541
|
return {
|
|
5573
|
-
ReadMarkerTimestamp: output.ReadMarkerTimestamp
|
|
5542
|
+
ReadMarkerTimestamp: output.ReadMarkerTimestamp != null
|
|
5574
5543
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReadMarkerTimestamp)))
|
|
5575
5544
|
: undefined,
|
|
5576
5545
|
Type: __expectString(output.Type),
|
|
@@ -5579,12 +5548,8 @@ var deserializeAws_restJson1AppInstanceUserMembershipSummary = function (output,
|
|
|
5579
5548
|
var deserializeAws_restJson1BatchChannelMemberships = function (output, context) {
|
|
5580
5549
|
return {
|
|
5581
5550
|
ChannelArn: __expectString(output.ChannelArn),
|
|
5582
|
-
InvitedBy: output.InvitedBy
|
|
5583
|
-
|
|
5584
|
-
: undefined,
|
|
5585
|
-
Members: output.Members !== undefined && output.Members !== null
|
|
5586
|
-
? deserializeAws_restJson1Members(output.Members, context)
|
|
5587
|
-
: undefined,
|
|
5551
|
+
InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
|
|
5552
|
+
Members: output.Members != null ? deserializeAws_restJson1Members(output.Members, context) : undefined,
|
|
5588
5553
|
Type: __expectString(output.Type),
|
|
5589
5554
|
};
|
|
5590
5555
|
};
|
|
@@ -5610,16 +5575,14 @@ var deserializeAws_restJson1Channel = function (output, context) {
|
|
|
5610
5575
|
return {
|
|
5611
5576
|
ChannelArn: __expectString(output.ChannelArn),
|
|
5612
5577
|
ChannelFlowArn: __expectString(output.ChannelFlowArn),
|
|
5613
|
-
CreatedBy: output.CreatedBy
|
|
5614
|
-
|
|
5615
|
-
: undefined,
|
|
5616
|
-
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
5578
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
|
|
5579
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5617
5580
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5618
5581
|
: undefined,
|
|
5619
|
-
LastMessageTimestamp: output.LastMessageTimestamp
|
|
5582
|
+
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
5620
5583
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
5621
5584
|
: undefined,
|
|
5622
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
5585
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
5623
5586
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
5624
5587
|
: undefined,
|
|
5625
5588
|
Metadata: __expectString(output.Metadata),
|
|
@@ -5651,22 +5614,16 @@ var deserializeAws_restJson1ChannelAssociatedWithFlowSummaryList = function (out
|
|
|
5651
5614
|
var deserializeAws_restJson1ChannelBan = function (output, context) {
|
|
5652
5615
|
return {
|
|
5653
5616
|
ChannelArn: __expectString(output.ChannelArn),
|
|
5654
|
-
CreatedBy: output.CreatedBy
|
|
5655
|
-
|
|
5656
|
-
: undefined,
|
|
5657
|
-
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
5617
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
|
|
5618
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5658
5619
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5659
5620
|
: undefined,
|
|
5660
|
-
Member: output.Member
|
|
5661
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
5662
|
-
: undefined,
|
|
5621
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
5663
5622
|
};
|
|
5664
5623
|
};
|
|
5665
5624
|
var deserializeAws_restJson1ChannelBanSummary = function (output, context) {
|
|
5666
5625
|
return {
|
|
5667
|
-
Member: output.Member
|
|
5668
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
5669
|
-
: undefined,
|
|
5626
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
5670
5627
|
};
|
|
5671
5628
|
};
|
|
5672
5629
|
var deserializeAws_restJson1ChannelBanSummaryList = function (output, context) {
|
|
@@ -5683,25 +5640,21 @@ var deserializeAws_restJson1ChannelBanSummaryList = function (output, context) {
|
|
|
5683
5640
|
var deserializeAws_restJson1ChannelFlow = function (output, context) {
|
|
5684
5641
|
return {
|
|
5685
5642
|
ChannelFlowArn: __expectString(output.ChannelFlowArn),
|
|
5686
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
5643
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5687
5644
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5688
5645
|
: undefined,
|
|
5689
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
5646
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
5690
5647
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
5691
5648
|
: undefined,
|
|
5692
5649
|
Name: __expectString(output.Name),
|
|
5693
|
-
Processors: output.Processors
|
|
5694
|
-
? deserializeAws_restJson1ProcessorList(output.Processors, context)
|
|
5695
|
-
: undefined,
|
|
5650
|
+
Processors: output.Processors != null ? deserializeAws_restJson1ProcessorList(output.Processors, context) : undefined,
|
|
5696
5651
|
};
|
|
5697
5652
|
};
|
|
5698
5653
|
var deserializeAws_restJson1ChannelFlowSummary = function (output, context) {
|
|
5699
5654
|
return {
|
|
5700
5655
|
ChannelFlowArn: __expectString(output.ChannelFlowArn),
|
|
5701
5656
|
Name: __expectString(output.Name),
|
|
5702
|
-
Processors: output.Processors
|
|
5703
|
-
? deserializeAws_restJson1ProcessorList(output.Processors, context)
|
|
5704
|
-
: undefined,
|
|
5657
|
+
Processors: output.Processors != null ? deserializeAws_restJson1ProcessorList(output.Processors, context) : undefined,
|
|
5705
5658
|
};
|
|
5706
5659
|
};
|
|
5707
5660
|
var deserializeAws_restJson1ChannelFlowSummaryList = function (output, context) {
|
|
@@ -5718,27 +5671,23 @@ var deserializeAws_restJson1ChannelFlowSummaryList = function (output, context)
|
|
|
5718
5671
|
var deserializeAws_restJson1ChannelMembership = function (output, context) {
|
|
5719
5672
|
return {
|
|
5720
5673
|
ChannelArn: __expectString(output.ChannelArn),
|
|
5721
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
5674
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5722
5675
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5723
5676
|
: undefined,
|
|
5724
|
-
InvitedBy: output.InvitedBy
|
|
5725
|
-
|
|
5726
|
-
: undefined,
|
|
5727
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp !== undefined && output.LastUpdatedTimestamp !== null
|
|
5677
|
+
InvitedBy: output.InvitedBy != null ? deserializeAws_restJson1Identity(output.InvitedBy, context) : undefined,
|
|
5678
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
5728
5679
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
5729
5680
|
: undefined,
|
|
5730
|
-
Member: output.Member
|
|
5731
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
5732
|
-
: undefined,
|
|
5681
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
5733
5682
|
Type: __expectString(output.Type),
|
|
5734
5683
|
};
|
|
5735
5684
|
};
|
|
5736
5685
|
var deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummary = function (output, context) {
|
|
5737
5686
|
return {
|
|
5738
|
-
AppInstanceUserMembershipSummary: output.AppInstanceUserMembershipSummary
|
|
5687
|
+
AppInstanceUserMembershipSummary: output.AppInstanceUserMembershipSummary != null
|
|
5739
5688
|
? deserializeAws_restJson1AppInstanceUserMembershipSummary(output.AppInstanceUserMembershipSummary, context)
|
|
5740
5689
|
: undefined,
|
|
5741
|
-
ChannelSummary: output.ChannelSummary
|
|
5690
|
+
ChannelSummary: output.ChannelSummary != null
|
|
5742
5691
|
? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
|
|
5743
5692
|
: undefined,
|
|
5744
5693
|
};
|
|
@@ -5756,16 +5705,14 @@ var deserializeAws_restJson1ChannelMembershipForAppInstanceUserSummaryList = fun
|
|
|
5756
5705
|
};
|
|
5757
5706
|
var deserializeAws_restJson1ChannelMembershipPreferences = function (output, context) {
|
|
5758
5707
|
return {
|
|
5759
|
-
PushNotifications: output.PushNotifications
|
|
5708
|
+
PushNotifications: output.PushNotifications != null
|
|
5760
5709
|
? deserializeAws_restJson1PushNotificationPreferences(output.PushNotifications, context)
|
|
5761
5710
|
: undefined,
|
|
5762
5711
|
};
|
|
5763
5712
|
};
|
|
5764
5713
|
var deserializeAws_restJson1ChannelMembershipSummary = function (output, context) {
|
|
5765
5714
|
return {
|
|
5766
|
-
Member: output.Member
|
|
5767
|
-
? deserializeAws_restJson1Identity(output.Member, context)
|
|
5768
|
-
: undefined,
|
|
5715
|
+
Member: output.Member != null ? deserializeAws_restJson1Identity(output.Member, context) : undefined,
|
|
5769
5716
|
};
|
|
5770
5717
|
};
|
|
5771
5718
|
var deserializeAws_restJson1ChannelMembershipSummaryList = function (output, context) {
|
|
@@ -5783,28 +5730,24 @@ var deserializeAws_restJson1ChannelMessage = function (output, context) {
|
|
|
5783
5730
|
return {
|
|
5784
5731
|
ChannelArn: __expectString(output.ChannelArn),
|
|
5785
5732
|
Content: __expectString(output.Content),
|
|
5786
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
5733
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5787
5734
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5788
5735
|
: undefined,
|
|
5789
|
-
LastEditedTimestamp: output.LastEditedTimestamp
|
|
5736
|
+
LastEditedTimestamp: output.LastEditedTimestamp != null
|
|
5790
5737
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
|
|
5791
5738
|
: undefined,
|
|
5792
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
5739
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
5793
5740
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
5794
5741
|
: undefined,
|
|
5795
|
-
MessageAttributes: output.MessageAttributes
|
|
5742
|
+
MessageAttributes: output.MessageAttributes != null
|
|
5796
5743
|
? deserializeAws_restJson1MessageAttributeMap(output.MessageAttributes, context)
|
|
5797
5744
|
: undefined,
|
|
5798
5745
|
MessageId: __expectString(output.MessageId),
|
|
5799
5746
|
Metadata: __expectString(output.Metadata),
|
|
5800
5747
|
Persistence: __expectString(output.Persistence),
|
|
5801
5748
|
Redacted: __expectBoolean(output.Redacted),
|
|
5802
|
-
Sender: output.Sender
|
|
5803
|
-
|
|
5804
|
-
: undefined,
|
|
5805
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5806
|
-
? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context)
|
|
5807
|
-
: undefined,
|
|
5749
|
+
Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
|
|
5750
|
+
Status: output.Status != null ? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
5808
5751
|
Type: __expectString(output.Type),
|
|
5809
5752
|
};
|
|
5810
5753
|
};
|
|
@@ -5817,27 +5760,23 @@ var deserializeAws_restJson1ChannelMessageStatusStructure = function (output, co
|
|
|
5817
5760
|
var deserializeAws_restJson1ChannelMessageSummary = function (output, context) {
|
|
5818
5761
|
return {
|
|
5819
5762
|
Content: __expectString(output.Content),
|
|
5820
|
-
CreatedTimestamp: output.CreatedTimestamp
|
|
5763
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5821
5764
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5822
5765
|
: undefined,
|
|
5823
|
-
LastEditedTimestamp: output.LastEditedTimestamp
|
|
5766
|
+
LastEditedTimestamp: output.LastEditedTimestamp != null
|
|
5824
5767
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastEditedTimestamp)))
|
|
5825
5768
|
: undefined,
|
|
5826
|
-
LastUpdatedTimestamp: output.LastUpdatedTimestamp
|
|
5769
|
+
LastUpdatedTimestamp: output.LastUpdatedTimestamp != null
|
|
5827
5770
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedTimestamp)))
|
|
5828
5771
|
: undefined,
|
|
5829
|
-
MessageAttributes: output.MessageAttributes
|
|
5772
|
+
MessageAttributes: output.MessageAttributes != null
|
|
5830
5773
|
? deserializeAws_restJson1MessageAttributeMap(output.MessageAttributes, context)
|
|
5831
5774
|
: undefined,
|
|
5832
5775
|
MessageId: __expectString(output.MessageId),
|
|
5833
5776
|
Metadata: __expectString(output.Metadata),
|
|
5834
5777
|
Redacted: __expectBoolean(output.Redacted),
|
|
5835
|
-
Sender: output.Sender
|
|
5836
|
-
|
|
5837
|
-
: undefined,
|
|
5838
|
-
Status: output.Status !== undefined && output.Status !== null
|
|
5839
|
-
? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context)
|
|
5840
|
-
: undefined,
|
|
5778
|
+
Sender: output.Sender != null ? deserializeAws_restJson1Identity(output.Sender, context) : undefined,
|
|
5779
|
+
Status: output.Status != null ? deserializeAws_restJson1ChannelMessageStatusStructure(output.Status, context) : undefined,
|
|
5841
5780
|
Type: __expectString(output.Type),
|
|
5842
5781
|
};
|
|
5843
5782
|
};
|
|
@@ -5854,7 +5793,7 @@ var deserializeAws_restJson1ChannelMessageSummaryList = function (output, contex
|
|
|
5854
5793
|
};
|
|
5855
5794
|
var deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummary = function (output, context) {
|
|
5856
5795
|
return {
|
|
5857
|
-
ChannelSummary: output.ChannelSummary
|
|
5796
|
+
ChannelSummary: output.ChannelSummary != null
|
|
5858
5797
|
? deserializeAws_restJson1ChannelSummary(output.ChannelSummary, context)
|
|
5859
5798
|
: undefined,
|
|
5860
5799
|
};
|
|
@@ -5873,22 +5812,16 @@ var deserializeAws_restJson1ChannelModeratedByAppInstanceUserSummaryList = funct
|
|
|
5873
5812
|
var deserializeAws_restJson1ChannelModerator = function (output, context) {
|
|
5874
5813
|
return {
|
|
5875
5814
|
ChannelArn: __expectString(output.ChannelArn),
|
|
5876
|
-
CreatedBy: output.CreatedBy
|
|
5877
|
-
|
|
5878
|
-
: undefined,
|
|
5879
|
-
CreatedTimestamp: output.CreatedTimestamp !== undefined && output.CreatedTimestamp !== null
|
|
5815
|
+
CreatedBy: output.CreatedBy != null ? deserializeAws_restJson1Identity(output.CreatedBy, context) : undefined,
|
|
5816
|
+
CreatedTimestamp: output.CreatedTimestamp != null
|
|
5880
5817
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedTimestamp)))
|
|
5881
5818
|
: undefined,
|
|
5882
|
-
Moderator: output.Moderator
|
|
5883
|
-
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
5884
|
-
: undefined,
|
|
5819
|
+
Moderator: output.Moderator != null ? deserializeAws_restJson1Identity(output.Moderator, context) : undefined,
|
|
5885
5820
|
};
|
|
5886
5821
|
};
|
|
5887
5822
|
var deserializeAws_restJson1ChannelModeratorSummary = function (output, context) {
|
|
5888
5823
|
return {
|
|
5889
|
-
Moderator: output.Moderator
|
|
5890
|
-
? deserializeAws_restJson1Identity(output.Moderator, context)
|
|
5891
|
-
: undefined,
|
|
5824
|
+
Moderator: output.Moderator != null ? deserializeAws_restJson1Identity(output.Moderator, context) : undefined,
|
|
5892
5825
|
};
|
|
5893
5826
|
};
|
|
5894
5827
|
var deserializeAws_restJson1ChannelModeratorSummaryList = function (output, context) {
|
|
@@ -5905,7 +5838,7 @@ var deserializeAws_restJson1ChannelModeratorSummaryList = function (output, cont
|
|
|
5905
5838
|
var deserializeAws_restJson1ChannelSummary = function (output, context) {
|
|
5906
5839
|
return {
|
|
5907
5840
|
ChannelArn: __expectString(output.ChannelArn),
|
|
5908
|
-
LastMessageTimestamp: output.LastMessageTimestamp
|
|
5841
|
+
LastMessageTimestamp: output.LastMessageTimestamp != null
|
|
5909
5842
|
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastMessageTimestamp)))
|
|
5910
5843
|
: undefined,
|
|
5911
5844
|
Metadata: __expectString(output.Metadata),
|
|
@@ -5971,7 +5904,7 @@ var deserializeAws_restJson1MessageAttributeStringValues = function (output, con
|
|
|
5971
5904
|
};
|
|
5972
5905
|
var deserializeAws_restJson1MessageAttributeValue = function (output, context) {
|
|
5973
5906
|
return {
|
|
5974
|
-
StringValues: output.StringValues
|
|
5907
|
+
StringValues: output.StringValues != null
|
|
5975
5908
|
? deserializeAws_restJson1MessageAttributeStringValues(output.StringValues, context)
|
|
5976
5909
|
: undefined,
|
|
5977
5910
|
};
|
|
@@ -5983,7 +5916,7 @@ var deserializeAws_restJson1MessagingSessionEndpoint = function (output, context
|
|
|
5983
5916
|
};
|
|
5984
5917
|
var deserializeAws_restJson1Processor = function (output, context) {
|
|
5985
5918
|
return {
|
|
5986
|
-
Configuration: output.Configuration
|
|
5919
|
+
Configuration: output.Configuration != null
|
|
5987
5920
|
? deserializeAws_restJson1ProcessorConfiguration(output.Configuration, context)
|
|
5988
5921
|
: undefined,
|
|
5989
5922
|
ExecutionOrder: __expectInt32(output.ExecutionOrder),
|
|
@@ -5993,9 +5926,7 @@ var deserializeAws_restJson1Processor = function (output, context) {
|
|
|
5993
5926
|
};
|
|
5994
5927
|
var deserializeAws_restJson1ProcessorConfiguration = function (output, context) {
|
|
5995
5928
|
return {
|
|
5996
|
-
Lambda: output.Lambda
|
|
5997
|
-
? deserializeAws_restJson1LambdaConfiguration(output.Lambda, context)
|
|
5998
|
-
: undefined,
|
|
5929
|
+
Lambda: output.Lambda != null ? deserializeAws_restJson1LambdaConfiguration(output.Lambda, context) : undefined,
|
|
5999
5930
|
};
|
|
6000
5931
|
};
|
|
6001
5932
|
var deserializeAws_restJson1ProcessorList = function (output, context) {
|
|
@@ -6070,6 +6001,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
6070
6001
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
6071
6002
|
var sanitizeErrorCode = function (rawValue) {
|
|
6072
6003
|
var cleanValue = rawValue;
|
|
6004
|
+
if (typeof cleanValue === "number") {
|
|
6005
|
+
cleanValue = cleanValue.toString();
|
|
6006
|
+
}
|
|
6073
6007
|
if (cleanValue.indexOf(":") >= 0) {
|
|
6074
6008
|
cleanValue = cleanValue.split(":")[0];
|
|
6075
6009
|
}
|