@flexprice/sdk 2.0.11 → 2.0.13
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 +78 -0
- package/docs/sdk/models/dto-create-customer-request.md +0 -1
- package/docs/sdk/models/dto-customer-response.md +1 -0
- package/docs/sdk/models/dto-invoice-response.md +1 -0
- package/docs/sdk/models/{dto-create-entity-integration-mapping-request.md → dto-link-integration-mapping-request.md} +4 -4
- package/docs/sdk/models/dto-link-integration-mapping-response.md +15 -0
- package/docs/sdk/models/dto-update-customer-request.md +0 -1
- package/docs/sdk/models/invoice-status.md +1 -1
- package/docs/sdk/models/schedule-draft-finalization-response.md +16 -0
- package/docs/sdk/models/scheduled-task-interval.md +1 -1
- package/docs/sdk/models/webhook-dto-alert-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-communication-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-credit-note-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-customer-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-entitlement-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-feature-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-invoice-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-payment-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-subscription-phase-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-subscription-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-transaction-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-dto-wallet-webhook-payload.md +1 -1
- package/docs/sdk/models/webhook-event-name.md +17 -0
- package/docs/sdks/integrations/README.md +18 -235
- package/docs/sdks/scheduledtasks/README.md +73 -2
- package/esm/funcs/coupons-create-coupon.d.ts +2 -0
- package/esm/funcs/coupons-create-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-create-coupon.js +3 -1
- package/esm/funcs/coupons-create-coupon.js.map +1 -1
- package/esm/funcs/coupons-delete-coupon.d.ts +2 -0
- package/esm/funcs/coupons-delete-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-delete-coupon.js +3 -1
- package/esm/funcs/coupons-delete-coupon.js.map +1 -1
- package/esm/funcs/coupons-update-coupon.d.ts +2 -0
- package/esm/funcs/coupons-update-coupon.d.ts.map +1 -1
- package/esm/funcs/coupons-update-coupon.js +3 -1
- package/esm/funcs/coupons-update-coupon.js.map +1 -1
- package/esm/funcs/credit-notes-create-credit-note.d.ts +2 -0
- package/esm/funcs/credit-notes-create-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-create-credit-note.js +3 -1
- package/esm/funcs/credit-notes-create-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-process-credit-note.d.ts +2 -0
- package/esm/funcs/credit-notes-process-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-process-credit-note.js +3 -1
- package/esm/funcs/credit-notes-process-credit-note.js.map +1 -1
- package/esm/funcs/credit-notes-void-credit-note.d.ts +2 -0
- package/esm/funcs/credit-notes-void-credit-note.d.ts.map +1 -1
- package/esm/funcs/credit-notes-void-credit-note.js +3 -1
- package/esm/funcs/credit-notes-void-credit-note.js.map +1 -1
- package/esm/funcs/{integrations-get-integration.d.ts → integrations-link-integration-mapping.d.ts} +4 -4
- package/esm/funcs/integrations-link-integration-mapping.d.ts.map +1 -0
- package/esm/funcs/{entity-integration-mappings-create-entity-integration-mapping.js → integrations-link-integration-mapping.js} +9 -9
- package/esm/funcs/integrations-link-integration-mapping.js.map +1 -0
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.d.ts +17 -0
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.d.ts.map +1 -0
- package/esm/funcs/{integrations-list-linked-integrations.js → scheduled-tasks-schedule-draft-finalization.js} +9 -9
- package/esm/funcs/scheduled-tasks-schedule-draft-finalization.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/lib/security.d.ts +1 -1
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +19 -8
- package/esm/lib/security.js.map +1 -1
- package/esm/sdk/integrations.d.ts +3 -24
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +5 -35
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/models/dto-create-customer-request.d.ts +0 -6
- package/esm/sdk/models/dto-create-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/dto-create-customer-request.js +0 -3
- package/esm/sdk/models/dto-create-customer-request.js.map +1 -1
- package/esm/sdk/models/dto-customer-response.d.ts +2 -0
- package/esm/sdk/models/dto-customer-response.d.ts.map +1 -1
- package/esm/sdk/models/dto-customer-response.js +2 -0
- package/esm/sdk/models/dto-customer-response.js.map +1 -1
- package/esm/sdk/models/dto-invoice-response.d.ts +4 -0
- package/esm/sdk/models/dto-invoice-response.d.ts.map +1 -1
- package/esm/sdk/models/dto-invoice-response.js +2 -0
- package/esm/sdk/models/dto-invoice-response.js.map +1 -1
- package/esm/sdk/models/dto-link-integration-mapping-request.d.ts +25 -0
- package/esm/sdk/models/dto-link-integration-mapping-request.d.ts.map +1 -0
- package/esm/sdk/models/{dto-create-entity-integration-mapping-request.js → dto-link-integration-mapping-request.js} +4 -4
- package/esm/sdk/models/dto-link-integration-mapping-request.js.map +1 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.d.ts +11 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.d.ts.map +1 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.js +15 -0
- package/esm/sdk/models/dto-link-integration-mapping-response.js.map +1 -0
- package/esm/sdk/models/dto-update-customer-request.d.ts +0 -6
- package/esm/sdk/models/dto-update-customer-request.d.ts.map +1 -1
- package/esm/sdk/models/dto-update-customer-request.js +0 -3
- package/esm/sdk/models/dto-update-customer-request.js.map +1 -1
- package/esm/sdk/models/index.d.ts +4 -8
- package/esm/sdk/models/index.d.ts.map +1 -1
- package/esm/sdk/models/index.js +4 -8
- package/esm/sdk/models/index.js.map +1 -1
- package/esm/sdk/models/invoice-status.d.ts +1 -0
- package/esm/sdk/models/invoice-status.d.ts.map +1 -1
- package/esm/sdk/models/invoice-status.js +1 -0
- package/esm/sdk/models/invoice-status.js.map +1 -1
- package/esm/sdk/models/schedule-draft-finalization-op.d.ts +11 -0
- package/esm/sdk/models/schedule-draft-finalization-op.d.ts.map +1 -0
- package/esm/sdk/models/schedule-draft-finalization-op.js +11 -0
- package/esm/sdk/models/schedule-draft-finalization-op.js.map +1 -0
- package/esm/sdk/models/scheduled-task-interval.d.ts +1 -0
- package/esm/sdk/models/scheduled-task-interval.d.ts.map +1 -1
- package/esm/sdk/models/scheduled-task-interval.js +1 -0
- package/esm/sdk/models/scheduled-task-interval.js.map +1 -1
- package/esm/sdk/models/secret-provider.d.ts +0 -2
- package/esm/sdk/models/secret-provider.d.ts.map +1 -1
- package/esm/sdk/models/secret-provider.js +0 -2
- package/esm/sdk/models/secret-provider.js.map +1 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-alert-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-communication-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-credit-note-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-customer-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-entitlement-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-feature-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-invoice-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-payment-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-subscription-phase-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-subscription-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-transaction-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.d.ts +2 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.d.ts.map +1 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js +2 -1
- package/esm/sdk/models/webhook-dto-wallet-webhook-payload.js.map +1 -1
- package/esm/sdk/models/webhook-event-name.d.ts +51 -0
- package/esm/sdk/models/webhook-event-name.d.ts.map +1 -0
- package/esm/sdk/models/webhook-event-name.js +52 -0
- package/esm/sdk/models/webhook-event-name.js.map +1 -0
- package/esm/sdk/scheduled-tasks.d.ts +7 -0
- package/esm/sdk/scheduled-tasks.d.ts.map +1 -1
- package/esm/sdk/scheduled-tasks.js +10 -0
- package/esm/sdk/scheduled-tasks.js.map +1 -1
- package/esm/sdk/sdk.d.ts +2 -5
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -9
- package/esm/sdk/sdk.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/coupons-create-coupon.ts +3 -1
- package/src/funcs/coupons-delete-coupon.ts +3 -1
- package/src/funcs/coupons-update-coupon.ts +3 -1
- package/src/funcs/credit-notes-create-credit-note.ts +3 -1
- package/src/funcs/credit-notes-process-credit-note.ts +3 -1
- package/src/funcs/credit-notes-void-credit-note.ts +3 -1
- package/src/funcs/{entity-integration-mappings-create-entity-integration-mapping.ts → integrations-link-integration-mapping.ts} +14 -17
- package/src/funcs/{integrations-list-linked-integrations.ts → scheduled-tasks-schedule-draft-finalization.ts} +12 -11
- package/src/lib/config.ts +3 -3
- package/src/lib/security.ts +14 -2
- package/src/sdk/integrations.ts +8 -62
- package/src/sdk/models/dto-create-customer-request.ts +0 -16
- package/src/sdk/models/dto-customer-response.ts +8 -0
- package/src/sdk/models/dto-invoice-response.ts +6 -0
- package/src/sdk/models/dto-link-integration-mapping-request.ts +59 -0
- package/src/sdk/models/dto-link-integration-mapping-response.ts +35 -0
- package/src/sdk/models/dto-update-customer-request.ts +0 -16
- package/src/sdk/models/index.ts +4 -8
- package/src/sdk/models/invoice-status.ts +1 -0
- package/src/sdk/models/schedule-draft-finalization-op.ts +29 -0
- package/src/sdk/models/scheduled-task-interval.ts +1 -0
- package/src/sdk/models/secret-provider.ts +0 -5
- package/src/sdk/models/webhook-dto-alert-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-communication-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-credit-note-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-customer-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-entitlement-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-feature-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-invoice-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-payment-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-subscription-phase-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-subscription-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-transaction-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-dto-wallet-webhook-payload.ts +6 -2
- package/src/sdk/models/webhook-event-name.ts +60 -0
- package/src/sdk/scheduled-tasks.ts +16 -0
- package/src/sdk/sdk.ts +5 -13
- package/docs/sdk/models/create-or-update-integration-request.md +0 -26
- package/docs/sdk/models/delete-entity-integration-mapping-request.md +0 -17
- package/docs/sdk/models/delete-integration-request.md +0 -17
- package/docs/sdk/models/dto-create-integration-request.md +0 -21
- package/docs/sdk/models/dto-integration-entity-mapping.md +0 -21
- package/docs/sdk/models/dto-linked-integrations-response.md +0 -15
- package/docs/sdk/models/get-integration-request.md +0 -17
- package/docs/sdk/models/provider.md +0 -17
- package/docs/sdks/entityintegrationmappings/README.md +0 -160
- package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.d.ts +0 -17
- package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.d.ts.map +0 -1
- package/esm/funcs/entity-integration-mappings-create-entity-integration-mapping.js.map +0 -1
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.d.ts +0 -17
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.d.ts.map +0 -1
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.js +0 -90
- package/esm/funcs/entity-integration-mappings-delete-entity-integration-mapping.js.map +0 -1
- package/esm/funcs/integrations-create-or-update-integration.d.ts +0 -17
- package/esm/funcs/integrations-create-or-update-integration.d.ts.map +0 -1
- package/esm/funcs/integrations-create-or-update-integration.js +0 -92
- package/esm/funcs/integrations-create-or-update-integration.js.map +0 -1
- package/esm/funcs/integrations-delete-integration.d.ts +0 -17
- package/esm/funcs/integrations-delete-integration.d.ts.map +0 -1
- package/esm/funcs/integrations-delete-integration.js +0 -90
- package/esm/funcs/integrations-delete-integration.js.map +0 -1
- package/esm/funcs/integrations-get-integration.d.ts.map +0 -1
- package/esm/funcs/integrations-get-integration.js +0 -90
- package/esm/funcs/integrations-get-integration.js.map +0 -1
- package/esm/funcs/integrations-list-linked-integrations.d.ts +0 -17
- package/esm/funcs/integrations-list-linked-integrations.d.ts.map +0 -1
- package/esm/funcs/integrations-list-linked-integrations.js.map +0 -1
- package/esm/sdk/entity-integration-mappings.d.ts +0 -19
- package/esm/sdk/entity-integration-mappings.d.ts.map +0 -1
- package/esm/sdk/entity-integration-mappings.js +0 -28
- package/esm/sdk/entity-integration-mappings.js.map +0 -1
- package/esm/sdk/models/create-or-update-integration-op.d.ts +0 -21
- package/esm/sdk/models/create-or-update-integration-op.d.ts.map +0 -1
- package/esm/sdk/models/create-or-update-integration-op.js +0 -14
- package/esm/sdk/models/create-or-update-integration-op.js.map +0 -1
- package/esm/sdk/models/delete-entity-integration-mapping-op.d.ts +0 -15
- package/esm/sdk/models/delete-entity-integration-mapping-op.d.ts.map +0 -1
- package/esm/sdk/models/delete-entity-integration-mapping-op.js +0 -12
- package/esm/sdk/models/delete-entity-integration-mapping-op.js.map +0 -1
- package/esm/sdk/models/delete-integration-op.d.ts +0 -15
- package/esm/sdk/models/delete-integration-op.d.ts.map +0 -1
- package/esm/sdk/models/delete-integration-op.js +0 -12
- package/esm/sdk/models/delete-integration-op.js.map +0 -1
- package/esm/sdk/models/dto-create-entity-integration-mapping-request.d.ts +0 -25
- package/esm/sdk/models/dto-create-entity-integration-mapping-request.d.ts.map +0 -1
- package/esm/sdk/models/dto-create-entity-integration-mapping-request.js.map +0 -1
- package/esm/sdk/models/dto-create-integration-request.d.ts +0 -21
- package/esm/sdk/models/dto-create-integration-request.d.ts.map +0 -1
- package/esm/sdk/models/dto-create-integration-request.js +0 -15
- package/esm/sdk/models/dto-create-integration-request.js.map +0 -1
- package/esm/sdk/models/dto-integration-entity-mapping.d.ts +0 -38
- package/esm/sdk/models/dto-integration-entity-mapping.d.ts.map +0 -1
- package/esm/sdk/models/dto-integration-entity-mapping.js +0 -23
- package/esm/sdk/models/dto-integration-entity-mapping.js.map +0 -1
- package/esm/sdk/models/dto-linked-integrations-response.d.ts +0 -10
- package/esm/sdk/models/dto-linked-integrations-response.d.ts.map +0 -1
- package/esm/sdk/models/dto-linked-integrations-response.js +0 -14
- package/esm/sdk/models/dto-linked-integrations-response.js.map +0 -1
- package/esm/sdk/models/get-integration-op.d.ts +0 -15
- package/esm/sdk/models/get-integration-op.d.ts.map +0 -1
- package/esm/sdk/models/get-integration-op.js +0 -12
- package/esm/sdk/models/get-integration-op.js.map +0 -1
- package/src/funcs/entity-integration-mappings-delete-entity-integration-mapping.ts +0 -183
- package/src/funcs/integrations-create-or-update-integration.ts +0 -187
- package/src/funcs/integrations-delete-integration.ts +0 -179
- package/src/funcs/integrations-get-integration.ts +0 -181
- package/src/sdk/entity-integration-mappings.ts +0 -45
- package/src/sdk/models/create-or-update-integration-op.ts +0 -46
- package/src/sdk/models/delete-entity-integration-mapping-op.ts +0 -36
- package/src/sdk/models/delete-integration-op.ts +0 -33
- package/src/sdk/models/dto-create-entity-integration-mapping-request.ts +0 -61
- package/src/sdk/models/dto-create-integration-request.ts +0 -42
- package/src/sdk/models/dto-integration-entity-mapping.ts +0 -63
- package/src/sdk/models/dto-linked-integrations-response.ts +0 -31
- package/src/sdk/models/get-integration-op.ts +0 -33
|
@@ -23,17 +23,17 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
23
23
|
import { Result } from "../types/fp.js";
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Schedule draft finalization
|
|
27
27
|
*
|
|
28
28
|
* @remarks
|
|
29
|
-
*
|
|
29
|
+
* Triggers the draft invoice finalization workflow that scans computed draft invoices whose finalization delay has elapsed and finalizes them (assign invoice number, sync to vendors, attempt payment).
|
|
30
30
|
*/
|
|
31
|
-
export function
|
|
31
|
+
export function scheduledTasksScheduleDraftFinalization(
|
|
32
32
|
client: FlexpriceCore,
|
|
33
33
|
options?: RequestOptions,
|
|
34
34
|
): APIPromise<
|
|
35
35
|
Result<
|
|
36
|
-
models.
|
|
36
|
+
models.ScheduleDraftFinalizationResponse,
|
|
37
37
|
| models.ErrorsErrorsErrorResponse
|
|
38
38
|
| FlexPriceError
|
|
39
39
|
| ResponseValidationError
|
|
@@ -57,7 +57,7 @@ async function $do(
|
|
|
57
57
|
): Promise<
|
|
58
58
|
[
|
|
59
59
|
Result<
|
|
60
|
-
models.
|
|
60
|
+
models.ScheduleDraftFinalizationResponse,
|
|
61
61
|
| models.ErrorsErrorsErrorResponse
|
|
62
62
|
| FlexPriceError
|
|
63
63
|
| ResponseValidationError
|
|
@@ -71,7 +71,7 @@ async function $do(
|
|
|
71
71
|
APICall,
|
|
72
72
|
]
|
|
73
73
|
> {
|
|
74
|
-
const path = pathToFunc("/
|
|
74
|
+
const path = pathToFunc("/tasks/scheduled/schedule-draft-finalization")();
|
|
75
75
|
|
|
76
76
|
const headers = new Headers(compactMap({
|
|
77
77
|
Accept: "application/json",
|
|
@@ -84,7 +84,7 @@ async function $do(
|
|
|
84
84
|
const context = {
|
|
85
85
|
options: client._options,
|
|
86
86
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
87
|
-
operationID: "
|
|
87
|
+
operationID: "scheduleDraftFinalization",
|
|
88
88
|
oAuth2Scopes: null,
|
|
89
89
|
|
|
90
90
|
resolvedSecurity: requestSecurity,
|
|
@@ -98,7 +98,7 @@ async function $do(
|
|
|
98
98
|
|
|
99
99
|
const requestRes = client._createRequest(context, {
|
|
100
100
|
security: requestSecurity,
|
|
101
|
-
method: "
|
|
101
|
+
method: "POST",
|
|
102
102
|
baseURL: options?.serverURL,
|
|
103
103
|
path: path,
|
|
104
104
|
headers: headers,
|
|
@@ -112,7 +112,7 @@ async function $do(
|
|
|
112
112
|
|
|
113
113
|
const doResult = await client._do(req, {
|
|
114
114
|
context,
|
|
115
|
-
errorCodes: ["4XX", "500", "5XX"],
|
|
115
|
+
errorCodes: ["400", "4XX", "500", "5XX"],
|
|
116
116
|
retryConfig: context.retryConfig,
|
|
117
117
|
retryCodes: context.retryCodes,
|
|
118
118
|
});
|
|
@@ -126,7 +126,7 @@ async function $do(
|
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
const [result] = await M.match<
|
|
129
|
-
models.
|
|
129
|
+
models.ScheduleDraftFinalizationResponse,
|
|
130
130
|
| models.ErrorsErrorsErrorResponse
|
|
131
131
|
| FlexPriceError
|
|
132
132
|
| ResponseValidationError
|
|
@@ -137,7 +137,8 @@ async function $do(
|
|
|
137
137
|
| UnexpectedClientError
|
|
138
138
|
| SDKValidationError
|
|
139
139
|
>(
|
|
140
|
-
M.json(200, models.
|
|
140
|
+
M.json(200, models.ScheduleDraftFinalizationResponse$inboundSchema),
|
|
141
|
+
M.jsonErr(400, models.ErrorsErrorsErrorResponse$inboundSchema),
|
|
141
142
|
M.jsonErr(500, models.ErrorsErrorsErrorResponse$inboundSchema),
|
|
142
143
|
M.fail("4XX"),
|
|
143
144
|
M.fail("5XX"),
|
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: "1.0",
|
|
68
|
-
sdkVersion: "2.0.
|
|
69
|
-
genVersion: "2.
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 2.0.
|
|
68
|
+
sdkVersion: "2.0.13",
|
|
69
|
+
genVersion: "2.879.1",
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 2.0.13 2.879.1 1.0 @flexprice/sdk",
|
|
71
71
|
} as const;
|
package/src/lib/security.ts
CHANGED
|
@@ -239,8 +239,9 @@ function applyBearer(
|
|
|
239
239
|
|
|
240
240
|
export function resolveGlobalSecurity(
|
|
241
241
|
security: Partial<models.Security> | null | undefined,
|
|
242
|
+
allowedFields?: number[],
|
|
242
243
|
): SecurityState | null {
|
|
243
|
-
|
|
244
|
+
let inputs: SecurityInput[][] = [
|
|
244
245
|
[
|
|
245
246
|
{
|
|
246
247
|
fieldName: "x-api-key",
|
|
@@ -248,7 +249,18 @@ export function resolveGlobalSecurity(
|
|
|
248
249
|
value: security?.apiKeyAuth,
|
|
249
250
|
},
|
|
250
251
|
],
|
|
251
|
-
|
|
252
|
+
];
|
|
253
|
+
|
|
254
|
+
if (allowedFields) {
|
|
255
|
+
inputs = allowedFields.map((i) => {
|
|
256
|
+
if (i < 0 || i >= inputs.length) {
|
|
257
|
+
throw new RangeError(`invalid allowedFields index ${i}`);
|
|
258
|
+
}
|
|
259
|
+
return inputs[i]!;
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
return resolveSecurity(...inputs);
|
|
252
264
|
}
|
|
253
265
|
|
|
254
266
|
export async function extractSecurity<
|
package/src/sdk/integrations.ts
CHANGED
|
@@ -2,79 +2,25 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import { integrationsDeleteIntegration } from "../funcs/integrations-delete-integration.js";
|
|
7
|
-
import { integrationsGetIntegration } from "../funcs/integrations-get-integration.js";
|
|
8
|
-
import { integrationsListLinkedIntegrations } from "../funcs/integrations-list-linked-integrations.js";
|
|
5
|
+
import { integrationsLinkIntegrationMapping } from "../funcs/integrations-link-integration-mapping.js";
|
|
9
6
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
10
7
|
import { unwrapAsync } from "../types/fp.js";
|
|
11
8
|
import * as models from "./models/index.js";
|
|
12
9
|
|
|
13
10
|
export class Integrations extends ClientSDK {
|
|
14
11
|
/**
|
|
15
|
-
*
|
|
12
|
+
* Link integration mapping
|
|
16
13
|
*
|
|
17
14
|
* @remarks
|
|
18
|
-
*
|
|
15
|
+
* Link a FlexPrice entity to provider entity with provider-specific side effects.
|
|
19
16
|
*/
|
|
20
|
-
async
|
|
21
|
-
|
|
17
|
+
async linkIntegrationMapping(
|
|
18
|
+
request: models.DtoLinkIntegrationMappingRequest,
|
|
22
19
|
options?: RequestOptions,
|
|
23
|
-
): Promise<models.
|
|
24
|
-
return unwrapAsync(
|
|
20
|
+
): Promise<models.DtoLinkIntegrationMappingResponse> {
|
|
21
|
+
return unwrapAsync(integrationsLinkIntegrationMapping(
|
|
25
22
|
this,
|
|
26
|
-
|
|
27
|
-
options,
|
|
28
|
-
));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Create or update an integration
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* Use when storing or updating credentials for an external integration (e.g. Stripe, HubSpot). Secrets are encrypted at rest.
|
|
36
|
-
*/
|
|
37
|
-
async createOrUpdateIntegration(
|
|
38
|
-
provider: string,
|
|
39
|
-
body: models.DtoCreateIntegrationRequest,
|
|
40
|
-
options?: RequestOptions,
|
|
41
|
-
): Promise<models.DtoSecretResponse> {
|
|
42
|
-
return unwrapAsync(integrationsCreateOrUpdateIntegration(
|
|
43
|
-
this,
|
|
44
|
-
provider,
|
|
45
|
-
body,
|
|
46
|
-
options,
|
|
47
|
-
));
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* List linked integrations
|
|
52
|
-
*
|
|
53
|
-
* @remarks
|
|
54
|
-
* Use when showing which integrations are connected (e.g. settings page). Returns providers that have valid linked credentials.
|
|
55
|
-
*/
|
|
56
|
-
async listLinkedIntegrations(
|
|
57
|
-
options?: RequestOptions,
|
|
58
|
-
): Promise<models.DtoLinkedIntegrationsResponse> {
|
|
59
|
-
return unwrapAsync(integrationsListLinkedIntegrations(
|
|
60
|
-
this,
|
|
61
|
-
options,
|
|
62
|
-
));
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Delete an integration
|
|
67
|
-
*
|
|
68
|
-
* @remarks
|
|
69
|
-
* Use when disconnecting an integration (e.g. switching provider or removing OAuth). Deletes stored credentials.
|
|
70
|
-
*/
|
|
71
|
-
async deleteIntegration(
|
|
72
|
-
id: string,
|
|
73
|
-
options?: RequestOptions,
|
|
74
|
-
): Promise<void> {
|
|
75
|
-
return unwrapAsync(integrationsDeleteIntegration(
|
|
76
|
-
this,
|
|
77
|
-
id,
|
|
23
|
+
request,
|
|
78
24
|
options,
|
|
79
25
|
));
|
|
80
26
|
}
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
8
|
-
DtoIntegrationEntityMapping,
|
|
9
|
-
DtoIntegrationEntityMapping$Outbound,
|
|
10
|
-
DtoIntegrationEntityMapping$outboundSchema,
|
|
11
|
-
} from "./dto-integration-entity-mapping.js";
|
|
12
7
|
import {
|
|
13
8
|
DtoTaxRateOverride,
|
|
14
9
|
DtoTaxRateOverride$Outbound,
|
|
@@ -51,10 +46,6 @@ export type DtoCreateCustomerRequest = {
|
|
|
51
46
|
* external_id is the unique identifier from your system to reference this customer (required)
|
|
52
47
|
*/
|
|
53
48
|
externalId: string;
|
|
54
|
-
/**
|
|
55
|
-
* integration_entity_mapping contains provider integration mappings for this customer
|
|
56
|
-
*/
|
|
57
|
-
integrationEntityMapping?: Array<DtoIntegrationEntityMapping> | undefined;
|
|
58
49
|
/**
|
|
59
50
|
* metadata contains additional key-value pairs for storing extra information
|
|
60
51
|
*/
|
|
@@ -103,9 +94,6 @@ export type DtoCreateCustomerRequest$Outbound = {
|
|
|
103
94
|
address_state?: string | undefined;
|
|
104
95
|
email?: string | undefined;
|
|
105
96
|
external_id: string;
|
|
106
|
-
integration_entity_mapping?:
|
|
107
|
-
| Array<DtoIntegrationEntityMapping$Outbound>
|
|
108
|
-
| undefined;
|
|
109
97
|
metadata?: { [k: string]: string } | undefined;
|
|
110
98
|
name?: string | undefined;
|
|
111
99
|
parent_customer_external_id?: string | undefined;
|
|
@@ -128,9 +116,6 @@ export const DtoCreateCustomerRequest$outboundSchema: z.ZodMiniType<
|
|
|
128
116
|
addressState: z.optional(z.string()),
|
|
129
117
|
email: z.optional(z.string()),
|
|
130
118
|
externalId: z.string(),
|
|
131
|
-
integrationEntityMapping: z.optional(
|
|
132
|
-
z.array(DtoIntegrationEntityMapping$outboundSchema),
|
|
133
|
-
),
|
|
134
119
|
metadata: z.optional(z.record(z.string(), z.string())),
|
|
135
120
|
name: z.optional(z.string()),
|
|
136
121
|
parentCustomerExternalId: z.optional(z.string()),
|
|
@@ -147,7 +132,6 @@ export const DtoCreateCustomerRequest$outboundSchema: z.ZodMiniType<
|
|
|
147
132
|
addressPostalCode: "address_postal_code",
|
|
148
133
|
addressState: "address_state",
|
|
149
134
|
externalId: "external_id",
|
|
150
|
-
integrationEntityMapping: "integration_entity_mapping",
|
|
151
135
|
parentCustomerExternalId: "parent_customer_external_id",
|
|
152
136
|
parentCustomerId: "parent_customer_id",
|
|
153
137
|
skipOnboardingWorkflow: "skip_onboarding_workflow",
|
|
@@ -7,6 +7,10 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import * as types from "../../types/primitives.js";
|
|
10
|
+
import {
|
|
11
|
+
DtoEntityIntegrationMappingResponse,
|
|
12
|
+
DtoEntityIntegrationMappingResponse$inboundSchema,
|
|
13
|
+
} from "./dto-entity-integration-mapping-response.js";
|
|
10
14
|
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
11
15
|
import { Status, Status$inboundSchema } from "./status.js";
|
|
12
16
|
|
|
@@ -56,6 +60,7 @@ export type DtoCustomerResponse = {
|
|
|
56
60
|
* ID is the unique identifier for the customer
|
|
57
61
|
*/
|
|
58
62
|
id?: string | undefined;
|
|
63
|
+
integrations?: Array<DtoEntityIntegrationMappingResponse> | undefined;
|
|
59
64
|
/**
|
|
60
65
|
* Metadata
|
|
61
66
|
*/
|
|
@@ -100,6 +105,9 @@ export const DtoCustomerResponse$inboundSchema: z.ZodMiniType<
|
|
|
100
105
|
environment_id: types.optional(types.string()),
|
|
101
106
|
external_id: types.optional(types.string()),
|
|
102
107
|
id: types.optional(types.string()),
|
|
108
|
+
integrations: types.optional(
|
|
109
|
+
z.array(DtoEntityIntegrationMappingResponse$inboundSchema),
|
|
110
|
+
),
|
|
103
111
|
metadata: types.optional(z.record(z.string(), types.string())),
|
|
104
112
|
name: types.optional(types.string()),
|
|
105
113
|
parent_customer: types.optional(
|
|
@@ -123,6 +123,10 @@ export type DtoInvoiceResponse = {
|
|
|
123
123
|
invoicePdfUrl?: string | undefined;
|
|
124
124
|
invoiceStatus?: InvoiceStatus | undefined;
|
|
125
125
|
invoiceType?: InvoiceType | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* last_computed_at is the timestamp when this invoice was last computed by ComputeInvoice
|
|
128
|
+
*/
|
|
129
|
+
lastComputedAt?: string | undefined;
|
|
126
130
|
/**
|
|
127
131
|
* line_items contains the individual items that make up this invoice (overrides embedded field)
|
|
128
132
|
*/
|
|
@@ -233,6 +237,7 @@ export const DtoInvoiceResponse$inboundSchema: z.ZodMiniType<
|
|
|
233
237
|
invoice_pdf_url: types.optional(types.string()),
|
|
234
238
|
invoice_status: types.optional(InvoiceStatus$inboundSchema),
|
|
235
239
|
invoice_type: types.optional(InvoiceType$inboundSchema),
|
|
240
|
+
last_computed_at: types.optional(types.string()),
|
|
236
241
|
line_items: types.optional(
|
|
237
242
|
z.array(DtoInvoiceLineItemResponse$inboundSchema),
|
|
238
243
|
),
|
|
@@ -282,6 +287,7 @@ export const DtoInvoiceResponse$inboundSchema: z.ZodMiniType<
|
|
|
282
287
|
"invoice_pdf_url": "invoicePdfUrl",
|
|
283
288
|
"invoice_status": "invoiceStatus",
|
|
284
289
|
"invoice_type": "invoiceType",
|
|
290
|
+
"last_computed_at": "lastComputedAt",
|
|
285
291
|
"line_items": "lineItems",
|
|
286
292
|
"overpaid_amount": "overpaidAmount",
|
|
287
293
|
"paid_at": "paidAt",
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
IntegrationEntityType,
|
|
9
|
+
IntegrationEntityType$outboundSchema,
|
|
10
|
+
} from "./integration-entity-type.js";
|
|
11
|
+
|
|
12
|
+
export type DtoLinkIntegrationMappingRequest = {
|
|
13
|
+
entityId: string;
|
|
14
|
+
entityType: IntegrationEntityType;
|
|
15
|
+
metadata?: { [k: string]: any } | undefined;
|
|
16
|
+
providerEntityId: string;
|
|
17
|
+
providerType: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type DtoLinkIntegrationMappingRequest$Outbound = {
|
|
22
|
+
entity_id: string;
|
|
23
|
+
entity_type: string;
|
|
24
|
+
metadata?: { [k: string]: any } | undefined;
|
|
25
|
+
provider_entity_id: string;
|
|
26
|
+
provider_type: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const DtoLinkIntegrationMappingRequest$outboundSchema: z.ZodMiniType<
|
|
31
|
+
DtoLinkIntegrationMappingRequest$Outbound,
|
|
32
|
+
DtoLinkIntegrationMappingRequest
|
|
33
|
+
> = z.pipe(
|
|
34
|
+
z.object({
|
|
35
|
+
entityId: z.string(),
|
|
36
|
+
entityType: IntegrationEntityType$outboundSchema,
|
|
37
|
+
metadata: z.optional(z.record(z.string(), z.any())),
|
|
38
|
+
providerEntityId: z.string(),
|
|
39
|
+
providerType: z.string(),
|
|
40
|
+
}),
|
|
41
|
+
z.transform((v) => {
|
|
42
|
+
return remap$(v, {
|
|
43
|
+
entityId: "entity_id",
|
|
44
|
+
entityType: "entity_type",
|
|
45
|
+
providerEntityId: "provider_entity_id",
|
|
46
|
+
providerType: "provider_type",
|
|
47
|
+
});
|
|
48
|
+
}),
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export function dtoLinkIntegrationMappingRequestToJSON(
|
|
52
|
+
dtoLinkIntegrationMappingRequest: DtoLinkIntegrationMappingRequest,
|
|
53
|
+
): string {
|
|
54
|
+
return JSON.stringify(
|
|
55
|
+
DtoLinkIntegrationMappingRequest$outboundSchema.parse(
|
|
56
|
+
dtoLinkIntegrationMappingRequest,
|
|
57
|
+
),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import * as types from "../../types/primitives.js";
|
|
9
|
+
import {
|
|
10
|
+
DtoEntityIntegrationMappingResponse,
|
|
11
|
+
DtoEntityIntegrationMappingResponse$inboundSchema,
|
|
12
|
+
} from "./dto-entity-integration-mapping-response.js";
|
|
13
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
14
|
+
|
|
15
|
+
export type DtoLinkIntegrationMappingResponse = {
|
|
16
|
+
mapping?: DtoEntityIntegrationMappingResponse | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const DtoLinkIntegrationMappingResponse$inboundSchema: z.ZodMiniType<
|
|
21
|
+
DtoLinkIntegrationMappingResponse,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
mapping: types.optional(DtoEntityIntegrationMappingResponse$inboundSchema),
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export function dtoLinkIntegrationMappingResponseFromJSON(
|
|
28
|
+
jsonString: string,
|
|
29
|
+
): SafeParseResult<DtoLinkIntegrationMappingResponse, SDKValidationError> {
|
|
30
|
+
return safeParse(
|
|
31
|
+
jsonString,
|
|
32
|
+
(x) => DtoLinkIntegrationMappingResponse$inboundSchema.parse(JSON.parse(x)),
|
|
33
|
+
`Failed to parse 'DtoLinkIntegrationMappingResponse' from JSON`,
|
|
34
|
+
);
|
|
35
|
+
}
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4-mini";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import {
|
|
8
|
-
DtoIntegrationEntityMapping,
|
|
9
|
-
DtoIntegrationEntityMapping$Outbound,
|
|
10
|
-
DtoIntegrationEntityMapping$outboundSchema,
|
|
11
|
-
} from "./dto-integration-entity-mapping.js";
|
|
12
7
|
|
|
13
8
|
/**
|
|
14
9
|
* Request object for updating an existing customer. All fields are optional - only provided fields will be updated
|
|
@@ -46,10 +41,6 @@ export type DtoUpdateCustomerRequest = {
|
|
|
46
41
|
* external_id is the updated external identifier for the customer
|
|
47
42
|
*/
|
|
48
43
|
externalId?: string | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* integration_entity_mapping contains provider integration mappings for this customer
|
|
51
|
-
*/
|
|
52
|
-
integrationEntityMapping?: Array<DtoIntegrationEntityMapping> | undefined;
|
|
53
44
|
/**
|
|
54
45
|
* metadata contains updated key-value pairs that will replace existing metadata
|
|
55
46
|
*/
|
|
@@ -87,9 +78,6 @@ export type DtoUpdateCustomerRequest$Outbound = {
|
|
|
87
78
|
address_state?: string | undefined;
|
|
88
79
|
email?: string | undefined;
|
|
89
80
|
external_id?: string | undefined;
|
|
90
|
-
integration_entity_mapping?:
|
|
91
|
-
| Array<DtoIntegrationEntityMapping$Outbound>
|
|
92
|
-
| undefined;
|
|
93
81
|
metadata?: { [k: string]: string } | undefined;
|
|
94
82
|
name?: string | undefined;
|
|
95
83
|
parent_customer_external_id?: string | undefined;
|
|
@@ -110,9 +98,6 @@ export const DtoUpdateCustomerRequest$outboundSchema: z.ZodMiniType<
|
|
|
110
98
|
addressState: z.optional(z.string()),
|
|
111
99
|
email: z.optional(z.string()),
|
|
112
100
|
externalId: z.optional(z.string()),
|
|
113
|
-
integrationEntityMapping: z.optional(
|
|
114
|
-
z.array(DtoIntegrationEntityMapping$outboundSchema),
|
|
115
|
-
),
|
|
116
101
|
metadata: z.optional(z.record(z.string(), z.string())),
|
|
117
102
|
name: z.optional(z.string()),
|
|
118
103
|
parentCustomerExternalId: z.optional(z.string()),
|
|
@@ -127,7 +112,6 @@ export const DtoUpdateCustomerRequest$outboundSchema: z.ZodMiniType<
|
|
|
127
112
|
addressPostalCode: "address_postal_code",
|
|
128
113
|
addressState: "address_state",
|
|
129
114
|
externalId: "external_id",
|
|
130
|
-
integrationEntityMapping: "integration_entity_mapping",
|
|
131
115
|
parentCustomerExternalId: "parent_customer_external_id",
|
|
132
116
|
parentCustomerId: "parent_customer_id",
|
|
133
117
|
});
|
package/src/sdk/models/index.ts
CHANGED
|
@@ -35,7 +35,6 @@ export * from "./costsheet-filter.js";
|
|
|
35
35
|
export * from "./coupon-cadence.js";
|
|
36
36
|
export * from "./coupon-filter.js";
|
|
37
37
|
export * from "./coupon-type.js";
|
|
38
|
-
export * from "./create-or-update-integration-op.js";
|
|
39
38
|
export * from "./create-subscription-line-item-op.js";
|
|
40
39
|
export * from "./credit-breakdown.js";
|
|
41
40
|
export * from "./credit-grant-application-reason.js";
|
|
@@ -58,10 +57,8 @@ export * from "./delete-coupon-op.js";
|
|
|
58
57
|
export * from "./delete-credit-grant-op.js";
|
|
59
58
|
export * from "./delete-customer-op.js";
|
|
60
59
|
export * from "./delete-entitlement-op.js";
|
|
61
|
-
export * from "./delete-entity-integration-mapping-op.js";
|
|
62
60
|
export * from "./delete-feature-op.js";
|
|
63
61
|
export * from "./delete-group-op.js";
|
|
64
|
-
export * from "./delete-integration-op.js";
|
|
65
62
|
export * from "./delete-payment-op.js";
|
|
66
63
|
export * from "./delete-plan-op.js";
|
|
67
64
|
export * from "./delete-price-op.js";
|
|
@@ -110,10 +107,8 @@ export * from "./dto-create-credit-note-line-item-request.js";
|
|
|
110
107
|
export * from "./dto-create-credit-note-request.js";
|
|
111
108
|
export * from "./dto-create-customer-request.js";
|
|
112
109
|
export * from "./dto-create-entitlement-request.js";
|
|
113
|
-
export * from "./dto-create-entity-integration-mapping-request.js";
|
|
114
110
|
export * from "./dto-create-feature-request.js";
|
|
115
111
|
export * from "./dto-create-group-request.js";
|
|
116
|
-
export * from "./dto-create-integration-request.js";
|
|
117
112
|
export * from "./dto-create-invoice-line-item-request.js";
|
|
118
113
|
export * from "./dto-create-invoice-request.js";
|
|
119
114
|
export * from "./dto-create-meter-request.js";
|
|
@@ -174,7 +169,6 @@ export * from "./dto-get-usage-request.js";
|
|
|
174
169
|
export * from "./dto-get-usage-response.js";
|
|
175
170
|
export * from "./dto-group-response.js";
|
|
176
171
|
export * from "./dto-ingest-event-request.js";
|
|
177
|
-
export * from "./dto-integration-entity-mapping.js";
|
|
178
172
|
export * from "./dto-invoice-coupon.js";
|
|
179
173
|
export * from "./dto-invoice-line-item-coupon.js";
|
|
180
174
|
export * from "./dto-invoice-line-item-preview.js";
|
|
@@ -182,7 +176,8 @@ export * from "./dto-invoice-line-item-response.js";
|
|
|
182
176
|
export * from "./dto-invoice-preview.js";
|
|
183
177
|
export * from "./dto-invoice-response.js";
|
|
184
178
|
export * from "./dto-line-item-commitment-config.js";
|
|
185
|
-
export * from "./dto-
|
|
179
|
+
export * from "./dto-link-integration-mapping-request.js";
|
|
180
|
+
export * from "./dto-link-integration-mapping-response.js";
|
|
186
181
|
export * from "./dto-list-addons-response.js";
|
|
187
182
|
export * from "./dto-list-alert-logs-response.js";
|
|
188
183
|
export * from "./dto-list-costsheet-response.js";
|
|
@@ -324,7 +319,6 @@ export * from "./get-customer-wallets-op.js";
|
|
|
324
319
|
export * from "./get-entitlement-op.js";
|
|
325
320
|
export * from "./get-event-op.js";
|
|
326
321
|
export * from "./get-group-op.js";
|
|
327
|
-
export * from "./get-integration-op.js";
|
|
328
322
|
export * from "./get-invoice-op.js";
|
|
329
323
|
export * from "./get-invoice-pdf-op.js";
|
|
330
324
|
export * from "./get-payment-op.js";
|
|
@@ -420,6 +414,7 @@ export * from "./round-type.js";
|
|
|
420
414
|
export * from "./s3-compression-type.js";
|
|
421
415
|
export * from "./s3-encryption-type.js";
|
|
422
416
|
export * from "./s3-job-config.js";
|
|
417
|
+
export * from "./schedule-draft-finalization-op.js";
|
|
423
418
|
export * from "./schedule-status.js";
|
|
424
419
|
export * from "./schedule-type.js";
|
|
425
420
|
export * from "./schedule-update-billing-period-op.js";
|
|
@@ -500,5 +495,6 @@ export * from "./webhook-dto-subscription-webhook-payload.js";
|
|
|
500
495
|
export * from "./webhook-dto-transaction-webhook-payload.js";
|
|
501
496
|
export * from "./webhook-dto-wallet-alert-info.js";
|
|
502
497
|
export * from "./webhook-dto-wallet-webhook-payload.js";
|
|
498
|
+
export * from "./webhook-event-name.js";
|
|
503
499
|
export * from "./window-size.js";
|
|
504
500
|
export * from "./workflow-execution-filter.js";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4-mini";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* OK
|
|
12
|
+
*/
|
|
13
|
+
export type ScheduleDraftFinalizationResponse = {};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const ScheduleDraftFinalizationResponse$inboundSchema: z.ZodMiniType<
|
|
17
|
+
ScheduleDraftFinalizationResponse,
|
|
18
|
+
unknown
|
|
19
|
+
> = z.object({});
|
|
20
|
+
|
|
21
|
+
export function scheduleDraftFinalizationResponseFromJSON(
|
|
22
|
+
jsonString: string,
|
|
23
|
+
): SafeParseResult<ScheduleDraftFinalizationResponse, SDKValidationError> {
|
|
24
|
+
return safeParse(
|
|
25
|
+
jsonString,
|
|
26
|
+
(x) => ScheduleDraftFinalizationResponse$inboundSchema.parse(JSON.parse(x)),
|
|
27
|
+
`Failed to parse 'ScheduleDraftFinalizationResponse' from JSON`,
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -25,8 +25,3 @@ export const SecretProvider$inboundSchema: z.ZodMiniType<
|
|
|
25
25
|
SecretProvider,
|
|
26
26
|
unknown
|
|
27
27
|
> = openEnums.inboundSchema(SecretProvider);
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const SecretProvider$outboundSchema: z.ZodMiniType<
|
|
30
|
-
string,
|
|
31
|
-
SecretProvider
|
|
32
|
-
> = openEnums.outboundSchema(SecretProvider);
|
|
@@ -20,6 +20,10 @@ import {
|
|
|
20
20
|
DtoWalletResponse$inboundSchema,
|
|
21
21
|
} from "./dto-wallet-response.js";
|
|
22
22
|
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
23
|
+
import {
|
|
24
|
+
WebhookEventName,
|
|
25
|
+
WebhookEventName$inboundSchema,
|
|
26
|
+
} from "./webhook-event-name.js";
|
|
23
27
|
|
|
24
28
|
export type WebhookDtoAlertWebhookPayload = {
|
|
25
29
|
alertStatus?: string | undefined;
|
|
@@ -28,7 +32,7 @@ export type WebhookDtoAlertWebhookPayload = {
|
|
|
28
32
|
* Customer response object containing all customer information
|
|
29
33
|
*/
|
|
30
34
|
customer?: DtoCustomerResponse | undefined;
|
|
31
|
-
eventType?:
|
|
35
|
+
eventType?: WebhookEventName | undefined;
|
|
32
36
|
feature?: DtoFeatureResponse | undefined;
|
|
33
37
|
wallet?: DtoWalletResponse | undefined;
|
|
34
38
|
};
|
|
@@ -42,7 +46,7 @@ export const WebhookDtoAlertWebhookPayload$inboundSchema: z.ZodMiniType<
|
|
|
42
46
|
alert_status: types.optional(types.string()),
|
|
43
47
|
alert_type: types.optional(types.string()),
|
|
44
48
|
customer: types.optional(DtoCustomerResponse$inboundSchema),
|
|
45
|
-
event_type: types.optional(
|
|
49
|
+
event_type: types.optional(WebhookEventName$inboundSchema),
|
|
46
50
|
feature: types.optional(DtoFeatureResponse$inboundSchema),
|
|
47
51
|
wallet: types.optional(DtoWalletResponse$inboundSchema),
|
|
48
52
|
}),
|
|
@@ -12,9 +12,13 @@ import {
|
|
|
12
12
|
DtoInvoiceResponse$inboundSchema,
|
|
13
13
|
} from "./dto-invoice-response.js";
|
|
14
14
|
import { SDKValidationError } from "./sdk-validation-error.js";
|
|
15
|
+
import {
|
|
16
|
+
WebhookEventName,
|
|
17
|
+
WebhookEventName$inboundSchema,
|
|
18
|
+
} from "./webhook-event-name.js";
|
|
15
19
|
|
|
16
20
|
export type WebhookDtoCommunicationWebhookPayload = {
|
|
17
|
-
eventType?:
|
|
21
|
+
eventType?: WebhookEventName | undefined;
|
|
18
22
|
invoice?: DtoInvoiceResponse | undefined;
|
|
19
23
|
};
|
|
20
24
|
|
|
@@ -24,7 +28,7 @@ export const WebhookDtoCommunicationWebhookPayload$inboundSchema: z.ZodMiniType<
|
|
|
24
28
|
unknown
|
|
25
29
|
> = z.pipe(
|
|
26
30
|
z.object({
|
|
27
|
-
event_type: types.optional(
|
|
31
|
+
event_type: types.optional(WebhookEventName$inboundSchema),
|
|
28
32
|
invoice: types.optional(DtoInvoiceResponse$inboundSchema),
|
|
29
33
|
}),
|
|
30
34
|
z.transform((v) => {
|