@epcc-sdk/sdks-shopper 0.0.32 → 0.0.33
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 +6 -8
- package/dist/client/@tanstack/react-query.gen.cjs +43 -64
- package/dist/client/@tanstack/react-query.gen.cjs.map +1 -1
- package/dist/client/@tanstack/react-query.gen.d.cts +67 -96
- package/dist/client/@tanstack/react-query.gen.d.ts +67 -96
- package/dist/client/@tanstack/react-query.gen.mjs +41 -61
- package/dist/client/@tanstack/react-query.gen.mjs.map +1 -1
- package/dist/client/index.d.cts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/sdk.gen.cjs +44 -34
- package/dist/client/sdk.gen.cjs.map +1 -1
- package/dist/client/sdk.gen.d.cts +26 -32
- package/dist/client/sdk.gen.d.ts +26 -32
- package/dist/client/sdk.gen.mjs +41 -30
- package/dist/client/sdk.gen.mjs.map +1 -1
- package/dist/client/transformers.gen.cjs +3 -94
- package/dist/client/transformers.gen.cjs.map +1 -1
- package/dist/client/transformers.gen.d.cts +2 -9
- package/dist/client/transformers.gen.d.ts +2 -9
- package/dist/client/transformers.gen.mjs +3 -87
- 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 +252 -245
- package/dist/client/types.gen.d.ts +252 -245
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/react-query.d.cts +1 -1
- package/dist/react-query.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -404,28 +404,26 @@ const product = await getByContextProduct({
|
|
|
404
404
|
|
|
405
405
|
- **`cancelATransaction`** (`POST /v2/orders/{orderID}/transactions/{transactionID}/cancel`)
|
|
406
406
|
|
|
407
|
-
- **`getSubscriptionProduct`** (`GET /v2/subscriptions/products/{product_uuid}`)
|
|
408
|
-
|
|
409
|
-
- **`getPlan`** (`GET /v2/subscriptions/plans/{plan_uuid}`)
|
|
410
|
-
|
|
411
407
|
- **`listOfferings`** (`GET /v2/subscriptions/offerings`)
|
|
412
408
|
|
|
413
409
|
- **`getOffering`** (`GET /v2/subscriptions/offerings/{offering_uuid}`)
|
|
414
410
|
|
|
415
|
-
- **`
|
|
411
|
+
- **`listOfferingPricingOptions`** (`GET /v2/subscriptions/offerings/{offering_uuid}/pricing-options`)
|
|
416
412
|
|
|
417
413
|
- **`listOfferingFeatures`** (`GET /v2/subscriptions/offerings/{offering_uuid}/features`)
|
|
418
414
|
|
|
419
|
-
- **`
|
|
415
|
+
- **`listOfferingPlans`** (`GET /v2/subscriptions/offerings/{offering_uuid}/plans`)
|
|
416
|
+
|
|
417
|
+
- **`listOfferingPlanPricingOptions`** (`GET /v2/subscriptions/offerings/{offering_uuid}/plans/{plan_uuid}/relationships/pricing_options`)
|
|
420
418
|
|
|
421
419
|
- **`listSubscriptions`** (`GET /v2/subscriptions/subscriptions`)
|
|
422
420
|
|
|
423
421
|
- **`getSubscription`** (`GET /v2/subscriptions/subscriptions/{subscription_uuid}`)
|
|
424
422
|
|
|
425
|
-
- **`listSubscriptionProducts`** (`GET /v2/subscriptions/subscriptions/{subscription_uuid}/products`)
|
|
426
|
-
|
|
427
423
|
- **`listSubscriptionPlans`** (`GET /v2/subscriptions/subscriptions/{subscription_uuid}/plans`)
|
|
428
424
|
|
|
425
|
+
- **`listSubscriptionPricingOptions`** (`GET /v2/subscriptions/subscriptions/{subscription_uuid}/pricing-options`)
|
|
426
|
+
|
|
429
427
|
- **`listSubscriptionStates`** (`GET /v2/subscriptions/subscriptions/{subscription_uuid}/states`)
|
|
430
428
|
|
|
431
429
|
- **`getSubscriptionState`** (`GET /v2/subscriptions/subscriptions/{subscription_uuid}/states/{state_uuid}`)
|
|
@@ -175,8 +175,6 @@ __export(react_query_gen_exports, {
|
|
|
175
175
|
getOrderItemsQueryKey: () => getOrderItemsQueryKey,
|
|
176
176
|
getOrderTransactionsOptions: () => getOrderTransactionsOptions,
|
|
177
177
|
getOrderTransactionsQueryKey: () => getOrderTransactionsQueryKey,
|
|
178
|
-
getPlanOptions: () => getPlanOptions,
|
|
179
|
-
getPlanQueryKey: () => getPlanQueryKey,
|
|
180
178
|
getProductOptions: () => getProductOptions,
|
|
181
179
|
getProductQueryKey: () => getProductQueryKey,
|
|
182
180
|
getProductsForHierarchyOptions: () => getProductsForHierarchyOptions,
|
|
@@ -198,8 +196,6 @@ __export(react_query_gen_exports, {
|
|
|
198
196
|
getSubscriptionInvoicePaymentQueryKey: () => getSubscriptionInvoicePaymentQueryKey,
|
|
199
197
|
getSubscriptionInvoiceQueryKey: () => getSubscriptionInvoiceQueryKey,
|
|
200
198
|
getSubscriptionOptions: () => getSubscriptionOptions,
|
|
201
|
-
getSubscriptionProductOptions: () => getSubscriptionProductOptions,
|
|
202
|
-
getSubscriptionProductQueryKey: () => getSubscriptionProductQueryKey,
|
|
203
199
|
getSubscriptionQueryKey: () => getSubscriptionQueryKey,
|
|
204
200
|
getSubscriptionStateOptions: () => getSubscriptionStateOptions,
|
|
205
201
|
getSubscriptionStateQueryKey: () => getSubscriptionStateQueryKey,
|
|
@@ -223,10 +219,12 @@ __export(react_query_gen_exports, {
|
|
|
223
219
|
listLocationsQueryKey: () => listLocationsQueryKey,
|
|
224
220
|
listOfferingFeaturesOptions: () => listOfferingFeaturesOptions,
|
|
225
221
|
listOfferingFeaturesQueryKey: () => listOfferingFeaturesQueryKey,
|
|
222
|
+
listOfferingPlanPricingOptionsOptions: () => listOfferingPlanPricingOptionsOptions,
|
|
223
|
+
listOfferingPlanPricingOptionsQueryKey: () => listOfferingPlanPricingOptionsQueryKey,
|
|
226
224
|
listOfferingPlansOptions: () => listOfferingPlansOptions,
|
|
227
225
|
listOfferingPlansQueryKey: () => listOfferingPlansQueryKey,
|
|
228
|
-
|
|
229
|
-
|
|
226
|
+
listOfferingPricingOptionsOptions: () => listOfferingPricingOptionsOptions,
|
|
227
|
+
listOfferingPricingOptionsQueryKey: () => listOfferingPricingOptionsQueryKey,
|
|
230
228
|
listOfferingsOptions: () => listOfferingsOptions,
|
|
231
229
|
listOfferingsQueryKey: () => listOfferingsQueryKey,
|
|
232
230
|
listSubscriptionInvoicePaymentsOptions: () => listSubscriptionInvoicePaymentsOptions,
|
|
@@ -235,8 +233,8 @@ __export(react_query_gen_exports, {
|
|
|
235
233
|
listSubscriptionInvoicesQueryKey: () => listSubscriptionInvoicesQueryKey,
|
|
236
234
|
listSubscriptionPlansOptions: () => listSubscriptionPlansOptions,
|
|
237
235
|
listSubscriptionPlansQueryKey: () => listSubscriptionPlansQueryKey,
|
|
238
|
-
|
|
239
|
-
|
|
236
|
+
listSubscriptionPricingOptionsOptions: () => listSubscriptionPricingOptionsOptions,
|
|
237
|
+
listSubscriptionPricingOptionsQueryKey: () => listSubscriptionPricingOptionsQueryKey,
|
|
240
238
|
listSubscriptionStatesOptions: () => listSubscriptionStatesOptions,
|
|
241
239
|
listSubscriptionStatesQueryKey: () => listSubscriptionStatesQueryKey,
|
|
242
240
|
listSubscriptionsOptions: () => listSubscriptionsOptions,
|
|
@@ -1856,38 +1854,6 @@ const cancelATransactionMutation = (options) => {
|
|
|
1856
1854
|
};
|
|
1857
1855
|
return mutationOptions;
|
|
1858
1856
|
};
|
|
1859
|
-
const getSubscriptionProductQueryKey = (options) => [createQueryKey("getSubscriptionProduct", options)];
|
|
1860
|
-
const getSubscriptionProductOptions = (options) => {
|
|
1861
|
-
return (0, import_react_query.queryOptions)({
|
|
1862
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1863
|
-
const { data } = await (0, import_sdk.getSubscriptionProduct)({
|
|
1864
|
-
...options,
|
|
1865
|
-
...queryKey[0],
|
|
1866
|
-
signal,
|
|
1867
|
-
throwOnError: true
|
|
1868
|
-
});
|
|
1869
|
-
return data;
|
|
1870
|
-
},
|
|
1871
|
-
queryKey: getSubscriptionProductQueryKey(options)
|
|
1872
|
-
});
|
|
1873
|
-
};
|
|
1874
|
-
const getPlanQueryKey = (options) => [
|
|
1875
|
-
createQueryKey("getPlan", options)
|
|
1876
|
-
];
|
|
1877
|
-
const getPlanOptions = (options) => {
|
|
1878
|
-
return (0, import_react_query.queryOptions)({
|
|
1879
|
-
queryFn: async ({ queryKey, signal }) => {
|
|
1880
|
-
const { data } = await (0, import_sdk.getPlan)({
|
|
1881
|
-
...options,
|
|
1882
|
-
...queryKey[0],
|
|
1883
|
-
signal,
|
|
1884
|
-
throwOnError: true
|
|
1885
|
-
});
|
|
1886
|
-
return data;
|
|
1887
|
-
},
|
|
1888
|
-
queryKey: getPlanQueryKey(options)
|
|
1889
|
-
});
|
|
1890
|
-
};
|
|
1891
1857
|
const listOfferingsQueryKey = (options) => [
|
|
1892
1858
|
createQueryKey("listOfferings", options)
|
|
1893
1859
|
];
|
|
@@ -1922,11 +1888,11 @@ const getOfferingOptions = (options) => {
|
|
|
1922
1888
|
queryKey: getOfferingQueryKey(options)
|
|
1923
1889
|
});
|
|
1924
1890
|
};
|
|
1925
|
-
const
|
|
1926
|
-
const
|
|
1891
|
+
const listOfferingPricingOptionsQueryKey = (options) => [createQueryKey("listOfferingPricingOptions", options)];
|
|
1892
|
+
const listOfferingPricingOptionsOptions = (options) => {
|
|
1927
1893
|
return (0, import_react_query.queryOptions)({
|
|
1928
1894
|
queryFn: async ({ queryKey, signal }) => {
|
|
1929
|
-
const { data } = await (0, import_sdk.
|
|
1895
|
+
const { data } = await (0, import_sdk.listOfferingPricingOptions)({
|
|
1930
1896
|
...options,
|
|
1931
1897
|
...queryKey[0],
|
|
1932
1898
|
signal,
|
|
@@ -1934,7 +1900,7 @@ const listOfferingPlansOptions = (options) => {
|
|
|
1934
1900
|
});
|
|
1935
1901
|
return data;
|
|
1936
1902
|
},
|
|
1937
|
-
queryKey:
|
|
1903
|
+
queryKey: listOfferingPricingOptionsQueryKey(options)
|
|
1938
1904
|
});
|
|
1939
1905
|
};
|
|
1940
1906
|
const listOfferingFeaturesQueryKey = (options) => [createQueryKey("listOfferingFeatures", options)];
|
|
@@ -1952,11 +1918,11 @@ const listOfferingFeaturesOptions = (options) => {
|
|
|
1952
1918
|
queryKey: listOfferingFeaturesQueryKey(options)
|
|
1953
1919
|
});
|
|
1954
1920
|
};
|
|
1955
|
-
const
|
|
1956
|
-
const
|
|
1921
|
+
const listOfferingPlansQueryKey = (options) => [createQueryKey("listOfferingPlans", options)];
|
|
1922
|
+
const listOfferingPlansOptions = (options) => {
|
|
1957
1923
|
return (0, import_react_query.queryOptions)({
|
|
1958
1924
|
queryFn: async ({ queryKey, signal }) => {
|
|
1959
|
-
const { data } = await (0, import_sdk.
|
|
1925
|
+
const { data } = await (0, import_sdk.listOfferingPlans)({
|
|
1960
1926
|
...options,
|
|
1961
1927
|
...queryKey[0],
|
|
1962
1928
|
signal,
|
|
@@ -1964,7 +1930,22 @@ const listOfferingProductsOptions = (options) => {
|
|
|
1964
1930
|
});
|
|
1965
1931
|
return data;
|
|
1966
1932
|
},
|
|
1967
|
-
queryKey:
|
|
1933
|
+
queryKey: listOfferingPlansQueryKey(options)
|
|
1934
|
+
});
|
|
1935
|
+
};
|
|
1936
|
+
const listOfferingPlanPricingOptionsQueryKey = (options) => [createQueryKey("listOfferingPlanPricingOptions", options)];
|
|
1937
|
+
const listOfferingPlanPricingOptionsOptions = (options) => {
|
|
1938
|
+
return (0, import_react_query.queryOptions)({
|
|
1939
|
+
queryFn: async ({ queryKey, signal }) => {
|
|
1940
|
+
const { data } = await (0, import_sdk.listOfferingPlanPricingOptions)({
|
|
1941
|
+
...options,
|
|
1942
|
+
...queryKey[0],
|
|
1943
|
+
signal,
|
|
1944
|
+
throwOnError: true
|
|
1945
|
+
});
|
|
1946
|
+
return data;
|
|
1947
|
+
},
|
|
1948
|
+
queryKey: listOfferingPlanPricingOptionsQueryKey(options)
|
|
1968
1949
|
});
|
|
1969
1950
|
};
|
|
1970
1951
|
const listSubscriptionsQueryKey = (options) => [createQueryKey("listSubscriptions", options)];
|
|
@@ -1997,11 +1978,11 @@ const getSubscriptionOptions = (options) => {
|
|
|
1997
1978
|
queryKey: getSubscriptionQueryKey(options)
|
|
1998
1979
|
});
|
|
1999
1980
|
};
|
|
2000
|
-
const
|
|
2001
|
-
const
|
|
1981
|
+
const listSubscriptionPlansQueryKey = (options) => [createQueryKey("listSubscriptionPlans", options)];
|
|
1982
|
+
const listSubscriptionPlansOptions = (options) => {
|
|
2002
1983
|
return (0, import_react_query.queryOptions)({
|
|
2003
1984
|
queryFn: async ({ queryKey, signal }) => {
|
|
2004
|
-
const { data } = await (0, import_sdk.
|
|
1985
|
+
const { data } = await (0, import_sdk.listSubscriptionPlans)({
|
|
2005
1986
|
...options,
|
|
2006
1987
|
...queryKey[0],
|
|
2007
1988
|
signal,
|
|
@@ -2009,14 +1990,14 @@ const listSubscriptionProductsOptions = (options) => {
|
|
|
2009
1990
|
});
|
|
2010
1991
|
return data;
|
|
2011
1992
|
},
|
|
2012
|
-
queryKey:
|
|
1993
|
+
queryKey: listSubscriptionPlansQueryKey(options)
|
|
2013
1994
|
});
|
|
2014
1995
|
};
|
|
2015
|
-
const
|
|
2016
|
-
const
|
|
1996
|
+
const listSubscriptionPricingOptionsQueryKey = (options) => [createQueryKey("listSubscriptionPricingOptions", options)];
|
|
1997
|
+
const listSubscriptionPricingOptionsOptions = (options) => {
|
|
2017
1998
|
return (0, import_react_query.queryOptions)({
|
|
2018
1999
|
queryFn: async ({ queryKey, signal }) => {
|
|
2019
|
-
const { data } = await (0, import_sdk.
|
|
2000
|
+
const { data } = await (0, import_sdk.listSubscriptionPricingOptions)({
|
|
2020
2001
|
...options,
|
|
2021
2002
|
...queryKey[0],
|
|
2022
2003
|
signal,
|
|
@@ -2024,7 +2005,7 @@ const listSubscriptionPlansOptions = (options) => {
|
|
|
2024
2005
|
});
|
|
2025
2006
|
return data;
|
|
2026
2007
|
},
|
|
2027
|
-
queryKey:
|
|
2008
|
+
queryKey: listSubscriptionPricingOptionsQueryKey(options)
|
|
2028
2009
|
});
|
|
2029
2010
|
};
|
|
2030
2011
|
const listSubscriptionStatesQueryKey = (options) => [createQueryKey("listSubscriptionStates", options)];
|
|
@@ -2726,8 +2707,6 @@ const getAFileOptions = (options) => {
|
|
|
2726
2707
|
getOrderItemsQueryKey,
|
|
2727
2708
|
getOrderTransactionsOptions,
|
|
2728
2709
|
getOrderTransactionsQueryKey,
|
|
2729
|
-
getPlanOptions,
|
|
2730
|
-
getPlanQueryKey,
|
|
2731
2710
|
getProductOptions,
|
|
2732
2711
|
getProductQueryKey,
|
|
2733
2712
|
getProductsForHierarchyOptions,
|
|
@@ -2749,8 +2728,6 @@ const getAFileOptions = (options) => {
|
|
|
2749
2728
|
getSubscriptionInvoicePaymentQueryKey,
|
|
2750
2729
|
getSubscriptionInvoiceQueryKey,
|
|
2751
2730
|
getSubscriptionOptions,
|
|
2752
|
-
getSubscriptionProductOptions,
|
|
2753
|
-
getSubscriptionProductQueryKey,
|
|
2754
2731
|
getSubscriptionQueryKey,
|
|
2755
2732
|
getSubscriptionStateOptions,
|
|
2756
2733
|
getSubscriptionStateQueryKey,
|
|
@@ -2774,10 +2751,12 @@ const getAFileOptions = (options) => {
|
|
|
2774
2751
|
listLocationsQueryKey,
|
|
2775
2752
|
listOfferingFeaturesOptions,
|
|
2776
2753
|
listOfferingFeaturesQueryKey,
|
|
2754
|
+
listOfferingPlanPricingOptionsOptions,
|
|
2755
|
+
listOfferingPlanPricingOptionsQueryKey,
|
|
2777
2756
|
listOfferingPlansOptions,
|
|
2778
2757
|
listOfferingPlansQueryKey,
|
|
2779
|
-
|
|
2780
|
-
|
|
2758
|
+
listOfferingPricingOptionsOptions,
|
|
2759
|
+
listOfferingPricingOptionsQueryKey,
|
|
2781
2760
|
listOfferingsOptions,
|
|
2782
2761
|
listOfferingsQueryKey,
|
|
2783
2762
|
listSubscriptionInvoicePaymentsOptions,
|
|
@@ -2786,8 +2765,8 @@ const getAFileOptions = (options) => {
|
|
|
2786
2765
|
listSubscriptionInvoicesQueryKey,
|
|
2787
2766
|
listSubscriptionPlansOptions,
|
|
2788
2767
|
listSubscriptionPlansQueryKey,
|
|
2789
|
-
|
|
2790
|
-
|
|
2768
|
+
listSubscriptionPricingOptionsOptions,
|
|
2769
|
+
listSubscriptionPricingOptionsQueryKey,
|
|
2791
2770
|
listSubscriptionStatesOptions,
|
|
2792
2771
|
listSubscriptionStatesQueryKey,
|
|
2793
2772
|
listSubscriptionsOptions,
|