@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
|
@@ -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
|
-
], [
|
|
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
|
-
], [
|
|
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
|
|
221
|
-
lon
|
|
219
|
+
lat: number | undefined;
|
|
220
|
+
lon: number | undefined;
|
|
222
221
|
page?: number;
|
|
223
|
-
|
|
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
|
-
|
|
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.
|
|
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",
|