@polar-sh/sdk 0.46.1 → 0.46.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/README.md +18 -23
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/customerordersubscription.d.ts +1 -1
- package/dist/commonjs/models/components/customerordersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerordersubscription.js +1 -1
- package/dist/commonjs/models/components/customerordersubscription.js.map +1 -1
- package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.d.ts +10 -0
- package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.js +4 -0
- package/dist/commonjs/models/components/customersessioncustomerexternalidcreate.js.map +1 -1
- package/dist/commonjs/models/components/customersessioncustomeridcreate.d.ts +10 -0
- package/dist/commonjs/models/components/customersessioncustomeridcreate.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersessioncustomeridcreate.js +4 -0
- package/dist/commonjs/models/components/customersessioncustomeridcreate.js.map +1 -1
- package/dist/commonjs/models/components/customerstatesubscription.d.ts +2 -2
- package/dist/commonjs/models/components/customerstatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customerstatesubscription.js +2 -2
- package/dist/commonjs/models/components/customerstatesubscription.js.map +1 -1
- package/dist/commonjs/models/components/customersubscription.d.ts +1 -1
- package/dist/commonjs/models/components/customersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/customersubscription.js +1 -1
- package/dist/commonjs/models/components/customersubscription.js.map +1 -1
- package/dist/commonjs/models/components/metricperiod.d.ts +45 -45
- package/dist/commonjs/models/components/metricperiod.d.ts.map +1 -1
- package/dist/commonjs/models/components/metricperiod.js +72 -72
- package/dist/commonjs/models/components/metricperiod.js.map +1 -1
- package/dist/commonjs/models/components/metrics.d.ts +9 -9
- package/dist/commonjs/models/components/metrics.d.ts.map +1 -1
- package/dist/commonjs/models/components/metrics.js +17 -17
- package/dist/commonjs/models/components/metrics.js.map +1 -1
- package/dist/commonjs/models/components/metricstotals.d.ts +45 -45
- package/dist/commonjs/models/components/metricstotals.d.ts.map +1 -1
- package/dist/commonjs/models/components/metricstotals.js +72 -72
- package/dist/commonjs/models/components/metricstotals.js.map +1 -1
- package/dist/commonjs/models/components/ordersubscription.d.ts +2 -2
- package/dist/commonjs/models/components/ordersubscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/ordersubscription.js +2 -2
- package/dist/commonjs/models/components/ordersubscription.js.map +1 -1
- package/dist/commonjs/models/components/subscription.d.ts +2 -2
- package/dist/commonjs/models/components/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/components/subscription.js +2 -2
- package/dist/commonjs/models/components/subscription.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +0 -3
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +0 -4
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/customerordersubscription.d.ts +1 -1
- package/dist/esm/models/components/customerordersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customerordersubscription.js +1 -1
- package/dist/esm/models/components/customerordersubscription.js.map +1 -1
- package/dist/esm/models/components/customersessioncustomerexternalidcreate.d.ts +10 -0
- package/dist/esm/models/components/customersessioncustomerexternalidcreate.d.ts.map +1 -1
- package/dist/esm/models/components/customersessioncustomerexternalidcreate.js +4 -0
- package/dist/esm/models/components/customersessioncustomerexternalidcreate.js.map +1 -1
- package/dist/esm/models/components/customersessioncustomeridcreate.d.ts +10 -0
- package/dist/esm/models/components/customersessioncustomeridcreate.d.ts.map +1 -1
- package/dist/esm/models/components/customersessioncustomeridcreate.js +4 -0
- package/dist/esm/models/components/customersessioncustomeridcreate.js.map +1 -1
- package/dist/esm/models/components/customerstatesubscription.d.ts +2 -2
- package/dist/esm/models/components/customerstatesubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customerstatesubscription.js +2 -2
- package/dist/esm/models/components/customerstatesubscription.js.map +1 -1
- package/dist/esm/models/components/customersubscription.d.ts +1 -1
- package/dist/esm/models/components/customersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/customersubscription.js +1 -1
- package/dist/esm/models/components/customersubscription.js.map +1 -1
- package/dist/esm/models/components/metricperiod.d.ts +45 -45
- package/dist/esm/models/components/metricperiod.d.ts.map +1 -1
- package/dist/esm/models/components/metricperiod.js +62 -62
- package/dist/esm/models/components/metricperiod.js.map +1 -1
- package/dist/esm/models/components/metrics.d.ts +9 -9
- package/dist/esm/models/components/metrics.d.ts.map +1 -1
- package/dist/esm/models/components/metrics.js +17 -17
- package/dist/esm/models/components/metrics.js.map +1 -1
- package/dist/esm/models/components/metricstotals.d.ts +45 -45
- package/dist/esm/models/components/metricstotals.d.ts.map +1 -1
- package/dist/esm/models/components/metricstotals.js +62 -62
- package/dist/esm/models/components/metricstotals.js.map +1 -1
- package/dist/esm/models/components/ordersubscription.d.ts +2 -2
- package/dist/esm/models/components/ordersubscription.d.ts.map +1 -1
- package/dist/esm/models/components/ordersubscription.js +2 -2
- package/dist/esm/models/components/ordersubscription.js.map +1 -1
- package/dist/esm/models/components/subscription.d.ts +2 -2
- package/dist/esm/models/components/subscription.d.ts.map +1 -1
- package/dist/esm/models/components/subscription.js +2 -2
- package/dist/esm/models/components/subscription.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +0 -3
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +0 -4
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/customerordersubscription.ts +4 -3
- package/src/models/components/customersessioncustomerexternalidcreate.ts +14 -0
- package/src/models/components/customersessioncustomeridcreate.ts +14 -0
- package/src/models/components/customerstatesubscription.ts +6 -7
- package/src/models/components/customersubscription.ts +4 -3
- package/src/models/components/metricperiod.ts +203 -203
- package/src/models/components/metrics.ts +28 -28
- package/src/models/components/metricstotals.ts +212 -212
- package/src/models/components/ordersubscription.ts +6 -7
- package/src/models/components/subscription.ts +6 -7
- package/src/sdk/sdk.ts +0 -6
- package/dist/commonjs/funcs/memberSessionsCreate.d.ts +0 -24
- package/dist/commonjs/funcs/memberSessionsCreate.d.ts.map +0 -1
- package/dist/commonjs/funcs/memberSessionsCreate.js +0 -125
- package/dist/commonjs/funcs/memberSessionsCreate.js.map +0 -1
- package/dist/commonjs/models/components/membersession.d.ts +0 -40
- package/dist/commonjs/models/components/membersession.d.ts.map +0 -1
- package/dist/commonjs/models/components/membersession.js +0 -73
- package/dist/commonjs/models/components/membersession.js.map +0 -1
- package/dist/commonjs/models/components/membersessioncreate.d.ts +0 -23
- package/dist/commonjs/models/components/membersessioncreate.d.ts.map +0 -1
- package/dist/commonjs/models/components/membersessioncreate.js +0 -56
- package/dist/commonjs/models/components/membersessioncreate.js.map +0 -1
- package/dist/commonjs/sdk/membersessions.d.ts +0 -18
- package/dist/commonjs/sdk/membersessions.d.ts.map +0 -1
- package/dist/commonjs/sdk/membersessions.js +0 -27
- package/dist/commonjs/sdk/membersessions.js.map +0 -1
- package/dist/esm/funcs/memberSessionsCreate.d.ts +0 -24
- package/dist/esm/funcs/memberSessionsCreate.d.ts.map +0 -1
- package/dist/esm/funcs/memberSessionsCreate.js +0 -89
- package/dist/esm/funcs/memberSessionsCreate.js.map +0 -1
- package/dist/esm/models/components/membersession.d.ts +0 -40
- package/dist/esm/models/components/membersession.d.ts.map +0 -1
- package/dist/esm/models/components/membersession.js +0 -36
- package/dist/esm/models/components/membersession.js.map +0 -1
- package/dist/esm/models/components/membersessioncreate.d.ts +0 -23
- package/dist/esm/models/components/membersessioncreate.d.ts.map +0 -1
- package/dist/esm/models/components/membersessioncreate.js +0 -19
- package/dist/esm/models/components/membersessioncreate.js.map +0 -1
- package/dist/esm/sdk/membersessions.d.ts +0 -18
- package/dist/esm/sdk/membersessions.d.ts.map +0 -1
- package/dist/esm/sdk/membersessions.js +0 -23
- package/dist/esm/sdk/membersessions.js.map +0 -1
- package/src/funcs/memberSessionsCreate.ts +0 -185
- package/src/models/components/membersession.ts +0 -92
- package/src/models/components/membersessioncreate.ts +0 -51
- package/src/sdk/membersessions.ts +0 -33
package/README.md
CHANGED
|
@@ -330,10 +330,6 @@ app.post("/webhook", express.raw({ type: "application/json" }), (req: Request, r
|
|
|
330
330
|
* [activate](docs/sdks/licensekeys/README.md#activate) - Activate License Key
|
|
331
331
|
* [deactivate](docs/sdks/licensekeys/README.md#deactivate) - Deactivate License Key
|
|
332
332
|
|
|
333
|
-
### [MemberSessions](docs/sdks/membersessions/README.md)
|
|
334
|
-
|
|
335
|
-
* [create](docs/sdks/membersessions/README.md#create) - Create Member Session
|
|
336
|
-
|
|
337
333
|
### [Members](docs/sdks/members/README.md)
|
|
338
334
|
|
|
339
335
|
* [listMembers](docs/sdks/members/README.md#listmembers) - List Members
|
|
@@ -562,7 +558,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
562
558
|
- [`licenseKeysValidate`](docs/sdks/licensekeys/README.md#validate) - Validate License Key
|
|
563
559
|
- [`membersCreateMember`](docs/sdks/members/README.md#createmember) - Create Member
|
|
564
560
|
- [`membersDeleteMember`](docs/sdks/members/README.md#deletemember) - Delete Member
|
|
565
|
-
- [`memberSessionsCreate`](docs/sdks/membersessions/README.md#create) - Create Member Session
|
|
566
561
|
- [`membersGetMember`](docs/sdks/members/README.md#getmember) - Get Member
|
|
567
562
|
- [`membersListMembers`](docs/sdks/members/README.md#listmembers) - List Members
|
|
568
563
|
- [`membersUpdateMember`](docs/sdks/members/README.md#updatemember) - Update Member
|
|
@@ -791,24 +786,24 @@ run();
|
|
|
791
786
|
|
|
792
787
|
|
|
793
788
|
**Inherit from [`PolarError`](./src/models/errors/polarerror.ts)**:
|
|
794
|
-
* [`ResourceNotFound`](./src/models/errors/resourcenotfound.ts): Status code `404`. Applicable to 82 of
|
|
795
|
-
* [`NotPermitted`](./src/models/errors/notpermitted.ts): Status code `403`. Applicable to 10 of
|
|
796
|
-
* [`Unauthorized`](./src/models/errors/unauthorized.ts): Not authorized to manage license key. Status code `401`. Applicable to 5 of
|
|
797
|
-
* [`AlreadyCanceledSubscription`](./src/models/errors/alreadycanceledsubscription.ts): Status code `403`. Applicable to 4 of
|
|
798
|
-
* [`AlreadyActiveSubscriptionError`](./src/models/errors/alreadyactivesubscriptionerror.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of
|
|
799
|
-
* [`NotOpenCheckout`](./src/models/errors/notopencheckout.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of
|
|
800
|
-
* [`PaymentNotReady`](./src/models/errors/paymentnotready.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of
|
|
801
|
-
* [`TrialAlreadyRedeemed`](./src/models/errors/trialalreadyredeemed.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of
|
|
802
|
-
* [`ExpiredCheckoutError`](./src/models/errors/expiredcheckouterror.ts): The checkout session is expired. Status code `410`. Applicable to 3 of
|
|
803
|
-
* [`SubscriptionLocked`](./src/models/errors/subscriptionlocked.ts): Subscription is pending an update. Status code `409`. Applicable to 2 of
|
|
804
|
-
* [`MissingInvoiceBillingDetails`](./src/models/errors/missinginvoicebillingdetails.ts): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of
|
|
805
|
-
* [`NotPaidOrder`](./src/models/errors/notpaidorder.ts): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of
|
|
806
|
-
* [`PaymentError`](./src/models/errors/paymenterror.ts): The payment failed. Status code `400`. Applicable to 1 of
|
|
807
|
-
* [`CustomerNotReady`](./src/models/errors/customernotready.ts): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of
|
|
808
|
-
* [`PaymentMethodInUseByActiveSubscription`](./src/models/errors/paymentmethodinusebyactivesubscription.ts): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of
|
|
809
|
-
* [`RefundedAlready`](./src/models/errors/refundedalready.ts): Order is already fully refunded. Status code `403`. Applicable to 1 of
|
|
810
|
-
* [`PaymentAlreadyInProgress`](./src/models/errors/paymentalreadyinprogress.ts): Payment already in progress. Status code `409`. Applicable to 1 of
|
|
811
|
-
* [`OrderNotEligibleForRetry`](./src/models/errors/ordernoteligibleforretry.ts): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of
|
|
789
|
+
* [`ResourceNotFound`](./src/models/errors/resourcenotfound.ts): Status code `404`. Applicable to 82 of 169 methods.*
|
|
790
|
+
* [`NotPermitted`](./src/models/errors/notpermitted.ts): Status code `403`. Applicable to 10 of 169 methods.*
|
|
791
|
+
* [`Unauthorized`](./src/models/errors/unauthorized.ts): Not authorized to manage license key. Status code `401`. Applicable to 5 of 169 methods.*
|
|
792
|
+
* [`AlreadyCanceledSubscription`](./src/models/errors/alreadycanceledsubscription.ts): Status code `403`. Applicable to 4 of 169 methods.*
|
|
793
|
+
* [`AlreadyActiveSubscriptionError`](./src/models/errors/alreadyactivesubscriptionerror.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 169 methods.*
|
|
794
|
+
* [`NotOpenCheckout`](./src/models/errors/notopencheckout.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 169 methods.*
|
|
795
|
+
* [`PaymentNotReady`](./src/models/errors/paymentnotready.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 169 methods.*
|
|
796
|
+
* [`TrialAlreadyRedeemed`](./src/models/errors/trialalreadyredeemed.ts): The checkout is expired, the customer already has an active subscription, or the organization is not ready to accept payments. Status code `403`. Applicable to 3 of 169 methods.*
|
|
797
|
+
* [`ExpiredCheckoutError`](./src/models/errors/expiredcheckouterror.ts): The checkout session is expired. Status code `410`. Applicable to 3 of 169 methods.*
|
|
798
|
+
* [`SubscriptionLocked`](./src/models/errors/subscriptionlocked.ts): Subscription is pending an update. Status code `409`. Applicable to 2 of 169 methods.*
|
|
799
|
+
* [`MissingInvoiceBillingDetails`](./src/models/errors/missinginvoicebillingdetails.ts): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 169 methods.*
|
|
800
|
+
* [`NotPaidOrder`](./src/models/errors/notpaidorder.ts): Order is not paid or is missing billing name or address. Status code `422`. Applicable to 2 of 169 methods.*
|
|
801
|
+
* [`PaymentError`](./src/models/errors/paymenterror.ts): The payment failed. Status code `400`. Applicable to 1 of 169 methods.*
|
|
802
|
+
* [`CustomerNotReady`](./src/models/errors/customernotready.ts): Customer is not ready to confirm a payment method. Status code `400`. Applicable to 1 of 169 methods.*
|
|
803
|
+
* [`PaymentMethodInUseByActiveSubscription`](./src/models/errors/paymentmethodinusebyactivesubscription.ts): Payment method is used by active subscription(s). Status code `400`. Applicable to 1 of 169 methods.*
|
|
804
|
+
* [`RefundedAlready`](./src/models/errors/refundedalready.ts): Order is already fully refunded. Status code `403`. Applicable to 1 of 169 methods.*
|
|
805
|
+
* [`PaymentAlreadyInProgress`](./src/models/errors/paymentalreadyinprogress.ts): Payment already in progress. Status code `409`. Applicable to 1 of 169 methods.*
|
|
806
|
+
* [`OrderNotEligibleForRetry`](./src/models/errors/ordernoteligibleforretry.ts): Order not eligible for retry or payment confirmation failed. Status code `422`. Applicable to 1 of 169 methods.*
|
|
812
807
|
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
813
808
|
|
|
814
809
|
</details>
|
|
@@ -42,8 +42,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
42
42
|
export declare const SDK_METADATA: {
|
|
43
43
|
readonly language: "typescript";
|
|
44
44
|
readonly openapiDocVersion: "0.1.0";
|
|
45
|
-
readonly sdkVersion: "0.46.
|
|
46
|
-
readonly genVersion: "2.
|
|
47
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.46.
|
|
45
|
+
readonly sdkVersion: "0.46.2";
|
|
46
|
+
readonly genVersion: "2.849.7";
|
|
47
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.46.2 2.849.7 0.1.0 @polar-sh/sdk";
|
|
48
48
|
};
|
|
49
49
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -34,8 +34,8 @@ function serverURLFromOptions(options) {
|
|
|
34
34
|
exports.SDK_METADATA = {
|
|
35
35
|
language: "typescript",
|
|
36
36
|
openapiDocVersion: "0.1.0",
|
|
37
|
-
sdkVersion: "0.46.
|
|
38
|
-
genVersion: "2.
|
|
39
|
-
userAgent: "speakeasy-sdk/typescript 0.46.
|
|
37
|
+
sdkVersion: "0.46.2",
|
|
38
|
+
genVersion: "2.849.7",
|
|
39
|
+
userAgent: "speakeasy-sdk/typescript 0.46.2 2.849.7 0.1.0 @polar-sh/sdk",
|
|
40
40
|
};
|
|
41
41
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerordersubscription.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customerordersubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAE3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,6BAA6B,EAE9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,6BAA6B,CAAC;IACjD;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;OAEG;IACH,kBAAkB,EAAE,IAAI,CAAC;IACzB;;OAEG;IACH,gBAAgB,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"customerordersubscription.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customerordersubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAE3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,6BAA6B,EAE9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,6BAA6B,CAAC;IACjD;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;OAEG;IACH,kBAAkB,EAAE,IAAI,CAAC;IACzB;;OAEG;IACH,gBAAgB,EAAE,IAAI,CAAC;IACvB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,QAAQ,EAAE,IAAI,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,iBAAiB,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB;;OAEG;IACH,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,0BAA0B,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAC9D,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,WAAW,CACjE,yBAAyB,EACzB,OAAO,CA4ER,CAAC;AAEF,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -55,7 +55,7 @@ exports.CustomerOrderSubscription$inboundSchema = z.pipe(z.object({
|
|
|
55
55
|
recurring_interval_count: z.int(),
|
|
56
56
|
status: subscriptionstatus_js_1.SubscriptionStatus$inboundSchema,
|
|
57
57
|
current_period_start: z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
58
|
-
current_period_end: z.
|
|
58
|
+
current_period_end: z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
59
59
|
trial_start: z.nullable(z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v)))),
|
|
60
60
|
trial_end: z.nullable(z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v)))),
|
|
61
61
|
cancel_at_period_end: z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerordersubscription.js","sourceRoot":"","sources":["../../../../src/models/components/customerordersubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"customerordersubscription.js","sourceRoot":"","sources":["../../../../src/models/components/customerordersubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyLH,8EAQC;AA/LD,+CAAiC;AACjC,2DAA0D;AAC1D,qDAAiD;AAGjD,mFAGyC;AACzC,yFAG4C;AAC5C,mEAGiC;AAsFjC,gBAAgB;AACH,QAAA,uCAAuC,GAGhD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,CAAC,CAAC,IAAI,CAChB,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAChC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAC9B;IACD,WAAW,EAAE,CAAC,CAAC,QAAQ,CACrB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI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AAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACtC,4BAA4B,EAAE,CAAC,CAAC,QAAQ,CACtC,wEAAwC,CACzC;IACD,6BAA6B,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACtD,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,YAAY;QAC3B,oBAAoB,EAAE,mBAAmB;QACzC,0BAA0B,EAAE,wBAAwB;QACpD,sBAAsB,EAAE,oBAAoB;QAC5C,oBAAoB,EAAE,kBAAkB;QACxC,aAAa,EAAE,YAAY;QAC3B,WAAW,EAAE,UAAU;QACvB,sBAAsB,EAAE,mBAAmB;QAC3C,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,WAAW;QACzB,SAAS,EAAE,QAAQ;QACnB,UAAU,EAAE,SAAS;QACrB,aAAa,EAAE,YAAY;QAC3B,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,YAAY;QAC3B,aAAa,EAAE,YAAY;QAC3B,8BAA8B,EAAE,4BAA4B;QAC5D,+BAA+B,EAAE,6BAA6B;KAC/D,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -3,6 +3,14 @@ import * as z from "zod/v4-mini";
|
|
|
3
3
|
* Schema for creating a customer session using an external customer ID.
|
|
4
4
|
*/
|
|
5
5
|
export type CustomerSessionCustomerExternalIDCreate = {
|
|
6
|
+
/**
|
|
7
|
+
* ID of the member to create a session for. When not provided and the organization has `member_model_enabled`, the owner member of the customer will be used for individual customers.
|
|
8
|
+
*/
|
|
9
|
+
memberId?: string | null | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* External ID of the member to create a session for. Alternative to `member_id`.
|
|
12
|
+
*/
|
|
13
|
+
externalMemberId?: string | null | undefined;
|
|
6
14
|
/**
|
|
7
15
|
* When set, a back button will be shown in the customer portal to return to this URL.
|
|
8
16
|
*/
|
|
@@ -14,6 +22,8 @@ export type CustomerSessionCustomerExternalIDCreate = {
|
|
|
14
22
|
};
|
|
15
23
|
/** @internal */
|
|
16
24
|
export type CustomerSessionCustomerExternalIDCreate$Outbound = {
|
|
25
|
+
member_id?: string | null | undefined;
|
|
26
|
+
external_member_id?: string | null | undefined;
|
|
17
27
|
return_url?: string | null | undefined;
|
|
18
28
|
external_customer_id: string;
|
|
19
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customersessioncustomerexternalidcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customersessioncustomerexternalidcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,gDAAgD,GAAG;IAC7D,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sDAAsD,EACjE,CAAC,CAAC,WAAW,CACX,gDAAgD,EAChD,uCAAuC,
|
|
1
|
+
{"version":3,"file":"customersessioncustomerexternalidcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customersessioncustomerexternalidcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG;IACpD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,gDAAgD,GAAG;IAC7D,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sDAAsD,EACjE,CAAC,CAAC,WAAW,CACX,gDAAgD,EAChD,uCAAuC,CAgBxC,CAAC;AAEJ,wBAAgB,6CAA6C,CAC3D,uCAAuC,EACrC,uCAAuC,GACxC,MAAM,CAMR"}
|
|
@@ -42,10 +42,14 @@ const z = __importStar(require("zod/v4-mini"));
|
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
43
|
/** @internal */
|
|
44
44
|
exports.CustomerSessionCustomerExternalIDCreate$outboundSchema = z.pipe(z.object({
|
|
45
|
+
memberId: z.optional(z.nullable(z.string())),
|
|
46
|
+
externalMemberId: z.optional(z.nullable(z.string())),
|
|
45
47
|
returnUrl: z.optional(z.nullable(z.string())),
|
|
46
48
|
externalCustomerId: z.string(),
|
|
47
49
|
}), z.transform((v) => {
|
|
48
50
|
return (0, primitives_js_1.remap)(v, {
|
|
51
|
+
memberId: "member_id",
|
|
52
|
+
externalMemberId: "external_member_id",
|
|
49
53
|
returnUrl: "return_url",
|
|
50
54
|
externalCustomerId: "external_customer_id",
|
|
51
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customersessioncustomerexternalidcreate.js","sourceRoot":"","sources":["../../../../src/models/components/customersessioncustomerexternalidcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"customersessioncustomerexternalidcreate.js","sourceRoot":"","sources":["../../../../src/models/components/customersessioncustomerexternalidcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyDH,sGASC;AAhED,+CAAiC;AACjC,2DAA0D;AAgC1D,gBAAgB;AACH,QAAA,sDAAsD,GAI7D,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5C,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACpD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC/B,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,gBAAgB,EAAE,oBAAoB;QACtC,SAAS,EAAE,YAAY;QACvB,kBAAkB,EAAE,sBAAsB;KAC3C,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEJ,SAAgB,6CAA6C,CAC3D,uCACyC;IAEzC,OAAO,IAAI,CAAC,SAAS,CACnB,8DAAsD,CAAC,KAAK,CAC1D,uCAAuC,CACxC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -3,6 +3,14 @@ import * as z from "zod/v4-mini";
|
|
|
3
3
|
* Schema for creating a customer session using a customer ID.
|
|
4
4
|
*/
|
|
5
5
|
export type CustomerSessionCustomerIDCreate = {
|
|
6
|
+
/**
|
|
7
|
+
* ID of the member to create a session for. When not provided and the organization has `member_model_enabled`, the owner member of the customer will be used for individual customers.
|
|
8
|
+
*/
|
|
9
|
+
memberId?: string | null | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* External ID of the member to create a session for. Alternative to `member_id`.
|
|
12
|
+
*/
|
|
13
|
+
externalMemberId?: string | null | undefined;
|
|
6
14
|
/**
|
|
7
15
|
* When set, a back button will be shown in the customer portal to return to this URL.
|
|
8
16
|
*/
|
|
@@ -14,6 +22,8 @@ export type CustomerSessionCustomerIDCreate = {
|
|
|
14
22
|
};
|
|
15
23
|
/** @internal */
|
|
16
24
|
export type CustomerSessionCustomerIDCreate$Outbound = {
|
|
25
|
+
member_id?: string | null | undefined;
|
|
26
|
+
external_member_id?: string | null | undefined;
|
|
17
27
|
return_url?: string | null | undefined;
|
|
18
28
|
customer_id: string;
|
|
19
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customersessioncustomeridcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customersessioncustomeridcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,WAAW,CACxE,wCAAwC,EACxC,+BAA+B,
|
|
1
|
+
{"version":3,"file":"customersessioncustomeridcreate.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customersessioncustomeridcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,WAAW,CACxE,wCAAwC,EACxC,+BAA+B,CAgBhC,CAAC;AAEF,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR"}
|
|
@@ -42,10 +42,14 @@ const z = __importStar(require("zod/v4-mini"));
|
|
|
42
42
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
43
|
/** @internal */
|
|
44
44
|
exports.CustomerSessionCustomerIDCreate$outboundSchema = z.pipe(z.object({
|
|
45
|
+
memberId: z.optional(z.nullable(z.string())),
|
|
46
|
+
externalMemberId: z.optional(z.nullable(z.string())),
|
|
45
47
|
returnUrl: z.optional(z.nullable(z.string())),
|
|
46
48
|
customerId: z.string(),
|
|
47
49
|
}), z.transform((v) => {
|
|
48
50
|
return (0, primitives_js_1.remap)(v, {
|
|
51
|
+
memberId: "member_id",
|
|
52
|
+
externalMemberId: "external_member_id",
|
|
49
53
|
returnUrl: "return_url",
|
|
50
54
|
customerId: "customer_id",
|
|
51
55
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customersessioncustomeridcreate.js","sourceRoot":"","sources":["../../../../src/models/components/customersessioncustomeridcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"customersessioncustomeridcreate.js","sourceRoot":"","sources":["../../../../src/models/components/customersessioncustomeridcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDH,sFAQC;AA9DD,+CAAiC;AACjC,2DAA0D;AAgC1D,gBAAgB;AACH,QAAA,8CAA8C,GAGvD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5C,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACpD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAC7C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,gBAAgB,EAAE,oBAAoB;QACtC,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,SAAgB,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,sDAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -53,7 +53,7 @@ export type CustomerStateSubscription = {
|
|
|
53
53
|
/**
|
|
54
54
|
* The end timestamp of the current billing period.
|
|
55
55
|
*/
|
|
56
|
-
currentPeriodEnd: Date
|
|
56
|
+
currentPeriodEnd: Date;
|
|
57
57
|
/**
|
|
58
58
|
* The start timestamp of the trial period, if any.
|
|
59
59
|
*/
|
|
@@ -121,7 +121,7 @@ export type CustomerStateSubscription$Outbound = {
|
|
|
121
121
|
currency: string;
|
|
122
122
|
recurring_interval: string;
|
|
123
123
|
current_period_start: string;
|
|
124
|
-
current_period_end: string
|
|
124
|
+
current_period_end: string;
|
|
125
125
|
trial_start: string | null;
|
|
126
126
|
trial_end: string | null;
|
|
127
127
|
cancel_at_period_end: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerstatesubscription.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customerstatesubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAIjC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,8BAA8B,EAE9B,uCAAuC,EAExC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAE5C,MAAM,MAAM,wCAAwC,GAChD,MAAM,GACN,MAAM,GACN,OAAO,GACP,IAAI,CAAC;AAET,eAAO,MAAM,MAAM;;;CAGT,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EACZ;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,IAAI,CAAA;KAAE,GACxD,SAAS,CAAC;IACd,QAAQ,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAA;KAAE,CAAC;IAC9C,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,6BAA6B,CAAC;IACjD;;OAEG;IACH,kBAAkB,EAAE,IAAI,CAAC;IACzB;;OAEG;IACH,gBAAgB,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"customerstatesubscription.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customerstatesubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAIjC,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,M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
97
97
|
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
98
98
|
current_period_start: z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
99
|
-
current_period_end: z.
|
|
99
|
+
current_period_end: z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
100
100
|
trial_start: z.nullable(z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v)))),
|
|
101
101
|
trial_end: z.nullable(z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v)))),
|
|
102
102
|
cancel_at_period_end: z.boolean(),
|
|
@@ -141,7 +141,7 @@ exports.CustomerStateSubscription$outboundSchema = z.pipe(z.object({
|
|
|
141
141
|
currency: z.string(),
|
|
142
142
|
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
143
143
|
currentPeriodStart: z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
144
|
-
currentPeriodEnd: z.
|
|
144
|
+
currentPeriodEnd: z.pipe(z.date(), z.transform(v => v.toISOString())),
|
|
145
145
|
trialStart: z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
146
146
|
trialEnd: z.nullable(z.pipe(z.date(), z.transform(v => v.toISOString()))),
|
|
147
147
|
cancelAtPeriodEnd: z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customerstatesubscription.js","sourceRoot":"","sources":["../../../../src/models/components/customerstatesubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoJH,wGASC;AACD,4GAcC;
|
|
1
|
+
{"version":3,"file":"customerstatesubscription.js","sourceRoot":"","sources":["../../../../src/models/components/customerstatesubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoJH,wGASC;AACD,4GAcC;AAgLD,0EAMC;AACD,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AAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;IACvE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,iFAA6C,CAAC;CAC/D,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IAChB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;QACzB,eAAe,EAAE,mBAAmB;QACpC,iBAAiB,EAAE,oBAAoB;QACvC,kBAAkB,EAAE,sBAAsB;QAC1C,gBAAgB,EAAE,oBAAoB;QACtC,UAAU,EAAE,aAAa;QACzB,QAAQ,EAAE,WAAW;QACrB,iBAAiB,EAAE,sBAAsB;QACzC,UAAU,EAAE,aAAa;QACzB,SAAS,EAAE,YAAY;QACvB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AACD,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customersubscription.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customersubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,0BAA0B,EAE3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,yBAAyB,EAE1B,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,2BAA2B,EAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,2BAA2B,EAE5B,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,YAAY,EAA8B,MAAM,mBAAmB,CAAC;AAC7E,OAAO,EACL,6BAA6B,EAE9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAEnB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,0BAA0B,GAClC,2BAA2B,GAC3B,YAAY,CAAC;AAEjB,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,6BAA6B,CAAC;IACjD;;OAEG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;OAEG;IACH,kBAAkB,EAAE,IAAI,CAAC;IACzB;;OAEG;IACH,gBAAgB,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"customersubscription.d.ts","sourceRoot":"","sources":["../../../../src/models/components/customersubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAA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MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,0BAA0B,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAC9D,2BAA2B,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3C,OAAO,EAAE,2BAA2B,CAAC;IACrC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,2BAA2B,GAAG,YAAY,CAAC,CAAC;IAC1D;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,WAAW,CAClE,0BAA0B,EAC1B,OAAO,CAIP,CAAC;AAEH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE;AAED,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,WAAW,CAC5D,oBAAoB,EACpB,OAAO,CAoFR,CAAC;AAEF,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -69,7 +69,7 @@ exports.CustomerSubscription$inboundSchema = z.pipe(z.object({
|
|
|
69
69
|
recurring_interval_count: z.int(),
|
|
70
70
|
status: subscriptionstatus_js_1.SubscriptionStatus$inboundSchema,
|
|
71
71
|
current_period_start: z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
72
|
-
current_period_end: z.
|
|
72
|
+
current_period_end: z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v))),
|
|
73
73
|
trial_start: z.nullable(z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v)))),
|
|
74
74
|
trial_end: z.nullable(z.pipe(z.iso.datetime({ offset: true }), z.transform(v => new Date(v)))),
|
|
75
75
|
cancel_at_period_end: z.boolean(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customersubscription.js","sourceRoot":"","sources":["../../../../src/models/components/customersubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4IH,gFAQC;
|
|
1
|
+
{"version":3,"file":"customersubscription.js","sourceRoot":"","sources":["../../../../src/models/components/customersubscription.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4IH,gFAQC;AA2FD,oEAQC;AArPD,+CAAiC;AACjC,2DAA0D;AAC1D,qDAAiD;AAEjD,6DAAuD;AAEvD,mFAGyC;AACzC,iFAGwC;AACxC,qFAG0C;AAC1C,qFAG0C;AAC1C,uDAA6E;AAC7E,yFAG4C;AAC5C,mEAGiC;AAmGjC,gBAAgB;AACH,QAAA,wCAAwC,GAGjD,IAAA,0BAAU,EAAC;IACb,0EAAyC;IACzC,4CAA0B;CAC3B,CAAC,CAAC;AAEH,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,kCAAkC,GAG3C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,CAAC,CAAC,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,EAAE,YAAY;QAC3B,YAAY,EAAE,WAAW;QACzB,aAAa,EAAE,YAAY;QAC3B,aAAa,EAAE,YAAY;QAC3B,8BAA8B,EAAE,4BAA4B;QAC5D,+BAA+B,EAAE,6BAA6B;KAC/D,CAAC,CAAC;AACL,CAAC,CAAC,CACH,CAAC;AAEF,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
export type ActiveSubscriptions = number | number;
|
|
5
|
+
export type CommittedSubscriptions = number | number;
|
|
6
|
+
export type MonthlyRecurringRevenue = number | number;
|
|
7
|
+
export type CommittedMonthlyRecurringRevenue = number | number;
|
|
8
|
+
export type AverageRevenuePerUser = number | number;
|
|
9
|
+
export type Checkouts = number | number;
|
|
10
|
+
export type SucceededCheckouts = number | number;
|
|
11
|
+
export type CheckoutsConversion = number | number;
|
|
12
|
+
export type ChurnedSubscriptions = number | number;
|
|
4
13
|
export type Orders = number | number;
|
|
5
14
|
export type Revenue = number | number;
|
|
6
15
|
export type NetRevenue = number | number;
|
|
@@ -10,7 +19,6 @@ export type Costs = number | number;
|
|
|
10
19
|
export type CumulativeCosts = number | number;
|
|
11
20
|
export type AverageOrderValue = number | number;
|
|
12
21
|
export type NetAverageOrderValue = number | number;
|
|
13
|
-
export type AverageRevenuePerUser = number | number;
|
|
14
22
|
export type CostPerUser = number | number;
|
|
15
23
|
export type ActiveUserByEvent = number | number;
|
|
16
24
|
export type OneTimeProducts = number | number;
|
|
@@ -22,13 +30,6 @@ export type NewSubscriptionsNetRevenue = number | number;
|
|
|
22
30
|
export type RenewedSubscriptions = number | number;
|
|
23
31
|
export type RenewedSubscriptionsRevenue = number | number;
|
|
24
32
|
export type RenewedSubscriptionsNetRevenue = number | number;
|
|
25
|
-
export type ActiveSubscriptions = number | number;
|
|
26
|
-
export type CommittedSubscriptions = number | number;
|
|
27
|
-
export type MonthlyRecurringRevenue = number | number;
|
|
28
|
-
export type CommittedMonthlyRecurringRevenue = number | number;
|
|
29
|
-
export type Checkouts = number | number;
|
|
30
|
-
export type SucceededCheckouts = number | number;
|
|
31
|
-
export type CheckoutsConversion = number | number;
|
|
32
33
|
export type CanceledSubscriptions = number | number;
|
|
33
34
|
export type CanceledSubscriptionsCustomerService = number | number;
|
|
34
35
|
export type CanceledSubscriptionsLowQuality = number | number;
|
|
@@ -38,7 +39,6 @@ export type CanceledSubscriptionsTooComplex = number | number;
|
|
|
38
39
|
export type CanceledSubscriptionsTooExpensive = number | number;
|
|
39
40
|
export type CanceledSubscriptionsUnused = number | number;
|
|
40
41
|
export type CanceledSubscriptionsOther = number | number;
|
|
41
|
-
export type ChurnedSubscriptions = number | number;
|
|
42
42
|
export type ChurnRate = number | number;
|
|
43
43
|
export type Ltv = number | number;
|
|
44
44
|
export type GrossMargin = number | number;
|
|
@@ -49,6 +49,15 @@ export type MetricPeriod = {
|
|
|
49
49
|
* Timestamp of this period data.
|
|
50
50
|
*/
|
|
51
51
|
timestamp: Date;
|
|
52
|
+
activeSubscriptions?: number | number | null | undefined;
|
|
53
|
+
committedSubscriptions?: number | number | null | undefined;
|
|
54
|
+
monthlyRecurringRevenue?: number | number | null | undefined;
|
|
55
|
+
committedMonthlyRecurringRevenue?: number | number | null | undefined;
|
|
56
|
+
averageRevenuePerUser?: number | number | null | undefined;
|
|
57
|
+
checkouts?: number | number | null | undefined;
|
|
58
|
+
succeededCheckouts?: number | number | null | undefined;
|
|
59
|
+
checkoutsConversion?: number | number | null | undefined;
|
|
60
|
+
churnedSubscriptions?: number | number | null | undefined;
|
|
52
61
|
orders?: number | number | null | undefined;
|
|
53
62
|
revenue?: number | number | null | undefined;
|
|
54
63
|
netRevenue?: number | number | null | undefined;
|
|
@@ -58,7 +67,6 @@ export type MetricPeriod = {
|
|
|
58
67
|
cumulativeCosts?: number | number | null | undefined;
|
|
59
68
|
averageOrderValue?: number | number | null | undefined;
|
|
60
69
|
netAverageOrderValue?: number | number | null | undefined;
|
|
61
|
-
averageRevenuePerUser?: number | number | null | undefined;
|
|
62
70
|
costPerUser?: number | number | null | undefined;
|
|
63
71
|
activeUserByEvent?: number | number | null | undefined;
|
|
64
72
|
oneTimeProducts?: number | number | null | undefined;
|
|
@@ -70,13 +78,6 @@ export type MetricPeriod = {
|
|
|
70
78
|
renewedSubscriptions?: number | number | null | undefined;
|
|
71
79
|
renewedSubscriptionsRevenue?: number | number | null | undefined;
|
|
72
80
|
renewedSubscriptionsNetRevenue?: number | number | null | undefined;
|
|
73
|
-
activeSubscriptions?: number | number | null | undefined;
|
|
74
|
-
committedSubscriptions?: number | number | null | undefined;
|
|
75
|
-
monthlyRecurringRevenue?: number | number | null | undefined;
|
|
76
|
-
committedMonthlyRecurringRevenue?: number | number | null | undefined;
|
|
77
|
-
checkouts?: number | number | null | undefined;
|
|
78
|
-
succeededCheckouts?: number | number | null | undefined;
|
|
79
|
-
checkoutsConversion?: number | number | null | undefined;
|
|
80
81
|
canceledSubscriptions?: number | number | null | undefined;
|
|
81
82
|
canceledSubscriptionsCustomerService?: number | number | null | undefined;
|
|
82
83
|
canceledSubscriptionsLowQuality?: number | number | null | undefined;
|
|
@@ -86,7 +87,6 @@ export type MetricPeriod = {
|
|
|
86
87
|
canceledSubscriptionsTooExpensive?: number | number | null | undefined;
|
|
87
88
|
canceledSubscriptionsUnused?: number | number | null | undefined;
|
|
88
89
|
canceledSubscriptionsOther?: number | number | null | undefined;
|
|
89
|
-
churnedSubscriptions?: number | number | null | undefined;
|
|
90
90
|
churnRate?: number | number | null | undefined;
|
|
91
91
|
ltv?: number | number | null | undefined;
|
|
92
92
|
grossMargin?: number | number | null | undefined;
|
|
@@ -94,6 +94,33 @@ export type MetricPeriod = {
|
|
|
94
94
|
cashflow?: number | number | null | undefined;
|
|
95
95
|
};
|
|
96
96
|
/** @internal */
|
|
97
|
+
export declare const ActiveSubscriptions$inboundSchema: z.ZodMiniType<ActiveSubscriptions, unknown>;
|
|
98
|
+
export declare function activeSubscriptionsFromJSON(jsonString: string): SafeParseResult<ActiveSubscriptions, SDKValidationError>;
|
|
99
|
+
/** @internal */
|
|
100
|
+
export declare const CommittedSubscriptions$inboundSchema: z.ZodMiniType<CommittedSubscriptions, unknown>;
|
|
101
|
+
export declare function committedSubscriptionsFromJSON(jsonString: string): SafeParseResult<CommittedSubscriptions, SDKValidationError>;
|
|
102
|
+
/** @internal */
|
|
103
|
+
export declare const MonthlyRecurringRevenue$inboundSchema: z.ZodMiniType<MonthlyRecurringRevenue, unknown>;
|
|
104
|
+
export declare function monthlyRecurringRevenueFromJSON(jsonString: string): SafeParseResult<MonthlyRecurringRevenue, SDKValidationError>;
|
|
105
|
+
/** @internal */
|
|
106
|
+
export declare const CommittedMonthlyRecurringRevenue$inboundSchema: z.ZodMiniType<CommittedMonthlyRecurringRevenue, unknown>;
|
|
107
|
+
export declare function committedMonthlyRecurringRevenueFromJSON(jsonString: string): SafeParseResult<CommittedMonthlyRecurringRevenue, SDKValidationError>;
|
|
108
|
+
/** @internal */
|
|
109
|
+
export declare const AverageRevenuePerUser$inboundSchema: z.ZodMiniType<AverageRevenuePerUser, unknown>;
|
|
110
|
+
export declare function averageRevenuePerUserFromJSON(jsonString: string): SafeParseResult<AverageRevenuePerUser, SDKValidationError>;
|
|
111
|
+
/** @internal */
|
|
112
|
+
export declare const Checkouts$inboundSchema: z.ZodMiniType<Checkouts, unknown>;
|
|
113
|
+
export declare function checkoutsFromJSON(jsonString: string): SafeParseResult<Checkouts, SDKValidationError>;
|
|
114
|
+
/** @internal */
|
|
115
|
+
export declare const SucceededCheckouts$inboundSchema: z.ZodMiniType<SucceededCheckouts, unknown>;
|
|
116
|
+
export declare function succeededCheckoutsFromJSON(jsonString: string): SafeParseResult<SucceededCheckouts, SDKValidationError>;
|
|
117
|
+
/** @internal */
|
|
118
|
+
export declare const CheckoutsConversion$inboundSchema: z.ZodMiniType<CheckoutsConversion, unknown>;
|
|
119
|
+
export declare function checkoutsConversionFromJSON(jsonString: string): SafeParseResult<CheckoutsConversion, SDKValidationError>;
|
|
120
|
+
/** @internal */
|
|
121
|
+
export declare const ChurnedSubscriptions$inboundSchema: z.ZodMiniType<ChurnedSubscriptions, unknown>;
|
|
122
|
+
export declare function churnedSubscriptionsFromJSON(jsonString: string): SafeParseResult<ChurnedSubscriptions, SDKValidationError>;
|
|
123
|
+
/** @internal */
|
|
97
124
|
export declare const Orders$inboundSchema: z.ZodMiniType<Orders, unknown>;
|
|
98
125
|
export declare function ordersFromJSON(jsonString: string): SafeParseResult<Orders, SDKValidationError>;
|
|
99
126
|
/** @internal */
|
|
@@ -121,9 +148,6 @@ export declare function averageOrderValueFromJSON(jsonString: string): SafeParse
|
|
|
121
148
|
export declare const NetAverageOrderValue$inboundSchema: z.ZodMiniType<NetAverageOrderValue, unknown>;
|
|
122
149
|
export declare function netAverageOrderValueFromJSON(jsonString: string): SafeParseResult<NetAverageOrderValue, SDKValidationError>;
|
|
123
150
|
/** @internal */
|
|
124
|
-
export declare const AverageRevenuePerUser$inboundSchema: z.ZodMiniType<AverageRevenuePerUser, unknown>;
|
|
125
|
-
export declare function averageRevenuePerUserFromJSON(jsonString: string): SafeParseResult<AverageRevenuePerUser, SDKValidationError>;
|
|
126
|
-
/** @internal */
|
|
127
151
|
export declare const CostPerUser$inboundSchema: z.ZodMiniType<CostPerUser, unknown>;
|
|
128
152
|
export declare function costPerUserFromJSON(jsonString: string): SafeParseResult<CostPerUser, SDKValidationError>;
|
|
129
153
|
/** @internal */
|
|
@@ -157,27 +181,6 @@ export declare function renewedSubscriptionsRevenueFromJSON(jsonString: string):
|
|
|
157
181
|
export declare const RenewedSubscriptionsNetRevenue$inboundSchema: z.ZodMiniType<RenewedSubscriptionsNetRevenue, unknown>;
|
|
158
182
|
export declare function renewedSubscriptionsNetRevenueFromJSON(jsonString: string): SafeParseResult<RenewedSubscriptionsNetRevenue, SDKValidationError>;
|
|
159
183
|
/** @internal */
|
|
160
|
-
export declare const ActiveSubscriptions$inboundSchema: z.ZodMiniType<ActiveSubscriptions, unknown>;
|
|
161
|
-
export declare function activeSubscriptionsFromJSON(jsonString: string): SafeParseResult<ActiveSubscriptions, SDKValidationError>;
|
|
162
|
-
/** @internal */
|
|
163
|
-
export declare const CommittedSubscriptions$inboundSchema: z.ZodMiniType<CommittedSubscriptions, unknown>;
|
|
164
|
-
export declare function committedSubscriptionsFromJSON(jsonString: string): SafeParseResult<CommittedSubscriptions, SDKValidationError>;
|
|
165
|
-
/** @internal */
|
|
166
|
-
export declare const MonthlyRecurringRevenue$inboundSchema: z.ZodMiniType<MonthlyRecurringRevenue, unknown>;
|
|
167
|
-
export declare function monthlyRecurringRevenueFromJSON(jsonString: string): SafeParseResult<MonthlyRecurringRevenue, SDKValidationError>;
|
|
168
|
-
/** @internal */
|
|
169
|
-
export declare const CommittedMonthlyRecurringRevenue$inboundSchema: z.ZodMiniType<CommittedMonthlyRecurringRevenue, unknown>;
|
|
170
|
-
export declare function committedMonthlyRecurringRevenueFromJSON(jsonString: string): SafeParseResult<CommittedMonthlyRecurringRevenue, SDKValidationError>;
|
|
171
|
-
/** @internal */
|
|
172
|
-
export declare const Checkouts$inboundSchema: z.ZodMiniType<Checkouts, unknown>;
|
|
173
|
-
export declare function checkoutsFromJSON(jsonString: string): SafeParseResult<Checkouts, SDKValidationError>;
|
|
174
|
-
/** @internal */
|
|
175
|
-
export declare const SucceededCheckouts$inboundSchema: z.ZodMiniType<SucceededCheckouts, unknown>;
|
|
176
|
-
export declare function succeededCheckoutsFromJSON(jsonString: string): SafeParseResult<SucceededCheckouts, SDKValidationError>;
|
|
177
|
-
/** @internal */
|
|
178
|
-
export declare const CheckoutsConversion$inboundSchema: z.ZodMiniType<CheckoutsConversion, unknown>;
|
|
179
|
-
export declare function checkoutsConversionFromJSON(jsonString: string): SafeParseResult<CheckoutsConversion, SDKValidationError>;
|
|
180
|
-
/** @internal */
|
|
181
184
|
export declare const CanceledSubscriptions$inboundSchema: z.ZodMiniType<CanceledSubscriptions, unknown>;
|
|
182
185
|
export declare function canceledSubscriptionsFromJSON(jsonString: string): SafeParseResult<CanceledSubscriptions, SDKValidationError>;
|
|
183
186
|
/** @internal */
|
|
@@ -205,9 +208,6 @@ export declare function canceledSubscriptionsUnusedFromJSON(jsonString: string):
|
|
|
205
208
|
export declare const CanceledSubscriptionsOther$inboundSchema: z.ZodMiniType<CanceledSubscriptionsOther, unknown>;
|
|
206
209
|
export declare function canceledSubscriptionsOtherFromJSON(jsonString: string): SafeParseResult<CanceledSubscriptionsOther, SDKValidationError>;
|
|
207
210
|
/** @internal */
|
|
208
|
-
export declare const ChurnedSubscriptions$inboundSchema: z.ZodMiniType<ChurnedSubscriptions, unknown>;
|
|
209
|
-
export declare function churnedSubscriptionsFromJSON(jsonString: string): SafeParseResult<ChurnedSubscriptions, SDKValidationError>;
|
|
210
|
-
/** @internal */
|
|
211
211
|
export declare const ChurnRate$inboundSchema: z.ZodMiniType<ChurnRate, unknown>;
|
|
212
212
|
export declare function churnRateFromJSON(jsonString: string): SafeParseResult<ChurnRate, SDKValidationError>;
|
|
213
213
|
/** @internal */
|