@epcc-sdk/sdks-shopper 0.0.3 → 0.0.4
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.ts +257 -1
- package/dist/client/@tanstack/react-query.gen.js +153 -1
- package/dist/client/sdk.gen.d.ts +68 -1
- package/dist/client/sdk.gen.js +109 -0
- package/dist/client/transformers.gen.d.ts +5 -1
- package/dist/client/transformers.gen.js +55 -0
- package/dist/client/types.gen.d.ts +1926 -13
- package/package.json +3 -3
|
@@ -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 } 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 } 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;
|
|
@@ -1508,3 +1508,259 @@ export declare const cancelATransactionOptions: (options: Options<CancelATransac
|
|
|
1508
1508
|
export declare const cancelATransactionMutation: (options?: Partial<Options<CancelATransactionData>>) => UseMutationOptions<import("../types.gen").ResponseData & {
|
|
1509
1509
|
data?: import("../types.gen").TransactionResponse;
|
|
1510
1510
|
}, import("../types.gen").ResponseError, Options<CancelATransactionData>, unknown>;
|
|
1511
|
+
export declare const getSubscriptionProductQueryKey: (options: Options<GetSubscriptionProductData>) => (Pick<Options<GetSubscriptionProductData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1512
|
+
_id: string;
|
|
1513
|
+
_infinite?: boolean;
|
|
1514
|
+
})[];
|
|
1515
|
+
export declare const getSubscriptionProductOptions: (options: Options<GetSubscriptionProductData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1516
|
+
data?: import("../types.gen").Product2;
|
|
1517
|
+
}, Error, {
|
|
1518
|
+
data?: import("../types.gen").Product2;
|
|
1519
|
+
}, (Pick<Options<GetSubscriptionProductData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1520
|
+
_id: string;
|
|
1521
|
+
_infinite?: boolean;
|
|
1522
|
+
})[]>, "queryFn"> & {
|
|
1523
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1524
|
+
data?: import("../types.gen").Product2;
|
|
1525
|
+
}, (Pick<Options<GetSubscriptionProductData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1526
|
+
_id: string;
|
|
1527
|
+
_infinite?: boolean;
|
|
1528
|
+
})[], never> | undefined;
|
|
1529
|
+
} & {
|
|
1530
|
+
queryKey: (Pick<Options<GetSubscriptionProductData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1531
|
+
_id: string;
|
|
1532
|
+
_infinite?: boolean;
|
|
1533
|
+
})[] & {
|
|
1534
|
+
[dataTagSymbol]: {
|
|
1535
|
+
data?: import("../types.gen").Product2;
|
|
1536
|
+
};
|
|
1537
|
+
[dataTagErrorSymbol]: Error;
|
|
1538
|
+
};
|
|
1539
|
+
};
|
|
1540
|
+
export declare const getPlanQueryKey: (options: Options<GetPlanData>) => (Pick<Options<GetPlanData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1541
|
+
_id: string;
|
|
1542
|
+
_infinite?: boolean;
|
|
1543
|
+
})[];
|
|
1544
|
+
export declare const getPlanOptions: (options: Options<GetPlanData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1545
|
+
data?: import("../types.gen").Plan;
|
|
1546
|
+
}, Error, {
|
|
1547
|
+
data?: import("../types.gen").Plan;
|
|
1548
|
+
}, (Pick<Options<GetPlanData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1549
|
+
_id: string;
|
|
1550
|
+
_infinite?: boolean;
|
|
1551
|
+
})[]>, "queryFn"> & {
|
|
1552
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1553
|
+
data?: import("../types.gen").Plan;
|
|
1554
|
+
}, (Pick<Options<GetPlanData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1555
|
+
_id: string;
|
|
1556
|
+
_infinite?: boolean;
|
|
1557
|
+
})[], never> | undefined;
|
|
1558
|
+
} & {
|
|
1559
|
+
queryKey: (Pick<Options<GetPlanData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1560
|
+
_id: string;
|
|
1561
|
+
_infinite?: boolean;
|
|
1562
|
+
})[] & {
|
|
1563
|
+
[dataTagSymbol]: {
|
|
1564
|
+
data?: import("../types.gen").Plan;
|
|
1565
|
+
};
|
|
1566
|
+
[dataTagErrorSymbol]: Error;
|
|
1567
|
+
};
|
|
1568
|
+
};
|
|
1569
|
+
export declare const listOfferingsQueryKey: (options?: Options<ListOfferingsData>) => (Pick<Options<ListOfferingsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1570
|
+
_id: string;
|
|
1571
|
+
_infinite?: boolean;
|
|
1572
|
+
})[];
|
|
1573
|
+
export declare const listOfferingsOptions: (options?: Options<ListOfferingsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1574
|
+
data?: Array<import("../types.gen").Offering>;
|
|
1575
|
+
included?: import("../types.gen").OfferingIncludes;
|
|
1576
|
+
links?: import("../types.gen").Links2;
|
|
1577
|
+
}, Error, {
|
|
1578
|
+
data?: Array<import("../types.gen").Offering>;
|
|
1579
|
+
included?: import("../types.gen").OfferingIncludes;
|
|
1580
|
+
links?: import("../types.gen").Links2;
|
|
1581
|
+
}, (Pick<Options<ListOfferingsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1582
|
+
_id: string;
|
|
1583
|
+
_infinite?: boolean;
|
|
1584
|
+
})[]>, "queryFn"> & {
|
|
1585
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1586
|
+
data?: Array<import("../types.gen").Offering>;
|
|
1587
|
+
included?: import("../types.gen").OfferingIncludes;
|
|
1588
|
+
links?: import("../types.gen").Links2;
|
|
1589
|
+
}, (Pick<Options<ListOfferingsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1590
|
+
_id: string;
|
|
1591
|
+
_infinite?: boolean;
|
|
1592
|
+
})[], never> | undefined;
|
|
1593
|
+
} & {
|
|
1594
|
+
queryKey: (Pick<Options<ListOfferingsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1595
|
+
_id: string;
|
|
1596
|
+
_infinite?: boolean;
|
|
1597
|
+
})[] & {
|
|
1598
|
+
[dataTagSymbol]: {
|
|
1599
|
+
data?: Array<import("../types.gen").Offering>;
|
|
1600
|
+
included?: import("../types.gen").OfferingIncludes;
|
|
1601
|
+
links?: import("../types.gen").Links2;
|
|
1602
|
+
};
|
|
1603
|
+
[dataTagErrorSymbol]: Error;
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
export declare const getOfferingQueryKey: (options: Options<GetOfferingData>) => (Pick<Options<GetOfferingData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1607
|
+
_id: string;
|
|
1608
|
+
_infinite?: boolean;
|
|
1609
|
+
})[];
|
|
1610
|
+
export declare const getOfferingOptions: (options: Options<GetOfferingData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1611
|
+
data?: import("../types.gen").Offering;
|
|
1612
|
+
included?: import("../types.gen").OfferingIncludes;
|
|
1613
|
+
}, Error, {
|
|
1614
|
+
data?: import("../types.gen").Offering;
|
|
1615
|
+
included?: import("../types.gen").OfferingIncludes;
|
|
1616
|
+
}, (Pick<Options<GetOfferingData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1617
|
+
_id: string;
|
|
1618
|
+
_infinite?: boolean;
|
|
1619
|
+
})[]>, "queryFn"> & {
|
|
1620
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1621
|
+
data?: import("../types.gen").Offering;
|
|
1622
|
+
included?: import("../types.gen").OfferingIncludes;
|
|
1623
|
+
}, (Pick<Options<GetOfferingData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1624
|
+
_id: string;
|
|
1625
|
+
_infinite?: boolean;
|
|
1626
|
+
})[], never> | undefined;
|
|
1627
|
+
} & {
|
|
1628
|
+
queryKey: (Pick<Options<GetOfferingData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1629
|
+
_id: string;
|
|
1630
|
+
_infinite?: boolean;
|
|
1631
|
+
})[] & {
|
|
1632
|
+
[dataTagSymbol]: {
|
|
1633
|
+
data?: import("../types.gen").Offering;
|
|
1634
|
+
included?: import("../types.gen").OfferingIncludes;
|
|
1635
|
+
};
|
|
1636
|
+
[dataTagErrorSymbol]: Error;
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
export declare const listOfferingPlansQueryKey: (options: Options<ListOfferingPlansData>) => (Pick<Options<ListOfferingPlansData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1640
|
+
_id: string;
|
|
1641
|
+
_infinite?: boolean;
|
|
1642
|
+
})[];
|
|
1643
|
+
export declare const listOfferingPlansOptions: (options: Options<ListOfferingPlansData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1644
|
+
data?: Array<import("../types.gen").OfferingPlan>;
|
|
1645
|
+
links?: import("../types.gen").Links2;
|
|
1646
|
+
}, Error, {
|
|
1647
|
+
data?: Array<import("../types.gen").OfferingPlan>;
|
|
1648
|
+
links?: import("../types.gen").Links2;
|
|
1649
|
+
}, (Pick<Options<ListOfferingPlansData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1650
|
+
_id: string;
|
|
1651
|
+
_infinite?: boolean;
|
|
1652
|
+
})[]>, "queryFn"> & {
|
|
1653
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1654
|
+
data?: Array<import("../types.gen").OfferingPlan>;
|
|
1655
|
+
links?: import("../types.gen").Links2;
|
|
1656
|
+
}, (Pick<Options<ListOfferingPlansData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1657
|
+
_id: string;
|
|
1658
|
+
_infinite?: boolean;
|
|
1659
|
+
})[], never> | undefined;
|
|
1660
|
+
} & {
|
|
1661
|
+
queryKey: (Pick<Options<ListOfferingPlansData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1662
|
+
_id: string;
|
|
1663
|
+
_infinite?: boolean;
|
|
1664
|
+
})[] & {
|
|
1665
|
+
[dataTagSymbol]: {
|
|
1666
|
+
data?: Array<import("../types.gen").OfferingPlan>;
|
|
1667
|
+
links?: import("../types.gen").Links2;
|
|
1668
|
+
};
|
|
1669
|
+
[dataTagErrorSymbol]: Error;
|
|
1670
|
+
};
|
|
1671
|
+
};
|
|
1672
|
+
export declare const listOfferingFeaturesQueryKey: (options: Options<ListOfferingFeaturesData>) => (Pick<Options<ListOfferingFeaturesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1673
|
+
_id: string;
|
|
1674
|
+
_infinite?: boolean;
|
|
1675
|
+
})[];
|
|
1676
|
+
export declare const listOfferingFeaturesOptions: (options: Options<ListOfferingFeaturesData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1677
|
+
data?: Array<import("../types.gen").OfferingFeature>;
|
|
1678
|
+
links?: import("../types.gen").Links2;
|
|
1679
|
+
}, Error, {
|
|
1680
|
+
data?: Array<import("../types.gen").OfferingFeature>;
|
|
1681
|
+
links?: import("../types.gen").Links2;
|
|
1682
|
+
}, (Pick<Options<ListOfferingFeaturesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1683
|
+
_id: string;
|
|
1684
|
+
_infinite?: boolean;
|
|
1685
|
+
})[]>, "queryFn"> & {
|
|
1686
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1687
|
+
data?: Array<import("../types.gen").OfferingFeature>;
|
|
1688
|
+
links?: import("../types.gen").Links2;
|
|
1689
|
+
}, (Pick<Options<ListOfferingFeaturesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1690
|
+
_id: string;
|
|
1691
|
+
_infinite?: boolean;
|
|
1692
|
+
})[], never> | undefined;
|
|
1693
|
+
} & {
|
|
1694
|
+
queryKey: (Pick<Options<ListOfferingFeaturesData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1695
|
+
_id: string;
|
|
1696
|
+
_infinite?: boolean;
|
|
1697
|
+
})[] & {
|
|
1698
|
+
[dataTagSymbol]: {
|
|
1699
|
+
data?: Array<import("../types.gen").OfferingFeature>;
|
|
1700
|
+
links?: import("../types.gen").Links2;
|
|
1701
|
+
};
|
|
1702
|
+
[dataTagErrorSymbol]: Error;
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
export declare const listOfferingProductsQueryKey: (options: Options<ListOfferingProductsData>) => (Pick<Options<ListOfferingProductsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1706
|
+
_id: string;
|
|
1707
|
+
_infinite?: boolean;
|
|
1708
|
+
})[];
|
|
1709
|
+
export declare const listOfferingProductsOptions: (options: Options<ListOfferingProductsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1710
|
+
data?: Array<import("../types.gen").OfferingProduct>;
|
|
1711
|
+
links?: import("../types.gen").Links2;
|
|
1712
|
+
}, Error, {
|
|
1713
|
+
data?: Array<import("../types.gen").OfferingProduct>;
|
|
1714
|
+
links?: import("../types.gen").Links2;
|
|
1715
|
+
}, (Pick<Options<ListOfferingProductsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1716
|
+
_id: string;
|
|
1717
|
+
_infinite?: boolean;
|
|
1718
|
+
})[]>, "queryFn"> & {
|
|
1719
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1720
|
+
data?: Array<import("../types.gen").OfferingProduct>;
|
|
1721
|
+
links?: import("../types.gen").Links2;
|
|
1722
|
+
}, (Pick<Options<ListOfferingProductsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1723
|
+
_id: string;
|
|
1724
|
+
_infinite?: boolean;
|
|
1725
|
+
})[], never> | undefined;
|
|
1726
|
+
} & {
|
|
1727
|
+
queryKey: (Pick<Options<ListOfferingProductsData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1728
|
+
_id: string;
|
|
1729
|
+
_infinite?: boolean;
|
|
1730
|
+
})[] & {
|
|
1731
|
+
[dataTagSymbol]: {
|
|
1732
|
+
data?: Array<import("../types.gen").OfferingProduct>;
|
|
1733
|
+
links?: import("../types.gen").Links2;
|
|
1734
|
+
};
|
|
1735
|
+
[dataTagErrorSymbol]: Error;
|
|
1736
|
+
};
|
|
1737
|
+
};
|
|
1738
|
+
export declare const getFeatureQueryKey: (options: Options<GetFeatureData>) => (Pick<Options<GetFeatureData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1739
|
+
_id: string;
|
|
1740
|
+
_infinite?: boolean;
|
|
1741
|
+
})[];
|
|
1742
|
+
export declare const getFeatureOptions: (options: Options<GetFeatureData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
1743
|
+
data?: import("../types.gen").Feature;
|
|
1744
|
+
}, Error, {
|
|
1745
|
+
data?: import("../types.gen").Feature;
|
|
1746
|
+
}, (Pick<Options<GetFeatureData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1747
|
+
_id: string;
|
|
1748
|
+
_infinite?: boolean;
|
|
1749
|
+
})[]>, "queryFn"> & {
|
|
1750
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
1751
|
+
data?: import("../types.gen").Feature;
|
|
1752
|
+
}, (Pick<Options<GetFeatureData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1753
|
+
_id: string;
|
|
1754
|
+
_infinite?: boolean;
|
|
1755
|
+
})[], never> | undefined;
|
|
1756
|
+
} & {
|
|
1757
|
+
queryKey: (Pick<Options<GetFeatureData>, "body" | "headers" | "path" | "query" | "baseUrl"> & {
|
|
1758
|
+
_id: string;
|
|
1759
|
+
_infinite?: boolean;
|
|
1760
|
+
})[] & {
|
|
1761
|
+
[dataTagSymbol]: {
|
|
1762
|
+
data?: import("../types.gen").Feature;
|
|
1763
|
+
};
|
|
1764
|
+
[dataTagErrorSymbol]: Error;
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
@@ -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, 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, client, } from "../sdk.gen";
|
|
51
51
|
var createQueryKey = function (id, options, infinite) {
|
|
52
52
|
var _a;
|
|
53
53
|
var params = {
|
|
@@ -1913,3 +1913,155 @@ export var cancelATransactionMutation = function (options) {
|
|
|
1913
1913
|
};
|
|
1914
1914
|
return mutationOptions;
|
|
1915
1915
|
};
|
|
1916
|
+
export var getSubscriptionProductQueryKey = function (options) { return [createQueryKey("getSubscriptionProduct", options)]; };
|
|
1917
|
+
export var getSubscriptionProductOptions = function (options) {
|
|
1918
|
+
return queryOptions({
|
|
1919
|
+
queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
1920
|
+
var data;
|
|
1921
|
+
var queryKey = _b.queryKey, signal = _b.signal;
|
|
1922
|
+
return __generator(this, function (_c) {
|
|
1923
|
+
switch (_c.label) {
|
|
1924
|
+
case 0: return [4 /*yield*/, getSubscriptionProduct(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
|
|
1925
|
+
case 1:
|
|
1926
|
+
data = (_c.sent()).data;
|
|
1927
|
+
return [2 /*return*/, data];
|
|
1928
|
+
}
|
|
1929
|
+
});
|
|
1930
|
+
}); },
|
|
1931
|
+
queryKey: getSubscriptionProductQueryKey(options),
|
|
1932
|
+
});
|
|
1933
|
+
};
|
|
1934
|
+
export var getPlanQueryKey = function (options) { return [
|
|
1935
|
+
createQueryKey("getPlan", options),
|
|
1936
|
+
]; };
|
|
1937
|
+
export var getPlanOptions = function (options) {
|
|
1938
|
+
return queryOptions({
|
|
1939
|
+
queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
1940
|
+
var data;
|
|
1941
|
+
var queryKey = _b.queryKey, signal = _b.signal;
|
|
1942
|
+
return __generator(this, function (_c) {
|
|
1943
|
+
switch (_c.label) {
|
|
1944
|
+
case 0: return [4 /*yield*/, getPlan(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
|
|
1945
|
+
case 1:
|
|
1946
|
+
data = (_c.sent()).data;
|
|
1947
|
+
return [2 /*return*/, data];
|
|
1948
|
+
}
|
|
1949
|
+
});
|
|
1950
|
+
}); },
|
|
1951
|
+
queryKey: getPlanQueryKey(options),
|
|
1952
|
+
});
|
|
1953
|
+
};
|
|
1954
|
+
export var listOfferingsQueryKey = function (options) { return [
|
|
1955
|
+
createQueryKey("listOfferings", options),
|
|
1956
|
+
]; };
|
|
1957
|
+
export var listOfferingsOptions = function (options) {
|
|
1958
|
+
return queryOptions({
|
|
1959
|
+
queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
1960
|
+
var data;
|
|
1961
|
+
var queryKey = _b.queryKey, signal = _b.signal;
|
|
1962
|
+
return __generator(this, function (_c) {
|
|
1963
|
+
switch (_c.label) {
|
|
1964
|
+
case 0: return [4 /*yield*/, listOfferings(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
|
|
1965
|
+
case 1:
|
|
1966
|
+
data = (_c.sent()).data;
|
|
1967
|
+
return [2 /*return*/, data];
|
|
1968
|
+
}
|
|
1969
|
+
});
|
|
1970
|
+
}); },
|
|
1971
|
+
queryKey: listOfferingsQueryKey(options),
|
|
1972
|
+
});
|
|
1973
|
+
};
|
|
1974
|
+
export var getOfferingQueryKey = function (options) { return [
|
|
1975
|
+
createQueryKey("getOffering", options),
|
|
1976
|
+
]; };
|
|
1977
|
+
export var getOfferingOptions = function (options) {
|
|
1978
|
+
return queryOptions({
|
|
1979
|
+
queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
1980
|
+
var data;
|
|
1981
|
+
var queryKey = _b.queryKey, signal = _b.signal;
|
|
1982
|
+
return __generator(this, function (_c) {
|
|
1983
|
+
switch (_c.label) {
|
|
1984
|
+
case 0: return [4 /*yield*/, getOffering(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
|
|
1985
|
+
case 1:
|
|
1986
|
+
data = (_c.sent()).data;
|
|
1987
|
+
return [2 /*return*/, data];
|
|
1988
|
+
}
|
|
1989
|
+
});
|
|
1990
|
+
}); },
|
|
1991
|
+
queryKey: getOfferingQueryKey(options),
|
|
1992
|
+
});
|
|
1993
|
+
};
|
|
1994
|
+
export var listOfferingPlansQueryKey = function (options) { return [createQueryKey("listOfferingPlans", options)]; };
|
|
1995
|
+
export var listOfferingPlansOptions = function (options) {
|
|
1996
|
+
return queryOptions({
|
|
1997
|
+
queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
1998
|
+
var data;
|
|
1999
|
+
var queryKey = _b.queryKey, signal = _b.signal;
|
|
2000
|
+
return __generator(this, function (_c) {
|
|
2001
|
+
switch (_c.label) {
|
|
2002
|
+
case 0: return [4 /*yield*/, listOfferingPlans(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
|
|
2003
|
+
case 1:
|
|
2004
|
+
data = (_c.sent()).data;
|
|
2005
|
+
return [2 /*return*/, data];
|
|
2006
|
+
}
|
|
2007
|
+
});
|
|
2008
|
+
}); },
|
|
2009
|
+
queryKey: listOfferingPlansQueryKey(options),
|
|
2010
|
+
});
|
|
2011
|
+
};
|
|
2012
|
+
export var listOfferingFeaturesQueryKey = function (options) { return [createQueryKey("listOfferingFeatures", options)]; };
|
|
2013
|
+
export var listOfferingFeaturesOptions = function (options) {
|
|
2014
|
+
return queryOptions({
|
|
2015
|
+
queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
2016
|
+
var data;
|
|
2017
|
+
var queryKey = _b.queryKey, signal = _b.signal;
|
|
2018
|
+
return __generator(this, function (_c) {
|
|
2019
|
+
switch (_c.label) {
|
|
2020
|
+
case 0: return [4 /*yield*/, listOfferingFeatures(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
|
|
2021
|
+
case 1:
|
|
2022
|
+
data = (_c.sent()).data;
|
|
2023
|
+
return [2 /*return*/, data];
|
|
2024
|
+
}
|
|
2025
|
+
});
|
|
2026
|
+
}); },
|
|
2027
|
+
queryKey: listOfferingFeaturesQueryKey(options),
|
|
2028
|
+
});
|
|
2029
|
+
};
|
|
2030
|
+
export var listOfferingProductsQueryKey = function (options) { return [createQueryKey("listOfferingProducts", options)]; };
|
|
2031
|
+
export var listOfferingProductsOptions = function (options) {
|
|
2032
|
+
return queryOptions({
|
|
2033
|
+
queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
2034
|
+
var data;
|
|
2035
|
+
var queryKey = _b.queryKey, signal = _b.signal;
|
|
2036
|
+
return __generator(this, function (_c) {
|
|
2037
|
+
switch (_c.label) {
|
|
2038
|
+
case 0: return [4 /*yield*/, listOfferingProducts(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
|
|
2039
|
+
case 1:
|
|
2040
|
+
data = (_c.sent()).data;
|
|
2041
|
+
return [2 /*return*/, data];
|
|
2042
|
+
}
|
|
2043
|
+
});
|
|
2044
|
+
}); },
|
|
2045
|
+
queryKey: listOfferingProductsQueryKey(options),
|
|
2046
|
+
});
|
|
2047
|
+
};
|
|
2048
|
+
export var getFeatureQueryKey = function (options) { return [
|
|
2049
|
+
createQueryKey("getFeature", options),
|
|
2050
|
+
]; };
|
|
2051
|
+
export var getFeatureOptions = function (options) {
|
|
2052
|
+
return queryOptions({
|
|
2053
|
+
queryFn: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
|
|
2054
|
+
var data;
|
|
2055
|
+
var queryKey = _b.queryKey, signal = _b.signal;
|
|
2056
|
+
return __generator(this, function (_c) {
|
|
2057
|
+
switch (_c.label) {
|
|
2058
|
+
case 0: return [4 /*yield*/, getFeature(__assign(__assign(__assign({}, options), queryKey[0]), { signal: signal, throwOnError: true }))];
|
|
2059
|
+
case 1:
|
|
2060
|
+
data = (_c.sent()).data;
|
|
2061
|
+
return [2 /*return*/, data];
|
|
2062
|
+
}
|
|
2063
|
+
});
|
|
2064
|
+
}); },
|
|
2065
|
+
queryKey: getFeatureQueryKey(options),
|
|
2066
|
+
});
|
|
2067
|
+
};
|
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 } 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 } 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
|
|
@@ -2188,3 +2188,70 @@ export declare const getATransaction: <ThrowOnError extends boolean = false>(opt
|
|
|
2188
2188
|
export declare const cancelATransaction: <ThrowOnError extends boolean = false>(options: Options<CancelATransactionData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").ResponseData & {
|
|
2189
2189
|
data?: import("./types.gen").TransactionResponse;
|
|
2190
2190
|
}, import("./types.gen").ResponseError, ThrowOnError>;
|
|
2191
|
+
/**
|
|
2192
|
+
* Get product
|
|
2193
|
+
*/
|
|
2194
|
+
export declare const getSubscriptionProduct: <ThrowOnError extends boolean = false>(options: Options<GetSubscriptionProductData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
2195
|
+
data?: import("./types.gen").Product2;
|
|
2196
|
+
}, import("./types.gen").ErrorResponse2, ThrowOnError>;
|
|
2197
|
+
/**
|
|
2198
|
+
* Get plan
|
|
2199
|
+
*/
|
|
2200
|
+
export declare const getPlan: <ThrowOnError extends boolean = false>(options: Options<GetPlanData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
2201
|
+
data?: import("./types.gen").Plan;
|
|
2202
|
+
}, import("./types.gen").ErrorResponse2, ThrowOnError>;
|
|
2203
|
+
/**
|
|
2204
|
+
* List offerings
|
|
2205
|
+
* Retrieves a list of all subscription offerings.
|
|
2206
|
+
*
|
|
2207
|
+
* ### Filtering
|
|
2208
|
+
*
|
|
2209
|
+
* This endpoint supports filtering. For the general syntax, see [**Filtering**](/guides/Getting-Started/filtering).
|
|
2210
|
+
*
|
|
2211
|
+
* The following attributes and operators are supported.
|
|
2212
|
+
*
|
|
2213
|
+
* | Operator | Attribute | Description |
|
|
2214
|
+
* | --- | --- | --- |
|
|
2215
|
+
* | `eq` | `external_ref`, `products.external_ref`, `proration_policy_id` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. |
|
|
2216
|
+
* | `in` | `products.external_ref` | In. Checks if the values are included in the specified string. If they are, the condition is true. |
|
|
2217
|
+
*
|
|
2218
|
+
*/
|
|
2219
|
+
export declare const listOfferings: <ThrowOnError extends boolean = false>(options?: Options<ListOfferingsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
2220
|
+
data?: Array<import("./types.gen").Offering>;
|
|
2221
|
+
included?: import("./types.gen").OfferingIncludes;
|
|
2222
|
+
links?: import("./types.gen").Links2;
|
|
2223
|
+
}, import("./types.gen").ErrorResponse2, ThrowOnError>;
|
|
2224
|
+
/**
|
|
2225
|
+
* Get offering
|
|
2226
|
+
*/
|
|
2227
|
+
export declare const getOffering: <ThrowOnError extends boolean = false>(options: Options<GetOfferingData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
2228
|
+
data?: import("./types.gen").Offering;
|
|
2229
|
+
included?: import("./types.gen").OfferingIncludes;
|
|
2230
|
+
}, import("./types.gen").ErrorResponse2, ThrowOnError>;
|
|
2231
|
+
/**
|
|
2232
|
+
* List an offering's plans
|
|
2233
|
+
*/
|
|
2234
|
+
export declare const listOfferingPlans: <ThrowOnError extends boolean = false>(options: Options<ListOfferingPlansData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
2235
|
+
data?: Array<import("./types.gen").OfferingPlan>;
|
|
2236
|
+
links?: import("./types.gen").Links2;
|
|
2237
|
+
}, import("./types.gen").ErrorResponse2, ThrowOnError>;
|
|
2238
|
+
/**
|
|
2239
|
+
* List an offering's features
|
|
2240
|
+
*/
|
|
2241
|
+
export declare const listOfferingFeatures: <ThrowOnError extends boolean = false>(options: Options<ListOfferingFeaturesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
2242
|
+
data?: Array<import("./types.gen").OfferingFeature>;
|
|
2243
|
+
links?: import("./types.gen").Links2;
|
|
2244
|
+
}, import("./types.gen").ErrorResponse2, ThrowOnError>;
|
|
2245
|
+
/**
|
|
2246
|
+
* List an offering's products
|
|
2247
|
+
*/
|
|
2248
|
+
export declare const listOfferingProducts: <ThrowOnError extends boolean = false>(options: Options<ListOfferingProductsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
2249
|
+
data?: Array<import("./types.gen").OfferingProduct>;
|
|
2250
|
+
links?: import("./types.gen").Links2;
|
|
2251
|
+
}, import("./types.gen").ErrorResponse2, ThrowOnError>;
|
|
2252
|
+
/**
|
|
2253
|
+
* Get feature
|
|
2254
|
+
*/
|
|
2255
|
+
export declare const getFeature: <ThrowOnError extends boolean = false>(options: Options<GetFeatureData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
2256
|
+
data?: import("./types.gen").Feature;
|
|
2257
|
+
}, import("./types.gen").ErrorResponse2, ThrowOnError>;
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -2831,3 +2831,112 @@ export var cancelATransaction = function (options) {
|
|
|
2831
2831
|
},
|
|
2832
2832
|
], url: "/v2/orders/{orderID}/transactions/{transactionID}/cancel" }));
|
|
2833
2833
|
};
|
|
2834
|
+
/**
|
|
2835
|
+
* Get product
|
|
2836
|
+
*/
|
|
2837
|
+
export var getSubscriptionProduct = function (options) {
|
|
2838
|
+
var _a;
|
|
2839
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
|
|
2840
|
+
{
|
|
2841
|
+
scheme: "bearer",
|
|
2842
|
+
type: "http",
|
|
2843
|
+
},
|
|
2844
|
+
], url: "/v2/subscriptions/products/{product_uuid}" }));
|
|
2845
|
+
};
|
|
2846
|
+
/**
|
|
2847
|
+
* Get plan
|
|
2848
|
+
*/
|
|
2849
|
+
export var getPlan = function (options) {
|
|
2850
|
+
var _a;
|
|
2851
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
|
|
2852
|
+
{
|
|
2853
|
+
scheme: "bearer",
|
|
2854
|
+
type: "http",
|
|
2855
|
+
},
|
|
2856
|
+
], url: "/v2/subscriptions/plans/{plan_uuid}" }));
|
|
2857
|
+
};
|
|
2858
|
+
/**
|
|
2859
|
+
* List offerings
|
|
2860
|
+
* Retrieves a list of all subscription offerings.
|
|
2861
|
+
*
|
|
2862
|
+
* ### Filtering
|
|
2863
|
+
*
|
|
2864
|
+
* This endpoint supports filtering. For the general syntax, see [**Filtering**](/guides/Getting-Started/filtering).
|
|
2865
|
+
*
|
|
2866
|
+
* The following attributes and operators are supported.
|
|
2867
|
+
*
|
|
2868
|
+
* | Operator | Attribute | Description |
|
|
2869
|
+
* | --- | --- | --- |
|
|
2870
|
+
* | `eq` | `external_ref`, `products.external_ref`, `proration_policy_id` | Equals. Checks if the values of two operands are equal. If they are, the condition is true. |
|
|
2871
|
+
* | `in` | `products.external_ref` | In. Checks if the values are included in the specified string. If they are, the condition is true. |
|
|
2872
|
+
*
|
|
2873
|
+
*/
|
|
2874
|
+
export var listOfferings = function (options) {
|
|
2875
|
+
var _a;
|
|
2876
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
|
|
2877
|
+
{
|
|
2878
|
+
scheme: "bearer",
|
|
2879
|
+
type: "http",
|
|
2880
|
+
},
|
|
2881
|
+
], url: "/v2/subscriptions/offerings" }));
|
|
2882
|
+
};
|
|
2883
|
+
/**
|
|
2884
|
+
* Get offering
|
|
2885
|
+
*/
|
|
2886
|
+
export var getOffering = function (options) {
|
|
2887
|
+
var _a;
|
|
2888
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
|
|
2889
|
+
{
|
|
2890
|
+
scheme: "bearer",
|
|
2891
|
+
type: "http",
|
|
2892
|
+
},
|
|
2893
|
+
], url: "/v2/subscriptions/offerings/{offering_uuid}" }));
|
|
2894
|
+
};
|
|
2895
|
+
/**
|
|
2896
|
+
* List an offering's plans
|
|
2897
|
+
*/
|
|
2898
|
+
export var listOfferingPlans = function (options) {
|
|
2899
|
+
var _a;
|
|
2900
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
|
|
2901
|
+
{
|
|
2902
|
+
scheme: "bearer",
|
|
2903
|
+
type: "http",
|
|
2904
|
+
},
|
|
2905
|
+
], url: "/v2/subscriptions/offerings/{offering_uuid}/plans" }));
|
|
2906
|
+
};
|
|
2907
|
+
/**
|
|
2908
|
+
* List an offering's features
|
|
2909
|
+
*/
|
|
2910
|
+
export var listOfferingFeatures = function (options) {
|
|
2911
|
+
var _a;
|
|
2912
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
|
|
2913
|
+
{
|
|
2914
|
+
scheme: "bearer",
|
|
2915
|
+
type: "http",
|
|
2916
|
+
},
|
|
2917
|
+
], url: "/v2/subscriptions/offerings/{offering_uuid}/features" }));
|
|
2918
|
+
};
|
|
2919
|
+
/**
|
|
2920
|
+
* List an offering's products
|
|
2921
|
+
*/
|
|
2922
|
+
export var listOfferingProducts = function (options) {
|
|
2923
|
+
var _a;
|
|
2924
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
|
|
2925
|
+
{
|
|
2926
|
+
scheme: "bearer",
|
|
2927
|
+
type: "http",
|
|
2928
|
+
},
|
|
2929
|
+
], url: "/v2/subscriptions/offerings/{offering_uuid}/products" }));
|
|
2930
|
+
};
|
|
2931
|
+
/**
|
|
2932
|
+
* Get feature
|
|
2933
|
+
*/
|
|
2934
|
+
export var getFeature = function (options) {
|
|
2935
|
+
var _a;
|
|
2936
|
+
return ((_a = options === null || options === void 0 ? void 0 : options.client) !== null && _a !== void 0 ? _a : client).get(__assign(__assign({}, options), { security: [
|
|
2937
|
+
{
|
|
2938
|
+
scheme: "bearer",
|
|
2939
|
+
type: "http",
|
|
2940
|
+
},
|
|
2941
|
+
], url: "/v2/subscriptions/features/{feature_uuid}" }));
|
|
2942
|
+
};
|