@sparkrewards/sra-sdk 0.0.4 → 0.0.6
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/LICENSE +1 -1
- package/dist-cjs/models/models_0.js +22 -8
- package/dist-cjs/openapi.json +114 -18
- package/dist-cjs/protocols/Aws_restJson1.js +217 -37
- package/dist-cjs/server/AppAPIService.js +24 -6
- package/dist-cjs/server/operations/FavoriteShops.js +4 -1
- package/dist-cjs/server/operations/NearbyShops.js +4 -1
- package/dist-cjs/server/operations/NearbyShopsPublic.js +4 -1
- package/dist-cjs/server/operations/PopularShops.js +4 -1
- package/dist-cjs/server/operations/PopularShopsPublic.js +4 -1
- package/dist-cjs/server/operations/RadiusShops.js +4 -1
- package/dist-es/models/models_0.js +22 -8
- package/dist-es/openapi.json +114 -18
- package/dist-es/protocols/Aws_restJson1.js +218 -38
- package/dist-es/server/AppAPIService.js +24 -6
- package/dist-es/server/operations/FavoriteShops.js +4 -1
- package/dist-es/server/operations/NearbyShops.js +4 -1
- package/dist-es/server/operations/NearbyShopsPublic.js +4 -1
- package/dist-es/server/operations/PopularShops.js +4 -1
- package/dist-es/server/operations/PopularShopsPublic.js +4 -1
- package/dist-es/server/operations/RadiusShops.js +4 -1
- package/dist-types/models/models_0.d.ts +6 -6
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
same "printed page" as the copyright notice for easier
|
|
187
187
|
identification within third-party archives.
|
|
188
188
|
|
|
189
|
-
Copyright 2018-
|
|
189
|
+
Copyright 2018-2026 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
190
190
|
|
|
191
191
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
192
|
you may not use this file except in compliance with the License.
|
|
@@ -481,19 +481,31 @@ var ShopListInput;
|
|
|
481
481
|
if (memberValidators[member] === undefined) {
|
|
482
482
|
switch (member) {
|
|
483
483
|
case "lat": {
|
|
484
|
-
memberValidators["lat"] = new server_common_1.
|
|
484
|
+
memberValidators["lat"] = new server_common_1.CompositeValidator([
|
|
485
|
+
new server_common_1.RequiredValidator(),
|
|
486
|
+
]);
|
|
485
487
|
break;
|
|
486
488
|
}
|
|
487
489
|
case "lon": {
|
|
488
|
-
memberValidators["lon"] = new server_common_1.
|
|
490
|
+
memberValidators["lon"] = new server_common_1.CompositeValidator([
|
|
491
|
+
new server_common_1.RequiredValidator(),
|
|
492
|
+
]);
|
|
489
493
|
break;
|
|
490
494
|
}
|
|
491
495
|
case "page": {
|
|
492
496
|
memberValidators["page"] = new server_common_1.NoOpValidator();
|
|
493
497
|
break;
|
|
494
498
|
}
|
|
495
|
-
case "
|
|
496
|
-
memberValidators["
|
|
499
|
+
case "open_now": {
|
|
500
|
+
memberValidators["open_now"] = new server_common_1.NoOpValidator();
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
503
|
+
case "timezone": {
|
|
504
|
+
memberValidators["timezone"] = new server_common_1.NoOpValidator();
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
case "categories": {
|
|
508
|
+
memberValidators["categories"] = new server_common_1.NoOpValidator();
|
|
497
509
|
break;
|
|
498
510
|
}
|
|
499
511
|
}
|
|
@@ -504,7 +516,9 @@ var ShopListInput;
|
|
|
504
516
|
...getMemberValidator("lat").validate(obj.lat, `${path}/lat`),
|
|
505
517
|
...getMemberValidator("lon").validate(obj.lon, `${path}/lon`),
|
|
506
518
|
...getMemberValidator("page").validate(obj.page, `${path}/page`),
|
|
507
|
-
...getMemberValidator("
|
|
519
|
+
...getMemberValidator("open_now").validate(obj.open_now, `${path}/open_now`),
|
|
520
|
+
...getMemberValidator("timezone").validate(obj.timezone, `${path}/timezone`),
|
|
521
|
+
...getMemberValidator("categories").validate(obj.categories, `${path}/categories`),
|
|
508
522
|
];
|
|
509
523
|
};
|
|
510
524
|
})(ShopListInput = exports.ShopListInput || (exports.ShopListInput = {}));
|
|
@@ -1704,8 +1718,8 @@ var SearchShopsInput;
|
|
|
1704
1718
|
memberValidators["page"] = new server_common_1.NoOpValidator();
|
|
1705
1719
|
break;
|
|
1706
1720
|
}
|
|
1707
|
-
case "
|
|
1708
|
-
memberValidators["
|
|
1721
|
+
case "tags": {
|
|
1722
|
+
memberValidators["tags"] = new server_common_1.NoOpValidator();
|
|
1709
1723
|
break;
|
|
1710
1724
|
}
|
|
1711
1725
|
}
|
|
@@ -1718,7 +1732,7 @@ var SearchShopsInput;
|
|
|
1718
1732
|
...getMemberValidator("lat").validate(obj.lat, `${path}/lat`),
|
|
1719
1733
|
...getMemberValidator("lon").validate(obj.lon, `${path}/lon`),
|
|
1720
1734
|
...getMemberValidator("page").validate(obj.page, `${path}/page`),
|
|
1721
|
-
...getMemberValidator("
|
|
1735
|
+
...getMemberValidator("tags").validate(obj.tags, `${path}/tags`),
|
|
1722
1736
|
];
|
|
1723
1737
|
};
|
|
1724
1738
|
})(SearchShopsInput = exports.SearchShopsInput || (exports.SearchShopsInput = {}));
|
package/dist-cjs/openapi.json
CHANGED
|
@@ -257,7 +257,8 @@
|
|
|
257
257
|
"schema": {
|
|
258
258
|
"type": "number",
|
|
259
259
|
"format": "double"
|
|
260
|
-
}
|
|
260
|
+
},
|
|
261
|
+
"required": true
|
|
261
262
|
},
|
|
262
263
|
{
|
|
263
264
|
"name": "lon",
|
|
@@ -265,7 +266,8 @@
|
|
|
265
266
|
"schema": {
|
|
266
267
|
"type": "number",
|
|
267
268
|
"format": "double"
|
|
268
|
-
}
|
|
269
|
+
},
|
|
270
|
+
"required": true
|
|
269
271
|
},
|
|
270
272
|
{
|
|
271
273
|
"name": "page",
|
|
@@ -275,7 +277,21 @@
|
|
|
275
277
|
}
|
|
276
278
|
},
|
|
277
279
|
{
|
|
278
|
-
"name": "
|
|
280
|
+
"name": "open_now",
|
|
281
|
+
"in": "query",
|
|
282
|
+
"schema": {
|
|
283
|
+
"type": "boolean"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"name": "timezone",
|
|
288
|
+
"in": "query",
|
|
289
|
+
"schema": {
|
|
290
|
+
"type": "string"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "categories",
|
|
279
295
|
"in": "query",
|
|
280
296
|
"schema": {
|
|
281
297
|
"type": "string"
|
|
@@ -393,7 +409,8 @@
|
|
|
393
409
|
"schema": {
|
|
394
410
|
"type": "number",
|
|
395
411
|
"format": "double"
|
|
396
|
-
}
|
|
412
|
+
},
|
|
413
|
+
"required": true
|
|
397
414
|
},
|
|
398
415
|
{
|
|
399
416
|
"name": "lon",
|
|
@@ -401,7 +418,8 @@
|
|
|
401
418
|
"schema": {
|
|
402
419
|
"type": "number",
|
|
403
420
|
"format": "double"
|
|
404
|
-
}
|
|
421
|
+
},
|
|
422
|
+
"required": true
|
|
405
423
|
},
|
|
406
424
|
{
|
|
407
425
|
"name": "page",
|
|
@@ -411,7 +429,21 @@
|
|
|
411
429
|
}
|
|
412
430
|
},
|
|
413
431
|
{
|
|
414
|
-
"name": "
|
|
432
|
+
"name": "open_now",
|
|
433
|
+
"in": "query",
|
|
434
|
+
"schema": {
|
|
435
|
+
"type": "boolean"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"name": "timezone",
|
|
440
|
+
"in": "query",
|
|
441
|
+
"schema": {
|
|
442
|
+
"type": "string"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "categories",
|
|
415
447
|
"in": "query",
|
|
416
448
|
"schema": {
|
|
417
449
|
"type": "string"
|
|
@@ -463,7 +495,8 @@
|
|
|
463
495
|
"schema": {
|
|
464
496
|
"type": "number",
|
|
465
497
|
"format": "double"
|
|
466
|
-
}
|
|
498
|
+
},
|
|
499
|
+
"required": true
|
|
467
500
|
},
|
|
468
501
|
{
|
|
469
502
|
"name": "lon",
|
|
@@ -471,7 +504,8 @@
|
|
|
471
504
|
"schema": {
|
|
472
505
|
"type": "number",
|
|
473
506
|
"format": "double"
|
|
474
|
-
}
|
|
507
|
+
},
|
|
508
|
+
"required": true
|
|
475
509
|
},
|
|
476
510
|
{
|
|
477
511
|
"name": "page",
|
|
@@ -481,7 +515,21 @@
|
|
|
481
515
|
}
|
|
482
516
|
},
|
|
483
517
|
{
|
|
484
|
-
"name": "
|
|
518
|
+
"name": "open_now",
|
|
519
|
+
"in": "query",
|
|
520
|
+
"schema": {
|
|
521
|
+
"type": "boolean"
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"name": "timezone",
|
|
526
|
+
"in": "query",
|
|
527
|
+
"schema": {
|
|
528
|
+
"type": "string"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"name": "categories",
|
|
485
533
|
"in": "query",
|
|
486
534
|
"schema": {
|
|
487
535
|
"type": "string"
|
|
@@ -899,7 +947,8 @@
|
|
|
899
947
|
"schema": {
|
|
900
948
|
"type": "number",
|
|
901
949
|
"format": "double"
|
|
902
|
-
}
|
|
950
|
+
},
|
|
951
|
+
"required": true
|
|
903
952
|
},
|
|
904
953
|
{
|
|
905
954
|
"name": "lon",
|
|
@@ -907,7 +956,8 @@
|
|
|
907
956
|
"schema": {
|
|
908
957
|
"type": "number",
|
|
909
958
|
"format": "double"
|
|
910
|
-
}
|
|
959
|
+
},
|
|
960
|
+
"required": true
|
|
911
961
|
},
|
|
912
962
|
{
|
|
913
963
|
"name": "page",
|
|
@@ -917,7 +967,21 @@
|
|
|
917
967
|
}
|
|
918
968
|
},
|
|
919
969
|
{
|
|
920
|
-
"name": "
|
|
970
|
+
"name": "open_now",
|
|
971
|
+
"in": "query",
|
|
972
|
+
"schema": {
|
|
973
|
+
"type": "boolean"
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"name": "timezone",
|
|
978
|
+
"in": "query",
|
|
979
|
+
"schema": {
|
|
980
|
+
"type": "string"
|
|
981
|
+
}
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"name": "categories",
|
|
921
985
|
"in": "query",
|
|
922
986
|
"schema": {
|
|
923
987
|
"type": "string"
|
|
@@ -969,7 +1033,8 @@
|
|
|
969
1033
|
"schema": {
|
|
970
1034
|
"type": "number",
|
|
971
1035
|
"format": "double"
|
|
972
|
-
}
|
|
1036
|
+
},
|
|
1037
|
+
"required": true
|
|
973
1038
|
},
|
|
974
1039
|
{
|
|
975
1040
|
"name": "lon",
|
|
@@ -977,7 +1042,8 @@
|
|
|
977
1042
|
"schema": {
|
|
978
1043
|
"type": "number",
|
|
979
1044
|
"format": "double"
|
|
980
|
-
}
|
|
1045
|
+
},
|
|
1046
|
+
"required": true
|
|
981
1047
|
},
|
|
982
1048
|
{
|
|
983
1049
|
"name": "page",
|
|
@@ -987,7 +1053,21 @@
|
|
|
987
1053
|
}
|
|
988
1054
|
},
|
|
989
1055
|
{
|
|
990
|
-
"name": "
|
|
1056
|
+
"name": "open_now",
|
|
1057
|
+
"in": "query",
|
|
1058
|
+
"schema": {
|
|
1059
|
+
"type": "boolean"
|
|
1060
|
+
}
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"name": "timezone",
|
|
1064
|
+
"in": "query",
|
|
1065
|
+
"schema": {
|
|
1066
|
+
"type": "string"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
{
|
|
1070
|
+
"name": "categories",
|
|
991
1071
|
"in": "query",
|
|
992
1072
|
"schema": {
|
|
993
1073
|
"type": "string"
|
|
@@ -1171,7 +1251,8 @@
|
|
|
1171
1251
|
"schema": {
|
|
1172
1252
|
"type": "number",
|
|
1173
1253
|
"format": "double"
|
|
1174
|
-
}
|
|
1254
|
+
},
|
|
1255
|
+
"required": true
|
|
1175
1256
|
},
|
|
1176
1257
|
{
|
|
1177
1258
|
"name": "lon",
|
|
@@ -1179,7 +1260,8 @@
|
|
|
1179
1260
|
"schema": {
|
|
1180
1261
|
"type": "number",
|
|
1181
1262
|
"format": "double"
|
|
1182
|
-
}
|
|
1263
|
+
},
|
|
1264
|
+
"required": true
|
|
1183
1265
|
},
|
|
1184
1266
|
{
|
|
1185
1267
|
"name": "page",
|
|
@@ -1189,7 +1271,21 @@
|
|
|
1189
1271
|
}
|
|
1190
1272
|
},
|
|
1191
1273
|
{
|
|
1192
|
-
"name": "
|
|
1274
|
+
"name": "open_now",
|
|
1275
|
+
"in": "query",
|
|
1276
|
+
"schema": {
|
|
1277
|
+
"type": "boolean"
|
|
1278
|
+
}
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"name": "timezone",
|
|
1282
|
+
"in": "query",
|
|
1283
|
+
"schema": {
|
|
1284
|
+
"type": "string"
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"name": "categories",
|
|
1193
1289
|
"in": "query",
|
|
1194
1290
|
"schema": {
|
|
1195
1291
|
"type": "string"
|
|
@@ -185,20 +185,50 @@ const deserializeFavoriteShopsRequest = async (output, context) => {
|
|
|
185
185
|
}
|
|
186
186
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
187
187
|
}
|
|
188
|
-
if (query["
|
|
188
|
+
if (query["open_now"] !== undefined) {
|
|
189
189
|
let queryValue;
|
|
190
|
-
if (Array.isArray(query["
|
|
191
|
-
if (query["
|
|
192
|
-
queryValue = query["
|
|
190
|
+
if (Array.isArray(query["open_now"])) {
|
|
191
|
+
if (query["open_now"].length === 1) {
|
|
192
|
+
queryValue = query["open_now"][0];
|
|
193
193
|
}
|
|
194
194
|
else {
|
|
195
195
|
throw new server_common_1.SerializationException();
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
else {
|
|
199
|
-
queryValue = query["
|
|
199
|
+
queryValue = query["open_now"];
|
|
200
|
+
}
|
|
201
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
202
|
+
}
|
|
203
|
+
if (query["timezone"] !== undefined) {
|
|
204
|
+
let queryValue;
|
|
205
|
+
if (Array.isArray(query["timezone"])) {
|
|
206
|
+
if (query["timezone"].length === 1) {
|
|
207
|
+
queryValue = query["timezone"][0];
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
throw new server_common_1.SerializationException();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
queryValue = query["timezone"];
|
|
200
215
|
}
|
|
201
|
-
contents.
|
|
216
|
+
contents.timezone = queryValue;
|
|
217
|
+
}
|
|
218
|
+
if (query["categories"] !== undefined) {
|
|
219
|
+
let queryValue;
|
|
220
|
+
if (Array.isArray(query["categories"])) {
|
|
221
|
+
if (query["categories"].length === 1) {
|
|
222
|
+
queryValue = query["categories"][0];
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
throw new server_common_1.SerializationException();
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
else {
|
|
229
|
+
queryValue = query["categories"];
|
|
230
|
+
}
|
|
231
|
+
contents.categories = queryValue;
|
|
202
232
|
}
|
|
203
233
|
}
|
|
204
234
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -396,20 +426,50 @@ const deserializeNearbyShopsRequest = async (output, context) => {
|
|
|
396
426
|
}
|
|
397
427
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
398
428
|
}
|
|
399
|
-
if (query["
|
|
429
|
+
if (query["open_now"] !== undefined) {
|
|
400
430
|
let queryValue;
|
|
401
|
-
if (Array.isArray(query["
|
|
402
|
-
if (query["
|
|
403
|
-
queryValue = query["
|
|
431
|
+
if (Array.isArray(query["open_now"])) {
|
|
432
|
+
if (query["open_now"].length === 1) {
|
|
433
|
+
queryValue = query["open_now"][0];
|
|
404
434
|
}
|
|
405
435
|
else {
|
|
406
436
|
throw new server_common_1.SerializationException();
|
|
407
437
|
}
|
|
408
438
|
}
|
|
409
439
|
else {
|
|
410
|
-
queryValue = query["
|
|
440
|
+
queryValue = query["open_now"];
|
|
411
441
|
}
|
|
412
|
-
contents.
|
|
442
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
443
|
+
}
|
|
444
|
+
if (query["timezone"] !== undefined) {
|
|
445
|
+
let queryValue;
|
|
446
|
+
if (Array.isArray(query["timezone"])) {
|
|
447
|
+
if (query["timezone"].length === 1) {
|
|
448
|
+
queryValue = query["timezone"][0];
|
|
449
|
+
}
|
|
450
|
+
else {
|
|
451
|
+
throw new server_common_1.SerializationException();
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
queryValue = query["timezone"];
|
|
456
|
+
}
|
|
457
|
+
contents.timezone = queryValue;
|
|
458
|
+
}
|
|
459
|
+
if (query["categories"] !== undefined) {
|
|
460
|
+
let queryValue;
|
|
461
|
+
if (Array.isArray(query["categories"])) {
|
|
462
|
+
if (query["categories"].length === 1) {
|
|
463
|
+
queryValue = query["categories"][0];
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
466
|
+
throw new server_common_1.SerializationException();
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
else {
|
|
470
|
+
queryValue = query["categories"];
|
|
471
|
+
}
|
|
472
|
+
contents.categories = queryValue;
|
|
413
473
|
}
|
|
414
474
|
}
|
|
415
475
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -483,20 +543,50 @@ const deserializeNearbyShopsPublicRequest = async (output, context) => {
|
|
|
483
543
|
}
|
|
484
544
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
485
545
|
}
|
|
486
|
-
if (query["
|
|
546
|
+
if (query["open_now"] !== undefined) {
|
|
487
547
|
let queryValue;
|
|
488
|
-
if (Array.isArray(query["
|
|
489
|
-
if (query["
|
|
490
|
-
queryValue = query["
|
|
548
|
+
if (Array.isArray(query["open_now"])) {
|
|
549
|
+
if (query["open_now"].length === 1) {
|
|
550
|
+
queryValue = query["open_now"][0];
|
|
491
551
|
}
|
|
492
552
|
else {
|
|
493
553
|
throw new server_common_1.SerializationException();
|
|
494
554
|
}
|
|
495
555
|
}
|
|
496
556
|
else {
|
|
497
|
-
queryValue = query["
|
|
557
|
+
queryValue = query["open_now"];
|
|
558
|
+
}
|
|
559
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
560
|
+
}
|
|
561
|
+
if (query["timezone"] !== undefined) {
|
|
562
|
+
let queryValue;
|
|
563
|
+
if (Array.isArray(query["timezone"])) {
|
|
564
|
+
if (query["timezone"].length === 1) {
|
|
565
|
+
queryValue = query["timezone"][0];
|
|
566
|
+
}
|
|
567
|
+
else {
|
|
568
|
+
throw new server_common_1.SerializationException();
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
else {
|
|
572
|
+
queryValue = query["timezone"];
|
|
573
|
+
}
|
|
574
|
+
contents.timezone = queryValue;
|
|
575
|
+
}
|
|
576
|
+
if (query["categories"] !== undefined) {
|
|
577
|
+
let queryValue;
|
|
578
|
+
if (Array.isArray(query["categories"])) {
|
|
579
|
+
if (query["categories"].length === 1) {
|
|
580
|
+
queryValue = query["categories"][0];
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
throw new server_common_1.SerializationException();
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
else {
|
|
587
|
+
queryValue = query["categories"];
|
|
498
588
|
}
|
|
499
|
-
contents.
|
|
589
|
+
contents.categories = queryValue;
|
|
500
590
|
}
|
|
501
591
|
}
|
|
502
592
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -981,20 +1071,50 @@ const deserializePopularShopsRequest = async (output, context) => {
|
|
|
981
1071
|
}
|
|
982
1072
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
983
1073
|
}
|
|
984
|
-
if (query["
|
|
1074
|
+
if (query["open_now"] !== undefined) {
|
|
985
1075
|
let queryValue;
|
|
986
|
-
if (Array.isArray(query["
|
|
987
|
-
if (query["
|
|
988
|
-
queryValue = query["
|
|
1076
|
+
if (Array.isArray(query["open_now"])) {
|
|
1077
|
+
if (query["open_now"].length === 1) {
|
|
1078
|
+
queryValue = query["open_now"][0];
|
|
989
1079
|
}
|
|
990
1080
|
else {
|
|
991
1081
|
throw new server_common_1.SerializationException();
|
|
992
1082
|
}
|
|
993
1083
|
}
|
|
994
1084
|
else {
|
|
995
|
-
queryValue = query["
|
|
1085
|
+
queryValue = query["open_now"];
|
|
1086
|
+
}
|
|
1087
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
1088
|
+
}
|
|
1089
|
+
if (query["timezone"] !== undefined) {
|
|
1090
|
+
let queryValue;
|
|
1091
|
+
if (Array.isArray(query["timezone"])) {
|
|
1092
|
+
if (query["timezone"].length === 1) {
|
|
1093
|
+
queryValue = query["timezone"][0];
|
|
1094
|
+
}
|
|
1095
|
+
else {
|
|
1096
|
+
throw new server_common_1.SerializationException();
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
else {
|
|
1100
|
+
queryValue = query["timezone"];
|
|
996
1101
|
}
|
|
997
|
-
contents.
|
|
1102
|
+
contents.timezone = queryValue;
|
|
1103
|
+
}
|
|
1104
|
+
if (query["categories"] !== undefined) {
|
|
1105
|
+
let queryValue;
|
|
1106
|
+
if (Array.isArray(query["categories"])) {
|
|
1107
|
+
if (query["categories"].length === 1) {
|
|
1108
|
+
queryValue = query["categories"][0];
|
|
1109
|
+
}
|
|
1110
|
+
else {
|
|
1111
|
+
throw new server_common_1.SerializationException();
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
else {
|
|
1115
|
+
queryValue = query["categories"];
|
|
1116
|
+
}
|
|
1117
|
+
contents.categories = queryValue;
|
|
998
1118
|
}
|
|
999
1119
|
}
|
|
1000
1120
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -1068,20 +1188,50 @@ const deserializePopularShopsPublicRequest = async (output, context) => {
|
|
|
1068
1188
|
}
|
|
1069
1189
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
1070
1190
|
}
|
|
1071
|
-
if (query["
|
|
1191
|
+
if (query["open_now"] !== undefined) {
|
|
1072
1192
|
let queryValue;
|
|
1073
|
-
if (Array.isArray(query["
|
|
1074
|
-
if (query["
|
|
1075
|
-
queryValue = query["
|
|
1193
|
+
if (Array.isArray(query["open_now"])) {
|
|
1194
|
+
if (query["open_now"].length === 1) {
|
|
1195
|
+
queryValue = query["open_now"][0];
|
|
1076
1196
|
}
|
|
1077
1197
|
else {
|
|
1078
1198
|
throw new server_common_1.SerializationException();
|
|
1079
1199
|
}
|
|
1080
1200
|
}
|
|
1081
1201
|
else {
|
|
1082
|
-
queryValue = query["
|
|
1202
|
+
queryValue = query["open_now"];
|
|
1083
1203
|
}
|
|
1084
|
-
contents.
|
|
1204
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
1205
|
+
}
|
|
1206
|
+
if (query["timezone"] !== undefined) {
|
|
1207
|
+
let queryValue;
|
|
1208
|
+
if (Array.isArray(query["timezone"])) {
|
|
1209
|
+
if (query["timezone"].length === 1) {
|
|
1210
|
+
queryValue = query["timezone"][0];
|
|
1211
|
+
}
|
|
1212
|
+
else {
|
|
1213
|
+
throw new server_common_1.SerializationException();
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
else {
|
|
1217
|
+
queryValue = query["timezone"];
|
|
1218
|
+
}
|
|
1219
|
+
contents.timezone = queryValue;
|
|
1220
|
+
}
|
|
1221
|
+
if (query["categories"] !== undefined) {
|
|
1222
|
+
let queryValue;
|
|
1223
|
+
if (Array.isArray(query["categories"])) {
|
|
1224
|
+
if (query["categories"].length === 1) {
|
|
1225
|
+
queryValue = query["categories"][0];
|
|
1226
|
+
}
|
|
1227
|
+
else {
|
|
1228
|
+
throw new server_common_1.SerializationException();
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
else {
|
|
1232
|
+
queryValue = query["categories"];
|
|
1233
|
+
}
|
|
1234
|
+
contents.categories = queryValue;
|
|
1085
1235
|
}
|
|
1086
1236
|
}
|
|
1087
1237
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -1155,20 +1305,50 @@ const deserializeRadiusShopsRequest = async (output, context) => {
|
|
|
1155
1305
|
}
|
|
1156
1306
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
1157
1307
|
}
|
|
1158
|
-
if (query["
|
|
1308
|
+
if (query["open_now"] !== undefined) {
|
|
1159
1309
|
let queryValue;
|
|
1160
|
-
if (Array.isArray(query["
|
|
1161
|
-
if (query["
|
|
1162
|
-
queryValue = query["
|
|
1310
|
+
if (Array.isArray(query["open_now"])) {
|
|
1311
|
+
if (query["open_now"].length === 1) {
|
|
1312
|
+
queryValue = query["open_now"][0];
|
|
1163
1313
|
}
|
|
1164
1314
|
else {
|
|
1165
1315
|
throw new server_common_1.SerializationException();
|
|
1166
1316
|
}
|
|
1167
1317
|
}
|
|
1168
1318
|
else {
|
|
1169
|
-
queryValue = query["
|
|
1319
|
+
queryValue = query["open_now"];
|
|
1320
|
+
}
|
|
1321
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
1322
|
+
}
|
|
1323
|
+
if (query["timezone"] !== undefined) {
|
|
1324
|
+
let queryValue;
|
|
1325
|
+
if (Array.isArray(query["timezone"])) {
|
|
1326
|
+
if (query["timezone"].length === 1) {
|
|
1327
|
+
queryValue = query["timezone"][0];
|
|
1328
|
+
}
|
|
1329
|
+
else {
|
|
1330
|
+
throw new server_common_1.SerializationException();
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
else {
|
|
1334
|
+
queryValue = query["timezone"];
|
|
1335
|
+
}
|
|
1336
|
+
contents.timezone = queryValue;
|
|
1337
|
+
}
|
|
1338
|
+
if (query["categories"] !== undefined) {
|
|
1339
|
+
let queryValue;
|
|
1340
|
+
if (Array.isArray(query["categories"])) {
|
|
1341
|
+
if (query["categories"].length === 1) {
|
|
1342
|
+
queryValue = query["categories"][0];
|
|
1343
|
+
}
|
|
1344
|
+
else {
|
|
1345
|
+
throw new server_common_1.SerializationException();
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
else {
|
|
1349
|
+
queryValue = query["categories"];
|
|
1170
1350
|
}
|
|
1171
|
-
contents.
|
|
1351
|
+
contents.categories = queryValue;
|
|
1172
1352
|
}
|
|
1173
1353
|
}
|
|
1174
1354
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -1513,7 +1693,7 @@ const deserializeSearchShopsPublicRequest = async (output, context) => {
|
|
|
1513
1693
|
else {
|
|
1514
1694
|
queryValue = query["filters"];
|
|
1515
1695
|
}
|
|
1516
|
-
contents.
|
|
1696
|
+
contents.tags = queryValue;
|
|
1517
1697
|
}
|
|
1518
1698
|
}
|
|
1519
1699
|
await (0, smithy_client_1.collectBody)(output.body, context);
|