@sparkrewards/sra-client 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/protocols/Aws_restJson1.js +37 -21
- package/dist-es/protocols/Aws_restJson1.js +37 -21
- package/dist-types/AppAPI.d.ts +0 -6
- package/dist-types/commands/FavoriteShopsCommand.d.ts +6 -4
- package/dist-types/commands/NearbyShopsCommand.d.ts +6 -4
- package/dist-types/commands/NearbyShopsPublicCommand.d.ts +6 -4
- package/dist-types/commands/PopularShopsCommand.d.ts +6 -4
- package/dist-types/commands/PopularShopsPublicCommand.d.ts +6 -4
- package/dist-types/commands/RadiusShopsCommand.d.ts +6 -4
- package/dist-types/commands/SearchShopsPublicCommand.d.ts +1 -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.
|
|
@@ -41,10 +41,12 @@ const se_FavoriteShopsCommand = async (input, context) => {
|
|
|
41
41
|
const headers = {};
|
|
42
42
|
b.bp("/shops/favorite");
|
|
43
43
|
const query = (0, smithy_client_1.map)({
|
|
44
|
-
[_la]: [()
|
|
45
|
-
[_lo]: [()
|
|
44
|
+
[_la]: [(0, smithy_client_1.expectNonNull)(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
45
|
+
[_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
46
46
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
47
|
-
[
|
|
47
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
48
|
+
[_t]: [, input[_t]],
|
|
49
|
+
[_c]: [, input[_c]],
|
|
48
50
|
});
|
|
49
51
|
let body;
|
|
50
52
|
b.m("GET")
|
|
@@ -109,10 +111,12 @@ const se_NearbyShopsCommand = async (input, context) => {
|
|
|
109
111
|
const headers = {};
|
|
110
112
|
b.bp("/shops");
|
|
111
113
|
const query = (0, smithy_client_1.map)({
|
|
112
|
-
[_la]: [()
|
|
113
|
-
[_lo]: [()
|
|
114
|
+
[_la]: [(0, smithy_client_1.expectNonNull)(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
115
|
+
[_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
114
116
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
115
|
-
[
|
|
117
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
118
|
+
[_t]: [, input[_t]],
|
|
119
|
+
[_c]: [, input[_c]],
|
|
116
120
|
});
|
|
117
121
|
let body;
|
|
118
122
|
b.m("GET")
|
|
@@ -127,10 +131,12 @@ const se_NearbyShopsPublicCommand = async (input, context) => {
|
|
|
127
131
|
const headers = {};
|
|
128
132
|
b.bp("/public/shops");
|
|
129
133
|
const query = (0, smithy_client_1.map)({
|
|
130
|
-
[_la]: [()
|
|
131
|
-
[_lo]: [()
|
|
134
|
+
[_la]: [(0, smithy_client_1.expectNonNull)(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
135
|
+
[_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
132
136
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
133
|
-
[
|
|
137
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
138
|
+
[_t]: [, input[_t]],
|
|
139
|
+
[_c]: [, input[_c]],
|
|
134
140
|
});
|
|
135
141
|
let body;
|
|
136
142
|
b.m("GET")
|
|
@@ -255,10 +261,12 @@ const se_PopularShopsCommand = async (input, context) => {
|
|
|
255
261
|
const headers = {};
|
|
256
262
|
b.bp("/shops/popular");
|
|
257
263
|
const query = (0, smithy_client_1.map)({
|
|
258
|
-
[_la]: [()
|
|
259
|
-
[_lo]: [()
|
|
264
|
+
[_la]: [(0, smithy_client_1.expectNonNull)(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
265
|
+
[_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
260
266
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
261
|
-
[
|
|
267
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
268
|
+
[_t]: [, input[_t]],
|
|
269
|
+
[_c]: [, input[_c]],
|
|
262
270
|
});
|
|
263
271
|
let body;
|
|
264
272
|
b.m("GET")
|
|
@@ -273,10 +281,12 @@ const se_PopularShopsPublicCommand = async (input, context) => {
|
|
|
273
281
|
const headers = {};
|
|
274
282
|
b.bp("/public/shops/popular");
|
|
275
283
|
const query = (0, smithy_client_1.map)({
|
|
276
|
-
[_la]: [()
|
|
277
|
-
[_lo]: [()
|
|
284
|
+
[_la]: [(0, smithy_client_1.expectNonNull)(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
285
|
+
[_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
278
286
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
279
|
-
[
|
|
287
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
288
|
+
[_t]: [, input[_t]],
|
|
289
|
+
[_c]: [, input[_c]],
|
|
280
290
|
});
|
|
281
291
|
let body;
|
|
282
292
|
b.m("GET")
|
|
@@ -291,10 +301,12 @@ const se_RadiusShopsCommand = async (input, context) => {
|
|
|
291
301
|
const headers = {};
|
|
292
302
|
b.bp("/public/shops/radius");
|
|
293
303
|
const query = (0, smithy_client_1.map)({
|
|
294
|
-
[_la]: [()
|
|
295
|
-
[_lo]: [()
|
|
304
|
+
[_la]: [(0, smithy_client_1.expectNonNull)(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
305
|
+
[_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
296
306
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
297
|
-
[
|
|
307
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
308
|
+
[_t]: [, input[_t]],
|
|
309
|
+
[_c]: [, input[_c]],
|
|
298
310
|
});
|
|
299
311
|
let body;
|
|
300
312
|
b.m("GET")
|
|
@@ -310,7 +322,7 @@ const se_RecordVisitCommand = async (input, context) => {
|
|
|
310
322
|
b.bp("/visit");
|
|
311
323
|
const query = (0, smithy_client_1.map)({
|
|
312
324
|
[_si]: [, (0, smithy_client_1.expectNonNull)(input[_si], `shop_id`)],
|
|
313
|
-
[
|
|
325
|
+
[_ti]: [, (0, smithy_client_1.expectNonNull)(input[_ti], `timestamp`)],
|
|
314
326
|
[_la]: [(0, smithy_client_1.expectNonNull)(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
315
327
|
[_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
316
328
|
});
|
|
@@ -378,7 +390,7 @@ const se_SearchShopsPublicCommand = async (input, context) => {
|
|
|
378
390
|
[_la]: [() => input.lat !== void 0, () => (((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString()))],
|
|
379
391
|
[_lo]: [() => input.lon !== void 0, () => (((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString()))],
|
|
380
392
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
381
|
-
[_f]: [, input[
|
|
393
|
+
[_f]: [, input[_ta]],
|
|
382
394
|
});
|
|
383
395
|
let body;
|
|
384
396
|
b.m("GET")
|
|
@@ -1060,14 +1072,18 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1060
1072
|
(!Object.getOwnPropertyNames(value).includes("length") ||
|
|
1061
1073
|
value.length != 0) &&
|
|
1062
1074
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1075
|
+
const _c = "categories";
|
|
1063
1076
|
const _f = "filters";
|
|
1064
1077
|
const _l = "limit";
|
|
1065
1078
|
const _la = "lat";
|
|
1066
1079
|
const _lo = "lon";
|
|
1067
1080
|
const _oi = "org_id";
|
|
1081
|
+
const _on = "open_now";
|
|
1068
1082
|
const _p = "page";
|
|
1069
1083
|
const _q = "q";
|
|
1070
1084
|
const _ri = "reward_id";
|
|
1071
1085
|
const _si = "shop_id";
|
|
1072
1086
|
const _sn = "shop_name";
|
|
1073
|
-
const _t = "
|
|
1087
|
+
const _t = "timezone";
|
|
1088
|
+
const _ta = "tags";
|
|
1089
|
+
const _ti = "timestamp";
|
|
@@ -35,10 +35,12 @@ export const se_FavoriteShopsCommand = async (input, context) => {
|
|
|
35
35
|
const headers = {};
|
|
36
36
|
b.bp("/shops/favorite");
|
|
37
37
|
const query = map({
|
|
38
|
-
[_la]: [(
|
|
39
|
-
[_lo]: [(
|
|
38
|
+
[_la]: [__expectNonNull(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
39
|
+
[_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
40
40
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
41
|
-
[
|
|
41
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
42
|
+
[_t]: [, input[_t]],
|
|
43
|
+
[_c]: [, input[_c]],
|
|
42
44
|
});
|
|
43
45
|
let body;
|
|
44
46
|
b.m("GET")
|
|
@@ -98,10 +100,12 @@ export const se_NearbyShopsCommand = async (input, context) => {
|
|
|
98
100
|
const headers = {};
|
|
99
101
|
b.bp("/shops");
|
|
100
102
|
const query = map({
|
|
101
|
-
[_la]: [(
|
|
102
|
-
[_lo]: [(
|
|
103
|
+
[_la]: [__expectNonNull(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
104
|
+
[_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
103
105
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
104
|
-
[
|
|
106
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
107
|
+
[_t]: [, input[_t]],
|
|
108
|
+
[_c]: [, input[_c]],
|
|
105
109
|
});
|
|
106
110
|
let body;
|
|
107
111
|
b.m("GET")
|
|
@@ -115,10 +119,12 @@ export const se_NearbyShopsPublicCommand = async (input, context) => {
|
|
|
115
119
|
const headers = {};
|
|
116
120
|
b.bp("/public/shops");
|
|
117
121
|
const query = map({
|
|
118
|
-
[_la]: [(
|
|
119
|
-
[_lo]: [(
|
|
122
|
+
[_la]: [__expectNonNull(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
123
|
+
[_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
120
124
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
121
|
-
[
|
|
125
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
126
|
+
[_t]: [, input[_t]],
|
|
127
|
+
[_c]: [, input[_c]],
|
|
122
128
|
});
|
|
123
129
|
let body;
|
|
124
130
|
b.m("GET")
|
|
@@ -235,10 +241,12 @@ export const se_PopularShopsCommand = async (input, context) => {
|
|
|
235
241
|
const headers = {};
|
|
236
242
|
b.bp("/shops/popular");
|
|
237
243
|
const query = map({
|
|
238
|
-
[_la]: [(
|
|
239
|
-
[_lo]: [(
|
|
244
|
+
[_la]: [__expectNonNull(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
245
|
+
[_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
240
246
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
241
|
-
[
|
|
247
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
248
|
+
[_t]: [, input[_t]],
|
|
249
|
+
[_c]: [, input[_c]],
|
|
242
250
|
});
|
|
243
251
|
let body;
|
|
244
252
|
b.m("GET")
|
|
@@ -252,10 +260,12 @@ export const se_PopularShopsPublicCommand = async (input, context) => {
|
|
|
252
260
|
const headers = {};
|
|
253
261
|
b.bp("/public/shops/popular");
|
|
254
262
|
const query = map({
|
|
255
|
-
[_la]: [(
|
|
256
|
-
[_lo]: [(
|
|
263
|
+
[_la]: [__expectNonNull(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
264
|
+
[_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
257
265
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
258
|
-
[
|
|
266
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
267
|
+
[_t]: [, input[_t]],
|
|
268
|
+
[_c]: [, input[_c]],
|
|
259
269
|
});
|
|
260
270
|
let body;
|
|
261
271
|
b.m("GET")
|
|
@@ -269,10 +279,12 @@ export const se_RadiusShopsCommand = async (input, context) => {
|
|
|
269
279
|
const headers = {};
|
|
270
280
|
b.bp("/public/shops/radius");
|
|
271
281
|
const query = map({
|
|
272
|
-
[_la]: [(
|
|
273
|
-
[_lo]: [(
|
|
282
|
+
[_la]: [__expectNonNull(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
283
|
+
[_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
274
284
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
275
|
-
[
|
|
285
|
+
[_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
|
|
286
|
+
[_t]: [, input[_t]],
|
|
287
|
+
[_c]: [, input[_c]],
|
|
276
288
|
});
|
|
277
289
|
let body;
|
|
278
290
|
b.m("GET")
|
|
@@ -287,7 +299,7 @@ export const se_RecordVisitCommand = async (input, context) => {
|
|
|
287
299
|
b.bp("/visit");
|
|
288
300
|
const query = map({
|
|
289
301
|
[_si]: [, __expectNonNull(input[_si], `shop_id`)],
|
|
290
|
-
[
|
|
302
|
+
[_ti]: [, __expectNonNull(input[_ti], `timestamp`)],
|
|
291
303
|
[_la]: [__expectNonNull(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
|
|
292
304
|
[_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
|
|
293
305
|
});
|
|
@@ -351,7 +363,7 @@ export const se_SearchShopsPublicCommand = async (input, context) => {
|
|
|
351
363
|
[_la]: [() => input.lat !== void 0, () => (((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString()))],
|
|
352
364
|
[_lo]: [() => input.lon !== void 0, () => (((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString()))],
|
|
353
365
|
[_p]: [() => input.page !== void 0, () => (input[_p].toString())],
|
|
354
|
-
[_f]: [, input[
|
|
366
|
+
[_f]: [, input[_ta]],
|
|
355
367
|
});
|
|
356
368
|
let body;
|
|
357
369
|
b.m("GET")
|
|
@@ -1004,14 +1016,18 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
1004
1016
|
(!Object.getOwnPropertyNames(value).includes("length") ||
|
|
1005
1017
|
value.length != 0) &&
|
|
1006
1018
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
1019
|
+
const _c = "categories";
|
|
1007
1020
|
const _f = "filters";
|
|
1008
1021
|
const _l = "limit";
|
|
1009
1022
|
const _la = "lat";
|
|
1010
1023
|
const _lo = "lon";
|
|
1011
1024
|
const _oi = "org_id";
|
|
1025
|
+
const _on = "open_now";
|
|
1012
1026
|
const _p = "page";
|
|
1013
1027
|
const _q = "q";
|
|
1014
1028
|
const _ri = "reward_id";
|
|
1015
1029
|
const _si = "shop_id";
|
|
1016
1030
|
const _sn = "shop_name";
|
|
1017
|
-
const _t = "
|
|
1031
|
+
const _t = "timezone";
|
|
1032
|
+
const _ta = "tags";
|
|
1033
|
+
const _ti = "timestamp";
|
package/dist-types/AppAPI.d.ts
CHANGED
|
@@ -43,7 +43,6 @@ export interface AppAPI {
|
|
|
43
43
|
/**
|
|
44
44
|
* @see {@link FavoriteShopsCommand}
|
|
45
45
|
*/
|
|
46
|
-
favoriteShops(): Promise<FavoriteShopsCommandOutput>;
|
|
47
46
|
favoriteShops(args: FavoriteShopsCommandInput, options?: __HttpHandlerOptions): Promise<FavoriteShopsCommandOutput>;
|
|
48
47
|
favoriteShops(args: FavoriteShopsCommandInput, cb: (err: any, data?: FavoriteShopsCommandOutput) => void): void;
|
|
49
48
|
favoriteShops(args: FavoriteShopsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: FavoriteShopsCommandOutput) => void): void;
|
|
@@ -75,14 +74,12 @@ export interface AppAPI {
|
|
|
75
74
|
/**
|
|
76
75
|
* @see {@link NearbyShopsCommand}
|
|
77
76
|
*/
|
|
78
|
-
nearbyShops(): Promise<NearbyShopsCommandOutput>;
|
|
79
77
|
nearbyShops(args: NearbyShopsCommandInput, options?: __HttpHandlerOptions): Promise<NearbyShopsCommandOutput>;
|
|
80
78
|
nearbyShops(args: NearbyShopsCommandInput, cb: (err: any, data?: NearbyShopsCommandOutput) => void): void;
|
|
81
79
|
nearbyShops(args: NearbyShopsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NearbyShopsCommandOutput) => void): void;
|
|
82
80
|
/**
|
|
83
81
|
* @see {@link NearbyShopsPublicCommand}
|
|
84
82
|
*/
|
|
85
|
-
nearbyShopsPublic(): Promise<NearbyShopsPublicCommandOutput>;
|
|
86
83
|
nearbyShopsPublic(args: NearbyShopsPublicCommandInput, options?: __HttpHandlerOptions): Promise<NearbyShopsPublicCommandOutput>;
|
|
87
84
|
nearbyShopsPublic(args: NearbyShopsPublicCommandInput, cb: (err: any, data?: NearbyShopsPublicCommandOutput) => void): void;
|
|
88
85
|
nearbyShopsPublic(args: NearbyShopsPublicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NearbyShopsPublicCommandOutput) => void): void;
|
|
@@ -132,21 +129,18 @@ export interface AppAPI {
|
|
|
132
129
|
/**
|
|
133
130
|
* @see {@link PopularShopsCommand}
|
|
134
131
|
*/
|
|
135
|
-
popularShops(): Promise<PopularShopsCommandOutput>;
|
|
136
132
|
popularShops(args: PopularShopsCommandInput, options?: __HttpHandlerOptions): Promise<PopularShopsCommandOutput>;
|
|
137
133
|
popularShops(args: PopularShopsCommandInput, cb: (err: any, data?: PopularShopsCommandOutput) => void): void;
|
|
138
134
|
popularShops(args: PopularShopsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PopularShopsCommandOutput) => void): void;
|
|
139
135
|
/**
|
|
140
136
|
* @see {@link PopularShopsPublicCommand}
|
|
141
137
|
*/
|
|
142
|
-
popularShopsPublic(): Promise<PopularShopsPublicCommandOutput>;
|
|
143
138
|
popularShopsPublic(args: PopularShopsPublicCommandInput, options?: __HttpHandlerOptions): Promise<PopularShopsPublicCommandOutput>;
|
|
144
139
|
popularShopsPublic(args: PopularShopsPublicCommandInput, cb: (err: any, data?: PopularShopsPublicCommandOutput) => void): void;
|
|
145
140
|
popularShopsPublic(args: PopularShopsPublicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PopularShopsPublicCommandOutput) => void): void;
|
|
146
141
|
/**
|
|
147
142
|
* @see {@link RadiusShopsCommand}
|
|
148
143
|
*/
|
|
149
|
-
radiusShops(): Promise<RadiusShopsCommandOutput>;
|
|
150
144
|
radiusShops(args: RadiusShopsCommandInput, options?: __HttpHandlerOptions): Promise<RadiusShopsCommandOutput>;
|
|
151
145
|
radiusShops(args: RadiusShopsCommandInput, cb: (err: any, data?: RadiusShopsCommandOutput) => void): void;
|
|
152
146
|
radiusShops(args: RadiusShopsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RadiusShopsCommandOutput) => void): void;
|
|
@@ -23,7 +23,7 @@ export interface FavoriteShopsCommandOutput extends ShopListWithPaginationOutput
|
|
|
23
23
|
}
|
|
24
24
|
declare const FavoriteShopsCommand_base: {
|
|
25
25
|
new (input: FavoriteShopsCommandInput): import("@smithy/smithy-client").CommandImpl<FavoriteShopsCommandInput, FavoriteShopsCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: FavoriteShopsCommandInput): import("@smithy/smithy-client").CommandImpl<FavoriteShopsCommandInput, FavoriteShopsCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -35,10 +35,12 @@ declare const FavoriteShopsCommand_base: {
|
|
|
35
35
|
* // const { AppAPIClient, FavoriteShopsCommand } = require("@sparkrewards/sra-client"); // CommonJS import
|
|
36
36
|
* const client = new AppAPIClient(config);
|
|
37
37
|
* const input = { // ShopListInput
|
|
38
|
-
* lat: Number("double"),
|
|
39
|
-
* lon: Number("double"),
|
|
38
|
+
* lat: Number("double"), // required
|
|
39
|
+
* lon: Number("double"), // required
|
|
40
40
|
* page: Number("int"),
|
|
41
|
-
*
|
|
41
|
+
* open_now: true || false,
|
|
42
|
+
* timezone: "STRING_VALUE",
|
|
43
|
+
* categories: "STRING_VALUE",
|
|
42
44
|
* };
|
|
43
45
|
* const command = new FavoriteShopsCommand(input);
|
|
44
46
|
* const response = await client.send(command);
|
|
@@ -23,7 +23,7 @@ export interface NearbyShopsCommandOutput extends ShopListWithPaginationOutput,
|
|
|
23
23
|
}
|
|
24
24
|
declare const NearbyShopsCommand_base: {
|
|
25
25
|
new (input: NearbyShopsCommandInput): import("@smithy/smithy-client").CommandImpl<NearbyShopsCommandInput, NearbyShopsCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: NearbyShopsCommandInput): import("@smithy/smithy-client").CommandImpl<NearbyShopsCommandInput, NearbyShopsCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -35,10 +35,12 @@ declare const NearbyShopsCommand_base: {
|
|
|
35
35
|
* // const { AppAPIClient, NearbyShopsCommand } = require("@sparkrewards/sra-client"); // CommonJS import
|
|
36
36
|
* const client = new AppAPIClient(config);
|
|
37
37
|
* const input = { // ShopListInput
|
|
38
|
-
* lat: Number("double"),
|
|
39
|
-
* lon: Number("double"),
|
|
38
|
+
* lat: Number("double"), // required
|
|
39
|
+
* lon: Number("double"), // required
|
|
40
40
|
* page: Number("int"),
|
|
41
|
-
*
|
|
41
|
+
* open_now: true || false,
|
|
42
|
+
* timezone: "STRING_VALUE",
|
|
43
|
+
* categories: "STRING_VALUE",
|
|
42
44
|
* };
|
|
43
45
|
* const command = new NearbyShopsCommand(input);
|
|
44
46
|
* const response = await client.send(command);
|
|
@@ -23,7 +23,7 @@ export interface NearbyShopsPublicCommandOutput extends ShopListWithPaginationOu
|
|
|
23
23
|
}
|
|
24
24
|
declare const NearbyShopsPublicCommand_base: {
|
|
25
25
|
new (input: NearbyShopsPublicCommandInput): import("@smithy/smithy-client").CommandImpl<NearbyShopsPublicCommandInput, NearbyShopsPublicCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: NearbyShopsPublicCommandInput): import("@smithy/smithy-client").CommandImpl<NearbyShopsPublicCommandInput, NearbyShopsPublicCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -35,10 +35,12 @@ declare const NearbyShopsPublicCommand_base: {
|
|
|
35
35
|
* // const { AppAPIClient, NearbyShopsPublicCommand } = require("@sparkrewards/sra-client"); // CommonJS import
|
|
36
36
|
* const client = new AppAPIClient(config);
|
|
37
37
|
* const input = { // ShopListInput
|
|
38
|
-
* lat: Number("double"),
|
|
39
|
-
* lon: Number("double"),
|
|
38
|
+
* lat: Number("double"), // required
|
|
39
|
+
* lon: Number("double"), // required
|
|
40
40
|
* page: Number("int"),
|
|
41
|
-
*
|
|
41
|
+
* open_now: true || false,
|
|
42
|
+
* timezone: "STRING_VALUE",
|
|
43
|
+
* categories: "STRING_VALUE",
|
|
42
44
|
* };
|
|
43
45
|
* const command = new NearbyShopsPublicCommand(input);
|
|
44
46
|
* const response = await client.send(command);
|
|
@@ -23,7 +23,7 @@ export interface PopularShopsCommandOutput extends ShopListWithPaginationOutput,
|
|
|
23
23
|
}
|
|
24
24
|
declare const PopularShopsCommand_base: {
|
|
25
25
|
new (input: PopularShopsCommandInput): import("@smithy/smithy-client").CommandImpl<PopularShopsCommandInput, PopularShopsCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: PopularShopsCommandInput): import("@smithy/smithy-client").CommandImpl<PopularShopsCommandInput, PopularShopsCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -35,10 +35,12 @@ declare const PopularShopsCommand_base: {
|
|
|
35
35
|
* // const { AppAPIClient, PopularShopsCommand } = require("@sparkrewards/sra-client"); // CommonJS import
|
|
36
36
|
* const client = new AppAPIClient(config);
|
|
37
37
|
* const input = { // ShopListInput
|
|
38
|
-
* lat: Number("double"),
|
|
39
|
-
* lon: Number("double"),
|
|
38
|
+
* lat: Number("double"), // required
|
|
39
|
+
* lon: Number("double"), // required
|
|
40
40
|
* page: Number("int"),
|
|
41
|
-
*
|
|
41
|
+
* open_now: true || false,
|
|
42
|
+
* timezone: "STRING_VALUE",
|
|
43
|
+
* categories: "STRING_VALUE",
|
|
42
44
|
* };
|
|
43
45
|
* const command = new PopularShopsCommand(input);
|
|
44
46
|
* const response = await client.send(command);
|
|
@@ -23,7 +23,7 @@ export interface PopularShopsPublicCommandOutput extends ShopListWithPaginationO
|
|
|
23
23
|
}
|
|
24
24
|
declare const PopularShopsPublicCommand_base: {
|
|
25
25
|
new (input: PopularShopsPublicCommandInput): import("@smithy/smithy-client").CommandImpl<PopularShopsPublicCommandInput, PopularShopsPublicCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: PopularShopsPublicCommandInput): import("@smithy/smithy-client").CommandImpl<PopularShopsPublicCommandInput, PopularShopsPublicCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -35,10 +35,12 @@ declare const PopularShopsPublicCommand_base: {
|
|
|
35
35
|
* // const { AppAPIClient, PopularShopsPublicCommand } = require("@sparkrewards/sra-client"); // CommonJS import
|
|
36
36
|
* const client = new AppAPIClient(config);
|
|
37
37
|
* const input = { // ShopListInput
|
|
38
|
-
* lat: Number("double"),
|
|
39
|
-
* lon: Number("double"),
|
|
38
|
+
* lat: Number("double"), // required
|
|
39
|
+
* lon: Number("double"), // required
|
|
40
40
|
* page: Number("int"),
|
|
41
|
-
*
|
|
41
|
+
* open_now: true || false,
|
|
42
|
+
* timezone: "STRING_VALUE",
|
|
43
|
+
* categories: "STRING_VALUE",
|
|
42
44
|
* };
|
|
43
45
|
* const command = new PopularShopsPublicCommand(input);
|
|
44
46
|
* const response = await client.send(command);
|
|
@@ -23,7 +23,7 @@ export interface RadiusShopsCommandOutput extends RadiusShopsOutput, __MetadataB
|
|
|
23
23
|
}
|
|
24
24
|
declare const RadiusShopsCommand_base: {
|
|
25
25
|
new (input: RadiusShopsCommandInput): import("@smithy/smithy-client").CommandImpl<RadiusShopsCommandInput, RadiusShopsCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
-
new (
|
|
26
|
+
new (__0_0: RadiusShopsCommandInput): import("@smithy/smithy-client").CommandImpl<RadiusShopsCommandInput, RadiusShopsCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
@@ -35,10 +35,12 @@ declare const RadiusShopsCommand_base: {
|
|
|
35
35
|
* // const { AppAPIClient, RadiusShopsCommand } = require("@sparkrewards/sra-client"); // CommonJS import
|
|
36
36
|
* const client = new AppAPIClient(config);
|
|
37
37
|
* const input = { // ShopListInput
|
|
38
|
-
* lat: Number("double"),
|
|
39
|
-
* lon: Number("double"),
|
|
38
|
+
* lat: Number("double"), // required
|
|
39
|
+
* lon: Number("double"), // required
|
|
40
40
|
* page: Number("int"),
|
|
41
|
-
*
|
|
41
|
+
* open_now: true || false,
|
|
42
|
+
* timezone: "STRING_VALUE",
|
|
43
|
+
* categories: "STRING_VALUE",
|
|
42
44
|
* };
|
|
43
45
|
* const command = new RadiusShopsCommand(input);
|
|
44
46
|
* const response = await client.send(command);
|
|
@@ -40,7 +40,7 @@ declare const SearchShopsPublicCommand_base: {
|
|
|
40
40
|
* lat: Number("double"),
|
|
41
41
|
* lon: Number("double"),
|
|
42
42
|
* page: Number("int"),
|
|
43
|
-
*
|
|
43
|
+
* tags: "STRING_VALUE",
|
|
44
44
|
* };
|
|
45
45
|
* const command = new SearchShopsPublicCommand(input);
|
|
46
46
|
* const response = await client.send(command);
|
|
@@ -147,14 +147,15 @@ export interface PlansOutput {
|
|
|
147
147
|
pagination: PaginationInfo | undefined;
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
|
-
* Input for shop list operations that require location and pagination
|
|
151
150
|
* @public
|
|
152
151
|
*/
|
|
153
152
|
export interface ShopListInput {
|
|
154
|
-
lat
|
|
155
|
-
lon
|
|
153
|
+
lat: number | undefined;
|
|
154
|
+
lon: number | undefined;
|
|
156
155
|
page?: number;
|
|
157
|
-
|
|
156
|
+
open_now?: boolean;
|
|
157
|
+
timezone?: string;
|
|
158
|
+
categories?: string;
|
|
158
159
|
}
|
|
159
160
|
/**
|
|
160
161
|
* Location details for a shop
|
|
@@ -485,10 +486,9 @@ export interface SearchShopsInput {
|
|
|
485
486
|
lat?: number;
|
|
486
487
|
lon?: number;
|
|
487
488
|
page?: number;
|
|
488
|
-
|
|
489
|
+
tags?: string;
|
|
489
490
|
}
|
|
490
491
|
/**
|
|
491
|
-
* Note: FilterShopsInput is the same as ShopListInput - reuse ShopListInput
|
|
492
492
|
* Input for search suggestions
|
|
493
493
|
* @public
|
|
494
494
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkrewards/sra-client",
|
|
3
3
|
"description": "@sparkrewards/sra-client client",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.6",
|
|
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",
|