@sparkrewards/sra-sdk 0.0.3 → 0.0.5
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 +17 -8
- package/dist-cjs/openapi.json +72 -18
- package/dist-cjs/protocols/Aws_restJson1.js +127 -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 +17 -8
- package/dist-es/openapi.json +72 -18
- package/dist-es/protocols/Aws_restJson1.js +128 -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 +5 -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,27 @@ 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 "categories": {
|
|
504
|
+
memberValidators["categories"] = new server_common_1.NoOpValidator();
|
|
497
505
|
break;
|
|
498
506
|
}
|
|
499
507
|
}
|
|
@@ -504,7 +512,8 @@ var ShopListInput;
|
|
|
504
512
|
...getMemberValidator("lat").validate(obj.lat, `${path}/lat`),
|
|
505
513
|
...getMemberValidator("lon").validate(obj.lon, `${path}/lon`),
|
|
506
514
|
...getMemberValidator("page").validate(obj.page, `${path}/page`),
|
|
507
|
-
...getMemberValidator("
|
|
515
|
+
...getMemberValidator("open_now").validate(obj.open_now, `${path}/open_now`),
|
|
516
|
+
...getMemberValidator("categories").validate(obj.categories, `${path}/categories`),
|
|
508
517
|
];
|
|
509
518
|
};
|
|
510
519
|
})(ShopListInput = exports.ShopListInput || (exports.ShopListInput = {}));
|
|
@@ -1704,8 +1713,8 @@ var SearchShopsInput;
|
|
|
1704
1713
|
memberValidators["page"] = new server_common_1.NoOpValidator();
|
|
1705
1714
|
break;
|
|
1706
1715
|
}
|
|
1707
|
-
case "
|
|
1708
|
-
memberValidators["
|
|
1716
|
+
case "tags": {
|
|
1717
|
+
memberValidators["tags"] = new server_common_1.NoOpValidator();
|
|
1709
1718
|
break;
|
|
1710
1719
|
}
|
|
1711
1720
|
}
|
|
@@ -1718,7 +1727,7 @@ var SearchShopsInput;
|
|
|
1718
1727
|
...getMemberValidator("lat").validate(obj.lat, `${path}/lat`),
|
|
1719
1728
|
...getMemberValidator("lon").validate(obj.lon, `${path}/lon`),
|
|
1720
1729
|
...getMemberValidator("page").validate(obj.page, `${path}/page`),
|
|
1721
|
-
...getMemberValidator("
|
|
1730
|
+
...getMemberValidator("tags").validate(obj.tags, `${path}/tags`),
|
|
1722
1731
|
];
|
|
1723
1732
|
};
|
|
1724
1733
|
})(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,14 @@
|
|
|
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": "categories",
|
|
279
288
|
"in": "query",
|
|
280
289
|
"schema": {
|
|
281
290
|
"type": "string"
|
|
@@ -393,7 +402,8 @@
|
|
|
393
402
|
"schema": {
|
|
394
403
|
"type": "number",
|
|
395
404
|
"format": "double"
|
|
396
|
-
}
|
|
405
|
+
},
|
|
406
|
+
"required": true
|
|
397
407
|
},
|
|
398
408
|
{
|
|
399
409
|
"name": "lon",
|
|
@@ -401,7 +411,8 @@
|
|
|
401
411
|
"schema": {
|
|
402
412
|
"type": "number",
|
|
403
413
|
"format": "double"
|
|
404
|
-
}
|
|
414
|
+
},
|
|
415
|
+
"required": true
|
|
405
416
|
},
|
|
406
417
|
{
|
|
407
418
|
"name": "page",
|
|
@@ -411,7 +422,14 @@
|
|
|
411
422
|
}
|
|
412
423
|
},
|
|
413
424
|
{
|
|
414
|
-
"name": "
|
|
425
|
+
"name": "open_now",
|
|
426
|
+
"in": "query",
|
|
427
|
+
"schema": {
|
|
428
|
+
"type": "boolean"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"name": "categories",
|
|
415
433
|
"in": "query",
|
|
416
434
|
"schema": {
|
|
417
435
|
"type": "string"
|
|
@@ -463,7 +481,8 @@
|
|
|
463
481
|
"schema": {
|
|
464
482
|
"type": "number",
|
|
465
483
|
"format": "double"
|
|
466
|
-
}
|
|
484
|
+
},
|
|
485
|
+
"required": true
|
|
467
486
|
},
|
|
468
487
|
{
|
|
469
488
|
"name": "lon",
|
|
@@ -471,7 +490,8 @@
|
|
|
471
490
|
"schema": {
|
|
472
491
|
"type": "number",
|
|
473
492
|
"format": "double"
|
|
474
|
-
}
|
|
493
|
+
},
|
|
494
|
+
"required": true
|
|
475
495
|
},
|
|
476
496
|
{
|
|
477
497
|
"name": "page",
|
|
@@ -481,7 +501,14 @@
|
|
|
481
501
|
}
|
|
482
502
|
},
|
|
483
503
|
{
|
|
484
|
-
"name": "
|
|
504
|
+
"name": "open_now",
|
|
505
|
+
"in": "query",
|
|
506
|
+
"schema": {
|
|
507
|
+
"type": "boolean"
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"name": "categories",
|
|
485
512
|
"in": "query",
|
|
486
513
|
"schema": {
|
|
487
514
|
"type": "string"
|
|
@@ -899,7 +926,8 @@
|
|
|
899
926
|
"schema": {
|
|
900
927
|
"type": "number",
|
|
901
928
|
"format": "double"
|
|
902
|
-
}
|
|
929
|
+
},
|
|
930
|
+
"required": true
|
|
903
931
|
},
|
|
904
932
|
{
|
|
905
933
|
"name": "lon",
|
|
@@ -907,7 +935,8 @@
|
|
|
907
935
|
"schema": {
|
|
908
936
|
"type": "number",
|
|
909
937
|
"format": "double"
|
|
910
|
-
}
|
|
938
|
+
},
|
|
939
|
+
"required": true
|
|
911
940
|
},
|
|
912
941
|
{
|
|
913
942
|
"name": "page",
|
|
@@ -917,7 +946,14 @@
|
|
|
917
946
|
}
|
|
918
947
|
},
|
|
919
948
|
{
|
|
920
|
-
"name": "
|
|
949
|
+
"name": "open_now",
|
|
950
|
+
"in": "query",
|
|
951
|
+
"schema": {
|
|
952
|
+
"type": "boolean"
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"name": "categories",
|
|
921
957
|
"in": "query",
|
|
922
958
|
"schema": {
|
|
923
959
|
"type": "string"
|
|
@@ -969,7 +1005,8 @@
|
|
|
969
1005
|
"schema": {
|
|
970
1006
|
"type": "number",
|
|
971
1007
|
"format": "double"
|
|
972
|
-
}
|
|
1008
|
+
},
|
|
1009
|
+
"required": true
|
|
973
1010
|
},
|
|
974
1011
|
{
|
|
975
1012
|
"name": "lon",
|
|
@@ -977,7 +1014,8 @@
|
|
|
977
1014
|
"schema": {
|
|
978
1015
|
"type": "number",
|
|
979
1016
|
"format": "double"
|
|
980
|
-
}
|
|
1017
|
+
},
|
|
1018
|
+
"required": true
|
|
981
1019
|
},
|
|
982
1020
|
{
|
|
983
1021
|
"name": "page",
|
|
@@ -987,7 +1025,14 @@
|
|
|
987
1025
|
}
|
|
988
1026
|
},
|
|
989
1027
|
{
|
|
990
|
-
"name": "
|
|
1028
|
+
"name": "open_now",
|
|
1029
|
+
"in": "query",
|
|
1030
|
+
"schema": {
|
|
1031
|
+
"type": "boolean"
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"name": "categories",
|
|
991
1036
|
"in": "query",
|
|
992
1037
|
"schema": {
|
|
993
1038
|
"type": "string"
|
|
@@ -1171,7 +1216,8 @@
|
|
|
1171
1216
|
"schema": {
|
|
1172
1217
|
"type": "number",
|
|
1173
1218
|
"format": "double"
|
|
1174
|
-
}
|
|
1219
|
+
},
|
|
1220
|
+
"required": true
|
|
1175
1221
|
},
|
|
1176
1222
|
{
|
|
1177
1223
|
"name": "lon",
|
|
@@ -1179,7 +1225,8 @@
|
|
|
1179
1225
|
"schema": {
|
|
1180
1226
|
"type": "number",
|
|
1181
1227
|
"format": "double"
|
|
1182
|
-
}
|
|
1228
|
+
},
|
|
1229
|
+
"required": true
|
|
1183
1230
|
},
|
|
1184
1231
|
{
|
|
1185
1232
|
"name": "page",
|
|
@@ -1189,7 +1236,14 @@
|
|
|
1189
1236
|
}
|
|
1190
1237
|
},
|
|
1191
1238
|
{
|
|
1192
|
-
"name": "
|
|
1239
|
+
"name": "open_now",
|
|
1240
|
+
"in": "query",
|
|
1241
|
+
"schema": {
|
|
1242
|
+
"type": "boolean"
|
|
1243
|
+
}
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"name": "categories",
|
|
1193
1247
|
"in": "query",
|
|
1194
1248
|
"schema": {
|
|
1195
1249
|
"type": "string"
|
|
@@ -185,20 +185,35 @@ 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
200
|
}
|
|
201
|
-
contents.
|
|
201
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
202
|
+
}
|
|
203
|
+
if (query["categories"] !== undefined) {
|
|
204
|
+
let queryValue;
|
|
205
|
+
if (Array.isArray(query["categories"])) {
|
|
206
|
+
if (query["categories"].length === 1) {
|
|
207
|
+
queryValue = query["categories"][0];
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
throw new server_common_1.SerializationException();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
queryValue = query["categories"];
|
|
215
|
+
}
|
|
216
|
+
contents.categories = queryValue;
|
|
202
217
|
}
|
|
203
218
|
}
|
|
204
219
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -396,20 +411,35 @@ const deserializeNearbyShopsRequest = async (output, context) => {
|
|
|
396
411
|
}
|
|
397
412
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
398
413
|
}
|
|
399
|
-
if (query["
|
|
414
|
+
if (query["open_now"] !== undefined) {
|
|
400
415
|
let queryValue;
|
|
401
|
-
if (Array.isArray(query["
|
|
402
|
-
if (query["
|
|
403
|
-
queryValue = query["
|
|
416
|
+
if (Array.isArray(query["open_now"])) {
|
|
417
|
+
if (query["open_now"].length === 1) {
|
|
418
|
+
queryValue = query["open_now"][0];
|
|
404
419
|
}
|
|
405
420
|
else {
|
|
406
421
|
throw new server_common_1.SerializationException();
|
|
407
422
|
}
|
|
408
423
|
}
|
|
409
424
|
else {
|
|
410
|
-
queryValue = query["
|
|
425
|
+
queryValue = query["open_now"];
|
|
426
|
+
}
|
|
427
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
428
|
+
}
|
|
429
|
+
if (query["categories"] !== undefined) {
|
|
430
|
+
let queryValue;
|
|
431
|
+
if (Array.isArray(query["categories"])) {
|
|
432
|
+
if (query["categories"].length === 1) {
|
|
433
|
+
queryValue = query["categories"][0];
|
|
434
|
+
}
|
|
435
|
+
else {
|
|
436
|
+
throw new server_common_1.SerializationException();
|
|
437
|
+
}
|
|
411
438
|
}
|
|
412
|
-
|
|
439
|
+
else {
|
|
440
|
+
queryValue = query["categories"];
|
|
441
|
+
}
|
|
442
|
+
contents.categories = queryValue;
|
|
413
443
|
}
|
|
414
444
|
}
|
|
415
445
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -483,20 +513,35 @@ const deserializeNearbyShopsPublicRequest = async (output, context) => {
|
|
|
483
513
|
}
|
|
484
514
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
485
515
|
}
|
|
486
|
-
if (query["
|
|
516
|
+
if (query["open_now"] !== undefined) {
|
|
487
517
|
let queryValue;
|
|
488
|
-
if (Array.isArray(query["
|
|
489
|
-
if (query["
|
|
490
|
-
queryValue = query["
|
|
518
|
+
if (Array.isArray(query["open_now"])) {
|
|
519
|
+
if (query["open_now"].length === 1) {
|
|
520
|
+
queryValue = query["open_now"][0];
|
|
491
521
|
}
|
|
492
522
|
else {
|
|
493
523
|
throw new server_common_1.SerializationException();
|
|
494
524
|
}
|
|
495
525
|
}
|
|
496
526
|
else {
|
|
497
|
-
queryValue = query["
|
|
527
|
+
queryValue = query["open_now"];
|
|
528
|
+
}
|
|
529
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
530
|
+
}
|
|
531
|
+
if (query["categories"] !== undefined) {
|
|
532
|
+
let queryValue;
|
|
533
|
+
if (Array.isArray(query["categories"])) {
|
|
534
|
+
if (query["categories"].length === 1) {
|
|
535
|
+
queryValue = query["categories"][0];
|
|
536
|
+
}
|
|
537
|
+
else {
|
|
538
|
+
throw new server_common_1.SerializationException();
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
else {
|
|
542
|
+
queryValue = query["categories"];
|
|
498
543
|
}
|
|
499
|
-
contents.
|
|
544
|
+
contents.categories = queryValue;
|
|
500
545
|
}
|
|
501
546
|
}
|
|
502
547
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -981,20 +1026,35 @@ const deserializePopularShopsRequest = async (output, context) => {
|
|
|
981
1026
|
}
|
|
982
1027
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
983
1028
|
}
|
|
984
|
-
if (query["
|
|
1029
|
+
if (query["open_now"] !== undefined) {
|
|
985
1030
|
let queryValue;
|
|
986
|
-
if (Array.isArray(query["
|
|
987
|
-
if (query["
|
|
988
|
-
queryValue = query["
|
|
1031
|
+
if (Array.isArray(query["open_now"])) {
|
|
1032
|
+
if (query["open_now"].length === 1) {
|
|
1033
|
+
queryValue = query["open_now"][0];
|
|
989
1034
|
}
|
|
990
1035
|
else {
|
|
991
1036
|
throw new server_common_1.SerializationException();
|
|
992
1037
|
}
|
|
993
1038
|
}
|
|
994
1039
|
else {
|
|
995
|
-
queryValue = query["
|
|
1040
|
+
queryValue = query["open_now"];
|
|
996
1041
|
}
|
|
997
|
-
contents.
|
|
1042
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
1043
|
+
}
|
|
1044
|
+
if (query["categories"] !== undefined) {
|
|
1045
|
+
let queryValue;
|
|
1046
|
+
if (Array.isArray(query["categories"])) {
|
|
1047
|
+
if (query["categories"].length === 1) {
|
|
1048
|
+
queryValue = query["categories"][0];
|
|
1049
|
+
}
|
|
1050
|
+
else {
|
|
1051
|
+
throw new server_common_1.SerializationException();
|
|
1052
|
+
}
|
|
1053
|
+
}
|
|
1054
|
+
else {
|
|
1055
|
+
queryValue = query["categories"];
|
|
1056
|
+
}
|
|
1057
|
+
contents.categories = queryValue;
|
|
998
1058
|
}
|
|
999
1059
|
}
|
|
1000
1060
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -1068,20 +1128,35 @@ const deserializePopularShopsPublicRequest = async (output, context) => {
|
|
|
1068
1128
|
}
|
|
1069
1129
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
1070
1130
|
}
|
|
1071
|
-
if (query["
|
|
1131
|
+
if (query["open_now"] !== undefined) {
|
|
1072
1132
|
let queryValue;
|
|
1073
|
-
if (Array.isArray(query["
|
|
1074
|
-
if (query["
|
|
1075
|
-
queryValue = query["
|
|
1133
|
+
if (Array.isArray(query["open_now"])) {
|
|
1134
|
+
if (query["open_now"].length === 1) {
|
|
1135
|
+
queryValue = query["open_now"][0];
|
|
1076
1136
|
}
|
|
1077
1137
|
else {
|
|
1078
1138
|
throw new server_common_1.SerializationException();
|
|
1079
1139
|
}
|
|
1080
1140
|
}
|
|
1081
1141
|
else {
|
|
1082
|
-
queryValue = query["
|
|
1142
|
+
queryValue = query["open_now"];
|
|
1143
|
+
}
|
|
1144
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
1145
|
+
}
|
|
1146
|
+
if (query["categories"] !== undefined) {
|
|
1147
|
+
let queryValue;
|
|
1148
|
+
if (Array.isArray(query["categories"])) {
|
|
1149
|
+
if (query["categories"].length === 1) {
|
|
1150
|
+
queryValue = query["categories"][0];
|
|
1151
|
+
}
|
|
1152
|
+
else {
|
|
1153
|
+
throw new server_common_1.SerializationException();
|
|
1154
|
+
}
|
|
1083
1155
|
}
|
|
1084
|
-
|
|
1156
|
+
else {
|
|
1157
|
+
queryValue = query["categories"];
|
|
1158
|
+
}
|
|
1159
|
+
contents.categories = queryValue;
|
|
1085
1160
|
}
|
|
1086
1161
|
}
|
|
1087
1162
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -1155,20 +1230,35 @@ const deserializeRadiusShopsRequest = async (output, context) => {
|
|
|
1155
1230
|
}
|
|
1156
1231
|
contents.page = (0, smithy_client_1.strictParseInt32)(queryValue);
|
|
1157
1232
|
}
|
|
1158
|
-
if (query["
|
|
1233
|
+
if (query["open_now"] !== undefined) {
|
|
1159
1234
|
let queryValue;
|
|
1160
|
-
if (Array.isArray(query["
|
|
1161
|
-
if (query["
|
|
1162
|
-
queryValue = query["
|
|
1235
|
+
if (Array.isArray(query["open_now"])) {
|
|
1236
|
+
if (query["open_now"].length === 1) {
|
|
1237
|
+
queryValue = query["open_now"][0];
|
|
1163
1238
|
}
|
|
1164
1239
|
else {
|
|
1165
1240
|
throw new server_common_1.SerializationException();
|
|
1166
1241
|
}
|
|
1167
1242
|
}
|
|
1168
1243
|
else {
|
|
1169
|
-
queryValue = query["
|
|
1244
|
+
queryValue = query["open_now"];
|
|
1245
|
+
}
|
|
1246
|
+
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
1247
|
+
}
|
|
1248
|
+
if (query["categories"] !== undefined) {
|
|
1249
|
+
let queryValue;
|
|
1250
|
+
if (Array.isArray(query["categories"])) {
|
|
1251
|
+
if (query["categories"].length === 1) {
|
|
1252
|
+
queryValue = query["categories"][0];
|
|
1253
|
+
}
|
|
1254
|
+
else {
|
|
1255
|
+
throw new server_common_1.SerializationException();
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1258
|
+
else {
|
|
1259
|
+
queryValue = query["categories"];
|
|
1170
1260
|
}
|
|
1171
|
-
contents.
|
|
1261
|
+
contents.categories = queryValue;
|
|
1172
1262
|
}
|
|
1173
1263
|
}
|
|
1174
1264
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -1513,7 +1603,7 @@ const deserializeSearchShopsPublicRequest = async (output, context) => {
|
|
|
1513
1603
|
else {
|
|
1514
1604
|
queryValue = query["filters"];
|
|
1515
1605
|
}
|
|
1516
|
-
contents.
|
|
1606
|
+
contents.tags = queryValue;
|
|
1517
1607
|
}
|
|
1518
1608
|
}
|
|
1519
1609
|
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
@@ -185,7 +185,10 @@ const getAppAPIServiceHandler = (service) => {
|
|
|
185
185
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
186
186
|
{ type: 'path_literal', value: "shops" },
|
|
187
187
|
{ type: 'path_literal', value: "favorite" },
|
|
188
|
-
], [
|
|
188
|
+
], [
|
|
189
|
+
{ type: 'query', key: "lat" },
|
|
190
|
+
{ type: 'query', key: "lon" },
|
|
191
|
+
], { service: "AppAPI", operation: "FavoriteShops" }),
|
|
189
192
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
190
193
|
{ type: 'path_literal', value: "shops" },
|
|
191
194
|
{ type: 'path_literal', value: "shop" },
|
|
@@ -208,11 +211,17 @@ const getAppAPIServiceHandler = (service) => {
|
|
|
208
211
|
], { service: "AppAPI", operation: "LikeOrg" }),
|
|
209
212
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
210
213
|
{ type: 'path_literal', value: "shops" },
|
|
211
|
-
], [
|
|
214
|
+
], [
|
|
215
|
+
{ type: 'query', key: "lat" },
|
|
216
|
+
{ type: 'query', key: "lon" },
|
|
217
|
+
], { service: "AppAPI", operation: "NearbyShops" }),
|
|
212
218
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
213
219
|
{ type: 'path_literal', value: "public" },
|
|
214
220
|
{ type: 'path_literal', value: "shops" },
|
|
215
|
-
], [
|
|
221
|
+
], [
|
|
222
|
+
{ type: 'query', key: "lat" },
|
|
223
|
+
{ type: 'query', key: "lon" },
|
|
224
|
+
], { service: "AppAPI", operation: "NearbyShopsPublic" }),
|
|
216
225
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
217
226
|
{ type: 'path_literal', value: "shops" },
|
|
218
227
|
{ type: 'path_literal', value: "nearest" },
|
|
@@ -262,17 +271,26 @@ const getAppAPIServiceHandler = (service) => {
|
|
|
262
271
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
263
272
|
{ type: 'path_literal', value: "shops" },
|
|
264
273
|
{ type: 'path_literal', value: "popular" },
|
|
265
|
-
], [
|
|
274
|
+
], [
|
|
275
|
+
{ type: 'query', key: "lat" },
|
|
276
|
+
{ type: 'query', key: "lon" },
|
|
277
|
+
], { service: "AppAPI", operation: "PopularShops" }),
|
|
266
278
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
267
279
|
{ type: 'path_literal', value: "public" },
|
|
268
280
|
{ type: 'path_literal', value: "shops" },
|
|
269
281
|
{ type: 'path_literal', value: "popular" },
|
|
270
|
-
], [
|
|
282
|
+
], [
|
|
283
|
+
{ type: 'query', key: "lat" },
|
|
284
|
+
{ type: 'query', key: "lon" },
|
|
285
|
+
], { service: "AppAPI", operation: "PopularShopsPublic" }),
|
|
271
286
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
272
287
|
{ type: 'path_literal', value: "public" },
|
|
273
288
|
{ type: 'path_literal', value: "shops" },
|
|
274
289
|
{ type: 'path_literal', value: "radius" },
|
|
275
|
-
], [
|
|
290
|
+
], [
|
|
291
|
+
{ type: 'query', key: "lat" },
|
|
292
|
+
{ type: 'query', key: "lon" },
|
|
293
|
+
], { service: "AppAPI", operation: "RadiusShops" }),
|
|
276
294
|
new server_common_1.httpbinding.UriSpec('POST', [
|
|
277
295
|
{ type: 'path_literal', value: "visit" },
|
|
278
296
|
], [
|
|
@@ -41,7 +41,10 @@ const getFavoriteShopsHandler = (operation) => {
|
|
|
41
41
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
42
42
|
{ type: 'path_literal', value: "shops" },
|
|
43
43
|
{ type: 'path_literal', value: "favorite" },
|
|
44
|
-
], [
|
|
44
|
+
], [
|
|
45
|
+
{ type: 'query', key: "lat" },
|
|
46
|
+
{ type: 'query', key: "lon" },
|
|
47
|
+
], { service: "AppAPI", operation: "FavoriteShops" }),
|
|
45
48
|
]);
|
|
46
49
|
const customizer = (ctx, failures) => {
|
|
47
50
|
if (!failures) {
|
|
@@ -40,7 +40,10 @@ const getNearbyShopsHandler = (operation) => {
|
|
|
40
40
|
const mux = new server_common_1.httpbinding.HttpBindingMux([
|
|
41
41
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
42
42
|
{ type: 'path_literal', value: "shops" },
|
|
43
|
-
], [
|
|
43
|
+
], [
|
|
44
|
+
{ type: 'query', key: "lat" },
|
|
45
|
+
{ type: 'query', key: "lon" },
|
|
46
|
+
], { service: "AppAPI", operation: "NearbyShops" }),
|
|
44
47
|
]);
|
|
45
48
|
const customizer = (ctx, failures) => {
|
|
46
49
|
if (!failures) {
|
|
@@ -41,7 +41,10 @@ const getNearbyShopsPublicHandler = (operation) => {
|
|
|
41
41
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
42
42
|
{ type: 'path_literal', value: "public" },
|
|
43
43
|
{ type: 'path_literal', value: "shops" },
|
|
44
|
-
], [
|
|
44
|
+
], [
|
|
45
|
+
{ type: 'query', key: "lat" },
|
|
46
|
+
{ type: 'query', key: "lon" },
|
|
47
|
+
], { service: "AppAPI", operation: "NearbyShopsPublic" }),
|
|
45
48
|
]);
|
|
46
49
|
const customizer = (ctx, failures) => {
|
|
47
50
|
if (!failures) {
|
|
@@ -41,7 +41,10 @@ const getPopularShopsHandler = (operation) => {
|
|
|
41
41
|
new server_common_1.httpbinding.UriSpec('GET', [
|
|
42
42
|
{ type: 'path_literal', value: "shops" },
|
|
43
43
|
{ type: 'path_literal', value: "popular" },
|
|
44
|
-
], [
|
|
44
|
+
], [
|
|
45
|
+
{ type: 'query', key: "lat" },
|
|
46
|
+
{ type: 'query', key: "lon" },
|
|
47
|
+
], { service: "AppAPI", operation: "PopularShops" }),
|
|
45
48
|
]);
|
|
46
49
|
const customizer = (ctx, failures) => {
|
|
47
50
|
if (!failures) {
|
|
@@ -42,7 +42,10 @@ const getPopularShopsPublicHandler = (operation) => {
|
|
|
42
42
|
{ type: 'path_literal', value: "public" },
|
|
43
43
|
{ type: 'path_literal', value: "shops" },
|
|
44
44
|
{ type: 'path_literal', value: "popular" },
|
|
45
|
-
], [
|
|
45
|
+
], [
|
|
46
|
+
{ type: 'query', key: "lat" },
|
|
47
|
+
{ type: 'query', key: "lon" },
|
|
48
|
+
], { service: "AppAPI", operation: "PopularShopsPublic" }),
|
|
46
49
|
]);
|
|
47
50
|
const customizer = (ctx, failures) => {
|
|
48
51
|
if (!failures) {
|