@epcc-sdk/sdks-shopper 0.2.1 → 0.4.0
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/dist/client/@tanstack/react-query.gen.d.cts +17 -19
- package/dist/client/@tanstack/react-query.gen.d.ts +17 -19
- package/dist/client/index.d.cts +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +53 -21
- package/dist/client/sdk.gen.d.ts +53 -21
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +129 -0
- package/dist/client/transformers.gen.cjs.map +1 -1
- package/dist/client/transformers.gen.d.cts +8 -2
- package/dist/client/transformers.gen.d.ts +8 -2
- package/dist/client/transformers.gen.mjs +123 -0
- package/dist/client/transformers.gen.mjs.map +1 -1
- package/dist/client/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +825 -105
- package/dist/client/types.gen.d.ts +825 -105
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetByContextReleaseData, ReleaseData, ErrorResponse, GetByContextAllHierarchiesData, HierarchyListData, GetByContextHierarchyData, HierarchyData, GetByContextHierarchyNodesData, NodeListData, GetByContextHierarchyChildNodesData, GetByContextAllNodesData, GetByContextNodeData, NodeData, GetByContextChildNodesData, GetByContextAllProductsData, ProductListData, GetByContextProductData, ProductData, GetByContextAllRelatedProductsData, GetByContextComponentProductIdsData, ProductReferenceListData, GetByContextChildProductsData, GetByContextProductsForHierarchyData, GetByContextProductsForNodeData, ConfigureByContextProductData, GetCatalogsData, CatalogListData, CreateCatalogData, CatalogData, DeleteCatalogByIdData, GetCatalogByIdData, UpdateCatalogData, DeleteReleasesData, GetReleasesData, ReleaseListData, PublishReleaseData, DeleteReleaseByIdData, GetReleaseByIdData, GetRulesData, RuleListData, CreateRuleData, RuleData, DeleteRuleByIdData, GetRuleByIdData, UpdateRuleData, ValidateCatalogRulesData, GetAllHierarchiesData, GetHierarchyData, GetHierarchyNodesData, GetHierarchyChildNodesData, GetAllNodesData, GetNodeData, GetChildNodesData, GetAllProductsData, GetProductData, GetAllRelatedProductsData, GetComponentProductIdsData, GetChildProductsData, GetProductsForHierarchyData, GetProductsForNodeData, GetCartsData, CartCollectionResponse, ResponseErrorResponse, CreateACartData, CartEntityResponse, DeleteACartData, GetACartData, UpdateACartData, UpdateACartError, DeleteAllCartItemsData, GetCartItemsData, CartItemsResponse, ManageCartsData, CartsResponse, BulkUpdateItemsInCartData, CartItemCollectionResponse, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CreateCustomerCartAssociationResponse, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartItemTaxesEntityResponse, AddTaxItemToCartItemComponentData, DeleteTaxItemFromCartItemComponentData, UpdateTaxItemFromCartItemComponentData, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, CartsBulkCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsEntityResponse, AddCustomDiscountToCartItemData, CartsCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, GetShippingGroupsData, ShippingGroupResponse, CreateShippingGroupData, ShippingGroupEntityResponse, DeleteCartShippingGroupData, GetShippingGroupByIdData, UpdateShippingGroupData, CreateCartPaymentIntentData, UpdateCartPaymentIntentData, CheckoutApiData, OrderEntityResponse, GetCustomerOrdersData, OrderCollectionResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, OrderItemCollectionResponse, AnonymizeOrdersData, OrdersListResponse, ConfirmOrderData, TransactionEntityResponse, PaymentSetupData, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, TransactionListResponse, GetATransactionData, ResponseData, TransactionResponse, CancelATransactionData, GetOrderShippingGroupsData, CreateOrderShippingGroupData, GetShippingGroupsByIdData, PutShippingGroupByIdData, GetV2SettingsCartData, SettingsCart, PutV2SettingsCartData, GetV2SettingsCartStoreIdData, PutV2SettingsCartStoreIdData, ListOfferingsData, Offering, OfferingIncludes, Links2, SubscriptionsErrorResponse, GetOfferingData, ListOfferingPricingOptionsData, OfferingPricingOption, ListOfferingFeaturesData, OfferingFeature, ListOfferingPlansData, OfferingPlan, ListOfferingPlanPricingOptionsData, RelationshipData, ListSubscriptionsData, Subscription, SubscriptionIncludes, GetSubscriptionData, ListSubscriptionPlansData, ListSubscriptionPricingOptionsData, ListSubscriptionStatesData, SubscriptionState, CreateSubscriptionStateData, GetSubscriptionStateData, ListSubscriptionInvoicesData, SubscriptionInvoice, ListSubscriptionInvoicePaymentsData, SubscriptionInvoicePayment, GetSubscriptionInvoicePaymentData, GetSubscriptionInvoiceData, ListInvoicesData, GetInvoiceData, GetFeatureData, Feature, GetStockData, StockResponse, InventoriesErrorResponse, ListLocationsData, Location, CreateAnAccessTokenData, AccessTokenResponse, ErrorResponse2, GetV2AccountAddressesData, AccountAddressResponse, AccountAddressesErrorResponse, PostV2AccountAddressData, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, AccountResponse, MetaList, AccountManagementErrorResponse, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, GetV2AccountMembersData, AccountMemberResponse, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, AccountMembershipResponse, Uuid, PostV2AccountMembersTokensData, AccountManagementAuthenticationTokenResponse, MetaAccountMemberId, CreateOneTimePasswordTokenRequestData, UpdatePasswordProfileInfoData, PasswordProfileInfoResponse, GetAllCurrenciesData, ResponseCurrency, ResponseError, GetACurrencyData, GetAllFilesData, File, ResultsMeta, ResultsLinks, FilesErrorResponse, GetAFileData, PostMultiSearchData, MultiSearchResponse, CatalogSearchErrorResponse } from './types.gen.cjs';
|
|
1
|
+
import { GetByContextReleaseData, ReleaseData, ErrorResponse, GetByContextAllHierarchiesData, HierarchyListData, GetByContextHierarchyData, HierarchyData, GetByContextHierarchyNodesData, NodeListData, GetByContextHierarchyChildNodesData, GetByContextAllNodesData, GetByContextNodeData, NodeData, GetByContextChildNodesData, GetByContextAllProductsData, ProductListData, GetByContextProductData, ProductData, GetByContextAllRelatedProductsData, GetByContextComponentProductIdsData, ProductReferenceListData, GetByContextChildProductsData, GetByContextProductsForHierarchyData, GetByContextProductsForNodeData, ConfigureByContextProductData, GetCatalogsData, CatalogListData, CreateCatalogData, CatalogData, DeleteCatalogByIdData, GetCatalogByIdData, UpdateCatalogData, DeleteReleasesData, GetReleasesData, ReleaseListData, PublishReleaseData, DeleteReleaseByIdData, GetReleaseByIdData, GetRulesData, RuleListData, CreateRuleData, RuleData, DeleteRuleByIdData, GetRuleByIdData, UpdateRuleData, ValidateCatalogRulesData, GetAllHierarchiesData, GetHierarchyData, GetHierarchyNodesData, GetHierarchyChildNodesData, GetAllNodesData, GetNodeData, GetChildNodesData, GetAllProductsData, GetProductData, GetAllRelatedProductsData, GetComponentProductIdsData, GetChildProductsData, GetProductsForHierarchyData, GetProductsForNodeData, GetCartsData, CartCollectionResponse, ResponseErrorResponse, CreateACartData, CartEntityResponse, DeleteACartData, GetACartData, UpdateACartData, UpdateACartError, DeleteAllCartItemsData, GetCartItemsData, CartItemsResponse, ManageCartsData, CartsResponse, BulkUpdateItemsInCartData, CartItemCollectionResponse, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CreateCustomerCartAssociationResponse, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartItemTaxesEntityResponse, AddTaxItemToCartItemComponentData, DeleteTaxItemFromCartItemComponentData, UpdateTaxItemFromCartItemComponentData, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, CartsBulkCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsEntityResponse, AddCustomDiscountToCartItemData, CartsCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, GetShippingGroupsData, ShippingGroupResponse, CreateShippingGroupData, ShippingGroupEntityResponse, DeleteCartShippingGroupData, GetShippingGroupByIdData, UpdateShippingGroupData, CreateCartPaymentIntentData, UpdateCartPaymentIntentData, CheckoutApiData, OrderEntityResponse, GetCustomerOrdersData, OrderCollectionResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, OrderItemCollectionResponse, AnonymizeOrdersData, OrdersListResponse, ConfirmOrderData, TransactionEntityResponse, PaymentSetupData, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, TransactionListResponse, GetATransactionData, ResponseData, TransactionResponse, CancelATransactionData, GetOrderShippingGroupsData, CreateOrderShippingGroupData, GetShippingGroupsByIdData, PutShippingGroupByIdData, GetV2SettingsCartData, SettingsCart, PutV2SettingsCartData, GetV2SettingsCartStoreIdData, PutV2SettingsCartStoreIdData, ListOfferingsData, Offering, OfferingIncludes, Links2, SubscriptionsErrorResponse, GetOfferingData, ListOfferingPricingOptionsData, OfferingPricingOption, ListOfferingFeaturesData, OfferingFeature, ListOfferingPlansData, OfferingPlan, ListOfferingPlanPricingOptionsData, RelationshipData, ListSubscriptionsData, Subscription, SubscriptionIncludes, GetSubscriptionData, ListSubscriptionPlansData, ListSubscriptionPricingOptionsData, ListSubscriptionStatesData, SubscriptionState, CreateSubscriptionStateData, GetSubscriptionStateData, ListSubscriptionInvoicesData, SubscriptionInvoice, ListSubscriptionInvoicePaymentsData, SubscriptionInvoicePayment, GetSubscriptionInvoicePaymentData, GetSubscriptionInvoiceData, ListInvoicesData, GetInvoiceData, GetFeatureData, Feature, GetStockData, StockResponse, InventoriesErrorResponse, ListLocationsData, Location, CreateAnAccessTokenData, AccessTokenResponse, ErrorResponse2, GetV2AccountAddressesData, AccountAddressResponse, PaginationMeta, PaginationLinks, AccountAddressesErrorResponse, PostV2AccountAddressData, PostV2AccountAddressResponse, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, AccountResponse, MetaList, AccountManagementErrorResponse, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, GetV2AccountMembersData, AccountMemberResponse, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, AccountMembershipResponse, Uuid, PostV2AccountMembersTokensData, AccountManagementAuthenticationTokenResponse, MetaAccountMemberId, CreateOneTimePasswordTokenRequestData, UpdatePasswordProfileInfoData, PasswordProfileInfoResponse, GetAllCurrenciesData, ResponseCurrency, ResponseError, GetACurrencyData, GetAllFilesData, File, ResultsMeta, ResultsLinks, FilesErrorResponse, GetAFileData, PostMultiSearchData, MultiSearchResponse, CatalogSearchErrorResponse } from './types.gen.cjs';
|
|
2
2
|
import * as _hey_api_client_fetch from '@hey-api/client-fetch';
|
|
3
3
|
import { Options } from '@hey-api/client-fetch';
|
|
4
4
|
|
|
@@ -2471,7 +2471,7 @@ declare const putV2SettingsCartStoreId: <ThrowOnError extends boolean = false>(o
|
|
|
2471
2471
|
* | Operator | Attribute | Description |
|
|
2472
2472
|
* | --- | --- | --- |
|
|
2473
2473
|
* | `eq` | `external_ref`, `plans.external_ref`, `proration_policy_id` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. |
|
|
2474
|
-
* | `in` | `plans.external_ref` | In. Checks if the
|
|
2474
|
+
* | `in` | `external_ref`, `plans.external_ref`, `proration_policy_id` | In. Checks if the value is in the specified list. If it is, the condition is true. |
|
|
2475
2475
|
*
|
|
2476
2476
|
*/
|
|
2477
2477
|
declare const listOfferings: <ThrowOnError extends boolean = false>(options?: Options<ListOfferingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
@@ -2526,6 +2526,7 @@ declare const listOfferingPlanPricingOptions: <ThrowOnError extends boolean = fa
|
|
|
2526
2526
|
* | Operator | Attribute | Description |
|
|
2527
2527
|
* | --- | --- | --- |
|
|
2528
2528
|
* | `eq` | `account_id`, `name`, `email`, `external_ref` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. |
|
|
2529
|
+
* | `in` | `account_id`, `name`, `email`, `external_ref` | In. Checks if the value is in the specified list. If it is, the condition is true. |
|
|
2529
2530
|
*
|
|
2530
2531
|
* ### Including Resources
|
|
2531
2532
|
*
|
|
@@ -2584,6 +2585,8 @@ declare const listSubscriptionStates: <ThrowOnError extends boolean = false>(opt
|
|
|
2584
2585
|
* - `resumed`
|
|
2585
2586
|
* For more information, see [Managing the Subscription Lifecycle](/docs/api/subscriptions/subscriptions#managing-the-subscription-lifecycle).
|
|
2586
2587
|
*
|
|
2588
|
+
* Immediate cancellation (`cancel` with `cancel_immediately: true`) ends the subscription and updates entitlements in this request; it does **not** issue refunds or modify paid invoices. Use payments refund flows separately if needed.
|
|
2589
|
+
*
|
|
2587
2590
|
*/
|
|
2588
2591
|
declare const createSubscriptionState: <ThrowOnError extends boolean = false>(options: Options<CreateSubscriptionStateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2589
2592
|
/**
|
|
@@ -2635,6 +2638,7 @@ declare const getSubscriptionInvoice: <ThrowOnError extends boolean = false>(opt
|
|
|
2635
2638
|
* | Operator |Attribute | Description |
|
|
2636
2639
|
* | --- | --- | --- |
|
|
2637
2640
|
* | `eq` | `subscriber_id`, `subscription_id`, `outstanding`, `tax_required` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. |
|
|
2641
|
+
* | `in` | `subscriber_id`, `subscription_id` | In. Checks if the value is in the specified list. If it is, the condition is true. |
|
|
2638
2642
|
*
|
|
2639
2643
|
*/
|
|
2640
2644
|
declare const listInvoices: <ThrowOnError extends boolean = false>(options?: Options<ListInvoicesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
@@ -2694,33 +2698,56 @@ declare const listLocations: <ThrowOnError extends boolean = false>(options?: Op
|
|
|
2694
2698
|
declare const createAnAccessToken: <ThrowOnError extends boolean = false>(options?: Options<CreateAnAccessTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AccessTokenResponse, ErrorResponse2, ThrowOnError>;
|
|
2695
2699
|
/**
|
|
2696
2700
|
* Get Account Addresses
|
|
2697
|
-
* Get Account
|
|
2701
|
+
* Get all addresses for an Account.
|
|
2702
|
+
*
|
|
2703
|
+
* You can use pagination with this resource. For more information, see [pagination](/guides/Getting-Started/pagination).
|
|
2704
|
+
*
|
|
2705
|
+
* ### Filtering
|
|
2706
|
+
*
|
|
2707
|
+
* The following operators and attributes are available for [filtering](/guides/Getting-Started/filtering) addresses:
|
|
2708
|
+
*
|
|
2709
|
+
* | Attribute | Operators | Example |
|
|
2710
|
+
* |----------------|---------------------------------|---------------------------------------|
|
|
2711
|
+
* | `name` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(name,"*home*")` |
|
|
2712
|
+
* | `first_name` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(first_name,"Ron*")` |
|
|
2713
|
+
* | `last_name` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(last_name,"*swan*")` |
|
|
2714
|
+
* | `phone_number` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(phone_number,"*555*")` |
|
|
2715
|
+
* | `company_name` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(company_name,"*enterprises*")` |
|
|
2716
|
+
* | `instructions` | `eq`,`in`,`like`,`ilike`,`text` | `text(instructions,"behind bin")` |
|
|
2717
|
+
* | `line_1` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(line_1,"*Sunny Street*")` |
|
|
2718
|
+
* | `line_2` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(line_2,"*Unit*")` |
|
|
2719
|
+
* | `city` | `eq`,`in`,`like`,`ilike`,`text` | `eq(city,"Sunny Town")` |
|
|
2720
|
+
* | `county` | `eq`,`in`,`like`,`ilike`,`text` | `eq(county,"Sunnyville")` |
|
|
2721
|
+
* | `region` | `eq`,`in`,`like`,`ilike`,`text` | `eq(region,"California")` |
|
|
2722
|
+
* | `postcode` | `eq`,`in`,`like`,`ilike`,`text` | `eq(postcode,"SU33 1YY")` |
|
|
2723
|
+
* | `country` | `eq`,`in`,`like`,`ilike`,`text` | `eq(country,"GB")` |
|
|
2724
|
+
*
|
|
2698
2725
|
*/
|
|
2699
2726
|
declare const getV2AccountAddresses: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountAddressesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2700
2727
|
data?: Array<AccountAddressResponse>;
|
|
2728
|
+
meta?: PaginationMeta;
|
|
2729
|
+
links?: PaginationLinks;
|
|
2701
2730
|
}, AccountAddressesErrorResponse, ThrowOnError>;
|
|
2702
2731
|
/**
|
|
2703
2732
|
* Create an Account Address
|
|
2704
|
-
* Create an Account
|
|
2733
|
+
* Create an address for an Account.
|
|
2705
2734
|
*/
|
|
2706
|
-
declare const postV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<PostV2AccountAddressData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
2707
|
-
data?: AccountAddressResponse;
|
|
2708
|
-
}, AccountAddressesErrorResponse, ThrowOnError>;
|
|
2735
|
+
declare const postV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<PostV2AccountAddressData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PostV2AccountAddressResponse, AccountAddressesErrorResponse, ThrowOnError>;
|
|
2709
2736
|
/**
|
|
2710
2737
|
* Delete an Account Address
|
|
2711
|
-
* Delete
|
|
2738
|
+
* Delete an address for an Account.
|
|
2712
2739
|
*/
|
|
2713
2740
|
declare const deleteV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<DeleteV2AccountAddressData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, AccountAddressesErrorResponse, ThrowOnError>;
|
|
2714
2741
|
/**
|
|
2715
2742
|
* Get an Account Address
|
|
2716
|
-
* Get an Account
|
|
2743
|
+
* Get a specific address for an Account.
|
|
2717
2744
|
*/
|
|
2718
2745
|
declare const getV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountAddressData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2719
2746
|
data?: AccountAddressResponse;
|
|
2720
2747
|
}, AccountAddressesErrorResponse, ThrowOnError>;
|
|
2721
2748
|
/**
|
|
2722
2749
|
* Update an Account Address
|
|
2723
|
-
* Update an Account
|
|
2750
|
+
* Update an address for an Account.
|
|
2724
2751
|
*/
|
|
2725
2752
|
declare const putV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<PutV2AccountAddressData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2726
2753
|
data?: AccountAddressResponse;
|
|
@@ -2893,11 +2920,7 @@ declare const createOneTimePasswordTokenRequest: <ThrowOnError extends boolean =
|
|
|
2893
2920
|
declare const updatePasswordProfileInfo: <ThrowOnError extends boolean = false>(options: Options<UpdatePasswordProfileInfoData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PasswordProfileInfoResponse, unknown, ThrowOnError>;
|
|
2894
2921
|
/**
|
|
2895
2922
|
* Get all Currencies
|
|
2896
|
-
*
|
|
2897
|
-
*
|
|
2898
|
-
* This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.
|
|
2899
|
-
*
|
|
2900
|
-
* :::
|
|
2923
|
+
* Fetch all currencies.
|
|
2901
2924
|
*
|
|
2902
2925
|
*/
|
|
2903
2926
|
declare const getAllCurrencies: <ThrowOnError extends boolean = false>(options?: Options<GetAllCurrenciesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ResponseData & {
|
|
@@ -2905,15 +2928,11 @@ declare const getAllCurrencies: <ThrowOnError extends boolean = false>(options?:
|
|
|
2905
2928
|
}, ResponseError, ThrowOnError>;
|
|
2906
2929
|
/**
|
|
2907
2930
|
* Get a Currency
|
|
2908
|
-
*
|
|
2909
|
-
*
|
|
2910
|
-
* This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.
|
|
2911
|
-
*
|
|
2912
|
-
* :::
|
|
2931
|
+
* Fetch a currency by its ID.
|
|
2913
2932
|
*
|
|
2914
2933
|
*/
|
|
2915
2934
|
declare const getACurrency: <ThrowOnError extends boolean = false>(options: Options<GetACurrencyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ResponseData & {
|
|
2916
|
-
data?:
|
|
2935
|
+
data?: ResponseCurrency;
|
|
2917
2936
|
}, ResponseError, ThrowOnError>;
|
|
2918
2937
|
/**
|
|
2919
2938
|
* Get all Files
|
|
@@ -2927,11 +2946,24 @@ declare const getACurrency: <ThrowOnError extends boolean = false>(options: Opti
|
|
|
2927
2946
|
*
|
|
2928
2947
|
* | Attribute | Type | Operators | Example |
|
|
2929
2948
|
* |:----------------------|:----------|:--------------------------|:-------------|
|
|
2949
|
+
* | `id` | `string` | `in` | `in(id,file-id-1,file-id-2,file-id-3)` |
|
|
2930
2950
|
* | `file_name` | `string` | `eq` / `like` | `eq(file_name, my_image.jpg)` |
|
|
2931
2951
|
* | `width` | `integer` | `gt` / `ge` / `lt` / `le` | `gt(width,200)` |
|
|
2932
2952
|
* | `height` | `integer` | `gt` / `ge` / `lt` / `le` | `lt(height,500)` |
|
|
2933
2953
|
* | `file_size` | `integer` | `gt` / `ge` / `lt` / `le` | `le(file_size,20953)` |
|
|
2934
2954
|
*
|
|
2955
|
+
* #### Bulk File Retrieval
|
|
2956
|
+
*
|
|
2957
|
+
* To retrieve multiple files by their IDs in a single request, use the `in` operator with a comma-separated list of file IDs:
|
|
2958
|
+
*
|
|
2959
|
+
* ```
|
|
2960
|
+
* GET /v2/files?filter=in(id,06b881bd-f152-4c36-8658-7132a8fab49c,ec73567b-04e8-4000-a11a-7e1407cc2f21)
|
|
2961
|
+
* ```
|
|
2962
|
+
*
|
|
2963
|
+
* This is more efficient than making separate requests for each file and is recommended for bulk operations.
|
|
2964
|
+
*
|
|
2965
|
+
* **Note on invalid IDs**: If any IDs in the filter are missing, malformed, or do not exist in the store, they will be silently ignored. The response will only include files that were successfully found. For example, if you request 5 IDs but only 3 exist, the response will contain 3 files with `total: 3` in the metadata.
|
|
2966
|
+
*
|
|
2935
2967
|
*/
|
|
2936
2968
|
declare const getAllFiles: <ThrowOnError extends boolean = false>(options?: Options<GetAllFilesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2937
2969
|
data?: Array<File>;
|
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetByContextReleaseData, ReleaseData, ErrorResponse, GetByContextAllHierarchiesData, HierarchyListData, GetByContextHierarchyData, HierarchyData, GetByContextHierarchyNodesData, NodeListData, GetByContextHierarchyChildNodesData, GetByContextAllNodesData, GetByContextNodeData, NodeData, GetByContextChildNodesData, GetByContextAllProductsData, ProductListData, GetByContextProductData, ProductData, GetByContextAllRelatedProductsData, GetByContextComponentProductIdsData, ProductReferenceListData, GetByContextChildProductsData, GetByContextProductsForHierarchyData, GetByContextProductsForNodeData, ConfigureByContextProductData, GetCatalogsData, CatalogListData, CreateCatalogData, CatalogData, DeleteCatalogByIdData, GetCatalogByIdData, UpdateCatalogData, DeleteReleasesData, GetReleasesData, ReleaseListData, PublishReleaseData, DeleteReleaseByIdData, GetReleaseByIdData, GetRulesData, RuleListData, CreateRuleData, RuleData, DeleteRuleByIdData, GetRuleByIdData, UpdateRuleData, ValidateCatalogRulesData, GetAllHierarchiesData, GetHierarchyData, GetHierarchyNodesData, GetHierarchyChildNodesData, GetAllNodesData, GetNodeData, GetChildNodesData, GetAllProductsData, GetProductData, GetAllRelatedProductsData, GetComponentProductIdsData, GetChildProductsData, GetProductsForHierarchyData, GetProductsForNodeData, GetCartsData, CartCollectionResponse, ResponseErrorResponse, CreateACartData, CartEntityResponse, DeleteACartData, GetACartData, UpdateACartData, UpdateACartError, DeleteAllCartItemsData, GetCartItemsData, CartItemsResponse, ManageCartsData, CartsResponse, BulkUpdateItemsInCartData, CartItemCollectionResponse, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CreateCustomerCartAssociationResponse, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartItemTaxesEntityResponse, AddTaxItemToCartItemComponentData, DeleteTaxItemFromCartItemComponentData, UpdateTaxItemFromCartItemComponentData, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, CartsBulkCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsEntityResponse, AddCustomDiscountToCartItemData, CartsCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, GetShippingGroupsData, ShippingGroupResponse, CreateShippingGroupData, ShippingGroupEntityResponse, DeleteCartShippingGroupData, GetShippingGroupByIdData, UpdateShippingGroupData, CreateCartPaymentIntentData, UpdateCartPaymentIntentData, CheckoutApiData, OrderEntityResponse, GetCustomerOrdersData, OrderCollectionResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, OrderItemCollectionResponse, AnonymizeOrdersData, OrdersListResponse, ConfirmOrderData, TransactionEntityResponse, PaymentSetupData, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, TransactionListResponse, GetATransactionData, ResponseData, TransactionResponse, CancelATransactionData, GetOrderShippingGroupsData, CreateOrderShippingGroupData, GetShippingGroupsByIdData, PutShippingGroupByIdData, GetV2SettingsCartData, SettingsCart, PutV2SettingsCartData, GetV2SettingsCartStoreIdData, PutV2SettingsCartStoreIdData, ListOfferingsData, Offering, OfferingIncludes, Links2, SubscriptionsErrorResponse, GetOfferingData, ListOfferingPricingOptionsData, OfferingPricingOption, ListOfferingFeaturesData, OfferingFeature, ListOfferingPlansData, OfferingPlan, ListOfferingPlanPricingOptionsData, RelationshipData, ListSubscriptionsData, Subscription, SubscriptionIncludes, GetSubscriptionData, ListSubscriptionPlansData, ListSubscriptionPricingOptionsData, ListSubscriptionStatesData, SubscriptionState, CreateSubscriptionStateData, GetSubscriptionStateData, ListSubscriptionInvoicesData, SubscriptionInvoice, ListSubscriptionInvoicePaymentsData, SubscriptionInvoicePayment, GetSubscriptionInvoicePaymentData, GetSubscriptionInvoiceData, ListInvoicesData, GetInvoiceData, GetFeatureData, Feature, GetStockData, StockResponse, InventoriesErrorResponse, ListLocationsData, Location, CreateAnAccessTokenData, AccessTokenResponse, ErrorResponse2, GetV2AccountAddressesData, AccountAddressResponse, AccountAddressesErrorResponse, PostV2AccountAddressData, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, AccountResponse, MetaList, AccountManagementErrorResponse, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, GetV2AccountMembersData, AccountMemberResponse, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, AccountMembershipResponse, Uuid, PostV2AccountMembersTokensData, AccountManagementAuthenticationTokenResponse, MetaAccountMemberId, CreateOneTimePasswordTokenRequestData, UpdatePasswordProfileInfoData, PasswordProfileInfoResponse, GetAllCurrenciesData, ResponseCurrency, ResponseError, GetACurrencyData, GetAllFilesData, File, ResultsMeta, ResultsLinks, FilesErrorResponse, GetAFileData, PostMultiSearchData, MultiSearchResponse, CatalogSearchErrorResponse } from './types.gen.js';
|
|
1
|
+
import { GetByContextReleaseData, ReleaseData, ErrorResponse, GetByContextAllHierarchiesData, HierarchyListData, GetByContextHierarchyData, HierarchyData, GetByContextHierarchyNodesData, NodeListData, GetByContextHierarchyChildNodesData, GetByContextAllNodesData, GetByContextNodeData, NodeData, GetByContextChildNodesData, GetByContextAllProductsData, ProductListData, GetByContextProductData, ProductData, GetByContextAllRelatedProductsData, GetByContextComponentProductIdsData, ProductReferenceListData, GetByContextChildProductsData, GetByContextProductsForHierarchyData, GetByContextProductsForNodeData, ConfigureByContextProductData, GetCatalogsData, CatalogListData, CreateCatalogData, CatalogData, DeleteCatalogByIdData, GetCatalogByIdData, UpdateCatalogData, DeleteReleasesData, GetReleasesData, ReleaseListData, PublishReleaseData, DeleteReleaseByIdData, GetReleaseByIdData, GetRulesData, RuleListData, CreateRuleData, RuleData, DeleteRuleByIdData, GetRuleByIdData, UpdateRuleData, ValidateCatalogRulesData, GetAllHierarchiesData, GetHierarchyData, GetHierarchyNodesData, GetHierarchyChildNodesData, GetAllNodesData, GetNodeData, GetChildNodesData, GetAllProductsData, GetProductData, GetAllRelatedProductsData, GetComponentProductIdsData, GetChildProductsData, GetProductsForHierarchyData, GetProductsForNodeData, GetCartsData, CartCollectionResponse, ResponseErrorResponse, CreateACartData, CartEntityResponse, DeleteACartData, GetACartData, UpdateACartData, UpdateACartError, DeleteAllCartItemsData, GetCartItemsData, CartItemsResponse, ManageCartsData, CartsResponse, BulkUpdateItemsInCartData, CartItemCollectionResponse, DeleteACartItemData, UpdateACartItemData, DeleteAccountCartAssociationData, CreateAccountCartAssociationData, CreateAccountCartAssociationResponse, DeleteCustomerCartAssociationData, CreateCustomerCartAssociationData, CreateCustomerCartAssociationResponse, DeleteAPromotionViaPromotionCodeData, AddTaxItemToCartData, CartItemTaxesEntityResponse, AddTaxItemToCartItemComponentData, DeleteTaxItemFromCartItemComponentData, UpdateTaxItemFromCartItemComponentData, BulkDeleteTaxItemsFromCartData, BulkAddTaxItemsToCartData, CartsBulkTaxes, DeleteATaxItemData, UpdateATaxItemData, BulkDeleteCustomDiscountsFromCartData, BulkAddCustomDiscountsToCartData, CartsBulkCustomDiscountsResponse, CartsBulkCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartData, UpdateCustomDiscountForCartData, CartsCustomDiscountsEntityResponse, AddCustomDiscountToCartItemData, CartsCustomDiscountsCollectionResponse, DeleteCustomDiscountFromCartItemData, UpdateCustomDiscountForCartItemData, GetShippingGroupsData, ShippingGroupResponse, CreateShippingGroupData, ShippingGroupEntityResponse, DeleteCartShippingGroupData, GetShippingGroupByIdData, UpdateShippingGroupData, CreateCartPaymentIntentData, UpdateCartPaymentIntentData, CheckoutApiData, OrderEntityResponse, GetCustomerOrdersData, OrderCollectionResponse, GetAnOrderData, UpdateAnOrderData, GetOrderItemsData, OrderItemCollectionResponse, AnonymizeOrdersData, OrdersListResponse, ConfirmOrderData, TransactionEntityResponse, PaymentSetupData, ConfirmPaymentData, CaptureATransactionData, RefundATransactionData, GetOrderTransactionsData, TransactionListResponse, GetATransactionData, ResponseData, TransactionResponse, CancelATransactionData, GetOrderShippingGroupsData, CreateOrderShippingGroupData, GetShippingGroupsByIdData, PutShippingGroupByIdData, GetV2SettingsCartData, SettingsCart, PutV2SettingsCartData, GetV2SettingsCartStoreIdData, PutV2SettingsCartStoreIdData, ListOfferingsData, Offering, OfferingIncludes, Links2, SubscriptionsErrorResponse, GetOfferingData, ListOfferingPricingOptionsData, OfferingPricingOption, ListOfferingFeaturesData, OfferingFeature, ListOfferingPlansData, OfferingPlan, ListOfferingPlanPricingOptionsData, RelationshipData, ListSubscriptionsData, Subscription, SubscriptionIncludes, GetSubscriptionData, ListSubscriptionPlansData, ListSubscriptionPricingOptionsData, ListSubscriptionStatesData, SubscriptionState, CreateSubscriptionStateData, GetSubscriptionStateData, ListSubscriptionInvoicesData, SubscriptionInvoice, ListSubscriptionInvoicePaymentsData, SubscriptionInvoicePayment, GetSubscriptionInvoicePaymentData, GetSubscriptionInvoiceData, ListInvoicesData, GetInvoiceData, GetFeatureData, Feature, GetStockData, StockResponse, InventoriesErrorResponse, ListLocationsData, Location, CreateAnAccessTokenData, AccessTokenResponse, ErrorResponse2, GetV2AccountAddressesData, AccountAddressResponse, PaginationMeta, PaginationLinks, AccountAddressesErrorResponse, PostV2AccountAddressData, PostV2AccountAddressResponse, DeleteV2AccountAddressData, GetV2AccountAddressData, PutV2AccountAddressData, GetV2AccountsData, AccountResponse, MetaList, AccountManagementErrorResponse, PostV2AccountsData, GetV2AccountsAccountIdData, PutV2AccountsAccountIdData, PutV2AccountsAccountIdError, GetV2AccountMembersData, AccountMemberResponse, GetV2AccountMembersAccountMemberIdData, GetV2AccountsAccountIdAccountMembershipsData, AccountMembershipResponse, Uuid, PostV2AccountMembersTokensData, AccountManagementAuthenticationTokenResponse, MetaAccountMemberId, CreateOneTimePasswordTokenRequestData, UpdatePasswordProfileInfoData, PasswordProfileInfoResponse, GetAllCurrenciesData, ResponseCurrency, ResponseError, GetACurrencyData, GetAllFilesData, File, ResultsMeta, ResultsLinks, FilesErrorResponse, GetAFileData, PostMultiSearchData, MultiSearchResponse, CatalogSearchErrorResponse } from './types.gen.js';
|
|
2
2
|
import * as _hey_api_client_fetch from '@hey-api/client-fetch';
|
|
3
3
|
import { Options } from '@hey-api/client-fetch';
|
|
4
4
|
|
|
@@ -2471,7 +2471,7 @@ declare const putV2SettingsCartStoreId: <ThrowOnError extends boolean = false>(o
|
|
|
2471
2471
|
* | Operator | Attribute | Description |
|
|
2472
2472
|
* | --- | --- | --- |
|
|
2473
2473
|
* | `eq` | `external_ref`, `plans.external_ref`, `proration_policy_id` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. |
|
|
2474
|
-
* | `in` | `plans.external_ref` | In. Checks if the
|
|
2474
|
+
* | `in` | `external_ref`, `plans.external_ref`, `proration_policy_id` | In. Checks if the value is in the specified list. If it is, the condition is true. |
|
|
2475
2475
|
*
|
|
2476
2476
|
*/
|
|
2477
2477
|
declare const listOfferings: <ThrowOnError extends boolean = false>(options?: Options<ListOfferingsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
@@ -2526,6 +2526,7 @@ declare const listOfferingPlanPricingOptions: <ThrowOnError extends boolean = fa
|
|
|
2526
2526
|
* | Operator | Attribute | Description |
|
|
2527
2527
|
* | --- | --- | --- |
|
|
2528
2528
|
* | `eq` | `account_id`, `name`, `email`, `external_ref` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. |
|
|
2529
|
+
* | `in` | `account_id`, `name`, `email`, `external_ref` | In. Checks if the value is in the specified list. If it is, the condition is true. |
|
|
2529
2530
|
*
|
|
2530
2531
|
* ### Including Resources
|
|
2531
2532
|
*
|
|
@@ -2584,6 +2585,8 @@ declare const listSubscriptionStates: <ThrowOnError extends boolean = false>(opt
|
|
|
2584
2585
|
* - `resumed`
|
|
2585
2586
|
* For more information, see [Managing the Subscription Lifecycle](/docs/api/subscriptions/subscriptions#managing-the-subscription-lifecycle).
|
|
2586
2587
|
*
|
|
2588
|
+
* Immediate cancellation (`cancel` with `cancel_immediately: true`) ends the subscription and updates entitlements in this request; it does **not** issue refunds or modify paid invoices. Use payments refund flows separately if needed.
|
|
2589
|
+
*
|
|
2587
2590
|
*/
|
|
2588
2591
|
declare const createSubscriptionState: <ThrowOnError extends boolean = false>(options: Options<CreateSubscriptionStateData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, SubscriptionsErrorResponse, ThrowOnError>;
|
|
2589
2592
|
/**
|
|
@@ -2635,6 +2638,7 @@ declare const getSubscriptionInvoice: <ThrowOnError extends boolean = false>(opt
|
|
|
2635
2638
|
* | Operator |Attribute | Description |
|
|
2636
2639
|
* | --- | --- | --- |
|
|
2637
2640
|
* | `eq` | `subscriber_id`, `subscription_id`, `outstanding`, `tax_required` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. |
|
|
2641
|
+
* | `in` | `subscriber_id`, `subscription_id` | In. Checks if the value is in the specified list. If it is, the condition is true. |
|
|
2638
2642
|
*
|
|
2639
2643
|
*/
|
|
2640
2644
|
declare const listInvoices: <ThrowOnError extends boolean = false>(options?: Options<ListInvoicesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
@@ -2694,33 +2698,56 @@ declare const listLocations: <ThrowOnError extends boolean = false>(options?: Op
|
|
|
2694
2698
|
declare const createAnAccessToken: <ThrowOnError extends boolean = false>(options?: Options<CreateAnAccessTokenData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<AccessTokenResponse, ErrorResponse2, ThrowOnError>;
|
|
2695
2699
|
/**
|
|
2696
2700
|
* Get Account Addresses
|
|
2697
|
-
* Get Account
|
|
2701
|
+
* Get all addresses for an Account.
|
|
2702
|
+
*
|
|
2703
|
+
* You can use pagination with this resource. For more information, see [pagination](/guides/Getting-Started/pagination).
|
|
2704
|
+
*
|
|
2705
|
+
* ### Filtering
|
|
2706
|
+
*
|
|
2707
|
+
* The following operators and attributes are available for [filtering](/guides/Getting-Started/filtering) addresses:
|
|
2708
|
+
*
|
|
2709
|
+
* | Attribute | Operators | Example |
|
|
2710
|
+
* |----------------|---------------------------------|---------------------------------------|
|
|
2711
|
+
* | `name` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(name,"*home*")` |
|
|
2712
|
+
* | `first_name` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(first_name,"Ron*")` |
|
|
2713
|
+
* | `last_name` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(last_name,"*swan*")` |
|
|
2714
|
+
* | `phone_number` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(phone_number,"*555*")` |
|
|
2715
|
+
* | `company_name` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(company_name,"*enterprises*")` |
|
|
2716
|
+
* | `instructions` | `eq`,`in`,`like`,`ilike`,`text` | `text(instructions,"behind bin")` |
|
|
2717
|
+
* | `line_1` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(line_1,"*Sunny Street*")` |
|
|
2718
|
+
* | `line_2` | `eq`,`in`,`like`,`ilike`,`text` | `ilike(line_2,"*Unit*")` |
|
|
2719
|
+
* | `city` | `eq`,`in`,`like`,`ilike`,`text` | `eq(city,"Sunny Town")` |
|
|
2720
|
+
* | `county` | `eq`,`in`,`like`,`ilike`,`text` | `eq(county,"Sunnyville")` |
|
|
2721
|
+
* | `region` | `eq`,`in`,`like`,`ilike`,`text` | `eq(region,"California")` |
|
|
2722
|
+
* | `postcode` | `eq`,`in`,`like`,`ilike`,`text` | `eq(postcode,"SU33 1YY")` |
|
|
2723
|
+
* | `country` | `eq`,`in`,`like`,`ilike`,`text` | `eq(country,"GB")` |
|
|
2724
|
+
*
|
|
2698
2725
|
*/
|
|
2699
2726
|
declare const getV2AccountAddresses: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountAddressesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2700
2727
|
data?: Array<AccountAddressResponse>;
|
|
2728
|
+
meta?: PaginationMeta;
|
|
2729
|
+
links?: PaginationLinks;
|
|
2701
2730
|
}, AccountAddressesErrorResponse, ThrowOnError>;
|
|
2702
2731
|
/**
|
|
2703
2732
|
* Create an Account Address
|
|
2704
|
-
* Create an Account
|
|
2733
|
+
* Create an address for an Account.
|
|
2705
2734
|
*/
|
|
2706
|
-
declare const postV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<PostV2AccountAddressData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<
|
|
2707
|
-
data?: AccountAddressResponse;
|
|
2708
|
-
}, AccountAddressesErrorResponse, ThrowOnError>;
|
|
2735
|
+
declare const postV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<PostV2AccountAddressData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PostV2AccountAddressResponse, AccountAddressesErrorResponse, ThrowOnError>;
|
|
2709
2736
|
/**
|
|
2710
2737
|
* Delete an Account Address
|
|
2711
|
-
* Delete
|
|
2738
|
+
* Delete an address for an Account.
|
|
2712
2739
|
*/
|
|
2713
2740
|
declare const deleteV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<DeleteV2AccountAddressData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<void, AccountAddressesErrorResponse, ThrowOnError>;
|
|
2714
2741
|
/**
|
|
2715
2742
|
* Get an Account Address
|
|
2716
|
-
* Get an Account
|
|
2743
|
+
* Get a specific address for an Account.
|
|
2717
2744
|
*/
|
|
2718
2745
|
declare const getV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<GetV2AccountAddressData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2719
2746
|
data?: AccountAddressResponse;
|
|
2720
2747
|
}, AccountAddressesErrorResponse, ThrowOnError>;
|
|
2721
2748
|
/**
|
|
2722
2749
|
* Update an Account Address
|
|
2723
|
-
* Update an Account
|
|
2750
|
+
* Update an address for an Account.
|
|
2724
2751
|
*/
|
|
2725
2752
|
declare const putV2AccountAddress: <ThrowOnError extends boolean = false>(options: Options<PutV2AccountAddressData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2726
2753
|
data?: AccountAddressResponse;
|
|
@@ -2893,11 +2920,7 @@ declare const createOneTimePasswordTokenRequest: <ThrowOnError extends boolean =
|
|
|
2893
2920
|
declare const updatePasswordProfileInfo: <ThrowOnError extends boolean = false>(options: Options<UpdatePasswordProfileInfoData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PasswordProfileInfoResponse, unknown, ThrowOnError>;
|
|
2894
2921
|
/**
|
|
2895
2922
|
* Get all Currencies
|
|
2896
|
-
*
|
|
2897
|
-
*
|
|
2898
|
-
* This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.
|
|
2899
|
-
*
|
|
2900
|
-
* :::
|
|
2923
|
+
* Fetch all currencies.
|
|
2901
2924
|
*
|
|
2902
2925
|
*/
|
|
2903
2926
|
declare const getAllCurrencies: <ThrowOnError extends boolean = false>(options?: Options<GetAllCurrenciesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ResponseData & {
|
|
@@ -2905,15 +2928,11 @@ declare const getAllCurrencies: <ThrowOnError extends boolean = false>(options?:
|
|
|
2905
2928
|
}, ResponseError, ThrowOnError>;
|
|
2906
2929
|
/**
|
|
2907
2930
|
* Get a Currency
|
|
2908
|
-
*
|
|
2909
|
-
*
|
|
2910
|
-
* This endpoint is for Administrator use only. Do not use this endpoint on your customer-facing frontends.
|
|
2911
|
-
*
|
|
2912
|
-
* :::
|
|
2931
|
+
* Fetch a currency by its ID.
|
|
2913
2932
|
*
|
|
2914
2933
|
*/
|
|
2915
2934
|
declare const getACurrency: <ThrowOnError extends boolean = false>(options: Options<GetACurrencyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ResponseData & {
|
|
2916
|
-
data?:
|
|
2935
|
+
data?: ResponseCurrency;
|
|
2917
2936
|
}, ResponseError, ThrowOnError>;
|
|
2918
2937
|
/**
|
|
2919
2938
|
* Get all Files
|
|
@@ -2927,11 +2946,24 @@ declare const getACurrency: <ThrowOnError extends boolean = false>(options: Opti
|
|
|
2927
2946
|
*
|
|
2928
2947
|
* | Attribute | Type | Operators | Example |
|
|
2929
2948
|
* |:----------------------|:----------|:--------------------------|:-------------|
|
|
2949
|
+
* | `id` | `string` | `in` | `in(id,file-id-1,file-id-2,file-id-3)` |
|
|
2930
2950
|
* | `file_name` | `string` | `eq` / `like` | `eq(file_name, my_image.jpg)` |
|
|
2931
2951
|
* | `width` | `integer` | `gt` / `ge` / `lt` / `le` | `gt(width,200)` |
|
|
2932
2952
|
* | `height` | `integer` | `gt` / `ge` / `lt` / `le` | `lt(height,500)` |
|
|
2933
2953
|
* | `file_size` | `integer` | `gt` / `ge` / `lt` / `le` | `le(file_size,20953)` |
|
|
2934
2954
|
*
|
|
2955
|
+
* #### Bulk File Retrieval
|
|
2956
|
+
*
|
|
2957
|
+
* To retrieve multiple files by their IDs in a single request, use the `in` operator with a comma-separated list of file IDs:
|
|
2958
|
+
*
|
|
2959
|
+
* ```
|
|
2960
|
+
* GET /v2/files?filter=in(id,06b881bd-f152-4c36-8658-7132a8fab49c,ec73567b-04e8-4000-a11a-7e1407cc2f21)
|
|
2961
|
+
* ```
|
|
2962
|
+
*
|
|
2963
|
+
* This is more efficient than making separate requests for each file and is recommended for bulk operations.
|
|
2964
|
+
*
|
|
2965
|
+
* **Note on invalid IDs**: If any IDs in the filter are missing, malformed, or do not exist in the store, they will be silently ignored. The response will only include files that were successfully found. For example, if you request 5 IDs but only 3 exist, the response will contain 3 files with `total: 3` in the metadata.
|
|
2966
|
+
*
|
|
2935
2967
|
*/
|
|
2936
2968
|
declare const getAllFiles: <ThrowOnError extends boolean = false>(options?: Options<GetAllFilesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2937
2969
|
data?: Array<File>;
|