@paygentic/sdk 0.9.13 → 0.9.15
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 +13 -5
- package/dist/commonjs/funcs/costsGetCostReport.js +1 -0
- package/dist/commonjs/funcs/costsGetCostReport.js.map +1 -1
- package/dist/commonjs/funcs/profitabilityGetProfitability.js +2 -1
- package/dist/commonjs/funcs/profitabilityGetProfitability.js.map +1 -1
- package/dist/commonjs/funcs/revenueGet.js +1 -0
- package/dist/commonjs/funcs/revenueGet.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsEditSubscriptionIntervals.d.ts +19 -0
- package/dist/commonjs/funcs/subscriptionsEditSubscriptionIntervals.d.ts.map +1 -0
- package/dist/commonjs/funcs/subscriptionsEditSubscriptionIntervals.js +127 -0
- package/dist/commonjs/funcs/subscriptionsEditSubscriptionIntervals.js.map +1 -0
- package/dist/commonjs/funcs/subscriptionsGetSubscriptionIntervals.d.ts +19 -0
- package/dist/commonjs/funcs/subscriptionsGetSubscriptionIntervals.d.ts.map +1 -0
- package/dist/commonjs/funcs/subscriptionsGetSubscriptionIntervals.js +124 -0
- package/dist/commonjs/funcs/subscriptionsGetSubscriptionIntervals.js.map +1 -0
- package/dist/commonjs/funcs/subscriptionsListIntervalChanges.d.ts +19 -0
- package/dist/commonjs/funcs/subscriptionsListIntervalChanges.d.ts.map +1 -0
- package/dist/commonjs/funcs/subscriptionsListIntervalChanges.js +126 -0
- package/dist/commonjs/funcs/subscriptionsListIntervalChanges.js.map +1 -0
- package/dist/commonjs/funcs/subscriptionsListSubscriptionIntervalChanges.d.ts +19 -0
- package/dist/commonjs/funcs/subscriptionsListSubscriptionIntervalChanges.d.ts.map +1 -0
- package/dist/commonjs/funcs/subscriptionsListSubscriptionIntervalChanges.js +129 -0
- package/dist/commonjs/funcs/subscriptionsListSubscriptionIntervalChanges.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/changereason.d.ts +20 -0
- package/dist/commonjs/models/changereason.d.ts.map +1 -0
- package/dist/commonjs/models/changereason.js +54 -0
- package/dist/commonjs/models/changereason.js.map +1 -0
- package/dist/commonjs/models/costreportresponse.d.ts +8 -0
- package/dist/commonjs/models/costreportresponse.d.ts.map +1 -1
- package/dist/commonjs/models/costreportresponse.js +2 -0
- package/dist/commonjs/models/costreportresponse.js.map +1 -1
- package/dist/commonjs/models/editsubscriptionintervalsrequestunion.d.ts +142 -0
- package/dist/commonjs/models/editsubscriptionintervalsrequestunion.d.ts.map +1 -0
- package/dist/commonjs/models/editsubscriptionintervalsrequestunion.js +95 -0
- package/dist/commonjs/models/editsubscriptionintervalsrequestunion.js.map +1 -0
- package/dist/commonjs/models/editsubscriptionintervalsresponse.d.ts +41 -0
- package/dist/commonjs/models/editsubscriptionintervalsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/editsubscriptionintervalsresponse.js +65 -0
- package/dist/commonjs/models/editsubscriptionintervalsresponse.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +14 -1
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +14 -1
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/intervalchangemetadata.d.ts +13 -0
- package/dist/commonjs/models/intervalchangemetadata.d.ts.map +1 -0
- package/dist/commonjs/models/intervalchangemetadata.js +54 -0
- package/dist/commonjs/models/intervalchangemetadata.js.map +1 -0
- package/dist/commonjs/models/invoice.d.ts +4 -0
- package/dist/commonjs/models/invoice.d.ts.map +1 -1
- package/dist/commonjs/models/invoice.js +1 -0
- package/dist/commonjs/models/invoice.js.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.d.ts +24 -0
- package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.js +5 -0
- package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/editsubscriptionintervals.d.ts +18 -0
- package/dist/commonjs/models/operations/editsubscriptionintervals.d.ts.map +1 -0
- package/dist/commonjs/models/operations/editsubscriptionintervals.js +56 -0
- package/dist/commonjs/models/operations/editsubscriptionintervals.js.map +1 -0
- package/dist/commonjs/models/operations/getcostreport.d.ts +5 -0
- package/dist/commonjs/models/operations/getcostreport.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcostreport.js +1 -0
- package/dist/commonjs/models/operations/getcostreport.js.map +1 -1
- package/dist/commonjs/models/operations/getprofitability.d.ts +8 -18
- package/dist/commonjs/models/operations/getprofitability.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getprofitability.js +3 -12
- package/dist/commonjs/models/operations/getprofitability.js.map +1 -1
- package/dist/commonjs/models/operations/getrevenue.d.ts +18 -0
- package/dist/commonjs/models/operations/getrevenue.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getrevenue.js +12 -1
- package/dist/commonjs/models/operations/getrevenue.js.map +1 -1
- package/dist/commonjs/models/operations/getsubscriptionintervals.d.ts +15 -0
- package/dist/commonjs/models/operations/getsubscriptionintervals.d.ts.map +1 -0
- package/dist/commonjs/models/{profitabilitytrend.js → operations/getsubscriptionintervals.js} +7 -9
- package/dist/commonjs/models/operations/getsubscriptionintervals.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +4 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +4 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listintervalchanges.d.ts +36 -0
- package/dist/commonjs/models/operations/listintervalchanges.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listintervalchanges.js +54 -0
- package/dist/commonjs/models/operations/listintervalchanges.js.map +1 -0
- package/dist/commonjs/models/operations/listsubscriptionintervalchanges.d.ts +25 -0
- package/dist/commonjs/models/operations/listsubscriptionintervalchanges.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listsubscriptionintervalchanges.js +51 -0
- package/dist/commonjs/models/operations/listsubscriptionintervalchanges.js.map +1 -0
- package/dist/commonjs/models/operations/terminatesubscription.d.ts +6 -0
- package/dist/commonjs/models/operations/terminatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/terminatesubscription.js +2 -0
- package/dist/commonjs/models/operations/terminatesubscription.js.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.d.ts +6 -0
- package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.js +2 -0
- package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
- package/dist/commonjs/models/profitabilityrow.d.ts +0 -5
- package/dist/commonjs/models/profitabilityrow.d.ts.map +1 -1
- package/dist/commonjs/models/profitabilityrow.js +0 -2
- package/dist/commonjs/models/profitabilityrow.js.map +1 -1
- package/dist/commonjs/models/profitabilitysummaryresponse.d.ts +17 -1
- package/dist/commonjs/models/profitabilitysummaryresponse.d.ts.map +1 -1
- package/dist/commonjs/models/profitabilitysummaryresponse.js +4 -0
- package/dist/commonjs/models/profitabilitysummaryresponse.js.map +1 -1
- package/dist/commonjs/models/subscription.d.ts +25 -1
- package/dist/commonjs/models/subscription.d.ts.map +1 -1
- package/dist/commonjs/models/subscription.js +17 -1
- package/dist/commonjs/models/subscription.js.map +1 -1
- package/dist/commonjs/models/subscriptioninterval.d.ts +80 -0
- package/dist/commonjs/models/subscriptioninterval.d.ts.map +1 -0
- package/dist/commonjs/models/subscriptioninterval.js +86 -0
- package/dist/commonjs/models/subscriptioninterval.js.map +1 -0
- package/dist/commonjs/models/subscriptionintervaladdop.d.ts +85 -0
- package/dist/commonjs/models/subscriptionintervaladdop.d.ts.map +1 -0
- package/dist/commonjs/models/subscriptionintervaladdop.js +74 -0
- package/dist/commonjs/models/subscriptionintervaladdop.js.map +1 -0
- package/dist/commonjs/models/subscriptionintervalchange.d.ts +34 -0
- package/dist/commonjs/models/subscriptionintervalchange.d.ts.map +1 -0
- package/dist/commonjs/models/subscriptionintervalchange.js +60 -0
- package/dist/commonjs/models/subscriptionintervalchange.js.map +1 -0
- package/dist/commonjs/models/subscriptionintervalchangecopy.d.ts +54 -0
- package/dist/commonjs/models/subscriptionintervalchangecopy.d.ts.map +1 -0
- package/dist/commonjs/models/subscriptionintervalchangecopy.js +77 -0
- package/dist/commonjs/models/subscriptionintervalchangecopy.js.map +1 -0
- package/dist/commonjs/models/subscriptionintervalchangeentry.d.ts +22 -0
- package/dist/commonjs/models/subscriptionintervalchangeentry.d.ts.map +1 -0
- package/dist/commonjs/models/subscriptionintervalchangeentry.js +53 -0
- package/dist/commonjs/models/subscriptionintervalchangeentry.js.map +1 -0
- package/dist/commonjs/models/subscriptionintervalchangesresponse.d.ts +16 -0
- package/dist/commonjs/models/subscriptionintervalchangesresponse.d.ts.map +1 -0
- package/dist/commonjs/models/subscriptionintervalchangesresponse.js +53 -0
- package/dist/commonjs/models/subscriptionintervalchangesresponse.js.map +1 -0
- package/dist/commonjs/models/subscriptionintervaleditop.d.ts +102 -0
- package/dist/commonjs/models/subscriptionintervaleditop.d.ts.map +1 -0
- package/dist/commonjs/models/subscriptionintervaleditop.js +78 -0
- package/dist/commonjs/models/subscriptionintervaleditop.js.map +1 -0
- package/dist/commonjs/models/subscriptionintervalremoveop.d.ts +15 -0
- package/dist/commonjs/models/subscriptionintervalremoveop.d.ts.map +1 -0
- package/dist/commonjs/models/subscriptionintervalremoveop.js +49 -0
- package/dist/commonjs/models/subscriptionintervalremoveop.js.map +1 -0
- package/dist/commonjs/models/subscriptionintervalsresponse.d.ts +14 -0
- package/dist/commonjs/models/subscriptionintervalsresponse.d.ts.map +1 -0
- package/dist/commonjs/models/subscriptionintervalsresponse.js +51 -0
- package/dist/commonjs/models/subscriptionintervalsresponse.js.map +1 -0
- package/dist/commonjs/models/subscriptionversionpolicy.d.ts +18 -0
- package/dist/commonjs/models/subscriptionversionpolicy.d.ts.map +1 -0
- package/dist/commonjs/models/subscriptionversionpolicy.js +52 -0
- package/dist/commonjs/models/subscriptionversionpolicy.js.map +1 -0
- package/dist/commonjs/sdk/subscriptions.d.ts +28 -0
- package/dist/commonjs/sdk/subscriptions.d.ts.map +1 -1
- package/dist/commonjs/sdk/subscriptions.js +40 -0
- package/dist/commonjs/sdk/subscriptions.js.map +1 -1
- package/dist/esm/funcs/costsGetCostReport.js +1 -0
- package/dist/esm/funcs/costsGetCostReport.js.map +1 -1
- package/dist/esm/funcs/profitabilityGetProfitability.js +2 -1
- package/dist/esm/funcs/profitabilityGetProfitability.js.map +1 -1
- package/dist/esm/funcs/revenueGet.js +1 -0
- package/dist/esm/funcs/revenueGet.js.map +1 -1
- package/dist/esm/funcs/subscriptionsEditSubscriptionIntervals.d.ts +19 -0
- package/dist/esm/funcs/subscriptionsEditSubscriptionIntervals.d.ts.map +1 -0
- package/dist/esm/funcs/subscriptionsEditSubscriptionIntervals.js +91 -0
- package/dist/esm/funcs/subscriptionsEditSubscriptionIntervals.js.map +1 -0
- package/dist/esm/funcs/subscriptionsGetSubscriptionIntervals.d.ts +19 -0
- package/dist/esm/funcs/subscriptionsGetSubscriptionIntervals.d.ts.map +1 -0
- package/dist/esm/funcs/subscriptionsGetSubscriptionIntervals.js +88 -0
- package/dist/esm/funcs/subscriptionsGetSubscriptionIntervals.js.map +1 -0
- package/dist/esm/funcs/subscriptionsListIntervalChanges.d.ts +19 -0
- package/dist/esm/funcs/subscriptionsListIntervalChanges.d.ts.map +1 -0
- package/dist/esm/funcs/subscriptionsListIntervalChanges.js +90 -0
- package/dist/esm/funcs/subscriptionsListIntervalChanges.js.map +1 -0
- package/dist/esm/funcs/subscriptionsListSubscriptionIntervalChanges.d.ts +19 -0
- package/dist/esm/funcs/subscriptionsListSubscriptionIntervalChanges.d.ts.map +1 -0
- package/dist/esm/funcs/subscriptionsListSubscriptionIntervalChanges.js +93 -0
- package/dist/esm/funcs/subscriptionsListSubscriptionIntervalChanges.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/changereason.d.ts +20 -0
- package/dist/esm/models/changereason.d.ts.map +1 -0
- package/dist/esm/models/changereason.js +18 -0
- package/dist/esm/models/changereason.js.map +1 -0
- package/dist/esm/models/costreportresponse.d.ts +8 -0
- package/dist/esm/models/costreportresponse.d.ts.map +1 -1
- package/dist/esm/models/costreportresponse.js +2 -0
- package/dist/esm/models/costreportresponse.js.map +1 -1
- package/dist/esm/models/editsubscriptionintervalsrequestunion.d.ts +142 -0
- package/dist/esm/models/editsubscriptionintervalsrequestunion.d.ts.map +1 -0
- package/dist/esm/models/editsubscriptionintervalsrequestunion.js +55 -0
- package/dist/esm/models/editsubscriptionintervalsrequestunion.js.map +1 -0
- package/dist/esm/models/editsubscriptionintervalsresponse.d.ts +41 -0
- package/dist/esm/models/editsubscriptionintervalsresponse.d.ts.map +1 -0
- package/dist/esm/models/editsubscriptionintervalsresponse.js +27 -0
- package/dist/esm/models/editsubscriptionintervalsresponse.js.map +1 -0
- package/dist/esm/models/index.d.ts +14 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +14 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/intervalchangemetadata.d.ts +13 -0
- package/dist/esm/models/intervalchangemetadata.d.ts.map +1 -0
- package/dist/esm/models/intervalchangemetadata.js +16 -0
- package/dist/esm/models/intervalchangemetadata.js.map +1 -0
- package/dist/esm/models/invoice.d.ts +4 -0
- package/dist/esm/models/invoice.d.ts.map +1 -1
- package/dist/esm/models/invoice.js +1 -0
- package/dist/esm/models/invoice.js.map +1 -1
- package/dist/esm/models/operations/createsubscription.d.ts +24 -0
- package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/createsubscription.js +5 -0
- package/dist/esm/models/operations/createsubscription.js.map +1 -1
- package/dist/esm/models/operations/editsubscriptionintervals.d.ts +18 -0
- package/dist/esm/models/operations/editsubscriptionintervals.d.ts.map +1 -0
- package/dist/esm/models/operations/editsubscriptionintervals.js +19 -0
- package/dist/esm/models/operations/editsubscriptionintervals.js.map +1 -0
- package/dist/esm/models/operations/getcostreport.d.ts +5 -0
- package/dist/esm/models/operations/getcostreport.d.ts.map +1 -1
- package/dist/esm/models/operations/getcostreport.js +1 -0
- package/dist/esm/models/operations/getcostreport.js.map +1 -1
- package/dist/esm/models/operations/getprofitability.d.ts +8 -18
- package/dist/esm/models/operations/getprofitability.d.ts.map +1 -1
- package/dist/esm/models/operations/getprofitability.js +2 -11
- package/dist/esm/models/operations/getprofitability.js.map +1 -1
- package/dist/esm/models/operations/getrevenue.d.ts +18 -0
- package/dist/esm/models/operations/getrevenue.d.ts.map +1 -1
- package/dist/esm/models/operations/getrevenue.js +11 -0
- package/dist/esm/models/operations/getrevenue.js.map +1 -1
- package/dist/esm/models/operations/getsubscriptionintervals.d.ts +15 -0
- package/dist/esm/models/operations/getsubscriptionintervals.d.ts.map +1 -0
- package/dist/esm/models/operations/getsubscriptionintervals.js +12 -0
- package/dist/esm/models/operations/getsubscriptionintervals.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +4 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +4 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listintervalchanges.d.ts +36 -0
- package/dist/esm/models/operations/listintervalchanges.d.ts.map +1 -0
- package/dist/esm/models/operations/listintervalchanges.js +17 -0
- package/dist/esm/models/operations/listintervalchanges.js.map +1 -0
- package/dist/esm/models/operations/listsubscriptionintervalchanges.d.ts +25 -0
- package/dist/esm/models/operations/listsubscriptionintervalchanges.d.ts.map +1 -0
- package/dist/esm/models/operations/listsubscriptionintervalchanges.js +14 -0
- package/dist/esm/models/operations/listsubscriptionintervalchanges.js.map +1 -0
- package/dist/esm/models/operations/terminatesubscription.d.ts +6 -0
- package/dist/esm/models/operations/terminatesubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/terminatesubscription.js +2 -0
- package/dist/esm/models/operations/terminatesubscription.js.map +1 -1
- package/dist/esm/models/operations/updatesubscription.d.ts +6 -0
- package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/updatesubscription.js +2 -0
- package/dist/esm/models/operations/updatesubscription.js.map +1 -1
- package/dist/esm/models/profitabilityrow.d.ts +0 -5
- package/dist/esm/models/profitabilityrow.d.ts.map +1 -1
- package/dist/esm/models/profitabilityrow.js +0 -2
- package/dist/esm/models/profitabilityrow.js.map +1 -1
- package/dist/esm/models/profitabilitysummaryresponse.d.ts +17 -1
- package/dist/esm/models/profitabilitysummaryresponse.d.ts.map +1 -1
- package/dist/esm/models/profitabilitysummaryresponse.js +4 -0
- package/dist/esm/models/profitabilitysummaryresponse.js.map +1 -1
- package/dist/esm/models/subscription.d.ts +25 -1
- package/dist/esm/models/subscription.d.ts.map +1 -1
- package/dist/esm/models/subscription.js +16 -0
- package/dist/esm/models/subscription.js.map +1 -1
- package/dist/esm/models/subscriptioninterval.d.ts +80 -0
- package/dist/esm/models/subscriptioninterval.d.ts.map +1 -0
- package/dist/esm/models/subscriptioninterval.js +48 -0
- package/dist/esm/models/subscriptioninterval.js.map +1 -0
- package/dist/esm/models/subscriptionintervaladdop.d.ts +85 -0
- package/dist/esm/models/subscriptionintervaladdop.d.ts.map +1 -0
- package/dist/esm/models/subscriptionintervaladdop.js +36 -0
- package/dist/esm/models/subscriptionintervaladdop.js.map +1 -0
- package/dist/esm/models/subscriptionintervalchange.d.ts +34 -0
- package/dist/esm/models/subscriptionintervalchange.d.ts.map +1 -0
- package/dist/esm/models/subscriptionintervalchange.js +23 -0
- package/dist/esm/models/subscriptionintervalchange.js.map +1 -0
- package/dist/esm/models/subscriptionintervalchangecopy.d.ts +54 -0
- package/dist/esm/models/subscriptionintervalchangecopy.d.ts.map +1 -0
- package/dist/esm/models/subscriptionintervalchangecopy.js +39 -0
- package/dist/esm/models/subscriptionintervalchangecopy.js.map +1 -0
- package/dist/esm/models/subscriptionintervalchangeentry.d.ts +22 -0
- package/dist/esm/models/subscriptionintervalchangeentry.d.ts.map +1 -0
- package/dist/esm/models/subscriptionintervalchangeentry.js +16 -0
- package/dist/esm/models/subscriptionintervalchangeentry.js.map +1 -0
- package/dist/esm/models/subscriptionintervalchangesresponse.d.ts +16 -0
- package/dist/esm/models/subscriptionintervalchangesresponse.d.ts.map +1 -0
- package/dist/esm/models/subscriptionintervalchangesresponse.js +16 -0
- package/dist/esm/models/subscriptionintervalchangesresponse.js.map +1 -0
- package/dist/esm/models/subscriptionintervaleditop.d.ts +102 -0
- package/dist/esm/models/subscriptionintervaleditop.d.ts.map +1 -0
- package/dist/esm/models/subscriptionintervaleditop.js +40 -0
- package/dist/esm/models/subscriptionintervaleditop.js.map +1 -0
- package/dist/esm/models/subscriptionintervalremoveop.d.ts +15 -0
- package/dist/esm/models/subscriptionintervalremoveop.d.ts.map +1 -0
- package/dist/esm/models/subscriptionintervalremoveop.js +12 -0
- package/dist/esm/models/subscriptionintervalremoveop.js.map +1 -0
- package/dist/esm/models/subscriptionintervalsresponse.d.ts +14 -0
- package/dist/esm/models/subscriptionintervalsresponse.d.ts.map +1 -0
- package/dist/esm/models/subscriptionintervalsresponse.js +14 -0
- package/dist/esm/models/subscriptionintervalsresponse.js.map +1 -0
- package/dist/esm/models/subscriptionversionpolicy.d.ts +18 -0
- package/dist/esm/models/subscriptionversionpolicy.d.ts.map +1 -0
- package/dist/esm/models/subscriptionversionpolicy.js +16 -0
- package/dist/esm/models/subscriptionversionpolicy.js.map +1 -0
- package/dist/esm/sdk/subscriptions.d.ts +28 -0
- package/dist/esm/sdk/subscriptions.d.ts.map +1 -1
- package/dist/esm/sdk/subscriptions.js +40 -0
- package/dist/esm/sdk/subscriptions.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/costsGetCostReport.ts +1 -0
- package/src/funcs/profitabilityGetProfitability.ts +2 -1
- package/src/funcs/revenueGet.ts +1 -0
- package/src/funcs/subscriptionsEditSubscriptionIntervals.ts +184 -0
- package/src/funcs/subscriptionsGetSubscriptionIntervals.ts +177 -0
- package/src/funcs/subscriptionsListIntervalChanges.ts +186 -0
- package/src/funcs/subscriptionsListSubscriptionIntervalChanges.ts +185 -0
- package/src/lib/config.ts +2 -2
- package/src/models/changereason.ts +34 -0
- package/src/models/costreportresponse.ts +10 -0
- package/src/models/editsubscriptionintervalsrequestunion.ts +244 -0
- package/src/models/editsubscriptionintervalsresponse.ts +96 -0
- package/src/models/index.ts +14 -1
- package/src/models/intervalchangemetadata.ts +43 -0
- package/src/models/invoice.ts +7 -0
- package/src/models/operations/createsubscription.ts +27 -0
- package/src/models/operations/editsubscriptionintervals.ts +48 -0
- package/src/models/operations/getcostreport.ts +6 -0
- package/src/models/operations/getprofitability.ts +10 -25
- package/src/models/operations/getrevenue.ts +22 -0
- package/src/models/operations/getsubscriptionintervals.ts +36 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/listintervalchanges.ts +59 -0
- package/src/models/operations/listsubscriptionintervalchanges.ts +49 -0
- package/src/models/operations/terminatesubscription.ts +7 -0
- package/src/models/operations/updatesubscription.ts +7 -0
- package/src/models/profitabilityrow.ts +0 -9
- package/src/models/profitabilitysummaryresponse.ts +21 -1
- package/src/models/subscription.ts +38 -1
- package/src/models/subscriptioninterval.ts +152 -0
- package/src/models/subscriptionintervaladdop.ts +148 -0
- package/src/models/subscriptionintervalchange.ts +66 -0
- package/src/models/subscriptionintervalchangecopy.ts +130 -0
- package/src/models/subscriptionintervalchangeentry.ts +48 -0
- package/src/models/subscriptionintervalchangesresponse.ts +45 -0
- package/src/models/subscriptionintervaleditop.ts +166 -0
- package/src/models/subscriptionintervalremoveop.ts +36 -0
- package/src/models/subscriptionintervalsresponse.ts +38 -0
- package/src/models/subscriptionversionpolicy.ts +29 -0
- package/src/sdk/subscriptions.ts +72 -0
- package/dist/commonjs/models/profitabilitytrend.d.ts +0 -17
- package/dist/commonjs/models/profitabilitytrend.d.ts.map +0 -1
- package/dist/commonjs/models/profitabilitytrend.js.map +0 -1
- package/dist/esm/models/profitabilitytrend.d.ts +0 -17
- package/dist/esm/models/profitabilitytrend.d.ts.map +0 -1
- package/dist/esm/models/profitabilitytrend.js +0 -14
- package/dist/esm/models/profitabilitytrend.js.map +0 -1
- package/src/models/profitabilitytrend.ts +0 -39
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { PaygenticCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { PaygenticError } from "../models/errors/paygenticerror.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as models from "../models/index.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List Merchant Interval Changes
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Lists the interval changes of all your subscriptions, oldest first. `from` is included and `to` is excluded.
|
|
34
|
+
*/
|
|
35
|
+
export function subscriptionsListIntervalChanges(
|
|
36
|
+
client: PaygenticCore,
|
|
37
|
+
request?: operations.ListIntervalChangesRequest | undefined,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
models.SubscriptionIntervalChangesResponse,
|
|
42
|
+
| errors.BadRequest
|
|
43
|
+
| errors.ErrorT
|
|
44
|
+
| PaygenticError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError
|
|
52
|
+
>
|
|
53
|
+
> {
|
|
54
|
+
return new APIPromise($do(
|
|
55
|
+
client,
|
|
56
|
+
request,
|
|
57
|
+
options,
|
|
58
|
+
));
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
async function $do(
|
|
62
|
+
client: PaygenticCore,
|
|
63
|
+
request?: operations.ListIntervalChangesRequest | undefined,
|
|
64
|
+
options?: RequestOptions,
|
|
65
|
+
): Promise<
|
|
66
|
+
[
|
|
67
|
+
Result<
|
|
68
|
+
models.SubscriptionIntervalChangesResponse,
|
|
69
|
+
| errors.BadRequest
|
|
70
|
+
| errors.ErrorT
|
|
71
|
+
| PaygenticError
|
|
72
|
+
| ResponseValidationError
|
|
73
|
+
| ConnectionError
|
|
74
|
+
| RequestAbortedError
|
|
75
|
+
| RequestTimeoutError
|
|
76
|
+
| InvalidRequestError
|
|
77
|
+
| UnexpectedClientError
|
|
78
|
+
| SDKValidationError
|
|
79
|
+
>,
|
|
80
|
+
APICall,
|
|
81
|
+
]
|
|
82
|
+
> {
|
|
83
|
+
const parsed = safeParse(
|
|
84
|
+
request,
|
|
85
|
+
(value) =>
|
|
86
|
+
operations.ListIntervalChangesRequest$outboundSchema.optional().parse(
|
|
87
|
+
value,
|
|
88
|
+
),
|
|
89
|
+
"Input validation failed",
|
|
90
|
+
);
|
|
91
|
+
if (!parsed.ok) {
|
|
92
|
+
return [parsed, { status: "invalid" }];
|
|
93
|
+
}
|
|
94
|
+
const payload = parsed.value;
|
|
95
|
+
const body = null;
|
|
96
|
+
|
|
97
|
+
const path = pathToFunc("/v0/intervalChanges")();
|
|
98
|
+
|
|
99
|
+
const query = encodeFormQuery({
|
|
100
|
+
"changeReason": payload?.changeReason,
|
|
101
|
+
"from": payload?.from,
|
|
102
|
+
"limit": payload?.limit,
|
|
103
|
+
"offset": payload?.offset,
|
|
104
|
+
"to": payload?.to,
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
const headers = new Headers(compactMap({
|
|
108
|
+
Accept: "application/json",
|
|
109
|
+
}));
|
|
110
|
+
|
|
111
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
112
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
113
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
114
|
+
|
|
115
|
+
const context = {
|
|
116
|
+
options: client._options,
|
|
117
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
118
|
+
operationID: "listIntervalChanges",
|
|
119
|
+
oAuth2Scopes: null,
|
|
120
|
+
|
|
121
|
+
resolvedSecurity: requestSecurity,
|
|
122
|
+
|
|
123
|
+
securitySource: client._options.bearerAuth,
|
|
124
|
+
retryConfig: options?.retries
|
|
125
|
+
|| client._options.retryConfig
|
|
126
|
+
|| { strategy: "none" },
|
|
127
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
const requestRes = client._createRequest(context, {
|
|
131
|
+
security: requestSecurity,
|
|
132
|
+
method: "GET",
|
|
133
|
+
baseURL: options?.serverURL,
|
|
134
|
+
path: path,
|
|
135
|
+
headers: headers,
|
|
136
|
+
query: query,
|
|
137
|
+
body: body,
|
|
138
|
+
userAgent: client._options.userAgent,
|
|
139
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
140
|
+
}, options);
|
|
141
|
+
if (!requestRes.ok) {
|
|
142
|
+
return [requestRes, { status: "invalid" }];
|
|
143
|
+
}
|
|
144
|
+
const req = requestRes.value;
|
|
145
|
+
|
|
146
|
+
const doResult = await client._do(req, {
|
|
147
|
+
context,
|
|
148
|
+
errorCodes: ["400", "401", "403", "4XX", "500", "5XX"],
|
|
149
|
+
retryConfig: context.retryConfig,
|
|
150
|
+
retryCodes: context.retryCodes,
|
|
151
|
+
});
|
|
152
|
+
if (!doResult.ok) {
|
|
153
|
+
return [doResult, { status: "request-error", request: req }];
|
|
154
|
+
}
|
|
155
|
+
const response = doResult.value;
|
|
156
|
+
|
|
157
|
+
const responseFields = {
|
|
158
|
+
HttpMeta: { Response: response, Request: req },
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
const [result] = await M.match<
|
|
162
|
+
models.SubscriptionIntervalChangesResponse,
|
|
163
|
+
| errors.BadRequest
|
|
164
|
+
| errors.ErrorT
|
|
165
|
+
| PaygenticError
|
|
166
|
+
| ResponseValidationError
|
|
167
|
+
| ConnectionError
|
|
168
|
+
| RequestAbortedError
|
|
169
|
+
| RequestTimeoutError
|
|
170
|
+
| InvalidRequestError
|
|
171
|
+
| UnexpectedClientError
|
|
172
|
+
| SDKValidationError
|
|
173
|
+
>(
|
|
174
|
+
M.json(200, models.SubscriptionIntervalChangesResponse$inboundSchema),
|
|
175
|
+
M.jsonErr(400, errors.BadRequest$inboundSchema),
|
|
176
|
+
M.jsonErr([401, 403], errors.ErrorT$inboundSchema),
|
|
177
|
+
M.jsonErr(500, errors.ErrorT$inboundSchema),
|
|
178
|
+
M.fail("4XX"),
|
|
179
|
+
M.fail("5XX"),
|
|
180
|
+
)(response, req, { extraFields: responseFields });
|
|
181
|
+
if (!result.ok) {
|
|
182
|
+
return [result, { status: "complete", request: req, response }];
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return [result, { status: "complete", request: req, response }];
|
|
186
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { PaygenticCore } from "../core.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { PaygenticError } from "../models/errors/paygenticerror.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as models from "../models/index.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* List Interval Changes
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Lists the subscription's interval changes, oldest first. Each shows why it was made and each interval before and after.
|
|
34
|
+
*/
|
|
35
|
+
export function subscriptionsListSubscriptionIntervalChanges(
|
|
36
|
+
client: PaygenticCore,
|
|
37
|
+
request: operations.ListSubscriptionIntervalChangesRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
models.SubscriptionIntervalChangesResponse,
|
|
42
|
+
| errors.ErrorT
|
|
43
|
+
| PaygenticError
|
|
44
|
+
| ResponseValidationError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| InvalidRequestError
|
|
49
|
+
| UnexpectedClientError
|
|
50
|
+
| SDKValidationError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: PaygenticCore,
|
|
62
|
+
request: operations.ListSubscriptionIntervalChangesRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
models.SubscriptionIntervalChangesResponse,
|
|
68
|
+
| errors.ErrorT
|
|
69
|
+
| PaygenticError
|
|
70
|
+
| ResponseValidationError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| InvalidRequestError
|
|
75
|
+
| UnexpectedClientError
|
|
76
|
+
| SDKValidationError
|
|
77
|
+
>,
|
|
78
|
+
APICall,
|
|
79
|
+
]
|
|
80
|
+
> {
|
|
81
|
+
const parsed = safeParse(
|
|
82
|
+
request,
|
|
83
|
+
(value) =>
|
|
84
|
+
operations.ListSubscriptionIntervalChangesRequest$outboundSchema.parse(
|
|
85
|
+
value,
|
|
86
|
+
),
|
|
87
|
+
"Input validation failed",
|
|
88
|
+
);
|
|
89
|
+
if (!parsed.ok) {
|
|
90
|
+
return [parsed, { status: "invalid" }];
|
|
91
|
+
}
|
|
92
|
+
const payload = parsed.value;
|
|
93
|
+
const body = null;
|
|
94
|
+
|
|
95
|
+
const pathParams = {
|
|
96
|
+
id: encodeSimple("id", payload.id, {
|
|
97
|
+
explode: false,
|
|
98
|
+
charEncoding: "percent",
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
101
|
+
const path = pathToFunc("/v0/subscriptions/{id}/intervalChanges")(pathParams);
|
|
102
|
+
|
|
103
|
+
const query = encodeFormQuery({
|
|
104
|
+
"limit": payload.limit,
|
|
105
|
+
"offset": payload.offset,
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
const headers = new Headers(compactMap({
|
|
109
|
+
Accept: "application/json",
|
|
110
|
+
}));
|
|
111
|
+
|
|
112
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
113
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
114
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
115
|
+
|
|
116
|
+
const context = {
|
|
117
|
+
options: client._options,
|
|
118
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
119
|
+
operationID: "listSubscriptionIntervalChanges",
|
|
120
|
+
oAuth2Scopes: null,
|
|
121
|
+
|
|
122
|
+
resolvedSecurity: requestSecurity,
|
|
123
|
+
|
|
124
|
+
securitySource: client._options.bearerAuth,
|
|
125
|
+
retryConfig: options?.retries
|
|
126
|
+
|| client._options.retryConfig
|
|
127
|
+
|| { strategy: "none" },
|
|
128
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
const requestRes = client._createRequest(context, {
|
|
132
|
+
security: requestSecurity,
|
|
133
|
+
method: "GET",
|
|
134
|
+
baseURL: options?.serverURL,
|
|
135
|
+
path: path,
|
|
136
|
+
headers: headers,
|
|
137
|
+
query: query,
|
|
138
|
+
body: body,
|
|
139
|
+
userAgent: client._options.userAgent,
|
|
140
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
141
|
+
}, options);
|
|
142
|
+
if (!requestRes.ok) {
|
|
143
|
+
return [requestRes, { status: "invalid" }];
|
|
144
|
+
}
|
|
145
|
+
const req = requestRes.value;
|
|
146
|
+
|
|
147
|
+
const doResult = await client._do(req, {
|
|
148
|
+
context,
|
|
149
|
+
errorCodes: ["401", "403", "404", "4XX", "500", "5XX"],
|
|
150
|
+
retryConfig: context.retryConfig,
|
|
151
|
+
retryCodes: context.retryCodes,
|
|
152
|
+
});
|
|
153
|
+
if (!doResult.ok) {
|
|
154
|
+
return [doResult, { status: "request-error", request: req }];
|
|
155
|
+
}
|
|
156
|
+
const response = doResult.value;
|
|
157
|
+
|
|
158
|
+
const responseFields = {
|
|
159
|
+
HttpMeta: { Response: response, Request: req },
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
const [result] = await M.match<
|
|
163
|
+
models.SubscriptionIntervalChangesResponse,
|
|
164
|
+
| errors.ErrorT
|
|
165
|
+
| PaygenticError
|
|
166
|
+
| ResponseValidationError
|
|
167
|
+
| ConnectionError
|
|
168
|
+
| RequestAbortedError
|
|
169
|
+
| RequestTimeoutError
|
|
170
|
+
| InvalidRequestError
|
|
171
|
+
| UnexpectedClientError
|
|
172
|
+
| SDKValidationError
|
|
173
|
+
>(
|
|
174
|
+
M.json(200, models.SubscriptionIntervalChangesResponse$inboundSchema),
|
|
175
|
+
M.jsonErr([401, 403, 404], errors.ErrorT$inboundSchema),
|
|
176
|
+
M.jsonErr(500, errors.ErrorT$inboundSchema),
|
|
177
|
+
M.fail("4XX"),
|
|
178
|
+
M.fail("5XX"),
|
|
179
|
+
)(response, req, { extraFields: responseFields });
|
|
180
|
+
if (!result.ok) {
|
|
181
|
+
return [result, { status: "complete", request: req, response }];
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
return [result, { status: "complete", request: req, response }];
|
|
185
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "0.1.0",
|
|
68
|
-
sdkVersion: "0.9.
|
|
68
|
+
sdkVersion: "0.9.15",
|
|
69
69
|
genVersion: "2.879.13",
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.9.
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.9.15 2.879.13 0.1.0 @paygentic/sdk",
|
|
71
71
|
} as const;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import * as openEnums from "../types/enums.js";
|
|
7
|
+
import { OpenEnum } from "../types/enums.js";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Why a change was made. `correction` fixes data to match what was agreed; `migration` moves a contract from another system; `commercial` is a real change to the deal. Defaults to `unspecified`.
|
|
11
|
+
*/
|
|
12
|
+
export const ChangeReason = {
|
|
13
|
+
Commercial: "commercial",
|
|
14
|
+
Correction: "correction",
|
|
15
|
+
Migration: "migration",
|
|
16
|
+
Unspecified: "unspecified",
|
|
17
|
+
} as const;
|
|
18
|
+
/**
|
|
19
|
+
* Why a change was made. `correction` fixes data to match what was agreed; `migration` moves a contract from another system; `commercial` is a real change to the deal. Defaults to `unspecified`.
|
|
20
|
+
*/
|
|
21
|
+
export type ChangeReason = OpenEnum<typeof ChangeReason>;
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const ChangeReason$inboundSchema: z.ZodType<
|
|
25
|
+
ChangeReason,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
unknown
|
|
28
|
+
> = openEnums.inboundSchema(ChangeReason);
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const ChangeReason$outboundSchema: z.ZodType<
|
|
31
|
+
string,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
ChangeReason
|
|
34
|
+
> = openEnums.outboundSchema(ChangeReason);
|
|
@@ -84,6 +84,14 @@ export type CostReportResponse = {
|
|
|
84
84
|
*/
|
|
85
85
|
warnings?: Array<string> | undefined;
|
|
86
86
|
pagination: Pagination;
|
|
87
|
+
/**
|
|
88
|
+
* Every group the report found, empty groups included, before top-N folding into 'Other' and before pagination.
|
|
89
|
+
*/
|
|
90
|
+
groupCount?: number | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Groups with neither cost nor usage in the period, counted over the whole report and reported whether or not `excludeEmpty` is set. Null when a cost read failed (see `warnings`): a group empty in the costs that loaded may have usage in the one that failed, so none is counted and `excludeEmpty` leaves nobody out.
|
|
93
|
+
*/
|
|
94
|
+
emptyGroupCount?: number | null | undefined;
|
|
87
95
|
/**
|
|
88
96
|
* Where the caller's cost data actually lies in time. Present only when the selected range returned no cost. An object carries the bounds of the real cost events; null means the caller has no cost event at any time; an absent field means the extent was not resolved, because the result was not empty, because the lookup failed, or because the metering service does not serve the bounds method. An absent field must never be read as an absence.
|
|
89
97
|
*/
|
|
@@ -170,6 +178,8 @@ export const CostReportResponse$inboundSchema: z.ZodType<
|
|
|
170
178
|
availableDimensions: z.array(z.string()),
|
|
171
179
|
warnings: z.array(z.string()).optional(),
|
|
172
180
|
pagination: z.lazy(() => Pagination$inboundSchema),
|
|
181
|
+
groupCount: z.number().int().optional(),
|
|
182
|
+
emptyGroupCount: z.nullable(z.number().int()).optional(),
|
|
173
183
|
costRange: z.nullable(z.lazy(() => CostReportResponseCostRange$inboundSchema))
|
|
174
184
|
.optional(),
|
|
175
185
|
});
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ChangeReason, ChangeReason$outboundSchema } from "./changereason.js";
|
|
7
|
+
import {
|
|
8
|
+
IntervalChangeMetadata,
|
|
9
|
+
IntervalChangeMetadata$Outbound,
|
|
10
|
+
IntervalChangeMetadata$outboundSchema,
|
|
11
|
+
} from "./intervalchangemetadata.js";
|
|
12
|
+
import {
|
|
13
|
+
SubscriptionIntervalAddOp,
|
|
14
|
+
SubscriptionIntervalAddOp$Outbound,
|
|
15
|
+
SubscriptionIntervalAddOp$outboundSchema,
|
|
16
|
+
} from "./subscriptionintervaladdop.js";
|
|
17
|
+
import {
|
|
18
|
+
SubscriptionIntervalEditOp,
|
|
19
|
+
SubscriptionIntervalEditOp$Outbound,
|
|
20
|
+
SubscriptionIntervalEditOp$outboundSchema,
|
|
21
|
+
} from "./subscriptionintervaleditop.js";
|
|
22
|
+
import {
|
|
23
|
+
SubscriptionIntervalRemoveOp,
|
|
24
|
+
SubscriptionIntervalRemoveOp$Outbound,
|
|
25
|
+
SubscriptionIntervalRemoveOp$outboundSchema,
|
|
26
|
+
} from "./subscriptionintervalremoveop.js";
|
|
27
|
+
|
|
28
|
+
export type EditSubscriptionIntervalsRequest3 = {
|
|
29
|
+
/**
|
|
30
|
+
* New override segments to add.
|
|
31
|
+
*/
|
|
32
|
+
add?: Array<SubscriptionIntervalAddOp> | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Changes to existing intervals.
|
|
35
|
+
*/
|
|
36
|
+
edit?: Array<SubscriptionIntervalEditOp> | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Intervals to remove outright.
|
|
39
|
+
*/
|
|
40
|
+
remove: Array<SubscriptionIntervalRemoveOp>;
|
|
41
|
+
/**
|
|
42
|
+
* Why a change was made. `correction` fixes data to match what was agreed; `migration` moves a contract from another system; `commercial` is a real change to the deal. Defaults to `unspecified`.
|
|
43
|
+
*/
|
|
44
|
+
changeReason?: ChangeReason | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* A free-text note on why these intervals are changing.
|
|
47
|
+
*/
|
|
48
|
+
description?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Your own key-value data about the change, such as a CRM deal ID.
|
|
51
|
+
*/
|
|
52
|
+
metadata?: { [k: string]: IntervalChangeMetadata } | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export type EditSubscriptionIntervalsRequest2 = {
|
|
56
|
+
/**
|
|
57
|
+
* New override segments to add.
|
|
58
|
+
*/
|
|
59
|
+
add?: Array<SubscriptionIntervalAddOp> | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Changes to existing intervals.
|
|
62
|
+
*/
|
|
63
|
+
edit: Array<SubscriptionIntervalEditOp>;
|
|
64
|
+
/**
|
|
65
|
+
* Intervals to remove outright.
|
|
66
|
+
*/
|
|
67
|
+
remove?: Array<SubscriptionIntervalRemoveOp> | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Why a change was made. `correction` fixes data to match what was agreed; `migration` moves a contract from another system; `commercial` is a real change to the deal. Defaults to `unspecified`.
|
|
70
|
+
*/
|
|
71
|
+
changeReason?: ChangeReason | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* A free-text note on why these intervals are changing.
|
|
74
|
+
*/
|
|
75
|
+
description?: string | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Your own key-value data about the change, such as a CRM deal ID.
|
|
78
|
+
*/
|
|
79
|
+
metadata?: { [k: string]: IntervalChangeMetadata } | undefined;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
export type EditSubscriptionIntervalsRequest1 = {
|
|
83
|
+
/**
|
|
84
|
+
* New override segments to add.
|
|
85
|
+
*/
|
|
86
|
+
add: Array<SubscriptionIntervalAddOp>;
|
|
87
|
+
/**
|
|
88
|
+
* Changes to existing intervals.
|
|
89
|
+
*/
|
|
90
|
+
edit?: Array<SubscriptionIntervalEditOp> | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Intervals to remove outright.
|
|
93
|
+
*/
|
|
94
|
+
remove?: Array<SubscriptionIntervalRemoveOp> | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* Why a change was made. `correction` fixes data to match what was agreed; `migration` moves a contract from another system; `commercial` is a real change to the deal. Defaults to `unspecified`.
|
|
97
|
+
*/
|
|
98
|
+
changeReason?: ChangeReason | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* A free-text note on why these intervals are changing.
|
|
101
|
+
*/
|
|
102
|
+
description?: string | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* Your own key-value data about the change, such as a CRM deal ID.
|
|
105
|
+
*/
|
|
106
|
+
metadata?: { [k: string]: IntervalChangeMetadata } | undefined;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* The operations to apply. At least one of add, edit or remove is required.
|
|
111
|
+
*/
|
|
112
|
+
export type EditSubscriptionIntervalsRequestUnion =
|
|
113
|
+
| EditSubscriptionIntervalsRequest1
|
|
114
|
+
| EditSubscriptionIntervalsRequest2
|
|
115
|
+
| EditSubscriptionIntervalsRequest3;
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export type EditSubscriptionIntervalsRequest3$Outbound = {
|
|
119
|
+
add?: Array<SubscriptionIntervalAddOp$Outbound> | undefined;
|
|
120
|
+
edit?: Array<SubscriptionIntervalEditOp$Outbound> | undefined;
|
|
121
|
+
remove: Array<SubscriptionIntervalRemoveOp$Outbound>;
|
|
122
|
+
changeReason?: string | undefined;
|
|
123
|
+
description?: string | undefined;
|
|
124
|
+
metadata?: { [k: string]: IntervalChangeMetadata$Outbound } | undefined;
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
/** @internal */
|
|
128
|
+
export const EditSubscriptionIntervalsRequest3$outboundSchema: z.ZodType<
|
|
129
|
+
EditSubscriptionIntervalsRequest3$Outbound,
|
|
130
|
+
z.ZodTypeDef,
|
|
131
|
+
EditSubscriptionIntervalsRequest3
|
|
132
|
+
> = z.object({
|
|
133
|
+
add: z.array(SubscriptionIntervalAddOp$outboundSchema).optional(),
|
|
134
|
+
edit: z.array(SubscriptionIntervalEditOp$outboundSchema).optional(),
|
|
135
|
+
remove: z.array(SubscriptionIntervalRemoveOp$outboundSchema),
|
|
136
|
+
changeReason: ChangeReason$outboundSchema.optional(),
|
|
137
|
+
description: z.string().optional(),
|
|
138
|
+
metadata: z.record(IntervalChangeMetadata$outboundSchema).optional(),
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
export function editSubscriptionIntervalsRequest3ToJSON(
|
|
142
|
+
editSubscriptionIntervalsRequest3: EditSubscriptionIntervalsRequest3,
|
|
143
|
+
): string {
|
|
144
|
+
return JSON.stringify(
|
|
145
|
+
EditSubscriptionIntervalsRequest3$outboundSchema.parse(
|
|
146
|
+
editSubscriptionIntervalsRequest3,
|
|
147
|
+
),
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/** @internal */
|
|
152
|
+
export type EditSubscriptionIntervalsRequest2$Outbound = {
|
|
153
|
+
add?: Array<SubscriptionIntervalAddOp$Outbound> | undefined;
|
|
154
|
+
edit: Array<SubscriptionIntervalEditOp$Outbound>;
|
|
155
|
+
remove?: Array<SubscriptionIntervalRemoveOp$Outbound> | undefined;
|
|
156
|
+
changeReason?: string | undefined;
|
|
157
|
+
description?: string | undefined;
|
|
158
|
+
metadata?: { [k: string]: IntervalChangeMetadata$Outbound } | undefined;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
/** @internal */
|
|
162
|
+
export const EditSubscriptionIntervalsRequest2$outboundSchema: z.ZodType<
|
|
163
|
+
EditSubscriptionIntervalsRequest2$Outbound,
|
|
164
|
+
z.ZodTypeDef,
|
|
165
|
+
EditSubscriptionIntervalsRequest2
|
|
166
|
+
> = z.object({
|
|
167
|
+
add: z.array(SubscriptionIntervalAddOp$outboundSchema).optional(),
|
|
168
|
+
edit: z.array(SubscriptionIntervalEditOp$outboundSchema),
|
|
169
|
+
remove: z.array(SubscriptionIntervalRemoveOp$outboundSchema).optional(),
|
|
170
|
+
changeReason: ChangeReason$outboundSchema.optional(),
|
|
171
|
+
description: z.string().optional(),
|
|
172
|
+
metadata: z.record(IntervalChangeMetadata$outboundSchema).optional(),
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
export function editSubscriptionIntervalsRequest2ToJSON(
|
|
176
|
+
editSubscriptionIntervalsRequest2: EditSubscriptionIntervalsRequest2,
|
|
177
|
+
): string {
|
|
178
|
+
return JSON.stringify(
|
|
179
|
+
EditSubscriptionIntervalsRequest2$outboundSchema.parse(
|
|
180
|
+
editSubscriptionIntervalsRequest2,
|
|
181
|
+
),
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/** @internal */
|
|
186
|
+
export type EditSubscriptionIntervalsRequest1$Outbound = {
|
|
187
|
+
add: Array<SubscriptionIntervalAddOp$Outbound>;
|
|
188
|
+
edit?: Array<SubscriptionIntervalEditOp$Outbound> | undefined;
|
|
189
|
+
remove?: Array<SubscriptionIntervalRemoveOp$Outbound> | undefined;
|
|
190
|
+
changeReason?: string | undefined;
|
|
191
|
+
description?: string | undefined;
|
|
192
|
+
metadata?: { [k: string]: IntervalChangeMetadata$Outbound } | undefined;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
/** @internal */
|
|
196
|
+
export const EditSubscriptionIntervalsRequest1$outboundSchema: z.ZodType<
|
|
197
|
+
EditSubscriptionIntervalsRequest1$Outbound,
|
|
198
|
+
z.ZodTypeDef,
|
|
199
|
+
EditSubscriptionIntervalsRequest1
|
|
200
|
+
> = z.object({
|
|
201
|
+
add: z.array(SubscriptionIntervalAddOp$outboundSchema),
|
|
202
|
+
edit: z.array(SubscriptionIntervalEditOp$outboundSchema).optional(),
|
|
203
|
+
remove: z.array(SubscriptionIntervalRemoveOp$outboundSchema).optional(),
|
|
204
|
+
changeReason: ChangeReason$outboundSchema.optional(),
|
|
205
|
+
description: z.string().optional(),
|
|
206
|
+
metadata: z.record(IntervalChangeMetadata$outboundSchema).optional(),
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
export function editSubscriptionIntervalsRequest1ToJSON(
|
|
210
|
+
editSubscriptionIntervalsRequest1: EditSubscriptionIntervalsRequest1,
|
|
211
|
+
): string {
|
|
212
|
+
return JSON.stringify(
|
|
213
|
+
EditSubscriptionIntervalsRequest1$outboundSchema.parse(
|
|
214
|
+
editSubscriptionIntervalsRequest1,
|
|
215
|
+
),
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/** @internal */
|
|
220
|
+
export type EditSubscriptionIntervalsRequestUnion$Outbound =
|
|
221
|
+
| EditSubscriptionIntervalsRequest1$Outbound
|
|
222
|
+
| EditSubscriptionIntervalsRequest2$Outbound
|
|
223
|
+
| EditSubscriptionIntervalsRequest3$Outbound;
|
|
224
|
+
|
|
225
|
+
/** @internal */
|
|
226
|
+
export const EditSubscriptionIntervalsRequestUnion$outboundSchema: z.ZodType<
|
|
227
|
+
EditSubscriptionIntervalsRequestUnion$Outbound,
|
|
228
|
+
z.ZodTypeDef,
|
|
229
|
+
EditSubscriptionIntervalsRequestUnion
|
|
230
|
+
> = z.union([
|
|
231
|
+
z.lazy(() => EditSubscriptionIntervalsRequest1$outboundSchema),
|
|
232
|
+
z.lazy(() => EditSubscriptionIntervalsRequest2$outboundSchema),
|
|
233
|
+
z.lazy(() => EditSubscriptionIntervalsRequest3$outboundSchema),
|
|
234
|
+
]);
|
|
235
|
+
|
|
236
|
+
export function editSubscriptionIntervalsRequestUnionToJSON(
|
|
237
|
+
editSubscriptionIntervalsRequestUnion: EditSubscriptionIntervalsRequestUnion,
|
|
238
|
+
): string {
|
|
239
|
+
return JSON.stringify(
|
|
240
|
+
EditSubscriptionIntervalsRequestUnion$outboundSchema.parse(
|
|
241
|
+
editSubscriptionIntervalsRequestUnion,
|
|
242
|
+
),
|
|
243
|
+
);
|
|
244
|
+
}
|