@polar-sh/sdk 0.35.0 → 0.35.2
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/bin/mcp-server.js +691 -475
- package/bin/mcp-server.js.map +20 -16
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/address.d.ts +669 -669
- package/dist/commonjs/models/components/address.js +221 -221
- package/dist/commonjs/models/components/addressinput.d.ts +653 -653
- package/dist/commonjs/models/components/addressinput.js +217 -217
- package/dist/commonjs/models/components/checkout.d.ts +31 -5
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +23 -2
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutcreate.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutcreate.js +9 -0
- package/dist/commonjs/models/components/checkoutcreate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlink.d.ts +14 -3
- package/dist/commonjs/models/components/checkoutlink.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlink.js +11 -2
- package/dist/commonjs/models/components/checkoutlink.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproduct.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproduct.js +9 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproduct.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproductprice.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproductprice.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproductprice.js +9 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproductprice.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproducts.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproducts.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkcreateproducts.js +9 -0
- package/dist/commonjs/models/components/checkoutlinkcreateproducts.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkproduct.d.ts +14 -3
- package/dist/commonjs/models/components/checkoutlinkproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkproduct.js +11 -2
- package/dist/commonjs/models/components/checkoutlinkproduct.js.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkupdate.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutlinkupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlinkupdate.js +9 -0
- package/dist/commonjs/models/components/checkoutlinkupdate.js.map +1 -1
- package/dist/commonjs/models/components/checkoutproduct.d.ts +14 -3
- package/dist/commonjs/models/components/checkoutproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutproduct.js +11 -2
- package/dist/commonjs/models/components/checkoutproduct.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +21 -5
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +15 -2
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +21 -5
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +15 -2
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.d.ts +11 -0
- package/dist/commonjs/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutupdate.js +9 -0
- package/dist/commonjs/models/components/checkoutupdate.js.map +1 -1
- package/dist/commonjs/models/components/customerorderproduct.d.ts +14 -3
- package/dist/commonjs/models/components/customerorderproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerorderproduct.js +11 -2
- package/dist/commonjs/models/components/customerorderproduct.js.map +1 -1
- package/dist/commonjs/models/components/customerordersubscription.d.ts +10 -0
- package/dist/commonjs/models/components/customerordersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerordersubscription.js +8 -0
- package/dist/commonjs/models/components/customerordersubscription.js.map +1 -1
- package/dist/commonjs/models/components/customerproduct.d.ts +14 -3
- package/dist/commonjs/models/components/customerproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerproduct.js +11 -2
- package/dist/commonjs/models/components/customerproduct.js.map +1 -1
- package/dist/commonjs/models/components/customerstatesubscription.d.ts +38 -2
- package/dist/commonjs/models/components/customerstatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerstatesubscription.js +30 -3
- package/dist/commonjs/models/components/customerstatesubscription.js.map +1 -1
- package/dist/commonjs/models/components/customersubscription.d.ts +10 -0
- package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersubscription.js +8 -0
- package/dist/commonjs/models/components/customersubscription.js.map +1 -1
- package/dist/commonjs/models/components/customersubscriptionproduct.d.ts +14 -3
- package/dist/commonjs/models/components/customersubscriptionproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersubscriptionproduct.js +11 -2
- package/dist/commonjs/models/components/customersubscriptionproduct.js.map +1 -1
- package/dist/commonjs/models/components/discountproduct.d.ts +14 -3
- package/dist/commonjs/models/components/discountproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountproduct.js +11 -2
- package/dist/commonjs/models/components/discountproduct.js.map +1 -1
- package/dist/commonjs/models/components/orderproduct.d.ts +14 -3
- package/dist/commonjs/models/components/orderproduct.d.ts.map +1 -1
- package/dist/commonjs/models/components/orderproduct.js +11 -2
- package/dist/commonjs/models/components/orderproduct.js.map +1 -1
- package/dist/commonjs/models/components/ordersubscription.d.ts +10 -0
- package/dist/commonjs/models/components/ordersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/ordersubscription.js +8 -0
- package/dist/commonjs/models/components/ordersubscription.js.map +1 -1
- package/dist/commonjs/models/components/product.d.ts +14 -3
- package/dist/commonjs/models/components/product.d.ts.map +1 -1
- package/dist/commonjs/models/components/product.js +11 -2
- package/dist/commonjs/models/components/product.js.map +1 -1
- package/dist/commonjs/models/components/productcreate.d.ts +4 -111
- package/dist/commonjs/models/components/productcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productcreate.js +9 -106
- package/dist/commonjs/models/components/productcreate.js.map +1 -1
- package/dist/commonjs/models/components/productcreateonetime.d.ts +130 -0
- package/dist/commonjs/models/components/productcreateonetime.d.ts.map +1 -0
- package/dist/commonjs/models/components/productcreateonetime.js +169 -0
- package/dist/commonjs/models/components/productcreateonetime.js.map +1 -0
- package/dist/commonjs/models/components/productcreaterecurring.d.ts +139 -0
- package/dist/commonjs/models/components/productcreaterecurring.d.ts.map +1 -0
- package/dist/commonjs/models/components/productcreaterecurring.js +179 -0
- package/dist/commonjs/models/components/productcreaterecurring.js.map +1 -0
- package/dist/commonjs/models/components/productupdate.d.ts +11 -0
- package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productupdate.js +9 -0
- package/dist/commonjs/models/components/productupdate.js.map +1 -1
- package/dist/commonjs/models/components/subscription.d.ts +10 -0
- package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscription.js +8 -0
- package/dist/commonjs/models/components/subscription.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdate.d.ts +3 -2
- package/dist/commonjs/models/components/subscriptionupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdate.js +3 -0
- package/dist/commonjs/models/components/subscriptionupdate.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdatetrial.d.ts +32 -0
- package/dist/commonjs/models/components/subscriptionupdatetrial.d.ts.map +1 -0
- package/dist/commonjs/models/components/subscriptionupdatetrial.js +78 -0
- package/dist/commonjs/models/components/subscriptionupdatetrial.js.map +1 -0
- package/dist/commonjs/models/components/trialinterval.d.ts +34 -0
- package/dist/commonjs/models/components/trialinterval.d.ts.map +1 -0
- package/dist/commonjs/models/components/trialinterval.js +62 -0
- package/dist/commonjs/models/components/trialinterval.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/address.d.ts +669 -669
- package/dist/esm/models/components/address.js +221 -221
- package/dist/esm/models/components/addressinput.d.ts +653 -653
- package/dist/esm/models/components/addressinput.js +217 -217
- package/dist/esm/models/components/checkout.d.ts +31 -5
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +23 -2
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutcreate.d.ts +11 -0
- package/dist/esm/models/components/checkoutcreate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutcreate.js +9 -0
- package/dist/esm/models/components/checkoutcreate.js.map +1 -1
- package/dist/esm/models/components/checkoutlink.d.ts +14 -3
- package/dist/esm/models/components/checkoutlink.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlink.js +11 -2
- package/dist/esm/models/components/checkoutlink.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproduct.d.ts +11 -0
- package/dist/esm/models/components/checkoutlinkcreateproduct.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproduct.js +9 -0
- package/dist/esm/models/components/checkoutlinkcreateproduct.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproductprice.d.ts +11 -0
- package/dist/esm/models/components/checkoutlinkcreateproductprice.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproductprice.js +9 -0
- package/dist/esm/models/components/checkoutlinkcreateproductprice.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproducts.d.ts +11 -0
- package/dist/esm/models/components/checkoutlinkcreateproducts.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkcreateproducts.js +9 -0
- package/dist/esm/models/components/checkoutlinkcreateproducts.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkproduct.d.ts +14 -3
- package/dist/esm/models/components/checkoutlinkproduct.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkproduct.js +11 -2
- package/dist/esm/models/components/checkoutlinkproduct.js.map +1 -1
- package/dist/esm/models/components/checkoutlinkupdate.d.ts +11 -0
- package/dist/esm/models/components/checkoutlinkupdate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlinkupdate.js +9 -0
- package/dist/esm/models/components/checkoutlinkupdate.js.map +1 -1
- package/dist/esm/models/components/checkoutproduct.d.ts +14 -3
- package/dist/esm/models/components/checkoutproduct.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutproduct.js +11 -2
- package/dist/esm/models/components/checkoutproduct.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +21 -5
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +15 -2
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +21 -5
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +15 -2
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/checkoutupdate.d.ts +11 -0
- package/dist/esm/models/components/checkoutupdate.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutupdate.js +9 -0
- package/dist/esm/models/components/checkoutupdate.js.map +1 -1
- package/dist/esm/models/components/customerorderproduct.d.ts +14 -3
- package/dist/esm/models/components/customerorderproduct.d.ts.map +1 -1
- package/dist/esm/models/components/customerorderproduct.js +11 -2
- package/dist/esm/models/components/customerorderproduct.js.map +1 -1
- package/dist/esm/models/components/customerordersubscription.d.ts +10 -0
- package/dist/esm/models/components/customerordersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customerordersubscription.js +8 -0
- package/dist/esm/models/components/customerordersubscription.js.map +1 -1
- package/dist/esm/models/components/customerproduct.d.ts +14 -3
- package/dist/esm/models/components/customerproduct.d.ts.map +1 -1
- package/dist/esm/models/components/customerproduct.js +11 -2
- package/dist/esm/models/components/customerproduct.js.map +1 -1
- package/dist/esm/models/components/customerstatesubscription.d.ts +38 -2
- package/dist/esm/models/components/customerstatesubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customerstatesubscription.js +29 -2
- package/dist/esm/models/components/customerstatesubscription.js.map +1 -1
- package/dist/esm/models/components/customersubscription.d.ts +10 -0
- package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customersubscription.js +8 -0
- package/dist/esm/models/components/customersubscription.js.map +1 -1
- package/dist/esm/models/components/customersubscriptionproduct.d.ts +14 -3
- package/dist/esm/models/components/customersubscriptionproduct.d.ts.map +1 -1
- package/dist/esm/models/components/customersubscriptionproduct.js +11 -2
- package/dist/esm/models/components/customersubscriptionproduct.js.map +1 -1
- package/dist/esm/models/components/discountproduct.d.ts +14 -3
- package/dist/esm/models/components/discountproduct.d.ts.map +1 -1
- package/dist/esm/models/components/discountproduct.js +11 -2
- package/dist/esm/models/components/discountproduct.js.map +1 -1
- package/dist/esm/models/components/orderproduct.d.ts +14 -3
- package/dist/esm/models/components/orderproduct.d.ts.map +1 -1
- package/dist/esm/models/components/orderproduct.js +11 -2
- package/dist/esm/models/components/orderproduct.js.map +1 -1
- package/dist/esm/models/components/ordersubscription.d.ts +10 -0
- package/dist/esm/models/components/ordersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/ordersubscription.js +8 -0
- package/dist/esm/models/components/ordersubscription.js.map +1 -1
- package/dist/esm/models/components/product.d.ts +14 -3
- package/dist/esm/models/components/product.d.ts.map +1 -1
- package/dist/esm/models/components/product.js +11 -2
- package/dist/esm/models/components/product.js.map +1 -1
- package/dist/esm/models/components/productcreate.d.ts +4 -111
- package/dist/esm/models/components/productcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productcreate.js +8 -101
- package/dist/esm/models/components/productcreate.js.map +1 -1
- package/dist/esm/models/components/productcreateonetime.d.ts +130 -0
- package/dist/esm/models/components/productcreateonetime.d.ts.map +1 -0
- package/dist/esm/models/components/productcreateonetime.js +127 -0
- package/dist/esm/models/components/productcreateonetime.js.map +1 -0
- package/dist/esm/models/components/productcreaterecurring.d.ts +139 -0
- package/dist/esm/models/components/productcreaterecurring.d.ts.map +1 -0
- package/dist/esm/models/components/productcreaterecurring.js +137 -0
- package/dist/esm/models/components/productcreaterecurring.js.map +1 -0
- package/dist/esm/models/components/productupdate.d.ts +11 -0
- package/dist/esm/models/components/productupdate.d.ts.map +1 -1
- package/dist/esm/models/components/productupdate.js +9 -0
- package/dist/esm/models/components/productupdate.js.map +1 -1
- package/dist/esm/models/components/subscription.d.ts +10 -0
- package/dist/esm/models/components/subscription.d.ts.map +1 -1
- package/dist/esm/models/components/subscription.js +8 -0
- package/dist/esm/models/components/subscription.js.map +1 -1
- package/dist/esm/models/components/subscriptionupdate.d.ts +3 -2
- package/dist/esm/models/components/subscriptionupdate.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionupdate.js +3 -0
- package/dist/esm/models/components/subscriptionupdate.js.map +1 -1
- package/dist/esm/models/components/subscriptionupdatetrial.d.ts +32 -0
- package/dist/esm/models/components/subscriptionupdatetrial.d.ts.map +1 -0
- package/dist/esm/models/components/subscriptionupdatetrial.js +40 -0
- package/dist/esm/models/components/subscriptionupdatetrial.js.map +1 -0
- package/dist/esm/models/components/trialinterval.d.ts +34 -0
- package/dist/esm/models/components/trialinterval.d.ts.map +1 -0
- package/dist/esm/models/components/trialinterval.js +26 -0
- package/dist/esm/models/components/trialinterval.js.map +1 -0
- package/docs/sdks/products/README.md +2 -2
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/address.ts +221 -221
- package/src/models/components/addressinput.ts +217 -217
- package/src/models/components/checkout.ts +59 -7
- package/src/models/components/checkoutcreate.ts +23 -0
- package/src/models/components/checkoutlink.ts +28 -5
- package/src/models/components/checkoutlinkcreateproduct.ts +23 -0
- package/src/models/components/checkoutlinkcreateproductprice.ts +23 -0
- package/src/models/components/checkoutlinkcreateproducts.ts +23 -0
- package/src/models/components/checkoutlinkproduct.ts +28 -5
- package/src/models/components/checkoutlinkupdate.ts +23 -0
- package/src/models/components/checkoutproduct.ts +28 -5
- package/src/models/components/checkoutpublic.ts +41 -7
- package/src/models/components/checkoutpublicconfirmed.ts +41 -7
- package/src/models/components/checkoutupdate.ts +23 -0
- package/src/models/components/customerorderproduct.ts +28 -5
- package/src/models/components/customerordersubscription.ts +22 -0
- package/src/models/components/customerproduct.ts +28 -5
- package/src/models/components/customerstatesubscription.ts +56 -4
- package/src/models/components/customersubscription.ts +22 -0
- package/src/models/components/customersubscriptionproduct.ts +28 -5
- package/src/models/components/discountproduct.ts +28 -5
- package/src/models/components/orderproduct.ts +28 -5
- package/src/models/components/ordersubscription.ts +22 -0
- package/src/models/components/product.ts +28 -5
- package/src/models/components/productcreate.ts +22 -275
- package/src/models/components/productcreateonetime.ts +329 -0
- package/src/models/components/productcreaterecurring.ts +356 -0
- package/src/models/components/productupdate.ts +23 -0
- package/src/models/components/subscription.ts +22 -0
- package/src/models/components/subscriptionupdate.ts +10 -0
- package/src/models/components/subscriptionupdatetrial.ts +78 -0
- package/src/models/components/trialinterval.ts +35 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ordersubscription.js","sourceRoot":"","sources":["../../../../src/models/components/ordersubscription.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC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C,CAC1D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,yBAAyB,CACvC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
|
|
@@ -7,12 +7,17 @@ import { LegacyRecurringProductPrice, LegacyRecurringProductPrice$Outbound } fro
|
|
|
7
7
|
import { ProductMediaFileRead, ProductMediaFileRead$Outbound } from "./productmediafileread.js";
|
|
8
8
|
import { ProductPrice, ProductPrice$Outbound } from "./productprice.js";
|
|
9
9
|
import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
|
|
10
|
+
import { TrialInterval } from "./trialinterval.js";
|
|
10
11
|
export type ProductMetadata = string | number | number | boolean;
|
|
11
12
|
export type Prices = LegacyRecurringProductPrice | ProductPrice;
|
|
12
13
|
/**
|
|
13
14
|
* A product.
|
|
14
15
|
*/
|
|
15
16
|
export type Product = {
|
|
17
|
+
/**
|
|
18
|
+
* The ID of the object.
|
|
19
|
+
*/
|
|
20
|
+
id: string;
|
|
16
21
|
/**
|
|
17
22
|
* Creation timestamp of the object.
|
|
18
23
|
*/
|
|
@@ -22,9 +27,13 @@ export type Product = {
|
|
|
22
27
|
*/
|
|
23
28
|
modifiedAt: Date | null;
|
|
24
29
|
/**
|
|
25
|
-
* The
|
|
30
|
+
* The interval unit for the trial period.
|
|
26
31
|
*/
|
|
27
|
-
|
|
32
|
+
trialInterval: TrialInterval | null;
|
|
33
|
+
/**
|
|
34
|
+
* The number of interval units for the trial period.
|
|
35
|
+
*/
|
|
36
|
+
trialIntervalCount: number | null;
|
|
28
37
|
/**
|
|
29
38
|
* The name of the product.
|
|
30
39
|
*/
|
|
@@ -113,9 +122,11 @@ export declare function pricesFromJSON(jsonString: string): SafeParseResult<Pric
|
|
|
113
122
|
export declare const Product$inboundSchema: z.ZodType<Product, z.ZodTypeDef, unknown>;
|
|
114
123
|
/** @internal */
|
|
115
124
|
export type Product$Outbound = {
|
|
125
|
+
id: string;
|
|
116
126
|
created_at: string;
|
|
117
127
|
modified_at: string | null;
|
|
118
|
-
|
|
128
|
+
trial_interval: string | null;
|
|
129
|
+
trial_interval_count: number | null;
|
|
119
130
|
name: string;
|
|
120
131
|
description: string | null;
|
|
121
132
|
recurring_interval: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/models/components/product.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,OAAO,EAEP,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"product.d.ts","sourceRoot":"","sources":["../../../../src/models/components/product.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC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6BAA6B,CAAC,CAAC;IAC7C,sBAAsB,EAAE,KAAK,CAAC,4BAA4B,CAAC,CAAC;CAC7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAqCP,CAAC;AAEH;;;GAGG;AACH,yBAAiB,QAAQ,CAAC;IACxB,uDAAuD;IAChD,MAAM,aAAa,2CAAwB,CAAC;IACnD,wDAAwD;IACjD,MAAM,cAAc,oDAAyB,CAAC;IACrD,kDAAkD;IAClD,KAAY,QAAQ,GAAG,gBAAgB,CAAC;CACzC;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAEtD;AAED,wBAAgB,eAAe,CAC7B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,OAAO,EAAE,kBAAkB,CAAC,CAM9C"}
|
|
@@ -10,6 +10,7 @@ import { LegacyRecurringProductPrice$inboundSchema, LegacyRecurringProductPrice$
|
|
|
10
10
|
import { ProductMediaFileRead$inboundSchema, ProductMediaFileRead$outboundSchema, } from "./productmediafileread.js";
|
|
11
11
|
import { ProductPrice$inboundSchema, ProductPrice$outboundSchema, } from "./productprice.js";
|
|
12
12
|
import { SubscriptionRecurringInterval$inboundSchema, SubscriptionRecurringInterval$outboundSchema, } from "./subscriptionrecurringinterval.js";
|
|
13
|
+
import { TrialInterval$inboundSchema, TrialInterval$outboundSchema, } from "./trialinterval.js";
|
|
13
14
|
/** @internal */
|
|
14
15
|
export const ProductMetadata$inboundSchema = z.union([z.string(), z.number().int(), z.number(), z.boolean()]);
|
|
15
16
|
/** @internal */
|
|
@@ -61,9 +62,11 @@ export function pricesFromJSON(jsonString) {
|
|
|
61
62
|
}
|
|
62
63
|
/** @internal */
|
|
63
64
|
export const Product$inboundSchema = z.object({
|
|
65
|
+
id: z.string(),
|
|
64
66
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
65
67
|
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
66
|
-
|
|
68
|
+
trial_interval: z.nullable(TrialInterval$inboundSchema),
|
|
69
|
+
trial_interval_count: z.nullable(z.number().int()),
|
|
67
70
|
name: z.string(),
|
|
68
71
|
description: z.nullable(z.string()),
|
|
69
72
|
recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema),
|
|
@@ -82,6 +85,8 @@ export const Product$inboundSchema = z.object({
|
|
|
82
85
|
return remap$(v, {
|
|
83
86
|
"created_at": "createdAt",
|
|
84
87
|
"modified_at": "modifiedAt",
|
|
88
|
+
"trial_interval": "trialInterval",
|
|
89
|
+
"trial_interval_count": "trialIntervalCount",
|
|
85
90
|
"recurring_interval": "recurringInterval",
|
|
86
91
|
"is_recurring": "isRecurring",
|
|
87
92
|
"is_archived": "isArchived",
|
|
@@ -91,9 +96,11 @@ export const Product$inboundSchema = z.object({
|
|
|
91
96
|
});
|
|
92
97
|
/** @internal */
|
|
93
98
|
export const Product$outboundSchema = z.object({
|
|
99
|
+
id: z.string(),
|
|
94
100
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
95
101
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
96
|
-
|
|
102
|
+
trialInterval: z.nullable(TrialInterval$outboundSchema),
|
|
103
|
+
trialIntervalCount: z.nullable(z.number().int()),
|
|
97
104
|
name: z.string(),
|
|
98
105
|
description: z.nullable(z.string()),
|
|
99
106
|
recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema),
|
|
@@ -112,6 +119,8 @@ export const Product$outboundSchema = z.object({
|
|
|
112
119
|
return remap$(v, {
|
|
113
120
|
createdAt: "created_at",
|
|
114
121
|
modifiedAt: "modified_at",
|
|
122
|
+
trialInterval: "trial_interval",
|
|
123
|
+
trialIntervalCount: "trial_interval_count",
|
|
115
124
|
recurringInterval: "recurring_interval",
|
|
116
125
|
isRecurring: "is_recurring",
|
|
117
126
|
isArchived: "is_archived",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../../src/models/components/product.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,iCAAiC,EAEjC,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,qBAAqB,EAErB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,yCAAyC,EAEzC,0CAA0C,GAC3C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,kCAAkC,EAElC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,0BAA0B,EAE1B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,2CAA2C,EAC3C,4CAA4C,GAC7C,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"product.js","sourceRoot":"","sources":["../../../../src/models/components/product.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,iCAAiC,EAEjC,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,qBAAqB,EAErB,sBAAsB,GACvB,MAAM,cAAc,CAAC;AACtB,OAAO,EAEL,yCAAyC,EAEzC,0CAA0C,GAC3C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,kCAAkC,EAElC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,0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@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import { ProductPriceFreeCreate, ProductPriceFreeCreate$Outbound } from "./productpricefreecreate.js";
|
|
8
|
-
import { ProductPriceMeteredUnitCreate, ProductPriceMeteredUnitCreate$Outbound } from "./productpricemeteredunitcreate.js";
|
|
9
|
-
import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
|
|
10
|
-
export type ProductCreateMetadata = string | number | number | boolean;
|
|
11
|
-
export type ProductCreatePrices = ProductPriceMeteredUnitCreate | ProductPriceFixedCreate | ProductPriceCustomCreate | ProductPriceFreeCreate;
|
|
12
|
-
/**
|
|
13
|
-
* Schema to create a product.
|
|
14
|
-
*/
|
|
15
|
-
export type ProductCreate = {
|
|
16
|
-
/**
|
|
17
|
-
* Key-value object allowing you to store additional information.
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
*
|
|
21
|
-
* The key must be a string with a maximum length of **40 characters**.
|
|
22
|
-
* The value must be either:
|
|
23
|
-
*
|
|
24
|
-
* * A string with a maximum length of **500 characters**
|
|
25
|
-
* * An integer
|
|
26
|
-
* * A floating-point number
|
|
27
|
-
* * A boolean
|
|
28
|
-
*
|
|
29
|
-
* You can store up to **50 key-value pairs**.
|
|
30
|
-
*/
|
|
31
|
-
metadata?: {
|
|
32
|
-
[k: string]: string | number | number | boolean;
|
|
33
|
-
} | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* The name of the product.
|
|
36
|
-
*/
|
|
37
|
-
name: string;
|
|
38
|
-
/**
|
|
39
|
-
* The description of the product.
|
|
40
|
-
*/
|
|
41
|
-
description?: string | null | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* The recurring interval of the product. If `None`, the product is a one-time purchase.Note that the `day` and `week` values are for internal Polar staff use only.
|
|
44
|
-
*/
|
|
45
|
-
recurringInterval: SubscriptionRecurringInterval | null;
|
|
46
|
-
/**
|
|
47
|
-
* List of available prices for this product. It should contain at most one static price (fixed, custom or free), and any number of metered prices. Metered prices are not supported on one-time purchase products.
|
|
48
|
-
*/
|
|
49
|
-
prices: Array<ProductPriceMeteredUnitCreate | ProductPriceFixedCreate | ProductPriceCustomCreate | ProductPriceFreeCreate>;
|
|
50
|
-
/**
|
|
51
|
-
* List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
|
|
52
|
-
*/
|
|
53
|
-
medias?: Array<string> | null | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* List of custom fields to attach.
|
|
56
|
-
*/
|
|
57
|
-
attachedCustomFields?: Array<AttachedCustomFieldCreate> | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* The ID of the organization owning the product. **Required unless you use an organization token.**
|
|
60
|
-
*/
|
|
61
|
-
organizationId?: string | null | undefined;
|
|
62
|
-
};
|
|
63
|
-
/** @internal */
|
|
64
|
-
export declare const ProductCreateMetadata$inboundSchema: z.ZodType<ProductCreateMetadata, z.ZodTypeDef, unknown>;
|
|
65
|
-
/** @internal */
|
|
66
|
-
export type ProductCreateMetadata$Outbound = string | number | number | boolean;
|
|
67
|
-
/** @internal */
|
|
68
|
-
export declare const ProductCreateMetadata$outboundSchema: z.ZodType<ProductCreateMetadata$Outbound, z.ZodTypeDef, ProductCreateMetadata>;
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
-
*/
|
|
73
|
-
export declare namespace ProductCreateMetadata$ {
|
|
74
|
-
/** @deprecated use `ProductCreateMetadata$inboundSchema` instead. */
|
|
75
|
-
const inboundSchema: z.ZodType<ProductCreateMetadata, z.ZodTypeDef, unknown>;
|
|
76
|
-
/** @deprecated use `ProductCreateMetadata$outboundSchema` instead. */
|
|
77
|
-
const outboundSchema: z.ZodType<ProductCreateMetadata$Outbound, z.ZodTypeDef, ProductCreateMetadata>;
|
|
78
|
-
/** @deprecated use `ProductCreateMetadata$Outbound` instead. */
|
|
79
|
-
type Outbound = ProductCreateMetadata$Outbound;
|
|
80
|
-
}
|
|
81
|
-
export declare function productCreateMetadataToJSON(productCreateMetadata: ProductCreateMetadata): string;
|
|
82
|
-
export declare function productCreateMetadataFromJSON(jsonString: string): SafeParseResult<ProductCreateMetadata, SDKValidationError>;
|
|
83
|
-
/** @internal */
|
|
84
|
-
export declare const ProductCreatePrices$inboundSchema: z.ZodType<ProductCreatePrices, z.ZodTypeDef, unknown>;
|
|
85
|
-
/** @internal */
|
|
86
|
-
export type ProductCreatePrices$Outbound = ProductPriceMeteredUnitCreate$Outbound | ProductPriceFixedCreate$Outbound | ProductPriceCustomCreate$Outbound | ProductPriceFreeCreate$Outbound;
|
|
87
|
-
/** @internal */
|
|
88
|
-
export declare const ProductCreatePrices$outboundSchema: z.ZodType<ProductCreatePrices$Outbound, z.ZodTypeDef, ProductCreatePrices>;
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
92
|
-
*/
|
|
93
|
-
export declare namespace ProductCreatePrices$ {
|
|
94
|
-
/** @deprecated use `ProductCreatePrices$inboundSchema` instead. */
|
|
95
|
-
const inboundSchema: z.ZodType<ProductCreatePrices, z.ZodTypeDef, unknown>;
|
|
96
|
-
/** @deprecated use `ProductCreatePrices$outboundSchema` instead. */
|
|
97
|
-
const outboundSchema: z.ZodType<ProductCreatePrices$Outbound, z.ZodTypeDef, ProductCreatePrices>;
|
|
98
|
-
/** @deprecated use `ProductCreatePrices$Outbound` instead. */
|
|
99
|
-
type Outbound = ProductCreatePrices$Outbound;
|
|
100
|
-
}
|
|
101
|
-
export declare function productCreatePricesToJSON(productCreatePrices: ProductCreatePrices): string;
|
|
102
|
-
export declare function productCreatePricesFromJSON(jsonString: string): SafeParseResult<ProductCreatePrices, SDKValidationError>;
|
|
4
|
+
import { ProductCreateOneTime, ProductCreateOneTime$Outbound } from "./productcreateonetime.js";
|
|
5
|
+
import { ProductCreateRecurring, ProductCreateRecurring$Outbound } from "./productcreaterecurring.js";
|
|
6
|
+
export type ProductCreate = ProductCreateRecurring | ProductCreateOneTime;
|
|
103
7
|
/** @internal */
|
|
104
8
|
export declare const ProductCreate$inboundSchema: z.ZodType<ProductCreate, z.ZodTypeDef, unknown>;
|
|
105
9
|
/** @internal */
|
|
106
|
-
export type ProductCreate$Outbound =
|
|
107
|
-
metadata?: {
|
|
108
|
-
[k: string]: string | number | number | boolean;
|
|
109
|
-
} | undefined;
|
|
110
|
-
name: string;
|
|
111
|
-
description?: string | null | undefined;
|
|
112
|
-
recurring_interval: string | null;
|
|
113
|
-
prices: Array<ProductPriceMeteredUnitCreate$Outbound | ProductPriceFixedCreate$Outbound | ProductPriceCustomCreate$Outbound | ProductPriceFreeCreate$Outbound>;
|
|
114
|
-
medias?: Array<string> | null | undefined;
|
|
115
|
-
attached_custom_fields?: Array<AttachedCustomFieldCreate$Outbound> | undefined;
|
|
116
|
-
organization_id?: string | null | undefined;
|
|
117
|
-
};
|
|
10
|
+
export type ProductCreate$Outbound = ProductCreateRecurring$Outbound | ProductCreateOneTime$Outbound;
|
|
118
11
|
/** @internal */
|
|
119
12
|
export declare const ProductCreate$outboundSchema: z.ZodType<ProductCreate$Outbound, z.ZodTypeDef, ProductCreate>;
|
|
120
13
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/productcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"productcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/productcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,aAAa,GAAG,sBAAsB,GAAG,oBAAoB,CAAC;AAE1E,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,sBAAsB,GAC9B,+BAA+B,GAC/B,6BAA6B,CAAC;AAElC,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAIb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C;AAED,wBAAgB,mBAAmB,CAAC,aAAa,EAAE,aAAa,GAAG,MAAM,CAExE;AAED,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -2,112 +2,19 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { ProductPriceFixedCreate$inboundSchema, ProductPriceFixedCreate$outboundSchema, } from "./productpricefixedcreate.js";
|
|
10
|
-
import { ProductPriceFreeCreate$inboundSchema, ProductPriceFreeCreate$outboundSchema, } from "./productpricefreecreate.js";
|
|
11
|
-
import { ProductPriceMeteredUnitCreate$inboundSchema, ProductPriceMeteredUnitCreate$outboundSchema, } from "./productpricemeteredunitcreate.js";
|
|
12
|
-
import { SubscriptionRecurringInterval$inboundSchema, SubscriptionRecurringInterval$outboundSchema, } from "./subscriptionrecurringinterval.js";
|
|
6
|
+
import { ProductCreateOneTime$inboundSchema, ProductCreateOneTime$outboundSchema, } from "./productcreateonetime.js";
|
|
7
|
+
import { ProductCreateRecurring$inboundSchema, ProductCreateRecurring$outboundSchema, } from "./productcreaterecurring.js";
|
|
13
8
|
/** @internal */
|
|
14
|
-
export const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @internal
|
|
19
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
20
|
-
*/
|
|
21
|
-
export var ProductCreateMetadata$;
|
|
22
|
-
(function (ProductCreateMetadata$) {
|
|
23
|
-
/** @deprecated use `ProductCreateMetadata$inboundSchema` instead. */
|
|
24
|
-
ProductCreateMetadata$.inboundSchema = ProductCreateMetadata$inboundSchema;
|
|
25
|
-
/** @deprecated use `ProductCreateMetadata$outboundSchema` instead. */
|
|
26
|
-
ProductCreateMetadata$.outboundSchema = ProductCreateMetadata$outboundSchema;
|
|
27
|
-
})(ProductCreateMetadata$ || (ProductCreateMetadata$ = {}));
|
|
28
|
-
export function productCreateMetadataToJSON(productCreateMetadata) {
|
|
29
|
-
return JSON.stringify(ProductCreateMetadata$outboundSchema.parse(productCreateMetadata));
|
|
30
|
-
}
|
|
31
|
-
export function productCreateMetadataFromJSON(jsonString) {
|
|
32
|
-
return safeParse(jsonString, (x) => ProductCreateMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductCreateMetadata' from JSON`);
|
|
33
|
-
}
|
|
34
|
-
/** @internal */
|
|
35
|
-
export const ProductCreatePrices$inboundSchema = z.union([
|
|
36
|
-
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
37
|
-
ProductPriceFixedCreate$inboundSchema,
|
|
38
|
-
ProductPriceCustomCreate$inboundSchema,
|
|
39
|
-
ProductPriceFreeCreate$inboundSchema,
|
|
9
|
+
export const ProductCreate$inboundSchema = z.union([
|
|
10
|
+
ProductCreateRecurring$inboundSchema,
|
|
11
|
+
ProductCreateOneTime$inboundSchema,
|
|
40
12
|
]);
|
|
41
13
|
/** @internal */
|
|
42
|
-
export const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
ProductPriceCustomCreate$outboundSchema,
|
|
46
|
-
ProductPriceFreeCreate$outboundSchema,
|
|
14
|
+
export const ProductCreate$outboundSchema = z.union([
|
|
15
|
+
ProductCreateRecurring$outboundSchema,
|
|
16
|
+
ProductCreateOneTime$outboundSchema,
|
|
47
17
|
]);
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
-
*/
|
|
52
|
-
export var ProductCreatePrices$;
|
|
53
|
-
(function (ProductCreatePrices$) {
|
|
54
|
-
/** @deprecated use `ProductCreatePrices$inboundSchema` instead. */
|
|
55
|
-
ProductCreatePrices$.inboundSchema = ProductCreatePrices$inboundSchema;
|
|
56
|
-
/** @deprecated use `ProductCreatePrices$outboundSchema` instead. */
|
|
57
|
-
ProductCreatePrices$.outboundSchema = ProductCreatePrices$outboundSchema;
|
|
58
|
-
})(ProductCreatePrices$ || (ProductCreatePrices$ = {}));
|
|
59
|
-
export function productCreatePricesToJSON(productCreatePrices) {
|
|
60
|
-
return JSON.stringify(ProductCreatePrices$outboundSchema.parse(productCreatePrices));
|
|
61
|
-
}
|
|
62
|
-
export function productCreatePricesFromJSON(jsonString) {
|
|
63
|
-
return safeParse(jsonString, (x) => ProductCreatePrices$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ProductCreatePrices' from JSON`);
|
|
64
|
-
}
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const ProductCreate$inboundSchema = z.object({
|
|
67
|
-
metadata: z.record(z.union([z.string(), z.number().int(), z.number(), z.boolean()])).optional(),
|
|
68
|
-
name: z.string(),
|
|
69
|
-
description: z.nullable(z.string()).optional(),
|
|
70
|
-
recurring_interval: z.nullable(SubscriptionRecurringInterval$inboundSchema),
|
|
71
|
-
prices: z.array(z.union([
|
|
72
|
-
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
73
|
-
ProductPriceFixedCreate$inboundSchema,
|
|
74
|
-
ProductPriceCustomCreate$inboundSchema,
|
|
75
|
-
ProductPriceFreeCreate$inboundSchema,
|
|
76
|
-
])),
|
|
77
|
-
medias: z.nullable(z.array(z.string())).optional(),
|
|
78
|
-
attached_custom_fields: z.array(AttachedCustomFieldCreate$inboundSchema)
|
|
79
|
-
.optional(),
|
|
80
|
-
organization_id: z.nullable(z.string()).optional(),
|
|
81
|
-
}).transform((v) => {
|
|
82
|
-
return remap$(v, {
|
|
83
|
-
"recurring_interval": "recurringInterval",
|
|
84
|
-
"attached_custom_fields": "attachedCustomFields",
|
|
85
|
-
"organization_id": "organizationId",
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const ProductCreate$outboundSchema = z.object({
|
|
90
|
-
metadata: z.record(z.union([z.string(), z.number().int(), z.number(), z.boolean()])).optional(),
|
|
91
|
-
name: z.string(),
|
|
92
|
-
description: z.nullable(z.string()).optional(),
|
|
93
|
-
recurringInterval: z.nullable(SubscriptionRecurringInterval$outboundSchema),
|
|
94
|
-
prices: z.array(z.union([
|
|
95
|
-
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
96
|
-
ProductPriceFixedCreate$outboundSchema,
|
|
97
|
-
ProductPriceCustomCreate$outboundSchema,
|
|
98
|
-
ProductPriceFreeCreate$outboundSchema,
|
|
99
|
-
])),
|
|
100
|
-
medias: z.nullable(z.array(z.string())).optional(),
|
|
101
|
-
attachedCustomFields: z.array(AttachedCustomFieldCreate$outboundSchema)
|
|
102
|
-
.optional(),
|
|
103
|
-
organizationId: z.nullable(z.string()).optional(),
|
|
104
|
-
}).transform((v) => {
|
|
105
|
-
return remap$(v, {
|
|
106
|
-
recurringInterval: "recurring_interval",
|
|
107
|
-
attachedCustomFields: "attached_custom_fields",
|
|
108
|
-
organizationId: "organization_id",
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
18
|
/**
|
|
112
19
|
* @internal
|
|
113
20
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productcreate.js","sourceRoot":"","sources":["../../../../src/models/components/productcreate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"productcreate.js","sourceRoot":"","sources":["../../../../src/models/components/productcreate.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,kCAAkC,EAElC,mCAAmC,GACpC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,oCAAoC,EAEpC,qCAAqC,GACtC,MAAM,6BAA6B,CAAC;AAIrC,gBAAgB;AAChB,MAAM,CAAC,MAAM,2BAA2B,GAIpC,CAAC,CAAC,KAAK,CAAC;IACV,oCAAoC;IACpC,kCAAkC;CACnC,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAIrC,CAAC,CAAC,KAAK,CAAC;IACV,qCAAqC;IACrC,mCAAmC;CACpC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,2BAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,4BAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,KAAd,cAAc,QAO9B;AAED,MAAM,UAAU,mBAAmB,CAAC,aAA4B;IAC9D,OAAO,IAAI,CAAC,SAAS,CAAC,4BAA4B,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,qBAAqB,CACnC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2BAA2B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvD,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { AttachedCustomFieldCreate, AttachedCustomFieldCreate$Outbound } from "./attachedcustomfieldcreate.js";
|
|
5
|
+
import { ProductPriceCustomCreate, ProductPriceCustomCreate$Outbound } from "./productpricecustomcreate.js";
|
|
6
|
+
import { ProductPriceFixedCreate, ProductPriceFixedCreate$Outbound } from "./productpricefixedcreate.js";
|
|
7
|
+
import { ProductPriceFreeCreate, ProductPriceFreeCreate$Outbound } from "./productpricefreecreate.js";
|
|
8
|
+
import { ProductPriceMeteredUnitCreate, ProductPriceMeteredUnitCreate$Outbound } from "./productpricemeteredunitcreate.js";
|
|
9
|
+
export type ProductCreateOneTimeMetadata = string | number | number | boolean;
|
|
10
|
+
export type ProductCreateOneTimePrices = ProductPriceMeteredUnitCreate | ProductPriceFixedCreate | ProductPriceCustomCreate | ProductPriceFreeCreate;
|
|
11
|
+
export type ProductCreateOneTime = {
|
|
12
|
+
/**
|
|
13
|
+
* Key-value object allowing you to store additional information.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
*
|
|
17
|
+
* The key must be a string with a maximum length of **40 characters**.
|
|
18
|
+
* The value must be either:
|
|
19
|
+
*
|
|
20
|
+
* * A string with a maximum length of **500 characters**
|
|
21
|
+
* * An integer
|
|
22
|
+
* * A floating-point number
|
|
23
|
+
* * A boolean
|
|
24
|
+
*
|
|
25
|
+
* You can store up to **50 key-value pairs**.
|
|
26
|
+
*/
|
|
27
|
+
metadata?: {
|
|
28
|
+
[k: string]: string | number | number | boolean;
|
|
29
|
+
} | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* The name of the product.
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
* The description of the product.
|
|
36
|
+
*/
|
|
37
|
+
description?: string | null | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* List of available prices for this product. It should contain at most one static price (fixed, custom or free), and any number of metered prices. Metered prices are not supported on one-time purchase products.
|
|
40
|
+
*/
|
|
41
|
+
prices: Array<ProductPriceMeteredUnitCreate | ProductPriceFixedCreate | ProductPriceCustomCreate | ProductPriceFreeCreate>;
|
|
42
|
+
/**
|
|
43
|
+
* List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
|
|
44
|
+
*/
|
|
45
|
+
medias?: Array<string> | null | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* List of custom fields to attach.
|
|
48
|
+
*/
|
|
49
|
+
attachedCustomFields?: Array<AttachedCustomFieldCreate> | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* The ID of the organization owning the product. **Required unless you use an organization token.**
|
|
52
|
+
*/
|
|
53
|
+
organizationId?: string | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* States that the product is a one-time purchase.
|
|
56
|
+
*/
|
|
57
|
+
recurringInterval?: any | null | undefined;
|
|
58
|
+
};
|
|
59
|
+
/** @internal */
|
|
60
|
+
export declare const ProductCreateOneTimeMetadata$inboundSchema: z.ZodType<ProductCreateOneTimeMetadata, z.ZodTypeDef, unknown>;
|
|
61
|
+
/** @internal */
|
|
62
|
+
export type ProductCreateOneTimeMetadata$Outbound = string | number | number | boolean;
|
|
63
|
+
/** @internal */
|
|
64
|
+
export declare const ProductCreateOneTimeMetadata$outboundSchema: z.ZodType<ProductCreateOneTimeMetadata$Outbound, z.ZodTypeDef, ProductCreateOneTimeMetadata>;
|
|
65
|
+
/**
|
|
66
|
+
* @internal
|
|
67
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
|
+
*/
|
|
69
|
+
export declare namespace ProductCreateOneTimeMetadata$ {
|
|
70
|
+
/** @deprecated use `ProductCreateOneTimeMetadata$inboundSchema` instead. */
|
|
71
|
+
const inboundSchema: z.ZodType<ProductCreateOneTimeMetadata, z.ZodTypeDef, unknown>;
|
|
72
|
+
/** @deprecated use `ProductCreateOneTimeMetadata$outboundSchema` instead. */
|
|
73
|
+
const outboundSchema: z.ZodType<ProductCreateOneTimeMetadata$Outbound, z.ZodTypeDef, ProductCreateOneTimeMetadata>;
|
|
74
|
+
/** @deprecated use `ProductCreateOneTimeMetadata$Outbound` instead. */
|
|
75
|
+
type Outbound = ProductCreateOneTimeMetadata$Outbound;
|
|
76
|
+
}
|
|
77
|
+
export declare function productCreateOneTimeMetadataToJSON(productCreateOneTimeMetadata: ProductCreateOneTimeMetadata): string;
|
|
78
|
+
export declare function productCreateOneTimeMetadataFromJSON(jsonString: string): SafeParseResult<ProductCreateOneTimeMetadata, SDKValidationError>;
|
|
79
|
+
/** @internal */
|
|
80
|
+
export declare const ProductCreateOneTimePrices$inboundSchema: z.ZodType<ProductCreateOneTimePrices, z.ZodTypeDef, unknown>;
|
|
81
|
+
/** @internal */
|
|
82
|
+
export type ProductCreateOneTimePrices$Outbound = ProductPriceMeteredUnitCreate$Outbound | ProductPriceFixedCreate$Outbound | ProductPriceCustomCreate$Outbound | ProductPriceFreeCreate$Outbound;
|
|
83
|
+
/** @internal */
|
|
84
|
+
export declare const ProductCreateOneTimePrices$outboundSchema: z.ZodType<ProductCreateOneTimePrices$Outbound, z.ZodTypeDef, ProductCreateOneTimePrices>;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
+
*/
|
|
89
|
+
export declare namespace ProductCreateOneTimePrices$ {
|
|
90
|
+
/** @deprecated use `ProductCreateOneTimePrices$inboundSchema` instead. */
|
|
91
|
+
const inboundSchema: z.ZodType<ProductCreateOneTimePrices, z.ZodTypeDef, unknown>;
|
|
92
|
+
/** @deprecated use `ProductCreateOneTimePrices$outboundSchema` instead. */
|
|
93
|
+
const outboundSchema: z.ZodType<ProductCreateOneTimePrices$Outbound, z.ZodTypeDef, ProductCreateOneTimePrices>;
|
|
94
|
+
/** @deprecated use `ProductCreateOneTimePrices$Outbound` instead. */
|
|
95
|
+
type Outbound = ProductCreateOneTimePrices$Outbound;
|
|
96
|
+
}
|
|
97
|
+
export declare function productCreateOneTimePricesToJSON(productCreateOneTimePrices: ProductCreateOneTimePrices): string;
|
|
98
|
+
export declare function productCreateOneTimePricesFromJSON(jsonString: string): SafeParseResult<ProductCreateOneTimePrices, SDKValidationError>;
|
|
99
|
+
/** @internal */
|
|
100
|
+
export declare const ProductCreateOneTime$inboundSchema: z.ZodType<ProductCreateOneTime, z.ZodTypeDef, unknown>;
|
|
101
|
+
/** @internal */
|
|
102
|
+
export type ProductCreateOneTime$Outbound = {
|
|
103
|
+
metadata?: {
|
|
104
|
+
[k: string]: string | number | number | boolean;
|
|
105
|
+
} | undefined;
|
|
106
|
+
name: string;
|
|
107
|
+
description?: string | null | undefined;
|
|
108
|
+
prices: Array<ProductPriceMeteredUnitCreate$Outbound | ProductPriceFixedCreate$Outbound | ProductPriceCustomCreate$Outbound | ProductPriceFreeCreate$Outbound>;
|
|
109
|
+
medias?: Array<string> | null | undefined;
|
|
110
|
+
attached_custom_fields?: Array<AttachedCustomFieldCreate$Outbound> | undefined;
|
|
111
|
+
organization_id?: string | null | undefined;
|
|
112
|
+
recurring_interval?: any | null | undefined;
|
|
113
|
+
};
|
|
114
|
+
/** @internal */
|
|
115
|
+
export declare const ProductCreateOneTime$outboundSchema: z.ZodType<ProductCreateOneTime$Outbound, z.ZodTypeDef, ProductCreateOneTime>;
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
119
|
+
*/
|
|
120
|
+
export declare namespace ProductCreateOneTime$ {
|
|
121
|
+
/** @deprecated use `ProductCreateOneTime$inboundSchema` instead. */
|
|
122
|
+
const inboundSchema: z.ZodType<ProductCreateOneTime, z.ZodTypeDef, unknown>;
|
|
123
|
+
/** @deprecated use `ProductCreateOneTime$outboundSchema` instead. */
|
|
124
|
+
const outboundSchema: z.ZodType<ProductCreateOneTime$Outbound, z.ZodTypeDef, ProductCreateOneTime>;
|
|
125
|
+
/** @deprecated use `ProductCreateOneTime$Outbound` instead. */
|
|
126
|
+
type Outbound = ProductCreateOneTime$Outbound;
|
|
127
|
+
}
|
|
128
|
+
export declare function productCreateOneTimeToJSON(productCreateOneTime: ProductCreateOneTime): string;
|
|
129
|
+
export declare function productCreateOneTimeFromJSON(jsonString: string): SafeParseResult<ProductCreateOneTime, SDKValidationError>;
|
|
130
|
+
//# sourceMappingURL=productcreateonetime.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productcreateonetime.d.ts","sourceRoot":"","sources":["../../../../src/models/components/productcreateonetime.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;A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