@epcc-sdk/sdks-shopper 0.0.18 → 0.0.20

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
@@ -425,6 +425,14 @@ const product = await getByContextProduct({
425
425
 
426
426
  - **`postV2AccountMembersTokens`** (`POST /v2/account-members/tokens`)
427
427
 
428
+ - **`getAllCurrencies`** (`GET /v2/currencies`)
429
+
430
+ - **`getACurrency`** (`GET /v2/currencies/{currencyID}`)
431
+
432
+ - **`getAllFiles`** (`GET /v2/files`)
433
+
434
+ - **`getAFile`** (`GET /v2/files/{fileID}`)
435
+
428
436
 
429
437
 
430
438
  ---
@@ -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, PostV2AccountAddressData, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, 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, GetAllCurrenciesData, GetACurrencyData, GetAllFilesData, GetAFileData } 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;
@@ -2318,3 +2318,127 @@ export declare const postV2AccountMembersTokensMutation: (options?: Partial<Opti
2318
2318
  prev?: string;
2319
2319
  };
2320
2320
  }, import("../types.gen").AccountManagementErrorResponse, Options<PostV2AccountMembersTokensData>, unknown>;
2321
+ export declare const getAllCurrenciesQueryKey: (options?: Options<GetAllCurrenciesData>) => (Pick<Options<GetAllCurrenciesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2322
+ _id: string;
2323
+ _infinite?: boolean;
2324
+ })[];
2325
+ export declare const getAllCurrenciesOptions: (options?: Options<GetAllCurrenciesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").ResponseData & {
2326
+ data?: Array<import("../types.gen").ResponseCurrency>;
2327
+ }, Error, import("../types.gen").ResponseData & {
2328
+ data?: Array<import("../types.gen").ResponseCurrency>;
2329
+ }, (Pick<Options<GetAllCurrenciesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2330
+ _id: string;
2331
+ _infinite?: boolean;
2332
+ })[]>, "queryFn"> & {
2333
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").ResponseData & {
2334
+ data?: Array<import("../types.gen").ResponseCurrency>;
2335
+ }, (Pick<Options<GetAllCurrenciesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2336
+ _id: string;
2337
+ _infinite?: boolean;
2338
+ })[], never> | undefined;
2339
+ } & {
2340
+ queryKey: (Pick<Options<GetAllCurrenciesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2341
+ _id: string;
2342
+ _infinite?: boolean;
2343
+ })[] & {
2344
+ [dataTagSymbol]: import("../types.gen").ResponseData & {
2345
+ data?: Array<import("../types.gen").ResponseCurrency>;
2346
+ };
2347
+ [dataTagErrorSymbol]: Error;
2348
+ };
2349
+ };
2350
+ export declare const getACurrencyQueryKey: (options: Options<GetACurrencyData>) => (Pick<Options<GetACurrencyData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2351
+ _id: string;
2352
+ _infinite?: boolean;
2353
+ })[];
2354
+ export declare const getACurrencyOptions: (options: Options<GetACurrencyData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").ResponseData & {
2355
+ data?: Array<import("../types.gen").ResponseCurrency>;
2356
+ }, Error, import("../types.gen").ResponseData & {
2357
+ data?: Array<import("../types.gen").ResponseCurrency>;
2358
+ }, (Pick<Options<GetACurrencyData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2359
+ _id: string;
2360
+ _infinite?: boolean;
2361
+ })[]>, "queryFn"> & {
2362
+ queryFn?: import("@tanstack/react-query").QueryFunction<import("../types.gen").ResponseData & {
2363
+ data?: Array<import("../types.gen").ResponseCurrency>;
2364
+ }, (Pick<Options<GetACurrencyData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2365
+ _id: string;
2366
+ _infinite?: boolean;
2367
+ })[], never> | undefined;
2368
+ } & {
2369
+ queryKey: (Pick<Options<GetACurrencyData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2370
+ _id: string;
2371
+ _infinite?: boolean;
2372
+ })[] & {
2373
+ [dataTagSymbol]: import("../types.gen").ResponseData & {
2374
+ data?: Array<import("../types.gen").ResponseCurrency>;
2375
+ };
2376
+ [dataTagErrorSymbol]: Error;
2377
+ };
2378
+ };
2379
+ export declare const getAllFilesQueryKey: (options?: Options<GetAllFilesData>) => (Pick<Options<GetAllFilesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2380
+ _id: string;
2381
+ _infinite?: boolean;
2382
+ })[];
2383
+ export declare const getAllFilesOptions: (options?: Options<GetAllFilesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
2384
+ data?: Array<import("../types.gen").File>;
2385
+ meta?: import("../types.gen").ResultsMeta;
2386
+ links?: import("../types.gen").ResultsLinks;
2387
+ }, Error, {
2388
+ data?: Array<import("../types.gen").File>;
2389
+ meta?: import("../types.gen").ResultsMeta;
2390
+ links?: import("../types.gen").ResultsLinks;
2391
+ }, (Pick<Options<GetAllFilesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2392
+ _id: string;
2393
+ _infinite?: boolean;
2394
+ })[]>, "queryFn"> & {
2395
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
2396
+ data?: Array<import("../types.gen").File>;
2397
+ meta?: import("../types.gen").ResultsMeta;
2398
+ links?: import("../types.gen").ResultsLinks;
2399
+ }, (Pick<Options<GetAllFilesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2400
+ _id: string;
2401
+ _infinite?: boolean;
2402
+ })[], never> | undefined;
2403
+ } & {
2404
+ queryKey: (Pick<Options<GetAllFilesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2405
+ _id: string;
2406
+ _infinite?: boolean;
2407
+ })[] & {
2408
+ [dataTagSymbol]: {
2409
+ data?: Array<import("../types.gen").File>;
2410
+ meta?: import("../types.gen").ResultsMeta;
2411
+ links?: import("../types.gen").ResultsLinks;
2412
+ };
2413
+ [dataTagErrorSymbol]: Error;
2414
+ };
2415
+ };
2416
+ export declare const getAFileQueryKey: (options: Options<GetAFileData>) => (Pick<Options<GetAFileData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2417
+ _id: string;
2418
+ _infinite?: boolean;
2419
+ })[];
2420
+ export declare const getAFileOptions: (options: Options<GetAFileData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
2421
+ data?: import("../types.gen").File;
2422
+ }, Error, {
2423
+ data?: import("../types.gen").File;
2424
+ }, (Pick<Options<GetAFileData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2425
+ _id: string;
2426
+ _infinite?: boolean;
2427
+ })[]>, "queryFn"> & {
2428
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
2429
+ data?: import("../types.gen").File;
2430
+ }, (Pick<Options<GetAFileData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2431
+ _id: string;
2432
+ _infinite?: boolean;
2433
+ })[], never> | undefined;
2434
+ } & {
2435
+ queryKey: (Pick<Options<GetAFileData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
2436
+ _id: string;
2437
+ _infinite?: boolean;
2438
+ })[] & {
2439
+ [dataTagSymbol]: {
2440
+ data?: import("../types.gen").File;
2441
+ };
2442
+ [dataTagErrorSymbol]: Error;
2443
+ };
2444
+ };
@@ -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, postV2AccountAddress, deleteV2AccountAddress, getV2AccountAddress, putV2AccountAddress, getV2Accounts, postV2Accounts, getV2AccountsAccountId, putV2AccountsAccountId, 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, getAllCurrencies, getACurrency, getAllFiles, getAFile, client, } from "../sdk.gen";
51
51
  var createQueryKey = function (id, options, infinite) {
52
52
  var _a;
53
53
  var params = {
@@ -2417,3 +2417,81 @@ export var postV2AccountMembersTokensMutation = function (options) {
2417
2417
  };
2418
2418
  return mutationOptions;
2419
2419
  };
2420
+ export var getAllCurrenciesQueryKey = function (options) { return [createQueryKey("getAllCurrencies", options)]; };
2421
+ export var getAllCurrenciesOptions = function (options) {
2422
+ return queryOptions({
2423
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2424
+ var data;
2425
+ var queryKey = _b.queryKey, signal = _b.signal;
2426
+ return __generator(this, function (_c) {
2427
+ switch (_c.label) {
2428
+ case 0: return [4 /*yield*/, getAllCurrencies(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2429
+ case 1:
2430
+ data = (_c.sent()).data;
2431
+ return [2 /*return*/, data];
2432
+ }
2433
+ });
2434
+ }); },
2435
+ queryKey: getAllCurrenciesQueryKey(options),
2436
+ });
2437
+ };
2438
+ export var getACurrencyQueryKey = function (options) { return [
2439
+ createQueryKey("getACurrency", options),
2440
+ ]; };
2441
+ export var getACurrencyOptions = function (options) {
2442
+ return queryOptions({
2443
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2444
+ var data;
2445
+ var queryKey = _b.queryKey, signal = _b.signal;
2446
+ return __generator(this, function (_c) {
2447
+ switch (_c.label) {
2448
+ case 0: return [4 /*yield*/, getACurrency(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2449
+ case 1:
2450
+ data = (_c.sent()).data;
2451
+ return [2 /*return*/, data];
2452
+ }
2453
+ });
2454
+ }); },
2455
+ queryKey: getACurrencyQueryKey(options),
2456
+ });
2457
+ };
2458
+ export var getAllFilesQueryKey = function (options) { return [
2459
+ createQueryKey("getAllFiles", options),
2460
+ ]; };
2461
+ export var getAllFilesOptions = function (options) {
2462
+ return queryOptions({
2463
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2464
+ var data;
2465
+ var queryKey = _b.queryKey, signal = _b.signal;
2466
+ return __generator(this, function (_c) {
2467
+ switch (_c.label) {
2468
+ case 0: return [4 /*yield*/, getAllFiles(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2469
+ case 1:
2470
+ data = (_c.sent()).data;
2471
+ return [2 /*return*/, data];
2472
+ }
2473
+ });
2474
+ }); },
2475
+ queryKey: getAllFilesQueryKey(options),
2476
+ });
2477
+ };
2478
+ export var getAFileQueryKey = function (options) { return [
2479
+ createQueryKey("getAFile", options),
2480
+ ]; };
2481
+ export var getAFileOptions = function (options) {
2482
+ return queryOptions({
2483
+ queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
2484
+ var data;
2485
+ var queryKey = _b.queryKey, signal = _b.signal;
2486
+ return __generator(this, function (_c) {
2487
+ switch (_c.label) {
2488
+ case 0: return [4 /*yield*/, getAFile(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
2489
+ case 1:
2490
+ data = (_c.sent()).data;
2491
+ return [2 /*return*/, data];
2492
+ }
2493
+ });
2494
+ }); },
2495
+ queryKey: getAFileQueryKey(options),
2496
+ });
2497
+ };
@@ -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, PostV2AccountAddressData, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, 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, GetAllCurrenciesData, GetACurrencyData, GetAllFilesData, GetAFileData } 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
@@ -2486,3 +2486,57 @@ export declare const postV2AccountMembersTokens: <ThrowOnError extends boolean =
2486
2486
  prev?: string;
2487
2487
  };
2488
2488
  }, import("./types.gen").AccountManagementErrorResponse, ThrowOnError>;
2489
+ /**
2490
+ * Get all Currencies
2491
+ * :::caution
2492
+ *
2493
+ * This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.
2494
+ *
2495
+ * :::
2496
+ *
2497
+ */
2498
+ export declare const getAllCurrencies: <ThrowOnError extends boolean = false>(options?: Options<GetAllCurrenciesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResponseData & {
2499
+ data?: Array<import("./types.gen").ResponseCurrency>;
2500
+ }, import("./types.gen").ResponseError, ThrowOnError>;
2501
+ /**
2502
+ * Get a Currency
2503
+ * :::caution
2504
+ *
2505
+ * This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.
2506
+ *
2507
+ * :::
2508
+ *
2509
+ */
2510
+ export declare const getACurrency: <ThrowOnError extends boolean = false>(options: Options<GetACurrencyData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResponseData & {
2511
+ data?: Array<import("./types.gen").ResponseCurrency>;
2512
+ }, import("./types.gen").ResponseError, ThrowOnError>;
2513
+ /**
2514
+ * Get all Files
2515
+ * Retrieves all files.
2516
+ *
2517
+ * ### Filtering
2518
+ *
2519
+ * For general filtering syntax, see [Filtering](/guides/Getting-Started/filtering).
2520
+ *
2521
+ * The following operators and attributes are available when filtering on this endpoint.
2522
+ *
2523
+ * | Attribute | Type | Operators | Example |
2524
+ * |:----------------------|:----------|:--------------------------|:-------------|
2525
+ * | `file_name` | `string` | `eq` / `like` | `eq(file_name, my_image.jpg)` |
2526
+ * | `width` | `integer` | `gt` / `ge` / `lt` / `le` | `gt(width,200)` |
2527
+ * | `height` | `integer` | `gt` / `ge` / `lt` / `le` | `lt(height,500)` |
2528
+ * | `file_size` | `integer` | `gt` / `ge` / `lt` / `le` | `le(file_size,20953)` |
2529
+ *
2530
+ */
2531
+ export declare const getAllFiles: <ThrowOnError extends boolean = false>(options?: Options<GetAllFilesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2532
+ data?: Array<import("./types.gen").File>;
2533
+ meta?: import("./types.gen").ResultsMeta;
2534
+ links?: import("./types.gen").ResultsLinks;
2535
+ }, import("./types.gen").FilesErrorResponse, ThrowOnError>;
2536
+ /**
2537
+ * Get a File
2538
+ * Get a File
2539
+ */
2540
+ export declare const getAFile: <ThrowOnError extends boolean = false>(options: Options<GetAFileData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
2541
+ data?: import("./types.gen").File;
2542
+ }, import("./types.gen").FilesErrorResponse, ThrowOnError>;
@@ -3214,3 +3214,79 @@ export var postV2AccountMembersTokens = function (options) {
3214
3214
  },
3215
3215
  ], url: "/v2/account-members/tokens" }));
3216
3216
  };
3217
+ /**
3218
+ * Get all Currencies
3219
+ * :::caution
3220
+ *
3221
+ * This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.
3222
+ *
3223
+ * :::
3224
+ *
3225
+ */
3226
+ export var getAllCurrencies = function (options) {
3227
+ var _a;
3228
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3229
+ {
3230
+ scheme: "bearer",
3231
+ type: "http",
3232
+ },
3233
+ ], url: "/v2/currencies" }));
3234
+ };
3235
+ /**
3236
+ * Get a Currency
3237
+ * :::caution
3238
+ *
3239
+ * This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.
3240
+ *
3241
+ * :::
3242
+ *
3243
+ */
3244
+ export var getACurrency = function (options) {
3245
+ var _a;
3246
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3247
+ {
3248
+ scheme: "bearer",
3249
+ type: "http",
3250
+ },
3251
+ ], url: "/v2/currencies/{currencyID}" }));
3252
+ };
3253
+ /**
3254
+ * Get all Files
3255
+ * Retrieves all files.
3256
+ *
3257
+ * ### Filtering
3258
+ *
3259
+ * For general filtering syntax, see [Filtering](/guides/Getting-Started/filtering).
3260
+ *
3261
+ * The following operators and attributes are available when filtering on this endpoint.
3262
+ *
3263
+ * | Attribute | Type | Operators | Example |
3264
+ * |:----------------------|:----------|:--------------------------|:-------------|
3265
+ * | `file_name` | `string` | `eq` / `like` | `eq(file_name, my_image.jpg)` |
3266
+ * | `width` | `integer` | `gt` / `ge` / `lt` / `le` | `gt(width,200)` |
3267
+ * | `height` | `integer` | `gt` / `ge` / `lt` / `le` | `lt(height,500)` |
3268
+ * | `file_size` | `integer` | `gt` / `ge` / `lt` / `le` | `le(file_size,20953)` |
3269
+ *
3270
+ */
3271
+ export var getAllFiles = function (options) {
3272
+ var _a;
3273
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3274
+ {
3275
+ scheme: "bearer",
3276
+ type: "http",
3277
+ },
3278
+ ], url: "/v2/files" }));
3279
+ };
3280
+ /**
3281
+ * Get a File
3282
+ * Get a File
3283
+ */
3284
+ export var getAFile = function (options) {
3285
+ var _a;
3286
+ return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
3287
+ {
3288
+ scheme: "bearer",
3289
+ type: "http",
3290
+ },
3291
+ ], url: "/v2/files/{fileID}" }));
3292
+ };
@@ -5551,6 +5551,271 @@ export type AccountManagementError = {
5551
5551
  export type AccountManagementErrorResponse = {
5552
5552
  errors: Array<AccountManagementError>;
5553
5553
  };
5554
+ export type DataCreateCurrencies = {
5555
+ /**
5556
+ * Specifies the currency code. Example YEN.
5557
+ */
5558
+ code: string;
5559
+ /**
5560
+ * Indicates how many decimal places the currency is formatted to.
5561
+ */
5562
+ decimal_places: number;
5563
+ /**
5564
+ * Indicates the decimal point character.
5565
+ */
5566
+ decimal_point: string;
5567
+ /**
5568
+ * Specifies whether this is the default currency or not. Either `true` or `false`.
5569
+ */
5570
+ default: boolean;
5571
+ /**
5572
+ * Specifies if this currency is available for products. Either `true` or `false`.
5573
+ */
5574
+ enabled: boolean;
5575
+ /**
5576
+ * Specifies the exchange rate from the default currency.
5577
+ */
5578
+ exchange_rate: number;
5579
+ /**
5580
+ * Specifies how the price currency is displayed. For example, "¥{price}".
5581
+ */
5582
+ format: string;
5583
+ /**
5584
+ * Indicates the thousand separator character.
5585
+ */
5586
+ thousand_separator: string;
5587
+ /**
5588
+ * Represents the type represents the object being returned.
5589
+ */
5590
+ type: string;
5591
+ };
5592
+ export type RequestCreateCurrencies = {
5593
+ data?: DataCreateCurrencies;
5594
+ };
5595
+ export type DataUpdateCurrencies = {
5596
+ /**
5597
+ * Specifies whether this is the default currency or not. Either `true` or `false`.
5598
+ */
5599
+ default?: boolean;
5600
+ };
5601
+ export type RequestUpdateCurrencies = {
5602
+ data?: DataUpdateCurrencies;
5603
+ };
5604
+ export type ResponseCurrency = {
5605
+ /**
5606
+ * The unique identifier for this currency.
5607
+ */
5608
+ id?: string;
5609
+ /**
5610
+ * Represents the type represents the object being returned.
5611
+ */
5612
+ type?: string;
5613
+ /**
5614
+ * Specifies the currency code. For example, YEN.
5615
+ */
5616
+ code?: string;
5617
+ /**
5618
+ * Specifies the exchange rate from the default currency.
5619
+ */
5620
+ exchange_rate?: number;
5621
+ /**
5622
+ * Specifies how the price currency is displayed. For example, "£{price}".
5623
+ */
5624
+ format?: string;
5625
+ /**
5626
+ * Indicates the decimal point character.
5627
+ */
5628
+ decimal_point?: string;
5629
+ /**
5630
+ * Indicates the thousand separator character.
5631
+ */
5632
+ thousand_separator?: string;
5633
+ /**
5634
+ * Indicates how many decimal places the currency is formatted to.
5635
+ */
5636
+ decimal_places?: number;
5637
+ /**
5638
+ * Specifies whether this is the default currency or not. Either `true` or `false`.
5639
+ */
5640
+ default?: boolean;
5641
+ /**
5642
+ * Specifies if this currency is available for products. Either `true` or `false`.
5643
+ */
5644
+ enabled?: boolean;
5645
+ links?: SelfLink2;
5646
+ meta?: ResponseMetaCurrency;
5647
+ };
5648
+ export type ResponseMetaCurrency = {
5649
+ timestamps?: Timestamps;
5650
+ /**
5651
+ * Indicates whether the owner is store or org.
5652
+ */
5653
+ owner?: string;
5654
+ };
5655
+ export type Timestamps = {
5656
+ /**
5657
+ * Indicates the creation date of this currency.
5658
+ */
5659
+ created_at?: string;
5660
+ /**
5661
+ * Indicates the updated date of this currency.
5662
+ */
5663
+ updated_at?: unknown;
5664
+ };
5665
+ export type SelfLink2 = {
5666
+ /**
5667
+ * Specifies the URL of this currency.
5668
+ */
5669
+ self?: string;
5670
+ };
5671
+ export type File = {
5672
+ /**
5673
+ * The unique identifier for this file.
5674
+ */
5675
+ id?: FilesUuid;
5676
+ /**
5677
+ * The type represents the object being returned.
5678
+ */
5679
+ type?: string;
5680
+ /**
5681
+ * The name of the file.
5682
+ */
5683
+ file_name?: string;
5684
+ /**
5685
+ * The mime type of the file.
5686
+ */
5687
+ mime_type?: string;
5688
+ /**
5689
+ * The size of the file. Required when uploading files.
5690
+ */
5691
+ file_size?: number;
5692
+ /**
5693
+ * DEPRECATED Whether the file public or not. Required when uploading files.
5694
+ */
5695
+ public?: boolean;
5696
+ meta?: FileMeta2;
5697
+ links?: FilesLinks;
5698
+ link?: FileLink2;
5699
+ };
5700
+ export type FileMeta2 = {
5701
+ /**
5702
+ * The date and time the file was created.
5703
+ */
5704
+ timestamps?: {
5705
+ /**
5706
+ * The date and time the file was created.
5707
+ */
5708
+ created_at?: string;
5709
+ };
5710
+ /**
5711
+ * The file dimensions.
5712
+ */
5713
+ dimensions?: {
5714
+ /**
5715
+ * The width of the file.
5716
+ */
5717
+ width?: number;
5718
+ /**
5719
+ * The height of the file.
5720
+ */
5721
+ height?: number;
5722
+ };
5723
+ };
5724
+ export type ResultsMeta = {
5725
+ /**
5726
+ * Contains the results for the entire collection.
5727
+ */
5728
+ page?: {
5729
+ /**
5730
+ * The maximum number of records for all pages.
5731
+ */
5732
+ limit?: number;
5733
+ /**
5734
+ * The current offset by number of pages.
5735
+ */
5736
+ offset?: number;
5737
+ /**
5738
+ * The current number of pages.
5739
+ */
5740
+ current?: number;
5741
+ /**
5742
+ * The total number of records for the entire collection.
5743
+ */
5744
+ total?: number;
5745
+ };
5746
+ /**
5747
+ * Contains the results for the entire collection.
5748
+ */
5749
+ results?: {
5750
+ /**
5751
+ * The total number of records for the entire collection.
5752
+ */
5753
+ total?: number;
5754
+ };
5755
+ };
5756
+ /**
5757
+ * Links are used to allow you to move between requests.
5758
+ */
5759
+ export type ResultsLinks = {
5760
+ /**
5761
+ * Single entities use a self parameter with a link to that specific resource.
5762
+ */
5763
+ self?: string | null;
5764
+ /**
5765
+ * Always the first page.
5766
+ */
5767
+ first?: string | null;
5768
+ /**
5769
+ * This is `null` if there is only one page.
5770
+ */
5771
+ last?: string | null;
5772
+ };
5773
+ /**
5774
+ * The publicly available URL for this file.
5775
+ */
5776
+ export type FileLink2 = {
5777
+ /**
5778
+ * The publicly available URL for this file.
5779
+ */
5780
+ href?: string;
5781
+ };
5782
+ export type FilesErrorResponse = {
5783
+ errors: Array<FilesError>;
5784
+ };
5785
+ /**
5786
+ * Links are used to allow you to move between requests.
5787
+ */
5788
+ export type FilesLinks = {
5789
+ /**
5790
+ * Single entities use a self parameter with a link to that specific resource.
5791
+ */
5792
+ self?: string;
5793
+ };
5794
+ export type FilesUuid = string;
5795
+ export type FilesError = {
5796
+ /**
5797
+ * The HTTP response code of the error.
5798
+ */
5799
+ status: number;
5800
+ /**
5801
+ * A brief summary of the error.
5802
+ */
5803
+ title: string;
5804
+ /**
5805
+ * Optional additional detail about the error.
5806
+ */
5807
+ detail?: string;
5808
+ /**
5809
+ * Internal request ID.
5810
+ */
5811
+ request_id?: string;
5812
+ /**
5813
+ * Additional supporting meta data for the error.
5814
+ */
5815
+ meta?: {
5816
+ [key: string]: unknown;
5817
+ };
5818
+ };
5554
5819
  /**
5555
5820
  * The language and locale your storefront prefers. See [Accept-Language](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language).
5556
5821
  */
@@ -5656,6 +5921,20 @@ export type IncludeAccount = string;
5656
5921
  * Supported attributes are `created_at`, `email`, `id`, `name`, or `updated_at`. When specified, the results are sorted in ascending order based on the value of the field. To sort in descending order, prefix the attribute with `-`, for example, `-updated_at`. The default sort order is `created_at` in descending order. For more information, see [Sorting](/guides/Getting-Started/sorting).
5657
5922
  */
5658
5923
  export type Sort = string;
5924
+ /**
5925
+ *
5926
+ * Filtering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).
5927
+ *
5928
+ */
5929
+ export type Filesfilter = string;
5930
+ /**
5931
+ * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
5932
+ */
5933
+ export type FilespageOffset = string;
5934
+ /**
5935
+ * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
5936
+ */
5937
+ export type FilespageLimit = string;
5659
5938
  /**
5660
5939
  * The bundle configuration.
5661
5940
  */
@@ -9595,3 +9874,128 @@ export type PostV2AccountMembersTokensResponses = {
9595
9874
  };
9596
9875
  };
9597
9876
  export type PostV2AccountMembersTokensResponse = PostV2AccountMembersTokensResponses[keyof PostV2AccountMembersTokensResponses];
9877
+ export type GetAllCurrenciesData = {
9878
+ body?: never;
9879
+ path?: never;
9880
+ query?: {
9881
+ /**
9882
+ * The number of records to offset the results by.
9883
+ */
9884
+ "page[offset]"?: string;
9885
+ /**
9886
+ * The number of records per page.
9887
+ */
9888
+ "page[limit]"?: string;
9889
+ };
9890
+ url: "/v2/currencies";
9891
+ };
9892
+ export type GetAllCurrenciesErrors = {
9893
+ /**
9894
+ * Unauthorized
9895
+ */
9896
+ 401: ResponseError;
9897
+ };
9898
+ export type GetAllCurrenciesError = GetAllCurrenciesErrors[keyof GetAllCurrenciesErrors];
9899
+ export type GetAllCurrenciesResponses = {
9900
+ /**
9901
+ * OK
9902
+ */
9903
+ 200: ResponseData & {
9904
+ data?: Array<ResponseCurrency>;
9905
+ };
9906
+ };
9907
+ export type GetAllCurrenciesResponse = GetAllCurrenciesResponses[keyof GetAllCurrenciesResponses];
9908
+ export type GetACurrencyData = {
9909
+ body?: never;
9910
+ path: {
9911
+ /**
9912
+ * The ID for the requested currency.
9913
+ */
9914
+ currencyID: string;
9915
+ };
9916
+ query?: never;
9917
+ url: "/v2/currencies/{currencyID}";
9918
+ };
9919
+ export type GetACurrencyErrors = {
9920
+ /**
9921
+ * Unauthorized
9922
+ */
9923
+ 401: ResponseError;
9924
+ };
9925
+ export type GetACurrencyError = GetACurrencyErrors[keyof GetACurrencyErrors];
9926
+ export type GetACurrencyResponses = {
9927
+ /**
9928
+ * OK
9929
+ */
9930
+ 200: ResponseData & {
9931
+ data?: Array<ResponseCurrency>;
9932
+ };
9933
+ };
9934
+ export type GetACurrencyResponse = GetACurrencyResponses[keyof GetACurrencyResponses];
9935
+ export type GetAllFilesData = {
9936
+ body?: never;
9937
+ path?: never;
9938
+ query?: {
9939
+ /**
9940
+ *
9941
+ * Filtering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).
9942
+ *
9943
+ */
9944
+ filter?: string;
9945
+ /**
9946
+ * The maximum number of records per page for this response. You can set this value up to 100. If no page size is set, the the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
9947
+ */
9948
+ "page[limit]"?: string;
9949
+ /**
9950
+ * The current offset by number of records, not pages. Offset is zero-based. The maximum records you can offset is 10,000. If no page size is set, the [**page length**](/docs/commerce-cloud/global-project-settings/settings-overview#page-length) store setting is used.
9951
+ */
9952
+ "page[offset]"?: string;
9953
+ };
9954
+ url: "/v2/files";
9955
+ };
9956
+ export type GetAllFilesErrors = {
9957
+ /**
9958
+ * Internal server error. There was a system failure in the platform.
9959
+ */
9960
+ 500: FilesErrorResponse;
9961
+ };
9962
+ export type GetAllFilesError = GetAllFilesErrors[keyof GetAllFilesErrors];
9963
+ export type GetAllFilesResponses = {
9964
+ /**
9965
+ * OK
9966
+ */
9967
+ 200: {
9968
+ data?: Array<File>;
9969
+ meta?: ResultsMeta;
9970
+ links?: ResultsLinks;
9971
+ };
9972
+ };
9973
+ export type GetAllFilesResponse = GetAllFilesResponses[keyof GetAllFilesResponses];
9974
+ export type GetAFileData = {
9975
+ body?: never;
9976
+ path: {
9977
+ /**
9978
+ * The unique identifier for a file.
9979
+ */
9980
+ fileID: string;
9981
+ };
9982
+ query?: never;
9983
+ url: "/v2/files/{fileID}";
9984
+ };
9985
+ export type GetAFileErrors = {
9986
+ /**
9987
+ * Forbidden. The operation is forbidden on this entity.
9988
+ */
9989
+ 404: FilesErrorResponse;
9990
+ /**
9991
+ * Internal server error. There was a system failure in the platform.
9992
+ */
9993
+ 500: FilesErrorResponse;
9994
+ };
9995
+ export type GetAFileError = GetAFileErrors[keyof GetAFileErrors];
9996
+ export type GetAFileResponses = {
9997
+ 200: {
9998
+ data?: File;
9999
+ };
10000
+ };
10001
+ export type GetAFileResponse = GetAFileResponses[keyof GetAFileResponses];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epcc-sdk/sdks-shopper",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -49,7 +49,7 @@
49
49
  "oas:openapi-ts": "openapi-ts",
50
50
  "oas:redocly": "redocly --config ./redocly.json",
51
51
  "oas:redocly:lint": "redocly lint --config ../specs/config/redocly.yaml",
52
- "oas:redocly:join:shopper": "redocly join --config ../specs/config/redocly.yaml --output ../specs/shopper.yaml ../specs/bundled/catalog_view_3.1.yaml ../specs/bundled/cart_checkout.yaml ../specs/bundled/subscriptions_3.1.yaml ../specs/bundled/inventories_3.1.yaml ../specs/bundled/authentication.yaml ../specs/bundled/account-addresses.yaml ../specs/bundled/account_management.yaml",
52
+ "oas:redocly:join:shopper": "redocly join --config ../specs/config/redocly.yaml --output ../specs/shopper.yaml ../specs/bundled/catalog_view_3.1.yaml ../specs/bundled/cart_checkout.yaml ../specs/bundled/subscriptions_3.1.yaml ../specs/bundled/inventories_3.1.yaml ../specs/bundled/authentication.yaml ../specs/bundled/account-addresses.yaml ../specs/bundled/account_management.yaml ../specs/bundled/currencies.yaml ../specs/bundled/files.yaml",
53
53
  "oas:redocly:bundle": "redocly bundle --config ../specs/config/redocly.yaml",
54
54
  "oas:openapi-format:convert": "pnpm dlx openapi-format ../specs/bundled/catalog_view.yaml -o ../specs/bundled/catalog_view_3.1.yaml --convertTo \"3.1\" && pnpm dlx openapi-format ../specs/bundled/subscriptions.yaml -o ../specs/bundled/subscriptions_3.1.yaml --convertTo \"3.1\" && pnpm dlx openapi-format ../specs/bundled/inventories.yaml -o ../specs/bundled/inventories_3.1.yaml --convertTo \"3.1\""
55
55
  }