@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,104 @@
1
+ import { AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppAPIClient";
2
+ import { ShopListInput, ShopListWithPaginationOutput } 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 NearbyShopsCommand}.
14
+ */
15
+ export interface NearbyShopsCommandInput extends ShopListInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link NearbyShopsCommand}.
21
+ */
22
+ export interface NearbyShopsCommandOutput extends ShopListWithPaginationOutput, __MetadataBearer {
23
+ }
24
+ declare const NearbyShopsCommand_base: {
25
+ new (input: NearbyShopsCommandInput): import("@smithy/smithy-client").CommandImpl<NearbyShopsCommandInput, NearbyShopsCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [NearbyShopsCommandInput]): import("@smithy/smithy-client").CommandImpl<NearbyShopsCommandInput, NearbyShopsCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves a paginated list of active shops ordered by distance from the provided location coordinates. Returns enriched shop data with organization information.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppAPIClient, NearbyShopsCommand } from "@sparkrewards/sra-client"; // ES Modules import
35
+ * // const { AppAPIClient, NearbyShopsCommand } = require("@sparkrewards/sra-client"); // CommonJS import
36
+ * const client = new AppAPIClient(config);
37
+ * const input = { // ShopListInput
38
+ * lat: Number("double"),
39
+ * lon: Number("double"),
40
+ * page: Number("int"),
41
+ * filters: "STRING_VALUE",
42
+ * };
43
+ * const command = new NearbyShopsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ShopListWithPaginationOutput
46
+ * // message: "STRING_VALUE",
47
+ * // value: [ // EnrichedShopList
48
+ * // { // EnrichedShop
49
+ * // shop_id: "STRING_VALUE", // required
50
+ * // org_id: "STRING_VALUE", // required
51
+ * // preview: "STRING_VALUE", // required
52
+ * // name: "STRING_VALUE", // required
53
+ * // distance: "STRING_VALUE", // required
54
+ * // favorite: true || false,
55
+ * // location: { // LocationDetails
56
+ * // address: "STRING_VALUE", // required
57
+ * // city: "STRING_VALUE", // required
58
+ * // state: "STRING_VALUE", // required
59
+ * // zipcode: "STRING_VALUE", // required
60
+ * // },
61
+ * // shop_hours: [ // ShopHoursList // required
62
+ * // { // ShopHoursItem
63
+ * // day: "STRING_VALUE", // required
64
+ * // open: "STRING_VALUE", // required
65
+ * // close: "STRING_VALUE", // required
66
+ * // },
67
+ * // ],
68
+ * // logo: "STRING_VALUE",
69
+ * // tags: [ // StringList // required
70
+ * // "STRING_VALUE",
71
+ * // ],
72
+ * // },
73
+ * // ],
74
+ * // count: Number("int"),
75
+ * // pagination: { // PaginationInfo
76
+ * // currentPage: Number("int"),
77
+ * // limit: Number("int"), // required
78
+ * // hasMore: true || false, // required
79
+ * // nextPage: Number("int"), // required
80
+ * // },
81
+ * // };
82
+ *
83
+ * ```
84
+ *
85
+ * @param NearbyShopsCommandInput - {@link NearbyShopsCommandInput}
86
+ * @returns {@link NearbyShopsCommandOutput}
87
+ * @see {@link NearbyShopsCommandInput} for command's `input` shape.
88
+ * @see {@link NearbyShopsCommandOutput} for command's `response` shape.
89
+ * @see {@link AppAPIClientResolvedConfig | config} for AppAPIClient's `config` shape.
90
+ *
91
+ * @throws {@link ValidationException} (client fault)
92
+ * A standard error for input validation failures.
93
+ * This should be thrown by services when a member of the input structure
94
+ * falls outside of the modeled or documented constraints.
95
+ *
96
+ * @throws {@link RuntimeError} (server fault)
97
+ *
98
+ * @throws {@link AppAPIServiceException}
99
+ * <p>Base exception class for all service exceptions from AppAPI service.</p>
100
+ *
101
+ * @public
102
+ */
103
+ export declare class NearbyShopsCommand extends NearbyShopsCommand_base {
104
+ }
@@ -0,0 +1,104 @@
1
+ import { AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppAPIClient";
2
+ import { ShopListInput, ShopListWithPaginationOutput } 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 NearbyShopsPublicCommand}.
14
+ */
15
+ export interface NearbyShopsPublicCommandInput extends ShopListInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link NearbyShopsPublicCommand}.
21
+ */
22
+ export interface NearbyShopsPublicCommandOutput extends ShopListWithPaginationOutput, __MetadataBearer {
23
+ }
24
+ declare const NearbyShopsPublicCommand_base: {
25
+ new (input: NearbyShopsPublicCommandInput): import("@smithy/smithy-client").CommandImpl<NearbyShopsPublicCommandInput, NearbyShopsPublicCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [NearbyShopsPublicCommandInput]): import("@smithy/smithy-client").CommandImpl<NearbyShopsPublicCommandInput, NearbyShopsPublicCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Public endpoint: Retrieves a paginated list of active shops ordered by distance from the provided location coordinates. Returns enriched shop data with organization information. No authentication required.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppAPIClient, NearbyShopsPublicCommand } from "@sparkrewards/sra-client"; // ES Modules import
35
+ * // const { AppAPIClient, NearbyShopsPublicCommand } = require("@sparkrewards/sra-client"); // CommonJS import
36
+ * const client = new AppAPIClient(config);
37
+ * const input = { // ShopListInput
38
+ * lat: Number("double"),
39
+ * lon: Number("double"),
40
+ * page: Number("int"),
41
+ * filters: "STRING_VALUE",
42
+ * };
43
+ * const command = new NearbyShopsPublicCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ShopListWithPaginationOutput
46
+ * // message: "STRING_VALUE",
47
+ * // value: [ // EnrichedShopList
48
+ * // { // EnrichedShop
49
+ * // shop_id: "STRING_VALUE", // required
50
+ * // org_id: "STRING_VALUE", // required
51
+ * // preview: "STRING_VALUE", // required
52
+ * // name: "STRING_VALUE", // required
53
+ * // distance: "STRING_VALUE", // required
54
+ * // favorite: true || false,
55
+ * // location: { // LocationDetails
56
+ * // address: "STRING_VALUE", // required
57
+ * // city: "STRING_VALUE", // required
58
+ * // state: "STRING_VALUE", // required
59
+ * // zipcode: "STRING_VALUE", // required
60
+ * // },
61
+ * // shop_hours: [ // ShopHoursList // required
62
+ * // { // ShopHoursItem
63
+ * // day: "STRING_VALUE", // required
64
+ * // open: "STRING_VALUE", // required
65
+ * // close: "STRING_VALUE", // required
66
+ * // },
67
+ * // ],
68
+ * // logo: "STRING_VALUE",
69
+ * // tags: [ // StringList // required
70
+ * // "STRING_VALUE",
71
+ * // ],
72
+ * // },
73
+ * // ],
74
+ * // count: Number("int"),
75
+ * // pagination: { // PaginationInfo
76
+ * // currentPage: Number("int"),
77
+ * // limit: Number("int"), // required
78
+ * // hasMore: true || false, // required
79
+ * // nextPage: Number("int"), // required
80
+ * // },
81
+ * // };
82
+ *
83
+ * ```
84
+ *
85
+ * @param NearbyShopsPublicCommandInput - {@link NearbyShopsPublicCommandInput}
86
+ * @returns {@link NearbyShopsPublicCommandOutput}
87
+ * @see {@link NearbyShopsPublicCommandInput} for command's `input` shape.
88
+ * @see {@link NearbyShopsPublicCommandOutput} for command's `response` shape.
89
+ * @see {@link AppAPIClientResolvedConfig | config} for AppAPIClient's `config` shape.
90
+ *
91
+ * @throws {@link ValidationException} (client fault)
92
+ * A standard error for input validation failures.
93
+ * This should be thrown by services when a member of the input structure
94
+ * falls outside of the modeled or documented constraints.
95
+ *
96
+ * @throws {@link RuntimeError} (server fault)
97
+ *
98
+ * @throws {@link AppAPIServiceException}
99
+ * <p>Base exception class for all service exceptions from AppAPI service.</p>
100
+ *
101
+ * @public
102
+ */
103
+ export declare class NearbyShopsPublicCommand extends NearbyShopsPublicCommand_base {
104
+ }
@@ -0,0 +1,91 @@
1
+ import { AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppAPIClient";
2
+ import { EnrichedShop, NearestShopInput } 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 NearestShopCommand}.
14
+ */
15
+ export interface NearestShopCommandInput extends NearestShopInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link NearestShopCommand}.
21
+ */
22
+ export interface NearestShopCommandOutput extends EnrichedShop, __MetadataBearer {
23
+ }
24
+ declare const NearestShopCommand_base: {
25
+ new (input: NearestShopCommandInput): import("@smithy/smithy-client").CommandImpl<NearestShopCommandInput, NearestShopCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: NearestShopCommandInput): import("@smithy/smithy-client").CommandImpl<NearestShopCommandInput, NearestShopCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves the single nearest active shop to the provided location coordinates for a specific organization.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppAPIClient, NearestShopCommand } from "@sparkrewards/sra-client"; // ES Modules import
35
+ * // const { AppAPIClient, NearestShopCommand } = require("@sparkrewards/sra-client"); // CommonJS import
36
+ * const client = new AppAPIClient(config);
37
+ * const input = { // NearestShopInput
38
+ * shop_name: "STRING_VALUE", // required
39
+ * lat: Number("double"), // required
40
+ * lon: Number("double"), // required
41
+ * };
42
+ * const command = new NearestShopCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // EnrichedShop
45
+ * // shop_id: "STRING_VALUE", // required
46
+ * // org_id: "STRING_VALUE", // required
47
+ * // preview: "STRING_VALUE", // required
48
+ * // name: "STRING_VALUE", // required
49
+ * // distance: "STRING_VALUE", // required
50
+ * // favorite: true || false,
51
+ * // location: { // LocationDetails
52
+ * // address: "STRING_VALUE", // required
53
+ * // city: "STRING_VALUE", // required
54
+ * // state: "STRING_VALUE", // required
55
+ * // zipcode: "STRING_VALUE", // required
56
+ * // },
57
+ * // shop_hours: [ // ShopHoursList // required
58
+ * // { // ShopHoursItem
59
+ * // day: "STRING_VALUE", // required
60
+ * // open: "STRING_VALUE", // required
61
+ * // close: "STRING_VALUE", // required
62
+ * // },
63
+ * // ],
64
+ * // logo: "STRING_VALUE",
65
+ * // tags: [ // StringList // required
66
+ * // "STRING_VALUE",
67
+ * // ],
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param NearestShopCommandInput - {@link NearestShopCommandInput}
73
+ * @returns {@link NearestShopCommandOutput}
74
+ * @see {@link NearestShopCommandInput} for command's `input` shape.
75
+ * @see {@link NearestShopCommandOutput} for command's `response` shape.
76
+ * @see {@link AppAPIClientResolvedConfig | config} for AppAPIClient's `config` shape.
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * A standard error for input validation failures.
80
+ * This should be thrown by services when a member of the input structure
81
+ * falls outside of the modeled or documented constraints.
82
+ *
83
+ * @throws {@link RuntimeError} (server fault)
84
+ *
85
+ * @throws {@link AppAPIServiceException}
86
+ * <p>Base exception class for all service exceptions from AppAPI service.</p>
87
+ *
88
+ * @public
89
+ */
90
+ export declare class NearestShopCommand extends NearestShopCommand_base {
91
+ }
@@ -0,0 +1,84 @@
1
+ import { AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppAPIClient";
2
+ import { OnboardUserInput, OnboardUserOutput } 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 OnboardUserCommand}.
14
+ */
15
+ export interface OnboardUserCommandInput extends OnboardUserInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link OnboardUserCommand}.
21
+ */
22
+ export interface OnboardUserCommandOutput extends OnboardUserOutput, __MetadataBearer {
23
+ }
24
+ declare const OnboardUserCommand_base: {
25
+ new (input: OnboardUserCommandInput): import("@smithy/smithy-client").CommandImpl<OnboardUserCommandInput, OnboardUserCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (...[input]: [] | [OnboardUserCommandInput]): import("@smithy/smithy-client").CommandImpl<OnboardUserCommandInput, OnboardUserCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Completes the onboarding process for a new user by marking their account as no longer new. Updates the user's newAccount status and returns the updated user profile.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppAPIClient, OnboardUserCommand } from "@sparkrewards/sra-client"; // ES Modules import
35
+ * // const { AppAPIClient, OnboardUserCommand } = require("@sparkrewards/sra-client"); // CommonJS import
36
+ * const client = new AppAPIClient(config);
37
+ * const input = {};
38
+ * const command = new OnboardUserCommand(input);
39
+ * const response = await client.send(command);
40
+ * // { // OnboardUserOutput
41
+ * // message: "STRING_VALUE",
42
+ * // user: { // User
43
+ * // id: "STRING_VALUE", // required
44
+ * // email: "STRING_VALUE", // required
45
+ * // birthdate: "STRING_VALUE", // required
46
+ * // fullname: { // UserFullname
47
+ * // firstName: "STRING_VALUE",
48
+ * // lastName: "STRING_VALUE",
49
+ * // },
50
+ * // date_created: "STRING_VALUE", // required
51
+ * // newAccount: true || false, // required
52
+ * // preferences: { // UserPreferences
53
+ * // lightMode: true || false,
54
+ * // },
55
+ * // total_visits: Number("int"), // required
56
+ * // total_points: Number("int"), // required
57
+ * // total_rewards: Number("int"), // required
58
+ * // fraud_count: Number("int"),
59
+ * // num_redeemableRewards: Number("int"),
60
+ * // },
61
+ * // };
62
+ *
63
+ * ```
64
+ *
65
+ * @param OnboardUserCommandInput - {@link OnboardUserCommandInput}
66
+ * @returns {@link OnboardUserCommandOutput}
67
+ * @see {@link OnboardUserCommandInput} for command's `input` shape.
68
+ * @see {@link OnboardUserCommandOutput} for command's `response` shape.
69
+ * @see {@link AppAPIClientResolvedConfig | config} for AppAPIClient's `config` shape.
70
+ *
71
+ * @throws {@link ValidationException} (client fault)
72
+ * A standard error for input validation failures.
73
+ * This should be thrown by services when a member of the input structure
74
+ * falls outside of the modeled or documented constraints.
75
+ *
76
+ * @throws {@link RuntimeError} (server fault)
77
+ *
78
+ * @throws {@link AppAPIServiceException}
79
+ * <p>Base exception class for all service exceptions from AppAPI service.</p>
80
+ *
81
+ * @public
82
+ */
83
+ export declare class OnboardUserCommand extends OnboardUserCommand_base {
84
+ }
@@ -0,0 +1,91 @@
1
+ import { AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppAPIClient";
2
+ import { EnrichedShop, PinnedShopInput } 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 PinnedShopCommand}.
14
+ */
15
+ export interface PinnedShopCommandInput extends PinnedShopInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PinnedShopCommand}.
21
+ */
22
+ export interface PinnedShopCommandOutput extends EnrichedShop, __MetadataBearer {
23
+ }
24
+ declare const PinnedShopCommand_base: {
25
+ new (input: PinnedShopCommandInput): import("@smithy/smithy-client").CommandImpl<PinnedShopCommandInput, PinnedShopCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PinnedShopCommandInput): import("@smithy/smithy-client").CommandImpl<PinnedShopCommandInput, PinnedShopCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves the pinned shop details for the authenticated user. Returns enriched shop data with organization information.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppAPIClient, PinnedShopCommand } from "@sparkrewards/sra-client"; // ES Modules import
35
+ * // const { AppAPIClient, PinnedShopCommand } = require("@sparkrewards/sra-client"); // CommonJS import
36
+ * const client = new AppAPIClient(config);
37
+ * const input = { // PinnedShopInput
38
+ * shop_id: "STRING_VALUE", // required
39
+ * lat: Number("double"), // required
40
+ * lon: Number("double"), // required
41
+ * };
42
+ * const command = new PinnedShopCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // EnrichedShop
45
+ * // shop_id: "STRING_VALUE", // required
46
+ * // org_id: "STRING_VALUE", // required
47
+ * // preview: "STRING_VALUE", // required
48
+ * // name: "STRING_VALUE", // required
49
+ * // distance: "STRING_VALUE", // required
50
+ * // favorite: true || false,
51
+ * // location: { // LocationDetails
52
+ * // address: "STRING_VALUE", // required
53
+ * // city: "STRING_VALUE", // required
54
+ * // state: "STRING_VALUE", // required
55
+ * // zipcode: "STRING_VALUE", // required
56
+ * // },
57
+ * // shop_hours: [ // ShopHoursList // required
58
+ * // { // ShopHoursItem
59
+ * // day: "STRING_VALUE", // required
60
+ * // open: "STRING_VALUE", // required
61
+ * // close: "STRING_VALUE", // required
62
+ * // },
63
+ * // ],
64
+ * // logo: "STRING_VALUE",
65
+ * // tags: [ // StringList // required
66
+ * // "STRING_VALUE",
67
+ * // ],
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param PinnedShopCommandInput - {@link PinnedShopCommandInput}
73
+ * @returns {@link PinnedShopCommandOutput}
74
+ * @see {@link PinnedShopCommandInput} for command's `input` shape.
75
+ * @see {@link PinnedShopCommandOutput} for command's `response` shape.
76
+ * @see {@link AppAPIClientResolvedConfig | config} for AppAPIClient's `config` shape.
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * A standard error for input validation failures.
80
+ * This should be thrown by services when a member of the input structure
81
+ * falls outside of the modeled or documented constraints.
82
+ *
83
+ * @throws {@link RuntimeError} (server fault)
84
+ *
85
+ * @throws {@link AppAPIServiceException}
86
+ * <p>Base exception class for all service exceptions from AppAPI service.</p>
87
+ *
88
+ * @public
89
+ */
90
+ export declare class PinnedShopCommand extends PinnedShopCommand_base {
91
+ }
@@ -0,0 +1,91 @@
1
+ import { AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppAPIClient";
2
+ import { EnrichedShop, PinnedShopInput } 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 PinnedShopPublicCommand}.
14
+ */
15
+ export interface PinnedShopPublicCommandInput extends PinnedShopInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PinnedShopPublicCommand}.
21
+ */
22
+ export interface PinnedShopPublicCommandOutput extends EnrichedShop, __MetadataBearer {
23
+ }
24
+ declare const PinnedShopPublicCommand_base: {
25
+ new (input: PinnedShopPublicCommandInput): import("@smithy/smithy-client").CommandImpl<PinnedShopPublicCommandInput, PinnedShopPublicCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PinnedShopPublicCommandInput): import("@smithy/smithy-client").CommandImpl<PinnedShopPublicCommandInput, PinnedShopPublicCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves the pinned shop details for the authenticated user. Returns enriched shop data with organization information.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppAPIClient, PinnedShopPublicCommand } from "@sparkrewards/sra-client"; // ES Modules import
35
+ * // const { AppAPIClient, PinnedShopPublicCommand } = require("@sparkrewards/sra-client"); // CommonJS import
36
+ * const client = new AppAPIClient(config);
37
+ * const input = { // PinnedShopInput
38
+ * shop_id: "STRING_VALUE", // required
39
+ * lat: Number("double"), // required
40
+ * lon: Number("double"), // required
41
+ * };
42
+ * const command = new PinnedShopPublicCommand(input);
43
+ * const response = await client.send(command);
44
+ * // { // EnrichedShop
45
+ * // shop_id: "STRING_VALUE", // required
46
+ * // org_id: "STRING_VALUE", // required
47
+ * // preview: "STRING_VALUE", // required
48
+ * // name: "STRING_VALUE", // required
49
+ * // distance: "STRING_VALUE", // required
50
+ * // favorite: true || false,
51
+ * // location: { // LocationDetails
52
+ * // address: "STRING_VALUE", // required
53
+ * // city: "STRING_VALUE", // required
54
+ * // state: "STRING_VALUE", // required
55
+ * // zipcode: "STRING_VALUE", // required
56
+ * // },
57
+ * // shop_hours: [ // ShopHoursList // required
58
+ * // { // ShopHoursItem
59
+ * // day: "STRING_VALUE", // required
60
+ * // open: "STRING_VALUE", // required
61
+ * // close: "STRING_VALUE", // required
62
+ * // },
63
+ * // ],
64
+ * // logo: "STRING_VALUE",
65
+ * // tags: [ // StringList // required
66
+ * // "STRING_VALUE",
67
+ * // ],
68
+ * // };
69
+ *
70
+ * ```
71
+ *
72
+ * @param PinnedShopPublicCommandInput - {@link PinnedShopPublicCommandInput}
73
+ * @returns {@link PinnedShopPublicCommandOutput}
74
+ * @see {@link PinnedShopPublicCommandInput} for command's `input` shape.
75
+ * @see {@link PinnedShopPublicCommandOutput} for command's `response` shape.
76
+ * @see {@link AppAPIClientResolvedConfig | config} for AppAPIClient's `config` shape.
77
+ *
78
+ * @throws {@link ValidationException} (client fault)
79
+ * A standard error for input validation failures.
80
+ * This should be thrown by services when a member of the input structure
81
+ * falls outside of the modeled or documented constraints.
82
+ *
83
+ * @throws {@link RuntimeError} (server fault)
84
+ *
85
+ * @throws {@link AppAPIServiceException}
86
+ * <p>Base exception class for all service exceptions from AppAPI service.</p>
87
+ *
88
+ * @public
89
+ */
90
+ export declare class PinnedShopPublicCommand extends PinnedShopPublicCommand_base {
91
+ }
@@ -0,0 +1,107 @@
1
+ import { AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppAPIClient";
2
+ import { PlanGetInput, PlanOutput } 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 PlanCommand}.
14
+ */
15
+ export interface PlanCommandInput extends PlanGetInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PlanCommand}.
21
+ */
22
+ export interface PlanCommandOutput extends PlanOutput, __MetadataBearer {
23
+ }
24
+ declare const PlanCommand_base: {
25
+ new (input: PlanCommandInput): import("@smithy/smithy-client").CommandImpl<PlanCommandInput, PlanCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (__0_0: PlanCommandInput): import("@smithy/smithy-client").CommandImpl<PlanCommandInput, PlanCommandOutput, AppAPIClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * Retrieves the reward plan details for a specific organization, including visits, points, and redeemable rewards for the authenticated user.
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { AppAPIClient, PlanCommand } from "@sparkrewards/sra-client"; // ES Modules import
35
+ * // const { AppAPIClient, PlanCommand } = require("@sparkrewards/sra-client"); // CommonJS import
36
+ * const client = new AppAPIClient(config);
37
+ * const input = { // PlanGetInput
38
+ * org_id: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new PlanCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // PlanOutput
43
+ * // reward_plan: { // RewardPlan
44
+ * // visits: { // VisitRewardProps
45
+ * // tiers: { // TierMap // required
46
+ * // "<keys>": { // Tier
47
+ * // id: "STRING_VALUE", // required
48
+ * // rewards: [ // StringList // required
49
+ * // "STRING_VALUE",
50
+ * // ],
51
+ * // },
52
+ * // },
53
+ * // min_spend: Number("int"), // required
54
+ * // },
55
+ * // points: [ // PointsRewardOptionList
56
+ * // { // PointsRewardOption
57
+ * // id: "STRING_VALUE", // required
58
+ * // reward: "STRING_VALUE", // required
59
+ * // points: Number("int"), // required
60
+ * // },
61
+ * // ],
62
+ * // },
63
+ * // visits: Number("int"), // required
64
+ * // points: Number("int"), // required
65
+ * // redeemableRewards: [ // RewardList // required
66
+ * // { // Reward
67
+ * // reward_id: "STRING_VALUE",
68
+ * // id: "STRING_VALUE",
69
+ * // },
70
+ * // ],
71
+ * // min_spend: Number("int"),
72
+ * // visits_active: true || false, // required
73
+ * // points_active: true || false, // required
74
+ * // firstPlan: true || false, // required
75
+ * // id: "STRING_VALUE", // required
76
+ * // active: true || false, // required
77
+ * // organization_id: "STRING_VALUE",
78
+ * // name: "STRING_VALUE", // required
79
+ * // favorite: true || false, // required
80
+ * // first_time_reward: { // FirstTimeReward
81
+ * // active: true || false,
82
+ * // description: "STRING_VALUE",
83
+ * // },
84
+ * // };
85
+ *
86
+ * ```
87
+ *
88
+ * @param PlanCommandInput - {@link PlanCommandInput}
89
+ * @returns {@link PlanCommandOutput}
90
+ * @see {@link PlanCommandInput} for command's `input` shape.
91
+ * @see {@link PlanCommandOutput} for command's `response` shape.
92
+ * @see {@link AppAPIClientResolvedConfig | config} for AppAPIClient's `config` shape.
93
+ *
94
+ * @throws {@link ValidationException} (client fault)
95
+ * A standard error for input validation failures.
96
+ * This should be thrown by services when a member of the input structure
97
+ * falls outside of the modeled or documented constraints.
98
+ *
99
+ * @throws {@link RuntimeError} (server fault)
100
+ *
101
+ * @throws {@link AppAPIServiceException}
102
+ * <p>Base exception class for all service exceptions from AppAPI service.</p>
103
+ *
104
+ * @public
105
+ */
106
+ export declare class PlanCommand extends PlanCommand_base {
107
+ }