@enbbox/api 1.0.0
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 +380 -0
- package/dist/api/activity-api.d.ts +381 -0
- package/dist/api/activity-api.js +636 -0
- package/dist/api/billing-api.d.ts +337 -0
- package/dist/api/billing-api.js +571 -0
- package/dist/api/channel-connections-api.d.ts +263 -0
- package/dist/api/channel-connections-api.js +437 -0
- package/dist/api/channel-endpoints-api.d.ts +263 -0
- package/dist/api/channel-endpoints-api.js +437 -0
- package/dist/api/contexts-api.d.ts +278 -0
- package/dist/api/contexts-api.js +458 -0
- package/dist/api/events-api.d.ts +203 -0
- package/dist/api/events-api.js +341 -0
- package/dist/api/feature-flags-api.d.ts +74 -0
- package/dist/api/feature-flags-api.js +124 -0
- package/dist/api/health-api.d.ts +144 -0
- package/dist/api/health-api.js +237 -0
- package/dist/api/inbound-parse-api.d.ts +79 -0
- package/dist/api/inbound-parse-api.js +129 -0
- package/dist/api/inbox-api.d.ts +582 -0
- package/dist/api/inbox-api.js +976 -0
- package/dist/api/integrations-api.d.ts +420 -0
- package/dist/api/integrations-api.js +707 -0
- package/dist/api/layouts-api.d.ts +431 -0
- package/dist/api/layouts-api.js +721 -0
- package/dist/api/messages-api.d.ts +185 -0
- package/dist/api/messages-api.js +303 -0
- package/dist/api/metrics-api.d.ts +74 -0
- package/dist/api/metrics-api.js +121 -0
- package/dist/api/notification-groups-api.d.ts +202 -0
- package/dist/api/notification-groups-api.js +340 -0
- package/dist/api/notifications-api.d.ts +171 -0
- package/dist/api/notifications-api.js +284 -0
- package/dist/api/preferences-api.d.ts +176 -0
- package/dist/api/preferences-api.js +293 -0
- package/dist/api/projects-api.d.ts +541 -0
- package/dist/api/projects-api.js +915 -0
- package/dist/api/subscribers-api.d.ts +780 -0
- package/dist/api/subscribers-api.js +1292 -0
- package/dist/api/topics-api.d.ts +689 -0
- package/dist/api/topics-api.js +1143 -0
- package/dist/api/translations-api.d.ts +239 -0
- package/dist/api/translations-api.js +405 -0
- package/dist/api/webhooks-api.d.ts +208 -0
- package/dist/api/webhooks-api.js +344 -0
- package/dist/api/workflows-api.d.ts +493 -0
- package/dist/api/workflows-api.js +820 -0
- package/dist/api.d.ts +34 -0
- package/dist/api.js +52 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +46 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +139 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +44 -0
- package/dist/esm/api/activity-api.d.ts +381 -0
- package/dist/esm/api/activity-api.js +629 -0
- package/dist/esm/api/billing-api.d.ts +337 -0
- package/dist/esm/api/billing-api.js +564 -0
- package/dist/esm/api/channel-connections-api.d.ts +263 -0
- package/dist/esm/api/channel-connections-api.js +430 -0
- package/dist/esm/api/channel-endpoints-api.d.ts +263 -0
- package/dist/esm/api/channel-endpoints-api.js +430 -0
- package/dist/esm/api/contexts-api.d.ts +278 -0
- package/dist/esm/api/contexts-api.js +451 -0
- package/dist/esm/api/events-api.d.ts +203 -0
- package/dist/esm/api/events-api.js +334 -0
- package/dist/esm/api/feature-flags-api.d.ts +74 -0
- package/dist/esm/api/feature-flags-api.js +117 -0
- package/dist/esm/api/health-api.d.ts +144 -0
- package/dist/esm/api/health-api.js +230 -0
- package/dist/esm/api/inbound-parse-api.d.ts +79 -0
- package/dist/esm/api/inbound-parse-api.js +122 -0
- package/dist/esm/api/inbox-api.d.ts +582 -0
- package/dist/esm/api/inbox-api.js +969 -0
- package/dist/esm/api/integrations-api.d.ts +420 -0
- package/dist/esm/api/integrations-api.js +700 -0
- package/dist/esm/api/layouts-api.d.ts +431 -0
- package/dist/esm/api/layouts-api.js +714 -0
- package/dist/esm/api/messages-api.d.ts +185 -0
- package/dist/esm/api/messages-api.js +296 -0
- package/dist/esm/api/metrics-api.d.ts +74 -0
- package/dist/esm/api/metrics-api.js +114 -0
- package/dist/esm/api/notification-groups-api.d.ts +202 -0
- package/dist/esm/api/notification-groups-api.js +333 -0
- package/dist/esm/api/notifications-api.d.ts +171 -0
- package/dist/esm/api/notifications-api.js +277 -0
- package/dist/esm/api/preferences-api.d.ts +176 -0
- package/dist/esm/api/preferences-api.js +286 -0
- package/dist/esm/api/projects-api.d.ts +541 -0
- package/dist/esm/api/projects-api.js +908 -0
- package/dist/esm/api/subscribers-api.d.ts +780 -0
- package/dist/esm/api/subscribers-api.js +1285 -0
- package/dist/esm/api/topics-api.d.ts +689 -0
- package/dist/esm/api/topics-api.js +1136 -0
- package/dist/esm/api/translations-api.d.ts +239 -0
- package/dist/esm/api/translations-api.js +398 -0
- package/dist/esm/api/webhooks-api.d.ts +208 -0
- package/dist/esm/api/webhooks-api.js +337 -0
- package/dist/esm/api/workflows-api.d.ts +493 -0
- package/dist/esm/api/workflows-api.js +813 -0
- package/dist/esm/api.d.ts +34 -0
- package/dist/esm/api.js +36 -0
- package/dist/esm/base.d.ts +42 -0
- package/dist/esm/base.js +41 -0
- package/dist/esm/common.d.ts +34 -0
- package/dist/esm/common.js +126 -0
- package/dist/esm/configuration.d.ts +98 -0
- package/dist/esm/configuration.js +40 -0
- package/dist/esm/index.d.ts +14 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/models/action-body.d.ts +20 -0
- package/dist/esm/models/action-body.js +14 -0
- package/dist/esm/models/action-record.d.ts +22 -0
- package/dist/esm/models/action-record.js +14 -0
- package/dist/esm/models/action-type.d.ts +22 -0
- package/dist/esm/models/action-type.js +23 -0
- package/dist/esm/models/activity-chart-point.d.ts +40 -0
- package/dist/esm/models/activity-chart-point.js +14 -0
- package/dist/esm/models/activity-record.d.ts +56 -0
- package/dist/esm/models/activity-record.js +14 -0
- package/dist/esm/models/activity-request-record.d.ts +40 -0
- package/dist/esm/models/activity-request-record.js +14 -0
- package/dist/esm/models/activity-stats.d.ts +40 -0
- package/dist/esm/models/activity-stats.js +14 -0
- package/dist/esm/models/actor-type.d.ts +21 -0
- package/dist/esm/models/actor-type.js +22 -0
- package/dist/esm/models/api-key-created.d.ts +32 -0
- package/dist/esm/models/api-key-created.js +14 -0
- package/dist/esm/models/api-key-info.d.ts +32 -0
- package/dist/esm/models/api-key-info.js +14 -0
- package/dist/esm/models/auto-configure-result.d.ts +17 -0
- package/dist/esm/models/auto-configure-result.js +14 -0
- package/dist/esm/models/billing-interval.d.ts +19 -0
- package/dist/esm/models/billing-interval.js +20 -0
- package/dist/esm/models/branding.d.ts +40 -0
- package/dist/esm/models/branding.js +14 -0
- package/dist/esm/models/broadcast-trigger.d.ts +23 -0
- package/dist/esm/models/broadcast-trigger.js +14 -0
- package/dist/esm/models/bulk-create-subscribers.d.ts +18 -0
- package/dist/esm/models/bulk-create-subscribers.js +14 -0
- package/dist/esm/models/bulk-preference-item.d.ts +17 -0
- package/dist/esm/models/bulk-preference-item.js +14 -0
- package/dist/esm/models/bulk-preferences.d.ts +18 -0
- package/dist/esm/models/bulk-preferences.js +14 -0
- package/dist/esm/models/bulk-result.d.ts +16 -0
- package/dist/esm/models/bulk-result.js +14 -0
- package/dist/esm/models/bulk-trigger.d.ts +21 -0
- package/dist/esm/models/bulk-trigger.js +14 -0
- package/dist/esm/models/channel-connection-record.d.ts +37 -0
- package/dist/esm/models/channel-connection-record.js +14 -0
- package/dist/esm/models/channel-endpoint-record.d.ts +41 -0
- package/dist/esm/models/channel-endpoint-record.js +14 -0
- package/dist/esm/models/channel-preferences.d.ts +21 -0
- package/dist/esm/models/channel-preferences.js +14 -0
- package/dist/esm/models/channel-type.d.ts +22 -0
- package/dist/esm/models/channel-type.js +23 -0
- package/dist/esm/models/chart-query.d.ts +20 -0
- package/dist/esm/models/chart-query.js +14 -0
- package/dist/esm/models/chat-oauth-request.d.ts +15 -0
- package/dist/esm/models/chat-oauth-request.js +14 -0
- package/dist/esm/models/chat-oauth.d.ts +17 -0
- package/dist/esm/models/chat-oauth.js +14 -0
- package/dist/esm/models/checkout-session.d.ts +25 -0
- package/dist/esm/models/checkout-session.js +14 -0
- package/dist/esm/models/context-record.d.ts +36 -0
- package/dist/esm/models/context-record.js +14 -0
- package/dist/esm/models/create-channel-connection.d.ts +29 -0
- package/dist/esm/models/create-channel-connection.js +14 -0
- package/dist/esm/models/create-channel-endpoint.d.ts +33 -0
- package/dist/esm/models/create-channel-endpoint.js +14 -0
- package/dist/esm/models/create-checkout.d.ts +25 -0
- package/dist/esm/models/create-checkout.js +14 -0
- package/dist/esm/models/create-context.d.ts +28 -0
- package/dist/esm/models/create-context.js +14 -0
- package/dist/esm/models/create-integration.d.ts +41 -0
- package/dist/esm/models/create-integration.js +14 -0
- package/dist/esm/models/create-layout.d.ts +28 -0
- package/dist/esm/models/create-layout.js +14 -0
- package/dist/esm/models/create-notification-group.d.ts +20 -0
- package/dist/esm/models/create-notification-group.js +14 -0
- package/dist/esm/models/create-project.d.ts +20 -0
- package/dist/esm/models/create-project.js +14 -0
- package/dist/esm/models/create-subscriber.d.ts +52 -0
- package/dist/esm/models/create-subscriber.js +14 -0
- package/dist/esm/models/create-subscription.d.ts +17 -0
- package/dist/esm/models/create-subscription.js +14 -0
- package/dist/esm/models/create-topic.d.ts +24 -0
- package/dist/esm/models/create-topic.js +14 -0
- package/dist/esm/models/create-webhook.d.ts +24 -0
- package/dist/esm/models/create-webhook.js +14 -0
- package/dist/esm/models/create-workflow.d.ts +50 -0
- package/dist/esm/models/create-workflow.js +14 -0
- package/dist/esm/models/cta-type.d.ts +18 -0
- package/dist/esm/models/cta-type.js +19 -0
- package/dist/esm/models/cursor-meta.d.ts +32 -0
- package/dist/esm/models/cursor-meta.js +14 -0
- package/dist/esm/models/cursor-paginated-feed-item-data-inner.d.ts +34 -0
- package/dist/esm/models/cursor-paginated-feed-item-data-inner.js +14 -0
- package/dist/esm/models/cursor-paginated-feed-item.d.ts +26 -0
- package/dist/esm/models/cursor-paginated-feed-item.js +14 -0
- package/dist/esm/models/cursor-paginated-message-record-data-inner.d.ts +39 -0
- package/dist/esm/models/cursor-paginated-message-record-data-inner.js +14 -0
- package/dist/esm/models/cursor-paginated-message-record.d.ts +26 -0
- package/dist/esm/models/cursor-paginated-message-record.js +14 -0
- package/dist/esm/models/cursor-pagination.d.ts +28 -0
- package/dist/esm/models/cursor-pagination.js +14 -0
- package/dist/esm/models/delete-subscription.d.ts +14 -0
- package/dist/esm/models/delete-subscription.js +14 -0
- package/dist/esm/models/delivery-ack.d.ts +17 -0
- package/dist/esm/models/delivery-ack.js +14 -0
- package/dist/esm/models/delivery-status-webhook.d.ts +23 -0
- package/dist/esm/models/delivery-status-webhook.js +14 -0
- package/dist/esm/models/dns-settings.d.ts +24 -0
- package/dist/esm/models/dns-settings.js +14 -0
- package/dist/esm/models/engagement-stats-response.d.ts +32 -0
- package/dist/esm/models/engagement-stats-response.js +14 -0
- package/dist/esm/models/entitlement-item.d.ts +28 -0
- package/dist/esm/models/entitlement-item.js +14 -0
- package/dist/esm/models/entitlements.d.ts +18 -0
- package/dist/esm/models/entitlements.js +14 -0
- package/dist/esm/models/error-detail.d.ts +32 -0
- package/dist/esm/models/error-detail.js +14 -0
- package/dist/esm/models/events-usage.d.ts +24 -0
- package/dist/esm/models/events-usage.js +14 -0
- package/dist/esm/models/feed-item.d.ts +34 -0
- package/dist/esm/models/feed-item.js +14 -0
- package/dist/esm/models/feed-query.d.ts +22 -0
- package/dist/esm/models/feed-query.js +14 -0
- package/dist/esm/models/inbox-notification.d.ts +33 -0
- package/dist/esm/models/inbox-notification.js +14 -0
- package/dist/esm/models/inbox-preference.d.ts +19 -0
- package/dist/esm/models/inbox-preference.js +14 -0
- package/dist/esm/models/inbox-query.d.ts +20 -0
- package/dist/esm/models/inbox-query.js +14 -0
- package/dist/esm/models/index.d.ts +158 -0
- package/dist/esm/models/index.js +158 -0
- package/dist/esm/models/init-session-request.d.ts +24 -0
- package/dist/esm/models/init-session-request.js +14 -0
- package/dist/esm/models/init-session-response.d.ts +24 -0
- package/dist/esm/models/init-session-response.js +14 -0
- package/dist/esm/models/integration-record.d.ts +49 -0
- package/dist/esm/models/integration-record.js +14 -0
- package/dist/esm/models/invite-member-body.d.ts +24 -0
- package/dist/esm/models/invite-member-body.js +14 -0
- package/dist/esm/models/invite-member.d.ts +24 -0
- package/dist/esm/models/invite-member.js +14 -0
- package/dist/esm/models/job-log.d.ts +41 -0
- package/dist/esm/models/job-log.js +14 -0
- package/dist/esm/models/layout-preview-result.d.ts +17 -0
- package/dist/esm/models/layout-preview-result.js +14 -0
- package/dist/esm/models/layout-preview.d.ts +17 -0
- package/dist/esm/models/layout-preview.js +14 -0
- package/dist/esm/models/layout-record.d.ts +31 -0
- package/dist/esm/models/layout-record.js +14 -0
- package/dist/esm/models/layout-usage-item.d.ts +18 -0
- package/dist/esm/models/layout-usage-item.js +14 -0
- package/dist/esm/models/mark-all.d.ts +17 -0
- package/dist/esm/models/mark-all.js +14 -0
- package/dist/esm/models/mark-messages.d.ts +18 -0
- package/dist/esm/models/mark-messages.js +14 -0
- package/dist/esm/models/mark-result.d.ts +17 -0
- package/dist/esm/models/mark-result.js +14 -0
- package/dist/esm/models/member-record.d.ts +32 -0
- package/dist/esm/models/member-record.js +14 -0
- package/dist/esm/models/member-role.d.ts +21 -0
- package/dist/esm/models/member-role.js +22 -0
- package/dist/esm/models/member-status.d.ts +20 -0
- package/dist/esm/models/member-status.js +21 -0
- package/dist/esm/models/message-query.d.ts +40 -0
- package/dist/esm/models/message-query.js +14 -0
- package/dist/esm/models/message-record.d.ts +39 -0
- package/dist/esm/models/message-record.js +14 -0
- package/dist/esm/models/notification-count.d.ts +19 -0
- package/dist/esm/models/notification-count.js +14 -0
- package/dist/esm/models/notification-group-record.d.ts +24 -0
- package/dist/esm/models/notification-group-record.js +14 -0
- package/dist/esm/models/notification-log.d.ts +33 -0
- package/dist/esm/models/notification-log.js +14 -0
- package/dist/esm/models/notification-query.d.ts +28 -0
- package/dist/esm/models/notification-query.js +14 -0
- package/dist/esm/models/offset-meta.d.ts +32 -0
- package/dist/esm/models/offset-meta.js +14 -0
- package/dist/esm/models/offset-pagination.d.ts +32 -0
- package/dist/esm/models/offset-pagination.js +14 -0
- package/dist/esm/models/online-status.d.ts +17 -0
- package/dist/esm/models/online-status.js +14 -0
- package/dist/esm/models/paginated-channel-connection-record-data-inner.d.ts +37 -0
- package/dist/esm/models/paginated-channel-connection-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-channel-connection-record.d.ts +26 -0
- package/dist/esm/models/paginated-channel-connection-record.js +14 -0
- package/dist/esm/models/paginated-channel-endpoint-record-data-inner.d.ts +41 -0
- package/dist/esm/models/paginated-channel-endpoint-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-channel-endpoint-record.d.ts +26 -0
- package/dist/esm/models/paginated-channel-endpoint-record.js +14 -0
- package/dist/esm/models/paginated-context-record-data-inner.d.ts +36 -0
- package/dist/esm/models/paginated-context-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-context-record.d.ts +26 -0
- package/dist/esm/models/paginated-context-record.js +14 -0
- package/dist/esm/models/paginated-integration-record-data-inner.d.ts +49 -0
- package/dist/esm/models/paginated-integration-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-integration-record.d.ts +26 -0
- package/dist/esm/models/paginated-integration-record.js +14 -0
- package/dist/esm/models/paginated-layout-record-data-inner.d.ts +31 -0
- package/dist/esm/models/paginated-layout-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-layout-record.d.ts +26 -0
- package/dist/esm/models/paginated-layout-record.js +14 -0
- package/dist/esm/models/paginated-subscriber-record-data-inner.d.ts +61 -0
- package/dist/esm/models/paginated-subscriber-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-subscriber-record.d.ts +26 -0
- package/dist/esm/models/paginated-subscriber-record.js +14 -0
- package/dist/esm/models/paginated-topic-record-data-inner.d.ts +22 -0
- package/dist/esm/models/paginated-topic-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-topic-record.d.ts +26 -0
- package/dist/esm/models/paginated-topic-record.js +14 -0
- package/dist/esm/models/paginated-topic-subscription-record-data-inner.d.ts +33 -0
- package/dist/esm/models/paginated-topic-subscription-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-topic-subscription-record.d.ts +26 -0
- package/dist/esm/models/paginated-topic-subscription-record.js +14 -0
- package/dist/esm/models/paginated-workflow-record-data-inner.d.ts +52 -0
- package/dist/esm/models/paginated-workflow-record-data-inner.js +14 -0
- package/dist/esm/models/paginated-workflow-record.d.ts +26 -0
- package/dist/esm/models/paginated-workflow-record.js +14 -0
- package/dist/esm/models/pagination-query.d.ts +28 -0
- package/dist/esm/models/pagination-query.js +14 -0
- package/dist/esm/models/patch-credentials.d.ts +23 -0
- package/dist/esm/models/patch-credentials.js +14 -0
- package/dist/esm/models/plan-limits-response.d.ts +45 -0
- package/dist/esm/models/plan-limits-response.js +14 -0
- package/dist/esm/models/plan.d.ts +22 -0
- package/dist/esm/models/plan.js +23 -0
- package/dist/esm/models/portal-url.d.ts +20 -0
- package/dist/esm/models/portal-url.js +14 -0
- package/dist/esm/models/preference-channels.d.ts +21 -0
- package/dist/esm/models/preference-channels.js +14 -0
- package/dist/esm/models/preference-record.d.ts +24 -0
- package/dist/esm/models/preference-record.js +14 -0
- package/dist/esm/models/preview-result.d.ts +14 -0
- package/dist/esm/models/preview-result.js +14 -0
- package/dist/esm/models/price-info.d.ts +32 -0
- package/dist/esm/models/price-info.js +14 -0
- package/dist/esm/models/prices.d.ts +18 -0
- package/dist/esm/models/prices.js +14 -0
- package/dist/esm/models/project-record.d.ts +34 -0
- package/dist/esm/models/project-record.js +14 -0
- package/dist/esm/models/set-credentials.d.ts +23 -0
- package/dist/esm/models/set-credentials.js +14 -0
- package/dist/esm/models/step-preview.d.ts +17 -0
- package/dist/esm/models/step-preview.js +14 -0
- package/dist/esm/models/step-record.d.ts +30 -0
- package/dist/esm/models/step-record.js +14 -0
- package/dist/esm/models/step-type.d.ts +27 -0
- package/dist/esm/models/step-type.js +28 -0
- package/dist/esm/models/subscriber-credential.d.ts +20 -0
- package/dist/esm/models/subscriber-credential.js +14 -0
- package/dist/esm/models/subscriber-payload.d.ts +17 -0
- package/dist/esm/models/subscriber-payload.js +14 -0
- package/dist/esm/models/subscriber-record.d.ts +61 -0
- package/dist/esm/models/subscriber-record.js +14 -0
- package/dist/esm/models/subscription.d.ts +59 -0
- package/dist/esm/models/subscription.js +14 -0
- package/dist/esm/models/sync-workflow.d.ts +18 -0
- package/dist/esm/models/sync-workflow.js +14 -0
- package/dist/esm/models/system-avatar-icon.d.ts +23 -0
- package/dist/esm/models/system-avatar-icon.js +24 -0
- package/dist/esm/models/topic-record.d.ts +22 -0
- package/dist/esm/models/topic-record.js +14 -0
- package/dist/esm/models/topic-subscribers.d.ts +17 -0
- package/dist/esm/models/topic-subscribers.js +14 -0
- package/dist/esm/models/topic-subscription-record.d.ts +33 -0
- package/dist/esm/models/topic-subscription-record.js +14 -0
- package/dist/esm/models/topic-subscription.d.ts +21 -0
- package/dist/esm/models/topic-subscription.js +14 -0
- package/dist/esm/models/trial-info.d.ts +32 -0
- package/dist/esm/models/trial-info.js +14 -0
- package/dist/esm/models/trigger-event.d.ts +41 -0
- package/dist/esm/models/trigger-event.js +14 -0
- package/dist/esm/models/trigger-recipients-one-of.d.ts +17 -0
- package/dist/esm/models/trigger-recipients-one-of.js +14 -0
- package/dist/esm/models/trigger-recipients.d.ts +18 -0
- package/dist/esm/models/trigger-recipients.js +14 -0
- package/dist/esm/models/trigger-result.d.ts +29 -0
- package/dist/esm/models/trigger-result.js +14 -0
- package/dist/esm/models/trigger-status.d.ts +24 -0
- package/dist/esm/models/trigger-status.js +25 -0
- package/dist/esm/models/unseen-count.d.ts +17 -0
- package/dist/esm/models/unseen-count.js +14 -0
- package/dist/esm/models/update-channel-connection.d.ts +17 -0
- package/dist/esm/models/update-channel-connection.js +14 -0
- package/dist/esm/models/update-channel-endpoint.d.ts +21 -0
- package/dist/esm/models/update-channel-endpoint.js +14 -0
- package/dist/esm/models/update-context.d.ts +20 -0
- package/dist/esm/models/update-context.js +14 -0
- package/dist/esm/models/update-inbox-preferences.d.ts +21 -0
- package/dist/esm/models/update-inbox-preferences.js +14 -0
- package/dist/esm/models/update-integration.d.ts +32 -0
- package/dist/esm/models/update-integration.js +14 -0
- package/dist/esm/models/update-layout.d.ts +23 -0
- package/dist/esm/models/update-layout.js +14 -0
- package/dist/esm/models/update-notification-group.d.ts +20 -0
- package/dist/esm/models/update-notification-group.js +14 -0
- package/dist/esm/models/update-preference.d.ts +19 -0
- package/dist/esm/models/update-preference.js +14 -0
- package/dist/esm/models/update-project.d.ts +25 -0
- package/dist/esm/models/update-project.js +14 -0
- package/dist/esm/models/update-subscriber.d.ts +48 -0
- package/dist/esm/models/update-subscriber.js +14 -0
- package/dist/esm/models/update-subscription-meta.d.ts +17 -0
- package/dist/esm/models/update-subscription-meta.js +14 -0
- package/dist/esm/models/update-topic.d.ts +20 -0
- package/dist/esm/models/update-topic.js +14 -0
- package/dist/esm/models/update-workflow.d.ts +42 -0
- package/dist/esm/models/update-workflow.js +14 -0
- package/dist/esm/models/usage.d.ts +49 -0
- package/dist/esm/models/usage.js +14 -0
- package/dist/esm/models/webhook-record.d.ts +40 -0
- package/dist/esm/models/webhook-record.js +14 -0
- package/dist/esm/models/widget-settings.d.ts +20 -0
- package/dist/esm/models/widget-settings.js +14 -0
- package/dist/esm/models/workflow-record.d.ts +52 -0
- package/dist/esm/models/workflow-record.js +14 -0
- package/dist/esm/models/workflow-run-record.d.ts +40 -0
- package/dist/esm/models/workflow-run-record.js +14 -0
- package/dist/esm/models/workflow-stats-response.d.ts +32 -0
- package/dist/esm/models/workflow-stats-response.js +14 -0
- package/dist/esm/models/workflow-status.d.ts +20 -0
- package/dist/esm/models/workflow-status.js +14 -0
- package/dist/esm/models/workflow-step-create.d.ts +41 -0
- package/dist/esm/models/workflow-step-create.js +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +32 -0
- package/dist/models/action-body.d.ts +20 -0
- package/dist/models/action-body.js +15 -0
- package/dist/models/action-record.d.ts +22 -0
- package/dist/models/action-record.js +15 -0
- package/dist/models/action-type.d.ts +22 -0
- package/dist/models/action-type.js +26 -0
- package/dist/models/activity-chart-point.d.ts +40 -0
- package/dist/models/activity-chart-point.js +15 -0
- package/dist/models/activity-record.d.ts +56 -0
- package/dist/models/activity-record.js +15 -0
- package/dist/models/activity-request-record.d.ts +40 -0
- package/dist/models/activity-request-record.js +15 -0
- package/dist/models/activity-stats.d.ts +40 -0
- package/dist/models/activity-stats.js +15 -0
- package/dist/models/actor-type.d.ts +21 -0
- package/dist/models/actor-type.js +25 -0
- package/dist/models/api-key-created.d.ts +32 -0
- package/dist/models/api-key-created.js +15 -0
- package/dist/models/api-key-info.d.ts +32 -0
- package/dist/models/api-key-info.js +15 -0
- package/dist/models/auto-configure-result.d.ts +17 -0
- package/dist/models/auto-configure-result.js +15 -0
- package/dist/models/billing-interval.d.ts +19 -0
- package/dist/models/billing-interval.js +23 -0
- package/dist/models/branding.d.ts +40 -0
- package/dist/models/branding.js +15 -0
- package/dist/models/broadcast-trigger.d.ts +23 -0
- package/dist/models/broadcast-trigger.js +15 -0
- package/dist/models/bulk-create-subscribers.d.ts +18 -0
- package/dist/models/bulk-create-subscribers.js +15 -0
- package/dist/models/bulk-preference-item.d.ts +17 -0
- package/dist/models/bulk-preference-item.js +15 -0
- package/dist/models/bulk-preferences.d.ts +18 -0
- package/dist/models/bulk-preferences.js +15 -0
- package/dist/models/bulk-result.d.ts +16 -0
- package/dist/models/bulk-result.js +15 -0
- package/dist/models/bulk-trigger.d.ts +21 -0
- package/dist/models/bulk-trigger.js +15 -0
- package/dist/models/channel-connection-record.d.ts +37 -0
- package/dist/models/channel-connection-record.js +15 -0
- package/dist/models/channel-endpoint-record.d.ts +41 -0
- package/dist/models/channel-endpoint-record.js +15 -0
- package/dist/models/channel-preferences.d.ts +21 -0
- package/dist/models/channel-preferences.js +15 -0
- package/dist/models/channel-type.d.ts +22 -0
- package/dist/models/channel-type.js +26 -0
- package/dist/models/chart-query.d.ts +20 -0
- package/dist/models/chart-query.js +15 -0
- package/dist/models/chat-oauth-request.d.ts +15 -0
- package/dist/models/chat-oauth-request.js +15 -0
- package/dist/models/chat-oauth.d.ts +17 -0
- package/dist/models/chat-oauth.js +15 -0
- package/dist/models/checkout-session.d.ts +25 -0
- package/dist/models/checkout-session.js +15 -0
- package/dist/models/context-record.d.ts +36 -0
- package/dist/models/context-record.js +15 -0
- package/dist/models/create-channel-connection.d.ts +29 -0
- package/dist/models/create-channel-connection.js +15 -0
- package/dist/models/create-channel-endpoint.d.ts +33 -0
- package/dist/models/create-channel-endpoint.js +15 -0
- package/dist/models/create-checkout.d.ts +25 -0
- package/dist/models/create-checkout.js +15 -0
- package/dist/models/create-context.d.ts +28 -0
- package/dist/models/create-context.js +15 -0
- package/dist/models/create-integration.d.ts +41 -0
- package/dist/models/create-integration.js +15 -0
- package/dist/models/create-layout.d.ts +28 -0
- package/dist/models/create-layout.js +15 -0
- package/dist/models/create-notification-group.d.ts +20 -0
- package/dist/models/create-notification-group.js +15 -0
- package/dist/models/create-project.d.ts +20 -0
- package/dist/models/create-project.js +15 -0
- package/dist/models/create-subscriber.d.ts +52 -0
- package/dist/models/create-subscriber.js +15 -0
- package/dist/models/create-subscription.d.ts +17 -0
- package/dist/models/create-subscription.js +15 -0
- package/dist/models/create-topic.d.ts +24 -0
- package/dist/models/create-topic.js +15 -0
- package/dist/models/create-webhook.d.ts +24 -0
- package/dist/models/create-webhook.js +15 -0
- package/dist/models/create-workflow.d.ts +50 -0
- package/dist/models/create-workflow.js +15 -0
- package/dist/models/cta-type.d.ts +18 -0
- package/dist/models/cta-type.js +22 -0
- package/dist/models/cursor-meta.d.ts +32 -0
- package/dist/models/cursor-meta.js +15 -0
- package/dist/models/cursor-paginated-feed-item-data-inner.d.ts +34 -0
- package/dist/models/cursor-paginated-feed-item-data-inner.js +15 -0
- package/dist/models/cursor-paginated-feed-item.d.ts +26 -0
- package/dist/models/cursor-paginated-feed-item.js +15 -0
- package/dist/models/cursor-paginated-message-record-data-inner.d.ts +39 -0
- package/dist/models/cursor-paginated-message-record-data-inner.js +15 -0
- package/dist/models/cursor-paginated-message-record.d.ts +26 -0
- package/dist/models/cursor-paginated-message-record.js +15 -0
- package/dist/models/cursor-pagination.d.ts +28 -0
- package/dist/models/cursor-pagination.js +15 -0
- package/dist/models/delete-subscription.d.ts +14 -0
- package/dist/models/delete-subscription.js +15 -0
- package/dist/models/delivery-ack.d.ts +17 -0
- package/dist/models/delivery-ack.js +15 -0
- package/dist/models/delivery-status-webhook.d.ts +23 -0
- package/dist/models/delivery-status-webhook.js +15 -0
- package/dist/models/dns-settings.d.ts +24 -0
- package/dist/models/dns-settings.js +15 -0
- package/dist/models/engagement-stats-response.d.ts +32 -0
- package/dist/models/engagement-stats-response.js +15 -0
- package/dist/models/entitlement-item.d.ts +28 -0
- package/dist/models/entitlement-item.js +15 -0
- package/dist/models/entitlements.d.ts +18 -0
- package/dist/models/entitlements.js +15 -0
- package/dist/models/error-detail.d.ts +32 -0
- package/dist/models/error-detail.js +15 -0
- package/dist/models/events-usage.d.ts +24 -0
- package/dist/models/events-usage.js +15 -0
- package/dist/models/feed-item.d.ts +34 -0
- package/dist/models/feed-item.js +15 -0
- package/dist/models/feed-query.d.ts +22 -0
- package/dist/models/feed-query.js +15 -0
- package/dist/models/inbox-notification.d.ts +33 -0
- package/dist/models/inbox-notification.js +15 -0
- package/dist/models/inbox-preference.d.ts +19 -0
- package/dist/models/inbox-preference.js +15 -0
- package/dist/models/inbox-query.d.ts +20 -0
- package/dist/models/inbox-query.js +15 -0
- package/dist/models/index.d.ts +158 -0
- package/dist/models/index.js +174 -0
- package/dist/models/init-session-request.d.ts +24 -0
- package/dist/models/init-session-request.js +15 -0
- package/dist/models/init-session-response.d.ts +24 -0
- package/dist/models/init-session-response.js +15 -0
- package/dist/models/integration-record.d.ts +49 -0
- package/dist/models/integration-record.js +15 -0
- package/dist/models/invite-member-body.d.ts +24 -0
- package/dist/models/invite-member-body.js +15 -0
- package/dist/models/invite-member.d.ts +24 -0
- package/dist/models/invite-member.js +15 -0
- package/dist/models/job-log.d.ts +41 -0
- package/dist/models/job-log.js +15 -0
- package/dist/models/layout-preview-result.d.ts +17 -0
- package/dist/models/layout-preview-result.js +15 -0
- package/dist/models/layout-preview.d.ts +17 -0
- package/dist/models/layout-preview.js +15 -0
- package/dist/models/layout-record.d.ts +31 -0
- package/dist/models/layout-record.js +15 -0
- package/dist/models/layout-usage-item.d.ts +18 -0
- package/dist/models/layout-usage-item.js +15 -0
- package/dist/models/mark-all.d.ts +17 -0
- package/dist/models/mark-all.js +15 -0
- package/dist/models/mark-messages.d.ts +18 -0
- package/dist/models/mark-messages.js +15 -0
- package/dist/models/mark-result.d.ts +17 -0
- package/dist/models/mark-result.js +15 -0
- package/dist/models/member-record.d.ts +32 -0
- package/dist/models/member-record.js +15 -0
- package/dist/models/member-role.d.ts +21 -0
- package/dist/models/member-role.js +25 -0
- package/dist/models/member-status.d.ts +20 -0
- package/dist/models/member-status.js +24 -0
- package/dist/models/message-query.d.ts +40 -0
- package/dist/models/message-query.js +15 -0
- package/dist/models/message-record.d.ts +39 -0
- package/dist/models/message-record.js +15 -0
- package/dist/models/notification-count.d.ts +19 -0
- package/dist/models/notification-count.js +15 -0
- package/dist/models/notification-group-record.d.ts +24 -0
- package/dist/models/notification-group-record.js +15 -0
- package/dist/models/notification-log.d.ts +33 -0
- package/dist/models/notification-log.js +15 -0
- package/dist/models/notification-query.d.ts +28 -0
- package/dist/models/notification-query.js +15 -0
- package/dist/models/offset-meta.d.ts +32 -0
- package/dist/models/offset-meta.js +15 -0
- package/dist/models/offset-pagination.d.ts +32 -0
- package/dist/models/offset-pagination.js +15 -0
- package/dist/models/online-status.d.ts +17 -0
- package/dist/models/online-status.js +15 -0
- package/dist/models/paginated-channel-connection-record-data-inner.d.ts +37 -0
- package/dist/models/paginated-channel-connection-record-data-inner.js +15 -0
- package/dist/models/paginated-channel-connection-record.d.ts +26 -0
- package/dist/models/paginated-channel-connection-record.js +15 -0
- package/dist/models/paginated-channel-endpoint-record-data-inner.d.ts +41 -0
- package/dist/models/paginated-channel-endpoint-record-data-inner.js +15 -0
- package/dist/models/paginated-channel-endpoint-record.d.ts +26 -0
- package/dist/models/paginated-channel-endpoint-record.js +15 -0
- package/dist/models/paginated-context-record-data-inner.d.ts +36 -0
- package/dist/models/paginated-context-record-data-inner.js +15 -0
- package/dist/models/paginated-context-record.d.ts +26 -0
- package/dist/models/paginated-context-record.js +15 -0
- package/dist/models/paginated-integration-record-data-inner.d.ts +49 -0
- package/dist/models/paginated-integration-record-data-inner.js +15 -0
- package/dist/models/paginated-integration-record.d.ts +26 -0
- package/dist/models/paginated-integration-record.js +15 -0
- package/dist/models/paginated-layout-record-data-inner.d.ts +31 -0
- package/dist/models/paginated-layout-record-data-inner.js +15 -0
- package/dist/models/paginated-layout-record.d.ts +26 -0
- package/dist/models/paginated-layout-record.js +15 -0
- package/dist/models/paginated-subscriber-record-data-inner.d.ts +61 -0
- package/dist/models/paginated-subscriber-record-data-inner.js +15 -0
- package/dist/models/paginated-subscriber-record.d.ts +26 -0
- package/dist/models/paginated-subscriber-record.js +15 -0
- package/dist/models/paginated-topic-record-data-inner.d.ts +22 -0
- package/dist/models/paginated-topic-record-data-inner.js +15 -0
- package/dist/models/paginated-topic-record.d.ts +26 -0
- package/dist/models/paginated-topic-record.js +15 -0
- package/dist/models/paginated-topic-subscription-record-data-inner.d.ts +33 -0
- package/dist/models/paginated-topic-subscription-record-data-inner.js +15 -0
- package/dist/models/paginated-topic-subscription-record.d.ts +26 -0
- package/dist/models/paginated-topic-subscription-record.js +15 -0
- package/dist/models/paginated-workflow-record-data-inner.d.ts +52 -0
- package/dist/models/paginated-workflow-record-data-inner.js +15 -0
- package/dist/models/paginated-workflow-record.d.ts +26 -0
- package/dist/models/paginated-workflow-record.js +15 -0
- package/dist/models/pagination-query.d.ts +28 -0
- package/dist/models/pagination-query.js +15 -0
- package/dist/models/patch-credentials.d.ts +23 -0
- package/dist/models/patch-credentials.js +15 -0
- package/dist/models/plan-limits-response.d.ts +45 -0
- package/dist/models/plan-limits-response.js +15 -0
- package/dist/models/plan.d.ts +22 -0
- package/dist/models/plan.js +26 -0
- package/dist/models/portal-url.d.ts +20 -0
- package/dist/models/portal-url.js +15 -0
- package/dist/models/preference-channels.d.ts +21 -0
- package/dist/models/preference-channels.js +15 -0
- package/dist/models/preference-record.d.ts +24 -0
- package/dist/models/preference-record.js +15 -0
- package/dist/models/preview-result.d.ts +14 -0
- package/dist/models/preview-result.js +15 -0
- package/dist/models/price-info.d.ts +32 -0
- package/dist/models/price-info.js +15 -0
- package/dist/models/prices.d.ts +18 -0
- package/dist/models/prices.js +15 -0
- package/dist/models/project-record.d.ts +34 -0
- package/dist/models/project-record.js +15 -0
- package/dist/models/set-credentials.d.ts +23 -0
- package/dist/models/set-credentials.js +15 -0
- package/dist/models/step-preview.d.ts +17 -0
- package/dist/models/step-preview.js +15 -0
- package/dist/models/step-record.d.ts +30 -0
- package/dist/models/step-record.js +15 -0
- package/dist/models/step-type.d.ts +27 -0
- package/dist/models/step-type.js +31 -0
- package/dist/models/subscriber-credential.d.ts +20 -0
- package/dist/models/subscriber-credential.js +15 -0
- package/dist/models/subscriber-payload.d.ts +17 -0
- package/dist/models/subscriber-payload.js +15 -0
- package/dist/models/subscriber-record.d.ts +61 -0
- package/dist/models/subscriber-record.js +15 -0
- package/dist/models/subscription.d.ts +59 -0
- package/dist/models/subscription.js +15 -0
- package/dist/models/sync-workflow.d.ts +18 -0
- package/dist/models/sync-workflow.js +15 -0
- package/dist/models/system-avatar-icon.d.ts +23 -0
- package/dist/models/system-avatar-icon.js +27 -0
- package/dist/models/topic-record.d.ts +22 -0
- package/dist/models/topic-record.js +15 -0
- package/dist/models/topic-subscribers.d.ts +17 -0
- package/dist/models/topic-subscribers.js +15 -0
- package/dist/models/topic-subscription-record.d.ts +33 -0
- package/dist/models/topic-subscription-record.js +15 -0
- package/dist/models/topic-subscription.d.ts +21 -0
- package/dist/models/topic-subscription.js +15 -0
- package/dist/models/trial-info.d.ts +32 -0
- package/dist/models/trial-info.js +15 -0
- package/dist/models/trigger-event.d.ts +41 -0
- package/dist/models/trigger-event.js +15 -0
- package/dist/models/trigger-recipients-one-of.d.ts +17 -0
- package/dist/models/trigger-recipients-one-of.js +15 -0
- package/dist/models/trigger-recipients.d.ts +18 -0
- package/dist/models/trigger-recipients.js +15 -0
- package/dist/models/trigger-result.d.ts +29 -0
- package/dist/models/trigger-result.js +15 -0
- package/dist/models/trigger-status.d.ts +24 -0
- package/dist/models/trigger-status.js +28 -0
- package/dist/models/unseen-count.d.ts +17 -0
- package/dist/models/unseen-count.js +15 -0
- package/dist/models/update-channel-connection.d.ts +17 -0
- package/dist/models/update-channel-connection.js +15 -0
- package/dist/models/update-channel-endpoint.d.ts +21 -0
- package/dist/models/update-channel-endpoint.js +15 -0
- package/dist/models/update-context.d.ts +20 -0
- package/dist/models/update-context.js +15 -0
- package/dist/models/update-inbox-preferences.d.ts +21 -0
- package/dist/models/update-inbox-preferences.js +15 -0
- package/dist/models/update-integration.d.ts +32 -0
- package/dist/models/update-integration.js +15 -0
- package/dist/models/update-layout.d.ts +23 -0
- package/dist/models/update-layout.js +15 -0
- package/dist/models/update-notification-group.d.ts +20 -0
- package/dist/models/update-notification-group.js +15 -0
- package/dist/models/update-preference.d.ts +19 -0
- package/dist/models/update-preference.js +15 -0
- package/dist/models/update-project.d.ts +25 -0
- package/dist/models/update-project.js +15 -0
- package/dist/models/update-subscriber.d.ts +48 -0
- package/dist/models/update-subscriber.js +15 -0
- package/dist/models/update-subscription-meta.d.ts +17 -0
- package/dist/models/update-subscription-meta.js +15 -0
- package/dist/models/update-topic.d.ts +20 -0
- package/dist/models/update-topic.js +15 -0
- package/dist/models/update-workflow.d.ts +42 -0
- package/dist/models/update-workflow.js +15 -0
- package/dist/models/usage.d.ts +49 -0
- package/dist/models/usage.js +15 -0
- package/dist/models/webhook-record.d.ts +40 -0
- package/dist/models/webhook-record.js +15 -0
- package/dist/models/widget-settings.d.ts +20 -0
- package/dist/models/widget-settings.js +15 -0
- package/dist/models/workflow-record.d.ts +52 -0
- package/dist/models/workflow-record.js +15 -0
- package/dist/models/workflow-run-record.d.ts +40 -0
- package/dist/models/workflow-run-record.js +15 -0
- package/dist/models/workflow-stats-response.d.ts +32 -0
- package/dist/models/workflow-stats-response.js +15 -0
- package/dist/models/workflow-status.d.ts +20 -0
- package/dist/models/workflow-status.js +15 -0
- package/dist/models/workflow-step-create.d.ts +41 -0
- package/dist/models/workflow-step-create.js +15 -0
- package/package.json +56 -0
|
@@ -0,0 +1,820 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* enbbox API
|
|
6
|
+
* Notification infrastructure API — open-source alternative to Novu/Courier
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.WorkflowsApi = exports.WorkflowsApiFactory = exports.WorkflowsApiFp = exports.WorkflowsApiAxiosParamCreator = void 0;
|
|
26
|
+
const axios_1 = require("axios");
|
|
27
|
+
// Some imports not used depending on template conditions
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
const common_1 = require("../common");
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
const base_1 = require("../base");
|
|
32
|
+
/**
|
|
33
|
+
* WorkflowsApi - axios parameter creator
|
|
34
|
+
*/
|
|
35
|
+
const WorkflowsApiAxiosParamCreator = function (configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary POST /v1/workflows
|
|
40
|
+
* @param {CreateWorkflow} createWorkflow
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
createWorkflow: (createWorkflow_1, ...args_1) => __awaiter(this, [createWorkflow_1, ...args_1], void 0, function* (createWorkflow, options = {}) {
|
|
45
|
+
// verify required parameter 'createWorkflow' is not null or undefined
|
|
46
|
+
(0, common_1.assertParamExists)('createWorkflow', 'createWorkflow', createWorkflow);
|
|
47
|
+
const localVarPath = `/v1/workflows/`;
|
|
48
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
49
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
50
|
+
let baseOptions;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
}
|
|
54
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
55
|
+
const localVarHeaderParameter = {};
|
|
56
|
+
const localVarQueryParameter = {};
|
|
57
|
+
// authentication bearer_auth required
|
|
58
|
+
// http bearer authentication required
|
|
59
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
60
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
61
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
62
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
63
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
65
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWorkflow, localVarRequestOptions, configuration);
|
|
66
|
+
return {
|
|
67
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
68
|
+
options: localVarRequestOptions,
|
|
69
|
+
};
|
|
70
|
+
}),
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @summary DELETE /v1/workflows/:id
|
|
74
|
+
* @param {string} id Workflow ID
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
deleteWorkflow: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
79
|
+
// verify required parameter 'id' is not null or undefined
|
|
80
|
+
(0, common_1.assertParamExists)('deleteWorkflow', 'id', id);
|
|
81
|
+
const localVarPath = `/v1/workflows/{id}/`
|
|
82
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
83
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
84
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
85
|
+
let baseOptions;
|
|
86
|
+
if (configuration) {
|
|
87
|
+
baseOptions = configuration.baseOptions;
|
|
88
|
+
}
|
|
89
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
90
|
+
const localVarHeaderParameter = {};
|
|
91
|
+
const localVarQueryParameter = {};
|
|
92
|
+
// authentication bearer_auth required
|
|
93
|
+
// http bearer authentication required
|
|
94
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
95
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
96
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
97
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
98
|
+
return {
|
|
99
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
100
|
+
options: localVarRequestOptions,
|
|
101
|
+
};
|
|
102
|
+
}),
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @summary POST /v1/workflows/:id/duplicate — clone workflow
|
|
106
|
+
* @param {string} id
|
|
107
|
+
* @param {*} [options] Override http request option.
|
|
108
|
+
* @throws {RequiredError}
|
|
109
|
+
*/
|
|
110
|
+
duplicateWorkflow: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
111
|
+
// verify required parameter 'id' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('duplicateWorkflow', 'id', id);
|
|
113
|
+
const localVarPath = `/v1/workflows/{id}/duplicate/`
|
|
114
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
115
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
116
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
+
let baseOptions;
|
|
118
|
+
if (configuration) {
|
|
119
|
+
baseOptions = configuration.baseOptions;
|
|
120
|
+
}
|
|
121
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
122
|
+
const localVarHeaderParameter = {};
|
|
123
|
+
const localVarQueryParameter = {};
|
|
124
|
+
// authentication bearer_auth required
|
|
125
|
+
// http bearer authentication required
|
|
126
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
127
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
128
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
129
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
131
|
+
return {
|
|
132
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
133
|
+
options: localVarRequestOptions,
|
|
134
|
+
};
|
|
135
|
+
}),
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @summary GET /v1/workflows/:id/steps/:step_id — get step details
|
|
139
|
+
* @param {string} id
|
|
140
|
+
* @param {string} stepId
|
|
141
|
+
* @param {*} [options] Override http request option.
|
|
142
|
+
* @throws {RequiredError}
|
|
143
|
+
*/
|
|
144
|
+
getStep: (id_1, stepId_1, ...args_1) => __awaiter(this, [id_1, stepId_1, ...args_1], void 0, function* (id, stepId, options = {}) {
|
|
145
|
+
// verify required parameter 'id' is not null or undefined
|
|
146
|
+
(0, common_1.assertParamExists)('getStep', 'id', id);
|
|
147
|
+
// verify required parameter 'stepId' is not null or undefined
|
|
148
|
+
(0, common_1.assertParamExists)('getStep', 'stepId', stepId);
|
|
149
|
+
const localVarPath = `/v1/workflows/{id}/steps/{step_id}/`
|
|
150
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
151
|
+
.replace(`{${"step_id"}}`, encodeURIComponent(String(stepId)));
|
|
152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
154
|
+
let baseOptions;
|
|
155
|
+
if (configuration) {
|
|
156
|
+
baseOptions = configuration.baseOptions;
|
|
157
|
+
}
|
|
158
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
159
|
+
const localVarHeaderParameter = {};
|
|
160
|
+
const localVarQueryParameter = {};
|
|
161
|
+
// authentication bearer_auth required
|
|
162
|
+
// http bearer authentication required
|
|
163
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
164
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
165
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
168
|
+
return {
|
|
169
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
170
|
+
options: localVarRequestOptions,
|
|
171
|
+
};
|
|
172
|
+
}),
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @summary GET /v1/workflows/:id
|
|
176
|
+
* @param {string} id Workflow ID
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
*/
|
|
180
|
+
getWorkflow: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
181
|
+
// verify required parameter 'id' is not null or undefined
|
|
182
|
+
(0, common_1.assertParamExists)('getWorkflow', 'id', id);
|
|
183
|
+
const localVarPath = `/v1/workflows/{id}/`
|
|
184
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
185
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
186
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
187
|
+
let baseOptions;
|
|
188
|
+
if (configuration) {
|
|
189
|
+
baseOptions = configuration.baseOptions;
|
|
190
|
+
}
|
|
191
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
192
|
+
const localVarHeaderParameter = {};
|
|
193
|
+
const localVarQueryParameter = {};
|
|
194
|
+
// authentication bearer_auth required
|
|
195
|
+
// http bearer authentication required
|
|
196
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
197
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
198
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
199
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
201
|
+
return {
|
|
202
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
203
|
+
options: localVarRequestOptions,
|
|
204
|
+
};
|
|
205
|
+
}),
|
|
206
|
+
/**
|
|
207
|
+
*
|
|
208
|
+
* @summary GET /v1/workflows
|
|
209
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
210
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
211
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
212
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
listWorkflows: (limit_1, offset_1, q_1, filterBy_1, ...args_1) => __awaiter(this, [limit_1, offset_1, q_1, filterBy_1, ...args_1], void 0, function* (limit, offset, q, filterBy, options = {}) {
|
|
217
|
+
const localVarPath = `/v1/workflows/`;
|
|
218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
219
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
220
|
+
let baseOptions;
|
|
221
|
+
if (configuration) {
|
|
222
|
+
baseOptions = configuration.baseOptions;
|
|
223
|
+
}
|
|
224
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
225
|
+
const localVarHeaderParameter = {};
|
|
226
|
+
const localVarQueryParameter = {};
|
|
227
|
+
// authentication bearer_auth required
|
|
228
|
+
// http bearer authentication required
|
|
229
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
230
|
+
if (limit !== undefined) {
|
|
231
|
+
localVarQueryParameter['limit'] = limit;
|
|
232
|
+
}
|
|
233
|
+
if (offset !== undefined) {
|
|
234
|
+
localVarQueryParameter['offset'] = offset;
|
|
235
|
+
}
|
|
236
|
+
if (q !== undefined) {
|
|
237
|
+
localVarQueryParameter['q'] = q;
|
|
238
|
+
}
|
|
239
|
+
if (filterBy !== undefined) {
|
|
240
|
+
localVarQueryParameter['filter_by'] = filterBy;
|
|
241
|
+
}
|
|
242
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
243
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
245
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
246
|
+
return {
|
|
247
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
248
|
+
options: localVarRequestOptions,
|
|
249
|
+
};
|
|
250
|
+
}),
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @summary POST /v1/workflows/:id/step/:step_id/preview — render step template
|
|
254
|
+
* @param {string} id
|
|
255
|
+
* @param {string} stepId
|
|
256
|
+
* @param {StepPreview} stepPreview
|
|
257
|
+
* @param {*} [options] Override http request option.
|
|
258
|
+
* @throws {RequiredError}
|
|
259
|
+
*/
|
|
260
|
+
stepPreview: (id_1, stepId_1, stepPreview_1, ...args_1) => __awaiter(this, [id_1, stepId_1, stepPreview_1, ...args_1], void 0, function* (id, stepId, stepPreview, options = {}) {
|
|
261
|
+
// verify required parameter 'id' is not null or undefined
|
|
262
|
+
(0, common_1.assertParamExists)('stepPreview', 'id', id);
|
|
263
|
+
// verify required parameter 'stepId' is not null or undefined
|
|
264
|
+
(0, common_1.assertParamExists)('stepPreview', 'stepId', stepId);
|
|
265
|
+
// verify required parameter 'stepPreview' is not null or undefined
|
|
266
|
+
(0, common_1.assertParamExists)('stepPreview', 'stepPreview', stepPreview);
|
|
267
|
+
const localVarPath = `/v1/workflows/{id}/step/{step_id}/preview/`
|
|
268
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
269
|
+
.replace(`{${"step_id"}}`, encodeURIComponent(String(stepId)));
|
|
270
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
271
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
272
|
+
let baseOptions;
|
|
273
|
+
if (configuration) {
|
|
274
|
+
baseOptions = configuration.baseOptions;
|
|
275
|
+
}
|
|
276
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
277
|
+
const localVarHeaderParameter = {};
|
|
278
|
+
const localVarQueryParameter = {};
|
|
279
|
+
// authentication bearer_auth required
|
|
280
|
+
// http bearer authentication required
|
|
281
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
282
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
283
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
284
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
285
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
286
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
287
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(stepPreview, localVarRequestOptions, configuration);
|
|
288
|
+
return {
|
|
289
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
290
|
+
options: localVarRequestOptions,
|
|
291
|
+
};
|
|
292
|
+
}),
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @summary PUT /v1/workflows/:id/sync — sync from code-first workflow definition
|
|
296
|
+
* @param {string} id
|
|
297
|
+
* @param {SyncWorkflow} syncWorkflow
|
|
298
|
+
* @param {*} [options] Override http request option.
|
|
299
|
+
* @throws {RequiredError}
|
|
300
|
+
*/
|
|
301
|
+
syncWorkflow: (id_1, syncWorkflow_1, ...args_1) => __awaiter(this, [id_1, syncWorkflow_1, ...args_1], void 0, function* (id, syncWorkflow, options = {}) {
|
|
302
|
+
// verify required parameter 'id' is not null or undefined
|
|
303
|
+
(0, common_1.assertParamExists)('syncWorkflow', 'id', id);
|
|
304
|
+
// verify required parameter 'syncWorkflow' is not null or undefined
|
|
305
|
+
(0, common_1.assertParamExists)('syncWorkflow', 'syncWorkflow', syncWorkflow);
|
|
306
|
+
const localVarPath = `/v1/workflows/{id}/sync/`
|
|
307
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
308
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
309
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
310
|
+
let baseOptions;
|
|
311
|
+
if (configuration) {
|
|
312
|
+
baseOptions = configuration.baseOptions;
|
|
313
|
+
}
|
|
314
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
315
|
+
const localVarHeaderParameter = {};
|
|
316
|
+
const localVarQueryParameter = {};
|
|
317
|
+
// authentication bearer_auth required
|
|
318
|
+
// http bearer authentication required
|
|
319
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
320
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
321
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
322
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
323
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
324
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
325
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(syncWorkflow, localVarRequestOptions, configuration);
|
|
326
|
+
return {
|
|
327
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
328
|
+
options: localVarRequestOptions,
|
|
329
|
+
};
|
|
330
|
+
}),
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @summary PUT /v1/workflows/:id
|
|
334
|
+
* @param {string} id Workflow ID
|
|
335
|
+
* @param {UpdateWorkflow} updateWorkflow
|
|
336
|
+
* @param {*} [options] Override http request option.
|
|
337
|
+
* @throws {RequiredError}
|
|
338
|
+
*/
|
|
339
|
+
updateWorkflow: (id_1, updateWorkflow_1, ...args_1) => __awaiter(this, [id_1, updateWorkflow_1, ...args_1], void 0, function* (id, updateWorkflow, options = {}) {
|
|
340
|
+
// verify required parameter 'id' is not null or undefined
|
|
341
|
+
(0, common_1.assertParamExists)('updateWorkflow', 'id', id);
|
|
342
|
+
// verify required parameter 'updateWorkflow' is not null or undefined
|
|
343
|
+
(0, common_1.assertParamExists)('updateWorkflow', 'updateWorkflow', updateWorkflow);
|
|
344
|
+
const localVarPath = `/v1/workflows/{id}/`
|
|
345
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
346
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
347
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
348
|
+
let baseOptions;
|
|
349
|
+
if (configuration) {
|
|
350
|
+
baseOptions = configuration.baseOptions;
|
|
351
|
+
}
|
|
352
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
353
|
+
const localVarHeaderParameter = {};
|
|
354
|
+
const localVarQueryParameter = {};
|
|
355
|
+
// authentication bearer_auth required
|
|
356
|
+
// http bearer authentication required
|
|
357
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
358
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
359
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
360
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
361
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
362
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
363
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWorkflow, localVarRequestOptions, configuration);
|
|
364
|
+
return {
|
|
365
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
366
|
+
options: localVarRequestOptions,
|
|
367
|
+
};
|
|
368
|
+
}),
|
|
369
|
+
/**
|
|
370
|
+
*
|
|
371
|
+
* @summary PUT /v1/workflows/:id/status
|
|
372
|
+
* @param {string} id Workflow ID
|
|
373
|
+
* @param {WorkflowStatus} workflowStatus
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
updateWorkflowStatus: (id_1, workflowStatus_1, ...args_1) => __awaiter(this, [id_1, workflowStatus_1, ...args_1], void 0, function* (id, workflowStatus, options = {}) {
|
|
378
|
+
// verify required parameter 'id' is not null or undefined
|
|
379
|
+
(0, common_1.assertParamExists)('updateWorkflowStatus', 'id', id);
|
|
380
|
+
// verify required parameter 'workflowStatus' is not null or undefined
|
|
381
|
+
(0, common_1.assertParamExists)('updateWorkflowStatus', 'workflowStatus', workflowStatus);
|
|
382
|
+
const localVarPath = `/v1/workflows/{id}/status/`
|
|
383
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
384
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
385
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
386
|
+
let baseOptions;
|
|
387
|
+
if (configuration) {
|
|
388
|
+
baseOptions = configuration.baseOptions;
|
|
389
|
+
}
|
|
390
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
391
|
+
const localVarHeaderParameter = {};
|
|
392
|
+
const localVarQueryParameter = {};
|
|
393
|
+
// authentication bearer_auth required
|
|
394
|
+
// http bearer authentication required
|
|
395
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
396
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
397
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
398
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
399
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
400
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
401
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(workflowStatus, localVarRequestOptions, configuration);
|
|
402
|
+
return {
|
|
403
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
404
|
+
options: localVarRequestOptions,
|
|
405
|
+
};
|
|
406
|
+
}),
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
exports.WorkflowsApiAxiosParamCreator = WorkflowsApiAxiosParamCreator;
|
|
410
|
+
/**
|
|
411
|
+
* WorkflowsApi - functional programming interface
|
|
412
|
+
*/
|
|
413
|
+
const WorkflowsApiFp = function (configuration) {
|
|
414
|
+
const localVarAxiosParamCreator = (0, exports.WorkflowsApiAxiosParamCreator)(configuration);
|
|
415
|
+
return {
|
|
416
|
+
/**
|
|
417
|
+
*
|
|
418
|
+
* @summary POST /v1/workflows
|
|
419
|
+
* @param {CreateWorkflow} createWorkflow
|
|
420
|
+
* @param {*} [options] Override http request option.
|
|
421
|
+
* @throws {RequiredError}
|
|
422
|
+
*/
|
|
423
|
+
createWorkflow(createWorkflow, options) {
|
|
424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
425
|
+
var _a, _b, _c;
|
|
426
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createWorkflow(createWorkflow, options);
|
|
427
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
428
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.createWorkflow']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
429
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
430
|
+
});
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @summary DELETE /v1/workflows/:id
|
|
435
|
+
* @param {string} id Workflow ID
|
|
436
|
+
* @param {*} [options] Override http request option.
|
|
437
|
+
* @throws {RequiredError}
|
|
438
|
+
*/
|
|
439
|
+
deleteWorkflow(id, options) {
|
|
440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
441
|
+
var _a, _b, _c;
|
|
442
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteWorkflow(id, options);
|
|
443
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
444
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.deleteWorkflow']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
445
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
446
|
+
});
|
|
447
|
+
},
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
* @summary POST /v1/workflows/:id/duplicate — clone workflow
|
|
451
|
+
* @param {string} id
|
|
452
|
+
* @param {*} [options] Override http request option.
|
|
453
|
+
* @throws {RequiredError}
|
|
454
|
+
*/
|
|
455
|
+
duplicateWorkflow(id, options) {
|
|
456
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
457
|
+
var _a, _b, _c;
|
|
458
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.duplicateWorkflow(id, options);
|
|
459
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
460
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.duplicateWorkflow']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
461
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
462
|
+
});
|
|
463
|
+
},
|
|
464
|
+
/**
|
|
465
|
+
*
|
|
466
|
+
* @summary GET /v1/workflows/:id/steps/:step_id — get step details
|
|
467
|
+
* @param {string} id
|
|
468
|
+
* @param {string} stepId
|
|
469
|
+
* @param {*} [options] Override http request option.
|
|
470
|
+
* @throws {RequiredError}
|
|
471
|
+
*/
|
|
472
|
+
getStep(id, stepId, options) {
|
|
473
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
474
|
+
var _a, _b, _c;
|
|
475
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getStep(id, stepId, options);
|
|
476
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
477
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.getStep']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
478
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
479
|
+
});
|
|
480
|
+
},
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @summary GET /v1/workflows/:id
|
|
484
|
+
* @param {string} id Workflow ID
|
|
485
|
+
* @param {*} [options] Override http request option.
|
|
486
|
+
* @throws {RequiredError}
|
|
487
|
+
*/
|
|
488
|
+
getWorkflow(id, options) {
|
|
489
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
490
|
+
var _a, _b, _c;
|
|
491
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWorkflow(id, options);
|
|
492
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
493
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.getWorkflow']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
494
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
495
|
+
});
|
|
496
|
+
},
|
|
497
|
+
/**
|
|
498
|
+
*
|
|
499
|
+
* @summary GET /v1/workflows
|
|
500
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
501
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
502
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
503
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
listWorkflows(limit, offset, q, filterBy, options) {
|
|
508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
509
|
+
var _a, _b, _c;
|
|
510
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listWorkflows(limit, offset, q, filterBy, options);
|
|
511
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
512
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.listWorkflows']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
513
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
/**
|
|
517
|
+
*
|
|
518
|
+
* @summary POST /v1/workflows/:id/step/:step_id/preview — render step template
|
|
519
|
+
* @param {string} id
|
|
520
|
+
* @param {string} stepId
|
|
521
|
+
* @param {StepPreview} stepPreview
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
stepPreview(id, stepId, stepPreview, options) {
|
|
526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
527
|
+
var _a, _b, _c;
|
|
528
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.stepPreview(id, stepId, stepPreview, options);
|
|
529
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
530
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.stepPreview']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
531
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
532
|
+
});
|
|
533
|
+
},
|
|
534
|
+
/**
|
|
535
|
+
*
|
|
536
|
+
* @summary PUT /v1/workflows/:id/sync — sync from code-first workflow definition
|
|
537
|
+
* @param {string} id
|
|
538
|
+
* @param {SyncWorkflow} syncWorkflow
|
|
539
|
+
* @param {*} [options] Override http request option.
|
|
540
|
+
* @throws {RequiredError}
|
|
541
|
+
*/
|
|
542
|
+
syncWorkflow(id, syncWorkflow, options) {
|
|
543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
544
|
+
var _a, _b, _c;
|
|
545
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.syncWorkflow(id, syncWorkflow, options);
|
|
546
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
547
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.syncWorkflow']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
548
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
549
|
+
});
|
|
550
|
+
},
|
|
551
|
+
/**
|
|
552
|
+
*
|
|
553
|
+
* @summary PUT /v1/workflows/:id
|
|
554
|
+
* @param {string} id Workflow ID
|
|
555
|
+
* @param {UpdateWorkflow} updateWorkflow
|
|
556
|
+
* @param {*} [options] Override http request option.
|
|
557
|
+
* @throws {RequiredError}
|
|
558
|
+
*/
|
|
559
|
+
updateWorkflow(id, updateWorkflow, options) {
|
|
560
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
561
|
+
var _a, _b, _c;
|
|
562
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWorkflow(id, updateWorkflow, options);
|
|
563
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
564
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.updateWorkflow']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
565
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
566
|
+
});
|
|
567
|
+
},
|
|
568
|
+
/**
|
|
569
|
+
*
|
|
570
|
+
* @summary PUT /v1/workflows/:id/status
|
|
571
|
+
* @param {string} id Workflow ID
|
|
572
|
+
* @param {WorkflowStatus} workflowStatus
|
|
573
|
+
* @param {*} [options] Override http request option.
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
*/
|
|
576
|
+
updateWorkflowStatus(id, workflowStatus, options) {
|
|
577
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
578
|
+
var _a, _b, _c;
|
|
579
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateWorkflowStatus(id, workflowStatus, options);
|
|
580
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
581
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkflowsApi.updateWorkflowStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
582
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
583
|
+
});
|
|
584
|
+
},
|
|
585
|
+
};
|
|
586
|
+
};
|
|
587
|
+
exports.WorkflowsApiFp = WorkflowsApiFp;
|
|
588
|
+
/**
|
|
589
|
+
* WorkflowsApi - factory interface
|
|
590
|
+
*/
|
|
591
|
+
const WorkflowsApiFactory = function (configuration, basePath, axios) {
|
|
592
|
+
const localVarFp = (0, exports.WorkflowsApiFp)(configuration);
|
|
593
|
+
return {
|
|
594
|
+
/**
|
|
595
|
+
*
|
|
596
|
+
* @summary POST /v1/workflows
|
|
597
|
+
* @param {CreateWorkflow} createWorkflow
|
|
598
|
+
* @param {*} [options] Override http request option.
|
|
599
|
+
* @throws {RequiredError}
|
|
600
|
+
*/
|
|
601
|
+
createWorkflow(createWorkflow, options) {
|
|
602
|
+
return localVarFp.createWorkflow(createWorkflow, options).then((request) => request(axios, basePath));
|
|
603
|
+
},
|
|
604
|
+
/**
|
|
605
|
+
*
|
|
606
|
+
* @summary DELETE /v1/workflows/:id
|
|
607
|
+
* @param {string} id Workflow ID
|
|
608
|
+
* @param {*} [options] Override http request option.
|
|
609
|
+
* @throws {RequiredError}
|
|
610
|
+
*/
|
|
611
|
+
deleteWorkflow(id, options) {
|
|
612
|
+
return localVarFp.deleteWorkflow(id, options).then((request) => request(axios, basePath));
|
|
613
|
+
},
|
|
614
|
+
/**
|
|
615
|
+
*
|
|
616
|
+
* @summary POST /v1/workflows/:id/duplicate — clone workflow
|
|
617
|
+
* @param {string} id
|
|
618
|
+
* @param {*} [options] Override http request option.
|
|
619
|
+
* @throws {RequiredError}
|
|
620
|
+
*/
|
|
621
|
+
duplicateWorkflow(id, options) {
|
|
622
|
+
return localVarFp.duplicateWorkflow(id, options).then((request) => request(axios, basePath));
|
|
623
|
+
},
|
|
624
|
+
/**
|
|
625
|
+
*
|
|
626
|
+
* @summary GET /v1/workflows/:id/steps/:step_id — get step details
|
|
627
|
+
* @param {string} id
|
|
628
|
+
* @param {string} stepId
|
|
629
|
+
* @param {*} [options] Override http request option.
|
|
630
|
+
* @throws {RequiredError}
|
|
631
|
+
*/
|
|
632
|
+
getStep(id, stepId, options) {
|
|
633
|
+
return localVarFp.getStep(id, stepId, options).then((request) => request(axios, basePath));
|
|
634
|
+
},
|
|
635
|
+
/**
|
|
636
|
+
*
|
|
637
|
+
* @summary GET /v1/workflows/:id
|
|
638
|
+
* @param {string} id Workflow ID
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
getWorkflow(id, options) {
|
|
643
|
+
return localVarFp.getWorkflow(id, options).then((request) => request(axios, basePath));
|
|
644
|
+
},
|
|
645
|
+
/**
|
|
646
|
+
*
|
|
647
|
+
* @summary GET /v1/workflows
|
|
648
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
649
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
650
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
651
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
listWorkflows(limit, offset, q, filterBy, options) {
|
|
656
|
+
return localVarFp.listWorkflows(limit, offset, q, filterBy, options).then((request) => request(axios, basePath));
|
|
657
|
+
},
|
|
658
|
+
/**
|
|
659
|
+
*
|
|
660
|
+
* @summary POST /v1/workflows/:id/step/:step_id/preview — render step template
|
|
661
|
+
* @param {string} id
|
|
662
|
+
* @param {string} stepId
|
|
663
|
+
* @param {StepPreview} stepPreview
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
*/
|
|
667
|
+
stepPreview(id, stepId, stepPreview, options) {
|
|
668
|
+
return localVarFp.stepPreview(id, stepId, stepPreview, options).then((request) => request(axios, basePath));
|
|
669
|
+
},
|
|
670
|
+
/**
|
|
671
|
+
*
|
|
672
|
+
* @summary PUT /v1/workflows/:id/sync — sync from code-first workflow definition
|
|
673
|
+
* @param {string} id
|
|
674
|
+
* @param {SyncWorkflow} syncWorkflow
|
|
675
|
+
* @param {*} [options] Override http request option.
|
|
676
|
+
* @throws {RequiredError}
|
|
677
|
+
*/
|
|
678
|
+
syncWorkflow(id, syncWorkflow, options) {
|
|
679
|
+
return localVarFp.syncWorkflow(id, syncWorkflow, options).then((request) => request(axios, basePath));
|
|
680
|
+
},
|
|
681
|
+
/**
|
|
682
|
+
*
|
|
683
|
+
* @summary PUT /v1/workflows/:id
|
|
684
|
+
* @param {string} id Workflow ID
|
|
685
|
+
* @param {UpdateWorkflow} updateWorkflow
|
|
686
|
+
* @param {*} [options] Override http request option.
|
|
687
|
+
* @throws {RequiredError}
|
|
688
|
+
*/
|
|
689
|
+
updateWorkflow(id, updateWorkflow, options) {
|
|
690
|
+
return localVarFp.updateWorkflow(id, updateWorkflow, options).then((request) => request(axios, basePath));
|
|
691
|
+
},
|
|
692
|
+
/**
|
|
693
|
+
*
|
|
694
|
+
* @summary PUT /v1/workflows/:id/status
|
|
695
|
+
* @param {string} id Workflow ID
|
|
696
|
+
* @param {WorkflowStatus} workflowStatus
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
updateWorkflowStatus(id, workflowStatus, options) {
|
|
701
|
+
return localVarFp.updateWorkflowStatus(id, workflowStatus, options).then((request) => request(axios, basePath));
|
|
702
|
+
},
|
|
703
|
+
};
|
|
704
|
+
};
|
|
705
|
+
exports.WorkflowsApiFactory = WorkflowsApiFactory;
|
|
706
|
+
/**
|
|
707
|
+
* WorkflowsApi - object-oriented interface
|
|
708
|
+
*/
|
|
709
|
+
class WorkflowsApi extends base_1.BaseAPI {
|
|
710
|
+
/**
|
|
711
|
+
*
|
|
712
|
+
* @summary POST /v1/workflows
|
|
713
|
+
* @param {CreateWorkflow} createWorkflow
|
|
714
|
+
* @param {*} [options] Override http request option.
|
|
715
|
+
* @throws {RequiredError}
|
|
716
|
+
*/
|
|
717
|
+
createWorkflow(createWorkflow, options) {
|
|
718
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).createWorkflow(createWorkflow, options).then((request) => request(this.axios, this.basePath));
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
* @summary DELETE /v1/workflows/:id
|
|
723
|
+
* @param {string} id Workflow ID
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
*/
|
|
727
|
+
deleteWorkflow(id, options) {
|
|
728
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).deleteWorkflow(id, options).then((request) => request(this.axios, this.basePath));
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @summary POST /v1/workflows/:id/duplicate — clone workflow
|
|
733
|
+
* @param {string} id
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
*/
|
|
737
|
+
duplicateWorkflow(id, options) {
|
|
738
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).duplicateWorkflow(id, options).then((request) => request(this.axios, this.basePath));
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
*
|
|
742
|
+
* @summary GET /v1/workflows/:id/steps/:step_id — get step details
|
|
743
|
+
* @param {string} id
|
|
744
|
+
* @param {string} stepId
|
|
745
|
+
* @param {*} [options] Override http request option.
|
|
746
|
+
* @throws {RequiredError}
|
|
747
|
+
*/
|
|
748
|
+
getStep(id, stepId, options) {
|
|
749
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).getStep(id, stepId, options).then((request) => request(this.axios, this.basePath));
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
*
|
|
753
|
+
* @summary GET /v1/workflows/:id
|
|
754
|
+
* @param {string} id Workflow ID
|
|
755
|
+
* @param {*} [options] Override http request option.
|
|
756
|
+
* @throws {RequiredError}
|
|
757
|
+
*/
|
|
758
|
+
getWorkflow(id, options) {
|
|
759
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).getWorkflow(id, options).then((request) => request(this.axios, this.basePath));
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
*
|
|
763
|
+
* @summary GET /v1/workflows
|
|
764
|
+
* @param {number | null} [limit] Maximum number of items to return (1–100, default: 10).
|
|
765
|
+
* @param {number | null} [offset] Number of items to skip before returning results (default: 0).
|
|
766
|
+
* @param {string | null} [q] Optional full-text search query. When present, listing is powered by Typesense full-text search.
|
|
767
|
+
* @param {string | null} [filterBy] Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`.
|
|
768
|
+
* @param {*} [options] Override http request option.
|
|
769
|
+
* @throws {RequiredError}
|
|
770
|
+
*/
|
|
771
|
+
listWorkflows(limit, offset, q, filterBy, options) {
|
|
772
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).listWorkflows(limit, offset, q, filterBy, options).then((request) => request(this.axios, this.basePath));
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
*
|
|
776
|
+
* @summary POST /v1/workflows/:id/step/:step_id/preview — render step template
|
|
777
|
+
* @param {string} id
|
|
778
|
+
* @param {string} stepId
|
|
779
|
+
* @param {StepPreview} stepPreview
|
|
780
|
+
* @param {*} [options] Override http request option.
|
|
781
|
+
* @throws {RequiredError}
|
|
782
|
+
*/
|
|
783
|
+
stepPreview(id, stepId, stepPreview, options) {
|
|
784
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).stepPreview(id, stepId, stepPreview, options).then((request) => request(this.axios, this.basePath));
|
|
785
|
+
}
|
|
786
|
+
/**
|
|
787
|
+
*
|
|
788
|
+
* @summary PUT /v1/workflows/:id/sync — sync from code-first workflow definition
|
|
789
|
+
* @param {string} id
|
|
790
|
+
* @param {SyncWorkflow} syncWorkflow
|
|
791
|
+
* @param {*} [options] Override http request option.
|
|
792
|
+
* @throws {RequiredError}
|
|
793
|
+
*/
|
|
794
|
+
syncWorkflow(id, syncWorkflow, options) {
|
|
795
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).syncWorkflow(id, syncWorkflow, options).then((request) => request(this.axios, this.basePath));
|
|
796
|
+
}
|
|
797
|
+
/**
|
|
798
|
+
*
|
|
799
|
+
* @summary PUT /v1/workflows/:id
|
|
800
|
+
* @param {string} id Workflow ID
|
|
801
|
+
* @param {UpdateWorkflow} updateWorkflow
|
|
802
|
+
* @param {*} [options] Override http request option.
|
|
803
|
+
* @throws {RequiredError}
|
|
804
|
+
*/
|
|
805
|
+
updateWorkflow(id, updateWorkflow, options) {
|
|
806
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).updateWorkflow(id, updateWorkflow, options).then((request) => request(this.axios, this.basePath));
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
*
|
|
810
|
+
* @summary PUT /v1/workflows/:id/status
|
|
811
|
+
* @param {string} id Workflow ID
|
|
812
|
+
* @param {WorkflowStatus} workflowStatus
|
|
813
|
+
* @param {*} [options] Override http request option.
|
|
814
|
+
* @throws {RequiredError}
|
|
815
|
+
*/
|
|
816
|
+
updateWorkflowStatus(id, workflowStatus, options) {
|
|
817
|
+
return (0, exports.WorkflowsApiFp)(this.configuration).updateWorkflowStatus(id, workflowStatus, options).then((request) => request(this.axios, this.basePath));
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
exports.WorkflowsApi = WorkflowsApi;
|