@polar-sh/sdk 0.33.2 → 0.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/bin/mcp-server.js +104 -94
- package/bin/mcp-server.js.map +17 -17
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/security.d.ts +2 -2
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/benefitgrant.d.ts +4 -4
- package/dist/commonjs/models/components/benefitgrant.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitgrant.js +12 -12
- package/dist/commonjs/models/components/benefitgrant.js.map +1 -1
- package/dist/commonjs/models/components/benefitgrantwebhook.d.ts +8 -8
- package/dist/commonjs/models/components/benefitgrantwebhook.d.ts.map +1 -1
- package/dist/commonjs/models/components/benefitgrantwebhook.js +24 -24
- package/dist/commonjs/models/components/benefitgrantwebhook.js.map +1 -1
- package/dist/commonjs/models/components/checkout.d.ts +11 -6
- package/dist/commonjs/models/components/checkout.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkout.js +16 -12
- package/dist/commonjs/models/components/checkout.js.map +1 -1
- package/dist/commonjs/models/components/checkoutcreate.d.ts +2 -2
- package/dist/commonjs/models/components/checkoutcreate.js +4 -4
- package/dist/commonjs/models/components/checkoutlink.d.ts +4 -4
- package/dist/commonjs/models/components/checkoutlink.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutlink.js +8 -8
- package/dist/commonjs/models/components/checkoutlink.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.d.ts +6 -6
- package/dist/commonjs/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublic.js +12 -12
- package/dist/commonjs/models/components/checkoutpublic.js.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts +6 -6
- package/dist/commonjs/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js +12 -12
- package/dist/commonjs/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts +10 -10
- package/dist/commonjs/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerbenefitgrantupdate.js +8 -8
- package/dist/commonjs/models/components/customerbenefitgrantupdate.js.map +1 -1
- package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.d.ts +2 -2
- package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.js +4 -4
- package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts +34 -4
- package/dist/commonjs/models/components/customerstatebenefitgrant.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerstatebenefitgrant.js +40 -13
- package/dist/commonjs/models/components/customerstatebenefitgrant.js.map +1 -1
- package/dist/commonjs/models/components/discount.d.ts +2 -2
- package/dist/commonjs/models/components/discount.d.ts.map +1 -1
- package/dist/commonjs/models/components/discount.js +4 -4
- package/dist/commonjs/models/components/discount.js.map +1 -1
- package/dist/commonjs/models/components/discountcreate.d.ts +2 -2
- package/dist/commonjs/models/components/discountcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/discountcreate.js +6 -6
- package/dist/commonjs/models/components/discountcreate.js.map +1 -1
- package/dist/commonjs/models/components/filter.d.ts +4 -4
- package/dist/commonjs/models/components/filter.d.ts.map +1 -1
- package/dist/commonjs/models/components/filter.js +4 -4
- package/dist/commonjs/models/components/filter.js.map +1 -1
- package/dist/commonjs/models/components/legacyrecurringproductprice.d.ts +8 -8
- package/dist/commonjs/models/components/legacyrecurringproductprice.d.ts.map +1 -1
- package/dist/commonjs/models/components/legacyrecurringproductprice.js +4 -4
- package/dist/commonjs/models/components/legacyrecurringproductprice.js.map +1 -1
- package/dist/commonjs/models/components/listresourcefileread.d.ts +12 -12
- package/dist/commonjs/models/components/listresourcefileread.d.ts.map +1 -1
- package/dist/commonjs/models/components/listresourcefileread.js +12 -12
- package/dist/commonjs/models/components/listresourcefileread.js.map +1 -1
- package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts +4 -4
- package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts.map +1 -1
- package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js +4 -4
- package/dist/commonjs/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js.map +1 -1
- package/dist/commonjs/models/components/meter.d.ts +24 -24
- package/dist/commonjs/models/components/meter.d.ts.map +1 -1
- package/dist/commonjs/models/components/meter.js +16 -16
- package/dist/commonjs/models/components/meter.js.map +1 -1
- package/dist/commonjs/models/components/metercreate.d.ts +24 -24
- package/dist/commonjs/models/components/metercreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/metercreate.js +16 -16
- package/dist/commonjs/models/components/metercreate.js.map +1 -1
- package/dist/commonjs/models/components/meterupdate.d.ts +24 -24
- package/dist/commonjs/models/components/meterupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/meterupdate.js +16 -16
- package/dist/commonjs/models/components/meterupdate.js.map +1 -1
- package/dist/commonjs/models/components/order.d.ts +4 -4
- package/dist/commonjs/models/components/order.d.ts.map +1 -1
- package/dist/commonjs/models/components/order.js +8 -8
- package/dist/commonjs/models/components/order.js.map +1 -1
- package/dist/commonjs/models/components/payment.d.ts +2 -2
- package/dist/commonjs/models/components/payment.d.ts.map +1 -1
- package/dist/commonjs/models/components/payment.js +2 -2
- package/dist/commonjs/models/components/payment.js.map +1 -1
- package/dist/commonjs/models/components/productcreate.d.ts +4 -4
- package/dist/commonjs/models/components/productcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productcreate.js +8 -8
- package/dist/commonjs/models/components/productcreate.js.map +1 -1
- package/dist/commonjs/models/components/productprice.d.ts +12 -12
- package/dist/commonjs/models/components/productprice.d.ts.map +1 -1
- package/dist/commonjs/models/components/productprice.js +8 -8
- package/dist/commonjs/models/components/productprice.js.map +1 -1
- package/dist/commonjs/models/components/productupdate.d.ts +4 -4
- package/dist/commonjs/models/components/productupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/productupdate.js +12 -12
- package/dist/commonjs/models/components/productupdate.js.map +1 -1
- package/dist/commonjs/models/components/subscription.d.ts +4 -4
- package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscription.js +8 -8
- package/dist/commonjs/models/components/subscription.js.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdate.d.ts +2 -2
- package/dist/commonjs/models/components/subscriptionupdate.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscriptionupdate.js +2 -2
- package/dist/commonjs/models/components/subscriptionupdate.js.map +1 -1
- package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.d.ts +2 -2
- package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.d.ts.map +1 -1
- package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.js +2 -2
- package/dist/commonjs/models/operations/customerportalcustomersaddpaymentmethod.js.map +1 -1
- package/dist/commonjs/models/operations/filesupdate.d.ts +6 -6
- package/dist/commonjs/models/operations/filesupdate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/filesupdate.js +6 -6
- package/dist/commonjs/models/operations/filesupdate.js.map +1 -1
- package/dist/commonjs/models/operations/filesuploaded.d.ts +6 -6
- package/dist/commonjs/models/operations/filesuploaded.d.ts.map +1 -1
- package/dist/commonjs/models/operations/filesuploaded.js +6 -6
- package/dist/commonjs/models/operations/filesuploaded.js.map +1 -1
- package/dist/commonjs/models/operations/oauth2authorize.d.ts +6 -6
- package/dist/commonjs/models/operations/oauth2authorize.d.ts.map +1 -1
- package/dist/commonjs/models/operations/oauth2authorize.js +4 -4
- package/dist/commonjs/models/operations/oauth2authorize.js.map +1 -1
- package/dist/commonjs/models/operations/oauth2requesttoken.d.ts +2 -2
- package/dist/commonjs/models/operations/oauth2requesttoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/oauth2requesttoken.js +2 -2
- package/dist/commonjs/models/operations/oauth2requesttoken.js.map +1 -1
- package/dist/commonjs/models/operations/oauth2userinfo.d.ts +2 -2
- package/dist/commonjs/models/operations/oauth2userinfo.d.ts.map +1 -1
- package/dist/commonjs/models/operations/oauth2userinfo.js +2 -2
- package/dist/commonjs/models/operations/oauth2userinfo.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/security.d.ts +2 -2
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/benefitgrant.d.ts +4 -4
- package/dist/esm/models/components/benefitgrant.d.ts.map +1 -1
- package/dist/esm/models/components/benefitgrant.js +12 -12
- package/dist/esm/models/components/benefitgrant.js.map +1 -1
- package/dist/esm/models/components/benefitgrantwebhook.d.ts +8 -8
- package/dist/esm/models/components/benefitgrantwebhook.d.ts.map +1 -1
- package/dist/esm/models/components/benefitgrantwebhook.js +24 -24
- package/dist/esm/models/components/benefitgrantwebhook.js.map +1 -1
- package/dist/esm/models/components/checkout.d.ts +11 -6
- package/dist/esm/models/components/checkout.d.ts.map +1 -1
- package/dist/esm/models/components/checkout.js +16 -12
- package/dist/esm/models/components/checkout.js.map +1 -1
- package/dist/esm/models/components/checkoutcreate.d.ts +2 -2
- package/dist/esm/models/components/checkoutcreate.js +4 -4
- package/dist/esm/models/components/checkoutlink.d.ts +4 -4
- package/dist/esm/models/components/checkoutlink.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutlink.js +8 -8
- package/dist/esm/models/components/checkoutlink.js.map +1 -1
- package/dist/esm/models/components/checkoutpublic.d.ts +6 -6
- package/dist/esm/models/components/checkoutpublic.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublic.js +12 -12
- package/dist/esm/models/components/checkoutpublic.js.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts +6 -6
- package/dist/esm/models/components/checkoutpublicconfirmed.d.ts.map +1 -1
- package/dist/esm/models/components/checkoutpublicconfirmed.js +12 -12
- package/dist/esm/models/components/checkoutpublicconfirmed.js.map +1 -1
- package/dist/esm/models/components/customerbenefitgrantupdate.d.ts +10 -10
- package/dist/esm/models/components/customerbenefitgrantupdate.d.ts.map +1 -1
- package/dist/esm/models/components/customerbenefitgrantupdate.js +8 -8
- package/dist/esm/models/components/customerbenefitgrantupdate.js.map +1 -1
- package/dist/esm/models/components/customersessioncustomerexternalidcreate.d.ts +2 -2
- package/dist/esm/models/components/customersessioncustomerexternalidcreate.js +4 -4
- package/dist/esm/models/components/customerstatebenefitgrant.d.ts +34 -4
- package/dist/esm/models/components/customerstatebenefitgrant.d.ts.map +1 -1
- package/dist/esm/models/components/customerstatebenefitgrant.js +37 -12
- package/dist/esm/models/components/customerstatebenefitgrant.js.map +1 -1
- package/dist/esm/models/components/discount.d.ts +2 -2
- package/dist/esm/models/components/discount.d.ts.map +1 -1
- package/dist/esm/models/components/discount.js +4 -4
- package/dist/esm/models/components/discount.js.map +1 -1
- package/dist/esm/models/components/discountcreate.d.ts +2 -2
- package/dist/esm/models/components/discountcreate.d.ts.map +1 -1
- package/dist/esm/models/components/discountcreate.js +6 -6
- package/dist/esm/models/components/discountcreate.js.map +1 -1
- package/dist/esm/models/components/filter.d.ts +4 -4
- package/dist/esm/models/components/filter.d.ts.map +1 -1
- package/dist/esm/models/components/filter.js +4 -4
- package/dist/esm/models/components/filter.js.map +1 -1
- package/dist/esm/models/components/legacyrecurringproductprice.d.ts +8 -8
- package/dist/esm/models/components/legacyrecurringproductprice.d.ts.map +1 -1
- package/dist/esm/models/components/legacyrecurringproductprice.js +4 -4
- package/dist/esm/models/components/legacyrecurringproductprice.js.map +1 -1
- package/dist/esm/models/components/listresourcefileread.d.ts +12 -12
- package/dist/esm/models/components/listresourcefileread.d.ts.map +1 -1
- package/dist/esm/models/components/listresourcefileread.js +12 -12
- package/dist/esm/models/components/listresourcefileread.js.map +1 -1
- package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts +4 -4
- package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.d.ts.map +1 -1
- package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js +4 -4
- package/dist/esm/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.js.map +1 -1
- package/dist/esm/models/components/meter.d.ts +24 -24
- package/dist/esm/models/components/meter.d.ts.map +1 -1
- package/dist/esm/models/components/meter.js +16 -16
- package/dist/esm/models/components/meter.js.map +1 -1
- package/dist/esm/models/components/metercreate.d.ts +24 -24
- package/dist/esm/models/components/metercreate.d.ts.map +1 -1
- package/dist/esm/models/components/metercreate.js +16 -16
- package/dist/esm/models/components/metercreate.js.map +1 -1
- package/dist/esm/models/components/meterupdate.d.ts +24 -24
- package/dist/esm/models/components/meterupdate.d.ts.map +1 -1
- package/dist/esm/models/components/meterupdate.js +16 -16
- package/dist/esm/models/components/meterupdate.js.map +1 -1
- package/dist/esm/models/components/order.d.ts +4 -4
- package/dist/esm/models/components/order.d.ts.map +1 -1
- package/dist/esm/models/components/order.js +8 -8
- package/dist/esm/models/components/order.js.map +1 -1
- package/dist/esm/models/components/payment.d.ts +2 -2
- package/dist/esm/models/components/payment.d.ts.map +1 -1
- package/dist/esm/models/components/payment.js +2 -2
- package/dist/esm/models/components/payment.js.map +1 -1
- package/dist/esm/models/components/productcreate.d.ts +4 -4
- package/dist/esm/models/components/productcreate.d.ts.map +1 -1
- package/dist/esm/models/components/productcreate.js +8 -8
- package/dist/esm/models/components/productcreate.js.map +1 -1
- package/dist/esm/models/components/productprice.d.ts +12 -12
- package/dist/esm/models/components/productprice.d.ts.map +1 -1
- package/dist/esm/models/components/productprice.js +8 -8
- package/dist/esm/models/components/productprice.js.map +1 -1
- package/dist/esm/models/components/productupdate.d.ts +4 -4
- package/dist/esm/models/components/productupdate.d.ts.map +1 -1
- package/dist/esm/models/components/productupdate.js +12 -12
- package/dist/esm/models/components/productupdate.js.map +1 -1
- package/dist/esm/models/components/subscription.d.ts +4 -4
- package/dist/esm/models/components/subscription.d.ts.map +1 -1
- package/dist/esm/models/components/subscription.js +8 -8
- package/dist/esm/models/components/subscription.js.map +1 -1
- package/dist/esm/models/components/subscriptionupdate.d.ts +2 -2
- package/dist/esm/models/components/subscriptionupdate.d.ts.map +1 -1
- package/dist/esm/models/components/subscriptionupdate.js +2 -2
- package/dist/esm/models/components/subscriptionupdate.js.map +1 -1
- package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.d.ts +2 -2
- package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.d.ts.map +1 -1
- package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.js +2 -2
- package/dist/esm/models/operations/customerportalcustomersaddpaymentmethod.js.map +1 -1
- package/dist/esm/models/operations/filesupdate.d.ts +6 -6
- package/dist/esm/models/operations/filesupdate.d.ts.map +1 -1
- package/dist/esm/models/operations/filesupdate.js +6 -6
- package/dist/esm/models/operations/filesupdate.js.map +1 -1
- package/dist/esm/models/operations/filesuploaded.d.ts +6 -6
- package/dist/esm/models/operations/filesuploaded.d.ts.map +1 -1
- package/dist/esm/models/operations/filesuploaded.js +6 -6
- package/dist/esm/models/operations/filesuploaded.js.map +1 -1
- package/dist/esm/models/operations/oauth2authorize.d.ts +6 -6
- package/dist/esm/models/operations/oauth2authorize.d.ts.map +1 -1
- package/dist/esm/models/operations/oauth2authorize.js +4 -4
- package/dist/esm/models/operations/oauth2authorize.js.map +1 -1
- package/dist/esm/models/operations/oauth2requesttoken.d.ts +2 -2
- package/dist/esm/models/operations/oauth2requesttoken.d.ts.map +1 -1
- package/dist/esm/models/operations/oauth2requesttoken.js +2 -2
- package/dist/esm/models/operations/oauth2requesttoken.js.map +1 -1
- package/dist/esm/models/operations/oauth2userinfo.d.ts +2 -2
- package/dist/esm/models/operations/oauth2userinfo.d.ts.map +1 -1
- package/dist/esm/models/operations/oauth2userinfo.js +2 -2
- package/dist/esm/models/operations/oauth2userinfo.js.map +1 -1
- package/docs/sdks/customersessions/README.md +2 -2
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/benefitgrant.ts +24 -24
- package/src/models/components/benefitgrantwebhook.ts +48 -48
- package/src/models/components/checkout.ts +34 -25
- package/src/models/components/checkoutcreate.ts +6 -6
- package/src/models/components/checkoutlink.ts +16 -16
- package/src/models/components/checkoutpublic.ts +25 -25
- package/src/models/components/checkoutpublicconfirmed.ts +25 -25
- package/src/models/components/customerbenefitgrantupdate.ts +29 -29
- package/src/models/components/customersessioncustomerexternalidcreate.ts +6 -6
- package/src/models/components/customerstatebenefitgrant.ts +85 -24
- package/src/models/components/discount.ts +8 -8
- package/src/models/components/discountcreate.ts +12 -12
- package/src/models/components/filter.ts +8 -8
- package/src/models/components/legacyrecurringproductprice.ts +12 -12
- package/src/models/components/listresourcefileread.ts +26 -26
- package/src/models/components/listresourceunionpaymentmethodcardpaymentmethodgeneric.ts +9 -9
- package/src/models/components/meter.ts +42 -42
- package/src/models/components/metercreate.ts +44 -44
- package/src/models/components/meterupdate.ts +40 -40
- package/src/models/components/order.ts +16 -16
- package/src/models/components/payment.ts +4 -4
- package/src/models/components/productcreate.ts +16 -16
- package/src/models/components/productprice.ts +22 -22
- package/src/models/components/productupdate.ts +24 -24
- package/src/models/components/subscription.ts +16 -16
- package/src/models/components/subscriptionupdate.ts +4 -4
- package/src/models/operations/customerportalcustomersaddpaymentmethod.ts +6 -6
- package/src/models/operations/filesupdate.ts +14 -14
- package/src/models/operations/filesuploaded.ts +14 -14
- package/src/models/operations/oauth2authorize.ts +12 -12
- package/src/models/operations/oauth2requesttoken.ts +6 -6
- package/src/models/operations/oauth2userinfo.ts +6 -6
package/README.md
CHANGED
|
@@ -218,9 +218,18 @@ async function run() {
|
|
|
218
218
|
},
|
|
219
219
|
customerTaxId: "<id>",
|
|
220
220
|
paymentProcessorMetadata: {},
|
|
221
|
+
customerBillingAddressFields: {
|
|
222
|
+
country: false,
|
|
223
|
+
state: true,
|
|
224
|
+
city: false,
|
|
225
|
+
postalCode: true,
|
|
226
|
+
line1: true,
|
|
227
|
+
line2: false,
|
|
228
|
+
},
|
|
221
229
|
metadata: {
|
|
222
230
|
"key": "<value>",
|
|
223
231
|
},
|
|
232
|
+
externalCustomerId: null,
|
|
224
233
|
customerExternalId: "<id>",
|
|
225
234
|
products: [],
|
|
226
235
|
product: {
|
|
@@ -360,14 +369,6 @@ async function run() {
|
|
|
360
369
|
"key1": false,
|
|
361
370
|
"key2": 851435,
|
|
362
371
|
},
|
|
363
|
-
customerBillingAddressFields: {
|
|
364
|
-
country: false,
|
|
365
|
-
state: true,
|
|
366
|
-
city: false,
|
|
367
|
-
postalCode: true,
|
|
368
|
-
line1: true,
|
|
369
|
-
line2: false,
|
|
370
|
-
},
|
|
371
372
|
},
|
|
372
373
|
});
|
|
373
374
|
|
package/bin/mcp-server.js
CHANGED
|
@@ -4041,9 +4041,9 @@ var init_config = __esm(() => {
|
|
|
4041
4041
|
SDK_METADATA = {
|
|
4042
4042
|
language: "typescript",
|
|
4043
4043
|
openapiDocVersion: "0.1.0",
|
|
4044
|
-
sdkVersion: "0.
|
|
4045
|
-
genVersion: "2.
|
|
4046
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
4044
|
+
sdkVersion: "0.34.1",
|
|
4045
|
+
genVersion: "2.628.0",
|
|
4046
|
+
userAgent: "speakeasy-sdk/typescript 0.34.1 2.628.0 0.1.0 @polar-sh/sdk"
|
|
4047
4047
|
};
|
|
4048
4048
|
});
|
|
4049
4049
|
|
|
@@ -35961,19 +35961,19 @@ var init_filter = __esm(() => {
|
|
|
35961
35961
|
init_esm();
|
|
35962
35962
|
init_filterclause();
|
|
35963
35963
|
init_filterconjunction();
|
|
35964
|
-
Clauses$inboundSchema = unionType([
|
|
35965
|
-
Clauses$outboundSchema = unionType([
|
|
35964
|
+
Clauses$inboundSchema = unionType([lazyType(() => Filter$inboundSchema), FilterClause$inboundSchema]);
|
|
35965
|
+
Clauses$outboundSchema = unionType([lazyType(() => Filter$outboundSchema), FilterClause$outboundSchema]);
|
|
35966
35966
|
((Clauses$) => {
|
|
35967
35967
|
Clauses$.inboundSchema = Clauses$inboundSchema;
|
|
35968
35968
|
Clauses$.outboundSchema = Clauses$outboundSchema;
|
|
35969
35969
|
})(Clauses$ ||= {});
|
|
35970
35970
|
Filter$inboundSchema = objectType({
|
|
35971
35971
|
conjunction: FilterConjunction$inboundSchema,
|
|
35972
|
-
clauses: arrayType(unionType([
|
|
35972
|
+
clauses: arrayType(unionType([lazyType(() => Filter$inboundSchema), FilterClause$inboundSchema]))
|
|
35973
35973
|
});
|
|
35974
35974
|
Filter$outboundSchema = objectType({
|
|
35975
35975
|
conjunction: FilterConjunction$outboundSchema,
|
|
35976
|
-
clauses: arrayType(unionType([
|
|
35976
|
+
clauses: arrayType(unionType([lazyType(() => Filter$outboundSchema), FilterClause$outboundSchema]))
|
|
35977
35977
|
});
|
|
35978
35978
|
((Filter$) => {
|
|
35979
35979
|
Filter$.inboundSchema = Filter$inboundSchema;
|
|
@@ -36026,18 +36026,18 @@ var init_meter = __esm(() => {
|
|
|
36026
36026
|
MeterMetadata$.outboundSchema = MeterMetadata$outboundSchema;
|
|
36027
36027
|
})(MeterMetadata$ ||= {});
|
|
36028
36028
|
MeterAggregation$inboundSchema = unionType([
|
|
36029
|
+
CountAggregation$inboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({ func: v2.func }))),
|
|
36029
36030
|
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
|
|
36030
|
-
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("
|
|
36031
|
-
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("
|
|
36032
|
-
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("
|
|
36033
|
-
CountAggregation$inboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({ func: v2.func })))
|
|
36031
|
+
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("max") }).transform((v2) => ({ func: v2.func }))),
|
|
36032
|
+
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("min") }).transform((v2) => ({ func: v2.func }))),
|
|
36033
|
+
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("sum") }).transform((v2) => ({ func: v2.func })))
|
|
36034
36034
|
]);
|
|
36035
36035
|
MeterAggregation$outboundSchema = unionType([
|
|
36036
|
+
CountAggregation$outboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({ func: v2.func }))),
|
|
36036
36037
|
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
|
|
36037
|
-
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("
|
|
36038
|
-
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("
|
|
36039
|
-
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("
|
|
36040
|
-
CountAggregation$outboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({ func: v2.func })))
|
|
36038
|
+
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("max") }).transform((v2) => ({ func: v2.func }))),
|
|
36039
|
+
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("min") }).transform((v2) => ({ func: v2.func }))),
|
|
36040
|
+
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("sum") }).transform((v2) => ({ func: v2.func })))
|
|
36041
36041
|
]);
|
|
36042
36042
|
((MeterAggregation$) => {
|
|
36043
36043
|
MeterAggregation$.inboundSchema = MeterAggregation$inboundSchema;
|
|
@@ -36051,19 +36051,19 @@ var init_meter = __esm(() => {
|
|
|
36051
36051
|
name: stringType(),
|
|
36052
36052
|
filter: Filter$inboundSchema,
|
|
36053
36053
|
aggregation: unionType([
|
|
36054
|
-
|
|
36054
|
+
CountAggregation$inboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({
|
|
36055
36055
|
func: v2.func
|
|
36056
36056
|
}))),
|
|
36057
36057
|
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({
|
|
36058
36058
|
func: v2.func
|
|
36059
36059
|
}))),
|
|
36060
|
-
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("
|
|
36060
|
+
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("max") }).transform((v2) => ({
|
|
36061
36061
|
func: v2.func
|
|
36062
36062
|
}))),
|
|
36063
|
-
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("
|
|
36063
|
+
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("min") }).transform((v2) => ({
|
|
36064
36064
|
func: v2.func
|
|
36065
36065
|
}))),
|
|
36066
|
-
|
|
36066
|
+
PropertyAggregation$inboundSchema.and(objectType({ func: literalType("sum") }).transform((v2) => ({
|
|
36067
36067
|
func: v2.func
|
|
36068
36068
|
})))
|
|
36069
36069
|
]),
|
|
@@ -36083,13 +36083,13 @@ var init_meter = __esm(() => {
|
|
|
36083
36083
|
name: stringType(),
|
|
36084
36084
|
filter: Filter$outboundSchema,
|
|
36085
36085
|
aggregation: unionType([
|
|
36086
|
-
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
|
|
36087
|
-
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
|
|
36088
|
-
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
|
|
36089
|
-
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
|
|
36090
36086
|
CountAggregation$outboundSchema.and(objectType({ func: literalType("count") }).transform((v2) => ({
|
|
36091
36087
|
func: v2.func
|
|
36092
|
-
})))
|
|
36088
|
+
}))),
|
|
36089
|
+
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("avg") }).transform((v2) => ({ func: v2.func }))),
|
|
36090
|
+
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("max") }).transform((v2) => ({ func: v2.func }))),
|
|
36091
|
+
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("min") }).transform((v2) => ({ func: v2.func }))),
|
|
36092
|
+
PropertyAggregation$outboundSchema.and(objectType({ func: literalType("sum") }).transform((v2) => ({ func: v2.func })))
|
|
36093
36093
|
]),
|
|
36094
36094
|
organizationId: stringType()
|
|
36095
36095
|
}).transform((v2) => {
|
|
@@ -37639,7 +37639,7 @@ var init_benefittype = __esm(() => {
|
|
|
37639
37639
|
});
|
|
37640
37640
|
|
|
37641
37641
|
// src/models/components/customerstatebenefitgrant.ts
|
|
37642
|
-
var CustomerStateBenefitGrantProperties$inboundSchema, CustomerStateBenefitGrantProperties$outboundSchema, CustomerStateBenefitGrantProperties$, CustomerStateBenefitGrant$inboundSchema, CustomerStateBenefitGrant$outboundSchema, CustomerStateBenefitGrant$;
|
|
37642
|
+
var BenefitMetadata$inboundSchema, BenefitMetadata$outboundSchema, BenefitMetadata$, CustomerStateBenefitGrantProperties$inboundSchema, CustomerStateBenefitGrantProperties$outboundSchema, CustomerStateBenefitGrantProperties$, CustomerStateBenefitGrant$inboundSchema, CustomerStateBenefitGrant$outboundSchema, CustomerStateBenefitGrant$;
|
|
37643
37643
|
var init_customerstatebenefitgrant = __esm(() => {
|
|
37644
37644
|
init_esm();
|
|
37645
37645
|
init_primitives();
|
|
@@ -37649,19 +37649,25 @@ var init_customerstatebenefitgrant = __esm(() => {
|
|
|
37649
37649
|
init_benefitgrantgithubrepositoryproperties();
|
|
37650
37650
|
init_benefitgrantlicensekeysproperties();
|
|
37651
37651
|
init_benefittype();
|
|
37652
|
+
BenefitMetadata$inboundSchema = unionType([stringType(), numberType().int(), numberType(), booleanType()]);
|
|
37653
|
+
BenefitMetadata$outboundSchema = unionType([stringType(), numberType().int(), numberType(), booleanType()]);
|
|
37654
|
+
((BenefitMetadata$) => {
|
|
37655
|
+
BenefitMetadata$.inboundSchema = BenefitMetadata$inboundSchema;
|
|
37656
|
+
BenefitMetadata$.outboundSchema = BenefitMetadata$outboundSchema;
|
|
37657
|
+
})(BenefitMetadata$ ||= {});
|
|
37652
37658
|
CustomerStateBenefitGrantProperties$inboundSchema = unionType([
|
|
37653
|
-
|
|
37654
|
-
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
37659
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
37655
37660
|
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
37656
37661
|
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
37657
|
-
|
|
37662
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
37663
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema
|
|
37658
37664
|
]);
|
|
37659
37665
|
CustomerStateBenefitGrantProperties$outboundSchema = unionType([
|
|
37660
|
-
|
|
37661
|
-
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
37666
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
37662
37667
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
37663
37668
|
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
37664
|
-
|
|
37669
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
37670
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema
|
|
37665
37671
|
]);
|
|
37666
37672
|
((CustomerStateBenefitGrantProperties$) => {
|
|
37667
37673
|
CustomerStateBenefitGrantProperties$.inboundSchema = CustomerStateBenefitGrantProperties$inboundSchema;
|
|
@@ -37674,12 +37680,13 @@ var init_customerstatebenefitgrant = __esm(() => {
|
|
|
37674
37680
|
granted_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)),
|
|
37675
37681
|
benefit_id: stringType(),
|
|
37676
37682
|
benefit_type: BenefitType$inboundSchema,
|
|
37683
|
+
benefit_metadata: recordType(unionType([stringType(), numberType().int(), numberType(), booleanType()])),
|
|
37677
37684
|
properties: unionType([
|
|
37678
|
-
|
|
37679
|
-
BenefitGrantGitHubRepositoryProperties$inboundSchema,
|
|
37685
|
+
BenefitGrantCustomProperties$inboundSchema,
|
|
37680
37686
|
BenefitGrantDownloadablesProperties$inboundSchema,
|
|
37681
37687
|
BenefitGrantLicenseKeysProperties$inboundSchema,
|
|
37682
|
-
|
|
37688
|
+
BenefitGrantDiscordProperties$inboundSchema,
|
|
37689
|
+
BenefitGrantGitHubRepositoryProperties$inboundSchema
|
|
37683
37690
|
])
|
|
37684
37691
|
}).transform((v2) => {
|
|
37685
37692
|
return remap(v2, {
|
|
@@ -37687,7 +37694,8 @@ var init_customerstatebenefitgrant = __esm(() => {
|
|
|
37687
37694
|
modified_at: "modifiedAt",
|
|
37688
37695
|
granted_at: "grantedAt",
|
|
37689
37696
|
benefit_id: "benefitId",
|
|
37690
|
-
benefit_type: "benefitType"
|
|
37697
|
+
benefit_type: "benefitType",
|
|
37698
|
+
benefit_metadata: "benefitMetadata"
|
|
37691
37699
|
});
|
|
37692
37700
|
});
|
|
37693
37701
|
CustomerStateBenefitGrant$outboundSchema = objectType({
|
|
@@ -37697,12 +37705,13 @@ var init_customerstatebenefitgrant = __esm(() => {
|
|
|
37697
37705
|
grantedAt: dateType().transform((v2) => v2.toISOString()),
|
|
37698
37706
|
benefitId: stringType(),
|
|
37699
37707
|
benefitType: BenefitType$outboundSchema,
|
|
37708
|
+
benefitMetadata: recordType(unionType([stringType(), numberType().int(), numberType(), booleanType()])),
|
|
37700
37709
|
properties: unionType([
|
|
37701
|
-
|
|
37702
|
-
BenefitGrantGitHubRepositoryProperties$outboundSchema,
|
|
37710
|
+
BenefitGrantCustomProperties$outboundSchema,
|
|
37703
37711
|
BenefitGrantDownloadablesProperties$outboundSchema,
|
|
37704
37712
|
BenefitGrantLicenseKeysProperties$outboundSchema,
|
|
37705
|
-
|
|
37713
|
+
BenefitGrantDiscordProperties$outboundSchema,
|
|
37714
|
+
BenefitGrantGitHubRepositoryProperties$outboundSchema
|
|
37706
37715
|
])
|
|
37707
37716
|
}).transform((v2) => {
|
|
37708
37717
|
return remap(v2, {
|
|
@@ -37710,7 +37719,8 @@ var init_customerstatebenefitgrant = __esm(() => {
|
|
|
37710
37719
|
modifiedAt: "modified_at",
|
|
37711
37720
|
grantedAt: "granted_at",
|
|
37712
37721
|
benefitId: "benefit_id",
|
|
37713
|
-
benefitType: "benefit_type"
|
|
37722
|
+
benefitType: "benefit_type",
|
|
37723
|
+
benefitMetadata: "benefit_metadata"
|
|
37714
37724
|
});
|
|
37715
37725
|
});
|
|
37716
37726
|
((CustomerStateBenefitGrant$) => {
|
|
@@ -40908,16 +40918,16 @@ var init_order = __esm(() => {
|
|
|
40908
40918
|
OrderCustomFieldData$.outboundSchema = OrderCustomFieldData$outboundSchema;
|
|
40909
40919
|
})(OrderCustomFieldData$ ||= {});
|
|
40910
40920
|
OrderDiscount$inboundSchema = unionType([
|
|
40911
|
-
|
|
40921
|
+
DiscountPercentageOnceForeverDurationBase$inboundSchema,
|
|
40912
40922
|
DiscountFixedOnceForeverDurationBase$inboundSchema,
|
|
40913
40923
|
DiscountPercentageRepeatDurationBase$inboundSchema,
|
|
40914
|
-
|
|
40924
|
+
DiscountFixedRepeatDurationBase$inboundSchema
|
|
40915
40925
|
]);
|
|
40916
40926
|
OrderDiscount$outboundSchema = unionType([
|
|
40917
|
-
|
|
40927
|
+
DiscountPercentageOnceForeverDurationBase$outboundSchema,
|
|
40918
40928
|
DiscountFixedOnceForeverDurationBase$outboundSchema,
|
|
40919
40929
|
DiscountPercentageRepeatDurationBase$outboundSchema,
|
|
40920
|
-
|
|
40930
|
+
DiscountFixedRepeatDurationBase$outboundSchema
|
|
40921
40931
|
]);
|
|
40922
40932
|
((OrderDiscount$) => {
|
|
40923
40933
|
OrderDiscount$.inboundSchema = OrderDiscount$inboundSchema;
|
|
@@ -40958,10 +40968,10 @@ var init_order = __esm(() => {
|
|
|
40958
40968
|
user_id: stringType(),
|
|
40959
40969
|
product: OrderProduct$inboundSchema,
|
|
40960
40970
|
discount: nullableType(unionType([
|
|
40961
|
-
|
|
40971
|
+
DiscountPercentageOnceForeverDurationBase$inboundSchema,
|
|
40962
40972
|
DiscountFixedOnceForeverDurationBase$inboundSchema,
|
|
40963
40973
|
DiscountPercentageRepeatDurationBase$inboundSchema,
|
|
40964
|
-
|
|
40974
|
+
DiscountFixedRepeatDurationBase$inboundSchema
|
|
40965
40975
|
])),
|
|
40966
40976
|
subscription: nullableType(OrderSubscription$inboundSchema),
|
|
40967
40977
|
items: arrayType(OrderItemSchema$inboundSchema)
|
|
@@ -41024,10 +41034,10 @@ var init_order = __esm(() => {
|
|
|
41024
41034
|
userId: stringType(),
|
|
41025
41035
|
product: OrderProduct$outboundSchema,
|
|
41026
41036
|
discount: nullableType(unionType([
|
|
41027
|
-
|
|
41037
|
+
DiscountPercentageOnceForeverDurationBase$outboundSchema,
|
|
41028
41038
|
DiscountFixedOnceForeverDurationBase$outboundSchema,
|
|
41029
41039
|
DiscountPercentageRepeatDurationBase$outboundSchema,
|
|
41030
|
-
|
|
41040
|
+
DiscountFixedRepeatDurationBase$outboundSchema
|
|
41031
41041
|
])),
|
|
41032
41042
|
subscription: nullableType(OrderSubscription$outboundSchema),
|
|
41033
41043
|
items: arrayType(OrderItemSchema$outboundSchema)
|
|
@@ -42018,8 +42028,8 @@ var init_payment = __esm(() => {
|
|
|
42018
42028
|
init_esm();
|
|
42019
42029
|
init_cardpayment();
|
|
42020
42030
|
init_genericpayment();
|
|
42021
|
-
Payment$inboundSchema = unionType([
|
|
42022
|
-
Payment$outboundSchema = unionType([
|
|
42031
|
+
Payment$inboundSchema = unionType([GenericPayment$inboundSchema, CardPayment$inboundSchema]);
|
|
42032
|
+
Payment$outboundSchema = unionType([GenericPayment$outboundSchema, CardPayment$outboundSchema]);
|
|
42023
42033
|
((Payment$) => {
|
|
42024
42034
|
Payment$.inboundSchema = Payment$inboundSchema;
|
|
42025
42035
|
Payment$.outboundSchema = Payment$outboundSchema;
|
|
@@ -43776,24 +43786,24 @@ var init_legacyrecurringproductprice = __esm(() => {
|
|
|
43776
43786
|
init_legacyrecurringproductpricefixed();
|
|
43777
43787
|
init_legacyrecurringproductpricefree();
|
|
43778
43788
|
LegacyRecurringProductPrice$inboundSchema = unionType([
|
|
43779
|
-
|
|
43789
|
+
LegacyRecurringProductPriceFree$inboundSchema.and(objectType({ amount_type: literalType("free") }).transform((v2) => ({
|
|
43780
43790
|
amountType: v2.amount_type
|
|
43781
43791
|
}))),
|
|
43782
43792
|
LegacyRecurringProductPriceFixed$inboundSchema.and(objectType({ amount_type: literalType("fixed") }).transform((v2) => ({
|
|
43783
43793
|
amountType: v2.amount_type
|
|
43784
43794
|
}))),
|
|
43785
|
-
|
|
43795
|
+
LegacyRecurringProductPriceCustom$inboundSchema.and(objectType({ amount_type: literalType("custom") }).transform((v2) => ({
|
|
43786
43796
|
amountType: v2.amount_type
|
|
43787
43797
|
})))
|
|
43788
43798
|
]);
|
|
43789
43799
|
LegacyRecurringProductPrice$outboundSchema = unionType([
|
|
43790
|
-
|
|
43800
|
+
LegacyRecurringProductPriceFree$outboundSchema.and(objectType({ amountType: literalType("free") }).transform((v2) => ({
|
|
43791
43801
|
amount_type: v2.amountType
|
|
43792
43802
|
}))),
|
|
43793
43803
|
LegacyRecurringProductPriceFixed$outboundSchema.and(objectType({ amountType: literalType("fixed") }).transform((v2) => ({
|
|
43794
43804
|
amount_type: v2.amountType
|
|
43795
43805
|
}))),
|
|
43796
|
-
|
|
43806
|
+
LegacyRecurringProductPriceCustom$outboundSchema.and(objectType({ amountType: literalType("custom") }).transform((v2) => ({
|
|
43797
43807
|
amount_type: v2.amountType
|
|
43798
43808
|
})))
|
|
43799
43809
|
]);
|
|
@@ -44170,30 +44180,30 @@ var init_productprice = __esm(() => {
|
|
|
44170
44180
|
init_productpricefree();
|
|
44171
44181
|
init_productpricemeteredunit();
|
|
44172
44182
|
ProductPrice$inboundSchema = unionType([
|
|
44173
|
-
|
|
44183
|
+
ProductPriceFree$inboundSchema.and(objectType({ amount_type: literalType("free") }).transform((v2) => ({
|
|
44174
44184
|
amountType: v2.amount_type
|
|
44175
44185
|
}))),
|
|
44176
|
-
|
|
44186
|
+
ProductPriceFixed$inboundSchema.and(objectType({ amount_type: literalType("fixed") }).transform((v2) => ({
|
|
44177
44187
|
amountType: v2.amount_type
|
|
44178
44188
|
}))),
|
|
44179
|
-
|
|
44189
|
+
ProductPriceCustom$inboundSchema.and(objectType({ amount_type: literalType("custom") }).transform((v2) => ({
|
|
44180
44190
|
amountType: v2.amount_type
|
|
44181
44191
|
}))),
|
|
44182
|
-
|
|
44192
|
+
ProductPriceMeteredUnit$inboundSchema.and(objectType({ amount_type: literalType("metered_unit") }).transform((v2) => ({
|
|
44183
44193
|
amountType: v2.amount_type
|
|
44184
44194
|
})))
|
|
44185
44195
|
]);
|
|
44186
44196
|
ProductPrice$outboundSchema = unionType([
|
|
44187
|
-
|
|
44197
|
+
ProductPriceFree$outboundSchema.and(objectType({ amountType: literalType("free") }).transform((v2) => ({
|
|
44188
44198
|
amount_type: v2.amountType
|
|
44189
44199
|
}))),
|
|
44190
|
-
|
|
44200
|
+
ProductPriceFixed$outboundSchema.and(objectType({ amountType: literalType("fixed") }).transform((v2) => ({
|
|
44191
44201
|
amount_type: v2.amountType
|
|
44192
44202
|
}))),
|
|
44193
|
-
|
|
44203
|
+
ProductPriceCustom$outboundSchema.and(objectType({ amountType: literalType("custom") }).transform((v2) => ({
|
|
44194
44204
|
amount_type: v2.amountType
|
|
44195
44205
|
}))),
|
|
44196
|
-
|
|
44206
|
+
ProductPriceMeteredUnit$outboundSchema.and(objectType({ amountType: literalType("metered_unit") }).transform((v2) => ({
|
|
44197
44207
|
amount_type: v2.amountType
|
|
44198
44208
|
})))
|
|
44199
44209
|
]);
|
|
@@ -44487,16 +44497,16 @@ var init_productcreate = __esm(() => {
|
|
|
44487
44497
|
ProductCreateMetadata$.outboundSchema = ProductCreateMetadata$outboundSchema;
|
|
44488
44498
|
})(ProductCreateMetadata$ ||= {});
|
|
44489
44499
|
ProductCreatePrices$inboundSchema = unionType([
|
|
44490
|
-
|
|
44500
|
+
ProductPriceFreeCreate$inboundSchema,
|
|
44491
44501
|
ProductPriceFixedCreate$inboundSchema,
|
|
44492
44502
|
ProductPriceCustomCreate$inboundSchema,
|
|
44493
|
-
|
|
44503
|
+
ProductPriceMeteredUnitCreate$inboundSchema
|
|
44494
44504
|
]);
|
|
44495
44505
|
ProductCreatePrices$outboundSchema = unionType([
|
|
44496
|
-
|
|
44506
|
+
ProductPriceFreeCreate$outboundSchema,
|
|
44497
44507
|
ProductPriceFixedCreate$outboundSchema,
|
|
44498
44508
|
ProductPriceCustomCreate$outboundSchema,
|
|
44499
|
-
|
|
44509
|
+
ProductPriceMeteredUnitCreate$outboundSchema
|
|
44500
44510
|
]);
|
|
44501
44511
|
((ProductCreatePrices$) => {
|
|
44502
44512
|
ProductCreatePrices$.inboundSchema = ProductCreatePrices$inboundSchema;
|
|
@@ -44508,10 +44518,10 @@ var init_productcreate = __esm(() => {
|
|
|
44508
44518
|
description: nullableType(stringType()).optional(),
|
|
44509
44519
|
recurring_interval: nullableType(SubscriptionRecurringInterval$inboundSchema),
|
|
44510
44520
|
prices: arrayType(unionType([
|
|
44511
|
-
|
|
44521
|
+
ProductPriceFreeCreate$inboundSchema,
|
|
44512
44522
|
ProductPriceFixedCreate$inboundSchema,
|
|
44513
44523
|
ProductPriceCustomCreate$inboundSchema,
|
|
44514
|
-
|
|
44524
|
+
ProductPriceMeteredUnitCreate$inboundSchema
|
|
44515
44525
|
])),
|
|
44516
44526
|
medias: nullableType(arrayType(stringType())).optional(),
|
|
44517
44527
|
attached_custom_fields: arrayType(AttachedCustomFieldCreate$inboundSchema).optional(),
|
|
@@ -44529,10 +44539,10 @@ var init_productcreate = __esm(() => {
|
|
|
44529
44539
|
description: nullableType(stringType()).optional(),
|
|
44530
44540
|
recurringInterval: nullableType(SubscriptionRecurringInterval$outboundSchema),
|
|
44531
44541
|
prices: arrayType(unionType([
|
|
44532
|
-
|
|
44542
|
+
ProductPriceFreeCreate$outboundSchema,
|
|
44533
44543
|
ProductPriceFixedCreate$outboundSchema,
|
|
44534
44544
|
ProductPriceCustomCreate$outboundSchema,
|
|
44535
|
-
|
|
44545
|
+
ProductPriceMeteredUnitCreate$outboundSchema
|
|
44536
44546
|
])),
|
|
44537
44547
|
medias: nullableType(arrayType(stringType())).optional(),
|
|
44538
44548
|
attachedCustomFields: arrayType(AttachedCustomFieldCreate$outboundSchema).optional(),
|
|
@@ -45140,18 +45150,18 @@ var init_productupdate = __esm(() => {
|
|
|
45140
45150
|
ProductUpdateMetadata$.outboundSchema = ProductUpdateMetadata$outboundSchema;
|
|
45141
45151
|
})(ProductUpdateMetadata$ ||= {});
|
|
45142
45152
|
ProductUpdatePrices$inboundSchema = unionType([
|
|
45143
|
-
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
45144
|
-
ProductPriceFixedCreate$inboundSchema,
|
|
45145
45153
|
ExistingProductPrice$inboundSchema,
|
|
45154
|
+
ProductPriceFreeCreate$inboundSchema,
|
|
45155
|
+
ProductPriceFixedCreate$inboundSchema,
|
|
45146
45156
|
ProductPriceCustomCreate$inboundSchema,
|
|
45147
|
-
|
|
45157
|
+
ProductPriceMeteredUnitCreate$inboundSchema
|
|
45148
45158
|
]);
|
|
45149
45159
|
ProductUpdatePrices$outboundSchema = unionType([
|
|
45150
|
-
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
45151
|
-
ProductPriceFixedCreate$outboundSchema,
|
|
45152
45160
|
ExistingProductPrice$outboundSchema,
|
|
45161
|
+
ProductPriceFreeCreate$outboundSchema,
|
|
45162
|
+
ProductPriceFixedCreate$outboundSchema,
|
|
45153
45163
|
ProductPriceCustomCreate$outboundSchema,
|
|
45154
|
-
|
|
45164
|
+
ProductPriceMeteredUnitCreate$outboundSchema
|
|
45155
45165
|
]);
|
|
45156
45166
|
((ProductUpdatePrices$) => {
|
|
45157
45167
|
ProductUpdatePrices$.inboundSchema = ProductUpdatePrices$inboundSchema;
|
|
@@ -45164,11 +45174,11 @@ var init_productupdate = __esm(() => {
|
|
|
45164
45174
|
recurring_interval: nullableType(SubscriptionRecurringInterval$inboundSchema).optional(),
|
|
45165
45175
|
is_archived: nullableType(booleanType()).optional(),
|
|
45166
45176
|
prices: nullableType(arrayType(unionType([
|
|
45167
|
-
ProductPriceMeteredUnitCreate$inboundSchema,
|
|
45168
|
-
ProductPriceFixedCreate$inboundSchema,
|
|
45169
45177
|
ExistingProductPrice$inboundSchema,
|
|
45178
|
+
ProductPriceFreeCreate$inboundSchema,
|
|
45179
|
+
ProductPriceFixedCreate$inboundSchema,
|
|
45170
45180
|
ProductPriceCustomCreate$inboundSchema,
|
|
45171
|
-
|
|
45181
|
+
ProductPriceMeteredUnitCreate$inboundSchema
|
|
45172
45182
|
]))).optional(),
|
|
45173
45183
|
medias: nullableType(arrayType(stringType())).optional(),
|
|
45174
45184
|
attached_custom_fields: nullableType(arrayType(AttachedCustomFieldCreate$inboundSchema)).optional()
|
|
@@ -45186,11 +45196,11 @@ var init_productupdate = __esm(() => {
|
|
|
45186
45196
|
recurringInterval: nullableType(SubscriptionRecurringInterval$outboundSchema).optional(),
|
|
45187
45197
|
isArchived: nullableType(booleanType()).optional(),
|
|
45188
45198
|
prices: nullableType(arrayType(unionType([
|
|
45189
|
-
ProductPriceMeteredUnitCreate$outboundSchema,
|
|
45190
|
-
ProductPriceFixedCreate$outboundSchema,
|
|
45191
45199
|
ExistingProductPrice$outboundSchema,
|
|
45200
|
+
ProductPriceFreeCreate$outboundSchema,
|
|
45201
|
+
ProductPriceFixedCreate$outboundSchema,
|
|
45192
45202
|
ProductPriceCustomCreate$outboundSchema,
|
|
45193
|
-
|
|
45203
|
+
ProductPriceMeteredUnitCreate$outboundSchema
|
|
45194
45204
|
]))).optional(),
|
|
45195
45205
|
medias: nullableType(arrayType(stringType())).optional(),
|
|
45196
45206
|
attachedCustomFields: nullableType(arrayType(AttachedCustomFieldCreate$outboundSchema)).optional()
|
|
@@ -45819,16 +45829,16 @@ var init_subscription = __esm(() => {
|
|
|
45819
45829
|
CustomFieldData$.outboundSchema = CustomFieldData$outboundSchema;
|
|
45820
45830
|
})(CustomFieldData$ ||= {});
|
|
45821
45831
|
SubscriptionDiscount$inboundSchema = unionType([
|
|
45822
|
-
|
|
45832
|
+
DiscountPercentageOnceForeverDurationBase$inboundSchema,
|
|
45823
45833
|
DiscountFixedOnceForeverDurationBase$inboundSchema,
|
|
45824
45834
|
DiscountPercentageRepeatDurationBase$inboundSchema,
|
|
45825
|
-
|
|
45835
|
+
DiscountFixedRepeatDurationBase$inboundSchema
|
|
45826
45836
|
]);
|
|
45827
45837
|
SubscriptionDiscount$outboundSchema = unionType([
|
|
45828
|
-
|
|
45838
|
+
DiscountPercentageOnceForeverDurationBase$outboundSchema,
|
|
45829
45839
|
DiscountFixedOnceForeverDurationBase$outboundSchema,
|
|
45830
45840
|
DiscountPercentageRepeatDurationBase$outboundSchema,
|
|
45831
|
-
|
|
45841
|
+
DiscountFixedRepeatDurationBase$outboundSchema
|
|
45832
45842
|
]);
|
|
45833
45843
|
((SubscriptionDiscount$) => {
|
|
45834
45844
|
SubscriptionDiscount$.inboundSchema = SubscriptionDiscount$inboundSchema;
|
|
@@ -45877,10 +45887,10 @@ var init_subscription = __esm(() => {
|
|
|
45877
45887
|
customer: SubscriptionCustomer$inboundSchema,
|
|
45878
45888
|
product: Product$inboundSchema,
|
|
45879
45889
|
discount: nullableType(unionType([
|
|
45880
|
-
|
|
45890
|
+
DiscountPercentageOnceForeverDurationBase$inboundSchema,
|
|
45881
45891
|
DiscountFixedOnceForeverDurationBase$inboundSchema,
|
|
45882
45892
|
DiscountPercentageRepeatDurationBase$inboundSchema,
|
|
45883
|
-
|
|
45893
|
+
DiscountFixedRepeatDurationBase$inboundSchema
|
|
45884
45894
|
])),
|
|
45885
45895
|
prices: arrayType(unionType([
|
|
45886
45896
|
LegacyRecurringProductPrice$inboundSchema,
|
|
@@ -45939,10 +45949,10 @@ var init_subscription = __esm(() => {
|
|
|
45939
45949
|
customer: SubscriptionCustomer$outboundSchema,
|
|
45940
45950
|
product: Product$outboundSchema,
|
|
45941
45951
|
discount: nullableType(unionType([
|
|
45942
|
-
|
|
45952
|
+
DiscountPercentageOnceForeverDurationBase$outboundSchema,
|
|
45943
45953
|
DiscountFixedOnceForeverDurationBase$outboundSchema,
|
|
45944
45954
|
DiscountPercentageRepeatDurationBase$outboundSchema,
|
|
45945
|
-
|
|
45955
|
+
DiscountFixedRepeatDurationBase$outboundSchema
|
|
45946
45956
|
])),
|
|
45947
45957
|
prices: arrayType(unionType([
|
|
45948
45958
|
LegacyRecurringProductPrice$outboundSchema,
|
|
@@ -46714,14 +46724,14 @@ var init_subscriptionupdate = __esm(() => {
|
|
|
46714
46724
|
init_subscriptionupdatediscount();
|
|
46715
46725
|
init_subscriptionupdateproduct();
|
|
46716
46726
|
SubscriptionUpdate$inboundSchema = unionType([
|
|
46717
|
-
SubscriptionUpdateProduct$inboundSchema,
|
|
46718
46727
|
SubscriptionUpdateDiscount$inboundSchema,
|
|
46728
|
+
SubscriptionUpdateProduct$inboundSchema,
|
|
46719
46729
|
SubscriptionCancel$inboundSchema,
|
|
46720
46730
|
SubscriptionRevoke$inboundSchema
|
|
46721
46731
|
]);
|
|
46722
46732
|
SubscriptionUpdate$outboundSchema = unionType([
|
|
46723
|
-
SubscriptionUpdateProduct$outboundSchema,
|
|
46724
46733
|
SubscriptionUpdateDiscount$outboundSchema,
|
|
46734
|
+
SubscriptionUpdateProduct$outboundSchema,
|
|
46725
46735
|
SubscriptionCancel$outboundSchema,
|
|
46726
46736
|
SubscriptionRevoke$outboundSchema
|
|
46727
46737
|
]);
|
|
@@ -46880,7 +46890,7 @@ Update a subscription.
|
|
|
46880
46890
|
function createMCPServer(deps) {
|
|
46881
46891
|
const server = new McpServer({
|
|
46882
46892
|
name: "Polar",
|
|
46883
|
-
version: "0.
|
|
46893
|
+
version: "0.34.1"
|
|
46884
46894
|
});
|
|
46885
46895
|
const client = new PolarCore({
|
|
46886
46896
|
accessToken: deps.accessToken,
|
|
@@ -48167,7 +48177,7 @@ var routes = rn({
|
|
|
48167
48177
|
var app = Ve(routes, {
|
|
48168
48178
|
name: "mcp",
|
|
48169
48179
|
versionInfo: {
|
|
48170
|
-
currentVersion: "0.
|
|
48180
|
+
currentVersion: "0.34.1"
|
|
48171
48181
|
}
|
|
48172
48182
|
});
|
|
48173
48183
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -48175,5 +48185,5 @@ export {
|
|
|
48175
48185
|
app
|
|
48176
48186
|
};
|
|
48177
48187
|
|
|
48178
|
-
//# debugId=
|
|
48188
|
+
//# debugId=E2A42F9EBC4C356D64756E2164756E21
|
|
48179
48189
|
//# sourceMappingURL=mcp-server.js.map
|