@sparkrewards/sra-sdk 0.0.4 → 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
|
@@ -42,7 +42,10 @@ const getRadiusShopsHandler = (operation) => {
|
|
|
42
42
|
{ type: 'path_literal', value: "public" },
|
|
43
43
|
{ type: 'path_literal', value: "shops" },
|
|
44
44
|
{ type: 'path_literal', value: "radius" },
|
|
45
|
-
], [
|
|
45
|
+
], [
|
|
46
|
+
{ type: 'query', key: "lat" },
|
|
47
|
+
{ type: 'query', key: "lon" },
|
|
48
|
+
], { service: "AppAPI", operation: "RadiusShops" }),
|
|
46
49
|
]);
|
|
47
50
|
const customizer = (ctx, failures) => {
|
|
48
51
|
if (!failures) {
|
|
@@ -475,19 +475,27 @@ export var ShopListInput;
|
|
|
475
475
|
if (memberValidators[member] === undefined) {
|
|
476
476
|
switch (member) {
|
|
477
477
|
case "lat": {
|
|
478
|
-
memberValidators["lat"] = new
|
|
478
|
+
memberValidators["lat"] = new __CompositeValidator([
|
|
479
|
+
new __RequiredValidator(),
|
|
480
|
+
]);
|
|
479
481
|
break;
|
|
480
482
|
}
|
|
481
483
|
case "lon": {
|
|
482
|
-
memberValidators["lon"] = new
|
|
484
|
+
memberValidators["lon"] = new __CompositeValidator([
|
|
485
|
+
new __RequiredValidator(),
|
|
486
|
+
]);
|
|
483
487
|
break;
|
|
484
488
|
}
|
|
485
489
|
case "page": {
|
|
486
490
|
memberValidators["page"] = new __NoOpValidator();
|
|
487
491
|
break;
|
|
488
492
|
}
|
|
489
|
-
case "
|
|
490
|
-
memberValidators["
|
|
493
|
+
case "open_now": {
|
|
494
|
+
memberValidators["open_now"] = new __NoOpValidator();
|
|
495
|
+
break;
|
|
496
|
+
}
|
|
497
|
+
case "categories": {
|
|
498
|
+
memberValidators["categories"] = new __NoOpValidator();
|
|
491
499
|
break;
|
|
492
500
|
}
|
|
493
501
|
}
|
|
@@ -498,7 +506,8 @@ export var ShopListInput;
|
|
|
498
506
|
...getMemberValidator("lat").validate(obj.lat, `${path}/lat`),
|
|
499
507
|
...getMemberValidator("lon").validate(obj.lon, `${path}/lon`),
|
|
500
508
|
...getMemberValidator("page").validate(obj.page, `${path}/page`),
|
|
501
|
-
...getMemberValidator("
|
|
509
|
+
...getMemberValidator("open_now").validate(obj.open_now, `${path}/open_now`),
|
|
510
|
+
...getMemberValidator("categories").validate(obj.categories, `${path}/categories`),
|
|
502
511
|
];
|
|
503
512
|
};
|
|
504
513
|
})(ShopListInput || (ShopListInput = {}));
|
|
@@ -1696,8 +1705,8 @@ export var SearchShopsInput;
|
|
|
1696
1705
|
memberValidators["page"] = new __NoOpValidator();
|
|
1697
1706
|
break;
|
|
1698
1707
|
}
|
|
1699
|
-
case "
|
|
1700
|
-
memberValidators["
|
|
1708
|
+
case "tags": {
|
|
1709
|
+
memberValidators["tags"] = new __NoOpValidator();
|
|
1701
1710
|
break;
|
|
1702
1711
|
}
|
|
1703
1712
|
}
|
|
@@ -1710,7 +1719,7 @@ export var SearchShopsInput;
|
|
|
1710
1719
|
...getMemberValidator("lat").validate(obj.lat, `${path}/lat`),
|
|
1711
1720
|
...getMemberValidator("lon").validate(obj.lon, `${path}/lon`),
|
|
1712
1721
|
...getMemberValidator("page").validate(obj.page, `${path}/page`),
|
|
1713
|
-
...getMemberValidator("
|
|
1722
|
+
...getMemberValidator("tags").validate(obj.tags, `${path}/tags`),
|
|
1714
1723
|
];
|
|
1715
1724
|
};
|
|
1716
1725
|
})(SearchShopsInput || (SearchShopsInput = {}));
|
package/dist-es/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"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { parseJsonBody as parseBody, } from "@aws-sdk/core";
|
|
2
2
|
import { NotAcceptableException as __NotAcceptableException, SerializationException as __SerializationException, UnsupportedMediaTypeException as __UnsupportedMediaTypeException, acceptMatches as __acceptMatches, } from "@aws-smithy/server-common";
|
|
3
3
|
import { HttpResponse as __HttpResponse, } from "@smithy/protocol-http";
|
|
4
|
-
import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, serializeFloat as __serializeFloat, strictParseDouble as __strictParseDouble, strictParseInt32 as __strictParseInt32, collectBody, map, take, } from "@smithy/smithy-client";
|
|
4
|
+
import { expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, parseBoolean as __parseBoolean, serializeFloat as __serializeFloat, strictParseDouble as __strictParseDouble, strictParseInt32 as __strictParseInt32, collectBody, map, take, } from "@smithy/smithy-client";
|
|
5
5
|
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
6
6
|
export const deserializeDeleteUserRequest = async (output, context) => {
|
|
7
7
|
const contentTypeHeaderKey = Object.keys(output.headers).find(key => key.toLowerCase() === 'content-type');
|
|
@@ -179,20 +179,35 @@ export const deserializeFavoriteShopsRequest = async (output, context) => {
|
|
|
179
179
|
}
|
|
180
180
|
contents.page = __strictParseInt32(queryValue);
|
|
181
181
|
}
|
|
182
|
-
if (query["
|
|
182
|
+
if (query["open_now"] !== undefined) {
|
|
183
183
|
let queryValue;
|
|
184
|
-
if (Array.isArray(query["
|
|
185
|
-
if (query["
|
|
186
|
-
queryValue = query["
|
|
184
|
+
if (Array.isArray(query["open_now"])) {
|
|
185
|
+
if (query["open_now"].length === 1) {
|
|
186
|
+
queryValue = query["open_now"][0];
|
|
187
187
|
}
|
|
188
188
|
else {
|
|
189
189
|
throw new __SerializationException();
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
else {
|
|
193
|
-
queryValue = query["
|
|
193
|
+
queryValue = query["open_now"];
|
|
194
194
|
}
|
|
195
|
-
contents.
|
|
195
|
+
contents.open_now = __parseBoolean(queryValue);
|
|
196
|
+
}
|
|
197
|
+
if (query["categories"] !== undefined) {
|
|
198
|
+
let queryValue;
|
|
199
|
+
if (Array.isArray(query["categories"])) {
|
|
200
|
+
if (query["categories"].length === 1) {
|
|
201
|
+
queryValue = query["categories"][0];
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
throw new __SerializationException();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
queryValue = query["categories"];
|
|
209
|
+
}
|
|
210
|
+
contents.categories = queryValue;
|
|
196
211
|
}
|
|
197
212
|
}
|
|
198
213
|
await collectBody(output.body, context);
|
|
@@ -385,20 +400,35 @@ export const deserializeNearbyShopsRequest = async (output, context) => {
|
|
|
385
400
|
}
|
|
386
401
|
contents.page = __strictParseInt32(queryValue);
|
|
387
402
|
}
|
|
388
|
-
if (query["
|
|
403
|
+
if (query["open_now"] !== undefined) {
|
|
389
404
|
let queryValue;
|
|
390
|
-
if (Array.isArray(query["
|
|
391
|
-
if (query["
|
|
392
|
-
queryValue = query["
|
|
405
|
+
if (Array.isArray(query["open_now"])) {
|
|
406
|
+
if (query["open_now"].length === 1) {
|
|
407
|
+
queryValue = query["open_now"][0];
|
|
393
408
|
}
|
|
394
409
|
else {
|
|
395
410
|
throw new __SerializationException();
|
|
396
411
|
}
|
|
397
412
|
}
|
|
398
413
|
else {
|
|
399
|
-
queryValue = query["
|
|
414
|
+
queryValue = query["open_now"];
|
|
415
|
+
}
|
|
416
|
+
contents.open_now = __parseBoolean(queryValue);
|
|
417
|
+
}
|
|
418
|
+
if (query["categories"] !== undefined) {
|
|
419
|
+
let queryValue;
|
|
420
|
+
if (Array.isArray(query["categories"])) {
|
|
421
|
+
if (query["categories"].length === 1) {
|
|
422
|
+
queryValue = query["categories"][0];
|
|
423
|
+
}
|
|
424
|
+
else {
|
|
425
|
+
throw new __SerializationException();
|
|
426
|
+
}
|
|
400
427
|
}
|
|
401
|
-
|
|
428
|
+
else {
|
|
429
|
+
queryValue = query["categories"];
|
|
430
|
+
}
|
|
431
|
+
contents.categories = queryValue;
|
|
402
432
|
}
|
|
403
433
|
}
|
|
404
434
|
await collectBody(output.body, context);
|
|
@@ -471,20 +501,35 @@ export const deserializeNearbyShopsPublicRequest = async (output, context) => {
|
|
|
471
501
|
}
|
|
472
502
|
contents.page = __strictParseInt32(queryValue);
|
|
473
503
|
}
|
|
474
|
-
if (query["
|
|
504
|
+
if (query["open_now"] !== undefined) {
|
|
475
505
|
let queryValue;
|
|
476
|
-
if (Array.isArray(query["
|
|
477
|
-
if (query["
|
|
478
|
-
queryValue = query["
|
|
506
|
+
if (Array.isArray(query["open_now"])) {
|
|
507
|
+
if (query["open_now"].length === 1) {
|
|
508
|
+
queryValue = query["open_now"][0];
|
|
479
509
|
}
|
|
480
510
|
else {
|
|
481
511
|
throw new __SerializationException();
|
|
482
512
|
}
|
|
483
513
|
}
|
|
484
514
|
else {
|
|
485
|
-
queryValue = query["
|
|
515
|
+
queryValue = query["open_now"];
|
|
516
|
+
}
|
|
517
|
+
contents.open_now = __parseBoolean(queryValue);
|
|
518
|
+
}
|
|
519
|
+
if (query["categories"] !== undefined) {
|
|
520
|
+
let queryValue;
|
|
521
|
+
if (Array.isArray(query["categories"])) {
|
|
522
|
+
if (query["categories"].length === 1) {
|
|
523
|
+
queryValue = query["categories"][0];
|
|
524
|
+
}
|
|
525
|
+
else {
|
|
526
|
+
throw new __SerializationException();
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
else {
|
|
530
|
+
queryValue = query["categories"];
|
|
486
531
|
}
|
|
487
|
-
contents.
|
|
532
|
+
contents.categories = queryValue;
|
|
488
533
|
}
|
|
489
534
|
}
|
|
490
535
|
await collectBody(output.body, context);
|
|
@@ -961,20 +1006,35 @@ export const deserializePopularShopsRequest = async (output, context) => {
|
|
|
961
1006
|
}
|
|
962
1007
|
contents.page = __strictParseInt32(queryValue);
|
|
963
1008
|
}
|
|
964
|
-
if (query["
|
|
1009
|
+
if (query["open_now"] !== undefined) {
|
|
965
1010
|
let queryValue;
|
|
966
|
-
if (Array.isArray(query["
|
|
967
|
-
if (query["
|
|
968
|
-
queryValue = query["
|
|
1011
|
+
if (Array.isArray(query["open_now"])) {
|
|
1012
|
+
if (query["open_now"].length === 1) {
|
|
1013
|
+
queryValue = query["open_now"][0];
|
|
969
1014
|
}
|
|
970
1015
|
else {
|
|
971
1016
|
throw new __SerializationException();
|
|
972
1017
|
}
|
|
973
1018
|
}
|
|
974
1019
|
else {
|
|
975
|
-
queryValue = query["
|
|
1020
|
+
queryValue = query["open_now"];
|
|
976
1021
|
}
|
|
977
|
-
contents.
|
|
1022
|
+
contents.open_now = __parseBoolean(queryValue);
|
|
1023
|
+
}
|
|
1024
|
+
if (query["categories"] !== undefined) {
|
|
1025
|
+
let queryValue;
|
|
1026
|
+
if (Array.isArray(query["categories"])) {
|
|
1027
|
+
if (query["categories"].length === 1) {
|
|
1028
|
+
queryValue = query["categories"][0];
|
|
1029
|
+
}
|
|
1030
|
+
else {
|
|
1031
|
+
throw new __SerializationException();
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
else {
|
|
1035
|
+
queryValue = query["categories"];
|
|
1036
|
+
}
|
|
1037
|
+
contents.categories = queryValue;
|
|
978
1038
|
}
|
|
979
1039
|
}
|
|
980
1040
|
await collectBody(output.body, context);
|
|
@@ -1047,20 +1107,35 @@ export const deserializePopularShopsPublicRequest = async (output, context) => {
|
|
|
1047
1107
|
}
|
|
1048
1108
|
contents.page = __strictParseInt32(queryValue);
|
|
1049
1109
|
}
|
|
1050
|
-
if (query["
|
|
1110
|
+
if (query["open_now"] !== undefined) {
|
|
1051
1111
|
let queryValue;
|
|
1052
|
-
if (Array.isArray(query["
|
|
1053
|
-
if (query["
|
|
1054
|
-
queryValue = query["
|
|
1112
|
+
if (Array.isArray(query["open_now"])) {
|
|
1113
|
+
if (query["open_now"].length === 1) {
|
|
1114
|
+
queryValue = query["open_now"][0];
|
|
1055
1115
|
}
|
|
1056
1116
|
else {
|
|
1057
1117
|
throw new __SerializationException();
|
|
1058
1118
|
}
|
|
1059
1119
|
}
|
|
1060
1120
|
else {
|
|
1061
|
-
queryValue = query["
|
|
1121
|
+
queryValue = query["open_now"];
|
|
1122
|
+
}
|
|
1123
|
+
contents.open_now = __parseBoolean(queryValue);
|
|
1124
|
+
}
|
|
1125
|
+
if (query["categories"] !== undefined) {
|
|
1126
|
+
let queryValue;
|
|
1127
|
+
if (Array.isArray(query["categories"])) {
|
|
1128
|
+
if (query["categories"].length === 1) {
|
|
1129
|
+
queryValue = query["categories"][0];
|
|
1130
|
+
}
|
|
1131
|
+
else {
|
|
1132
|
+
throw new __SerializationException();
|
|
1133
|
+
}
|
|
1062
1134
|
}
|
|
1063
|
-
|
|
1135
|
+
else {
|
|
1136
|
+
queryValue = query["categories"];
|
|
1137
|
+
}
|
|
1138
|
+
contents.categories = queryValue;
|
|
1064
1139
|
}
|
|
1065
1140
|
}
|
|
1066
1141
|
await collectBody(output.body, context);
|
|
@@ -1133,20 +1208,35 @@ export const deserializeRadiusShopsRequest = async (output, context) => {
|
|
|
1133
1208
|
}
|
|
1134
1209
|
contents.page = __strictParseInt32(queryValue);
|
|
1135
1210
|
}
|
|
1136
|
-
if (query["
|
|
1211
|
+
if (query["open_now"] !== undefined) {
|
|
1137
1212
|
let queryValue;
|
|
1138
|
-
if (Array.isArray(query["
|
|
1139
|
-
if (query["
|
|
1140
|
-
queryValue = query["
|
|
1213
|
+
if (Array.isArray(query["open_now"])) {
|
|
1214
|
+
if (query["open_now"].length === 1) {
|
|
1215
|
+
queryValue = query["open_now"][0];
|
|
1141
1216
|
}
|
|
1142
1217
|
else {
|
|
1143
1218
|
throw new __SerializationException();
|
|
1144
1219
|
}
|
|
1145
1220
|
}
|
|
1146
1221
|
else {
|
|
1147
|
-
queryValue = query["
|
|
1222
|
+
queryValue = query["open_now"];
|
|
1223
|
+
}
|
|
1224
|
+
contents.open_now = __parseBoolean(queryValue);
|
|
1225
|
+
}
|
|
1226
|
+
if (query["categories"] !== undefined) {
|
|
1227
|
+
let queryValue;
|
|
1228
|
+
if (Array.isArray(query["categories"])) {
|
|
1229
|
+
if (query["categories"].length === 1) {
|
|
1230
|
+
queryValue = query["categories"][0];
|
|
1231
|
+
}
|
|
1232
|
+
else {
|
|
1233
|
+
throw new __SerializationException();
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
else {
|
|
1237
|
+
queryValue = query["categories"];
|
|
1148
1238
|
}
|
|
1149
|
-
contents.
|
|
1239
|
+
contents.categories = queryValue;
|
|
1150
1240
|
}
|
|
1151
1241
|
}
|
|
1152
1242
|
await collectBody(output.body, context);
|
|
@@ -1486,7 +1576,7 @@ export const deserializeSearchShopsPublicRequest = async (output, context) => {
|
|
|
1486
1576
|
else {
|
|
1487
1577
|
queryValue = query["filters"];
|
|
1488
1578
|
}
|
|
1489
|
-
contents.
|
|
1579
|
+
contents.tags = queryValue;
|
|
1490
1580
|
}
|
|
1491
1581
|
}
|
|
1492
1582
|
await collectBody(output.body, context);
|
|
@@ -181,7 +181,10 @@ export const getAppAPIServiceHandler = (service) => {
|
|
|
181
181
|
new httpbinding.UriSpec('GET', [
|
|
182
182
|
{ type: 'path_literal', value: "shops" },
|
|
183
183
|
{ type: 'path_literal', value: "favorite" },
|
|
184
|
-
], [
|
|
184
|
+
], [
|
|
185
|
+
{ type: 'query', key: "lat" },
|
|
186
|
+
{ type: 'query', key: "lon" },
|
|
187
|
+
], { service: "AppAPI", operation: "FavoriteShops" }),
|
|
185
188
|
new httpbinding.UriSpec('GET', [
|
|
186
189
|
{ type: 'path_literal', value: "shops" },
|
|
187
190
|
{ type: 'path_literal', value: "shop" },
|
|
@@ -204,11 +207,17 @@ export const getAppAPIServiceHandler = (service) => {
|
|
|
204
207
|
], { service: "AppAPI", operation: "LikeOrg" }),
|
|
205
208
|
new httpbinding.UriSpec('GET', [
|
|
206
209
|
{ type: 'path_literal', value: "shops" },
|
|
207
|
-
], [
|
|
210
|
+
], [
|
|
211
|
+
{ type: 'query', key: "lat" },
|
|
212
|
+
{ type: 'query', key: "lon" },
|
|
213
|
+
], { service: "AppAPI", operation: "NearbyShops" }),
|
|
208
214
|
new httpbinding.UriSpec('GET', [
|
|
209
215
|
{ type: 'path_literal', value: "public" },
|
|
210
216
|
{ type: 'path_literal', value: "shops" },
|
|
211
|
-
], [
|
|
217
|
+
], [
|
|
218
|
+
{ type: 'query', key: "lat" },
|
|
219
|
+
{ type: 'query', key: "lon" },
|
|
220
|
+
], { service: "AppAPI", operation: "NearbyShopsPublic" }),
|
|
212
221
|
new httpbinding.UriSpec('GET', [
|
|
213
222
|
{ type: 'path_literal', value: "shops" },
|
|
214
223
|
{ type: 'path_literal', value: "nearest" },
|
|
@@ -258,17 +267,26 @@ export const getAppAPIServiceHandler = (service) => {
|
|
|
258
267
|
new httpbinding.UriSpec('GET', [
|
|
259
268
|
{ type: 'path_literal', value: "shops" },
|
|
260
269
|
{ type: 'path_literal', value: "popular" },
|
|
261
|
-
], [
|
|
270
|
+
], [
|
|
271
|
+
{ type: 'query', key: "lat" },
|
|
272
|
+
{ type: 'query', key: "lon" },
|
|
273
|
+
], { service: "AppAPI", operation: "PopularShops" }),
|
|
262
274
|
new httpbinding.UriSpec('GET', [
|
|
263
275
|
{ type: 'path_literal', value: "public" },
|
|
264
276
|
{ type: 'path_literal', value: "shops" },
|
|
265
277
|
{ type: 'path_literal', value: "popular" },
|
|
266
|
-
], [
|
|
278
|
+
], [
|
|
279
|
+
{ type: 'query', key: "lat" },
|
|
280
|
+
{ type: 'query', key: "lon" },
|
|
281
|
+
], { service: "AppAPI", operation: "PopularShopsPublic" }),
|
|
267
282
|
new httpbinding.UriSpec('GET', [
|
|
268
283
|
{ type: 'path_literal', value: "public" },
|
|
269
284
|
{ type: 'path_literal', value: "shops" },
|
|
270
285
|
{ type: 'path_literal', value: "radius" },
|
|
271
|
-
], [
|
|
286
|
+
], [
|
|
287
|
+
{ type: 'query', key: "lat" },
|
|
288
|
+
{ type: 'query', key: "lon" },
|
|
289
|
+
], { service: "AppAPI", operation: "RadiusShops" }),
|
|
272
290
|
new httpbinding.UriSpec('POST', [
|
|
273
291
|
{ type: 'path_literal', value: "visit" },
|
|
274
292
|
], [
|
|
@@ -37,7 +37,10 @@ export const getFavoriteShopsHandler = (operation) => {
|
|
|
37
37
|
new httpbinding.UriSpec('GET', [
|
|
38
38
|
{ type: 'path_literal', value: "shops" },
|
|
39
39
|
{ type: 'path_literal', value: "favorite" },
|
|
40
|
-
], [
|
|
40
|
+
], [
|
|
41
|
+
{ type: 'query', key: "lat" },
|
|
42
|
+
{ type: 'query', key: "lon" },
|
|
43
|
+
], { service: "AppAPI", operation: "FavoriteShops" }),
|
|
41
44
|
]);
|
|
42
45
|
const customizer = (ctx, failures) => {
|
|
43
46
|
if (!failures) {
|
|
@@ -36,7 +36,10 @@ export const getNearbyShopsHandler = (operation) => {
|
|
|
36
36
|
const mux = new httpbinding.HttpBindingMux([
|
|
37
37
|
new httpbinding.UriSpec('GET', [
|
|
38
38
|
{ type: 'path_literal', value: "shops" },
|
|
39
|
-
], [
|
|
39
|
+
], [
|
|
40
|
+
{ type: 'query', key: "lat" },
|
|
41
|
+
{ type: 'query', key: "lon" },
|
|
42
|
+
], { service: "AppAPI", operation: "NearbyShops" }),
|
|
40
43
|
]);
|
|
41
44
|
const customizer = (ctx, failures) => {
|
|
42
45
|
if (!failures) {
|
|
@@ -37,7 +37,10 @@ export const getNearbyShopsPublicHandler = (operation) => {
|
|
|
37
37
|
new httpbinding.UriSpec('GET', [
|
|
38
38
|
{ type: 'path_literal', value: "public" },
|
|
39
39
|
{ type: 'path_literal', value: "shops" },
|
|
40
|
-
], [
|
|
40
|
+
], [
|
|
41
|
+
{ type: 'query', key: "lat" },
|
|
42
|
+
{ type: 'query', key: "lon" },
|
|
43
|
+
], { service: "AppAPI", operation: "NearbyShopsPublic" }),
|
|
41
44
|
]);
|
|
42
45
|
const customizer = (ctx, failures) => {
|
|
43
46
|
if (!failures) {
|
|
@@ -37,7 +37,10 @@ export const getPopularShopsHandler = (operation) => {
|
|
|
37
37
|
new httpbinding.UriSpec('GET', [
|
|
38
38
|
{ type: 'path_literal', value: "shops" },
|
|
39
39
|
{ type: 'path_literal', value: "popular" },
|
|
40
|
-
], [
|
|
40
|
+
], [
|
|
41
|
+
{ type: 'query', key: "lat" },
|
|
42
|
+
{ type: 'query', key: "lon" },
|
|
43
|
+
], { service: "AppAPI", operation: "PopularShops" }),
|
|
41
44
|
]);
|
|
42
45
|
const customizer = (ctx, failures) => {
|
|
43
46
|
if (!failures) {
|