@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.
Files changed (106) hide show
  1. package/LICENSE +201 -0
  2. package/dist-cjs/index.js +8 -0
  3. package/dist-cjs/models/index.js +4 -0
  4. package/dist-cjs/models/models_0.js +1901 -0
  5. package/dist-cjs/openapi.js +7 -0
  6. package/dist-cjs/openapi.json +2864 -0
  7. package/dist-cjs/protocols/Aws_restJson1.js +2939 -0
  8. package/dist-cjs/server/AppAPIService.js +371 -0
  9. package/dist-cjs/server/index.js +5 -0
  10. package/dist-cjs/server/operations/DeleteUser.js +121 -0
  11. package/dist-cjs/server/operations/FavoritePlans.js +125 -0
  12. package/dist-cjs/server/operations/FavoriteShops.js +122 -0
  13. package/dist-cjs/server/operations/GetShop.js +126 -0
  14. package/dist-cjs/server/operations/GetShopPublic.js +127 -0
  15. package/dist-cjs/server/operations/GetUser.js +121 -0
  16. package/dist-cjs/server/operations/LikeOrg.js +124 -0
  17. package/dist-cjs/server/operations/NearbyShops.js +121 -0
  18. package/dist-cjs/server/operations/NearbyShopsPublic.js +122 -0
  19. package/dist-cjs/server/operations/NearestShop.js +126 -0
  20. package/dist-cjs/server/operations/OnboardUser.js +122 -0
  21. package/dist-cjs/server/operations/PinnedShop.js +126 -0
  22. package/dist-cjs/server/operations/PinnedShopPublic.js +127 -0
  23. package/dist-cjs/server/operations/Plan.js +123 -0
  24. package/dist-cjs/server/operations/PlanPublic.js +124 -0
  25. package/dist-cjs/server/operations/Plans.js +124 -0
  26. package/dist-cjs/server/operations/PopularShops.js +122 -0
  27. package/dist-cjs/server/operations/PopularShopsPublic.js +123 -0
  28. package/dist-cjs/server/operations/RadiusShops.js +123 -0
  29. package/dist-cjs/server/operations/RecordVisit.js +129 -0
  30. package/dist-cjs/server/operations/RedeemFirstTimeReward.js +125 -0
  31. package/dist-cjs/server/operations/RedeemPointReward.js +126 -0
  32. package/dist-cjs/server/operations/RedeemVisitReward.js +125 -0
  33. package/dist-cjs/server/operations/SearchShopsPublic.js +125 -0
  34. package/dist-cjs/server/operations/SearchSuggestion.js +126 -0
  35. package/dist-cjs/server/operations/UpdateUser.js +121 -0
  36. package/dist-cjs/server/operations/index.js +29 -0
  37. package/dist-es/index.js +4 -0
  38. package/dist-es/models/index.js +1 -0
  39. package/dist-es/models/models_0.js +1893 -0
  40. package/dist-es/openapi.js +3 -0
  41. package/dist-es/openapi.json +2864 -0
  42. package/dist-es/protocols/Aws_restJson1.js +2878 -0
  43. package/dist-es/server/AppAPIService.js +366 -0
  44. package/dist-es/server/index.js +2 -0
  45. package/dist-es/server/operations/DeleteUser.js +115 -0
  46. package/dist-es/server/operations/FavoritePlans.js +119 -0
  47. package/dist-es/server/operations/FavoriteShops.js +116 -0
  48. package/dist-es/server/operations/GetShop.js +120 -0
  49. package/dist-es/server/operations/GetShopPublic.js +121 -0
  50. package/dist-es/server/operations/GetUser.js +115 -0
  51. package/dist-es/server/operations/LikeOrg.js +118 -0
  52. package/dist-es/server/operations/NearbyShops.js +115 -0
  53. package/dist-es/server/operations/NearbyShopsPublic.js +116 -0
  54. package/dist-es/server/operations/NearestShop.js +120 -0
  55. package/dist-es/server/operations/OnboardUser.js +116 -0
  56. package/dist-es/server/operations/PinnedShop.js +120 -0
  57. package/dist-es/server/operations/PinnedShopPublic.js +121 -0
  58. package/dist-es/server/operations/Plan.js +117 -0
  59. package/dist-es/server/operations/PlanPublic.js +118 -0
  60. package/dist-es/server/operations/Plans.js +118 -0
  61. package/dist-es/server/operations/PopularShops.js +116 -0
  62. package/dist-es/server/operations/PopularShopsPublic.js +117 -0
  63. package/dist-es/server/operations/RadiusShops.js +117 -0
  64. package/dist-es/server/operations/RecordVisit.js +123 -0
  65. package/dist-es/server/operations/RedeemFirstTimeReward.js +119 -0
  66. package/dist-es/server/operations/RedeemPointReward.js +120 -0
  67. package/dist-es/server/operations/RedeemVisitReward.js +119 -0
  68. package/dist-es/server/operations/SearchShopsPublic.js +119 -0
  69. package/dist-es/server/operations/SearchSuggestion.js +120 -0
  70. package/dist-es/server/operations/UpdateUser.js +115 -0
  71. package/dist-es/server/operations/index.js +26 -0
  72. package/dist-types/index.d.ts +9 -0
  73. package/dist-types/models/index.d.ts +1 -0
  74. package/dist-types/models/models_0.d.ts +832 -0
  75. package/dist-types/openapi.d.ts +7 -0
  76. package/dist-types/protocols/Aws_restJson1.d.ts +87 -0
  77. package/dist-types/server/AppAPIService.d.ts +76 -0
  78. package/dist-types/server/index.d.ts +2 -0
  79. package/dist-types/server/operations/DeleteUser.d.ts +41 -0
  80. package/dist-types/server/operations/FavoritePlans.d.ts +41 -0
  81. package/dist-types/server/operations/FavoriteShops.d.ts +41 -0
  82. package/dist-types/server/operations/GetShop.d.ts +41 -0
  83. package/dist-types/server/operations/GetShopPublic.d.ts +41 -0
  84. package/dist-types/server/operations/GetUser.d.ts +41 -0
  85. package/dist-types/server/operations/LikeOrg.d.ts +41 -0
  86. package/dist-types/server/operations/NearbyShops.d.ts +41 -0
  87. package/dist-types/server/operations/NearbyShopsPublic.d.ts +41 -0
  88. package/dist-types/server/operations/NearestShop.d.ts +41 -0
  89. package/dist-types/server/operations/OnboardUser.d.ts +41 -0
  90. package/dist-types/server/operations/PinnedShop.d.ts +41 -0
  91. package/dist-types/server/operations/PinnedShopPublic.d.ts +41 -0
  92. package/dist-types/server/operations/Plan.d.ts +41 -0
  93. package/dist-types/server/operations/PlanPublic.d.ts +41 -0
  94. package/dist-types/server/operations/Plans.d.ts +41 -0
  95. package/dist-types/server/operations/PopularShops.d.ts +41 -0
  96. package/dist-types/server/operations/PopularShopsPublic.d.ts +41 -0
  97. package/dist-types/server/operations/RadiusShops.d.ts +41 -0
  98. package/dist-types/server/operations/RecordVisit.d.ts +41 -0
  99. package/dist-types/server/operations/RedeemFirstTimeReward.d.ts +41 -0
  100. package/dist-types/server/operations/RedeemPointReward.d.ts +41 -0
  101. package/dist-types/server/operations/RedeemVisitReward.d.ts +41 -0
  102. package/dist-types/server/operations/SearchShopsPublic.d.ts +41 -0
  103. package/dist-types/server/operations/SearchSuggestion.d.ts +41 -0
  104. package/dist-types/server/operations/UpdateUser.d.ts +41 -0
  105. package/dist-types/server/operations/index.d.ts +26 -0
  106. package/package.json +66 -0
@@ -0,0 +1,7 @@
1
+ import openApiJson from './openapi.json';
2
+ /**
3
+ * OpenAPI 3.1.0 specification for the AppAPI service
4
+ * Generated from Smithy model
5
+ */
6
+ export declare const OpenApiJSON: typeof openApiJson;
7
+ export default OpenApiJSON;
@@ -0,0 +1,87 @@
1
+ import { InvalidOperationError, NotFoundError, RuntimeError, ValidationException } from "../models/models_0";
2
+ import { DeleteUserServerInput, DeleteUserServerOutput } from "../server/operations/DeleteUser";
3
+ import { FavoritePlansServerInput, FavoritePlansServerOutput } from "../server/operations/FavoritePlans";
4
+ import { FavoriteShopsServerInput, FavoriteShopsServerOutput } from "../server/operations/FavoriteShops";
5
+ import { GetShopServerInput, GetShopServerOutput } from "../server/operations/GetShop";
6
+ import { GetShopPublicServerInput, GetShopPublicServerOutput } from "../server/operations/GetShopPublic";
7
+ import { GetUserServerInput, GetUserServerOutput } from "../server/operations/GetUser";
8
+ import { LikeOrgServerInput, LikeOrgServerOutput } from "../server/operations/LikeOrg";
9
+ import { NearbyShopsServerInput, NearbyShopsServerOutput } from "../server/operations/NearbyShops";
10
+ import { NearbyShopsPublicServerInput, NearbyShopsPublicServerOutput } from "../server/operations/NearbyShopsPublic";
11
+ import { NearestShopServerInput, NearestShopServerOutput } from "../server/operations/NearestShop";
12
+ import { OnboardUserServerInput, OnboardUserServerOutput } from "../server/operations/OnboardUser";
13
+ import { PinnedShopServerInput, PinnedShopServerOutput } from "../server/operations/PinnedShop";
14
+ import { PinnedShopPublicServerInput, PinnedShopPublicServerOutput } from "../server/operations/PinnedShopPublic";
15
+ import { PlanServerInput, PlanServerOutput } from "../server/operations/Plan";
16
+ import { PlanPublicServerInput, PlanPublicServerOutput } from "../server/operations/PlanPublic";
17
+ import { PlansServerInput, PlansServerOutput } from "../server/operations/Plans";
18
+ import { PopularShopsServerInput, PopularShopsServerOutput } from "../server/operations/PopularShops";
19
+ import { PopularShopsPublicServerInput, PopularShopsPublicServerOutput } from "../server/operations/PopularShopsPublic";
20
+ import { RadiusShopsServerInput, RadiusShopsServerOutput } from "../server/operations/RadiusShops";
21
+ import { RecordVisitServerInput, RecordVisitServerOutput } from "../server/operations/RecordVisit";
22
+ import { RedeemFirstTimeRewardServerInput, RedeemFirstTimeRewardServerOutput } from "../server/operations/RedeemFirstTimeReward";
23
+ import { RedeemPointRewardServerInput, RedeemPointRewardServerOutput } from "../server/operations/RedeemPointReward";
24
+ import { RedeemVisitRewardServerInput, RedeemVisitRewardServerOutput } from "../server/operations/RedeemVisitReward";
25
+ import { SearchShopsPublicServerInput, SearchShopsPublicServerOutput } from "../server/operations/SearchShopsPublic";
26
+ import { SearchSuggestionServerInput, SearchSuggestionServerOutput } from "../server/operations/SearchSuggestion";
27
+ import { UpdateUserServerInput, UpdateUserServerOutput } from "../server/operations/UpdateUser";
28
+ import { ServerSerdeContext, SmithyFrameworkException as __SmithyFrameworkException } from "@aws-smithy/server-common";
29
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
30
+ import { SerdeContext as __SerdeContext } from "@smithy/types";
31
+ export declare const deserializeDeleteUserRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<DeleteUserServerInput>;
32
+ export declare const deserializeFavoritePlansRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<FavoritePlansServerInput>;
33
+ export declare const deserializeFavoriteShopsRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<FavoriteShopsServerInput>;
34
+ export declare const deserializeGetShopRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<GetShopServerInput>;
35
+ export declare const deserializeGetShopPublicRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<GetShopPublicServerInput>;
36
+ export declare const deserializeGetUserRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<GetUserServerInput>;
37
+ export declare const deserializeLikeOrgRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<LikeOrgServerInput>;
38
+ export declare const deserializeNearbyShopsRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<NearbyShopsServerInput>;
39
+ export declare const deserializeNearbyShopsPublicRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<NearbyShopsPublicServerInput>;
40
+ export declare const deserializeNearestShopRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<NearestShopServerInput>;
41
+ export declare const deserializeOnboardUserRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<OnboardUserServerInput>;
42
+ export declare const deserializePinnedShopRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<PinnedShopServerInput>;
43
+ export declare const deserializePinnedShopPublicRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<PinnedShopPublicServerInput>;
44
+ export declare const deserializePlanRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<PlanServerInput>;
45
+ export declare const deserializePlanPublicRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<PlanPublicServerInput>;
46
+ export declare const deserializePlansRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<PlansServerInput>;
47
+ export declare const deserializePopularShopsRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<PopularShopsServerInput>;
48
+ export declare const deserializePopularShopsPublicRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<PopularShopsPublicServerInput>;
49
+ export declare const deserializeRadiusShopsRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<RadiusShopsServerInput>;
50
+ export declare const deserializeRecordVisitRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<RecordVisitServerInput>;
51
+ export declare const deserializeRedeemFirstTimeRewardRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<RedeemFirstTimeRewardServerInput>;
52
+ export declare const deserializeRedeemPointRewardRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<RedeemPointRewardServerInput>;
53
+ export declare const deserializeRedeemVisitRewardRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<RedeemVisitRewardServerInput>;
54
+ export declare const deserializeSearchShopsPublicRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<SearchShopsPublicServerInput>;
55
+ export declare const deserializeSearchSuggestionRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<SearchSuggestionServerInput>;
56
+ export declare const deserializeUpdateUserRequest: (output: __HttpRequest, context: __SerdeContext) => Promise<UpdateUserServerInput>;
57
+ export declare const serializeDeleteUserResponse: (input: DeleteUserServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
58
+ export declare const serializeFavoritePlansResponse: (input: FavoritePlansServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
59
+ export declare const serializeFavoriteShopsResponse: (input: FavoriteShopsServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
60
+ export declare const serializeGetShopResponse: (input: GetShopServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
61
+ export declare const serializeGetShopPublicResponse: (input: GetShopPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
62
+ export declare const serializeGetUserResponse: (input: GetUserServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
63
+ export declare const serializeLikeOrgResponse: (input: LikeOrgServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
64
+ export declare const serializeNearbyShopsResponse: (input: NearbyShopsServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
65
+ export declare const serializeNearbyShopsPublicResponse: (input: NearbyShopsPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
66
+ export declare const serializeNearestShopResponse: (input: NearestShopServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
67
+ export declare const serializeOnboardUserResponse: (input: OnboardUserServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
68
+ export declare const serializePinnedShopResponse: (input: PinnedShopServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
69
+ export declare const serializePinnedShopPublicResponse: (input: PinnedShopPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
70
+ export declare const serializePlanResponse: (input: PlanServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
71
+ export declare const serializePlanPublicResponse: (input: PlanPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
72
+ export declare const serializePlansResponse: (input: PlansServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
73
+ export declare const serializePopularShopsResponse: (input: PopularShopsServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
74
+ export declare const serializePopularShopsPublicResponse: (input: PopularShopsPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
75
+ export declare const serializeRadiusShopsResponse: (input: RadiusShopsServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
76
+ export declare const serializeRecordVisitResponse: (input: RecordVisitServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
77
+ export declare const serializeRedeemFirstTimeRewardResponse: (input: RedeemFirstTimeRewardServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
78
+ export declare const serializeRedeemPointRewardResponse: (input: RedeemPointRewardServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
79
+ export declare const serializeRedeemVisitRewardResponse: (input: RedeemVisitRewardServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
80
+ export declare const serializeSearchShopsPublicResponse: (input: SearchShopsPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
81
+ export declare const serializeSearchSuggestionResponse: (input: SearchSuggestionServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
82
+ export declare const serializeUpdateUserResponse: (input: UpdateUserServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
83
+ export declare const serializeFrameworkException: (input: __SmithyFrameworkException, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
84
+ export declare const serializeValidationExceptionError: (input: ValidationException, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
85
+ export declare const serializeInvalidOperationErrorError: (input: InvalidOperationError, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
86
+ export declare const serializeNotFoundErrorError: (input: NotFoundError, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
87
+ export declare const serializeRuntimeErrorError: (input: RuntimeError, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
@@ -0,0 +1,76 @@
1
+ import { DeleteUser } from "./operations/DeleteUser";
2
+ import { FavoritePlans } from "./operations/FavoritePlans";
3
+ import { FavoriteShops } from "./operations/FavoriteShops";
4
+ import { GetShop } from "./operations/GetShop";
5
+ import { GetShopPublic } from "./operations/GetShopPublic";
6
+ import { GetUser } from "./operations/GetUser";
7
+ import { LikeOrg } from "./operations/LikeOrg";
8
+ import { NearbyShops } from "./operations/NearbyShops";
9
+ import { NearbyShopsPublic } from "./operations/NearbyShopsPublic";
10
+ import { NearestShop } from "./operations/NearestShop";
11
+ import { OnboardUser } from "./operations/OnboardUser";
12
+ import { PinnedShop } from "./operations/PinnedShop";
13
+ import { PinnedShopPublic } from "./operations/PinnedShopPublic";
14
+ import { Plan } from "./operations/Plan";
15
+ import { PlanPublic } from "./operations/PlanPublic";
16
+ import { Plans } from "./operations/Plans";
17
+ import { PopularShops } from "./operations/PopularShops";
18
+ import { PopularShopsPublic } from "./operations/PopularShopsPublic";
19
+ import { RadiusShops } from "./operations/RadiusShops";
20
+ import { RecordVisit } from "./operations/RecordVisit";
21
+ import { RedeemFirstTimeReward } from "./operations/RedeemFirstTimeReward";
22
+ import { RedeemPointReward } from "./operations/RedeemPointReward";
23
+ import { RedeemVisitReward } from "./operations/RedeemVisitReward";
24
+ import { SearchShopsPublic } from "./operations/SearchShopsPublic";
25
+ import { SearchSuggestion } from "./operations/SearchSuggestion";
26
+ import { UpdateUser } from "./operations/UpdateUser";
27
+ import { Mux as __Mux, OperationSerializer as __OperationSerializer, ServerSerdeContext as __ServerSerdeContext, ServiceException as __ServiceException, ServiceHandler as __ServiceHandler, SmithyFrameworkException as __SmithyFrameworkException, ValidationCustomizer as __ValidationCustomizer } from "@aws-smithy/server-common";
28
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
29
+ export type AppAPIServiceOperations = "DeleteUser" | "FavoritePlans" | "FavoriteShops" | "GetShop" | "GetShopPublic" | "GetUser" | "LikeOrg" | "NearbyShops" | "NearbyShopsPublic" | "NearestShop" | "OnboardUser" | "PinnedShop" | "PinnedShopPublic" | "Plan" | "PlanPublic" | "Plans" | "PopularShops" | "PopularShopsPublic" | "RadiusShops" | "RecordVisit" | "RedeemFirstTimeReward" | "RedeemPointReward" | "RedeemVisitReward" | "SearchShopsPublic" | "SearchSuggestion" | "UpdateUser";
30
+ export interface AppAPIService<Context> {
31
+ DeleteUser: DeleteUser<Context>;
32
+ FavoritePlans: FavoritePlans<Context>;
33
+ FavoriteShops: FavoriteShops<Context>;
34
+ GetShop: GetShop<Context>;
35
+ GetShopPublic: GetShopPublic<Context>;
36
+ GetUser: GetUser<Context>;
37
+ LikeOrg: LikeOrg<Context>;
38
+ NearbyShops: NearbyShops<Context>;
39
+ NearbyShopsPublic: NearbyShopsPublic<Context>;
40
+ NearestShop: NearestShop<Context>;
41
+ OnboardUser: OnboardUser<Context>;
42
+ PinnedShop: PinnedShop<Context>;
43
+ PinnedShopPublic: PinnedShopPublic<Context>;
44
+ Plan: Plan<Context>;
45
+ PlanPublic: PlanPublic<Context>;
46
+ Plans: Plans<Context>;
47
+ PopularShops: PopularShops<Context>;
48
+ PopularShopsPublic: PopularShopsPublic<Context>;
49
+ RadiusShops: RadiusShops<Context>;
50
+ RecordVisit: RecordVisit<Context>;
51
+ RedeemFirstTimeReward: RedeemFirstTimeReward<Context>;
52
+ RedeemPointReward: RedeemPointReward<Context>;
53
+ RedeemVisitReward: RedeemVisitReward<Context>;
54
+ SearchShopsPublic: SearchShopsPublic<Context>;
55
+ SearchSuggestion: SearchSuggestion<Context>;
56
+ UpdateUser: UpdateUser<Context>;
57
+ }
58
+ export declare class AppAPIServiceHandler<Context> implements __ServiceHandler<Context> {
59
+ private readonly service;
60
+ private readonly mux;
61
+ private readonly serializerFactory;
62
+ private readonly serializeFrameworkException;
63
+ private readonly validationCustomizer;
64
+ /**
65
+ * Construct a AppAPIService handler.
66
+ * @param service The {@link AppAPIService} implementation that supplies the business logic for AppAPIService
67
+ * @param mux The {@link __Mux} that determines which service and operation are being invoked by a given {@link __HttpRequest}
68
+ * @param serializerFactory A factory for an {@link __OperationSerializer} for each operation in AppAPIService that
69
+ * handles deserialization of requests and serialization of responses
70
+ * @param serializeFrameworkException A function that can serialize {@link __SmithyFrameworkException}s
71
+ * @param validationCustomizer A {@link __ValidationCustomizer} for turning validation failures into {@link __SmithyFrameworkException}s
72
+ */
73
+ constructor(service: AppAPIService<Context>, mux: __Mux<"AppAPI", AppAPIServiceOperations>, serializerFactory: <T extends AppAPIServiceOperations>(op: T) => __OperationSerializer<AppAPIService<Context>, T, __ServiceException>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<AppAPIServiceOperations>);
74
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
75
+ }
76
+ export declare const getAppAPIServiceHandler: <Context>(service: AppAPIService<Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
@@ -0,0 +1,2 @@
1
+ export * from "./operations";
2
+ export * from "./AppAPIService";
@@ -0,0 +1,41 @@
1
+ import { DeleteUserInput, DeleteUserOutput, 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 DeleteUser<Context> = __Operation<DeleteUserServerInput, DeleteUserServerOutput, Context>;
6
+ export interface DeleteUserServerInput extends DeleteUserInput {
7
+ }
8
+ export declare namespace DeleteUserServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof DeleteUserInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface DeleteUserServerOutput extends DeleteUserOutput {
15
+ }
16
+ export type DeleteUserErrors = ValidationException | RuntimeError;
17
+ export declare class DeleteUserSerializer implements __OperationSerializer<AppAPIService<any>, "DeleteUser", DeleteUserErrors> {
18
+ serialize: (input: DeleteUserServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<DeleteUserServerInput>;
20
+ isOperationError(error: any): error is DeleteUserErrors;
21
+ serializeError(error: DeleteUserErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getDeleteUserHandler: <Context>(operation: __Operation<DeleteUserServerInput, DeleteUserServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class DeleteUserHandler<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 DeleteUser handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for DeleteUser
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 DeleteUser 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<DeleteUserServerInput, DeleteUserServerOutput, Context>, mux: __Mux<"AppAPI", "DeleteUser">, serializer: __OperationSerializer<AppAPIService<Context>, "DeleteUser", DeleteUserErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"DeleteUser">);
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 FavoritePlans<Context> = __Operation<FavoritePlansServerInput, FavoritePlansServerOutput, Context>;
6
+ export interface FavoritePlansServerInput extends PlansListInput {
7
+ }
8
+ export declare namespace FavoritePlansServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof PlansListInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface FavoritePlansServerOutput extends PlansOutput {
15
+ }
16
+ export type FavoritePlansErrors = ValidationException | RuntimeError;
17
+ export declare class FavoritePlansSerializer implements __OperationSerializer<AppAPIService<any>, "FavoritePlans", FavoritePlansErrors> {
18
+ serialize: (input: FavoritePlansServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<FavoritePlansServerInput>;
20
+ isOperationError(error: any): error is FavoritePlansErrors;
21
+ serializeError(error: FavoritePlansErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getFavoritePlansHandler: <Context>(operation: __Operation<FavoritePlansServerInput, FavoritePlansServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class FavoritePlansHandler<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 FavoritePlans handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for FavoritePlans
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 FavoritePlans 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<FavoritePlansServerInput, FavoritePlansServerOutput, Context>, mux: __Mux<"AppAPI", "FavoritePlans">, serializer: __OperationSerializer<AppAPIService<Context>, "FavoritePlans", FavoritePlansErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"FavoritePlans">);
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 FavoriteShops<Context> = __Operation<FavoriteShopsServerInput, FavoriteShopsServerOutput, Context>;
6
+ export interface FavoriteShopsServerInput extends ShopListInput {
7
+ }
8
+ export declare namespace FavoriteShopsServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof ShopListInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface FavoriteShopsServerOutput extends ShopListWithPaginationOutput {
15
+ }
16
+ export type FavoriteShopsErrors = ValidationException | RuntimeError;
17
+ export declare class FavoriteShopsSerializer implements __OperationSerializer<AppAPIService<any>, "FavoriteShops", FavoriteShopsErrors> {
18
+ serialize: (input: FavoriteShopsServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<FavoriteShopsServerInput>;
20
+ isOperationError(error: any): error is FavoriteShopsErrors;
21
+ serializeError(error: FavoriteShopsErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getFavoriteShopsHandler: <Context>(operation: __Operation<FavoriteShopsServerInput, FavoriteShopsServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class FavoriteShopsHandler<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 FavoriteShops handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for FavoriteShops
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 FavoriteShops 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<FavoriteShopsServerInput, FavoriteShopsServerOutput, Context>, mux: __Mux<"AppAPI", "FavoriteShops">, serializer: __OperationSerializer<AppAPIService<Context>, "FavoriteShops", FavoriteShopsErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"FavoriteShops">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { GetShopInput, NotFoundError, RuntimeError, ShopDetails, 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 GetShop<Context> = __Operation<GetShopServerInput, GetShopServerOutput, Context>;
6
+ export interface GetShopServerInput extends GetShopInput {
7
+ }
8
+ export declare namespace GetShopServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof GetShopInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface GetShopServerOutput extends ShopDetails {
15
+ }
16
+ export type GetShopErrors = ValidationException | RuntimeError | NotFoundError;
17
+ export declare class GetShopSerializer implements __OperationSerializer<AppAPIService<any>, "GetShop", GetShopErrors> {
18
+ serialize: (input: GetShopServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<GetShopServerInput>;
20
+ isOperationError(error: any): error is GetShopErrors;
21
+ serializeError(error: GetShopErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getGetShopHandler: <Context>(operation: __Operation<GetShopServerInput, GetShopServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class GetShopHandler<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 GetShop handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for GetShop
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 GetShop 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<GetShopServerInput, GetShopServerOutput, Context>, mux: __Mux<"AppAPI", "GetShop">, serializer: __OperationSerializer<AppAPIService<Context>, "GetShop", GetShopErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"GetShop">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { GetShopInput, NotFoundError, RuntimeError, ShopDetails, 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 GetShopPublic<Context> = __Operation<GetShopPublicServerInput, GetShopPublicServerOutput, Context>;
6
+ export interface GetShopPublicServerInput extends GetShopInput {
7
+ }
8
+ export declare namespace GetShopPublicServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof GetShopInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface GetShopPublicServerOutput extends ShopDetails {
15
+ }
16
+ export type GetShopPublicErrors = ValidationException | RuntimeError | NotFoundError;
17
+ export declare class GetShopPublicSerializer implements __OperationSerializer<AppAPIService<any>, "GetShopPublic", GetShopPublicErrors> {
18
+ serialize: (input: GetShopPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<GetShopPublicServerInput>;
20
+ isOperationError(error: any): error is GetShopPublicErrors;
21
+ serializeError(error: GetShopPublicErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getGetShopPublicHandler: <Context>(operation: __Operation<GetShopPublicServerInput, GetShopPublicServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class GetShopPublicHandler<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 GetShopPublic handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for GetShopPublic
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 GetShopPublic 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<GetShopPublicServerInput, GetShopPublicServerOutput, Context>, mux: __Mux<"AppAPI", "GetShopPublic">, serializer: __OperationSerializer<AppAPIService<Context>, "GetShopPublic", GetShopPublicErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"GetShopPublic">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { GetUserInput, GetUserOutput, 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 GetUser<Context> = __Operation<GetUserServerInput, GetUserServerOutput, Context>;
6
+ export interface GetUserServerInput extends GetUserInput {
7
+ }
8
+ export declare namespace GetUserServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof GetUserInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface GetUserServerOutput extends GetUserOutput {
15
+ }
16
+ export type GetUserErrors = ValidationException | RuntimeError;
17
+ export declare class GetUserSerializer implements __OperationSerializer<AppAPIService<any>, "GetUser", GetUserErrors> {
18
+ serialize: (input: GetUserServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<GetUserServerInput>;
20
+ isOperationError(error: any): error is GetUserErrors;
21
+ serializeError(error: GetUserErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getGetUserHandler: <Context>(operation: __Operation<GetUserServerInput, GetUserServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class GetUserHandler<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 GetUser handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for GetUser
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 GetUser 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<GetUserServerInput, GetUserServerOutput, Context>, mux: __Mux<"AppAPI", "GetUser">, serializer: __OperationSerializer<AppAPIService<Context>, "GetUser", GetUserErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"GetUser">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { LikeOrgInput, LikeOrgOutput, 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 LikeOrg<Context> = __Operation<LikeOrgServerInput, LikeOrgServerOutput, Context>;
6
+ export interface LikeOrgServerInput extends LikeOrgInput {
7
+ }
8
+ export declare namespace LikeOrgServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof LikeOrgInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface LikeOrgServerOutput extends LikeOrgOutput {
15
+ }
16
+ export type LikeOrgErrors = ValidationException | RuntimeError;
17
+ export declare class LikeOrgSerializer implements __OperationSerializer<AppAPIService<any>, "LikeOrg", LikeOrgErrors> {
18
+ serialize: (input: LikeOrgServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<LikeOrgServerInput>;
20
+ isOperationError(error: any): error is LikeOrgErrors;
21
+ serializeError(error: LikeOrgErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getLikeOrgHandler: <Context>(operation: __Operation<LikeOrgServerInput, LikeOrgServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class LikeOrgHandler<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 LikeOrg handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for LikeOrg
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 LikeOrg 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<LikeOrgServerInput, LikeOrgServerOutput, Context>, mux: __Mux<"AppAPI", "LikeOrg">, serializer: __OperationSerializer<AppAPIService<Context>, "LikeOrg", LikeOrgErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"LikeOrg">);
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 NearbyShops<Context> = __Operation<NearbyShopsServerInput, NearbyShopsServerOutput, Context>;
6
+ export interface NearbyShopsServerInput extends ShopListInput {
7
+ }
8
+ export declare namespace NearbyShopsServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof ShopListInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface NearbyShopsServerOutput extends ShopListWithPaginationOutput {
15
+ }
16
+ export type NearbyShopsErrors = ValidationException | RuntimeError;
17
+ export declare class NearbyShopsSerializer implements __OperationSerializer<AppAPIService<any>, "NearbyShops", NearbyShopsErrors> {
18
+ serialize: (input: NearbyShopsServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<NearbyShopsServerInput>;
20
+ isOperationError(error: any): error is NearbyShopsErrors;
21
+ serializeError(error: NearbyShopsErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getNearbyShopsHandler: <Context>(operation: __Operation<NearbyShopsServerInput, NearbyShopsServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class NearbyShopsHandler<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 NearbyShops handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for NearbyShops
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 NearbyShops 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<NearbyShopsServerInput, NearbyShopsServerOutput, Context>, mux: __Mux<"AppAPI", "NearbyShops">, serializer: __OperationSerializer<AppAPIService<Context>, "NearbyShops", NearbyShopsErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"NearbyShops">);
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 NearbyShopsPublic<Context> = __Operation<NearbyShopsPublicServerInput, NearbyShopsPublicServerOutput, Context>;
6
+ export interface NearbyShopsPublicServerInput extends ShopListInput {
7
+ }
8
+ export declare namespace NearbyShopsPublicServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof ShopListInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface NearbyShopsPublicServerOutput extends ShopListWithPaginationOutput {
15
+ }
16
+ export type NearbyShopsPublicErrors = ValidationException | RuntimeError;
17
+ export declare class NearbyShopsPublicSerializer implements __OperationSerializer<AppAPIService<any>, "NearbyShopsPublic", NearbyShopsPublicErrors> {
18
+ serialize: (input: NearbyShopsPublicServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<NearbyShopsPublicServerInput>;
20
+ isOperationError(error: any): error is NearbyShopsPublicErrors;
21
+ serializeError(error: NearbyShopsPublicErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getNearbyShopsPublicHandler: <Context>(operation: __Operation<NearbyShopsPublicServerInput, NearbyShopsPublicServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class NearbyShopsPublicHandler<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 NearbyShopsPublic handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for NearbyShopsPublic
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 NearbyShopsPublic 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<NearbyShopsPublicServerInput, NearbyShopsPublicServerOutput, Context>, mux: __Mux<"AppAPI", "NearbyShopsPublic">, serializer: __OperationSerializer<AppAPIService<Context>, "NearbyShopsPublic", NearbyShopsPublicErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"NearbyShopsPublic">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }
@@ -0,0 +1,41 @@
1
+ import { EnrichedShop, NearestShopInput, 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 NearestShop<Context> = __Operation<NearestShopServerInput, NearestShopServerOutput, Context>;
6
+ export interface NearestShopServerInput extends NearestShopInput {
7
+ }
8
+ export declare namespace NearestShopServerInput {
9
+ /**
10
+ * @internal
11
+ */
12
+ const validate: (obj: Parameters<typeof NearestShopInput.validate>[0]) => __ValidationFailure[];
13
+ }
14
+ export interface NearestShopServerOutput extends EnrichedShop {
15
+ }
16
+ export type NearestShopErrors = ValidationException | RuntimeError;
17
+ export declare class NearestShopSerializer implements __OperationSerializer<AppAPIService<any>, "NearestShop", NearestShopErrors> {
18
+ serialize: (input: NearestShopServerOutput, ctx: ServerSerdeContext) => Promise<__HttpResponse>;
19
+ deserialize: (output: __HttpRequest, context: import("@smithy/types").SerdeContext) => Promise<NearestShopServerInput>;
20
+ isOperationError(error: any): error is NearestShopErrors;
21
+ serializeError(error: NearestShopErrors, ctx: ServerSerdeContext): Promise<__HttpResponse>;
22
+ }
23
+ export declare const getNearestShopHandler: <Context>(operation: __Operation<NearestShopServerInput, NearestShopServerOutput, Context>) => __ServiceHandler<Context, __HttpRequest, __HttpResponse>;
24
+ export declare class NearestShopHandler<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 NearestShop handler.
32
+ * @param operation The {@link __Operation} implementation that supplies the business logic for NearestShop
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 NearestShop 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<NearestShopServerInput, NearestShopServerOutput, Context>, mux: __Mux<"AppAPI", "NearestShop">, serializer: __OperationSerializer<AppAPIService<Context>, "NearestShop", NearestShopErrors>, serializeFrameworkException: (e: __SmithyFrameworkException, ctx: __ServerSerdeContext) => Promise<__HttpResponse>, validationCustomizer: __ValidationCustomizer<"NearestShop">);
40
+ handle(request: __HttpRequest, context: Context): Promise<__HttpResponse>;
41
+ }