@sparkrewards/sra-sdk 0.0.1
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 +201 -0
- package/dist-cjs/index.js +8 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +1901 -0
- package/dist-cjs/openapi.js +7 -0
- package/dist-cjs/openapi.json +2864 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2939 -0
- package/dist-cjs/server/AppAPIService.js +371 -0
- package/dist-cjs/server/index.js +5 -0
- package/dist-cjs/server/operations/DeleteUser.js +121 -0
- package/dist-cjs/server/operations/FavoritePlans.js +125 -0
- package/dist-cjs/server/operations/FavoriteShops.js +122 -0
- package/dist-cjs/server/operations/GetShop.js +126 -0
- package/dist-cjs/server/operations/GetShopPublic.js +127 -0
- package/dist-cjs/server/operations/GetUser.js +121 -0
- package/dist-cjs/server/operations/LikeOrg.js +124 -0
- package/dist-cjs/server/operations/NearbyShops.js +121 -0
- package/dist-cjs/server/operations/NearbyShopsPublic.js +122 -0
- package/dist-cjs/server/operations/NearestShop.js +126 -0
- package/dist-cjs/server/operations/OnboardUser.js +122 -0
- package/dist-cjs/server/operations/PinnedShop.js +126 -0
- package/dist-cjs/server/operations/PinnedShopPublic.js +127 -0
- package/dist-cjs/server/operations/Plan.js +123 -0
- package/dist-cjs/server/operations/PlanPublic.js +124 -0
- package/dist-cjs/server/operations/Plans.js +124 -0
- package/dist-cjs/server/operations/PopularShops.js +122 -0
- package/dist-cjs/server/operations/PopularShopsPublic.js +123 -0
- package/dist-cjs/server/operations/RadiusShops.js +123 -0
- package/dist-cjs/server/operations/RecordVisit.js +129 -0
- package/dist-cjs/server/operations/RedeemFirstTimeReward.js +125 -0
- package/dist-cjs/server/operations/RedeemPointReward.js +126 -0
- package/dist-cjs/server/operations/RedeemVisitReward.js +125 -0
- package/dist-cjs/server/operations/SearchShopsPublic.js +125 -0
- package/dist-cjs/server/operations/SearchSuggestion.js +126 -0
- package/dist-cjs/server/operations/UpdateUser.js +121 -0
- package/dist-cjs/server/operations/index.js +29 -0
- package/dist-es/index.js +4 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +1893 -0
- package/dist-es/openapi.js +3 -0
- package/dist-es/openapi.json +2864 -0
- package/dist-es/protocols/Aws_restJson1.js +2878 -0
- package/dist-es/server/AppAPIService.js +366 -0
- package/dist-es/server/index.js +2 -0
- package/dist-es/server/operations/DeleteUser.js +115 -0
- package/dist-es/server/operations/FavoritePlans.js +119 -0
- package/dist-es/server/operations/FavoriteShops.js +116 -0
- package/dist-es/server/operations/GetShop.js +120 -0
- package/dist-es/server/operations/GetShopPublic.js +121 -0
- package/dist-es/server/operations/GetUser.js +115 -0
- package/dist-es/server/operations/LikeOrg.js +118 -0
- package/dist-es/server/operations/NearbyShops.js +115 -0
- package/dist-es/server/operations/NearbyShopsPublic.js +116 -0
- package/dist-es/server/operations/NearestShop.js +120 -0
- package/dist-es/server/operations/OnboardUser.js +116 -0
- package/dist-es/server/operations/PinnedShop.js +120 -0
- package/dist-es/server/operations/PinnedShopPublic.js +121 -0
- package/dist-es/server/operations/Plan.js +117 -0
- package/dist-es/server/operations/PlanPublic.js +118 -0
- package/dist-es/server/operations/Plans.js +118 -0
- package/dist-es/server/operations/PopularShops.js +116 -0
- package/dist-es/server/operations/PopularShopsPublic.js +117 -0
- package/dist-es/server/operations/RadiusShops.js +117 -0
- package/dist-es/server/operations/RecordVisit.js +123 -0
- package/dist-es/server/operations/RedeemFirstTimeReward.js +119 -0
- package/dist-es/server/operations/RedeemPointReward.js +120 -0
- package/dist-es/server/operations/RedeemVisitReward.js +119 -0
- package/dist-es/server/operations/SearchShopsPublic.js +119 -0
- package/dist-es/server/operations/SearchSuggestion.js +120 -0
- package/dist-es/server/operations/UpdateUser.js +115 -0
- package/dist-es/server/operations/index.js +26 -0
- package/dist-types/index.d.ts +9 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +832 -0
- package/dist-types/openapi.d.ts +7 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +87 -0
- package/dist-types/server/AppAPIService.d.ts +76 -0
- package/dist-types/server/index.d.ts +2 -0
- package/dist-types/server/operations/DeleteUser.d.ts +41 -0
- package/dist-types/server/operations/FavoritePlans.d.ts +41 -0
- package/dist-types/server/operations/FavoriteShops.d.ts +41 -0
- package/dist-types/server/operations/GetShop.d.ts +41 -0
- package/dist-types/server/operations/GetShopPublic.d.ts +41 -0
- package/dist-types/server/operations/GetUser.d.ts +41 -0
- package/dist-types/server/operations/LikeOrg.d.ts +41 -0
- package/dist-types/server/operations/NearbyShops.d.ts +41 -0
- package/dist-types/server/operations/NearbyShopsPublic.d.ts +41 -0
- package/dist-types/server/operations/NearestShop.d.ts +41 -0
- package/dist-types/server/operations/OnboardUser.d.ts +41 -0
- package/dist-types/server/operations/PinnedShop.d.ts +41 -0
- package/dist-types/server/operations/PinnedShopPublic.d.ts +41 -0
- package/dist-types/server/operations/Plan.d.ts +41 -0
- package/dist-types/server/operations/PlanPublic.d.ts +41 -0
- package/dist-types/server/operations/Plans.d.ts +41 -0
- package/dist-types/server/operations/PopularShops.d.ts +41 -0
- package/dist-types/server/operations/PopularShopsPublic.d.ts +41 -0
- package/dist-types/server/operations/RadiusShops.d.ts +41 -0
- package/dist-types/server/operations/RecordVisit.d.ts +41 -0
- package/dist-types/server/operations/RedeemFirstTimeReward.d.ts +41 -0
- package/dist-types/server/operations/RedeemPointReward.d.ts +41 -0
- package/dist-types/server/operations/RedeemVisitReward.d.ts +41 -0
- package/dist-types/server/operations/SearchShopsPublic.d.ts +41 -0
- package/dist-types/server/operations/SearchSuggestion.d.ts +41 -0
- package/dist-types/server/operations/UpdateUser.d.ts +41 -0
- package/dist-types/server/operations/index.d.ts +26 -0
- package/package.json +66 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OnboardUserInput, OnboardUserOutput, RuntimeError, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type OnboardUser<Context> = __Operation<OnboardUserServerInput, OnboardUserServerOutput, Context>;
|
|
6
|
+
export interface OnboardUserServerInput extends OnboardUserInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace OnboardUserServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof OnboardUserInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface OnboardUserServerOutput extends OnboardUserOutput {
|
|
15
|
+
}
|
|
16
|
+
export type OnboardUserErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class OnboardUserSerializer implements __OperationSerializer<AppAPIService<any>, "OnboardUser", OnboardUserErrors> {
|
|
18
|
+
serialize: (input: OnboardUserServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<OnboardUserServerInput>;
|
|
20
|
+
isOperationError(error: any): error is OnboardUserErrors;
|
|
21
|
+
serializeError(error: OnboardUserErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getOnboardUserHandler: <Context>(operation: __Operation<OnboardUserServerInput, OnboardUserServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class OnboardUserHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a OnboardUser handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for OnboardUser
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for OnboardUser that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<OnboardUserServerInput, OnboardUserServerOutput, Context>, mux: __Mux<"AppAPI", "OnboardUser">, serializer: __OperationSerializer<AppAPIService<Context>, "OnboardUser", OnboardUserErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"OnboardUser">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EnrichedShop, PinnedShopInput, RuntimeError, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type PinnedShop<Context> = __Operation<PinnedShopServerInput, PinnedShopServerOutput, Context>;
|
|
6
|
+
export interface PinnedShopServerInput extends PinnedShopInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace PinnedShopServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof PinnedShopInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface PinnedShopServerOutput extends EnrichedShop {
|
|
15
|
+
}
|
|
16
|
+
export type PinnedShopErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class PinnedShopSerializer implements __OperationSerializer<AppAPIService<any>, "PinnedShop", PinnedShopErrors> {
|
|
18
|
+
serialize: (input: PinnedShopServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<PinnedShopServerInput>;
|
|
20
|
+
isOperationError(error: any): error is PinnedShopErrors;
|
|
21
|
+
serializeError(error: PinnedShopErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getPinnedShopHandler: <Context>(operation: __Operation<PinnedShopServerInput, PinnedShopServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class PinnedShopHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a PinnedShop handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for PinnedShop
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for PinnedShop that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<PinnedShopServerInput, PinnedShopServerOutput, Context>, mux: __Mux<"AppAPI", "PinnedShop">, serializer: __OperationSerializer<AppAPIService<Context>, "PinnedShop", PinnedShopErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"PinnedShop">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { EnrichedShop, PinnedShopInput, RuntimeError, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type PinnedShopPublic<Context> = __Operation<PinnedShopPublicServerInput, PinnedShopPublicServerOutput, Context>;
|
|
6
|
+
export interface PinnedShopPublicServerInput extends PinnedShopInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace PinnedShopPublicServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof PinnedShopInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface PinnedShopPublicServerOutput extends EnrichedShop {
|
|
15
|
+
}
|
|
16
|
+
export type PinnedShopPublicErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class PinnedShopPublicSerializer implements __OperationSerializer<AppAPIService<any>, "PinnedShopPublic", PinnedShopPublicErrors> {
|
|
18
|
+
serialize: (input: PinnedShopPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<PinnedShopPublicServerInput>;
|
|
20
|
+
isOperationError(error: any): error is PinnedShopPublicErrors;
|
|
21
|
+
serializeError(error: PinnedShopPublicErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getPinnedShopPublicHandler: <Context>(operation: __Operation<PinnedShopPublicServerInput, PinnedShopPublicServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class PinnedShopPublicHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a PinnedShopPublic handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for PinnedShopPublic
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for PinnedShopPublic that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<PinnedShopPublicServerInput, PinnedShopPublicServerOutput, Context>, mux: __Mux<"AppAPI", "PinnedShopPublic">, serializer: __OperationSerializer<AppAPIService<Context>, "PinnedShopPublic", PinnedShopPublicErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"PinnedShopPublic">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PlanGetInput, PlanOutput, RuntimeError, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type Plan<Context> = __Operation<PlanServerInput, PlanServerOutput, Context>;
|
|
6
|
+
export interface PlanServerInput extends PlanGetInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace PlanServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof PlanGetInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface PlanServerOutput extends PlanOutput {
|
|
15
|
+
}
|
|
16
|
+
export type PlanErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class PlanSerializer implements __OperationSerializer<AppAPIService<any>, "Plan", PlanErrors> {
|
|
18
|
+
serialize: (input: PlanServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<PlanServerInput>;
|
|
20
|
+
isOperationError(error: any): error is PlanErrors;
|
|
21
|
+
serializeError(error: PlanErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getPlanHandler: <Context>(operation: __Operation<PlanServerInput, PlanServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class PlanHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a Plan handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for Plan
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for Plan that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<PlanServerInput, PlanServerOutput, Context>, mux: __Mux<"AppAPI", "Plan">, serializer: __OperationSerializer<AppAPIService<Context>, "Plan", PlanErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"Plan">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PlanGetInput, PlanOutput, RuntimeError, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type PlanPublic<Context> = __Operation<PlanPublicServerInput, PlanPublicServerOutput, Context>;
|
|
6
|
+
export interface PlanPublicServerInput extends PlanGetInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace PlanPublicServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof PlanGetInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface PlanPublicServerOutput extends PlanOutput {
|
|
15
|
+
}
|
|
16
|
+
export type PlanPublicErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class PlanPublicSerializer implements __OperationSerializer<AppAPIService<any>, "PlanPublic", PlanPublicErrors> {
|
|
18
|
+
serialize: (input: PlanPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<PlanPublicServerInput>;
|
|
20
|
+
isOperationError(error: any): error is PlanPublicErrors;
|
|
21
|
+
serializeError(error: PlanPublicErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getPlanPublicHandler: <Context>(operation: __Operation<PlanPublicServerInput, PlanPublicServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class PlanPublicHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a PlanPublic handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for PlanPublic
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for PlanPublic that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<PlanPublicServerInput, PlanPublicServerOutput, Context>, mux: __Mux<"AppAPI", "PlanPublic">, serializer: __OperationSerializer<AppAPIService<Context>, "PlanPublic", PlanPublicErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"PlanPublic">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PlansListInput, PlansOutput, RuntimeError, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type Plans<Context> = __Operation<PlansServerInput, PlansServerOutput, Context>;
|
|
6
|
+
export interface PlansServerInput extends PlansListInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace PlansServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof PlansListInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface PlansServerOutput extends PlansOutput {
|
|
15
|
+
}
|
|
16
|
+
export type PlansErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class PlansSerializer implements __OperationSerializer<AppAPIService<any>, "Plans", PlansErrors> {
|
|
18
|
+
serialize: (input: PlansServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<PlansServerInput>;
|
|
20
|
+
isOperationError(error: any): error is PlansErrors;
|
|
21
|
+
serializeError(error: PlansErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getPlansHandler: <Context>(operation: __Operation<PlansServerInput, PlansServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class PlansHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a Plans handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for Plans
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for Plans that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<PlansServerInput, PlansServerOutput, Context>, mux: __Mux<"AppAPI", "Plans">, serializer: __OperationSerializer<AppAPIService<Context>, "Plans", PlansErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"Plans">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RuntimeError, ShopListInput, ShopListWithPaginationOutput, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type PopularShops<Context> = __Operation<PopularShopsServerInput, PopularShopsServerOutput, Context>;
|
|
6
|
+
export interface PopularShopsServerInput extends ShopListInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace PopularShopsServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof ShopListInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface PopularShopsServerOutput extends ShopListWithPaginationOutput {
|
|
15
|
+
}
|
|
16
|
+
export type PopularShopsErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class PopularShopsSerializer implements __OperationSerializer<AppAPIService<any>, "PopularShops", PopularShopsErrors> {
|
|
18
|
+
serialize: (input: PopularShopsServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<PopularShopsServerInput>;
|
|
20
|
+
isOperationError(error: any): error is PopularShopsErrors;
|
|
21
|
+
serializeError(error: PopularShopsErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getPopularShopsHandler: <Context>(operation: __Operation<PopularShopsServerInput, PopularShopsServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class PopularShopsHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a PopularShops handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for PopularShops
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for PopularShops that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<PopularShopsServerInput, PopularShopsServerOutput, Context>, mux: __Mux<"AppAPI", "PopularShops">, serializer: __OperationSerializer<AppAPIService<Context>, "PopularShops", PopularShopsErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"PopularShops">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RuntimeError, ShopListInput, ShopListWithPaginationOutput, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type PopularShopsPublic<Context> = __Operation<PopularShopsPublicServerInput, PopularShopsPublicServerOutput, Context>;
|
|
6
|
+
export interface PopularShopsPublicServerInput extends ShopListInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace PopularShopsPublicServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof ShopListInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface PopularShopsPublicServerOutput extends ShopListWithPaginationOutput {
|
|
15
|
+
}
|
|
16
|
+
export type PopularShopsPublicErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class PopularShopsPublicSerializer implements __OperationSerializer<AppAPIService<any>, "PopularShopsPublic", PopularShopsPublicErrors> {
|
|
18
|
+
serialize: (input: PopularShopsPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<PopularShopsPublicServerInput>;
|
|
20
|
+
isOperationError(error: any): error is PopularShopsPublicErrors;
|
|
21
|
+
serializeError(error: PopularShopsPublicErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getPopularShopsPublicHandler: <Context>(operation: __Operation<PopularShopsPublicServerInput, PopularShopsPublicServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class PopularShopsPublicHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a PopularShopsPublic handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for PopularShopsPublic
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for PopularShopsPublic that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<PopularShopsPublicServerInput, PopularShopsPublicServerOutput, Context>, mux: __Mux<"AppAPI", "PopularShopsPublic">, serializer: __OperationSerializer<AppAPIService<Context>, "PopularShopsPublic", PopularShopsPublicErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"PopularShopsPublic">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RadiusShopsOutput, RuntimeError, ShopListInput, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type RadiusShops<Context> = __Operation<RadiusShopsServerInput, RadiusShopsServerOutput, Context>;
|
|
6
|
+
export interface RadiusShopsServerInput extends ShopListInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace RadiusShopsServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof ShopListInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface RadiusShopsServerOutput extends RadiusShopsOutput {
|
|
15
|
+
}
|
|
16
|
+
export type RadiusShopsErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class RadiusShopsSerializer implements __OperationSerializer<AppAPIService<any>, "RadiusShops", RadiusShopsErrors> {
|
|
18
|
+
serialize: (input: RadiusShopsServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<RadiusShopsServerInput>;
|
|
20
|
+
isOperationError(error: any): error is RadiusShopsErrors;
|
|
21
|
+
serializeError(error: RadiusShopsErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getRadiusShopsHandler: <Context>(operation: __Operation<RadiusShopsServerInput, RadiusShopsServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class RadiusShopsHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a RadiusShops handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for RadiusShops
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for RadiusShops that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<RadiusShopsServerInput, RadiusShopsServerOutput, Context>, mux: __Mux<"AppAPI", "RadiusShops">, serializer: __OperationSerializer<AppAPIService<Context>, "RadiusShops", RadiusShopsErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"RadiusShops">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { InvalidOperationError, RecordVisitInput, RecordVisitOutput, RuntimeError, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type RecordVisit<Context> = __Operation<RecordVisitServerInput, RecordVisitServerOutput, Context>;
|
|
6
|
+
export interface RecordVisitServerInput extends RecordVisitInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace RecordVisitServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof RecordVisitInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface RecordVisitServerOutput extends RecordVisitOutput {
|
|
15
|
+
}
|
|
16
|
+
export type RecordVisitErrors = ValidationException | RuntimeError | InvalidOperationError;
|
|
17
|
+
export declare class RecordVisitSerializer implements __OperationSerializer<AppAPIService<any>, "RecordVisit", RecordVisitErrors> {
|
|
18
|
+
serialize: (input: RecordVisitServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<RecordVisitServerInput>;
|
|
20
|
+
isOperationError(error: any): error is RecordVisitErrors;
|
|
21
|
+
serializeError(error: RecordVisitErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getRecordVisitHandler: <Context>(operation: __Operation<RecordVisitServerInput, RecordVisitServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class RecordVisitHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a RecordVisit handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for RecordVisit
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for RecordVisit that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<RecordVisitServerInput, RecordVisitServerOutput, Context>, mux: __Mux<"AppAPI", "RecordVisit">, serializer: __OperationSerializer<AppAPIService<Context>, "RecordVisit", RecordVisitErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"RecordVisit">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RedeemFirstTimeRewardInput, RedeemRewardOutput, RuntimeError, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type RedeemFirstTimeReward<Context> = __Operation<RedeemFirstTimeRewardServerInput, RedeemFirstTimeRewardServerOutput, Context>;
|
|
6
|
+
export interface RedeemFirstTimeRewardServerInput extends RedeemFirstTimeRewardInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace RedeemFirstTimeRewardServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof RedeemFirstTimeRewardInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface RedeemFirstTimeRewardServerOutput extends RedeemRewardOutput {
|
|
15
|
+
}
|
|
16
|
+
export type RedeemFirstTimeRewardErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class RedeemFirstTimeRewardSerializer implements __OperationSerializer<AppAPIService<any>, "RedeemFirstTimeReward", RedeemFirstTimeRewardErrors> {
|
|
18
|
+
serialize: (input: RedeemFirstTimeRewardServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<RedeemFirstTimeRewardServerInput>;
|
|
20
|
+
isOperationError(error: any): error is RedeemFirstTimeRewardErrors;
|
|
21
|
+
serializeError(error: RedeemFirstTimeRewardErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getRedeemFirstTimeRewardHandler: <Context>(operation: __Operation<RedeemFirstTimeRewardServerInput, RedeemFirstTimeRewardServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class RedeemFirstTimeRewardHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a RedeemFirstTimeReward handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for RedeemFirstTimeReward
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for RedeemFirstTimeReward that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<RedeemFirstTimeRewardServerInput, RedeemFirstTimeRewardServerOutput, Context>, mux: __Mux<"AppAPI", "RedeemFirstTimeReward">, serializer: __OperationSerializer<AppAPIService<Context>, "RedeemFirstTimeReward", RedeemFirstTimeRewardErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"RedeemFirstTimeReward">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RedeemPointRewardInput, RedeemPointRewardOutput, RuntimeError, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type RedeemPointReward<Context> = __Operation<RedeemPointRewardServerInput, RedeemPointRewardServerOutput, Context>;
|
|
6
|
+
export interface RedeemPointRewardServerInput extends RedeemPointRewardInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace RedeemPointRewardServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof RedeemPointRewardInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface RedeemPointRewardServerOutput extends RedeemPointRewardOutput {
|
|
15
|
+
}
|
|
16
|
+
export type RedeemPointRewardErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class RedeemPointRewardSerializer implements __OperationSerializer<AppAPIService<any>, "RedeemPointReward", RedeemPointRewardErrors> {
|
|
18
|
+
serialize: (input: RedeemPointRewardServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<RedeemPointRewardServerInput>;
|
|
20
|
+
isOperationError(error: any): error is RedeemPointRewardErrors;
|
|
21
|
+
serializeError(error: RedeemPointRewardErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getRedeemPointRewardHandler: <Context>(operation: __Operation<RedeemPointRewardServerInput, RedeemPointRewardServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class RedeemPointRewardHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a RedeemPointReward handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for RedeemPointReward
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for RedeemPointReward that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<RedeemPointRewardServerInput, RedeemPointRewardServerOutput, Context>, mux: __Mux<"AppAPI", "RedeemPointReward">, serializer: __OperationSerializer<AppAPIService<Context>, "RedeemPointReward", RedeemPointRewardErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"RedeemPointReward">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RedeemRewardOutput, RedeemVisitRewardInput, RuntimeError, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type RedeemVisitReward<Context> = __Operation<RedeemVisitRewardServerInput, RedeemVisitRewardServerOutput, Context>;
|
|
6
|
+
export interface RedeemVisitRewardServerInput extends RedeemVisitRewardInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace RedeemVisitRewardServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof RedeemVisitRewardInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface RedeemVisitRewardServerOutput extends RedeemRewardOutput {
|
|
15
|
+
}
|
|
16
|
+
export type RedeemVisitRewardErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class RedeemVisitRewardSerializer implements __OperationSerializer<AppAPIService<any>, "RedeemVisitReward", RedeemVisitRewardErrors> {
|
|
18
|
+
serialize: (input: RedeemVisitRewardServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<RedeemVisitRewardServerInput>;
|
|
20
|
+
isOperationError(error: any): error is RedeemVisitRewardErrors;
|
|
21
|
+
serializeError(error: RedeemVisitRewardErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getRedeemVisitRewardHandler: <Context>(operation: __Operation<RedeemVisitRewardServerInput, RedeemVisitRewardServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class RedeemVisitRewardHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a RedeemVisitReward handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for RedeemVisitReward
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for RedeemVisitReward that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<RedeemVisitRewardServerInput, RedeemVisitRewardServerOutput, Context>, mux: __Mux<"AppAPI", "RedeemVisitReward">, serializer: __OperationSerializer<AppAPIService<Context>, "RedeemVisitReward", RedeemVisitRewardErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"RedeemVisitReward">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RuntimeError, SearchShopsInput, ShopListWithPaginationOutput, ValidationException } from "../../models/models_0";
|
|
2
|
+
import { AppAPIService } from "../AppAPIService";
|
|
3
|
+
import { ServerSerdeContext, Mux as __Mux, Operation as __Operation, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer, ValidationFailure as __ValidationFailure } from "@aws-smithy/server-common";
|
|
4
|
+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
5
|
+
export type SearchShopsPublic<Context> = __Operation<SearchShopsPublicServerInput, SearchShopsPublicServerOutput, Context>;
|
|
6
|
+
export interface SearchShopsPublicServerInput extends SearchShopsInput {
|
|
7
|
+
}
|
|
8
|
+
export declare namespace SearchShopsPublicServerInput {
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
12
|
+
const validate: (obj: Parameters<typeof SearchShopsInput.validate>[0]) => __ValidationFailure[];
|
|
13
|
+
}
|
|
14
|
+
export interface SearchShopsPublicServerOutput extends ShopListWithPaginationOutput {
|
|
15
|
+
}
|
|
16
|
+
export type SearchShopsPublicErrors = ValidationException | RuntimeError;
|
|
17
|
+
export declare class SearchShopsPublicSerializer implements __OperationSerializer<AppAPIService<any>, "SearchShopsPublic", SearchShopsPublicErrors> {
|
|
18
|
+
serialize: (input: SearchShopsPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
|
|
19
|
+
deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<SearchShopsPublicServerInput>;
|
|
20
|
+
isOperationError(error: any): error is SearchShopsPublicErrors;
|
|
21
|
+
serializeError(error: SearchShopsPublicErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
|
|
22
|
+
}
|
|
23
|
+
export declare const getSearchShopsPublicHandler: <Context>(operation: __Operation<SearchShopsPublicServerInput, SearchShopsPublicServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
|
|
24
|
+
export declare class SearchShopsPublicHandler<Context> implements __ServiceHandler<Context> {
|
|
25
|
+
private readonly operation;
|
|
26
|
+
private readonly mux;
|
|
27
|
+
private readonly serializer;
|
|
28
|
+
private readonly serializeFrameworkException;
|
|
29
|
+
private readonly validationCustomizer;
|
|
30
|
+
/**
|
|
31
|
+
* Construct a SearchShopsPublic handler.
|
|
32
|
+
* @param operation The {@link __Operation} implementation that supplies the business logic for SearchShopsPublic
|
|
33
|
+
* @param mux The {@link __Mux} that verifies which service and operation are being invoked by a given {@link __HttpRequest}
|
|
34
|
+
* @param serializer An {@link __OperationSerializer} for SearchShopsPublic that
|
|
35
|
+
* handles deserialization of requests and serialization of responses
|
|
36
|
+
* @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
|
|
37
|
+
* @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
|
|
38
|
+
*/
|
|
39
|
+
constructor(operation: __Operation<SearchShopsPublicServerInput, SearchShopsPublicServerOutput, Context>, mux: __Mux<"AppAPI", "SearchShopsPublic">, serializer: __OperationSerializer<AppAPIService<Context>, "SearchShopsPublic", SearchShopsPublicErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"SearchShopsPublic">);
|
|
40
|
+
handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
|
|
41
|
+
}
|