@epcc-sdk/sdks-shopper 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -401,18 +401,22 @@ const product = await getByContextProduct({
401
401
 
402
402
  - **`getV2AccountAddresses`** (`GET /v2/accounts/{accountID}/addresses`)
403
403
 
404
+ - **`postV2AccountAddress`** (`POST /v2/accounts/{accountID}/addresses`)
405
+
404
406
  - **`deleteV2AccountAddress`** (`DELETE /v2/accounts/{accountID}/addresses/{addressID}`)
405
407
 
406
408
  - **`getV2AccountAddress`** (`GET /v2/accounts/{accountID}/addresses/{addressID}`)
407
409
 
408
- - **`postV2AccountAddress`** (`POST /v2/accounts/{accountID}/addresses/{addressID}`)
409
-
410
410
  - **`putV2AccountAddress`** (`PUT /v2/accounts/{accountID}/addresses/{addressID}`)
411
411
 
412
412
  - **`getV2Accounts`** (`GET /v2/accounts`)
413
413
 
414
+ - **`postV2Accounts`** (`POST /v2/accounts`)
415
+
414
416
  - **`getV2AccountsAccountId`** (`GET /v2/accounts/{accountID}`)
415
417
 
418
+ - **`putV2AccountsAccountId`** (`PUT /v2/accounts/{accountID}`)
419
+
416
420
  - **`getV2AccountMembers`** (`GET /v2/account-members`)
417
421
 
418
422
  - **`getV2AccountMembersAccountMemberId`** (`GET /v2/account-members/{accountMemberID}`)
@@ -1,6 +1,6 @@
1
1
  import type { Options } from "@hey-api/client-fetch";
2
2
  import { type UseMutationOptions } from "@tanstack/react-query";
3
- 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
+ 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, PostV2AccountAddressData, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, GetV2AccountMembersData, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, PostV2AccountMembersTokensData } from "../types.gen";
4
4
  export declare const getByContextReleaseQueryKey: (options?: Options<GetByContextReleaseData>) => (Pick<Options<GetByContextReleaseData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
5
5
  _id: string;
6
6
  _infinite?: boolean;
@@ -1889,27 +1889,26 @@ export declare const getV2AccountAddressesOptions: (options: Options<GetV2Accoun
1889
1889
  [dataTagErrorSymbol]: Error;
1890
1890
  };
1891
1891
  };
1892
- export declare const deleteV2AccountAddressMutation: (options?: Partial<Options<DeleteV2AccountAddressData>>) => UseMutationOptions<void, import("../types.gen").AccountAddressesErrorResponse, Options<DeleteV2AccountAddressData>, unknown>;
1893
- export declare const getV2AccountAddressQueryKey: (options: Options<GetV2AccountAddressData>) => (Pick<Options<GetV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1892
+ export declare const postV2AccountAddressQueryKey: (options: Options<PostV2AccountAddressData>) => (Pick<Options<PostV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1894
1893
  _id: string;
1895
1894
  _infinite?: boolean;
1896
1895
  })[];
1897
- export declare const getV2AccountAddressOptions: (options: Options<GetV2AccountAddressData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1896
+ export declare const postV2AccountAddressOptions: (options: Options<PostV2AccountAddressData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1898
1897
  data?: import("../types.gen").AccountAddressResponse;
1899
1898
  }, Error, {
1900
1899
  data?: import("../types.gen").AccountAddressResponse;
1901
- }, (Pick<Options<GetV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1900
+ }, (Pick<Options<PostV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1902
1901
  _id: string;
1903
1902
  _infinite?: boolean;
1904
1903
  })[]>, "queryFn"> & {
1905
1904
  queryFn?: import("@tanstack/react-query").QueryFunction<{
1906
1905
  data?: import("../types.gen").AccountAddressResponse;
1907
- }, (Pick<Options<GetV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1906
+ }, (Pick<Options<PostV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1908
1907
  _id: string;
1909
1908
  _infinite?: boolean;
1910
1909
  })[], never> | undefined;
1911
1910
  } & {
1912
- queryKey: (Pick<Options<GetV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1911
+ queryKey: (Pick<Options<PostV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1913
1912
  _id: string;
1914
1913
  _infinite?: boolean;
1915
1914
  })[] & {
@@ -1919,26 +1918,30 @@ export declare const getV2AccountAddressOptions: (options: Options<GetV2AccountA
1919
1918
  [dataTagErrorSymbol]: Error;
1920
1919
  };
1921
1920
  };
1922
- export declare const postV2AccountAddressQueryKey: (options: Options<PostV2AccountAddressData>) => (Pick<Options<PostV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1921
+ export declare const postV2AccountAddressMutation: (options?: Partial<Options<PostV2AccountAddressData>>) => UseMutationOptions<{
1922
+ data?: import("../types.gen").AccountAddressResponse;
1923
+ }, import("../types.gen").AccountAddressesErrorResponse, Options<PostV2AccountAddressData>, unknown>;
1924
+ export declare const deleteV2AccountAddressMutation: (options?: Partial<Options<DeleteV2AccountAddressData>>) => UseMutationOptions<void, import("../types.gen").AccountAddressesErrorResponse, Options<DeleteV2AccountAddressData>, unknown>;
1925
+ export declare const getV2AccountAddressQueryKey: (options: Options<GetV2AccountAddressData>) => (Pick<Options<GetV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1923
1926
  _id: string;
1924
1927
  _infinite?: boolean;
1925
1928
  })[];
1926
- export declare const postV2AccountAddressOptions: (options: Options<PostV2AccountAddressData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1929
+ export declare const getV2AccountAddressOptions: (options: Options<GetV2AccountAddressData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1927
1930
  data?: import("../types.gen").AccountAddressResponse;
1928
1931
  }, Error, {
1929
1932
  data?: import("../types.gen").AccountAddressResponse;
1930
- }, (Pick<Options<PostV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1933
+ }, (Pick<Options<GetV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1931
1934
  _id: string;
1932
1935
  _infinite?: boolean;
1933
1936
  })[]>, "queryFn"> & {
1934
1937
  queryFn?: import("@tanstack/react-query").QueryFunction<{
1935
1938
  data?: import("../types.gen").AccountAddressResponse;
1936
- }, (Pick<Options<PostV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1939
+ }, (Pick<Options<GetV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1937
1940
  _id: string;
1938
1941
  _infinite?: boolean;
1939
1942
  })[], never> | undefined;
1940
1943
  } & {
1941
- queryKey: (Pick<Options<PostV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1944
+ queryKey: (Pick<Options<GetV2AccountAddressData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
1942
1945
  _id: string;
1943
1946
  _infinite?: boolean;
1944
1947
  })[] & {
@@ -1948,9 +1951,6 @@ export declare const postV2AccountAddressOptions: (options: Options<PostV2Accoun
1948
1951
  [dataTagErrorSymbol]: Error;
1949
1952
  };
1950
1953
  };
1951
- export declare const postV2AccountAddressMutation: (options?: Partial<Options<PostV2AccountAddressData>>) => UseMutationOptions<{
1952
- data?: import("../types.gen").AccountAddressResponse;
1953
- }, import("../types.gen").AccountAddressesErrorResponse, Options<PostV2AccountAddressData>, unknown>;
1954
1954
  export declare const putV2AccountAddressMutation: (options?: Partial<Options<PutV2AccountAddressData>>) => UseMutationOptions<{
1955
1955
  data?: import("../types.gen").AccountAddressResponse;
1956
1956
  }, import("../types.gen").AccountAddressesErrorResponse, Options<PutV2AccountAddressData>, unknown>;
@@ -2015,6 +2015,38 @@ export declare const getV2AccountsOptions: (options?: Options<GetV2AccountsData>
2015
2015
  [dataTagErrorSymbol]: Error;
2016
2016
  };
2017
2017
  };
2018
+ export declare const postV2AccountsQueryKey: (options?: Options<PostV2AccountsData>) => (Pick<Options<PostV2AccountsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2019
+ _id: string;
2020
+ _infinite?: boolean;
2021
+ })[];
2022
+ export declare const postV2AccountsOptions: (options?: Options<PostV2AccountsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
2023
+ data?: import("../types.gen").AccountResponse;
2024
+ }, Error, {
2025
+ data?: import("../types.gen").AccountResponse;
2026
+ }, (Pick<Options<PostV2AccountsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2027
+ _id: string;
2028
+ _infinite?: boolean;
2029
+ })[]>, "queryFn"> & {
2030
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
2031
+ data?: import("../types.gen").AccountResponse;
2032
+ }, (Pick<Options<PostV2AccountsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2033
+ _id: string;
2034
+ _infinite?: boolean;
2035
+ })[], never> | undefined;
2036
+ } & {
2037
+ queryKey: (Pick<Options<PostV2AccountsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2038
+ _id: string;
2039
+ _infinite?: boolean;
2040
+ })[] & {
2041
+ [dataTagSymbol]: {
2042
+ data?: import("../types.gen").AccountResponse;
2043
+ };
2044
+ [dataTagErrorSymbol]: Error;
2045
+ };
2046
+ };
2047
+ export declare const postV2AccountsMutation: (options?: Partial<Options<PostV2AccountsData>>) => UseMutationOptions<{
2048
+ data?: import("../types.gen").AccountResponse;
2049
+ }, import("../types.gen").AccountManagementErrorResponse, Options<PostV2AccountsData>, unknown>;
2018
2050
  export declare const getV2AccountsAccountIdQueryKey: (options: Options<GetV2AccountsAccountIdData>) => (Pick<Options<GetV2AccountsAccountIdData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2019
2051
  _id: string;
2020
2052
  _infinite?: boolean;
@@ -2044,6 +2076,25 @@ export declare const getV2AccountsAccountIdOptions: (options: Options<GetV2Accou
2044
2076
  [dataTagErrorSymbol]: Error;
2045
2077
  };
2046
2078
  };
2079
+ export declare const putV2AccountsAccountIdMutation: (options?: Partial<Options<PutV2AccountsAccountIdData>>) => UseMutationOptions<{
2080
+ data?: {
2081
+ id?: string;
2082
+ type?: string;
2083
+ name?: string;
2084
+ legal_name?: string;
2085
+ registration_id?: string;
2086
+ external_ref?: string;
2087
+ meta?: {
2088
+ timestamps?: {
2089
+ created_at?: Date;
2090
+ updated_at?: Date;
2091
+ };
2092
+ };
2093
+ links?: {
2094
+ self?: string;
2095
+ };
2096
+ };
2097
+ }, PutV2AccountsAccountIdError, Options<PutV2AccountsAccountIdData>, unknown>;
2047
2098
  export declare const getV2AccountMembersQueryKey: (options?: Options<GetV2AccountMembersData>) => (Pick<Options<GetV2AccountMembersData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2048
2099
  _id: string;
2049
2100
  _infinite?: boolean;
@@ -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, getV2AccountAddresses, deleteV2AccountAddress, getV2AccountAddress, postV2AccountAddress, putV2AccountAddress, getV2Accounts, getV2AccountsAccountId, getV2AccountMembers, getV2AccountMembersAccountMemberId, getV2AccountsAccountIdAccountMemberships, postV2AccountMembersTokens, 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, postV2AccountAddress, deleteV2AccountAddress, getV2AccountAddress, putV2AccountAddress, getV2Accounts, postV2Accounts, getV2AccountsAccountId, putV2AccountsAccountId, getV2AccountMembers, getV2AccountMembersAccountMemberId, getV2AccountsAccountIdAccountMemberships, postV2AccountMembersTokens, client, } from "../sdk.gen";
51
51
  var createQueryKey = function (id, options, infinite) {
52
52
  var _a;
53
53
  var params = {
@@ -2157,6 +2157,40 @@ export var getV2AccountAddressesOptions = function (options) {
2157
2157
  queryKey: getV2AccountAddressesQueryKey(options),
2158
2158
  });
2159
2159
  };
2160
+ export var postV2AccountAddressQueryKey = function (options) { return [createQueryKey("postV2AccountAddress", options)]; };
2161
+ export var postV2AccountAddressOptions = function (options) {
2162
+ return queryOptions({
2163
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2164
+ var data;
2165
+ var queryKey = _b.queryKey, signal = _b.signal;
2166
+ return __generator(this, function (_c) {
2167
+ switch (_c.label) {
2168
+ case 0: return [4 /*yield*/, postV2AccountAddress(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2169
+ case 1:
2170
+ data = (_c.sent()).data;
2171
+ return [2 /*return*/, data];
2172
+ }
2173
+ });
2174
+ }); },
2175
+ queryKey: postV2AccountAddressQueryKey(options),
2176
+ });
2177
+ };
2178
+ export var postV2AccountAddressMutation = function (options) {
2179
+ var mutationOptions = {
2180
+ mutationFn: function (localOptions) { return __awaiter(void 0, void 0, void 0, function () {
2181
+ var data;
2182
+ return __generator(this, function (_a) {
2183
+ switch (_a.label) {
2184
+ case 0: return [4 /*yield*/, postV2AccountAddress(__assign(__assign(__assign({}, options), localOptions), { throwOnError: true }))];
2185
+ case 1:
2186
+ data = (_a.sent()).data;
2187
+ return [2 /*return*/, data];
2188
+ }
2189
+ });
2190
+ }); },
2191
+ };
2192
+ return mutationOptions;
2193
+ };
2160
2194
  export var deleteV2AccountAddressMutation = function (options) {
2161
2195
  var mutationOptions = {
2162
2196
  mutationFn: function (localOptions) { return __awaiter(void 0, void 0, void 0, function () {
@@ -2191,47 +2225,67 @@ export var getV2AccountAddressOptions = function (options) {
2191
2225
  queryKey: getV2AccountAddressQueryKey(options),
2192
2226
  });
2193
2227
  };
2194
- export var postV2AccountAddressQueryKey = function (options) { return [createQueryKey("postV2AccountAddress", options)]; };
2195
- export var postV2AccountAddressOptions = function (options) {
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) {
2196
2248
  return queryOptions({
2197
2249
  queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2198
2250
  var data;
2199
2251
  var queryKey = _b.queryKey, signal = _b.signal;
2200
2252
  return __generator(this, function (_c) {
2201
2253
  switch (_c.label) {
2202
- case 0: return [4 /*yield*/, postV2AccountAddress(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2254
+ case 0: return [4 /*yield*/, getV2Accounts(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2203
2255
  case 1:
2204
2256
  data = (_c.sent()).data;
2205
2257
  return [2 /*return*/, data];
2206
2258
  }
2207
2259
  });
2208
2260
  }); },
2209
- queryKey: postV2AccountAddressQueryKey(options),
2261
+ queryKey: getV2AccountsQueryKey(options),
2210
2262
  });
2211
2263
  };
2212
- export var postV2AccountAddressMutation = function (options) {
2213
- var mutationOptions = {
2214
- mutationFn: function (localOptions) { return __awaiter(void 0, void 0, void 0, function () {
2264
+ export var postV2AccountsQueryKey = function (options) { return [createQueryKey("postV2Accounts", options)]; };
2265
+ export var postV2AccountsOptions = function (options) {
2266
+ return queryOptions({
2267
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2215
2268
  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 }))];
2269
+ var queryKey = _b.queryKey, signal = _b.signal;
2270
+ return __generator(this, function (_c) {
2271
+ switch (_c.label) {
2272
+ case 0: return [4 /*yield*/, postV2Accounts(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2219
2273
  case 1:
2220
- data = (_a.sent()).data;
2274
+ data = (_c.sent()).data;
2221
2275
  return [2 /*return*/, data];
2222
2276
  }
2223
2277
  });
2224
2278
  }); },
2225
- };
2226
- return mutationOptions;
2279
+ queryKey: postV2AccountsQueryKey(options),
2280
+ });
2227
2281
  };
2228
- export var putV2AccountAddressMutation = function (options) {
2282
+ export var postV2AccountsMutation = function (options) {
2229
2283
  var mutationOptions = {
2230
2284
  mutationFn: function (localOptions) { return __awaiter(void 0, void 0, void 0, function () {
2231
2285
  var data;
2232
2286
  return __generator(this, function (_a) {
2233
2287
  switch (_a.label) {
2234
- case 0: return [4 /*yield*/, putV2AccountAddress(__assign(__assign(__assign({}, options), localOptions), { throwOnError: true }))];
2288
+ case 0: return [4 /*yield*/, postV2Accounts(__assign(__assign(__assign({}, options), localOptions), { throwOnError: true }))];
2235
2289
  case 1:
2236
2290
  data = (_a.sent()).data;
2237
2291
  return [2 /*return*/, data];
@@ -2241,43 +2295,39 @@ export var putV2AccountAddressMutation = function (options) {
2241
2295
  };
2242
2296
  return mutationOptions;
2243
2297
  };
2244
- export var getV2AccountsQueryKey = function (options) { return [
2245
- createQueryKey("getV2Accounts", options),
2246
- ]; };
2247
- export var getV2AccountsOptions = function (options) {
2298
+ export var getV2AccountsAccountIdQueryKey = function (options) { return [createQueryKey("getV2AccountsAccountId", options)]; };
2299
+ export var getV2AccountsAccountIdOptions = function (options) {
2248
2300
  return queryOptions({
2249
2301
  queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2250
2302
  var data;
2251
2303
  var queryKey = _b.queryKey, signal = _b.signal;
2252
2304
  return __generator(this, function (_c) {
2253
2305
  switch (_c.label) {
2254
- case 0: return [4 /*yield*/, getV2Accounts(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2306
+ case 0: return [4 /*yield*/, getV2AccountsAccountId(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2255
2307
  case 1:
2256
2308
  data = (_c.sent()).data;
2257
2309
  return [2 /*return*/, data];
2258
2310
  }
2259
2311
  });
2260
2312
  }); },
2261
- queryKey: getV2AccountsQueryKey(options),
2313
+ queryKey: getV2AccountsAccountIdQueryKey(options),
2262
2314
  });
2263
2315
  };
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) {
2316
+ export var putV2AccountsAccountIdMutation = function (options) {
2317
+ var mutationOptions = {
2318
+ mutationFn: function (localOptions) { return __awaiter(void 0, void 0, void 0, function () {
2268
2319
  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 }))];
2320
+ return __generator(this, function (_a) {
2321
+ switch (_a.label) {
2322
+ case 0: return [4 /*yield*/, putV2AccountsAccountId(__assign(__assign(__assign({}, options), localOptions), { throwOnError: true }))];
2273
2323
  case 1:
2274
- data = (_c.sent()).data;
2324
+ data = (_a.sent()).data;
2275
2325
  return [2 /*return*/, data];
2276
2326
  }
2277
2327
  });
2278
2328
  }); },
2279
- queryKey: getV2AccountsAccountIdQueryKey(options),
2280
- });
2329
+ };
2330
+ return mutationOptions;
2281
2331
  };
2282
2332
  export var getV2AccountMembersQueryKey = function (options) { return [createQueryKey("getV2AccountMembers", options)]; };
2283
2333
  export var getV2AccountMembersOptions = function (options) {
@@ -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, GetV2AccountAddressesData, DeleteV2AccountAddressData, GetV2AccountAddressData, PostV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, GetV2AccountsAccountIdData, GetV2AccountMembersData, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, PostV2AccountMembersTokensData } 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, PostV2AccountAddressData, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, 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
@@ -2304,6 +2304,13 @@ export declare const createAnAccessToken: <ThrowOnError extends boolean = false>
2304
2304
  export declare const getV2AccountAddresses: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountAddressesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2305
2305
  data?: Array<import("./types.gen").AccountAddressResponse>;
2306
2306
  }, import("./types.gen").AccountAddressesErrorResponse, ThrowOnError>;
2307
+ /**
2308
+ * Create an Account Address
2309
+ * Create an Account Address
2310
+ */
2311
+ export declare const postV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<PostV2AccountAddressData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2312
+ data?: import("./types.gen").AccountAddressResponse;
2313
+ }, import("./types.gen").AccountAddressesErrorResponse, ThrowOnError>;
2307
2314
  /**
2308
2315
  * Delete an Account Address
2309
2316
  * Delete a specific account within a store
@@ -2316,13 +2323,6 @@ export declare const deleteV2AccountAddress: <ThrowOnError extends boolean = fal
2316
2323
  export declare const getV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountAddressData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2317
2324
  data?: import("./types.gen").AccountAddressResponse;
2318
2325
  }, 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
2326
  /**
2327
2327
  * Update an Account Address
2328
2328
  * Update an Account Address
@@ -2361,6 +2361,13 @@ export declare const getV2Accounts: <ThrowOnError extends boolean = false>(optio
2361
2361
  prev?: string;
2362
2362
  };
2363
2363
  }, import("./types.gen").AccountManagementErrorResponse, ThrowOnError>;
2364
+ /**
2365
+ * Create an Account
2366
+ * With the account creation endpoint, you have the ability to create accounts which can optionally have another account as a parent.
2367
+ */
2368
+ export declare const postV2Accounts: <ThrowOnError extends boolean = false>(options?: Options<PostV2AccountsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2369
+ data?: import("./types.gen").AccountResponse;
2370
+ }, import("./types.gen").AccountManagementErrorResponse, ThrowOnError>;
2364
2371
  /**
2365
2372
  * Get an Account
2366
2373
  * View a specific account contained within your store
@@ -2368,6 +2375,29 @@ export declare const getV2Accounts: <ThrowOnError extends boolean = false>(optio
2368
2375
  export declare const getV2AccountsAccountId: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountsAccountIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2369
2376
  data?: import("./types.gen").AccountResponse;
2370
2377
  }, import("./types.gen").AccountManagementErrorResponse, ThrowOnError>;
2378
+ /**
2379
+ * Update an Account
2380
+ * Update the information contained on an account.
2381
+ */
2382
+ export declare const putV2AccountsAccountId: <ThrowOnError extends boolean = false>(options: Options<PutV2AccountsAccountIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2383
+ data?: {
2384
+ id?: string;
2385
+ type?: string;
2386
+ name?: string;
2387
+ legal_name?: string;
2388
+ registration_id?: string;
2389
+ external_ref?: string;
2390
+ meta?: {
2391
+ timestamps?: {
2392
+ created_at?: Date;
2393
+ updated_at?: Date;
2394
+ };
2395
+ };
2396
+ links?: {
2397
+ self?: string;
2398
+ };
2399
+ };
2400
+ }, PutV2AccountsAccountIdError, ThrowOnError>;
2371
2401
  /**
2372
2402
  * Get all Account Members
2373
2403
  * Get all account members contained within your store.
@@ -3007,25 +3007,25 @@ export var getV2AccountAddresses = function (options) {
3007
3007
  ], url: "/v2/accounts/{accountID}/addresses" }));
3008
3008
  };
3009
3009
  /**
3010
- * Delete an Account Address
3011
- * Delete a specific account within a store
3010
+ * Create an Account Address
3011
+ * Create an Account Address
3012
3012
  */
3013
- export var deleteV2AccountAddress = function (options) {
3013
+ export var postV2AccountAddress = function (options) {
3014
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: [
3015
+ 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: [
3016
3016
  {
3017
3017
  scheme: "bearer",
3018
3018
  type: "http",
3019
3019
  },
3020
- ], url: "/v2/accounts/{accountID}/addresses/{addressID}" }));
3020
+ ], url: "/v2/accounts/{accountID}/addresses" }));
3021
3021
  };
3022
3022
  /**
3023
- * Get an Account Address
3024
- * Get an Account Addresses
3023
+ * Delete an Account Address
3024
+ * Delete a specific account within a store
3025
3025
  */
3026
- export var getV2AccountAddress = function (options) {
3026
+ export var deleteV2AccountAddress = function (options) {
3027
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: [
3028
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).delete(__assign(__assign({}, options), { security: [
3029
3029
  {
3030
3030
  scheme: "bearer",
3031
3031
  type: "http",
@@ -3033,12 +3033,12 @@ export var getV2AccountAddress = function (options) {
3033
3033
  ], url: "/v2/accounts/{accountID}/addresses/{addressID}" }));
3034
3034
  };
3035
3035
  /**
3036
- * Create an Account Address
3037
- * Create an Account Address
3036
+ * Get an Account Address
3037
+ * Get an Account Addresses
3038
3038
  */
3039
- export var postV2AccountAddress = function (options) {
3039
+ export var getV2AccountAddress = function (options) {
3040
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: [
3041
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3042
3042
  {
3043
3043
  scheme: "bearer",
3044
3044
  type: "http",
@@ -3087,6 +3087,19 @@ export var getV2Accounts = function (options) {
3087
3087
  },
3088
3088
  ], url: "/v2/accounts" }));
3089
3089
  };
3090
+ /**
3091
+ * Create an Account
3092
+ * With the account creation endpoint, you have the ability to create accounts which can optionally have another account as a parent.
3093
+ */
3094
+ export var postV2Accounts = function (options) {
3095
+ var _a;
3096
+ 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: [
3097
+ {
3098
+ scheme: "bearer",
3099
+ type: "http",
3100
+ },
3101
+ ], url: "/v2/accounts" }));
3102
+ };
3090
3103
  /**
3091
3104
  * Get an Account
3092
3105
  * View a specific account contained within your store
@@ -3100,6 +3113,19 @@ export var getV2AccountsAccountId = function (options) {
3100
3113
  },
3101
3114
  ], url: "/v2/accounts/{accountID}" }));
3102
3115
  };
3116
+ /**
3117
+ * Update an Account
3118
+ * Update the information contained on an account.
3119
+ */
3120
+ export var putV2AccountsAccountId = function (options) {
3121
+ var _a;
3122
+ 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: [
3123
+ {
3124
+ scheme: "bearer",
3125
+ type: "http",
3126
+ },
3127
+ ], url: "/v2/accounts/{accountID}" }));
3128
+ };
3103
3129
  /**
3104
3130
  * Get all Account Members
3105
3131
  * Get all account members contained within your store.
@@ -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, PostV2AccountMembersTokensResponse } 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, PutV2AccountsAccountIdResponse, 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,4 +43,5 @@ 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 putV2AccountsAccountIdResponseTransformer: (data: any) => Promise<PutV2AccountsAccountIdResponse>;
46
47
  export declare const postV2AccountMembersTokensResponseTransformer: (data: any) => Promise<PostV2AccountMembersTokensResponse>;
@@ -614,6 +614,26 @@ export var getStockResponseTransformer = function (data) { return __awaiter(void
614
614
  return [2 /*return*/, data];
615
615
  });
616
616
  }); };
617
+ export var putV2AccountsAccountIdResponseTransformer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
618
+ return __generator(this, function (_a) {
619
+ if (data.data) {
620
+ if (data.data.meta) {
621
+ if (data.data.meta.timestamps) {
622
+ if (data.data.meta.timestamps.created_at) {
623
+ data.data.meta.timestamps.created_at = new Date(data.data.meta.timestamps.created_at);
624
+ }
625
+ if (data.data.meta.timestamps.updated_at) {
626
+ data.data.meta.timestamps.updated_at = new Date(data.data.meta.timestamps.updated_at);
627
+ }
628
+ return [2 /*return*/, data.data.meta.timestamps];
629
+ }
630
+ return [2 /*return*/, data.data.meta];
631
+ }
632
+ return [2 /*return*/, data.data];
633
+ }
634
+ return [2 /*return*/, data];
635
+ });
636
+ }); };
617
637
  var accountManagementAuthenticationTokenResponseSchemaResponseTransformer = function (data) {
618
638
  if (data.expires) {
619
639
  data.expires = new Date(data.expires);
@@ -9015,6 +9015,39 @@ export type GetV2AccountAddressesResponses = {
9015
9015
  };
9016
9016
  };
9017
9017
  export type GetV2AccountAddressesResponse = GetV2AccountAddressesResponses[keyof GetV2AccountAddressesResponses];
9018
+ export type PostV2AccountAddressData = {
9019
+ body?: {
9020
+ data: Address;
9021
+ };
9022
+ path: {
9023
+ /**
9024
+ * The ID of the account you want to create an address for.
9025
+ */
9026
+ accountID: string;
9027
+ };
9028
+ query?: never;
9029
+ url: "/v2/accounts/{accountID}/addresses";
9030
+ };
9031
+ export type PostV2AccountAddressErrors = {
9032
+ /**
9033
+ * Bad Request
9034
+ */
9035
+ 400: AccountAddressesErrorResponse;
9036
+ /**
9037
+ * Not Found
9038
+ */
9039
+ 404: AccountAddressesErrorResponse;
9040
+ };
9041
+ export type PostV2AccountAddressError = PostV2AccountAddressErrors[keyof PostV2AccountAddressErrors];
9042
+ export type PostV2AccountAddressResponses = {
9043
+ /**
9044
+ * OK
9045
+ */
9046
+ 200: {
9047
+ data?: AccountAddressResponse;
9048
+ };
9049
+ };
9050
+ export type PostV2AccountAddressResponse = PostV2AccountAddressResponses[keyof PostV2AccountAddressResponses];
9018
9051
  export type DeleteV2AccountAddressData = {
9019
9052
  body?: never;
9020
9053
  path: {
@@ -9075,39 +9108,6 @@ export type GetV2AccountAddressResponses = {
9075
9108
  };
9076
9109
  };
9077
9110
  export type GetV2AccountAddressResponse = GetV2AccountAddressResponses[keyof GetV2AccountAddressResponses];
9078
- export type PostV2AccountAddressData = {
9079
- body?: {
9080
- data: Address;
9081
- };
9082
- path: {
9083
- /**
9084
- * The ID of the account you want to create an address for.
9085
- */
9086
- accountID: string;
9087
- };
9088
- query?: never;
9089
- url: "/v2/accounts/{accountID}/addresses/{addressID}";
9090
- };
9091
- export type PostV2AccountAddressErrors = {
9092
- /**
9093
- * Bad Request
9094
- */
9095
- 400: AccountAddressesErrorResponse;
9096
- /**
9097
- * Not Found
9098
- */
9099
- 404: AccountAddressesErrorResponse;
9100
- };
9101
- export type PostV2AccountAddressError = PostV2AccountAddressErrors[keyof PostV2AccountAddressErrors];
9102
- export type PostV2AccountAddressResponses = {
9103
- /**
9104
- * OK
9105
- */
9106
- 200: {
9107
- data?: AccountAddressResponse;
9108
- };
9109
- };
9110
- export type PostV2AccountAddressResponse = PostV2AccountAddressResponses[keyof PostV2AccountAddressResponses];
9111
9111
  export type PutV2AccountAddressData = {
9112
9112
  body?: {
9113
9113
  data: Address;
@@ -9211,6 +9211,34 @@ export type GetV2AccountsResponses = {
9211
9211
  };
9212
9212
  };
9213
9213
  export type GetV2AccountsResponse = GetV2AccountsResponses[keyof GetV2AccountsResponses];
9214
+ export type PostV2AccountsData = {
9215
+ body?: {
9216
+ data: Account & WritableParentId;
9217
+ };
9218
+ path?: never;
9219
+ query?: never;
9220
+ url: "/v2/accounts";
9221
+ };
9222
+ export type PostV2AccountsErrors = {
9223
+ /**
9224
+ * Bad Request
9225
+ */
9226
+ 400: AccountManagementErrorResponse;
9227
+ /**
9228
+ * Internal server error.
9229
+ */
9230
+ default: AccountManagementErrorResponse;
9231
+ };
9232
+ export type PostV2AccountsError = PostV2AccountsErrors[keyof PostV2AccountsErrors];
9233
+ export type PostV2AccountsResponses = {
9234
+ /**
9235
+ * Created
9236
+ */
9237
+ 201: {
9238
+ data?: AccountResponse;
9239
+ };
9240
+ };
9241
+ export type PostV2AccountsResponse = PostV2AccountsResponses[keyof PostV2AccountsResponses];
9214
9242
  export type GetV2AccountsAccountIdData = {
9215
9243
  body?: never;
9216
9244
  path: {
@@ -9242,6 +9270,98 @@ export type GetV2AccountsAccountIdResponses = {
9242
9270
  };
9243
9271
  };
9244
9272
  export type GetV2AccountsAccountIdResponse = GetV2AccountsAccountIdResponses[keyof GetV2AccountsAccountIdResponses];
9273
+ export type PutV2AccountsAccountIdData = {
9274
+ body?: {
9275
+ data: Account & ReadOnlyParentId;
9276
+ };
9277
+ path: {
9278
+ /**
9279
+ * The ID of the account you want to retrieve.
9280
+ */
9281
+ accountID: string;
9282
+ };
9283
+ query?: never;
9284
+ url: "/v2/accounts/{accountID}";
9285
+ };
9286
+ export type PutV2AccountsAccountIdErrors = {
9287
+ /**
9288
+ * Bad Request
9289
+ */
9290
+ 400: {
9291
+ errors?: Array<{
9292
+ detail?: string;
9293
+ status?: string;
9294
+ title?: string;
9295
+ }>;
9296
+ };
9297
+ /**
9298
+ * Not Found
9299
+ */
9300
+ 404: {
9301
+ errors?: Array<{
9302
+ detail?: string;
9303
+ status?: string;
9304
+ title?: string;
9305
+ }>;
9306
+ };
9307
+ /**
9308
+ * Internal server error.
9309
+ */
9310
+ default: AccountManagementErrorResponse;
9311
+ };
9312
+ export type PutV2AccountsAccountIdError = PutV2AccountsAccountIdErrors[keyof PutV2AccountsAccountIdErrors];
9313
+ export type PutV2AccountsAccountIdResponses = {
9314
+ /**
9315
+ * OK
9316
+ */
9317
+ 200: {
9318
+ data?: {
9319
+ /**
9320
+ * The unique identifier for an Account.
9321
+ */
9322
+ id?: string;
9323
+ /**
9324
+ * The type of the object returned. Always use account.
9325
+ */
9326
+ type?: string;
9327
+ /**
9328
+ * The name of the account.
9329
+ */
9330
+ name?: string;
9331
+ /**
9332
+ * The legal name of the account.
9333
+ */
9334
+ legal_name?: string;
9335
+ /**
9336
+ * The registration ID of the account. The maximum character limit for this field is 63.
9337
+ */
9338
+ registration_id?: string;
9339
+ /**
9340
+ * The optional external ID reference. For example, this could be an external reference from a separate company system. The maximum length is 2048 characters. Default is null.
9341
+ */
9342
+ external_ref?: string;
9343
+ meta?: {
9344
+ timestamps?: {
9345
+ /**
9346
+ * The date the account is created.
9347
+ */
9348
+ created_at?: Date;
9349
+ /**
9350
+ * The date the account is last updated.
9351
+ */
9352
+ updated_at?: Date;
9353
+ };
9354
+ };
9355
+ links?: {
9356
+ /**
9357
+ * A URL to the specific resource.
9358
+ */
9359
+ self?: string;
9360
+ };
9361
+ };
9362
+ };
9363
+ };
9364
+ export type PutV2AccountsAccountIdResponse = PutV2AccountsAccountIdResponses[keyof PutV2AccountsAccountIdResponses];
9245
9365
  export type GetV2AccountMembersData = {
9246
9366
  body?: never;
9247
9367
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epcc-sdk/sdks-shopper",
3
- "version": "0.0.16",
3
+ "version": "0.0.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "exports": {