@sparkrewards/sra-sdk 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/models/models_0.js +5 -0
- package/dist-cjs/openapi.json +42 -0
- package/dist-cjs/protocols/Aws_restJson1.js +90 -0
- package/dist-es/models/models_0.js +5 -0
- package/dist-es/openapi.json +42 -0
- package/dist-es/protocols/Aws_restJson1.js +90 -0
- package/dist-types/models/models_0.d.ts +1 -0
- package/package.json +1 -1
|
@@ -500,6 +500,10 @@ var ShopListInput;
|
|
|
500
500
|
memberValidators["open_now"] = new server_common_1.NoOpValidator();
|
|
501
501
|
break;
|
|
502
502
|
}
|
|
503
|
+
case "timezone": {
|
|
504
|
+
memberValidators["timezone"] = new server_common_1.NoOpValidator();
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
503
507
|
case "categories": {
|
|
504
508
|
memberValidators["categories"] = new server_common_1.NoOpValidator();
|
|
505
509
|
break;
|
|
@@ -513,6 +517,7 @@ var ShopListInput;
|
|
|
513
517
|
...getMemberValidator("lon").validate(obj.lon, `${path}/lon`),
|
|
514
518
|
...getMemberValidator("page").validate(obj.page, `${path}/page`),
|
|
515
519
|
...getMemberValidator("open_now").validate(obj.open_now, `${path}/open_now`),
|
|
520
|
+
...getMemberValidator("timezone").validate(obj.timezone, `${path}/timezone`),
|
|
516
521
|
...getMemberValidator("categories").validate(obj.categories, `${path}/categories`),
|
|
517
522
|
];
|
|
518
523
|
};
|
package/dist-cjs/openapi.json
CHANGED
|
@@ -283,6 +283,13 @@
|
|
|
283
283
|
"type": "boolean"
|
|
284
284
|
}
|
|
285
285
|
},
|
|
286
|
+
{
|
|
287
|
+
"name": "timezone",
|
|
288
|
+
"in": "query",
|
|
289
|
+
"schema": {
|
|
290
|
+
"type": "string"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
286
293
|
{
|
|
287
294
|
"name": "categories",
|
|
288
295
|
"in": "query",
|
|
@@ -428,6 +435,13 @@
|
|
|
428
435
|
"type": "boolean"
|
|
429
436
|
}
|
|
430
437
|
},
|
|
438
|
+
{
|
|
439
|
+
"name": "timezone",
|
|
440
|
+
"in": "query",
|
|
441
|
+
"schema": {
|
|
442
|
+
"type": "string"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
431
445
|
{
|
|
432
446
|
"name": "categories",
|
|
433
447
|
"in": "query",
|
|
@@ -507,6 +521,13 @@
|
|
|
507
521
|
"type": "boolean"
|
|
508
522
|
}
|
|
509
523
|
},
|
|
524
|
+
{
|
|
525
|
+
"name": "timezone",
|
|
526
|
+
"in": "query",
|
|
527
|
+
"schema": {
|
|
528
|
+
"type": "string"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
510
531
|
{
|
|
511
532
|
"name": "categories",
|
|
512
533
|
"in": "query",
|
|
@@ -952,6 +973,13 @@
|
|
|
952
973
|
"type": "boolean"
|
|
953
974
|
}
|
|
954
975
|
},
|
|
976
|
+
{
|
|
977
|
+
"name": "timezone",
|
|
978
|
+
"in": "query",
|
|
979
|
+
"schema": {
|
|
980
|
+
"type": "string"
|
|
981
|
+
}
|
|
982
|
+
},
|
|
955
983
|
{
|
|
956
984
|
"name": "categories",
|
|
957
985
|
"in": "query",
|
|
@@ -1031,6 +1059,13 @@
|
|
|
1031
1059
|
"type": "boolean"
|
|
1032
1060
|
}
|
|
1033
1061
|
},
|
|
1062
|
+
{
|
|
1063
|
+
"name": "timezone",
|
|
1064
|
+
"in": "query",
|
|
1065
|
+
"schema": {
|
|
1066
|
+
"type": "string"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1034
1069
|
{
|
|
1035
1070
|
"name": "categories",
|
|
1036
1071
|
"in": "query",
|
|
@@ -1242,6 +1277,13 @@
|
|
|
1242
1277
|
"type": "boolean"
|
|
1243
1278
|
}
|
|
1244
1279
|
},
|
|
1280
|
+
{
|
|
1281
|
+
"name": "timezone",
|
|
1282
|
+
"in": "query",
|
|
1283
|
+
"schema": {
|
|
1284
|
+
"type": "string"
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1245
1287
|
{
|
|
1246
1288
|
"name": "categories",
|
|
1247
1289
|
"in": "query",
|
|
@@ -200,6 +200,21 @@ const deserializeFavoriteShopsRequest = async (output, context) => {
|
|
|
200
200
|
}
|
|
201
201
|
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
202
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"];
|
|
215
|
+
}
|
|
216
|
+
contents.timezone = queryValue;
|
|
217
|
+
}
|
|
203
218
|
if (query["categories"] !== undefined) {
|
|
204
219
|
let queryValue;
|
|
205
220
|
if (Array.isArray(query["categories"])) {
|
|
@@ -426,6 +441,21 @@ const deserializeNearbyShopsRequest = async (output, context) => {
|
|
|
426
441
|
}
|
|
427
442
|
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
428
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
|
+
}
|
|
429
459
|
if (query["categories"] !== undefined) {
|
|
430
460
|
let queryValue;
|
|
431
461
|
if (Array.isArray(query["categories"])) {
|
|
@@ -528,6 +558,21 @@ const deserializeNearbyShopsPublicRequest = async (output, context) => {
|
|
|
528
558
|
}
|
|
529
559
|
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
530
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
|
+
}
|
|
531
576
|
if (query["categories"] !== undefined) {
|
|
532
577
|
let queryValue;
|
|
533
578
|
if (Array.isArray(query["categories"])) {
|
|
@@ -1041,6 +1086,21 @@ const deserializePopularShopsRequest = async (output, context) => {
|
|
|
1041
1086
|
}
|
|
1042
1087
|
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
1043
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"];
|
|
1101
|
+
}
|
|
1102
|
+
contents.timezone = queryValue;
|
|
1103
|
+
}
|
|
1044
1104
|
if (query["categories"] !== undefined) {
|
|
1045
1105
|
let queryValue;
|
|
1046
1106
|
if (Array.isArray(query["categories"])) {
|
|
@@ -1143,6 +1203,21 @@ const deserializePopularShopsPublicRequest = async (output, context) => {
|
|
|
1143
1203
|
}
|
|
1144
1204
|
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
1145
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
|
+
}
|
|
1146
1221
|
if (query["categories"] !== undefined) {
|
|
1147
1222
|
let queryValue;
|
|
1148
1223
|
if (Array.isArray(query["categories"])) {
|
|
@@ -1245,6 +1320,21 @@ const deserializeRadiusShopsRequest = async (output, context) => {
|
|
|
1245
1320
|
}
|
|
1246
1321
|
contents.open_now = (0, smithy_client_1.parseBoolean)(queryValue);
|
|
1247
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
|
+
}
|
|
1248
1338
|
if (query["categories"] !== undefined) {
|
|
1249
1339
|
let queryValue;
|
|
1250
1340
|
if (Array.isArray(query["categories"])) {
|
|
@@ -494,6 +494,10 @@ export var ShopListInput;
|
|
|
494
494
|
memberValidators["open_now"] = new __NoOpValidator();
|
|
495
495
|
break;
|
|
496
496
|
}
|
|
497
|
+
case "timezone": {
|
|
498
|
+
memberValidators["timezone"] = new __NoOpValidator();
|
|
499
|
+
break;
|
|
500
|
+
}
|
|
497
501
|
case "categories": {
|
|
498
502
|
memberValidators["categories"] = new __NoOpValidator();
|
|
499
503
|
break;
|
|
@@ -507,6 +511,7 @@ export var ShopListInput;
|
|
|
507
511
|
...getMemberValidator("lon").validate(obj.lon, `${path}/lon`),
|
|
508
512
|
...getMemberValidator("page").validate(obj.page, `${path}/page`),
|
|
509
513
|
...getMemberValidator("open_now").validate(obj.open_now, `${path}/open_now`),
|
|
514
|
+
...getMemberValidator("timezone").validate(obj.timezone, `${path}/timezone`),
|
|
510
515
|
...getMemberValidator("categories").validate(obj.categories, `${path}/categories`),
|
|
511
516
|
];
|
|
512
517
|
};
|
package/dist-es/openapi.json
CHANGED
|
@@ -283,6 +283,13 @@
|
|
|
283
283
|
"type": "boolean"
|
|
284
284
|
}
|
|
285
285
|
},
|
|
286
|
+
{
|
|
287
|
+
"name": "timezone",
|
|
288
|
+
"in": "query",
|
|
289
|
+
"schema": {
|
|
290
|
+
"type": "string"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
286
293
|
{
|
|
287
294
|
"name": "categories",
|
|
288
295
|
"in": "query",
|
|
@@ -428,6 +435,13 @@
|
|
|
428
435
|
"type": "boolean"
|
|
429
436
|
}
|
|
430
437
|
},
|
|
438
|
+
{
|
|
439
|
+
"name": "timezone",
|
|
440
|
+
"in": "query",
|
|
441
|
+
"schema": {
|
|
442
|
+
"type": "string"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
431
445
|
{
|
|
432
446
|
"name": "categories",
|
|
433
447
|
"in": "query",
|
|
@@ -507,6 +521,13 @@
|
|
|
507
521
|
"type": "boolean"
|
|
508
522
|
}
|
|
509
523
|
},
|
|
524
|
+
{
|
|
525
|
+
"name": "timezone",
|
|
526
|
+
"in": "query",
|
|
527
|
+
"schema": {
|
|
528
|
+
"type": "string"
|
|
529
|
+
}
|
|
530
|
+
},
|
|
510
531
|
{
|
|
511
532
|
"name": "categories",
|
|
512
533
|
"in": "query",
|
|
@@ -952,6 +973,13 @@
|
|
|
952
973
|
"type": "boolean"
|
|
953
974
|
}
|
|
954
975
|
},
|
|
976
|
+
{
|
|
977
|
+
"name": "timezone",
|
|
978
|
+
"in": "query",
|
|
979
|
+
"schema": {
|
|
980
|
+
"type": "string"
|
|
981
|
+
}
|
|
982
|
+
},
|
|
955
983
|
{
|
|
956
984
|
"name": "categories",
|
|
957
985
|
"in": "query",
|
|
@@ -1031,6 +1059,13 @@
|
|
|
1031
1059
|
"type": "boolean"
|
|
1032
1060
|
}
|
|
1033
1061
|
},
|
|
1062
|
+
{
|
|
1063
|
+
"name": "timezone",
|
|
1064
|
+
"in": "query",
|
|
1065
|
+
"schema": {
|
|
1066
|
+
"type": "string"
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1034
1069
|
{
|
|
1035
1070
|
"name": "categories",
|
|
1036
1071
|
"in": "query",
|
|
@@ -1242,6 +1277,13 @@
|
|
|
1242
1277
|
"type": "boolean"
|
|
1243
1278
|
}
|
|
1244
1279
|
},
|
|
1280
|
+
{
|
|
1281
|
+
"name": "timezone",
|
|
1282
|
+
"in": "query",
|
|
1283
|
+
"schema": {
|
|
1284
|
+
"type": "string"
|
|
1285
|
+
}
|
|
1286
|
+
},
|
|
1245
1287
|
{
|
|
1246
1288
|
"name": "categories",
|
|
1247
1289
|
"in": "query",
|
|
@@ -194,6 +194,21 @@ export const deserializeFavoriteShopsRequest = async (output, context) => {
|
|
|
194
194
|
}
|
|
195
195
|
contents.open_now = __parseBoolean(queryValue);
|
|
196
196
|
}
|
|
197
|
+
if (query["timezone"] !== undefined) {
|
|
198
|
+
let queryValue;
|
|
199
|
+
if (Array.isArray(query["timezone"])) {
|
|
200
|
+
if (query["timezone"].length === 1) {
|
|
201
|
+
queryValue = query["timezone"][0];
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
throw new __SerializationException();
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
else {
|
|
208
|
+
queryValue = query["timezone"];
|
|
209
|
+
}
|
|
210
|
+
contents.timezone = queryValue;
|
|
211
|
+
}
|
|
197
212
|
if (query["categories"] !== undefined) {
|
|
198
213
|
let queryValue;
|
|
199
214
|
if (Array.isArray(query["categories"])) {
|
|
@@ -415,6 +430,21 @@ export const deserializeNearbyShopsRequest = async (output, context) => {
|
|
|
415
430
|
}
|
|
416
431
|
contents.open_now = __parseBoolean(queryValue);
|
|
417
432
|
}
|
|
433
|
+
if (query["timezone"] !== undefined) {
|
|
434
|
+
let queryValue;
|
|
435
|
+
if (Array.isArray(query["timezone"])) {
|
|
436
|
+
if (query["timezone"].length === 1) {
|
|
437
|
+
queryValue = query["timezone"][0];
|
|
438
|
+
}
|
|
439
|
+
else {
|
|
440
|
+
throw new __SerializationException();
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
else {
|
|
444
|
+
queryValue = query["timezone"];
|
|
445
|
+
}
|
|
446
|
+
contents.timezone = queryValue;
|
|
447
|
+
}
|
|
418
448
|
if (query["categories"] !== undefined) {
|
|
419
449
|
let queryValue;
|
|
420
450
|
if (Array.isArray(query["categories"])) {
|
|
@@ -516,6 +546,21 @@ export const deserializeNearbyShopsPublicRequest = async (output, context) => {
|
|
|
516
546
|
}
|
|
517
547
|
contents.open_now = __parseBoolean(queryValue);
|
|
518
548
|
}
|
|
549
|
+
if (query["timezone"] !== undefined) {
|
|
550
|
+
let queryValue;
|
|
551
|
+
if (Array.isArray(query["timezone"])) {
|
|
552
|
+
if (query["timezone"].length === 1) {
|
|
553
|
+
queryValue = query["timezone"][0];
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
throw new __SerializationException();
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
else {
|
|
560
|
+
queryValue = query["timezone"];
|
|
561
|
+
}
|
|
562
|
+
contents.timezone = queryValue;
|
|
563
|
+
}
|
|
519
564
|
if (query["categories"] !== undefined) {
|
|
520
565
|
let queryValue;
|
|
521
566
|
if (Array.isArray(query["categories"])) {
|
|
@@ -1021,6 +1066,21 @@ export const deserializePopularShopsRequest = async (output, context) => {
|
|
|
1021
1066
|
}
|
|
1022
1067
|
contents.open_now = __parseBoolean(queryValue);
|
|
1023
1068
|
}
|
|
1069
|
+
if (query["timezone"] !== undefined) {
|
|
1070
|
+
let queryValue;
|
|
1071
|
+
if (Array.isArray(query["timezone"])) {
|
|
1072
|
+
if (query["timezone"].length === 1) {
|
|
1073
|
+
queryValue = query["timezone"][0];
|
|
1074
|
+
}
|
|
1075
|
+
else {
|
|
1076
|
+
throw new __SerializationException();
|
|
1077
|
+
}
|
|
1078
|
+
}
|
|
1079
|
+
else {
|
|
1080
|
+
queryValue = query["timezone"];
|
|
1081
|
+
}
|
|
1082
|
+
contents.timezone = queryValue;
|
|
1083
|
+
}
|
|
1024
1084
|
if (query["categories"] !== undefined) {
|
|
1025
1085
|
let queryValue;
|
|
1026
1086
|
if (Array.isArray(query["categories"])) {
|
|
@@ -1122,6 +1182,21 @@ export const deserializePopularShopsPublicRequest = async (output, context) => {
|
|
|
1122
1182
|
}
|
|
1123
1183
|
contents.open_now = __parseBoolean(queryValue);
|
|
1124
1184
|
}
|
|
1185
|
+
if (query["timezone"] !== undefined) {
|
|
1186
|
+
let queryValue;
|
|
1187
|
+
if (Array.isArray(query["timezone"])) {
|
|
1188
|
+
if (query["timezone"].length === 1) {
|
|
1189
|
+
queryValue = query["timezone"][0];
|
|
1190
|
+
}
|
|
1191
|
+
else {
|
|
1192
|
+
throw new __SerializationException();
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
else {
|
|
1196
|
+
queryValue = query["timezone"];
|
|
1197
|
+
}
|
|
1198
|
+
contents.timezone = queryValue;
|
|
1199
|
+
}
|
|
1125
1200
|
if (query["categories"] !== undefined) {
|
|
1126
1201
|
let queryValue;
|
|
1127
1202
|
if (Array.isArray(query["categories"])) {
|
|
@@ -1223,6 +1298,21 @@ export const deserializeRadiusShopsRequest = async (output, context) => {
|
|
|
1223
1298
|
}
|
|
1224
1299
|
contents.open_now = __parseBoolean(queryValue);
|
|
1225
1300
|
}
|
|
1301
|
+
if (query["timezone"] !== undefined) {
|
|
1302
|
+
let queryValue;
|
|
1303
|
+
if (Array.isArray(query["timezone"])) {
|
|
1304
|
+
if (query["timezone"].length === 1) {
|
|
1305
|
+
queryValue = query["timezone"][0];
|
|
1306
|
+
}
|
|
1307
|
+
else {
|
|
1308
|
+
throw new __SerializationException();
|
|
1309
|
+
}
|
|
1310
|
+
}
|
|
1311
|
+
else {
|
|
1312
|
+
queryValue = query["timezone"];
|
|
1313
|
+
}
|
|
1314
|
+
contents.timezone = queryValue;
|
|
1315
|
+
}
|
|
1226
1316
|
if (query["categories"] !== undefined) {
|
|
1227
1317
|
let queryValue;
|
|
1228
1318
|
if (Array.isArray(query["categories"])) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkrewards/sra-sdk",
|
|
3
3
|
"description": "@sparkrewards/sra-sdk server",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.7",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|