@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,27 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
4
|
+
import { FetchHttpHandler as RequestHandler, streamCollector, } from "@smithy/fetch-http-handler";
|
|
5
|
+
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
6
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, } from "@smithy/util-retry";
|
|
7
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
8
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
9
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
10
|
+
export const getRuntimeConfig = (config) => {
|
|
11
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
12
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
13
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
14
|
+
return {
|
|
15
|
+
...clientSharedValues,
|
|
16
|
+
...config,
|
|
17
|
+
runtime: "browser",
|
|
18
|
+
defaultsMode,
|
|
19
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
20
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ clientVersion: packageInfo.version }),
|
|
21
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
22
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
23
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
24
|
+
sha256: config?.sha256 ?? Sha256,
|
|
25
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
3
|
+
import { Hash } from "@smithy/hash-node";
|
|
4
|
+
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/middleware-retry";
|
|
5
|
+
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
6
|
+
import { NodeHttpHandler as RequestHandler, streamCollector, } from "@smithy/node-http-handler";
|
|
7
|
+
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
8
|
+
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
12
|
+
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
13
|
+
export const getRuntimeConfig = (config) => {
|
|
14
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
15
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
16
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
17
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
18
|
+
return {
|
|
19
|
+
...clientSharedValues,
|
|
20
|
+
...config,
|
|
21
|
+
runtime: "node",
|
|
22
|
+
defaultsMode,
|
|
23
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ?? defaultUserAgent({ clientVersion: packageInfo.version }),
|
|
25
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
26
|
+
requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
|
|
27
|
+
retryMode: config?.retryMode ?? loadNodeConfig({ ...NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, }),
|
|
28
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
29
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defaultAppAPIHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
|
|
2
|
+
import { NoOpLogger } from "@smithy/smithy-client";
|
|
3
|
+
import { parseUrl } from "@smithy/url-parser";
|
|
4
|
+
import { fromBase64, toBase64, } from "@smithy/util-base64";
|
|
5
|
+
import { fromUtf8, toUtf8, } from "@smithy/util-utf8";
|
|
6
|
+
export const getRuntimeConfig = (config) => {
|
|
7
|
+
return {
|
|
8
|
+
apiVersion: "2025-10-29",
|
|
9
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
10
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
11
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
12
|
+
extensions: config?.extensions ?? [],
|
|
13
|
+
httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultAppAPIHttpAuthSchemeProvider,
|
|
14
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
15
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
16
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
17
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig, } from "./auth/httpAuthExtensionConfiguration";
|
|
2
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, } from "@smithy/protocol-http";
|
|
3
|
+
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, } from "@smithy/smithy-client";
|
|
4
|
+
const asPartial = (t) => t;
|
|
5
|
+
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
6
|
+
const extensionConfiguration = {
|
|
7
|
+
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
8
|
+
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
9
|
+
...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
|
|
10
|
+
};
|
|
11
|
+
extensions.forEach(extension => extension.configure(extensionConfiguration));
|
|
12
|
+
return {
|
|
13
|
+
...runtimeConfig,
|
|
14
|
+
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
15
|
+
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
16
|
+
...resolveHttpAuthRuntimeConfig(extensionConfiguration),
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { AppAPIClient } from "./AppAPIClient";
|
|
2
|
+
import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
|
|
3
|
+
import { FavoritePlansCommandInput, FavoritePlansCommandOutput } from "./commands/FavoritePlansCommand";
|
|
4
|
+
import { FavoriteShopsCommandInput, FavoriteShopsCommandOutput } from "./commands/FavoriteShopsCommand";
|
|
5
|
+
import { GetShopCommandInput, GetShopCommandOutput } from "./commands/GetShopCommand";
|
|
6
|
+
import { GetShopPublicCommandInput, GetShopPublicCommandOutput } from "./commands/GetShopPublicCommand";
|
|
7
|
+
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
8
|
+
import { LikeOrgCommandInput, LikeOrgCommandOutput } from "./commands/LikeOrgCommand";
|
|
9
|
+
import { NearbyShopsCommandInput, NearbyShopsCommandOutput } from "./commands/NearbyShopsCommand";
|
|
10
|
+
import { NearbyShopsPublicCommandInput, NearbyShopsPublicCommandOutput } from "./commands/NearbyShopsPublicCommand";
|
|
11
|
+
import { NearestShopCommandInput, NearestShopCommandOutput } from "./commands/NearestShopCommand";
|
|
12
|
+
import { OnboardUserCommandInput, OnboardUserCommandOutput } from "./commands/OnboardUserCommand";
|
|
13
|
+
import { PinnedShopCommandInput, PinnedShopCommandOutput } from "./commands/PinnedShopCommand";
|
|
14
|
+
import { PinnedShopPublicCommandInput, PinnedShopPublicCommandOutput } from "./commands/PinnedShopPublicCommand";
|
|
15
|
+
import { PlanCommandInput, PlanCommandOutput } from "./commands/PlanCommand";
|
|
16
|
+
import { PlanPublicCommandInput, PlanPublicCommandOutput } from "./commands/PlanPublicCommand";
|
|
17
|
+
import { PlansCommandInput, PlansCommandOutput } from "./commands/PlansCommand";
|
|
18
|
+
import { PopularShopsCommandInput, PopularShopsCommandOutput } from "./commands/PopularShopsCommand";
|
|
19
|
+
import { PopularShopsPublicCommandInput, PopularShopsPublicCommandOutput } from "./commands/PopularShopsPublicCommand";
|
|
20
|
+
import { RadiusShopsCommandInput, RadiusShopsCommandOutput } from "./commands/RadiusShopsCommand";
|
|
21
|
+
import { RecordVisitCommandInput, RecordVisitCommandOutput } from "./commands/RecordVisitCommand";
|
|
22
|
+
import { RedeemFirstTimeRewardCommandInput, RedeemFirstTimeRewardCommandOutput } from "./commands/RedeemFirstTimeRewardCommand";
|
|
23
|
+
import { RedeemPointRewardCommandInput, RedeemPointRewardCommandOutput } from "./commands/RedeemPointRewardCommand";
|
|
24
|
+
import { RedeemVisitRewardCommandInput, RedeemVisitRewardCommandOutput } from "./commands/RedeemVisitRewardCommand";
|
|
25
|
+
import { SearchShopsPublicCommandInput, SearchShopsPublicCommandOutput } from "./commands/SearchShopsPublicCommand";
|
|
26
|
+
import { SearchSuggestionCommandInput, SearchSuggestionCommandOutput } from "./commands/SearchSuggestionCommand";
|
|
27
|
+
import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
|
|
28
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
29
|
+
export interface AppAPI {
|
|
30
|
+
/**
|
|
31
|
+
* @see {@link DeleteUserCommand}
|
|
32
|
+
*/
|
|
33
|
+
deleteUser(): Promise<DeleteUserCommandOutput>;
|
|
34
|
+
deleteUser(args: DeleteUserCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUserCommandOutput>;
|
|
35
|
+
deleteUser(args: DeleteUserCommandInput, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
|
|
36
|
+
deleteUser(args: DeleteUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteUserCommandOutput) => void): void;
|
|
37
|
+
/**
|
|
38
|
+
* @see {@link FavoritePlansCommand}
|
|
39
|
+
*/
|
|
40
|
+
favoritePlans(args: FavoritePlansCommandInput, options?: __HttpHandlerOptions): Promise<FavoritePlansCommandOutput>;
|
|
41
|
+
favoritePlans(args: FavoritePlansCommandInput, cb: (err: any, data?: FavoritePlansCommandOutput) => void): void;
|
|
42
|
+
favoritePlans(args: FavoritePlansCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: FavoritePlansCommandOutput) => void): void;
|
|
43
|
+
/**
|
|
44
|
+
* @see {@link FavoriteShopsCommand}
|
|
45
|
+
*/
|
|
46
|
+
favoriteShops(): Promise<FavoriteShopsCommandOutput>;
|
|
47
|
+
favoriteShops(args: FavoriteShopsCommandInput, options?: __HttpHandlerOptions): Promise<FavoriteShopsCommandOutput>;
|
|
48
|
+
favoriteShops(args: FavoriteShopsCommandInput, cb: (err: any, data?: FavoriteShopsCommandOutput) => void): void;
|
|
49
|
+
favoriteShops(args: FavoriteShopsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: FavoriteShopsCommandOutput) => void): void;
|
|
50
|
+
/**
|
|
51
|
+
* @see {@link GetShopCommand}
|
|
52
|
+
*/
|
|
53
|
+
getShop(args: GetShopCommandInput, options?: __HttpHandlerOptions): Promise<GetShopCommandOutput>;
|
|
54
|
+
getShop(args: GetShopCommandInput, cb: (err: any, data?: GetShopCommandOutput) => void): void;
|
|
55
|
+
getShop(args: GetShopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetShopCommandOutput) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* @see {@link GetShopPublicCommand}
|
|
58
|
+
*/
|
|
59
|
+
getShopPublic(args: GetShopPublicCommandInput, options?: __HttpHandlerOptions): Promise<GetShopPublicCommandOutput>;
|
|
60
|
+
getShopPublic(args: GetShopPublicCommandInput, cb: (err: any, data?: GetShopPublicCommandOutput) => void): void;
|
|
61
|
+
getShopPublic(args: GetShopPublicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetShopPublicCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* @see {@link GetUserCommand}
|
|
64
|
+
*/
|
|
65
|
+
getUser(): Promise<GetUserCommandOutput>;
|
|
66
|
+
getUser(args: GetUserCommandInput, options?: __HttpHandlerOptions): Promise<GetUserCommandOutput>;
|
|
67
|
+
getUser(args: GetUserCommandInput, cb: (err: any, data?: GetUserCommandOutput) => void): void;
|
|
68
|
+
getUser(args: GetUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUserCommandOutput) => void): void;
|
|
69
|
+
/**
|
|
70
|
+
* @see {@link LikeOrgCommand}
|
|
71
|
+
*/
|
|
72
|
+
likeOrg(args: LikeOrgCommandInput, options?: __HttpHandlerOptions): Promise<LikeOrgCommandOutput>;
|
|
73
|
+
likeOrg(args: LikeOrgCommandInput, cb: (err: any, data?: LikeOrgCommandOutput) => void): void;
|
|
74
|
+
likeOrg(args: LikeOrgCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LikeOrgCommandOutput) => void): void;
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link NearbyShopsCommand}
|
|
77
|
+
*/
|
|
78
|
+
nearbyShops(): Promise<NearbyShopsCommandOutput>;
|
|
79
|
+
nearbyShops(args: NearbyShopsCommandInput, options?: __HttpHandlerOptions): Promise<NearbyShopsCommandOutput>;
|
|
80
|
+
nearbyShops(args: NearbyShopsCommandInput, cb: (err: any, data?: NearbyShopsCommandOutput) => void): void;
|
|
81
|
+
nearbyShops(args: NearbyShopsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NearbyShopsCommandOutput) => void): void;
|
|
82
|
+
/**
|
|
83
|
+
* @see {@link NearbyShopsPublicCommand}
|
|
84
|
+
*/
|
|
85
|
+
nearbyShopsPublic(): Promise<NearbyShopsPublicCommandOutput>;
|
|
86
|
+
nearbyShopsPublic(args: NearbyShopsPublicCommandInput, options?: __HttpHandlerOptions): Promise<NearbyShopsPublicCommandOutput>;
|
|
87
|
+
nearbyShopsPublic(args: NearbyShopsPublicCommandInput, cb: (err: any, data?: NearbyShopsPublicCommandOutput) => void): void;
|
|
88
|
+
nearbyShopsPublic(args: NearbyShopsPublicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NearbyShopsPublicCommandOutput) => void): void;
|
|
89
|
+
/**
|
|
90
|
+
* @see {@link NearestShopCommand}
|
|
91
|
+
*/
|
|
92
|
+
nearestShop(args: NearestShopCommandInput, options?: __HttpHandlerOptions): Promise<NearestShopCommandOutput>;
|
|
93
|
+
nearestShop(args: NearestShopCommandInput, cb: (err: any, data?: NearestShopCommandOutput) => void): void;
|
|
94
|
+
nearestShop(args: NearestShopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: NearestShopCommandOutput) => void): void;
|
|
95
|
+
/**
|
|
96
|
+
* @see {@link OnboardUserCommand}
|
|
97
|
+
*/
|
|
98
|
+
onboardUser(): Promise<OnboardUserCommandOutput>;
|
|
99
|
+
onboardUser(args: OnboardUserCommandInput, options?: __HttpHandlerOptions): Promise<OnboardUserCommandOutput>;
|
|
100
|
+
onboardUser(args: OnboardUserCommandInput, cb: (err: any, data?: OnboardUserCommandOutput) => void): void;
|
|
101
|
+
onboardUser(args: OnboardUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: OnboardUserCommandOutput) => void): void;
|
|
102
|
+
/**
|
|
103
|
+
* @see {@link PinnedShopCommand}
|
|
104
|
+
*/
|
|
105
|
+
pinnedShop(args: PinnedShopCommandInput, options?: __HttpHandlerOptions): Promise<PinnedShopCommandOutput>;
|
|
106
|
+
pinnedShop(args: PinnedShopCommandInput, cb: (err: any, data?: PinnedShopCommandOutput) => void): void;
|
|
107
|
+
pinnedShop(args: PinnedShopCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PinnedShopCommandOutput) => void): void;
|
|
108
|
+
/**
|
|
109
|
+
* @see {@link PinnedShopPublicCommand}
|
|
110
|
+
*/
|
|
111
|
+
pinnedShopPublic(args: PinnedShopPublicCommandInput, options?: __HttpHandlerOptions): Promise<PinnedShopPublicCommandOutput>;
|
|
112
|
+
pinnedShopPublic(args: PinnedShopPublicCommandInput, cb: (err: any, data?: PinnedShopPublicCommandOutput) => void): void;
|
|
113
|
+
pinnedShopPublic(args: PinnedShopPublicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PinnedShopPublicCommandOutput) => void): void;
|
|
114
|
+
/**
|
|
115
|
+
* @see {@link PlanCommand}
|
|
116
|
+
*/
|
|
117
|
+
plan(args: PlanCommandInput, options?: __HttpHandlerOptions): Promise<PlanCommandOutput>;
|
|
118
|
+
plan(args: PlanCommandInput, cb: (err: any, data?: PlanCommandOutput) => void): void;
|
|
119
|
+
plan(args: PlanCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PlanCommandOutput) => void): void;
|
|
120
|
+
/**
|
|
121
|
+
* @see {@link PlanPublicCommand}
|
|
122
|
+
*/
|
|
123
|
+
planPublic(args: PlanPublicCommandInput, options?: __HttpHandlerOptions): Promise<PlanPublicCommandOutput>;
|
|
124
|
+
planPublic(args: PlanPublicCommandInput, cb: (err: any, data?: PlanPublicCommandOutput) => void): void;
|
|
125
|
+
planPublic(args: PlanPublicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PlanPublicCommandOutput) => void): void;
|
|
126
|
+
/**
|
|
127
|
+
* @see {@link PlansCommand}
|
|
128
|
+
*/
|
|
129
|
+
plans(args: PlansCommandInput, options?: __HttpHandlerOptions): Promise<PlansCommandOutput>;
|
|
130
|
+
plans(args: PlansCommandInput, cb: (err: any, data?: PlansCommandOutput) => void): void;
|
|
131
|
+
plans(args: PlansCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PlansCommandOutput) => void): void;
|
|
132
|
+
/**
|
|
133
|
+
* @see {@link PopularShopsCommand}
|
|
134
|
+
*/
|
|
135
|
+
popularShops(): Promise<PopularShopsCommandOutput>;
|
|
136
|
+
popularShops(args: PopularShopsCommandInput, options?: __HttpHandlerOptions): Promise<PopularShopsCommandOutput>;
|
|
137
|
+
popularShops(args: PopularShopsCommandInput, cb: (err: any, data?: PopularShopsCommandOutput) => void): void;
|
|
138
|
+
popularShops(args: PopularShopsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PopularShopsCommandOutput) => void): void;
|
|
139
|
+
/**
|
|
140
|
+
* @see {@link PopularShopsPublicCommand}
|
|
141
|
+
*/
|
|
142
|
+
popularShopsPublic(): Promise<PopularShopsPublicCommandOutput>;
|
|
143
|
+
popularShopsPublic(args: PopularShopsPublicCommandInput, options?: __HttpHandlerOptions): Promise<PopularShopsPublicCommandOutput>;
|
|
144
|
+
popularShopsPublic(args: PopularShopsPublicCommandInput, cb: (err: any, data?: PopularShopsPublicCommandOutput) => void): void;
|
|
145
|
+
popularShopsPublic(args: PopularShopsPublicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PopularShopsPublicCommandOutput) => void): void;
|
|
146
|
+
/**
|
|
147
|
+
* @see {@link RadiusShopsCommand}
|
|
148
|
+
*/
|
|
149
|
+
radiusShops(): Promise<RadiusShopsCommandOutput>;
|
|
150
|
+
radiusShops(args: RadiusShopsCommandInput, options?: __HttpHandlerOptions): Promise<RadiusShopsCommandOutput>;
|
|
151
|
+
radiusShops(args: RadiusShopsCommandInput, cb: (err: any, data?: RadiusShopsCommandOutput) => void): void;
|
|
152
|
+
radiusShops(args: RadiusShopsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RadiusShopsCommandOutput) => void): void;
|
|
153
|
+
/**
|
|
154
|
+
* @see {@link RecordVisitCommand}
|
|
155
|
+
*/
|
|
156
|
+
recordVisit(args: RecordVisitCommandInput, options?: __HttpHandlerOptions): Promise<RecordVisitCommandOutput>;
|
|
157
|
+
recordVisit(args: RecordVisitCommandInput, cb: (err: any, data?: RecordVisitCommandOutput) => void): void;
|
|
158
|
+
recordVisit(args: RecordVisitCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RecordVisitCommandOutput) => void): void;
|
|
159
|
+
/**
|
|
160
|
+
* @see {@link RedeemFirstTimeRewardCommand}
|
|
161
|
+
*/
|
|
162
|
+
redeemFirstTimeReward(args: RedeemFirstTimeRewardCommandInput, options?: __HttpHandlerOptions): Promise<RedeemFirstTimeRewardCommandOutput>;
|
|
163
|
+
redeemFirstTimeReward(args: RedeemFirstTimeRewardCommandInput, cb: (err: any, data?: RedeemFirstTimeRewardCommandOutput) => void): void;
|
|
164
|
+
redeemFirstTimeReward(args: RedeemFirstTimeRewardCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RedeemFirstTimeRewardCommandOutput) => void): void;
|
|
165
|
+
/**
|
|
166
|
+
* @see {@link RedeemPointRewardCommand}
|
|
167
|
+
*/
|
|
168
|
+
redeemPointReward(args: RedeemPointRewardCommandInput, options?: __HttpHandlerOptions): Promise<RedeemPointRewardCommandOutput>;
|
|
169
|
+
redeemPointReward(args: RedeemPointRewardCommandInput, cb: (err: any, data?: RedeemPointRewardCommandOutput) => void): void;
|
|
170
|
+
redeemPointReward(args: RedeemPointRewardCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RedeemPointRewardCommandOutput) => void): void;
|
|
171
|
+
/**
|
|
172
|
+
* @see {@link RedeemVisitRewardCommand}
|
|
173
|
+
*/
|
|
174
|
+
redeemVisitReward(args: RedeemVisitRewardCommandInput, options?: __HttpHandlerOptions): Promise<RedeemVisitRewardCommandOutput>;
|
|
175
|
+
redeemVisitReward(args: RedeemVisitRewardCommandInput, cb: (err: any, data?: RedeemVisitRewardCommandOutput) => void): void;
|
|
176
|
+
redeemVisitReward(args: RedeemVisitRewardCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RedeemVisitRewardCommandOutput) => void): void;
|
|
177
|
+
/**
|
|
178
|
+
* @see {@link SearchShopsPublicCommand}
|
|
179
|
+
*/
|
|
180
|
+
searchShopsPublic(args: SearchShopsPublicCommandInput, options?: __HttpHandlerOptions): Promise<SearchShopsPublicCommandOutput>;
|
|
181
|
+
searchShopsPublic(args: SearchShopsPublicCommandInput, cb: (err: any, data?: SearchShopsPublicCommandOutput) => void): void;
|
|
182
|
+
searchShopsPublic(args: SearchShopsPublicCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchShopsPublicCommandOutput) => void): void;
|
|
183
|
+
/**
|
|
184
|
+
* @see {@link SearchSuggestionCommand}
|
|
185
|
+
*/
|
|
186
|
+
searchSuggestion(args: SearchSuggestionCommandInput, options?: __HttpHandlerOptions): Promise<SearchSuggestionCommandOutput>;
|
|
187
|
+
searchSuggestion(args: SearchSuggestionCommandInput, cb: (err: any, data?: SearchSuggestionCommandOutput) => void): void;
|
|
188
|
+
searchSuggestion(args: SearchSuggestionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SearchSuggestionCommandOutput) => void): void;
|
|
189
|
+
/**
|
|
190
|
+
* @see {@link UpdateUserCommand}
|
|
191
|
+
*/
|
|
192
|
+
updateUser(): Promise<UpdateUserCommandOutput>;
|
|
193
|
+
updateUser(args: UpdateUserCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUserCommandOutput>;
|
|
194
|
+
updateUser(args: UpdateUserCommandInput, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
|
|
195
|
+
updateUser(args: UpdateUserCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUserCommandOutput) => void): void;
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Spark Rewards APP API Service
|
|
199
|
+
* @public
|
|
200
|
+
*/
|
|
201
|
+
export declare class AppAPI extends AppAPIClient implements AppAPI {
|
|
202
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
2
|
+
import { DeleteUserCommandInput, DeleteUserCommandOutput } from "./commands/DeleteUserCommand";
|
|
3
|
+
import { FavoritePlansCommandInput, FavoritePlansCommandOutput } from "./commands/FavoritePlansCommand";
|
|
4
|
+
import { FavoriteShopsCommandInput, FavoriteShopsCommandOutput } from "./commands/FavoriteShopsCommand";
|
|
5
|
+
import { GetShopCommandInput, GetShopCommandOutput } from "./commands/GetShopCommand";
|
|
6
|
+
import { GetShopPublicCommandInput, GetShopPublicCommandOutput } from "./commands/GetShopPublicCommand";
|
|
7
|
+
import { GetUserCommandInput, GetUserCommandOutput } from "./commands/GetUserCommand";
|
|
8
|
+
import { LikeOrgCommandInput, LikeOrgCommandOutput } from "./commands/LikeOrgCommand";
|
|
9
|
+
import { NearbyShopsCommandInput, NearbyShopsCommandOutput } from "./commands/NearbyShopsCommand";
|
|
10
|
+
import { NearbyShopsPublicCommandInput, NearbyShopsPublicCommandOutput } from "./commands/NearbyShopsPublicCommand";
|
|
11
|
+
import { NearestShopCommandInput, NearestShopCommandOutput } from "./commands/NearestShopCommand";
|
|
12
|
+
import { OnboardUserCommandInput, OnboardUserCommandOutput } from "./commands/OnboardUserCommand";
|
|
13
|
+
import { PinnedShopCommandInput, PinnedShopCommandOutput } from "./commands/PinnedShopCommand";
|
|
14
|
+
import { PinnedShopPublicCommandInput, PinnedShopPublicCommandOutput } from "./commands/PinnedShopPublicCommand";
|
|
15
|
+
import { PlanCommandInput, PlanCommandOutput } from "./commands/PlanCommand";
|
|
16
|
+
import { PlanPublicCommandInput, PlanPublicCommandOutput } from "./commands/PlanPublicCommand";
|
|
17
|
+
import { PlansCommandInput, PlansCommandOutput } from "./commands/PlansCommand";
|
|
18
|
+
import { PopularShopsCommandInput, PopularShopsCommandOutput } from "./commands/PopularShopsCommand";
|
|
19
|
+
import { PopularShopsPublicCommandInput, PopularShopsPublicCommandOutput } from "./commands/PopularShopsPublicCommand";
|
|
20
|
+
import { RadiusShopsCommandInput, RadiusShopsCommandOutput } from "./commands/RadiusShopsCommand";
|
|
21
|
+
import { RecordVisitCommandInput, RecordVisitCommandOutput } from "./commands/RecordVisitCommand";
|
|
22
|
+
import { RedeemFirstTimeRewardCommandInput, RedeemFirstTimeRewardCommandOutput } from "./commands/RedeemFirstTimeRewardCommand";
|
|
23
|
+
import { RedeemPointRewardCommandInput, RedeemPointRewardCommandOutput } from "./commands/RedeemPointRewardCommand";
|
|
24
|
+
import { RedeemVisitRewardCommandInput, RedeemVisitRewardCommandOutput } from "./commands/RedeemVisitRewardCommand";
|
|
25
|
+
import { SearchShopsPublicCommandInput, SearchShopsPublicCommandOutput } from "./commands/SearchShopsPublicCommand";
|
|
26
|
+
import { SearchSuggestionCommandInput, SearchSuggestionCommandOutput } from "./commands/SearchSuggestionCommand";
|
|
27
|
+
import { UpdateUserCommandInput, UpdateUserCommandOutput } from "./commands/UpdateUserCommand";
|
|
28
|
+
import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
|
|
29
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
30
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
31
|
+
import { CustomEndpointsInputConfig, CustomEndpointsResolvedConfig } from "@smithy/config-resolver";
|
|
32
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
|
|
33
|
+
import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
|
|
34
|
+
import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
|
|
35
|
+
import { Provider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
36
|
+
export { __Client };
|
|
37
|
+
/**
|
|
38
|
+
* @public
|
|
39
|
+
*/
|
|
40
|
+
export type ServiceInputTypes = DeleteUserCommandInput | FavoritePlansCommandInput | FavoriteShopsCommandInput | GetShopCommandInput | GetShopPublicCommandInput | GetUserCommandInput | LikeOrgCommandInput | NearbyShopsCommandInput | NearbyShopsPublicCommandInput | NearestShopCommandInput | OnboardUserCommandInput | PinnedShopCommandInput | PinnedShopPublicCommandInput | PlanCommandInput | PlanPublicCommandInput | PlansCommandInput | PopularShopsCommandInput | PopularShopsPublicCommandInput | RadiusShopsCommandInput | RecordVisitCommandInput | RedeemFirstTimeRewardCommandInput | RedeemPointRewardCommandInput | RedeemVisitRewardCommandInput | SearchShopsPublicCommandInput | SearchSuggestionCommandInput | UpdateUserCommandInput;
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export type ServiceOutputTypes = DeleteUserCommandOutput | FavoritePlansCommandOutput | FavoriteShopsCommandOutput | GetShopCommandOutput | GetShopPublicCommandOutput | GetUserCommandOutput | LikeOrgCommandOutput | NearbyShopsCommandOutput | NearbyShopsPublicCommandOutput | NearestShopCommandOutput | OnboardUserCommandOutput | PinnedShopCommandOutput | PinnedShopPublicCommandOutput | PlanCommandOutput | PlanPublicCommandOutput | PlansCommandOutput | PopularShopsCommandOutput | PopularShopsPublicCommandOutput | RadiusShopsCommandOutput | RecordVisitCommandOutput | RedeemFirstTimeRewardCommandOutput | RedeemPointRewardCommandOutput | RedeemVisitRewardCommandOutput | SearchShopsPublicCommandOutput | SearchSuggestionCommandOutput | UpdateUserCommandOutput;
|
|
45
|
+
/**
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
|
|
49
|
+
/**
|
|
50
|
+
* The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
|
|
51
|
+
*/
|
|
52
|
+
requestHandler?: __HttpHandlerUserInput;
|
|
53
|
+
/**
|
|
54
|
+
* A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
|
|
55
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
56
|
+
* @internal
|
|
57
|
+
*/
|
|
58
|
+
sha256?: __ChecksumConstructor | __HashConstructor;
|
|
59
|
+
/**
|
|
60
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
|
+
urlParser?: __UrlParser;
|
|
64
|
+
/**
|
|
65
|
+
* A function that can calculate the length of a request body.
|
|
66
|
+
* @internal
|
|
67
|
+
*/
|
|
68
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
69
|
+
/**
|
|
70
|
+
* A function that converts a stream into an array of bytes.
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
streamCollector?: __StreamCollector;
|
|
74
|
+
/**
|
|
75
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
base64Decoder?: __Decoder;
|
|
79
|
+
/**
|
|
80
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
81
|
+
* @internal
|
|
82
|
+
*/
|
|
83
|
+
base64Encoder?: __Encoder;
|
|
84
|
+
/**
|
|
85
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
86
|
+
* @internal
|
|
87
|
+
*/
|
|
88
|
+
utf8Decoder?: __Decoder;
|
|
89
|
+
/**
|
|
90
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
utf8Encoder?: __Encoder;
|
|
94
|
+
/**
|
|
95
|
+
* The runtime environment.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
runtime?: string;
|
|
99
|
+
/**
|
|
100
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
101
|
+
* trait of an operation.
|
|
102
|
+
*/
|
|
103
|
+
disableHostPrefix?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
109
|
+
/**
|
|
110
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
111
|
+
*/
|
|
112
|
+
maxAttempts?: number | __Provider<number>;
|
|
113
|
+
/**
|
|
114
|
+
* Specifies which retry algorithm to use.
|
|
115
|
+
* @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
|
|
116
|
+
*
|
|
117
|
+
*/
|
|
118
|
+
retryMode?: string | __Provider<string>;
|
|
119
|
+
/**
|
|
120
|
+
* Optional logger for logging debug/info/warn/error.
|
|
121
|
+
*/
|
|
122
|
+
logger?: __Logger;
|
|
123
|
+
/**
|
|
124
|
+
* Optional extensions
|
|
125
|
+
*/
|
|
126
|
+
extensions?: RuntimeExtension[];
|
|
127
|
+
/**
|
|
128
|
+
* The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
129
|
+
*/
|
|
130
|
+
defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
export type AppAPIClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & CustomEndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & HttpAuthSchemeInputConfig;
|
|
136
|
+
/**
|
|
137
|
+
* @public
|
|
138
|
+
*
|
|
139
|
+
* The configuration interface of AppAPIClient class constructor that set the region, credentials and other options.
|
|
140
|
+
*/
|
|
141
|
+
export interface AppAPIClientConfig extends AppAPIClientConfigType {
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
export type AppAPIClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & CustomEndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & HttpAuthSchemeResolvedConfig;
|
|
147
|
+
/**
|
|
148
|
+
* @public
|
|
149
|
+
*
|
|
150
|
+
* The resolved configuration interface of AppAPIClient class. This is resolved and normalized from the {@link AppAPIClientConfig | constructor configuration interface}.
|
|
151
|
+
*/
|
|
152
|
+
export interface AppAPIClientResolvedConfig extends AppAPIClientResolvedConfigType {
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Spark Rewards APP API Service
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
export declare class AppAPIClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, AppAPIClientResolvedConfig> {
|
|
159
|
+
/**
|
|
160
|
+
* The resolved configuration of AppAPIClient class. This is resolved and normalized from the {@link AppAPIClientConfig | constructor configuration interface}.
|
|
161
|
+
*/
|
|
162
|
+
readonly config: AppAPIClientResolvedConfig;
|
|
163
|
+
constructor(...[configuration]: __CheckOptionalClientConfig<AppAPIClientConfig>);
|
|
164
|
+
/**
|
|
165
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
166
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
167
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
168
|
+
*/
|
|
169
|
+
destroy(): void;
|
|
170
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AppAPIHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
|
|
2
|
+
import { HttpAuthScheme } from "@smithy/types";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface HttpAuthExtensionConfiguration {
|
|
7
|
+
setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
|
|
8
|
+
httpAuthSchemes(): HttpAuthScheme[];
|
|
9
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider: AppAPIHttpAuthSchemeProvider): void;
|
|
10
|
+
httpAuthSchemeProvider(): AppAPIHttpAuthSchemeProvider;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
*/
|
|
15
|
+
export type HttpAuthRuntimeConfig = Partial<{
|
|
16
|
+
httpAuthSchemes: HttpAuthScheme[];
|
|
17
|
+
httpAuthSchemeProvider: AppAPIHttpAuthSchemeProvider;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
*/
|
|
22
|
+
export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
|
|
23
|
+
/**
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AppAPIClientResolvedConfig } from "../AppAPIClient";
|
|
2
|
+
import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider } from "@smithy/types";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export interface AppAPIHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export interface AppAPIHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<AppAPIClientResolvedConfig, HandlerExecutionContext, AppAPIHttpAuthSchemeParameters, object> {
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare const defaultAppAPIHttpAuthSchemeParametersProvider: (config: AppAPIClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<AppAPIHttpAuthSchemeParameters>;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
20
|
+
export interface AppAPIHttpAuthSchemeProvider extends HttpAuthSchemeProvider<AppAPIHttpAuthSchemeParameters> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
*/
|
|
25
|
+
export declare const defaultAppAPIHttpAuthSchemeProvider: AppAPIHttpAuthSchemeProvider;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export interface HttpAuthSchemeInputConfig {
|
|
30
|
+
/**
|
|
31
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
httpAuthSchemes?: HttpAuthScheme[];
|
|
35
|
+
/**
|
|
36
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
httpAuthSchemeProvider?: AppAPIHttpAuthSchemeProvider;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
export interface HttpAuthSchemeResolvedConfig {
|
|
45
|
+
/**
|
|
46
|
+
* Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
readonly httpAuthSchemes: HttpAuthScheme[];
|
|
50
|
+
/**
|
|
51
|
+
* Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
|
|
52
|
+
* @internal
|
|
53
|
+
*/
|
|
54
|
+
readonly httpAuthSchemeProvider: AppAPIHttpAuthSchemeProvider;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @internal
|
|
58
|
+
*/
|
|
59
|
+
export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig) => T & HttpAuthSchemeResolvedConfig;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppAPIClient";
|
|
2
|
+
import { DeleteUserInput, DeleteUserOutput } from "../models/models_0";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link DeleteUserCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface DeleteUserCommandInput extends DeleteUserInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link DeleteUserCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface DeleteUserCommandOutput extends DeleteUserOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const DeleteUserCommand_base: {
|
|
25
|
+
new (input: DeleteUserCommandInput): import("@smithy/smithy-client").CommandImpl<DeleteUserCommandInput, DeleteUserCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (...[input]: [] | [DeleteUserCommandInput]): import("@smithy/smithy-client").CommandImpl<DeleteUserCommandInput, DeleteUserCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Permanently deletes the authenticated user's account and all associated data from the system. This action cannot be undone.
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { AppAPIClient, DeleteUserCommand } from "@sparkrewards/sra-client"; // ES Modules import
|
|
35
|
+
* // const { AppAPIClient, DeleteUserCommand } = require("@sparkrewards/sra-client"); // CommonJS import
|
|
36
|
+
* const client = new AppAPIClient(config);
|
|
37
|
+
* const input = {};
|
|
38
|
+
* const command = new DeleteUserCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // DeleteUserOutput
|
|
41
|
+
* // message: "STRING_VALUE",
|
|
42
|
+
* // };
|
|
43
|
+
*
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @param DeleteUserCommandInput - {@link DeleteUserCommandInput}
|
|
47
|
+
* @returns {@link DeleteUserCommandOutput}
|
|
48
|
+
* @see {@link DeleteUserCommandInput} for command's `input` shape.
|
|
49
|
+
* @see {@link DeleteUserCommandOutput} for command's `response` shape.
|
|
50
|
+
* @see {@link AppAPIClientResolvedConfig | config} for AppAPIClient's `config` shape.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link ValidationException} (client fault)
|
|
53
|
+
* A standard error for input validation failures.
|
|
54
|
+
* This should be thrown by services when a member of the input structure
|
|
55
|
+
* falls outside of the modeled or documented constraints.
|
|
56
|
+
*
|
|
57
|
+
* @throws {@link RuntimeError} (server fault)
|
|
58
|
+
*
|
|
59
|
+
* @throws {@link AppAPIServiceException}
|
|
60
|
+
* <p>Base exception class for all service exceptions from AppAPI service.</p>
|
|
61
|
+
*
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
export declare class DeleteUserCommand extends DeleteUserCommand_base {
|
|
65
|
+
}
|