@epcc-sdk/sdks-shopper 0.2.0 → 0.3.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/auth/access-token.cjs +17 -0
- package/dist/auth/access-token.cjs.map +1 -0
- package/dist/auth/access-token.d.cts +7 -0
- package/dist/auth/access-token.d.ts +7 -0
- package/dist/auth/access-token.mjs +1 -0
- package/dist/auth/access-token.mjs.map +1 -0
- package/dist/auth/configure-client.d.cts +1 -0
- package/dist/auth/configure-client.d.ts +1 -0
- package/dist/auth/kit.cjs.map +1 -1
- package/dist/auth/kit.d.cts +2 -1
- package/dist/auth/kit.d.ts +2 -1
- package/dist/auth/kit.mjs.map +1 -1
- package/dist/auth/make-auth-fetch.d.cts +1 -0
- package/dist/auth/make-auth-fetch.d.ts +1 -0
- package/dist/auth/token-providers.d.cts +1 -0
- package/dist/auth/token-providers.d.ts +1 -0
- package/dist/client/@tanstack/react-query.gen.d.cts +4 -4
- package/dist/client/@tanstack/react-query.gen.d.ts +4 -4
- 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 +23 -14
- package/dist/client/sdk.gen.d.ts +23 -14
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +132 -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 +126 -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 +719 -87
- package/dist/client/types.gen.d.ts +719 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/interceptors/auth-local-storage-interceptor.cjs.map +1 -1
- package/dist/interceptors/auth-local-storage-interceptor.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -575,8 +575,8 @@ declare const getReleaseById: <ThrowOnError extends boolean = false>(options: Op
|
|
|
575
575
|
*
|
|
576
576
|
* | Operator | Description | Supported Attributes | Example |
|
|
577
577
|
* |:--- |:--- |:--- |:--- |
|
|
578
|
-
* | `eq` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. | `id`,`catalog_id`,`account_ids`,`customer_ids`,`channels`,`tags`,`pricebook_ids` | `filter=eq(id,some-id)` |
|
|
579
|
-
* | `in` | Checks if the values are included in the specified string. If they are, the condition is true. | `id`,`account_ids`,`customer_ids`,`channels`,`tags`,`pricebook_ids` | `filter=in(account_ids,some-id,another-id)` |
|
|
578
|
+
* | `eq` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. | `id`,`catalog_id`,`account_ids`,`customer_ids`,`channels`,`tags`,`pricebook_ids`,`search_profile_slug` | `filter=eq(id,some-id)` |
|
|
579
|
+
* | `in` | Checks if the values are included in the specified string. If they are, the condition is true. | `id`,`account_ids`,`customer_ids`,`channels`,`tags`,`pricebook_ids`,`search_profile_slug` | `filter=in(account_ids,some-id,another-id)` |
|
|
580
580
|
*
|
|
581
581
|
*/
|
|
582
582
|
declare const getRules: <ThrowOnError extends boolean = false>(options?: Options<GetRulesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RuleListData, ErrorResponse, ThrowOnError>;
|
|
@@ -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<{
|
|
@@ -2893,11 +2897,7 @@ declare const createOneTimePasswordTokenRequest: <ThrowOnError extends boolean =
|
|
|
2893
2897
|
declare const updatePasswordProfileInfo: <ThrowOnError extends boolean = false>(options: Options<UpdatePasswordProfileInfoData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PasswordProfileInfoResponse, unknown, ThrowOnError>;
|
|
2894
2898
|
/**
|
|
2895
2899
|
* 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
|
-
* :::
|
|
2900
|
+
* Fetch all currencies.
|
|
2901
2901
|
*
|
|
2902
2902
|
*/
|
|
2903
2903
|
declare const getAllCurrencies: <ThrowOnError extends boolean = false>(options?: Options<GetAllCurrenciesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ResponseData & {
|
|
@@ -2905,15 +2905,11 @@ declare const getAllCurrencies: <ThrowOnError extends boolean = false>(options?:
|
|
|
2905
2905
|
}, ResponseError, ThrowOnError>;
|
|
2906
2906
|
/**
|
|
2907
2907
|
* 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
|
-
* :::
|
|
2908
|
+
* Fetch a currency by its ID.
|
|
2913
2909
|
*
|
|
2914
2910
|
*/
|
|
2915
2911
|
declare const getACurrency: <ThrowOnError extends boolean = false>(options: Options<GetACurrencyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ResponseData & {
|
|
2916
|
-
data?:
|
|
2912
|
+
data?: ResponseCurrency;
|
|
2917
2913
|
}, ResponseError, ThrowOnError>;
|
|
2918
2914
|
/**
|
|
2919
2915
|
* Get all Files
|
|
@@ -2927,11 +2923,24 @@ declare const getACurrency: <ThrowOnError extends boolean = false>(options: Opti
|
|
|
2927
2923
|
*
|
|
2928
2924
|
* | Attribute | Type | Operators | Example |
|
|
2929
2925
|
* |:----------------------|:----------|:--------------------------|:-------------|
|
|
2926
|
+
* | `id` | `string` | `in` | `in(id,file-id-1,file-id-2,file-id-3)` |
|
|
2930
2927
|
* | `file_name` | `string` | `eq` / `like` | `eq(file_name, my_image.jpg)` |
|
|
2931
2928
|
* | `width` | `integer` | `gt` / `ge` / `lt` / `le` | `gt(width,200)` |
|
|
2932
2929
|
* | `height` | `integer` | `gt` / `ge` / `lt` / `le` | `lt(height,500)` |
|
|
2933
2930
|
* | `file_size` | `integer` | `gt` / `ge` / `lt` / `le` | `le(file_size,20953)` |
|
|
2934
2931
|
*
|
|
2932
|
+
* #### Bulk File Retrieval
|
|
2933
|
+
*
|
|
2934
|
+
* To retrieve multiple files by their IDs in a single request, use the `in` operator with a comma-separated list of file IDs:
|
|
2935
|
+
*
|
|
2936
|
+
* ```
|
|
2937
|
+
* GET /v2/files?filter=in(id,06b881bd-f152-4c36-8658-7132a8fab49c,ec73567b-04e8-4000-a11a-7e1407cc2f21)
|
|
2938
|
+
* ```
|
|
2939
|
+
*
|
|
2940
|
+
* This is more efficient than making separate requests for each file and is recommended for bulk operations.
|
|
2941
|
+
*
|
|
2942
|
+
* **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.
|
|
2943
|
+
*
|
|
2935
2944
|
*/
|
|
2936
2945
|
declare const getAllFiles: <ThrowOnError extends boolean = false>(options?: Options<GetAllFilesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2937
2946
|
data?: Array<File>;
|
package/dist/client/sdk.gen.d.ts
CHANGED
|
@@ -575,8 +575,8 @@ declare const getReleaseById: <ThrowOnError extends boolean = false>(options: Op
|
|
|
575
575
|
*
|
|
576
576
|
* | Operator | Description | Supported Attributes | Example |
|
|
577
577
|
* |:--- |:--- |:--- |:--- |
|
|
578
|
-
* | `eq` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. | `id`,`catalog_id`,`account_ids`,`customer_ids`,`channels`,`tags`,`pricebook_ids` | `filter=eq(id,some-id)` |
|
|
579
|
-
* | `in` | Checks if the values are included in the specified string. If they are, the condition is true. | `id`,`account_ids`,`customer_ids`,`channels`,`tags`,`pricebook_ids` | `filter=in(account_ids,some-id,another-id)` |
|
|
578
|
+
* | `eq` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. | `id`,`catalog_id`,`account_ids`,`customer_ids`,`channels`,`tags`,`pricebook_ids`,`search_profile_slug` | `filter=eq(id,some-id)` |
|
|
579
|
+
* | `in` | Checks if the values are included in the specified string. If they are, the condition is true. | `id`,`account_ids`,`customer_ids`,`channels`,`tags`,`pricebook_ids`,`search_profile_slug` | `filter=in(account_ids,some-id,another-id)` |
|
|
580
580
|
*
|
|
581
581
|
*/
|
|
582
582
|
declare const getRules: <ThrowOnError extends boolean = false>(options?: Options<GetRulesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RuleListData, ErrorResponse, ThrowOnError>;
|
|
@@ -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<{
|
|
@@ -2893,11 +2897,7 @@ declare const createOneTimePasswordTokenRequest: <ThrowOnError extends boolean =
|
|
|
2893
2897
|
declare const updatePasswordProfileInfo: <ThrowOnError extends boolean = false>(options: Options<UpdatePasswordProfileInfoData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<PasswordProfileInfoResponse, unknown, ThrowOnError>;
|
|
2894
2898
|
/**
|
|
2895
2899
|
* 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
|
-
* :::
|
|
2900
|
+
* Fetch all currencies.
|
|
2901
2901
|
*
|
|
2902
2902
|
*/
|
|
2903
2903
|
declare const getAllCurrencies: <ThrowOnError extends boolean = false>(options?: Options<GetAllCurrenciesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ResponseData & {
|
|
@@ -2905,15 +2905,11 @@ declare const getAllCurrencies: <ThrowOnError extends boolean = false>(options?:
|
|
|
2905
2905
|
}, ResponseError, ThrowOnError>;
|
|
2906
2906
|
/**
|
|
2907
2907
|
* 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
|
-
* :::
|
|
2908
|
+
* Fetch a currency by its ID.
|
|
2913
2909
|
*
|
|
2914
2910
|
*/
|
|
2915
2911
|
declare const getACurrency: <ThrowOnError extends boolean = false>(options: Options<GetACurrencyData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<ResponseData & {
|
|
2916
|
-
data?:
|
|
2912
|
+
data?: ResponseCurrency;
|
|
2917
2913
|
}, ResponseError, ThrowOnError>;
|
|
2918
2914
|
/**
|
|
2919
2915
|
* Get all Files
|
|
@@ -2927,11 +2923,24 @@ declare const getACurrency: <ThrowOnError extends boolean = false>(options: Opti
|
|
|
2927
2923
|
*
|
|
2928
2924
|
* | Attribute | Type | Operators | Example |
|
|
2929
2925
|
* |:----------------------|:----------|:--------------------------|:-------------|
|
|
2926
|
+
* | `id` | `string` | `in` | `in(id,file-id-1,file-id-2,file-id-3)` |
|
|
2930
2927
|
* | `file_name` | `string` | `eq` / `like` | `eq(file_name, my_image.jpg)` |
|
|
2931
2928
|
* | `width` | `integer` | `gt` / `ge` / `lt` / `le` | `gt(width,200)` |
|
|
2932
2929
|
* | `height` | `integer` | `gt` / `ge` / `lt` / `le` | `lt(height,500)` |
|
|
2933
2930
|
* | `file_size` | `integer` | `gt` / `ge` / `lt` / `le` | `le(file_size,20953)` |
|
|
2934
2931
|
*
|
|
2932
|
+
* #### Bulk File Retrieval
|
|
2933
|
+
*
|
|
2934
|
+
* To retrieve multiple files by their IDs in a single request, use the `in` operator with a comma-separated list of file IDs:
|
|
2935
|
+
*
|
|
2936
|
+
* ```
|
|
2937
|
+
* GET /v2/files?filter=in(id,06b881bd-f152-4c36-8658-7132a8fab49c,ec73567b-04e8-4000-a11a-7e1407cc2f21)
|
|
2938
|
+
* ```
|
|
2939
|
+
*
|
|
2940
|
+
* This is more efficient than making separate requests for each file and is recommended for bulk operations.
|
|
2941
|
+
*
|
|
2942
|
+
* **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.
|
|
2943
|
+
*
|
|
2935
2944
|
*/
|
|
2936
2945
|
declare const getAllFiles: <ThrowOnError extends boolean = false>(options?: Options<GetAllFilesData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<{
|
|
2937
2946
|
data?: Array<File>;
|