@sparkrewards/sra-client 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.
@@ -45,6 +45,7 @@ const se_FavoriteShopsCommand = async (input, context) => {
45
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]],
48
49
  [_c]: [, input[_c]],
49
50
  });
50
51
  let body;
@@ -114,6 +115,7 @@ const se_NearbyShopsCommand = async (input, context) => {
114
115
  [_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
115
116
  [_p]: [() => input.page !== void 0, () => (input[_p].toString())],
116
117
  [_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
118
+ [_t]: [, input[_t]],
117
119
  [_c]: [, input[_c]],
118
120
  });
119
121
  let body;
@@ -133,6 +135,7 @@ const se_NearbyShopsPublicCommand = async (input, context) => {
133
135
  [_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
134
136
  [_p]: [() => input.page !== void 0, () => (input[_p].toString())],
135
137
  [_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
138
+ [_t]: [, input[_t]],
136
139
  [_c]: [, input[_c]],
137
140
  });
138
141
  let body;
@@ -262,6 +265,7 @@ const se_PopularShopsCommand = async (input, context) => {
262
265
  [_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
263
266
  [_p]: [() => input.page !== void 0, () => (input[_p].toString())],
264
267
  [_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
268
+ [_t]: [, input[_t]],
265
269
  [_c]: [, input[_c]],
266
270
  });
267
271
  let body;
@@ -281,6 +285,7 @@ const se_PopularShopsPublicCommand = async (input, context) => {
281
285
  [_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
282
286
  [_p]: [() => input.page !== void 0, () => (input[_p].toString())],
283
287
  [_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
288
+ [_t]: [, input[_t]],
284
289
  [_c]: [, input[_c]],
285
290
  });
286
291
  let body;
@@ -300,6 +305,7 @@ const se_RadiusShopsCommand = async (input, context) => {
300
305
  [_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
301
306
  [_p]: [() => input.page !== void 0, () => (input[_p].toString())],
302
307
  [_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
308
+ [_t]: [, input[_t]],
303
309
  [_c]: [, input[_c]],
304
310
  });
305
311
  let body;
@@ -316,7 +322,7 @@ const se_RecordVisitCommand = async (input, context) => {
316
322
  b.bp("/visit");
317
323
  const query = (0, smithy_client_1.map)({
318
324
  [_si]: [, (0, smithy_client_1.expectNonNull)(input[_si], `shop_id`)],
319
- [_t]: [, (0, smithy_client_1.expectNonNull)(input[_t], `timestamp`)],
325
+ [_ti]: [, (0, smithy_client_1.expectNonNull)(input[_ti], `timestamp`)],
320
326
  [_la]: [(0, smithy_client_1.expectNonNull)(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
321
327
  [_lo]: [(0, smithy_client_1.expectNonNull)(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
322
328
  });
@@ -1078,5 +1084,6 @@ const _q = "q";
1078
1084
  const _ri = "reward_id";
1079
1085
  const _si = "shop_id";
1080
1086
  const _sn = "shop_name";
1081
- const _t = "timestamp";
1087
+ const _t = "timezone";
1082
1088
  const _ta = "tags";
1089
+ const _ti = "timestamp";
@@ -39,6 +39,7 @@ export const se_FavoriteShopsCommand = async (input, context) => {
39
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]],
42
43
  [_c]: [, input[_c]],
43
44
  });
44
45
  let body;
@@ -103,6 +104,7 @@ export const se_NearbyShopsCommand = async (input, context) => {
103
104
  [_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
104
105
  [_p]: [() => input.page !== void 0, () => (input[_p].toString())],
105
106
  [_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
107
+ [_t]: [, input[_t]],
106
108
  [_c]: [, input[_c]],
107
109
  });
108
110
  let body;
@@ -121,6 +123,7 @@ export const se_NearbyShopsPublicCommand = async (input, context) => {
121
123
  [_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
122
124
  [_p]: [() => input.page !== void 0, () => (input[_p].toString())],
123
125
  [_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
126
+ [_t]: [, input[_t]],
124
127
  [_c]: [, input[_c]],
125
128
  });
126
129
  let body;
@@ -242,6 +245,7 @@ export const se_PopularShopsCommand = async (input, context) => {
242
245
  [_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
243
246
  [_p]: [() => input.page !== void 0, () => (input[_p].toString())],
244
247
  [_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
248
+ [_t]: [, input[_t]],
245
249
  [_c]: [, input[_c]],
246
250
  });
247
251
  let body;
@@ -260,6 +264,7 @@ export const se_PopularShopsPublicCommand = async (input, context) => {
260
264
  [_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
261
265
  [_p]: [() => input.page !== void 0, () => (input[_p].toString())],
262
266
  [_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
267
+ [_t]: [, input[_t]],
263
268
  [_c]: [, input[_c]],
264
269
  });
265
270
  let body;
@@ -278,6 +283,7 @@ export const se_RadiusShopsCommand = async (input, context) => {
278
283
  [_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
279
284
  [_p]: [() => input.page !== void 0, () => (input[_p].toString())],
280
285
  [_on]: [() => input.open_now !== void 0, () => (input[_on].toString())],
286
+ [_t]: [, input[_t]],
281
287
  [_c]: [, input[_c]],
282
288
  });
283
289
  let body;
@@ -293,7 +299,7 @@ export const se_RecordVisitCommand = async (input, context) => {
293
299
  b.bp("/visit");
294
300
  const query = map({
295
301
  [_si]: [, __expectNonNull(input[_si], `shop_id`)],
296
- [_t]: [, __expectNonNull(input[_t], `timestamp`)],
302
+ [_ti]: [, __expectNonNull(input[_ti], `timestamp`)],
297
303
  [_la]: [__expectNonNull(input.lat, `lat`) != null, () => ((input[_la] % 1 == 0) ? input[_la] + ".0" : input[_la].toString())],
298
304
  [_lo]: [__expectNonNull(input.lon, `lon`) != null, () => ((input[_lo] % 1 == 0) ? input[_lo] + ".0" : input[_lo].toString())],
299
305
  });
@@ -1022,5 +1028,6 @@ const _q = "q";
1022
1028
  const _ri = "reward_id";
1023
1029
  const _si = "shop_id";
1024
1030
  const _sn = "shop_name";
1025
- const _t = "timestamp";
1031
+ const _t = "timezone";
1026
1032
  const _ta = "tags";
1033
+ const _ti = "timestamp";
@@ -39,6 +39,7 @@ declare const FavoriteShopsCommand_base: {
39
39
  * lon: Number("double"), // required
40
40
  * page: Number("int"),
41
41
  * open_now: true || false,
42
+ * timezone: "STRING_VALUE",
42
43
  * categories: "STRING_VALUE",
43
44
  * };
44
45
  * const command = new FavoriteShopsCommand(input);
@@ -39,6 +39,7 @@ declare const NearbyShopsCommand_base: {
39
39
  * lon: Number("double"), // required
40
40
  * page: Number("int"),
41
41
  * open_now: true || false,
42
+ * timezone: "STRING_VALUE",
42
43
  * categories: "STRING_VALUE",
43
44
  * };
44
45
  * const command = new NearbyShopsCommand(input);
@@ -39,6 +39,7 @@ declare const NearbyShopsPublicCommand_base: {
39
39
  * lon: Number("double"), // required
40
40
  * page: Number("int"),
41
41
  * open_now: true || false,
42
+ * timezone: "STRING_VALUE",
42
43
  * categories: "STRING_VALUE",
43
44
  * };
44
45
  * const command = new NearbyShopsPublicCommand(input);
@@ -39,6 +39,7 @@ declare const PopularShopsCommand_base: {
39
39
  * lon: Number("double"), // required
40
40
  * page: Number("int"),
41
41
  * open_now: true || false,
42
+ * timezone: "STRING_VALUE",
42
43
  * categories: "STRING_VALUE",
43
44
  * };
44
45
  * const command = new PopularShopsCommand(input);
@@ -39,6 +39,7 @@ declare const PopularShopsPublicCommand_base: {
39
39
  * lon: Number("double"), // required
40
40
  * page: Number("int"),
41
41
  * open_now: true || false,
42
+ * timezone: "STRING_VALUE",
42
43
  * categories: "STRING_VALUE",
43
44
  * };
44
45
  * const command = new PopularShopsPublicCommand(input);
@@ -39,6 +39,7 @@ declare const RadiusShopsCommand_base: {
39
39
  * lon: Number("double"), // required
40
40
  * page: Number("int"),
41
41
  * open_now: true || false,
42
+ * timezone: "STRING_VALUE",
42
43
  * categories: "STRING_VALUE",
43
44
  * };
44
45
  * const command = new RadiusShopsCommand(input);
@@ -154,6 +154,7 @@ export interface ShopListInput {
154
154
  lon: number | undefined;
155
155
  page?: number;
156
156
  open_now?: boolean;
157
+ timezone?: string;
157
158
  categories?: string;
158
159
  }
159
160
  /**
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.5",
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",