@epcc-sdk/sdks-shopper 0.0.13 → 0.0.15

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.
@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  }
48
48
  };
49
49
  import { queryOptions } from "@tanstack/react-query";
50
- import { getByContextRelease, getByContextAllHierarchies, getByContextHierarchy, getByContextHierarchyNodes, getByContextHierarchyChildNodes, getByContextAllNodes, getByContextNode, getByContextChildNodes, getByContextAllProducts, getByContextProduct, getByContextComponentProductIds, getByContextChildProducts, getByContextProductsForHierarchy, getByContextProductsForNode, configureByContextProduct, getCatalogs, createCatalog, deleteCatalogById, getCatalogById, updateCatalog, deleteReleases, getReleases, publishRelease, deleteReleaseById, getReleaseById, getRules, createRule, deleteRuleById, getRuleById, updateRule, getAllHierarchies, getHierarchy, getHierarchyNodes, getHierarchyChildNodes, getAllNodes, getNode, getChildNodes, getAllProducts, getProduct, getComponentProductIds, getChildProducts, getProductsForHierarchy, getProductsForNode, getCarts, createACart, deleteACart, getCart, updateACart, deleteAllCartItems, getCartItems, manageCarts, bulkUpdateItemsInCart, deleteACartItem, updateACartItem, deleteAccountCartAssociation, createAccountCartAssociation, deleteCustomerCartAssociation, createCustomerCartAssociation, deleteAPromotionViaPromotionCode, addTaxItemToCart, bulkDeleteTaxItemsFromCart, bulkAddTaxItemsToCart, deleteATaxItem, updateATaxItem, bulkDeleteCustomDiscountsFromCart, bulkAddCustomDiscountsToCart, deleteCustomDiscountFromCart, updateCustomDiscountForCart, addCustomDiscountToCartItem, deleteCustomDiscountFromCartItem, updateCustomDiscountForCartItem, createCartPaymentIntent, checkoutApi, getCustomerOrders, getAnOrder, updateAnOrder, getOrderItems, anonymizeOrders, paymentSetup, confirmPayment, captureATransaction, refundATransaction, getOrderTransactions, getATransaction, cancelATransaction, getSubscriptionProduct, getPlan, listOfferings, getOffering, listOfferingPlans, listOfferingFeatures, listOfferingProducts, getFeature, getStock, listLocations, createAnAccessToken, client, } from "../sdk.gen";
50
+ import { getByContextRelease, getByContextAllHierarchies, getByContextHierarchy, getByContextHierarchyNodes, getByContextHierarchyChildNodes, getByContextAllNodes, getByContextNode, getByContextChildNodes, getByContextAllProducts, getByContextProduct, getByContextComponentProductIds, getByContextChildProducts, getByContextProductsForHierarchy, getByContextProductsForNode, configureByContextProduct, getCatalogs, createCatalog, deleteCatalogById, getCatalogById, updateCatalog, deleteReleases, getReleases, publishRelease, deleteReleaseById, getReleaseById, getRules, createRule, deleteRuleById, getRuleById, updateRule, getAllHierarchies, getHierarchy, getHierarchyNodes, getHierarchyChildNodes, getAllNodes, getNode, getChildNodes, getAllProducts, getProduct, getComponentProductIds, getChildProducts, getProductsForHierarchy, getProductsForNode, getCarts, createACart, deleteACart, getCart, updateACart, deleteAllCartItems, getCartItems, manageCarts, bulkUpdateItemsInCart, deleteACartItem, updateACartItem, deleteAccountCartAssociation, createAccountCartAssociation, deleteCustomerCartAssociation, createCustomerCartAssociation, deleteAPromotionViaPromotionCode, addTaxItemToCart, bulkDeleteTaxItemsFromCart, bulkAddTaxItemsToCart, deleteATaxItem, updateATaxItem, bulkDeleteCustomDiscountsFromCart, bulkAddCustomDiscountsToCart, deleteCustomDiscountFromCart, updateCustomDiscountForCart, addCustomDiscountToCartItem, deleteCustomDiscountFromCartItem, updateCustomDiscountForCartItem, createCartPaymentIntent, checkoutApi, getCustomerOrders, getAnOrder, updateAnOrder, getOrderItems, anonymizeOrders, paymentSetup, confirmPayment, captureATransaction, refundATransaction, getOrderTransactions, getATransaction, cancelATransaction, getSubscriptionProduct, getPlan, listOfferings, getOffering, listOfferingPlans, listOfferingFeatures, listOfferingProducts, getFeature, getStock, listLocations, createAnAccessToken, getV2AccountAddresses, deleteV2AccountAddress, getV2AccountAddress, postV2AccountAddress, putV2AccountAddress, getV2Accounts, getV2AccountsAccountId, getV2AccountMembers, getV2AccountMembersAccountMemberId, getV2AccountsAccountIdAccountMemberships, postV2AccountMembersTokens, client, } from "../sdk.gen";
51
51
  var createQueryKey = function (id, options, infinite) {
52
52
  var _a;
53
53
  var params = {
@@ -2139,3 +2139,231 @@ export var createAnAccessTokenMutation = function (options) {
2139
2139
  };
2140
2140
  return mutationOptions;
2141
2141
  };
2142
+ export var getV2AccountAddressesQueryKey = function (options) { return [createQueryKey("getV2AccountAddresses", options)]; };
2143
+ export var getV2AccountAddressesOptions = function (options) {
2144
+ return queryOptions({
2145
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2146
+ var data;
2147
+ var queryKey = _b.queryKey, signal = _b.signal;
2148
+ return __generator(this, function (_c) {
2149
+ switch (_c.label) {
2150
+ case 0: return [4 /*yield*/, getV2AccountAddresses(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2151
+ case 1:
2152
+ data = (_c.sent()).data;
2153
+ return [2 /*return*/, data];
2154
+ }
2155
+ });
2156
+ }); },
2157
+ queryKey: getV2AccountAddressesQueryKey(options),
2158
+ });
2159
+ };
2160
+ export var deleteV2AccountAddressMutation = function (options) {
2161
+ var mutationOptions = {
2162
+ mutationFn: function (localOptions) { return __awaiter(void 0, void 0, void 0, function () {
2163
+ var data;
2164
+ return __generator(this, function (_a) {
2165
+ switch (_a.label) {
2166
+ case 0: return [4 /*yield*/, deleteV2AccountAddress(__assign(__assign(__assign({}, options), localOptions), { throwOnError: true }))];
2167
+ case 1:
2168
+ data = (_a.sent()).data;
2169
+ return [2 /*return*/, data];
2170
+ }
2171
+ });
2172
+ }); },
2173
+ };
2174
+ return mutationOptions;
2175
+ };
2176
+ export var getV2AccountAddressQueryKey = function (options) { return [createQueryKey("getV2AccountAddress", options)]; };
2177
+ export var getV2AccountAddressOptions = function (options) {
2178
+ return queryOptions({
2179
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2180
+ var data;
2181
+ var queryKey = _b.queryKey, signal = _b.signal;
2182
+ return __generator(this, function (_c) {
2183
+ switch (_c.label) {
2184
+ case 0: return [4 /*yield*/, getV2AccountAddress(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2185
+ case 1:
2186
+ data = (_c.sent()).data;
2187
+ return [2 /*return*/, data];
2188
+ }
2189
+ });
2190
+ }); },
2191
+ queryKey: getV2AccountAddressQueryKey(options),
2192
+ });
2193
+ };
2194
+ export var postV2AccountAddressQueryKey = function (options) { return [createQueryKey("postV2AccountAddress", options)]; };
2195
+ export var postV2AccountAddressOptions = function (options) {
2196
+ return queryOptions({
2197
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2198
+ var data;
2199
+ var queryKey = _b.queryKey, signal = _b.signal;
2200
+ return __generator(this, function (_c) {
2201
+ switch (_c.label) {
2202
+ case 0: return [4 /*yield*/, postV2AccountAddress(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2203
+ case 1:
2204
+ data = (_c.sent()).data;
2205
+ return [2 /*return*/, data];
2206
+ }
2207
+ });
2208
+ }); },
2209
+ queryKey: postV2AccountAddressQueryKey(options),
2210
+ });
2211
+ };
2212
+ export var postV2AccountAddressMutation = function (options) {
2213
+ var mutationOptions = {
2214
+ mutationFn: function (localOptions) { return __awaiter(void 0, void 0, void 0, function () {
2215
+ var data;
2216
+ return __generator(this, function (_a) {
2217
+ switch (_a.label) {
2218
+ case 0: return [4 /*yield*/, postV2AccountAddress(__assign(__assign(__assign({}, options), localOptions), { throwOnError: true }))];
2219
+ case 1:
2220
+ data = (_a.sent()).data;
2221
+ return [2 /*return*/, data];
2222
+ }
2223
+ });
2224
+ }); },
2225
+ };
2226
+ return mutationOptions;
2227
+ };
2228
+ export var putV2AccountAddressMutation = function (options) {
2229
+ var mutationOptions = {
2230
+ mutationFn: function (localOptions) { return __awaiter(void 0, void 0, void 0, function () {
2231
+ var data;
2232
+ return __generator(this, function (_a) {
2233
+ switch (_a.label) {
2234
+ case 0: return [4 /*yield*/, putV2AccountAddress(__assign(__assign(__assign({}, options), localOptions), { throwOnError: true }))];
2235
+ case 1:
2236
+ data = (_a.sent()).data;
2237
+ return [2 /*return*/, data];
2238
+ }
2239
+ });
2240
+ }); },
2241
+ };
2242
+ return mutationOptions;
2243
+ };
2244
+ export var getV2AccountsQueryKey = function (options) { return [
2245
+ createQueryKey("getV2Accounts", options),
2246
+ ]; };
2247
+ export var getV2AccountsOptions = function (options) {
2248
+ return queryOptions({
2249
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2250
+ var data;
2251
+ var queryKey = _b.queryKey, signal = _b.signal;
2252
+ return __generator(this, function (_c) {
2253
+ switch (_c.label) {
2254
+ case 0: return [4 /*yield*/, getV2Accounts(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2255
+ case 1:
2256
+ data = (_c.sent()).data;
2257
+ return [2 /*return*/, data];
2258
+ }
2259
+ });
2260
+ }); },
2261
+ queryKey: getV2AccountsQueryKey(options),
2262
+ });
2263
+ };
2264
+ export var getV2AccountsAccountIdQueryKey = function (options) { return [createQueryKey("getV2AccountsAccountId", options)]; };
2265
+ export var getV2AccountsAccountIdOptions = function (options) {
2266
+ return queryOptions({
2267
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2268
+ var data;
2269
+ var queryKey = _b.queryKey, signal = _b.signal;
2270
+ return __generator(this, function (_c) {
2271
+ switch (_c.label) {
2272
+ case 0: return [4 /*yield*/, getV2AccountsAccountId(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2273
+ case 1:
2274
+ data = (_c.sent()).data;
2275
+ return [2 /*return*/, data];
2276
+ }
2277
+ });
2278
+ }); },
2279
+ queryKey: getV2AccountsAccountIdQueryKey(options),
2280
+ });
2281
+ };
2282
+ export var getV2AccountMembersQueryKey = function (options) { return [createQueryKey("getV2AccountMembers", options)]; };
2283
+ export var getV2AccountMembersOptions = function (options) {
2284
+ return queryOptions({
2285
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2286
+ var data;
2287
+ var queryKey = _b.queryKey, signal = _b.signal;
2288
+ return __generator(this, function (_c) {
2289
+ switch (_c.label) {
2290
+ case 0: return [4 /*yield*/, getV2AccountMembers(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2291
+ case 1:
2292
+ data = (_c.sent()).data;
2293
+ return [2 /*return*/, data];
2294
+ }
2295
+ });
2296
+ }); },
2297
+ queryKey: getV2AccountMembersQueryKey(options),
2298
+ });
2299
+ };
2300
+ export var getV2AccountMembersAccountMemberIdQueryKey = function (options) { return [createQueryKey("getV2AccountMembersAccountMemberId", options)]; };
2301
+ export var getV2AccountMembersAccountMemberIdOptions = function (options) {
2302
+ return queryOptions({
2303
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2304
+ var data;
2305
+ var queryKey = _b.queryKey, signal = _b.signal;
2306
+ return __generator(this, function (_c) {
2307
+ switch (_c.label) {
2308
+ case 0: return [4 /*yield*/, getV2AccountMembersAccountMemberId(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2309
+ case 1:
2310
+ data = (_c.sent()).data;
2311
+ return [2 /*return*/, data];
2312
+ }
2313
+ });
2314
+ }); },
2315
+ queryKey: getV2AccountMembersAccountMemberIdQueryKey(options),
2316
+ });
2317
+ };
2318
+ export var getV2AccountsAccountIdAccountMembershipsQueryKey = function (options) { return [createQueryKey("getV2AccountsAccountIdAccountMemberships", options)]; };
2319
+ export var getV2AccountsAccountIdAccountMembershipsOptions = function (options) {
2320
+ return queryOptions({
2321
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2322
+ var data;
2323
+ var queryKey = _b.queryKey, signal = _b.signal;
2324
+ return __generator(this, function (_c) {
2325
+ switch (_c.label) {
2326
+ case 0: return [4 /*yield*/, getV2AccountsAccountIdAccountMemberships(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2327
+ case 1:
2328
+ data = (_c.sent()).data;
2329
+ return [2 /*return*/, data];
2330
+ }
2331
+ });
2332
+ }); },
2333
+ queryKey: getV2AccountsAccountIdAccountMembershipsQueryKey(options),
2334
+ });
2335
+ };
2336
+ export var postV2AccountMembersTokensQueryKey = function (options) { return [createQueryKey("postV2AccountMembersTokens", options)]; };
2337
+ export var postV2AccountMembersTokensOptions = function (options) {
2338
+ return queryOptions({
2339
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2340
+ var data;
2341
+ var queryKey = _b.queryKey, signal = _b.signal;
2342
+ return __generator(this, function (_c) {
2343
+ switch (_c.label) {
2344
+ case 0: return [4 /*yield*/, postV2AccountMembersTokens(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2345
+ case 1:
2346
+ data = (_c.sent()).data;
2347
+ return [2 /*return*/, data];
2348
+ }
2349
+ });
2350
+ }); },
2351
+ queryKey: postV2AccountMembersTokensQueryKey(options),
2352
+ });
2353
+ };
2354
+ export var postV2AccountMembersTokensMutation = function (options) {
2355
+ var mutationOptions = {
2356
+ mutationFn: function (localOptions) { return __awaiter(void 0, void 0, void 0, function () {
2357
+ var data;
2358
+ return __generator(this, function (_a) {
2359
+ switch (_a.label) {
2360
+ case 0: return [4 /*yield*/, postV2AccountMembersTokens(__assign(__assign(__assign({}, options), localOptions), { throwOnError: true }))];
2361
+ case 1:
2362
+ data = (_a.sent()).data;
2363
+ return [2 /*return*/, data];
2364
+ }
2365
+ });
2366
+ }); },
2367
+ };
2368
+ return mutationOptions;
2369
+ };
@@ -1,5 +1,5 @@
1
1
  import { type Options } from "@hey-api/client-fetch";
2
- import type { GetByContextReleaseData, GetByContextAllHierarchiesData, GetByContextHierarchyData, GetByContextHierarchyNodesData, GetByContextHierarchyChildNodesData, GetByContextAllNodesData, GetByContextNodeData, GetByContextChildNodesData, GetByContextAllProductsData, GetByContextProductData, GetByContextComponentProductIdsData, GetByContextChildProductsData, GetByContextProductsForHierarchyData, GetByContextProductsForNodeData, ConfigureByContextProductData, GetCatalogsData, CreateCatalogData, DeleteCatalogByIdData, GetCatalogByIdData, UpdateCatalogData, DeleteReleasesData, GetReleasesData, PublishReleaseData, DeleteReleaseByIdData, GetReleaseByIdData, GetRulesData, CreateRuleData, DeleteRuleByIdData, GetRuleByIdData, UpdateRuleData, GetAllHierarchiesData, GetHierarchyData, GetHierarchyNodesData, GetHierarchyChildNodesData, GetAllNodesData, GetNodeData, GetChildNodesData, GetAllProductsData, GetProductData, GetComponentProductIdsData, GetChildProductsData, GetProductsForHierarchyData, GetProductsForNodeData, GetCartsData, CreateACartData, DeleteACartData, GetCartData, UpdateACartData, DeleteAllCartItemsData, GetCartItemsData, ManageCartsData, BulkUpdateItemsInCartData, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, AddCustomDiscountToCartItemData, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, CreateCartPaymentIntentData, CheckoutApiData, GetCustomerOrdersData, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, AnonymizeOrdersData, PaymentSetupData, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, GetATransactionData, CancelATransactionData, GetSubscriptionProductData, GetPlanData, ListOfferingsData, GetOfferingData, ListOfferingPlansData, ListOfferingFeaturesData, ListOfferingProductsData, GetFeatureData, GetStockData, ListLocationsData, CreateAnAccessTokenData } from "./types.gen";
2
+ import type { GetByContextReleaseData, GetByContextAllHierarchiesData, GetByContextHierarchyData, GetByContextHierarchyNodesData, GetByContextHierarchyChildNodesData, GetByContextAllNodesData, GetByContextNodeData, GetByContextChildNodesData, GetByContextAllProductsData, GetByContextProductData, GetByContextComponentProductIdsData, GetByContextChildProductsData, GetByContextProductsForHierarchyData, GetByContextProductsForNodeData, ConfigureByContextProductData, GetCatalogsData, CreateCatalogData, DeleteCatalogByIdData, GetCatalogByIdData, UpdateCatalogData, DeleteReleasesData, GetReleasesData, PublishReleaseData, DeleteReleaseByIdData, GetReleaseByIdData, GetRulesData, CreateRuleData, DeleteRuleByIdData, GetRuleByIdData, UpdateRuleData, GetAllHierarchiesData, GetHierarchyData, GetHierarchyNodesData, GetHierarchyChildNodesData, GetAllNodesData, GetNodeData, GetChildNodesData, GetAllProductsData, GetProductData, GetComponentProductIdsData, GetChildProductsData, GetProductsForHierarchyData, GetProductsForNodeData, GetCartsData, CreateACartData, DeleteACartData, GetCartData, UpdateACartData, DeleteAllCartItemsData, GetCartItemsData, ManageCartsData, BulkUpdateItemsInCartData, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, AddCustomDiscountToCartItemData, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, CreateCartPaymentIntentData, CheckoutApiData, GetCustomerOrdersData, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, AnonymizeOrdersData, PaymentSetupData, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, GetATransactionData, CancelATransactionData, GetSubscriptionProductData, GetPlanData, ListOfferingsData, GetOfferingData, ListOfferingPlansData, ListOfferingFeaturesData, ListOfferingProductsData, GetFeatureData, GetStockData, ListLocationsData, CreateAnAccessTokenData, GetV2AccountAddressesData, DeleteV2AccountAddressData, GetV2AccountAddressData, PostV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, GetV2AccountsAccountIdData, GetV2AccountMembersData, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, PostV2AccountMembersTokensData } from "./types.gen";
3
3
  export declare const client: import("@hey-api/client-fetch").Client<Request, Response, unknown, import("@hey-api/client-fetch").RequestOptions<boolean, string>>;
4
4
  /**
5
5
  * Get the catalog release as shoppers
@@ -2296,6 +2296,163 @@ export declare const listLocations: <ThrowOnError extends boolean = false>(optio
2296
2296
  * :::
2297
2297
  *
2298
2298
  */
2299
- export declare const createAnAccessToken: <ThrowOnError extends boolean = false>(options?: Options<CreateAnAccessTokenData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2300
- data?: import("./types.gen").AccessTokenResponse;
2301
- }, import("./types.gen").ErrorResponse2, ThrowOnError>;
2299
+ export declare const createAnAccessToken: <ThrowOnError extends boolean = false>(options?: Options<CreateAnAccessTokenData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").AccessTokenResponse, import("./types.gen").ErrorResponse2, ThrowOnError>;
2300
+ /**
2301
+ * Get Account Addresses
2302
+ * Get Account Addresses
2303
+ */
2304
+ export declare const getV2AccountAddresses: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountAddressesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2305
+ data?: Array<import("./types.gen").AccountAddressResponse>;
2306
+ }, import("./types.gen").AccountAddressesErrorResponse, ThrowOnError>;
2307
+ /**
2308
+ * Delete an Account Address
2309
+ * Delete a specific account within a store
2310
+ */
2311
+ export declare const deleteV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<DeleteV2AccountAddressData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen").AccountAddressesErrorResponse, ThrowOnError>;
2312
+ /**
2313
+ * Get an Account Address
2314
+ * Get an Account Addresses
2315
+ */
2316
+ export declare const getV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountAddressData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2317
+ data?: import("./types.gen").AccountAddressResponse;
2318
+ }, import("./types.gen").AccountAddressesErrorResponse, ThrowOnError>;
2319
+ /**
2320
+ * Create an Account Address
2321
+ * Create an Account Address
2322
+ */
2323
+ export declare const postV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<PostV2AccountAddressData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2324
+ data?: import("./types.gen").AccountAddressResponse;
2325
+ }, import("./types.gen").AccountAddressesErrorResponse, ThrowOnError>;
2326
+ /**
2327
+ * Update an Account Address
2328
+ * Update an Account Address
2329
+ */
2330
+ export declare const putV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<PutV2AccountAddressData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2331
+ data?: import("./types.gen").AccountAddressResponse;
2332
+ }, import("./types.gen").AccountAddressesErrorResponse, ThrowOnError>;
2333
+ /**
2334
+ * Get All Accounts
2335
+ * Use this endpoint to Get all accounts.
2336
+ *
2337
+ * You can use pagination with this resource. For more information, see [pagination](/guides/Getting-Started/pagination).
2338
+ *
2339
+ * ### Filtering
2340
+ *
2341
+ * The following operators and attributes are available for [filtering](/guides/Getting-Started/filtering) accounts:
2342
+ *
2343
+ * | Attribute | Type | Operators | Example |
2344
+ * |-----------------|----------|--------------| -----------------------------------------------------|
2345
+ * | `name` | `string` | <ul><li>`eq`</li><li>`like`</li></ul> | `like(name,*swan*)` |
2346
+ * | `legal_name` | `string` | <ul><li>`eq`</li><li>`like`</li></ul> | `like(legal_name,*swan*)` |
2347
+ * | `registration_id` | `string` | <ul><li>`eq`</li><li>`like`</li></ul> | `like(registration_id,00000000-0000-1000-8000-*)` |
2348
+ * | `external_ref` | `string` | <ul><li>`eq`</li><li>`like`</li></ul> | `like(external_ref,16be*)` |
2349
+ * | `id` | `string` | <ul><li>`eq`</li><li>`ge`</li><li>`gt`</li><li>`le`</li><li>`lt`</li><li>`in`</li></ul> | `in(id,"99248259-feea-40c6-b855-f719ee87a539", "363e4505-a2bb-4bc1-b667-2cc9a4de8668")` |
2350
+ * | `created_at` | `string` | <ul><li>`eq`</li><li>`ge`</li><li>`gt`</li><li>`le`</li><li>`lt`</li></ul> | `gt(created_at,"2021-06-02T18:44:07.617Z")` |
2351
+ * | `updated_at` | `string` | <ul><li>`eq`</li><li>`ge`</li><li>`gt`</li><li>`le`</li><li>`lt`</li></ul> | `ge(updated_at,"2021-06-07T18:24:48.149Z")` |
2352
+ */
2353
+ export declare const getV2Accounts: <ThrowOnError extends boolean = false>(options?: Options<GetV2AccountsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2354
+ data?: Array<import("./types.gen").AccountResponse>;
2355
+ meta?: import("./types.gen").MetaList;
2356
+ links?: {
2357
+ current?: string;
2358
+ first?: string;
2359
+ last?: string;
2360
+ next?: string;
2361
+ prev?: string;
2362
+ };
2363
+ }, import("./types.gen").AccountManagementErrorResponse, ThrowOnError>;
2364
+ /**
2365
+ * Get an Account
2366
+ * View a specific account contained within your store
2367
+ */
2368
+ export declare const getV2AccountsAccountId: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountsAccountIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2369
+ data?: import("./types.gen").AccountResponse;
2370
+ }, import("./types.gen").AccountManagementErrorResponse, ThrowOnError>;
2371
+ /**
2372
+ * Get all Account Members
2373
+ * Get all account members contained within your store.
2374
+ *
2375
+ * ### Filtering
2376
+ *
2377
+ * The following operators and attributes are available for [filtering](/guides/Getting-Started/filtering) account members.
2378
+ *
2379
+ * | Attribute | Type | Operator | Example |
2380
+ * | :--- | :--- | :--- | :--- |
2381
+ * | `email` | `string` | `eq` / `like` | `eq(email,ronswanson@example.com)` |
2382
+ * | `name` | `string` | `eq` / `like` | `like(name,*swan*)` |
2383
+ *
2384
+ */
2385
+ export declare const getV2AccountMembers: <ThrowOnError extends boolean = false>(options?: Options<GetV2AccountMembersData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2386
+ data?: Array<import("./types.gen").AccountMemberResponse>;
2387
+ meta?: import("./types.gen").MetaList;
2388
+ links?: {
2389
+ current?: string;
2390
+ first?: string;
2391
+ last?: string;
2392
+ next?: string;
2393
+ prev?: string;
2394
+ };
2395
+ }, import("./types.gen").AccountManagementErrorResponse, ThrowOnError>;
2396
+ /**
2397
+ * Get an Account Member
2398
+ * Get an account member from your store
2399
+ */
2400
+ export declare const getV2AccountMembersAccountMemberId: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountMembersAccountMemberIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2401
+ data?: import("./types.gen").AccountMemberResponse;
2402
+ }, import("./types.gen").AccountManagementErrorResponse, ThrowOnError>;
2403
+ /**
2404
+ * Get all Account Memberships
2405
+ * You can also use `include=account_member` to retrieve details about the account members associated with the account memberships. With this option, you can get more information about the account members such as name and email in a single request. For more information see [including resources](/guides/Getting-Started/includes).
2406
+ *
2407
+ * ### Filtering
2408
+ *
2409
+ * The following operators and attributes are available for [filtering](/guides/Getting-Started/filtering) account memberships.
2410
+ *
2411
+ * | Operator | Description |
2412
+ * | :--- | :--- |
2413
+ * | `eq` | Checks whether the values of two operands are equal. If the values are equal, the condition is true. |
2414
+ * | `like` | Checks if the operand contains the specified string. You can use wildcard characters in operand. |
2415
+ *
2416
+ * | Attribute | Type | Operator | Example |
2417
+ * | :--- | :--- | :--- | :--- |
2418
+ * | `account_member_id` | `string` | `eq` / `like` | `eq(account_member_id,00000000-0000-1000-8000-0000000)` |
2419
+ */
2420
+ export declare const getV2AccountsAccountIdAccountMemberships: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountsAccountIdAccountMembershipsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2421
+ data?: Array<import("./types.gen").AccountMembershipResponse>;
2422
+ meta?: import("./types.gen").MetaList;
2423
+ links?: {
2424
+ current?: string;
2425
+ first?: string;
2426
+ last?: string;
2427
+ next?: string;
2428
+ prev?: string;
2429
+ };
2430
+ }, import("./types.gen").AccountManagementErrorResponse, ThrowOnError>;
2431
+ /**
2432
+ * Generate an Account Management Authentication Token
2433
+ * Commerce provides authentication tokens for anyone using the Account Management APIs, including accounts and account members.
2434
+ *
2435
+ * For each element in the list returned by the account member authentication API, a token value is returned. In order for a shopper to authenticate as the account, this value should be set as the `EP-Account-Management-Authentication-Token` header when calling Commerce. This header grants access to additional resources associated with the account, such as [carts](/docs/api/carts/account-cart-associations), [orders](/docs/api/carts/orders), [catalogs with associated rules](/docs/api/pxm/catalog/rules), and [addresses](/docs/api/addresses/addresses-introduction).
2436
+ *
2437
+ * The set of permissions available to a shopper using an Account Management Authentication token is documented in [Permissions](/docs/authentication/Tokens/permissions)
2438
+ *
2439
+ * Commerce provides authentication tokens for an account and an account member using:
2440
+ *
2441
+ * - OpenID Connect
2442
+ * - Username and password
2443
+ * - Self signup
2444
+ * - One-time password token
2445
+ * - Switch account token
2446
+ *
2447
+ */
2448
+ export declare const postV2AccountMembersTokens: <ThrowOnError extends boolean = false>(options?: Options<PostV2AccountMembersTokensData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2449
+ data?: Array<import("./types.gen").AccountManagementAuthenticationTokenResponse>;
2450
+ meta?: import("./types.gen").MetaList;
2451
+ links?: {
2452
+ current?: string;
2453
+ first?: string;
2454
+ last?: string;
2455
+ next?: string;
2456
+ prev?: string;
2457
+ };
2458
+ }, import("./types.gen").AccountManagementErrorResponse, ThrowOnError>;
@@ -2993,3 +2993,198 @@ export var createAnAccessToken = function (options) {
2993
2993
  var _a;
2994
2994
  return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post(__assign(__assign(__assign({}, options), urlSearchParamsBodySerializer), { headers: __assign({ "Content-Type": "application/x-www-form-urlencoded" }, options === null || options === void 0 ? void 0 : options.headers), url: "/oauth/access_token" }));
2995
2995
  };
2996
+ /**
2997
+ * Get Account Addresses
2998
+ * Get Account Addresses
2999
+ */
3000
+ export var getV2AccountAddresses = function (options) {
3001
+ var _a;
3002
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3003
+ {
3004
+ scheme: "bearer",
3005
+ type: "http",
3006
+ },
3007
+ ], url: "/v2/accounts/{accountID}/addresses" }));
3008
+ };
3009
+ /**
3010
+ * Delete an Account Address
3011
+ * Delete a specific account within a store
3012
+ */
3013
+ export var deleteV2AccountAddress = function (options) {
3014
+ var _a;
3015
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).delete(__assign(__assign({}, options), { security: [
3016
+ {
3017
+ scheme: "bearer",
3018
+ type: "http",
3019
+ },
3020
+ ], url: "/v2/accounts/{accountID}/addresses/{addressID}" }));
3021
+ };
3022
+ /**
3023
+ * Get an Account Address
3024
+ * Get an Account Addresses
3025
+ */
3026
+ export var getV2AccountAddress = function (options) {
3027
+ var _a;
3028
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3029
+ {
3030
+ scheme: "bearer",
3031
+ type: "http",
3032
+ },
3033
+ ], url: "/v2/accounts/{accountID}/addresses/{addressID}" }));
3034
+ };
3035
+ /**
3036
+ * Create an Account Address
3037
+ * Create an Account Address
3038
+ */
3039
+ export var postV2AccountAddress = function (options) {
3040
+ var _a;
3041
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post(__assign(__assign({}, options), { headers: __assign({ "Content-Type": "application/json" }, options === null || options === void 0 ? void 0 : options.headers), security: [
3042
+ {
3043
+ scheme: "bearer",
3044
+ type: "http",
3045
+ },
3046
+ ], url: "/v2/accounts/{accountID}/addresses/{addressID}" }));
3047
+ };
3048
+ /**
3049
+ * Update an Account Address
3050
+ * Update an Account Address
3051
+ */
3052
+ export var putV2AccountAddress = function (options) {
3053
+ var _a;
3054
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).put(__assign(__assign({}, options), { headers: __assign({ "Content-Type": "application/json" }, options === null || options === void 0 ? void 0 : options.headers), security: [
3055
+ {
3056
+ scheme: "bearer",
3057
+ type: "http",
3058
+ },
3059
+ ], url: "/v2/accounts/{accountID}/addresses/{addressID}" }));
3060
+ };
3061
+ /**
3062
+ * Get All Accounts
3063
+ * Use this endpoint to Get all accounts.
3064
+ *
3065
+ * You can use pagination with this resource. For more information, see [pagination](/guides/Getting-Started/pagination).
3066
+ *
3067
+ * ### Filtering
3068
+ *
3069
+ * The following operators and attributes are available for [filtering](/guides/Getting-Started/filtering) accounts:
3070
+ *
3071
+ * | Attribute | Type | Operators | Example |
3072
+ * |-----------------|----------|--------------| -----------------------------------------------------|
3073
+ * | `name` | `string` | <ul><li>`eq`</li><li>`like`</li></ul> | `like(name,*swan*)` |
3074
+ * | `legal_name` | `string` | <ul><li>`eq`</li><li>`like`</li></ul> | `like(legal_name,*swan*)` |
3075
+ * | `registration_id` | `string` | <ul><li>`eq`</li><li>`like`</li></ul> | `like(registration_id,00000000-0000-1000-8000-*)` |
3076
+ * | `external_ref` | `string` | <ul><li>`eq`</li><li>`like`</li></ul> | `like(external_ref,16be*)` |
3077
+ * | `id` | `string` | <ul><li>`eq`</li><li>`ge`</li><li>`gt`</li><li>`le`</li><li>`lt`</li><li>`in`</li></ul> | `in(id,"99248259-feea-40c6-b855-f719ee87a539", "363e4505-a2bb-4bc1-b667-2cc9a4de8668")` |
3078
+ * | `created_at` | `string` | <ul><li>`eq`</li><li>`ge`</li><li>`gt`</li><li>`le`</li><li>`lt`</li></ul> | `gt(created_at,"2021-06-02T18:44:07.617Z")` |
3079
+ * | `updated_at` | `string` | <ul><li>`eq`</li><li>`ge`</li><li>`gt`</li><li>`le`</li><li>`lt`</li></ul> | `ge(updated_at,"2021-06-07T18:24:48.149Z")` |
3080
+ */
3081
+ export var getV2Accounts = function (options) {
3082
+ var _a;
3083
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3084
+ {
3085
+ scheme: "bearer",
3086
+ type: "http",
3087
+ },
3088
+ ], url: "/v2/accounts" }));
3089
+ };
3090
+ /**
3091
+ * Get an Account
3092
+ * View a specific account contained within your store
3093
+ */
3094
+ export var getV2AccountsAccountId = function (options) {
3095
+ var _a;
3096
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3097
+ {
3098
+ scheme: "bearer",
3099
+ type: "http",
3100
+ },
3101
+ ], url: "/v2/accounts/{accountID}" }));
3102
+ };
3103
+ /**
3104
+ * Get all Account Members
3105
+ * Get all account members contained within your store.
3106
+ *
3107
+ * ### Filtering
3108
+ *
3109
+ * The following operators and attributes are available for [filtering](/guides/Getting-Started/filtering) account members.
3110
+ *
3111
+ * | Attribute | Type | Operator | Example |
3112
+ * | :--- | :--- | :--- | :--- |
3113
+ * | `email` | `string` | `eq` / `like` | `eq(email,ronswanson@example.com)` |
3114
+ * | `name` | `string` | `eq` / `like` | `like(name,*swan*)` |
3115
+ *
3116
+ */
3117
+ export var getV2AccountMembers = function (options) {
3118
+ var _a;
3119
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3120
+ {
3121
+ scheme: "bearer",
3122
+ type: "http",
3123
+ },
3124
+ ], url: "/v2/account-members" }));
3125
+ };
3126
+ /**
3127
+ * Get an Account Member
3128
+ * Get an account member from your store
3129
+ */
3130
+ export var getV2AccountMembersAccountMemberId = function (options) {
3131
+ var _a;
3132
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3133
+ {
3134
+ scheme: "bearer",
3135
+ type: "http",
3136
+ },
3137
+ ], url: "/v2/account-members/{accountMemberID}" }));
3138
+ };
3139
+ /**
3140
+ * Get all Account Memberships
3141
+ * You can also use `include=account_member` to retrieve details about the account members associated with the account memberships. With this option, you can get more information about the account members such as name and email in a single request. For more information see [including resources](/guides/Getting-Started/includes).
3142
+ *
3143
+ * ### Filtering
3144
+ *
3145
+ * The following operators and attributes are available for [filtering](/guides/Getting-Started/filtering) account memberships.
3146
+ *
3147
+ * | Operator | Description |
3148
+ * | :--- | :--- |
3149
+ * | `eq` | Checks whether the values of two operands are equal. If the values are equal, the condition is true. |
3150
+ * | `like` | Checks if the operand contains the specified string. You can use wildcard characters in operand. |
3151
+ *
3152
+ * | Attribute | Type | Operator | Example |
3153
+ * | :--- | :--- | :--- | :--- |
3154
+ * | `account_member_id` | `string` | `eq` / `like` | `eq(account_member_id,00000000-0000-1000-8000-0000000)` |
3155
+ */
3156
+ export var getV2AccountsAccountIdAccountMemberships = function (options) {
3157
+ var _a;
3158
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3159
+ {
3160
+ scheme: "bearer",
3161
+ type: "http",
3162
+ },
3163
+ ], url: "/v2/accounts/{accountID}/account-memberships" }));
3164
+ };
3165
+ /**
3166
+ * Generate an Account Management Authentication Token
3167
+ * Commerce provides authentication tokens for anyone using the Account Management APIs, including accounts and account members.
3168
+ *
3169
+ * For each element in the list returned by the account member authentication API, a token value is returned. In order for a shopper to authenticate as the account, this value should be set as the `EP-Account-Management-Authentication-Token` header when calling Commerce. This header grants access to additional resources associated with the account, such as [carts](/docs/api/carts/account-cart-associations), [orders](/docs/api/carts/orders), [catalogs with associated rules](/docs/api/pxm/catalog/rules), and [addresses](/docs/api/addresses/addresses-introduction).
3170
+ *
3171
+ * The set of permissions available to a shopper using an Account Management Authentication token is documented in [Permissions](/docs/authentication/Tokens/permissions)
3172
+ *
3173
+ * Commerce provides authentication tokens for an account and an account member using:
3174
+ *
3175
+ * - OpenID Connect
3176
+ * - Username and password
3177
+ * - Self signup
3178
+ * - One-time password token
3179
+ * - Switch account token
3180
+ *
3181
+ */
3182
+ export var postV2AccountMembersTokens = function (options) {
3183
+ var _a;
3184
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).post(__assign(__assign({}, options), { headers: __assign({ "Content-Type": "application/json" }, options === null || options === void 0 ? void 0 : options.headers), security: [
3185
+ {
3186
+ scheme: "bearer",
3187
+ type: "http",
3188
+ },
3189
+ ], url: "/v2/account-members/tokens" }));
3190
+ };
@@ -1,4 +1,4 @@
1
- import type { GetByContextReleaseResponse, GetByContextAllHierarchiesResponse, GetByContextHierarchyResponse, GetByContextHierarchyNodesResponse, GetByContextHierarchyChildNodesResponse, GetByContextAllNodesResponse, GetByContextNodeResponse, GetByContextChildNodesResponse, GetByContextAllProductsResponse, GetByContextProductResponse, GetByContextComponentProductIdsResponse, GetByContextChildProductsResponse, GetByContextProductsForHierarchyResponse, GetByContextProductsForNodeResponse, ConfigureByContextProductResponse, GetCatalogsResponse, CreateCatalogResponse, GetCatalogByIdResponse, UpdateCatalogResponse, GetReleasesResponse, PublishReleaseResponse, GetReleaseByIdResponse, GetRulesResponse, CreateRuleResponse, GetRuleByIdResponse, UpdateRuleResponse, GetAllHierarchiesResponse, GetHierarchyResponse, GetHierarchyNodesResponse, GetHierarchyChildNodesResponse, GetAllNodesResponse, GetNodeResponse, GetChildNodesResponse, GetAllProductsResponse, GetProductResponse, GetComponentProductIdsResponse, GetChildProductsResponse, GetProductsForHierarchyResponse, GetProductsForNodeResponse, GetSubscriptionProductResponse, ListOfferingsResponse, GetOfferingResponse, ListOfferingProductsResponse, GetStockResponse } from "./types.gen";
1
+ import type { GetByContextReleaseResponse, GetByContextAllHierarchiesResponse, GetByContextHierarchyResponse, GetByContextHierarchyNodesResponse, GetByContextHierarchyChildNodesResponse, GetByContextAllNodesResponse, GetByContextNodeResponse, GetByContextChildNodesResponse, GetByContextAllProductsResponse, GetByContextProductResponse, GetByContextComponentProductIdsResponse, GetByContextChildProductsResponse, GetByContextProductsForHierarchyResponse, GetByContextProductsForNodeResponse, ConfigureByContextProductResponse, GetCatalogsResponse, CreateCatalogResponse, GetCatalogByIdResponse, UpdateCatalogResponse, GetReleasesResponse, PublishReleaseResponse, GetReleaseByIdResponse, GetRulesResponse, CreateRuleResponse, GetRuleByIdResponse, UpdateRuleResponse, GetAllHierarchiesResponse, GetHierarchyResponse, GetHierarchyNodesResponse, GetHierarchyChildNodesResponse, GetAllNodesResponse, GetNodeResponse, GetChildNodesResponse, GetAllProductsResponse, GetProductResponse, GetComponentProductIdsResponse, GetChildProductsResponse, GetProductsForHierarchyResponse, GetProductsForNodeResponse, GetSubscriptionProductResponse, ListOfferingsResponse, GetOfferingResponse, ListOfferingProductsResponse, GetStockResponse, PostV2AccountMembersTokensResponse } from "./types.gen";
2
2
  export declare const getByContextReleaseResponseTransformer: (data: any) => Promise<GetByContextReleaseResponse>;
3
3
  export declare const getByContextAllHierarchiesResponseTransformer: (data: any) => Promise<GetByContextAllHierarchiesResponse>;
4
4
  export declare const getByContextHierarchyResponseTransformer: (data: any) => Promise<GetByContextHierarchyResponse>;
@@ -43,3 +43,4 @@ export declare const listOfferingsResponseTransformer: (data: any) => Promise<Li
43
43
  export declare const getOfferingResponseTransformer: (data: any) => Promise<GetOfferingResponse>;
44
44
  export declare const listOfferingProductsResponseTransformer: (data: any) => Promise<ListOfferingProductsResponse>;
45
45
  export declare const getStockResponseTransformer: (data: any) => Promise<GetStockResponse>;
46
+ export declare const postV2AccountMembersTokensResponseTransformer: (data: any) => Promise<PostV2AccountMembersTokensResponse>;