@sparkrewards/sra-client 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/AppAPI.js +63 -0
- package/dist-cjs/AppAPIClient.js +43 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +35 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +35 -0
- package/dist-cjs/commands/DeleteUserCommand.js +21 -0
- package/dist-cjs/commands/FavoritePlansCommand.js +21 -0
- package/dist-cjs/commands/FavoriteShopsCommand.js +21 -0
- package/dist-cjs/commands/GetShopCommand.js +21 -0
- package/dist-cjs/commands/GetShopPublicCommand.js +21 -0
- package/dist-cjs/commands/GetUserCommand.js +21 -0
- package/dist-cjs/commands/LikeOrgCommand.js +21 -0
- package/dist-cjs/commands/NearbyShopsCommand.js +21 -0
- package/dist-cjs/commands/NearbyShopsPublicCommand.js +21 -0
- package/dist-cjs/commands/NearestShopCommand.js +21 -0
- package/dist-cjs/commands/OnboardUserCommand.js +21 -0
- package/dist-cjs/commands/PinnedShopCommand.js +21 -0
- package/dist-cjs/commands/PinnedShopPublicCommand.js +21 -0
- package/dist-cjs/commands/PlanCommand.js +21 -0
- package/dist-cjs/commands/PlanPublicCommand.js +21 -0
- package/dist-cjs/commands/PlansCommand.js +21 -0
- package/dist-cjs/commands/PopularShopsCommand.js +21 -0
- package/dist-cjs/commands/PopularShopsPublicCommand.js +21 -0
- package/dist-cjs/commands/RadiusShopsCommand.js +21 -0
- package/dist-cjs/commands/RecordVisitCommand.js +21 -0
- package/dist-cjs/commands/RedeemFirstTimeRewardCommand.js +21 -0
- package/dist-cjs/commands/RedeemPointRewardCommand.js +21 -0
- package/dist-cjs/commands/RedeemVisitRewardCommand.js +21 -0
- package/dist-cjs/commands/SearchShopsPublicCommand.js +21 -0
- package/dist-cjs/commands/SearchSuggestionCommand.js +21 -0
- package/dist-cjs/commands/UpdateUserCommand.js +21 -0
- package/dist-cjs/commands/index.js +29 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +10 -0
- package/dist-cjs/models/AppAPIServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +57 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1073 -0
- package/dist-cjs/runtimeConfig.browser.js +32 -0
- package/dist-cjs/runtimeConfig.js +36 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +23 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/AppAPI.js +59 -0
- package/dist-es/AppAPIClient.js +39 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +30 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +29 -0
- package/dist-es/commands/DeleteUserCommand.js +17 -0
- package/dist-es/commands/FavoritePlansCommand.js +17 -0
- package/dist-es/commands/FavoriteShopsCommand.js +17 -0
- package/dist-es/commands/GetShopCommand.js +17 -0
- package/dist-es/commands/GetShopPublicCommand.js +17 -0
- package/dist-es/commands/GetUserCommand.js +17 -0
- package/dist-es/commands/LikeOrgCommand.js +17 -0
- package/dist-es/commands/NearbyShopsCommand.js +17 -0
- package/dist-es/commands/NearbyShopsPublicCommand.js +17 -0
- package/dist-es/commands/NearestShopCommand.js +17 -0
- package/dist-es/commands/OnboardUserCommand.js +17 -0
- package/dist-es/commands/PinnedShopCommand.js +17 -0
- package/dist-es/commands/PinnedShopPublicCommand.js +17 -0
- package/dist-es/commands/PlanCommand.js +17 -0
- package/dist-es/commands/PlanPublicCommand.js +17 -0
- package/dist-es/commands/PlansCommand.js +17 -0
- package/dist-es/commands/PopularShopsCommand.js +17 -0
- package/dist-es/commands/PopularShopsPublicCommand.js +17 -0
- package/dist-es/commands/RadiusShopsCommand.js +17 -0
- package/dist-es/commands/RecordVisitCommand.js +17 -0
- package/dist-es/commands/RedeemFirstTimeRewardCommand.js +17 -0
- package/dist-es/commands/RedeemPointRewardCommand.js +17 -0
- package/dist-es/commands/RedeemVisitRewardCommand.js +17 -0
- package/dist-es/commands/SearchShopsPublicCommand.js +17 -0
- package/dist-es/commands/SearchSuggestionCommand.js +17 -0
- package/dist-es/commands/UpdateUserCommand.js +17 -0
- package/dist-es/commands/index.js +26 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +5 -0
- package/dist-es/models/AppAPIServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +50 -0
- package/dist-es/protocols/Aws_restJson1.js +1017 -0
- package/dist-es/runtimeConfig.browser.js +27 -0
- package/dist-es/runtimeConfig.js +31 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +19 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/AppAPI.d.ts +202 -0
- package/dist-types/AppAPIClient.d.ts +170 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +26 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +59 -0
- package/dist-types/commands/DeleteUserCommand.d.ts +65 -0
- package/dist-types/commands/FavoritePlansCommand.d.ts +119 -0
- package/dist-types/commands/FavoriteShopsCommand.d.ts +104 -0
- package/dist-types/commands/GetShopCommand.d.ts +100 -0
- package/dist-types/commands/GetShopPublicCommand.d.ts +100 -0
- package/dist-types/commands/GetUserCommand.d.ts +84 -0
- package/dist-types/commands/LikeOrgCommand.d.ts +68 -0
- package/dist-types/commands/NearbyShopsCommand.d.ts +104 -0
- package/dist-types/commands/NearbyShopsPublicCommand.d.ts +104 -0
- package/dist-types/commands/NearestShopCommand.d.ts +91 -0
- package/dist-types/commands/OnboardUserCommand.d.ts +84 -0
- package/dist-types/commands/PinnedShopCommand.d.ts +91 -0
- package/dist-types/commands/PinnedShopPublicCommand.d.ts +91 -0
- package/dist-types/commands/PlanCommand.d.ts +107 -0
- package/dist-types/commands/PlanPublicCommand.d.ts +107 -0
- package/dist-types/commands/PlansCommand.d.ts +119 -0
- package/dist-types/commands/PopularShopsCommand.d.ts +104 -0
- package/dist-types/commands/PopularShopsPublicCommand.d.ts +104 -0
- package/dist-types/commands/RadiusShopsCommand.d.ts +78 -0
- package/dist-types/commands/RecordVisitCommand.d.ts +75 -0
- package/dist-types/commands/RedeemFirstTimeRewardCommand.d.ts +68 -0
- package/dist-types/commands/RedeemPointRewardCommand.d.ts +71 -0
- package/dist-types/commands/RedeemVisitRewardCommand.d.ts +68 -0
- package/dist-types/commands/SearchShopsPublicCommand.d.ts +106 -0
- package/dist-types/commands/SearchSuggestionCommand.d.ts +78 -0
- package/dist-types/commands/UpdateUserCommand.d.ts +89 -0
- package/dist-types/commands/index.d.ts +26 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +12 -0
- package/dist-types/models/AppAPIServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +550 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +236 -0
- package/dist-types/runtimeConfig.browser.d.ts +33 -0
- package/dist-types/runtimeConfig.d.ts +33 -0
- package/dist-types/runtimeConfig.native.d.ts +32 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/package.json +81 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_RecordVisitCommand, se_RecordVisitCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class RecordVisitCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("AppAPI", "RecordVisit", {})
|
|
12
|
+
.n("AppAPIClient", "RecordVisitCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_RecordVisitCommand)
|
|
15
|
+
.de(de_RecordVisitCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_RedeemFirstTimeRewardCommand, se_RedeemFirstTimeRewardCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class RedeemFirstTimeRewardCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("AppAPI", "RedeemFirstTimeReward", {})
|
|
12
|
+
.n("AppAPIClient", "RedeemFirstTimeRewardCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_RedeemFirstTimeRewardCommand)
|
|
15
|
+
.de(de_RedeemFirstTimeRewardCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_RedeemPointRewardCommand, se_RedeemPointRewardCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class RedeemPointRewardCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("AppAPI", "RedeemPointReward", {})
|
|
12
|
+
.n("AppAPIClient", "RedeemPointRewardCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_RedeemPointRewardCommand)
|
|
15
|
+
.de(de_RedeemPointRewardCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_RedeemVisitRewardCommand, se_RedeemVisitRewardCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class RedeemVisitRewardCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("AppAPI", "RedeemVisitReward", {})
|
|
12
|
+
.n("AppAPIClient", "RedeemVisitRewardCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_RedeemVisitRewardCommand)
|
|
15
|
+
.de(de_RedeemVisitRewardCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SearchShopsPublicCommand, se_SearchShopsPublicCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class SearchShopsPublicCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("AppAPI", "SearchShopsPublic", {})
|
|
12
|
+
.n("AppAPIClient", "SearchShopsPublicCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SearchShopsPublicCommand)
|
|
15
|
+
.de(de_SearchShopsPublicCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_SearchSuggestionCommand, se_SearchSuggestionCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class SearchSuggestionCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("AppAPI", "SearchSuggestion", {})
|
|
12
|
+
.n("AppAPIClient", "SearchSuggestionCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_SearchSuggestionCommand)
|
|
15
|
+
.de(de_SearchSuggestionCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { de_UpdateUserCommand, se_UpdateUserCommand, } from "../protocols/Aws_restJson1";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
export { $Command };
|
|
5
|
+
export class UpdateUserCommand extends $Command.classBuilder()
|
|
6
|
+
.m(function (Command, cs, config, o) {
|
|
7
|
+
return [
|
|
8
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
9
|
+
];
|
|
10
|
+
})
|
|
11
|
+
.s("AppAPI", "UpdateUser", {})
|
|
12
|
+
.n("AppAPIClient", "UpdateUserCommand")
|
|
13
|
+
.f(void 0, void 0)
|
|
14
|
+
.ser(se_UpdateUserCommand)
|
|
15
|
+
.de(de_UpdateUserCommand)
|
|
16
|
+
.build() {
|
|
17
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from "./DeleteUserCommand";
|
|
2
|
+
export * from "./FavoritePlansCommand";
|
|
3
|
+
export * from "./FavoriteShopsCommand";
|
|
4
|
+
export * from "./GetShopCommand";
|
|
5
|
+
export * from "./GetShopPublicCommand";
|
|
6
|
+
export * from "./GetUserCommand";
|
|
7
|
+
export * from "./LikeOrgCommand";
|
|
8
|
+
export * from "./NearbyShopsCommand";
|
|
9
|
+
export * from "./NearbyShopsPublicCommand";
|
|
10
|
+
export * from "./NearestShopCommand";
|
|
11
|
+
export * from "./OnboardUserCommand";
|
|
12
|
+
export * from "./PinnedShopCommand";
|
|
13
|
+
export * from "./PinnedShopPublicCommand";
|
|
14
|
+
export * from "./PlanCommand";
|
|
15
|
+
export * from "./PlanPublicCommand";
|
|
16
|
+
export * from "./PlansCommand";
|
|
17
|
+
export * from "./PopularShopsCommand";
|
|
18
|
+
export * from "./PopularShopsPublicCommand";
|
|
19
|
+
export * from "./RadiusShopsCommand";
|
|
20
|
+
export * from "./RecordVisitCommand";
|
|
21
|
+
export * from "./RedeemFirstTimeRewardCommand";
|
|
22
|
+
export * from "./RedeemPointRewardCommand";
|
|
23
|
+
export * from "./RedeemVisitRewardCommand";
|
|
24
|
+
export * from "./SearchShopsPublicCommand";
|
|
25
|
+
export * from "./SearchSuggestionCommand";
|
|
26
|
+
export * from "./UpdateUserCommand";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist-es/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
|
|
2
|
+
export { __ServiceException };
|
|
3
|
+
export class AppAPIServiceException extends __ServiceException {
|
|
4
|
+
constructor(options) {
|
|
5
|
+
super(options);
|
|
6
|
+
Object.setPrototypeOf(this, AppAPIServiceException.prototype);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { AppAPIServiceException as __BaseException } from "./AppAPIServiceException";
|
|
2
|
+
export class ValidationException extends __BaseException {
|
|
3
|
+
constructor(opts) {
|
|
4
|
+
super({
|
|
5
|
+
name: "ValidationException",
|
|
6
|
+
$fault: "client",
|
|
7
|
+
...opts
|
|
8
|
+
});
|
|
9
|
+
this.name = "ValidationException";
|
|
10
|
+
this.$fault = "client";
|
|
11
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
12
|
+
this.fieldList = opts.fieldList;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export class RuntimeError extends __BaseException {
|
|
16
|
+
constructor(opts) {
|
|
17
|
+
super({
|
|
18
|
+
name: "RuntimeError",
|
|
19
|
+
$fault: "server",
|
|
20
|
+
...opts
|
|
21
|
+
});
|
|
22
|
+
this.name = "RuntimeError";
|
|
23
|
+
this.$fault = "server";
|
|
24
|
+
Object.setPrototypeOf(this, RuntimeError.prototype);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export class NotFoundError extends __BaseException {
|
|
28
|
+
constructor(opts) {
|
|
29
|
+
super({
|
|
30
|
+
name: "NotFoundError",
|
|
31
|
+
$fault: "client",
|
|
32
|
+
...opts
|
|
33
|
+
});
|
|
34
|
+
this.name = "NotFoundError";
|
|
35
|
+
this.$fault = "client";
|
|
36
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export class InvalidOperationError extends __BaseException {
|
|
40
|
+
constructor(opts) {
|
|
41
|
+
super({
|
|
42
|
+
name: "InvalidOperationError",
|
|
43
|
+
$fault: "client",
|
|
44
|
+
...opts
|
|
45
|
+
});
|
|
46
|
+
this.name = "InvalidOperationError";
|
|
47
|
+
this.$fault = "client";
|
|
48
|
+
Object.setPrototypeOf(this, InvalidOperationError.prototype);
|
|
49
|
+
}
|
|
50
|
+
}
|