@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,366 @@
|
|
|
1
|
+
import { serializeFrameworkException } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { DeleteUserSerializer, DeleteUserServerInput, } from "./operations/DeleteUser";
|
|
3
|
+
import { FavoritePlansSerializer, FavoritePlansServerInput, } from "./operations/FavoritePlans";
|
|
4
|
+
import { FavoriteShopsSerializer, FavoriteShopsServerInput, } from "./operations/FavoriteShops";
|
|
5
|
+
import { GetShopSerializer, GetShopServerInput, } from "./operations/GetShop";
|
|
6
|
+
import { GetShopPublicSerializer, GetShopPublicServerInput, } from "./operations/GetShopPublic";
|
|
7
|
+
import { GetUserSerializer, GetUserServerInput, } from "./operations/GetUser";
|
|
8
|
+
import { LikeOrgSerializer, LikeOrgServerInput, } from "./operations/LikeOrg";
|
|
9
|
+
import { NearbyShopsSerializer, NearbyShopsServerInput, } from "./operations/NearbyShops";
|
|
10
|
+
import { NearbyShopsPublicSerializer, NearbyShopsPublicServerInput, } from "./operations/NearbyShopsPublic";
|
|
11
|
+
import { NearestShopSerializer, NearestShopServerInput, } from "./operations/NearestShop";
|
|
12
|
+
import { OnboardUserSerializer, OnboardUserServerInput, } from "./operations/OnboardUser";
|
|
13
|
+
import { PinnedShopSerializer, PinnedShopServerInput, } from "./operations/PinnedShop";
|
|
14
|
+
import { PinnedShopPublicSerializer, PinnedShopPublicServerInput, } from "./operations/PinnedShopPublic";
|
|
15
|
+
import { PlanSerializer, PlanServerInput, } from "./operations/Plan";
|
|
16
|
+
import { PlanPublicSerializer, PlanPublicServerInput, } from "./operations/PlanPublic";
|
|
17
|
+
import { PlansSerializer, PlansServerInput, } from "./operations/Plans";
|
|
18
|
+
import { PopularShopsSerializer, PopularShopsServerInput, } from "./operations/PopularShops";
|
|
19
|
+
import { PopularShopsPublicSerializer, PopularShopsPublicServerInput, } from "./operations/PopularShopsPublic";
|
|
20
|
+
import { RadiusShopsSerializer, RadiusShopsServerInput, } from "./operations/RadiusShops";
|
|
21
|
+
import { RecordVisitSerializer, RecordVisitServerInput, } from "./operations/RecordVisit";
|
|
22
|
+
import { RedeemFirstTimeRewardSerializer, RedeemFirstTimeRewardServerInput, } from "./operations/RedeemFirstTimeReward";
|
|
23
|
+
import { RedeemPointRewardSerializer, RedeemPointRewardServerInput, } from "./operations/RedeemPointReward";
|
|
24
|
+
import { RedeemVisitRewardSerializer, RedeemVisitRewardServerInput, } from "./operations/RedeemVisitReward";
|
|
25
|
+
import { SearchShopsPublicSerializer, SearchShopsPublicServerInput, } from "./operations/SearchShopsPublic";
|
|
26
|
+
import { SearchSuggestionSerializer, SearchSuggestionServerInput, } from "./operations/SearchSuggestion";
|
|
27
|
+
import { UpdateUserSerializer, UpdateUserServerInput, } from "./operations/UpdateUser";
|
|
28
|
+
import { InternalFailureException as __InternalFailureException, SerializationException as __SerializationException, UnknownOperationException as __UnknownOperationException, generateValidationMessage as __generateValidationMessage, generateValidationSummary as __generateValidationSummary, isFrameworkException as __isFrameworkException, httpbinding, } from "@aws-smithy/server-common";
|
|
29
|
+
import { NodeHttpHandler, streamCollector, } from "@smithy/node-http-handler";
|
|
30
|
+
import { fromBase64, toBase64, } from "@smithy/util-base64";
|
|
31
|
+
import { fromUtf8, toUtf8, } from "@smithy/util-utf8";
|
|
32
|
+
const serdeContextBase = {
|
|
33
|
+
base64Encoder: toBase64,
|
|
34
|
+
base64Decoder: fromBase64,
|
|
35
|
+
utf8Encoder: toUtf8,
|
|
36
|
+
utf8Decoder: fromUtf8,
|
|
37
|
+
streamCollector: streamCollector,
|
|
38
|
+
requestHandler: new NodeHttpHandler(),
|
|
39
|
+
disableHostPrefix: true
|
|
40
|
+
};
|
|
41
|
+
async function handle(request, context, operationName, serializer, operation, serializeFrameworkException, validationFn, validationCustomizer) {
|
|
42
|
+
let input;
|
|
43
|
+
try {
|
|
44
|
+
input = await serializer.deserialize(request, {
|
|
45
|
+
endpoint: () => Promise.resolve(request), ...serdeContextBase
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
if (__isFrameworkException(error)) {
|
|
50
|
+
return serializeFrameworkException(error, serdeContextBase);
|
|
51
|
+
}
|
|
52
|
+
;
|
|
53
|
+
return serializeFrameworkException(new __SerializationException(), serdeContextBase);
|
|
54
|
+
}
|
|
55
|
+
try {
|
|
56
|
+
let validationFailures = validationFn(input);
|
|
57
|
+
if (validationFailures && validationFailures.length > 0) {
|
|
58
|
+
let validationException = validationCustomizer({ operation: operationName }, validationFailures);
|
|
59
|
+
if (validationException) {
|
|
60
|
+
return serializer.serializeError(validationException, serdeContextBase);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
let output = await operation(input, context);
|
|
64
|
+
return serializer.serialize(output, serdeContextBase);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
if (serializer.isOperationError(error)) {
|
|
68
|
+
return serializer.serializeError(error, serdeContextBase);
|
|
69
|
+
}
|
|
70
|
+
console.log('Received an unexpected error', error);
|
|
71
|
+
return serializeFrameworkException(new __InternalFailureException(), serdeContextBase);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
export class AppAPIServiceHandler {
|
|
75
|
+
constructor(service, mux, serializerFactory, serializeFrameworkException, validationCustomizer) {
|
|
76
|
+
this.service = service;
|
|
77
|
+
this.mux = mux;
|
|
78
|
+
this.serializerFactory = serializerFactory;
|
|
79
|
+
this.serializeFrameworkException = serializeFrameworkException;
|
|
80
|
+
this.validationCustomizer = validationCustomizer;
|
|
81
|
+
}
|
|
82
|
+
async handle(request, context) {
|
|
83
|
+
const target = this.mux.match(request);
|
|
84
|
+
if (target === undefined) {
|
|
85
|
+
return this.serializeFrameworkException(new __UnknownOperationException(), serdeContextBase);
|
|
86
|
+
}
|
|
87
|
+
switch (target.operation) {
|
|
88
|
+
case "DeleteUser": {
|
|
89
|
+
return handle(request, context, "DeleteUser", this.serializerFactory("DeleteUser"), this.service.DeleteUser, this.serializeFrameworkException, DeleteUserServerInput.validate, this.validationCustomizer);
|
|
90
|
+
}
|
|
91
|
+
case "FavoritePlans": {
|
|
92
|
+
return handle(request, context, "FavoritePlans", this.serializerFactory("FavoritePlans"), this.service.FavoritePlans, this.serializeFrameworkException, FavoritePlansServerInput.validate, this.validationCustomizer);
|
|
93
|
+
}
|
|
94
|
+
case "FavoriteShops": {
|
|
95
|
+
return handle(request, context, "FavoriteShops", this.serializerFactory("FavoriteShops"), this.service.FavoriteShops, this.serializeFrameworkException, FavoriteShopsServerInput.validate, this.validationCustomizer);
|
|
96
|
+
}
|
|
97
|
+
case "GetShop": {
|
|
98
|
+
return handle(request, context, "GetShop", this.serializerFactory("GetShop"), this.service.GetShop, this.serializeFrameworkException, GetShopServerInput.validate, this.validationCustomizer);
|
|
99
|
+
}
|
|
100
|
+
case "GetShopPublic": {
|
|
101
|
+
return handle(request, context, "GetShopPublic", this.serializerFactory("GetShopPublic"), this.service.GetShopPublic, this.serializeFrameworkException, GetShopPublicServerInput.validate, this.validationCustomizer);
|
|
102
|
+
}
|
|
103
|
+
case "GetUser": {
|
|
104
|
+
return handle(request, context, "GetUser", this.serializerFactory("GetUser"), this.service.GetUser, this.serializeFrameworkException, GetUserServerInput.validate, this.validationCustomizer);
|
|
105
|
+
}
|
|
106
|
+
case "LikeOrg": {
|
|
107
|
+
return handle(request, context, "LikeOrg", this.serializerFactory("LikeOrg"), this.service.LikeOrg, this.serializeFrameworkException, LikeOrgServerInput.validate, this.validationCustomizer);
|
|
108
|
+
}
|
|
109
|
+
case "NearbyShops": {
|
|
110
|
+
return handle(request, context, "NearbyShops", this.serializerFactory("NearbyShops"), this.service.NearbyShops, this.serializeFrameworkException, NearbyShopsServerInput.validate, this.validationCustomizer);
|
|
111
|
+
}
|
|
112
|
+
case "NearbyShopsPublic": {
|
|
113
|
+
return handle(request, context, "NearbyShopsPublic", this.serializerFactory("NearbyShopsPublic"), this.service.NearbyShopsPublic, this.serializeFrameworkException, NearbyShopsPublicServerInput.validate, this.validationCustomizer);
|
|
114
|
+
}
|
|
115
|
+
case "NearestShop": {
|
|
116
|
+
return handle(request, context, "NearestShop", this.serializerFactory("NearestShop"), this.service.NearestShop, this.serializeFrameworkException, NearestShopServerInput.validate, this.validationCustomizer);
|
|
117
|
+
}
|
|
118
|
+
case "OnboardUser": {
|
|
119
|
+
return handle(request, context, "OnboardUser", this.serializerFactory("OnboardUser"), this.service.OnboardUser, this.serializeFrameworkException, OnboardUserServerInput.validate, this.validationCustomizer);
|
|
120
|
+
}
|
|
121
|
+
case "PinnedShop": {
|
|
122
|
+
return handle(request, context, "PinnedShop", this.serializerFactory("PinnedShop"), this.service.PinnedShop, this.serializeFrameworkException, PinnedShopServerInput.validate, this.validationCustomizer);
|
|
123
|
+
}
|
|
124
|
+
case "PinnedShopPublic": {
|
|
125
|
+
return handle(request, context, "PinnedShopPublic", this.serializerFactory("PinnedShopPublic"), this.service.PinnedShopPublic, this.serializeFrameworkException, PinnedShopPublicServerInput.validate, this.validationCustomizer);
|
|
126
|
+
}
|
|
127
|
+
case "Plan": {
|
|
128
|
+
return handle(request, context, "Plan", this.serializerFactory("Plan"), this.service.Plan, this.serializeFrameworkException, PlanServerInput.validate, this.validationCustomizer);
|
|
129
|
+
}
|
|
130
|
+
case "PlanPublic": {
|
|
131
|
+
return handle(request, context, "PlanPublic", this.serializerFactory("PlanPublic"), this.service.PlanPublic, this.serializeFrameworkException, PlanPublicServerInput.validate, this.validationCustomizer);
|
|
132
|
+
}
|
|
133
|
+
case "Plans": {
|
|
134
|
+
return handle(request, context, "Plans", this.serializerFactory("Plans"), this.service.Plans, this.serializeFrameworkException, PlansServerInput.validate, this.validationCustomizer);
|
|
135
|
+
}
|
|
136
|
+
case "PopularShops": {
|
|
137
|
+
return handle(request, context, "PopularShops", this.serializerFactory("PopularShops"), this.service.PopularShops, this.serializeFrameworkException, PopularShopsServerInput.validate, this.validationCustomizer);
|
|
138
|
+
}
|
|
139
|
+
case "PopularShopsPublic": {
|
|
140
|
+
return handle(request, context, "PopularShopsPublic", this.serializerFactory("PopularShopsPublic"), this.service.PopularShopsPublic, this.serializeFrameworkException, PopularShopsPublicServerInput.validate, this.validationCustomizer);
|
|
141
|
+
}
|
|
142
|
+
case "RadiusShops": {
|
|
143
|
+
return handle(request, context, "RadiusShops", this.serializerFactory("RadiusShops"), this.service.RadiusShops, this.serializeFrameworkException, RadiusShopsServerInput.validate, this.validationCustomizer);
|
|
144
|
+
}
|
|
145
|
+
case "RecordVisit": {
|
|
146
|
+
return handle(request, context, "RecordVisit", this.serializerFactory("RecordVisit"), this.service.RecordVisit, this.serializeFrameworkException, RecordVisitServerInput.validate, this.validationCustomizer);
|
|
147
|
+
}
|
|
148
|
+
case "RedeemFirstTimeReward": {
|
|
149
|
+
return handle(request, context, "RedeemFirstTimeReward", this.serializerFactory("RedeemFirstTimeReward"), this.service.RedeemFirstTimeReward, this.serializeFrameworkException, RedeemFirstTimeRewardServerInput.validate, this.validationCustomizer);
|
|
150
|
+
}
|
|
151
|
+
case "RedeemPointReward": {
|
|
152
|
+
return handle(request, context, "RedeemPointReward", this.serializerFactory("RedeemPointReward"), this.service.RedeemPointReward, this.serializeFrameworkException, RedeemPointRewardServerInput.validate, this.validationCustomizer);
|
|
153
|
+
}
|
|
154
|
+
case "RedeemVisitReward": {
|
|
155
|
+
return handle(request, context, "RedeemVisitReward", this.serializerFactory("RedeemVisitReward"), this.service.RedeemVisitReward, this.serializeFrameworkException, RedeemVisitRewardServerInput.validate, this.validationCustomizer);
|
|
156
|
+
}
|
|
157
|
+
case "SearchShopsPublic": {
|
|
158
|
+
return handle(request, context, "SearchShopsPublic", this.serializerFactory("SearchShopsPublic"), this.service.SearchShopsPublic, this.serializeFrameworkException, SearchShopsPublicServerInput.validate, this.validationCustomizer);
|
|
159
|
+
}
|
|
160
|
+
case "SearchSuggestion": {
|
|
161
|
+
return handle(request, context, "SearchSuggestion", this.serializerFactory("SearchSuggestion"), this.service.SearchSuggestion, this.serializeFrameworkException, SearchSuggestionServerInput.validate, this.validationCustomizer);
|
|
162
|
+
}
|
|
163
|
+
case "UpdateUser": {
|
|
164
|
+
return handle(request, context, "UpdateUser", this.serializerFactory("UpdateUser"), this.service.UpdateUser, this.serializeFrameworkException, UpdateUserServerInput.validate, this.validationCustomizer);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
export const getAppAPIServiceHandler = (service) => {
|
|
170
|
+
const mux = new httpbinding.HttpBindingMux([
|
|
171
|
+
new httpbinding.UriSpec('DELETE', [
|
|
172
|
+
{ type: 'path_literal', value: "user" },
|
|
173
|
+
], [], { service: "AppAPI", operation: "DeleteUser" }),
|
|
174
|
+
new httpbinding.UriSpec('GET', [
|
|
175
|
+
{ type: 'path_literal', value: "plans" },
|
|
176
|
+
{ type: 'path_literal', value: "favorite" },
|
|
177
|
+
], [
|
|
178
|
+
{ type: 'query', key: "lat" },
|
|
179
|
+
{ type: 'query', key: "lon" },
|
|
180
|
+
], { service: "AppAPI", operation: "FavoritePlans" }),
|
|
181
|
+
new httpbinding.UriSpec('GET', [
|
|
182
|
+
{ type: 'path_literal', value: "shops" },
|
|
183
|
+
{ type: 'path_literal', value: "favorite" },
|
|
184
|
+
], [], { service: "AppAPI", operation: "FavoriteShops" }),
|
|
185
|
+
new httpbinding.UriSpec('GET', [
|
|
186
|
+
{ type: 'path_literal', value: "shops" },
|
|
187
|
+
{ type: 'path_literal', value: "shop" },
|
|
188
|
+
{ type: 'path' },
|
|
189
|
+
], [], { service: "AppAPI", operation: "GetShop" }),
|
|
190
|
+
new httpbinding.UriSpec('GET', [
|
|
191
|
+
{ type: 'path_literal', value: "public" },
|
|
192
|
+
{ type: 'path_literal', value: "shops" },
|
|
193
|
+
{ type: 'path_literal', value: "shop" },
|
|
194
|
+
{ type: 'path' },
|
|
195
|
+
], [], { service: "AppAPI", operation: "GetShopPublic" }),
|
|
196
|
+
new httpbinding.UriSpec('GET', [
|
|
197
|
+
{ type: 'path_literal', value: "user" },
|
|
198
|
+
], [], { service: "AppAPI", operation: "GetUser" }),
|
|
199
|
+
new httpbinding.UriSpec('PUT', [
|
|
200
|
+
{ type: 'path_literal', value: "user" },
|
|
201
|
+
{ type: 'path_literal', value: "like" },
|
|
202
|
+
], [
|
|
203
|
+
{ type: 'query', key: "org_id" },
|
|
204
|
+
], { service: "AppAPI", operation: "LikeOrg" }),
|
|
205
|
+
new httpbinding.UriSpec('GET', [
|
|
206
|
+
{ type: 'path_literal', value: "shops" },
|
|
207
|
+
], [], { service: "AppAPI", operation: "NearbyShops" }),
|
|
208
|
+
new httpbinding.UriSpec('GET', [
|
|
209
|
+
{ type: 'path_literal', value: "public" },
|
|
210
|
+
{ type: 'path_literal', value: "shops" },
|
|
211
|
+
], [], { service: "AppAPI", operation: "NearbyShopsPublic" }),
|
|
212
|
+
new httpbinding.UriSpec('GET', [
|
|
213
|
+
{ type: 'path_literal', value: "shops" },
|
|
214
|
+
{ type: 'path_literal', value: "nearest" },
|
|
215
|
+
], [
|
|
216
|
+
{ type: 'query', key: "shop_name" },
|
|
217
|
+
{ type: 'query', key: "lat" },
|
|
218
|
+
{ type: 'query', key: "lon" },
|
|
219
|
+
], { service: "AppAPI", operation: "NearestShop" }),
|
|
220
|
+
new httpbinding.UriSpec('PUT', [
|
|
221
|
+
{ type: 'path_literal', value: "user" },
|
|
222
|
+
{ type: 'path_literal', value: "onboard" },
|
|
223
|
+
], [], { service: "AppAPI", operation: "OnboardUser" }),
|
|
224
|
+
new httpbinding.UriSpec('GET', [
|
|
225
|
+
{ type: 'path_literal', value: "shops" },
|
|
226
|
+
{ type: 'path_literal', value: "pinned" },
|
|
227
|
+
], [
|
|
228
|
+
{ type: 'query', key: "shop_id" },
|
|
229
|
+
{ type: 'query', key: "lat" },
|
|
230
|
+
{ type: 'query', key: "lon" },
|
|
231
|
+
], { service: "AppAPI", operation: "PinnedShop" }),
|
|
232
|
+
new httpbinding.UriSpec('GET', [
|
|
233
|
+
{ type: 'path_literal', value: "public" },
|
|
234
|
+
{ type: 'path_literal', value: "shops" },
|
|
235
|
+
{ type: 'path_literal', value: "pinned" },
|
|
236
|
+
], [
|
|
237
|
+
{ type: 'query', key: "shop_id" },
|
|
238
|
+
{ type: 'query', key: "lat" },
|
|
239
|
+
{ type: 'query', key: "lon" },
|
|
240
|
+
], { service: "AppAPI", operation: "PinnedShopPublic" }),
|
|
241
|
+
new httpbinding.UriSpec('GET', [
|
|
242
|
+
{ type: 'path_literal', value: "plan" },
|
|
243
|
+
], [
|
|
244
|
+
{ type: 'query', key: "org_id" },
|
|
245
|
+
], { service: "AppAPI", operation: "Plan" }),
|
|
246
|
+
new httpbinding.UriSpec('GET', [
|
|
247
|
+
{ type: 'path_literal', value: "public" },
|
|
248
|
+
{ type: 'path_literal', value: "plan" },
|
|
249
|
+
], [
|
|
250
|
+
{ type: 'query', key: "org_id" },
|
|
251
|
+
], { service: "AppAPI", operation: "PlanPublic" }),
|
|
252
|
+
new httpbinding.UriSpec('GET', [
|
|
253
|
+
{ type: 'path_literal', value: "plans" },
|
|
254
|
+
], [
|
|
255
|
+
{ type: 'query', key: "lat" },
|
|
256
|
+
{ type: 'query', key: "lon" },
|
|
257
|
+
], { service: "AppAPI", operation: "Plans" }),
|
|
258
|
+
new httpbinding.UriSpec('GET', [
|
|
259
|
+
{ type: 'path_literal', value: "shops" },
|
|
260
|
+
{ type: 'path_literal', value: "popular" },
|
|
261
|
+
], [], { service: "AppAPI", operation: "PopularShops" }),
|
|
262
|
+
new httpbinding.UriSpec('GET', [
|
|
263
|
+
{ type: 'path_literal', value: "public" },
|
|
264
|
+
{ type: 'path_literal', value: "shops" },
|
|
265
|
+
{ type: 'path_literal', value: "popular" },
|
|
266
|
+
], [], { service: "AppAPI", operation: "PopularShopsPublic" }),
|
|
267
|
+
new httpbinding.UriSpec('GET', [
|
|
268
|
+
{ type: 'path_literal', value: "public" },
|
|
269
|
+
{ type: 'path_literal', value: "shops" },
|
|
270
|
+
{ type: 'path_literal', value: "radius" },
|
|
271
|
+
], [], { service: "AppAPI", operation: "RadiusShops" }),
|
|
272
|
+
new httpbinding.UriSpec('POST', [
|
|
273
|
+
{ type: 'path_literal', value: "visit" },
|
|
274
|
+
], [
|
|
275
|
+
{ type: 'query', key: "shop_id" },
|
|
276
|
+
{ type: 'query', key: "timestamp" },
|
|
277
|
+
{ type: 'query', key: "lat" },
|
|
278
|
+
{ type: 'query', key: "lon" },
|
|
279
|
+
], { service: "AppAPI", operation: "RecordVisit" }),
|
|
280
|
+
new httpbinding.UriSpec('PUT', [
|
|
281
|
+
{ type: 'path_literal', value: "rewards" },
|
|
282
|
+
{ type: 'path_literal', value: "redeem" },
|
|
283
|
+
{ type: 'path_literal', value: "first-time" },
|
|
284
|
+
], [
|
|
285
|
+
{ type: 'query', key: "org_id" },
|
|
286
|
+
], { service: "AppAPI", operation: "RedeemFirstTimeReward" }),
|
|
287
|
+
new httpbinding.UriSpec('PUT', [
|
|
288
|
+
{ type: 'path_literal', value: "rewards" },
|
|
289
|
+
{ type: 'path_literal', value: "redeem" },
|
|
290
|
+
{ type: 'path_literal', value: "point" },
|
|
291
|
+
], [
|
|
292
|
+
{ type: 'query', key: "org_id" },
|
|
293
|
+
{ type: 'query', key: "reward_id" },
|
|
294
|
+
], { service: "AppAPI", operation: "RedeemPointReward" }),
|
|
295
|
+
new httpbinding.UriSpec('PUT', [
|
|
296
|
+
{ type: 'path_literal', value: "rewards" },
|
|
297
|
+
{ type: 'path_literal', value: "redeem" },
|
|
298
|
+
{ type: 'path_literal', value: "visit" },
|
|
299
|
+
], [
|
|
300
|
+
{ type: 'query', key: "reward_id" },
|
|
301
|
+
], { service: "AppAPI", operation: "RedeemVisitReward" }),
|
|
302
|
+
new httpbinding.UriSpec('GET', [
|
|
303
|
+
{ type: 'path_literal', value: "public" },
|
|
304
|
+
{ type: 'path_literal', value: "shops" },
|
|
305
|
+
{ type: 'path_literal', value: "search" },
|
|
306
|
+
], [
|
|
307
|
+
{ type: 'query', key: "q" },
|
|
308
|
+
], { service: "AppAPI", operation: "SearchShopsPublic" }),
|
|
309
|
+
new httpbinding.UriSpec('GET', [
|
|
310
|
+
{ type: 'path_literal', value: "public" },
|
|
311
|
+
{ type: 'path_literal', value: "shops" },
|
|
312
|
+
{ type: 'path_literal', value: "search" },
|
|
313
|
+
{ type: 'path_literal', value: "suggestion" },
|
|
314
|
+
], [
|
|
315
|
+
{ type: 'query', key: "q" },
|
|
316
|
+
], { service: "AppAPI", operation: "SearchSuggestion" }),
|
|
317
|
+
new httpbinding.UriSpec('PUT', [
|
|
318
|
+
{ type: 'path_literal', value: "user" },
|
|
319
|
+
], [], { service: "AppAPI", operation: "UpdateUser" }),
|
|
320
|
+
]);
|
|
321
|
+
const serFn = (op) => {
|
|
322
|
+
switch (op) {
|
|
323
|
+
case "DeleteUser": return new DeleteUserSerializer();
|
|
324
|
+
case "FavoritePlans": return new FavoritePlansSerializer();
|
|
325
|
+
case "FavoriteShops": return new FavoriteShopsSerializer();
|
|
326
|
+
case "GetShop": return new GetShopSerializer();
|
|
327
|
+
case "GetShopPublic": return new GetShopPublicSerializer();
|
|
328
|
+
case "GetUser": return new GetUserSerializer();
|
|
329
|
+
case "LikeOrg": return new LikeOrgSerializer();
|
|
330
|
+
case "NearbyShops": return new NearbyShopsSerializer();
|
|
331
|
+
case "NearbyShopsPublic": return new NearbyShopsPublicSerializer();
|
|
332
|
+
case "NearestShop": return new NearestShopSerializer();
|
|
333
|
+
case "OnboardUser": return new OnboardUserSerializer();
|
|
334
|
+
case "PinnedShop": return new PinnedShopSerializer();
|
|
335
|
+
case "PinnedShopPublic": return new PinnedShopPublicSerializer();
|
|
336
|
+
case "Plan": return new PlanSerializer();
|
|
337
|
+
case "PlanPublic": return new PlanPublicSerializer();
|
|
338
|
+
case "Plans": return new PlansSerializer();
|
|
339
|
+
case "PopularShops": return new PopularShopsSerializer();
|
|
340
|
+
case "PopularShopsPublic": return new PopularShopsPublicSerializer();
|
|
341
|
+
case "RadiusShops": return new RadiusShopsSerializer();
|
|
342
|
+
case "RecordVisit": return new RecordVisitSerializer();
|
|
343
|
+
case "RedeemFirstTimeReward": return new RedeemFirstTimeRewardSerializer();
|
|
344
|
+
case "RedeemPointReward": return new RedeemPointRewardSerializer();
|
|
345
|
+
case "RedeemVisitReward": return new RedeemVisitRewardSerializer();
|
|
346
|
+
case "SearchShopsPublic": return new SearchShopsPublicSerializer();
|
|
347
|
+
case "SearchSuggestion": return new SearchSuggestionSerializer();
|
|
348
|
+
case "UpdateUser": return new UpdateUserSerializer();
|
|
349
|
+
}
|
|
350
|
+
};
|
|
351
|
+
const customizer = (ctx, failures) => {
|
|
352
|
+
if (!failures) {
|
|
353
|
+
return undefined;
|
|
354
|
+
}
|
|
355
|
+
return {
|
|
356
|
+
name: "ValidationException",
|
|
357
|
+
$fault: "client",
|
|
358
|
+
message: __generateValidationSummary(failures),
|
|
359
|
+
fieldList: failures.map(failure => ({
|
|
360
|
+
path: failure.path,
|
|
361
|
+
message: __generateValidationMessage(failure)
|
|
362
|
+
}))
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
return new AppAPIServiceHandler(service, mux, serFn, serializeFrameworkException, customizer);
|
|
366
|
+
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { DeleteUserInput, } from "../../models/models_0";
|
|
2
|
+
import { deserializeDeleteUserRequest, serializeDeleteUserResponse, serializeFrameworkException, serializeRuntimeErrorError, serializeValidationExceptionError, } from "../../protocols/Aws_restJson1";
|
|
3
|
+
import { InternalFailureException as __InternalFailureException, SerializationException as __SerializationException, generateValidationMessage as __generateValidationMessage, generateValidationSummary as __generateValidationSummary, isFrameworkException as __isFrameworkException, httpbinding, } from "@aws-smithy/server-common";
|
|
4
|
+
import { NodeHttpHandler, streamCollector, } from "@smithy/node-http-handler";
|
|
5
|
+
import { fromBase64, toBase64, } from "@smithy/util-base64";
|
|
6
|
+
import { fromUtf8, toUtf8, } from "@smithy/util-utf8";
|
|
7
|
+
export var DeleteUserServerInput;
|
|
8
|
+
(function (DeleteUserServerInput) {
|
|
9
|
+
DeleteUserServerInput.validate = DeleteUserInput.validate;
|
|
10
|
+
})(DeleteUserServerInput || (DeleteUserServerInput = {}));
|
|
11
|
+
export class DeleteUserSerializer {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.serialize = serializeDeleteUserResponse;
|
|
14
|
+
this.deserialize = deserializeDeleteUserRequest;
|
|
15
|
+
}
|
|
16
|
+
isOperationError(error) {
|
|
17
|
+
const names = ["ValidationException", "RuntimeError"];
|
|
18
|
+
return names.includes(error.name);
|
|
19
|
+
}
|
|
20
|
+
;
|
|
21
|
+
serializeError(error, ctx) {
|
|
22
|
+
switch (error.name) {
|
|
23
|
+
case "ValidationException": {
|
|
24
|
+
return serializeValidationExceptionError(error, ctx);
|
|
25
|
+
}
|
|
26
|
+
case "RuntimeError": {
|
|
27
|
+
return serializeRuntimeErrorError(error, ctx);
|
|
28
|
+
}
|
|
29
|
+
default: {
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export const getDeleteUserHandler = (operation) => {
|
|
36
|
+
const mux = new httpbinding.HttpBindingMux([
|
|
37
|
+
new httpbinding.UriSpec('DELETE', [
|
|
38
|
+
{ type: 'path_literal', value: "user" },
|
|
39
|
+
], [], { service: "AppAPI", operation: "DeleteUser" }),
|
|
40
|
+
]);
|
|
41
|
+
const customizer = (ctx, failures) => {
|
|
42
|
+
if (!failures) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
name: "ValidationException",
|
|
47
|
+
$fault: "client",
|
|
48
|
+
message: __generateValidationSummary(failures),
|
|
49
|
+
fieldList: failures.map(failure => ({
|
|
50
|
+
path: failure.path,
|
|
51
|
+
message: __generateValidationMessage(failure)
|
|
52
|
+
}))
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
return new DeleteUserHandler(operation, mux, new DeleteUserSerializer(), serializeFrameworkException, customizer);
|
|
56
|
+
};
|
|
57
|
+
const serdeContextBase = {
|
|
58
|
+
base64Encoder: toBase64,
|
|
59
|
+
base64Decoder: fromBase64,
|
|
60
|
+
utf8Encoder: toUtf8,
|
|
61
|
+
utf8Decoder: fromUtf8,
|
|
62
|
+
streamCollector: streamCollector,
|
|
63
|
+
requestHandler: new NodeHttpHandler(),
|
|
64
|
+
disableHostPrefix: true
|
|
65
|
+
};
|
|
66
|
+
async function handle(request, context, operationName, serializer, operation, serializeFrameworkException, validationFn, validationCustomizer) {
|
|
67
|
+
let input;
|
|
68
|
+
try {
|
|
69
|
+
input = await serializer.deserialize(request, {
|
|
70
|
+
endpoint: () => Promise.resolve(request), ...serdeContextBase
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
if (__isFrameworkException(error)) {
|
|
75
|
+
return serializeFrameworkException(error, serdeContextBase);
|
|
76
|
+
}
|
|
77
|
+
;
|
|
78
|
+
return serializeFrameworkException(new __SerializationException(), serdeContextBase);
|
|
79
|
+
}
|
|
80
|
+
try {
|
|
81
|
+
let validationFailures = validationFn(input);
|
|
82
|
+
if (validationFailures && validationFailures.length > 0) {
|
|
83
|
+
let validationException = validationCustomizer({ operation: operationName }, validationFailures);
|
|
84
|
+
if (validationException) {
|
|
85
|
+
return serializer.serializeError(validationException, serdeContextBase);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
let output = await operation(input, context);
|
|
89
|
+
return serializer.serialize(output, serdeContextBase);
|
|
90
|
+
}
|
|
91
|
+
catch (error) {
|
|
92
|
+
if (serializer.isOperationError(error)) {
|
|
93
|
+
return serializer.serializeError(error, serdeContextBase);
|
|
94
|
+
}
|
|
95
|
+
console.log('Received an unexpected error', error);
|
|
96
|
+
return serializeFrameworkException(new __InternalFailureException(), serdeContextBase);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
export class DeleteUserHandler {
|
|
100
|
+
constructor(operation, mux, serializer, serializeFrameworkException, validationCustomizer) {
|
|
101
|
+
this.operation = operation;
|
|
102
|
+
this.mux = mux;
|
|
103
|
+
this.serializer = serializer;
|
|
104
|
+
this.serializeFrameworkException = serializeFrameworkException;
|
|
105
|
+
this.validationCustomizer = validationCustomizer;
|
|
106
|
+
}
|
|
107
|
+
async handle(request, context) {
|
|
108
|
+
const target = this.mux.match(request);
|
|
109
|
+
if (target === undefined) {
|
|
110
|
+
console.log('Received a request that did not match software.amazon.smithy.app#AppAPI.DeleteUser. This indicates a misconfiguration.');
|
|
111
|
+
return this.serializeFrameworkException(new __InternalFailureException(), serdeContextBase);
|
|
112
|
+
}
|
|
113
|
+
return handle(request, context, "DeleteUser", this.serializer, this.operation, this.serializeFrameworkException, DeleteUserServerInput.validate, this.validationCustomizer);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { PlansListInput, } from "../../models/models_0";
|
|
2
|
+
import { deserializeFavoritePlansRequest, serializeFavoritePlansResponse, serializeFrameworkException, serializeRuntimeErrorError, serializeValidationExceptionError, } from "../../protocols/Aws_restJson1";
|
|
3
|
+
import { InternalFailureException as __InternalFailureException, SerializationException as __SerializationException, generateValidationMessage as __generateValidationMessage, generateValidationSummary as __generateValidationSummary, isFrameworkException as __isFrameworkException, httpbinding, } from "@aws-smithy/server-common";
|
|
4
|
+
import { NodeHttpHandler, streamCollector, } from "@smithy/node-http-handler";
|
|
5
|
+
import { fromBase64, toBase64, } from "@smithy/util-base64";
|
|
6
|
+
import { fromUtf8, toUtf8, } from "@smithy/util-utf8";
|
|
7
|
+
export var FavoritePlansServerInput;
|
|
8
|
+
(function (FavoritePlansServerInput) {
|
|
9
|
+
FavoritePlansServerInput.validate = PlansListInput.validate;
|
|
10
|
+
})(FavoritePlansServerInput || (FavoritePlansServerInput = {}));
|
|
11
|
+
export class FavoritePlansSerializer {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.serialize = serializeFavoritePlansResponse;
|
|
14
|
+
this.deserialize = deserializeFavoritePlansRequest;
|
|
15
|
+
}
|
|
16
|
+
isOperationError(error) {
|
|
17
|
+
const names = ["ValidationException", "RuntimeError"];
|
|
18
|
+
return names.includes(error.name);
|
|
19
|
+
}
|
|
20
|
+
;
|
|
21
|
+
serializeError(error, ctx) {
|
|
22
|
+
switch (error.name) {
|
|
23
|
+
case "ValidationException": {
|
|
24
|
+
return serializeValidationExceptionError(error, ctx);
|
|
25
|
+
}
|
|
26
|
+
case "RuntimeError": {
|
|
27
|
+
return serializeRuntimeErrorError(error, ctx);
|
|
28
|
+
}
|
|
29
|
+
default: {
|
|
30
|
+
throw error;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export const getFavoritePlansHandler = (operation) => {
|
|
36
|
+
const mux = new httpbinding.HttpBindingMux([
|
|
37
|
+
new httpbinding.UriSpec('GET', [
|
|
38
|
+
{ type: 'path_literal', value: "plans" },
|
|
39
|
+
{ type: 'path_literal', value: "favorite" },
|
|
40
|
+
], [
|
|
41
|
+
{ type: 'query', key: "lat" },
|
|
42
|
+
{ type: 'query', key: "lon" },
|
|
43
|
+
], { service: "AppAPI", operation: "FavoritePlans" }),
|
|
44
|
+
]);
|
|
45
|
+
const customizer = (ctx, failures) => {
|
|
46
|
+
if (!failures) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
name: "ValidationException",
|
|
51
|
+
$fault: "client",
|
|
52
|
+
message: __generateValidationSummary(failures),
|
|
53
|
+
fieldList: failures.map(failure => ({
|
|
54
|
+
path: failure.path,
|
|
55
|
+
message: __generateValidationMessage(failure)
|
|
56
|
+
}))
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return new FavoritePlansHandler(operation, mux, new FavoritePlansSerializer(), serializeFrameworkException, customizer);
|
|
60
|
+
};
|
|
61
|
+
const serdeContextBase = {
|
|
62
|
+
base64Encoder: toBase64,
|
|
63
|
+
base64Decoder: fromBase64,
|
|
64
|
+
utf8Encoder: toUtf8,
|
|
65
|
+
utf8Decoder: fromUtf8,
|
|
66
|
+
streamCollector: streamCollector,
|
|
67
|
+
requestHandler: new NodeHttpHandler(),
|
|
68
|
+
disableHostPrefix: true
|
|
69
|
+
};
|
|
70
|
+
async function handle(request, context, operationName, serializer, operation, serializeFrameworkException, validationFn, validationCustomizer) {
|
|
71
|
+
let input;
|
|
72
|
+
try {
|
|
73
|
+
input = await serializer.deserialize(request, {
|
|
74
|
+
endpoint: () => Promise.resolve(request), ...serdeContextBase
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
if (__isFrameworkException(error)) {
|
|
79
|
+
return serializeFrameworkException(error, serdeContextBase);
|
|
80
|
+
}
|
|
81
|
+
;
|
|
82
|
+
return serializeFrameworkException(new __SerializationException(), serdeContextBase);
|
|
83
|
+
}
|
|
84
|
+
try {
|
|
85
|
+
let validationFailures = validationFn(input);
|
|
86
|
+
if (validationFailures && validationFailures.length > 0) {
|
|
87
|
+
let validationException = validationCustomizer({ operation: operationName }, validationFailures);
|
|
88
|
+
if (validationException) {
|
|
89
|
+
return serializer.serializeError(validationException, serdeContextBase);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
let output = await operation(input, context);
|
|
93
|
+
return serializer.serialize(output, serdeContextBase);
|
|
94
|
+
}
|
|
95
|
+
catch (error) {
|
|
96
|
+
if (serializer.isOperationError(error)) {
|
|
97
|
+
return serializer.serializeError(error, serdeContextBase);
|
|
98
|
+
}
|
|
99
|
+
console.log('Received an unexpected error', error);
|
|
100
|
+
return serializeFrameworkException(new __InternalFailureException(), serdeContextBase);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
export class FavoritePlansHandler {
|
|
104
|
+
constructor(operation, mux, serializer, serializeFrameworkException, validationCustomizer) {
|
|
105
|
+
this.operation = operation;
|
|
106
|
+
this.mux = mux;
|
|
107
|
+
this.serializer = serializer;
|
|
108
|
+
this.serializeFrameworkException = serializeFrameworkException;
|
|
109
|
+
this.validationCustomizer = validationCustomizer;
|
|
110
|
+
}
|
|
111
|
+
async handle(request, context) {
|
|
112
|
+
const target = this.mux.match(request);
|
|
113
|
+
if (target === undefined) {
|
|
114
|
+
console.log('Received a request that did not match software.amazon.smithy.app#AppAPI.FavoritePlans. This indicates a misconfiguration.');
|
|
115
|
+
return this.serializeFrameworkException(new __InternalFailureException(), serdeContextBase);
|
|
116
|
+
}
|
|
117
|
+
return handle(request, context, "FavoritePlans", this.serializer, this.operation, this.serializeFrameworkException, FavoritePlansServerInput.validate, this.validationCustomizer);
|
|
118
|
+
}
|
|
119
|
+
}
|