@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.
Files changed (128) hide show
  1. package/LICENSE +201 -0
  2. package/dist-cjs/AppAPI.js +63 -0
  3. package/dist-cjs/AppAPIClient.js +43 -0
  4. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +35 -0
  5. package/dist-cjs/auth/httpAuthSchemeProvider.js +35 -0
  6. package/dist-cjs/commands/DeleteUserCommand.js +21 -0
  7. package/dist-cjs/commands/FavoritePlansCommand.js +21 -0
  8. package/dist-cjs/commands/FavoriteShopsCommand.js +21 -0
  9. package/dist-cjs/commands/GetShopCommand.js +21 -0
  10. package/dist-cjs/commands/GetShopPublicCommand.js +21 -0
  11. package/dist-cjs/commands/GetUserCommand.js +21 -0
  12. package/dist-cjs/commands/LikeOrgCommand.js +21 -0
  13. package/dist-cjs/commands/NearbyShopsCommand.js +21 -0
  14. package/dist-cjs/commands/NearbyShopsPublicCommand.js +21 -0
  15. package/dist-cjs/commands/NearestShopCommand.js +21 -0
  16. package/dist-cjs/commands/OnboardUserCommand.js +21 -0
  17. package/dist-cjs/commands/PinnedShopCommand.js +21 -0
  18. package/dist-cjs/commands/PinnedShopPublicCommand.js +21 -0
  19. package/dist-cjs/commands/PlanCommand.js +21 -0
  20. package/dist-cjs/commands/PlanPublicCommand.js +21 -0
  21. package/dist-cjs/commands/PlansCommand.js +21 -0
  22. package/dist-cjs/commands/PopularShopsCommand.js +21 -0
  23. package/dist-cjs/commands/PopularShopsPublicCommand.js +21 -0
  24. package/dist-cjs/commands/RadiusShopsCommand.js +21 -0
  25. package/dist-cjs/commands/RecordVisitCommand.js +21 -0
  26. package/dist-cjs/commands/RedeemFirstTimeRewardCommand.js +21 -0
  27. package/dist-cjs/commands/RedeemPointRewardCommand.js +21 -0
  28. package/dist-cjs/commands/RedeemVisitRewardCommand.js +21 -0
  29. package/dist-cjs/commands/SearchShopsPublicCommand.js +21 -0
  30. package/dist-cjs/commands/SearchSuggestionCommand.js +21 -0
  31. package/dist-cjs/commands/UpdateUserCommand.js +21 -0
  32. package/dist-cjs/commands/index.js +29 -0
  33. package/dist-cjs/extensionConfiguration.js +2 -0
  34. package/dist-cjs/index.js +10 -0
  35. package/dist-cjs/models/AppAPIServiceException.js +12 -0
  36. package/dist-cjs/models/index.js +4 -0
  37. package/dist-cjs/models/models_0.js +57 -0
  38. package/dist-cjs/protocols/Aws_restJson1.js +1073 -0
  39. package/dist-cjs/runtimeConfig.browser.js +32 -0
  40. package/dist-cjs/runtimeConfig.js +36 -0
  41. package/dist-cjs/runtimeConfig.native.js +15 -0
  42. package/dist-cjs/runtimeConfig.shared.js +23 -0
  43. package/dist-cjs/runtimeExtensions.js +22 -0
  44. package/dist-es/AppAPI.js +59 -0
  45. package/dist-es/AppAPIClient.js +39 -0
  46. package/dist-es/auth/httpAuthExtensionConfiguration.js +30 -0
  47. package/dist-es/auth/httpAuthSchemeProvider.js +29 -0
  48. package/dist-es/commands/DeleteUserCommand.js +17 -0
  49. package/dist-es/commands/FavoritePlansCommand.js +17 -0
  50. package/dist-es/commands/FavoriteShopsCommand.js +17 -0
  51. package/dist-es/commands/GetShopCommand.js +17 -0
  52. package/dist-es/commands/GetShopPublicCommand.js +17 -0
  53. package/dist-es/commands/GetUserCommand.js +17 -0
  54. package/dist-es/commands/LikeOrgCommand.js +17 -0
  55. package/dist-es/commands/NearbyShopsCommand.js +17 -0
  56. package/dist-es/commands/NearbyShopsPublicCommand.js +17 -0
  57. package/dist-es/commands/NearestShopCommand.js +17 -0
  58. package/dist-es/commands/OnboardUserCommand.js +17 -0
  59. package/dist-es/commands/PinnedShopCommand.js +17 -0
  60. package/dist-es/commands/PinnedShopPublicCommand.js +17 -0
  61. package/dist-es/commands/PlanCommand.js +17 -0
  62. package/dist-es/commands/PlanPublicCommand.js +17 -0
  63. package/dist-es/commands/PlansCommand.js +17 -0
  64. package/dist-es/commands/PopularShopsCommand.js +17 -0
  65. package/dist-es/commands/PopularShopsPublicCommand.js +17 -0
  66. package/dist-es/commands/RadiusShopsCommand.js +17 -0
  67. package/dist-es/commands/RecordVisitCommand.js +17 -0
  68. package/dist-es/commands/RedeemFirstTimeRewardCommand.js +17 -0
  69. package/dist-es/commands/RedeemPointRewardCommand.js +17 -0
  70. package/dist-es/commands/RedeemVisitRewardCommand.js +17 -0
  71. package/dist-es/commands/SearchShopsPublicCommand.js +17 -0
  72. package/dist-es/commands/SearchSuggestionCommand.js +17 -0
  73. package/dist-es/commands/UpdateUserCommand.js +17 -0
  74. package/dist-es/commands/index.js +26 -0
  75. package/dist-es/extensionConfiguration.js +1 -0
  76. package/dist-es/index.js +5 -0
  77. package/dist-es/models/AppAPIServiceException.js +8 -0
  78. package/dist-es/models/index.js +1 -0
  79. package/dist-es/models/models_0.js +50 -0
  80. package/dist-es/protocols/Aws_restJson1.js +1017 -0
  81. package/dist-es/runtimeConfig.browser.js +27 -0
  82. package/dist-es/runtimeConfig.js +31 -0
  83. package/dist-es/runtimeConfig.native.js +11 -0
  84. package/dist-es/runtimeConfig.shared.js +19 -0
  85. package/dist-es/runtimeExtensions.js +18 -0
  86. package/dist-types/AppAPI.d.ts +202 -0
  87. package/dist-types/AppAPIClient.d.ts +170 -0
  88. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +26 -0
  89. package/dist-types/auth/httpAuthSchemeProvider.d.ts +59 -0
  90. package/dist-types/commands/DeleteUserCommand.d.ts +65 -0
  91. package/dist-types/commands/FavoritePlansCommand.d.ts +119 -0
  92. package/dist-types/commands/FavoriteShopsCommand.d.ts +104 -0
  93. package/dist-types/commands/GetShopCommand.d.ts +100 -0
  94. package/dist-types/commands/GetShopPublicCommand.d.ts +100 -0
  95. package/dist-types/commands/GetUserCommand.d.ts +84 -0
  96. package/dist-types/commands/LikeOrgCommand.d.ts +68 -0
  97. package/dist-types/commands/NearbyShopsCommand.d.ts +104 -0
  98. package/dist-types/commands/NearbyShopsPublicCommand.d.ts +104 -0
  99. package/dist-types/commands/NearestShopCommand.d.ts +91 -0
  100. package/dist-types/commands/OnboardUserCommand.d.ts +84 -0
  101. package/dist-types/commands/PinnedShopCommand.d.ts +91 -0
  102. package/dist-types/commands/PinnedShopPublicCommand.d.ts +91 -0
  103. package/dist-types/commands/PlanCommand.d.ts +107 -0
  104. package/dist-types/commands/PlanPublicCommand.d.ts +107 -0
  105. package/dist-types/commands/PlansCommand.d.ts +119 -0
  106. package/dist-types/commands/PopularShopsCommand.d.ts +104 -0
  107. package/dist-types/commands/PopularShopsPublicCommand.d.ts +104 -0
  108. package/dist-types/commands/RadiusShopsCommand.d.ts +78 -0
  109. package/dist-types/commands/RecordVisitCommand.d.ts +75 -0
  110. package/dist-types/commands/RedeemFirstTimeRewardCommand.d.ts +68 -0
  111. package/dist-types/commands/RedeemPointRewardCommand.d.ts +71 -0
  112. package/dist-types/commands/RedeemVisitRewardCommand.d.ts +68 -0
  113. package/dist-types/commands/SearchShopsPublicCommand.d.ts +106 -0
  114. package/dist-types/commands/SearchSuggestionCommand.d.ts +78 -0
  115. package/dist-types/commands/UpdateUserCommand.d.ts +89 -0
  116. package/dist-types/commands/index.d.ts +26 -0
  117. package/dist-types/extensionConfiguration.d.ts +8 -0
  118. package/dist-types/index.d.ts +12 -0
  119. package/dist-types/models/AppAPIServiceException.d.ts +14 -0
  120. package/dist-types/models/index.d.ts +1 -0
  121. package/dist-types/models/models_0.d.ts +550 -0
  122. package/dist-types/protocols/Aws_restJson1.d.ts +236 -0
  123. package/dist-types/runtimeConfig.browser.d.ts +33 -0
  124. package/dist-types/runtimeConfig.d.ts +33 -0
  125. package/dist-types/runtimeConfig.native.d.ts +32 -0
  126. package/dist-types/runtimeConfig.shared.d.ts +16 -0
  127. package/dist-types/runtimeExtensions.d.ts +17 -0
  128. package/package.json +81 -0
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const sha256_browser_1 = require("@aws-crypto/sha256-browser");
7
+ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
+ const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
9
+ const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
10
+ const util_retry_1 = require("@smithy/util-retry");
11
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
12
+ const smithy_client_1 = require("@smithy/smithy-client");
13
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
14
+ const getRuntimeConfig = (config) => {
15
+ const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
16
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
17
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
18
+ return {
19
+ ...clientSharedValues,
20
+ ...config,
21
+ runtime: "browser",
22
+ defaultsMode,
23
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength,
24
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_browser_1.defaultUserAgent)({ clientVersion: package_json_1.default.version }),
25
+ maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS,
26
+ requestHandler: fetch_http_handler_1.FetchHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
+ retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
28
+ sha256: config?.sha256 ?? sha256_browser_1.Sha256,
29
+ streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
30
+ };
31
+ };
32
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const tslib_1 = require("tslib");
5
+ const package_json_1 = tslib_1.__importDefault(require("../package.json"));
6
+ const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
7
+ const hash_node_1 = require("@smithy/hash-node");
8
+ const middleware_retry_1 = require("@smithy/middleware-retry");
9
+ const node_config_provider_1 = require("@smithy/node-config-provider");
10
+ const node_http_handler_1 = require("@smithy/node-http-handler");
11
+ const util_body_length_node_1 = require("@smithy/util-body-length-node");
12
+ const util_retry_1 = require("@smithy/util-retry");
13
+ const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
15
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
16
+ const smithy_client_2 = require("@smithy/smithy-client");
17
+ const getRuntimeConfig = (config) => {
18
+ (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
19
+ const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
20
+ const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
21
+ const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
22
+ return {
23
+ ...clientSharedValues,
24
+ ...config,
25
+ runtime: "node",
26
+ defaultsMode,
27
+ bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength,
28
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? (0, util_user_agent_node_1.defaultUserAgent)({ clientVersion: package_json_1.default.version }),
29
+ maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
30
+ requestHandler: node_http_handler_1.NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
31
+ retryMode: config?.retryMode ?? (0, node_config_provider_1.loadConfig)({ ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, }),
32
+ sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
33
+ streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
34
+ };
35
+ };
36
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const sha256_js_1 = require("@aws-crypto/sha256-js");
5
+ const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
6
+ const getRuntimeConfig = (config) => {
7
+ const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
8
+ return {
9
+ ...browserDefaults,
10
+ ...config,
11
+ runtime: "react-native",
12
+ sha256: config?.sha256 ?? sha256_js_1.Sha256,
13
+ };
14
+ };
15
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getRuntimeConfig = void 0;
4
+ const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
5
+ const smithy_client_1 = require("@smithy/smithy-client");
6
+ const url_parser_1 = require("@smithy/url-parser");
7
+ const util_base64_1 = require("@smithy/util-base64");
8
+ const util_utf8_1 = require("@smithy/util-utf8");
9
+ const getRuntimeConfig = (config) => {
10
+ return {
11
+ apiVersion: "2025-10-29",
12
+ base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64,
13
+ base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64,
14
+ disableHostPrefix: config?.disableHostPrefix ?? false,
15
+ extensions: config?.extensions ?? [],
16
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? httpAuthSchemeProvider_1.defaultAppAPIHttpAuthSchemeProvider,
17
+ logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
18
+ urlParser: config?.urlParser ?? url_parser_1.parseUrl,
19
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
20
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
21
+ };
22
+ };
23
+ exports.getRuntimeConfig = getRuntimeConfig;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.resolveRuntimeExtensions = void 0;
4
+ const httpAuthExtensionConfiguration_1 = require("./auth/httpAuthExtensionConfiguration");
5
+ const protocol_http_1 = require("@smithy/protocol-http");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ const asPartial = (t) => t;
8
+ const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
9
+ const extensionConfiguration = {
10
+ ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
11
+ ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
12
+ ...asPartial((0, httpAuthExtensionConfiguration_1.getHttpAuthExtensionConfiguration)(runtimeConfig)),
13
+ };
14
+ extensions.forEach(extension => extension.configure(extensionConfiguration));
15
+ return {
16
+ ...runtimeConfig,
17
+ ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
18
+ ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
19
+ ...(0, httpAuthExtensionConfiguration_1.resolveHttpAuthRuntimeConfig)(extensionConfiguration),
20
+ };
21
+ };
22
+ exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
@@ -0,0 +1,59 @@
1
+ import { AppAPIClient, } from "./AppAPIClient";
2
+ import { DeleteUserCommand, } from "./commands/DeleteUserCommand";
3
+ import { FavoritePlansCommand, } from "./commands/FavoritePlansCommand";
4
+ import { FavoriteShopsCommand, } from "./commands/FavoriteShopsCommand";
5
+ import { GetShopCommand, } from "./commands/GetShopCommand";
6
+ import { GetShopPublicCommand, } from "./commands/GetShopPublicCommand";
7
+ import { GetUserCommand, } from "./commands/GetUserCommand";
8
+ import { LikeOrgCommand, } from "./commands/LikeOrgCommand";
9
+ import { NearbyShopsCommand, } from "./commands/NearbyShopsCommand";
10
+ import { NearbyShopsPublicCommand, } from "./commands/NearbyShopsPublicCommand";
11
+ import { NearestShopCommand, } from "./commands/NearestShopCommand";
12
+ import { OnboardUserCommand, } from "./commands/OnboardUserCommand";
13
+ import { PinnedShopCommand, } from "./commands/PinnedShopCommand";
14
+ import { PinnedShopPublicCommand, } from "./commands/PinnedShopPublicCommand";
15
+ import { PlanCommand, } from "./commands/PlanCommand";
16
+ import { PlanPublicCommand, } from "./commands/PlanPublicCommand";
17
+ import { PlansCommand, } from "./commands/PlansCommand";
18
+ import { PopularShopsCommand, } from "./commands/PopularShopsCommand";
19
+ import { PopularShopsPublicCommand, } from "./commands/PopularShopsPublicCommand";
20
+ import { RadiusShopsCommand, } from "./commands/RadiusShopsCommand";
21
+ import { RecordVisitCommand, } from "./commands/RecordVisitCommand";
22
+ import { RedeemFirstTimeRewardCommand, } from "./commands/RedeemFirstTimeRewardCommand";
23
+ import { RedeemPointRewardCommand, } from "./commands/RedeemPointRewardCommand";
24
+ import { RedeemVisitRewardCommand, } from "./commands/RedeemVisitRewardCommand";
25
+ import { SearchShopsPublicCommand, } from "./commands/SearchShopsPublicCommand";
26
+ import { SearchSuggestionCommand, } from "./commands/SearchSuggestionCommand";
27
+ import { UpdateUserCommand, } from "./commands/UpdateUserCommand";
28
+ import { createAggregatedClient } from "@smithy/smithy-client";
29
+ const commands = {
30
+ DeleteUserCommand,
31
+ FavoritePlansCommand,
32
+ FavoriteShopsCommand,
33
+ GetShopCommand,
34
+ GetShopPublicCommand,
35
+ GetUserCommand,
36
+ LikeOrgCommand,
37
+ NearbyShopsCommand,
38
+ NearbyShopsPublicCommand,
39
+ NearestShopCommand,
40
+ OnboardUserCommand,
41
+ PinnedShopCommand,
42
+ PinnedShopPublicCommand,
43
+ PlanCommand,
44
+ PlanPublicCommand,
45
+ PlansCommand,
46
+ PopularShopsCommand,
47
+ PopularShopsPublicCommand,
48
+ RadiusShopsCommand,
49
+ RecordVisitCommand,
50
+ RedeemFirstTimeRewardCommand,
51
+ RedeemPointRewardCommand,
52
+ RedeemVisitRewardCommand,
53
+ SearchShopsPublicCommand,
54
+ SearchSuggestionCommand,
55
+ UpdateUserCommand,
56
+ };
57
+ export class AppAPI extends AppAPIClient {
58
+ }
59
+ createAggregatedClient(commands, AppAPI);
@@ -0,0 +1,39 @@
1
+ import { defaultAppAPIHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
2
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
3
+ import { resolveRuntimeExtensions, } from "./runtimeExtensions";
4
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
7
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
8
+ import { resolveCustomEndpointsConfig, } from "@smithy/config-resolver";
9
+ import { DefaultIdentityProviderConfig, getHttpAuthSchemePlugin, getHttpSigningPlugin, } from "@smithy/core";
10
+ import { getContentLengthPlugin } from "@smithy/middleware-content-length";
11
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
12
+ import { Client as __Client, } from "@smithy/smithy-client";
13
+ export { __Client };
14
+ export class AppAPIClient extends __Client {
15
+ constructor(...[configuration]) {
16
+ let _config_0 = __getRuntimeConfig(configuration || {});
17
+ let _config_1 = resolveUserAgentConfig(_config_0);
18
+ let _config_2 = resolveCustomEndpointsConfig(_config_1);
19
+ let _config_3 = resolveRetryConfig(_config_2);
20
+ let _config_4 = resolveHostHeaderConfig(_config_3);
21
+ let _config_5 = resolveHttpAuthSchemeConfig(_config_4);
22
+ let _config_6 = resolveRuntimeExtensions(_config_5, configuration?.extensions || []);
23
+ super(_config_6);
24
+ this.config = _config_6;
25
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
26
+ this.middlewareStack.use(getRetryPlugin(this.config));
27
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
28
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
29
+ this.middlewareStack.use(getLoggerPlugin(this.config));
30
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
31
+ this.middlewareStack.use(getHttpAuthSchemePlugin(this.config, {
32
+ httpAuthSchemeParametersProvider: defaultAppAPIHttpAuthSchemeParametersProvider, identityProviderConfigProvider: async (config) => new DefaultIdentityProviderConfig({}),
33
+ }));
34
+ this.middlewareStack.use(getHttpSigningPlugin(this.config));
35
+ }
36
+ destroy() {
37
+ super.destroy();
38
+ }
39
+ }
@@ -0,0 +1,30 @@
1
+ export const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
2
+ let _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
3
+ let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
4
+ return {
5
+ setHttpAuthScheme(httpAuthScheme) {
6
+ const index = _httpAuthSchemes.findIndex(scheme => scheme.schemeId === httpAuthScheme.schemeId);
7
+ if (index === -1) {
8
+ _httpAuthSchemes.push(httpAuthScheme);
9
+ }
10
+ else {
11
+ _httpAuthSchemes.splice(index, 1, httpAuthScheme);
12
+ }
13
+ },
14
+ httpAuthSchemes() {
15
+ return _httpAuthSchemes;
16
+ },
17
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
18
+ _httpAuthSchemeProvider = httpAuthSchemeProvider;
19
+ },
20
+ httpAuthSchemeProvider() {
21
+ return _httpAuthSchemeProvider;
22
+ },
23
+ };
24
+ };
25
+ export const resolveHttpAuthRuntimeConfig = (config) => {
26
+ return {
27
+ httpAuthSchemes: config.httpAuthSchemes(),
28
+ httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
29
+ };
30
+ };
@@ -0,0 +1,29 @@
1
+ import { getSmithyContext } from "@smithy/util-middleware";
2
+ export const defaultAppAPIHttpAuthSchemeParametersProvider = async (config, context, input) => {
3
+ return {
4
+ operation: getSmithyContext(context).operation,
5
+ };
6
+ };
7
+ function createAwsAuthCognitoUserPoolsHttpAuthOption(authParameters) {
8
+ return {
9
+ schemeId: "aws.auth#cognitoUserPools",
10
+ };
11
+ }
12
+ ;
13
+ export const defaultAppAPIHttpAuthSchemeProvider = (authParameters) => {
14
+ const options = [];
15
+ switch (authParameters.operation) {
16
+ default:
17
+ {
18
+ options.push(createAwsAuthCognitoUserPoolsHttpAuthOption(authParameters));
19
+ }
20
+ ;
21
+ }
22
+ ;
23
+ return options;
24
+ };
25
+ export const resolveHttpAuthSchemeConfig = (config) => {
26
+ return {
27
+ ...config,
28
+ };
29
+ };
@@ -0,0 +1,17 @@
1
+ import { de_DeleteUserCommand, se_DeleteUserCommand, } 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 DeleteUserCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "DeleteUser", {})
12
+ .n("AppAPIClient", "DeleteUserCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_DeleteUserCommand)
15
+ .de(de_DeleteUserCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_FavoritePlansCommand, se_FavoritePlansCommand, } 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 FavoritePlansCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "FavoritePlans", {})
12
+ .n("AppAPIClient", "FavoritePlansCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_FavoritePlansCommand)
15
+ .de(de_FavoritePlansCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_FavoriteShopsCommand, se_FavoriteShopsCommand, } 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 FavoriteShopsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "FavoriteShops", {})
12
+ .n("AppAPIClient", "FavoriteShopsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_FavoriteShopsCommand)
15
+ .de(de_FavoriteShopsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetShopCommand, se_GetShopCommand, } 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 GetShopCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "GetShop", {})
12
+ .n("AppAPIClient", "GetShopCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetShopCommand)
15
+ .de(de_GetShopCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetShopPublicCommand, se_GetShopPublicCommand, } 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 GetShopPublicCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "GetShopPublic", {})
12
+ .n("AppAPIClient", "GetShopPublicCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetShopPublicCommand)
15
+ .de(de_GetShopPublicCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_GetUserCommand, se_GetUserCommand, } 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 GetUserCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "GetUser", {})
12
+ .n("AppAPIClient", "GetUserCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_GetUserCommand)
15
+ .de(de_GetUserCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_LikeOrgCommand, se_LikeOrgCommand, } 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 LikeOrgCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "LikeOrg", {})
12
+ .n("AppAPIClient", "LikeOrgCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_LikeOrgCommand)
15
+ .de(de_LikeOrgCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_NearbyShopsCommand, se_NearbyShopsCommand, } 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 NearbyShopsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "NearbyShops", {})
12
+ .n("AppAPIClient", "NearbyShopsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_NearbyShopsCommand)
15
+ .de(de_NearbyShopsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_NearbyShopsPublicCommand, se_NearbyShopsPublicCommand, } 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 NearbyShopsPublicCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "NearbyShopsPublic", {})
12
+ .n("AppAPIClient", "NearbyShopsPublicCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_NearbyShopsPublicCommand)
15
+ .de(de_NearbyShopsPublicCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_NearestShopCommand, se_NearestShopCommand, } 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 NearestShopCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "NearestShop", {})
12
+ .n("AppAPIClient", "NearestShopCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_NearestShopCommand)
15
+ .de(de_NearestShopCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_OnboardUserCommand, se_OnboardUserCommand, } 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 OnboardUserCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "OnboardUser", {})
12
+ .n("AppAPIClient", "OnboardUserCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_OnboardUserCommand)
15
+ .de(de_OnboardUserCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PinnedShopCommand, se_PinnedShopCommand, } 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 PinnedShopCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "PinnedShop", {})
12
+ .n("AppAPIClient", "PinnedShopCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PinnedShopCommand)
15
+ .de(de_PinnedShopCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PinnedShopPublicCommand, se_PinnedShopPublicCommand, } 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 PinnedShopPublicCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "PinnedShopPublic", {})
12
+ .n("AppAPIClient", "PinnedShopPublicCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PinnedShopPublicCommand)
15
+ .de(de_PinnedShopPublicCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PlanCommand, se_PlanCommand, } 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 PlanCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "Plan", {})
12
+ .n("AppAPIClient", "PlanCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PlanCommand)
15
+ .de(de_PlanCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PlanPublicCommand, se_PlanPublicCommand, } 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 PlanPublicCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "PlanPublic", {})
12
+ .n("AppAPIClient", "PlanPublicCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PlanPublicCommand)
15
+ .de(de_PlanPublicCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PlansCommand, se_PlansCommand, } 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 PlansCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "Plans", {})
12
+ .n("AppAPIClient", "PlansCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PlansCommand)
15
+ .de(de_PlansCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PopularShopsCommand, se_PopularShopsCommand, } 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 PopularShopsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "PopularShops", {})
12
+ .n("AppAPIClient", "PopularShopsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PopularShopsCommand)
15
+ .de(de_PopularShopsCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_PopularShopsPublicCommand, se_PopularShopsPublicCommand, } 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 PopularShopsPublicCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "PopularShopsPublic", {})
12
+ .n("AppAPIClient", "PopularShopsPublicCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_PopularShopsPublicCommand)
15
+ .de(de_PopularShopsPublicCommand)
16
+ .build() {
17
+ }
@@ -0,0 +1,17 @@
1
+ import { de_RadiusShopsCommand, se_RadiusShopsCommand, } 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 RadiusShopsCommand extends $Command.classBuilder()
6
+ .m(function (Command, cs, config, o) {
7
+ return [
8
+ getSerdePlugin(config, this.serialize, this.deserialize),
9
+ ];
10
+ })
11
+ .s("AppAPI", "RadiusShops", {})
12
+ .n("AppAPIClient", "RadiusShopsCommand")
13
+ .f(void 0, void 0)
14
+ .ser(se_RadiusShopsCommand)
15
+ .de(de_RadiusShopsCommand)
16
+ .build() {
17
+ }