@epcc-sdk/sdks-shopper 0.0.19 → 0.0.21
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
|
@@ -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, GetAllCurrenciesData, GetACurrencyData } 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;
|
|
@@ -2376,3 +2376,69 @@ export declare const getACurrencyOptions: (options: Options<GetACurrencyData>) =
|
|
|
2376
2376
|
[dataTagErrorSymbol]: Error;
|
|
2377
2377
|
};
|
|
2378
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, getAllCurrencies, getACurrency, 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 = {
|
|
@@ -2455,3 +2455,43 @@ export var getACurrencyOptions = function (options) {
|
|
|
2455
2455
|
queryKey: getACurrencyQueryKey(options),
|
|
2456
2456
|
});
|
|
2457
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
|
+
};
|
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -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, GetAllCurrenciesData, GetACurrencyData } 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
|
|
@@ -2510,3 +2510,33 @@ export declare const getAllCurrencies: <ThrowOnError extends boolean = false>(op
|
|
|
2510
2510
|
export declare const getACurrency: <ThrowOnError extends boolean = false>(options: Options<GetACurrencyData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResponseData & {
|
|
2511
2511
|
data?: Array<import("./types.gen").ResponseCurrency>;
|
|
2512
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>;
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -3250,3 +3250,43 @@ export var getACurrency = function (options) {
|
|
|
3250
3250
|
},
|
|
3251
3251
|
], url: "/v2/currencies/{currencyID}" }));
|
|
3252
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
|
+
};
|
|
@@ -2954,13 +2954,15 @@ export type OrderResponse = {
|
|
|
2954
2954
|
};
|
|
2955
2955
|
export type OrderMeta = {
|
|
2956
2956
|
timestamps?: CartCheckoutTimestamps;
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2957
|
+
display_price?: {
|
|
2958
|
+
with_tax?: FormattedPriceData;
|
|
2959
|
+
without_tax?: FormattedPriceData;
|
|
2960
|
+
tax?: FormattedPriceData;
|
|
2961
|
+
discount?: FormattedPriceData;
|
|
2962
|
+
paid?: FormattedPriceData;
|
|
2963
|
+
authorized?: FormattedPriceData;
|
|
2964
|
+
without_discount?: FormattedPriceData;
|
|
2965
|
+
};
|
|
2964
2966
|
};
|
|
2965
2967
|
export type CustomerCheckout = {
|
|
2966
2968
|
data?: {
|
|
@@ -5668,6 +5670,154 @@ export type SelfLink2 = {
|
|
|
5668
5670
|
*/
|
|
5669
5671
|
self?: string;
|
|
5670
5672
|
};
|
|
5673
|
+
export type File = {
|
|
5674
|
+
/**
|
|
5675
|
+
* The unique identifier for this file.
|
|
5676
|
+
*/
|
|
5677
|
+
id?: FilesUuid;
|
|
5678
|
+
/**
|
|
5679
|
+
* The type represents the object being returned.
|
|
5680
|
+
*/
|
|
5681
|
+
type?: string;
|
|
5682
|
+
/**
|
|
5683
|
+
* The name of the file.
|
|
5684
|
+
*/
|
|
5685
|
+
file_name?: string;
|
|
5686
|
+
/**
|
|
5687
|
+
* The mime type of the file.
|
|
5688
|
+
*/
|
|
5689
|
+
mime_type?: string;
|
|
5690
|
+
/**
|
|
5691
|
+
* The size of the file. Required when uploading files.
|
|
5692
|
+
*/
|
|
5693
|
+
file_size?: number;
|
|
5694
|
+
/**
|
|
5695
|
+
* DEPRECATED Whether the file public or not. Required when uploading files.
|
|
5696
|
+
*/
|
|
5697
|
+
public?: boolean;
|
|
5698
|
+
meta?: FileMeta2;
|
|
5699
|
+
links?: FilesLinks;
|
|
5700
|
+
link?: FileLink2;
|
|
5701
|
+
};
|
|
5702
|
+
export type FileMeta2 = {
|
|
5703
|
+
/**
|
|
5704
|
+
* The date and time the file was created.
|
|
5705
|
+
*/
|
|
5706
|
+
timestamps?: {
|
|
5707
|
+
/**
|
|
5708
|
+
* The date and time the file was created.
|
|
5709
|
+
*/
|
|
5710
|
+
created_at?: string;
|
|
5711
|
+
};
|
|
5712
|
+
/**
|
|
5713
|
+
* The file dimensions.
|
|
5714
|
+
*/
|
|
5715
|
+
dimensions?: {
|
|
5716
|
+
/**
|
|
5717
|
+
* The width of the file.
|
|
5718
|
+
*/
|
|
5719
|
+
width?: number;
|
|
5720
|
+
/**
|
|
5721
|
+
* The height of the file.
|
|
5722
|
+
*/
|
|
5723
|
+
height?: number;
|
|
5724
|
+
};
|
|
5725
|
+
};
|
|
5726
|
+
export type ResultsMeta = {
|
|
5727
|
+
/**
|
|
5728
|
+
* Contains the results for the entire collection.
|
|
5729
|
+
*/
|
|
5730
|
+
page?: {
|
|
5731
|
+
/**
|
|
5732
|
+
* The maximum number of records for all pages.
|
|
5733
|
+
*/
|
|
5734
|
+
limit?: number;
|
|
5735
|
+
/**
|
|
5736
|
+
* The current offset by number of pages.
|
|
5737
|
+
*/
|
|
5738
|
+
offset?: number;
|
|
5739
|
+
/**
|
|
5740
|
+
* The current number of pages.
|
|
5741
|
+
*/
|
|
5742
|
+
current?: number;
|
|
5743
|
+
/**
|
|
5744
|
+
* The total number of records for the entire collection.
|
|
5745
|
+
*/
|
|
5746
|
+
total?: number;
|
|
5747
|
+
};
|
|
5748
|
+
/**
|
|
5749
|
+
* Contains the results for the entire collection.
|
|
5750
|
+
*/
|
|
5751
|
+
results?: {
|
|
5752
|
+
/**
|
|
5753
|
+
* The total number of records for the entire collection.
|
|
5754
|
+
*/
|
|
5755
|
+
total?: number;
|
|
5756
|
+
};
|
|
5757
|
+
};
|
|
5758
|
+
/**
|
|
5759
|
+
* Links are used to allow you to move between requests.
|
|
5760
|
+
*/
|
|
5761
|
+
export type ResultsLinks = {
|
|
5762
|
+
/**
|
|
5763
|
+
* Single entities use a self parameter with a link to that specific resource.
|
|
5764
|
+
*/
|
|
5765
|
+
self?: string | null;
|
|
5766
|
+
/**
|
|
5767
|
+
* Always the first page.
|
|
5768
|
+
*/
|
|
5769
|
+
first?: string | null;
|
|
5770
|
+
/**
|
|
5771
|
+
* This is `null` if there is only one page.
|
|
5772
|
+
*/
|
|
5773
|
+
last?: string | null;
|
|
5774
|
+
};
|
|
5775
|
+
/**
|
|
5776
|
+
* The publicly available URL for this file.
|
|
5777
|
+
*/
|
|
5778
|
+
export type FileLink2 = {
|
|
5779
|
+
/**
|
|
5780
|
+
* The publicly available URL for this file.
|
|
5781
|
+
*/
|
|
5782
|
+
href?: string;
|
|
5783
|
+
};
|
|
5784
|
+
export type FilesErrorResponse = {
|
|
5785
|
+
errors: Array<FilesError>;
|
|
5786
|
+
};
|
|
5787
|
+
/**
|
|
5788
|
+
* Links are used to allow you to move between requests.
|
|
5789
|
+
*/
|
|
5790
|
+
export type FilesLinks = {
|
|
5791
|
+
/**
|
|
5792
|
+
* Single entities use a self parameter with a link to that specific resource.
|
|
5793
|
+
*/
|
|
5794
|
+
self?: string;
|
|
5795
|
+
};
|
|
5796
|
+
export type FilesUuid = string;
|
|
5797
|
+
export type FilesError = {
|
|
5798
|
+
/**
|
|
5799
|
+
* The HTTP response code of the error.
|
|
5800
|
+
*/
|
|
5801
|
+
status: number;
|
|
5802
|
+
/**
|
|
5803
|
+
* A brief summary of the error.
|
|
5804
|
+
*/
|
|
5805
|
+
title: string;
|
|
5806
|
+
/**
|
|
5807
|
+
* Optional additional detail about the error.
|
|
5808
|
+
*/
|
|
5809
|
+
detail?: string;
|
|
5810
|
+
/**
|
|
5811
|
+
* Internal request ID.
|
|
5812
|
+
*/
|
|
5813
|
+
request_id?: string;
|
|
5814
|
+
/**
|
|
5815
|
+
* Additional supporting meta data for the error.
|
|
5816
|
+
*/
|
|
5817
|
+
meta?: {
|
|
5818
|
+
[key: string]: unknown;
|
|
5819
|
+
};
|
|
5820
|
+
};
|
|
5671
5821
|
/**
|
|
5672
5822
|
* The language and locale your storefront prefers. See [Accept-Language](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language).
|
|
5673
5823
|
*/
|
|
@@ -5773,6 +5923,20 @@ export type IncludeAccount = string;
|
|
|
5773
5923
|
* 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).
|
|
5774
5924
|
*/
|
|
5775
5925
|
export type Sort = string;
|
|
5926
|
+
/**
|
|
5927
|
+
*
|
|
5928
|
+
* Filtering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).
|
|
5929
|
+
*
|
|
5930
|
+
*/
|
|
5931
|
+
export type Filesfilter = string;
|
|
5932
|
+
/**
|
|
5933
|
+
* 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.
|
|
5934
|
+
*/
|
|
5935
|
+
export type FilespageOffset = string;
|
|
5936
|
+
/**
|
|
5937
|
+
* 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.
|
|
5938
|
+
*/
|
|
5939
|
+
export type FilespageLimit = string;
|
|
5776
5940
|
/**
|
|
5777
5941
|
* The bundle configuration.
|
|
5778
5942
|
*/
|
|
@@ -9770,3 +9934,70 @@ export type GetACurrencyResponses = {
|
|
|
9770
9934
|
};
|
|
9771
9935
|
};
|
|
9772
9936
|
export type GetACurrencyResponse = GetACurrencyResponses[keyof GetACurrencyResponses];
|
|
9937
|
+
export type GetAllFilesData = {
|
|
9938
|
+
body?: never;
|
|
9939
|
+
path?: never;
|
|
9940
|
+
query?: {
|
|
9941
|
+
/**
|
|
9942
|
+
*
|
|
9943
|
+
* Filtering is available for this endpoint. See [Filtering](/docs/api/pxm/files/get-all-files#filtering).
|
|
9944
|
+
*
|
|
9945
|
+
*/
|
|
9946
|
+
filter?: string;
|
|
9947
|
+
/**
|
|
9948
|
+
* 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.
|
|
9949
|
+
*/
|
|
9950
|
+
"page[limit]"?: string;
|
|
9951
|
+
/**
|
|
9952
|
+
* 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.
|
|
9953
|
+
*/
|
|
9954
|
+
"page[offset]"?: string;
|
|
9955
|
+
};
|
|
9956
|
+
url: "/v2/files";
|
|
9957
|
+
};
|
|
9958
|
+
export type GetAllFilesErrors = {
|
|
9959
|
+
/**
|
|
9960
|
+
* Internal server error. There was a system failure in the platform.
|
|
9961
|
+
*/
|
|
9962
|
+
500: FilesErrorResponse;
|
|
9963
|
+
};
|
|
9964
|
+
export type GetAllFilesError = GetAllFilesErrors[keyof GetAllFilesErrors];
|
|
9965
|
+
export type GetAllFilesResponses = {
|
|
9966
|
+
/**
|
|
9967
|
+
* OK
|
|
9968
|
+
*/
|
|
9969
|
+
200: {
|
|
9970
|
+
data?: Array<File>;
|
|
9971
|
+
meta?: ResultsMeta;
|
|
9972
|
+
links?: ResultsLinks;
|
|
9973
|
+
};
|
|
9974
|
+
};
|
|
9975
|
+
export type GetAllFilesResponse = GetAllFilesResponses[keyof GetAllFilesResponses];
|
|
9976
|
+
export type GetAFileData = {
|
|
9977
|
+
body?: never;
|
|
9978
|
+
path: {
|
|
9979
|
+
/**
|
|
9980
|
+
* The unique identifier for a file.
|
|
9981
|
+
*/
|
|
9982
|
+
fileID: string;
|
|
9983
|
+
};
|
|
9984
|
+
query?: never;
|
|
9985
|
+
url: "/v2/files/{fileID}";
|
|
9986
|
+
};
|
|
9987
|
+
export type GetAFileErrors = {
|
|
9988
|
+
/**
|
|
9989
|
+
* Forbidden. The operation is forbidden on this entity.
|
|
9990
|
+
*/
|
|
9991
|
+
404: FilesErrorResponse;
|
|
9992
|
+
/**
|
|
9993
|
+
* Internal server error. There was a system failure in the platform.
|
|
9994
|
+
*/
|
|
9995
|
+
500: FilesErrorResponse;
|
|
9996
|
+
};
|
|
9997
|
+
export type GetAFileError = GetAFileErrors[keyof GetAFileErrors];
|
|
9998
|
+
export type GetAFileResponses = {
|
|
9999
|
+
200: {
|
|
10000
|
+
data?: File;
|
|
10001
|
+
};
|
|
10002
|
+
};
|
|
10003
|
+
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.
|
|
3
|
+
"version": "0.0.21",
|
|
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 ../specs/bundled/currencies.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
|
}
|