@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.
@@ -38,7 +38,10 @@ export const getPopularShopsPublicHandler = (operation) => {
38
38
  { type: 'path_literal', value: "public" },
39
39
  { type: 'path_literal', value: "shops" },
40
40
  { type: 'path_literal', value: "popular" },
41
- ], [], { service: "AppAPI", operation: "PopularShopsPublic" }),
41
+ ], [
42
+ { type: 'query', key: "lat" },
43
+ { type: 'query', key: "lon" },
44
+ ], { service: "AppAPI", operation: "PopularShopsPublic" }),
42
45
  ]);
43
46
  const customizer = (ctx, failures) => {
44
47
  if (!failures) {
@@ -38,7 +38,10 @@ export const getRadiusShopsHandler = (operation) => {
38
38
  { type: 'path_literal', value: "public" },
39
39
  { type: 'path_literal', value: "shops" },
40
40
  { type: 'path_literal', value: "radius" },
41
- ], [], { service: "AppAPI", operation: "RadiusShops" }),
41
+ ], [
42
+ { type: 'query', key: "lat" },
43
+ { type: 'query', key: "lon" },
44
+ ], { service: "AppAPI", operation: "RadiusShops" }),
42
45
  ]);
43
46
  const customizer = (ctx, failures) => {
44
47
  if (!failures) {
@@ -213,14 +213,14 @@ export declare namespace PlansOutput {
213
213
  const validate: (obj: PlansOutput, path?: string) => __ValidationFailure[];
214
214
  }
215
215
  /**
216
- * Input for shop list operations that require location and pagination
217
216
  * @public
218
217
  */
219
218
  export interface ShopListInput {
220
- lat?: number;
221
- lon?: number;
219
+ lat: number | undefined;
220
+ lon: number | undefined;
222
221
  page?: number;
223
- filters?: string;
222
+ open_now?: boolean;
223
+ categories?: string;
224
224
  }
225
225
  export declare namespace ShopListInput {
226
226
  /**
@@ -725,7 +725,7 @@ export interface SearchShopsInput {
725
725
  lat?: number;
726
726
  lon?: number;
727
727
  page?: number;
728
- filters?: string;
728
+ tags?: string;
729
729
  }
730
730
  export declare namespace SearchShopsInput {
731
731
  /**
@@ -734,7 +734,6 @@ export declare namespace SearchShopsInput {
734
734
  const validate: (obj: SearchShopsInput, path?: string) => __ValidationFailure[];
735
735
  }
736
736
  /**
737
- * Note: FilterShopsInput is the same as ShopListInput - reuse ShopListInput
738
737
  * Input for search suggestions
739
738
  * @public
740
739
  */
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.3",
4
+ "version": "0.0.5",
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",