@livechat/developer-studio-api 3.0.49 → 3.0.50

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/dist/index.d.mts CHANGED
@@ -1,4 +1,3 @@
1
- import * as shopify_api_node from 'shopify-api-node';
2
1
  import * as axios from 'axios';
3
2
  import { AxiosRequestConfig } from 'axios';
4
3
 
@@ -2355,6 +2354,142 @@ interface UpdateUserIntegrations {
2355
2354
  neon?: Partial<UserNeonIntegrationDto> | null;
2356
2355
  }
2357
2356
 
2357
+ type TriggerType = "manual_only" | "recurring" | "one_time";
2358
+ type TriggerPayload = {
2359
+ type: "manual_only";
2360
+ } | {
2361
+ type: "recurring";
2362
+ schedule: string[];
2363
+ } | {
2364
+ type: "one_time";
2365
+ at: string;
2366
+ };
2367
+ interface Workflows {
2368
+ name: string;
2369
+ version: number;
2370
+ description: string;
2371
+ trigger_type: TriggerType;
2372
+ created_by: string;
2373
+ }
2374
+ interface Workflow {
2375
+ name: string;
2376
+ version: number;
2377
+ description: string;
2378
+ definition: WorkflowDefinition;
2379
+ created_at: string;
2380
+ updated_at: string;
2381
+ created_by: string;
2382
+ trigger: TriggerPayload;
2383
+ }
2384
+ interface CreateWorkflowPayload {
2385
+ name: string;
2386
+ description: string;
2387
+ definition: WorkflowDefinition;
2388
+ trigger: TriggerPayload;
2389
+ }
2390
+ interface GetWorkflowPayload {
2391
+ name: string;
2392
+ version?: number;
2393
+ }
2394
+ interface WorkflowExecution {
2395
+ id: string;
2396
+ status: string;
2397
+ started_at: string;
2398
+ ended_at: string;
2399
+ }
2400
+ interface WorkflowExecutionPayload {
2401
+ name: string;
2402
+ execution_id: string;
2403
+ }
2404
+ interface WorkflowExecutionDetails {
2405
+ status: string;
2406
+ started_at: string;
2407
+ finished_at: string;
2408
+ output: any;
2409
+ failed_task_names: string[];
2410
+ failure_reason: string;
2411
+ }
2412
+ interface WorkflowDefinition {
2413
+ name: string;
2414
+ version: number;
2415
+ createTime?: number;
2416
+ updateTime?: number;
2417
+ description?: string;
2418
+ tasks: WorkflowDefinitionTask[];
2419
+ inputParameters: string[];
2420
+ inputTemplate?: any;
2421
+ outputParameters: any;
2422
+ schemaVersion: number;
2423
+ restartable?: boolean;
2424
+ workflowStatusListenerEnabled?: boolean;
2425
+ ownerEmail?: string;
2426
+ timeoutPolicy?: string;
2427
+ timeoutSeconds?: number;
2428
+ variables?: any;
2429
+ onStateChange?: any;
2430
+ accessPolicy?: any;
2431
+ }
2432
+ interface WorkflowDefinitionsQueryParams {
2433
+ name?: {
2434
+ value: string;
2435
+ exact?: boolean;
2436
+ };
2437
+ }
2438
+ declare const WorkflowDefinitionTaskType: {
2439
+ readonly http: "HTTP";
2440
+ readonly switch: "SWITCH";
2441
+ readonly forkJoin: "FORK_JOIN";
2442
+ readonly terminate: "TERMINATE";
2443
+ readonly join: "JOIN";
2444
+ readonly addNode: "ADD_NODE";
2445
+ readonly addTrigger: "ADD_TRIGGER";
2446
+ };
2447
+ interface WorkflowDefinitionTaskBase {
2448
+ customTask?: boolean;
2449
+ defaultCase?: [];
2450
+ expression?: string;
2451
+ evaluatorType?: "javascript";
2452
+ inputParameters?: any;
2453
+ startDelay?: 0;
2454
+ optional?: false;
2455
+ rateLimited?: false;
2456
+ defaultExclusiveJoinTask?: [];
2457
+ asyncComplete?: false;
2458
+ loopOver?: [];
2459
+ onStateChange?: any;
2460
+ targets?: {
2461
+ id: string;
2462
+ label?: string;
2463
+ }[];
2464
+ }
2465
+ type WorkflowDefinitionTaskCore<TType extends (typeof WorkflowDefinitionTaskType)[keyof typeof WorkflowDefinitionTaskType], TInputKey extends string, TInput> = WorkflowDefinitionTaskBase & {
2466
+ type: TType;
2467
+ name: string;
2468
+ taskReferenceName: string;
2469
+ } & {
2470
+ [key in TInputKey]: TInput;
2471
+ };
2472
+ type WorkflowDefinitionHttpTask = WorkflowDefinitionTaskCore<"HTTP", "inputParameters", {
2473
+ asyncComplete: boolean;
2474
+ http_request: {
2475
+ method: string;
2476
+ uri: string;
2477
+ body?: Record<string, string>;
2478
+ headers?: Record<string, string>;
2479
+ };
2480
+ customTask?: boolean;
2481
+ }>;
2482
+ type WorkflowDefinitionForkJoinTask = WorkflowDefinitionTaskCore<"FORK_JOIN", "forkTasks", WorkflowDefinitionTask[][]>;
2483
+ type WorkflowDefinitionSwitchTask = WorkflowDefinitionTaskCore<"SWITCH", "decisionCases", Record<string, WorkflowDefinitionTask[]>>;
2484
+ type WorkflowDefinitionTerminateTask = WorkflowDefinitionTaskCore<"TERMINATE", "inputParameters", {
2485
+ terminationStatus: string;
2486
+ terminationReason: string;
2487
+ }>;
2488
+ type WorkflowDefinitionJoinTask = WorkflowDefinitionTaskCore<"JOIN", "joinOn", any>;
2489
+ type WorkflowDefinitionAddNodeTask = WorkflowDefinitionTaskCore<"ADD_NODE", "add", null>;
2490
+ type WorkflowDefinitionAddTriggerTask = WorkflowDefinitionTaskCore<"ADD_TRIGGER", "add", null>;
2491
+ type WorkflowDefinitionTask = WorkflowDefinitionHttpTask | WorkflowDefinitionForkJoinTask | WorkflowDefinitionSwitchTask | WorkflowDefinitionTerminateTask | WorkflowDefinitionJoinTask | WorkflowDefinitionAddNodeTask | WorkflowDefinitionAddTriggerTask;
2492
+
2358
2493
  interface AgentDto {
2359
2494
  login: string;
2360
2495
  groups: {
@@ -2644,9 +2779,6 @@ declare const api: {
2644
2779
  verify(payload: VerifyAppPayload, authorization?: PlatformAdapterClientAuthorization | undefined): Promise<axios.AxiosResponse<VerifyAppResult, any>>;
2645
2780
  status<TSaga>(sagaId: string, authorization?: PlatformAdapterClientAuthorization | undefined): Promise<axios.AxiosResponse<SagaOutput<TSaga> | undefined, any>>;
2646
2781
  };
2647
- conductor: {
2648
- request<TData>(config: axios.AxiosRequestConfig<any>, authorization?: PlatformAdapterClientAuthorization | undefined): Promise<TData>;
2649
- };
2650
2782
  proxy: {
2651
2783
  neon: {
2652
2784
  user(authorization?: NeonClientAuthorization | undefined): Promise<NeonUser>;
@@ -2875,6 +3007,23 @@ declare const api: {
2875
3007
  };
2876
3008
  };
2877
3009
  };
3010
+ workflows: {
3011
+ getWorkflows(authorization?: PlatformClientAuthorization | undefined): Promise<Workflows[]>;
3012
+ createWorkflow(payload: CreateWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
3013
+ getWorkflow(payload: GetWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<Workflow>;
3014
+ updateWorkflow(payload: CreateWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<{
3015
+ version: number;
3016
+ }>;
3017
+ deleteWorkflow(payload: GetWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
3018
+ executeWorkflow(payload: {
3019
+ name: string;
3020
+ input: any;
3021
+ }, authorization?: PlatformClientAuthorization | undefined): Promise<{
3022
+ execution_id: string;
3023
+ }>;
3024
+ getWorkflowExecutionsList(payload: GetWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowExecution[]>;
3025
+ getWorkflowExecutionDetails(payload: WorkflowExecutionPayload, authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowExecution>;
3026
+ };
2878
3027
  };
2879
3028
  products: {
2880
3029
  livechat: {
@@ -3049,10 +3198,10 @@ declare const api: {
3049
3198
  topic?: string | undefined;
3050
3199
  address?: string | undefined;
3051
3200
  } | undefined, authorization?: ShopifyClientAuthorization | undefined): Promise<{
3052
- webhooks: shopify_api_node.IWebhook[];
3201
+ webhooks: IWebhook[];
3053
3202
  }>;
3054
- register(webhook: shopify_api_node.ICreateWebhook, authorization?: ShopifyClientAuthorization | undefined): Promise<{
3055
- webhook: shopify_api_node.IWebhook;
3203
+ register(webhook: ICreateWebhook, authorization?: ShopifyClientAuthorization | undefined): Promise<{
3204
+ webhook: IWebhook;
3056
3205
  }>;
3057
3206
  unregister(webhookId: number, authorization?: ShopifyClientAuthorization | undefined): Promise<void>;
3058
3207
  };
@@ -3178,6 +3327,7 @@ declare function initApi(config: {
3178
3327
  billing?: string;
3179
3328
  adapter?: string;
3180
3329
  dps?: string;
3330
+ workflows?: string;
3181
3331
  };
3182
3332
  products?: {
3183
3333
  livechat?: string;
@@ -3236,4 +3386,4 @@ declare function getIntegrationFlowUrl<TContext extends IntegrationFlowContext,
3236
3386
  adapterUrl: string;
3237
3387
  }): string;
3238
3388
 
3239
- export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, ApiError, ApiErrorBase, ApiErrorKind, ApiErrorName, ApiErrorSource, AppAuthorizationData, AppBaseData, AppBaseTemplate, AppDeployment, AppDeploymentBlock, AppDeploymentBlockConfig, AppDeploymentData, AppDeploymentProvider, AppDisplayData, AppEventDto, AppGitHubRepository, AppGitHubRepositoryConfig, AppInfrastructureBlocks, AppManifest, AppMonetizationData, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNeonStorage, AppNeonStorageConfig, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppPropertiesData, AppPropertyData, AppRepository, AppRepositoryBlock, AppRepositoryBlockConfig, AppRepositoryData, AppRepositoryProvider, AppRepositoryTarget, AppRepositoryTemplate, AppRepositoryTemplates, AppResourceDto, AppStatsDto, AppStorage, AppStorageBlock, AppStorageBlockConfig, AppStorageData, AppStorageProvider, AppTemplate, AppTemplates, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppWidgetData, AppWidgetsData, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, IntegrationFlowContext, IntegrationFlowOutput, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientAuthorization, LiveChatClientOptions, LiveChatConfigurationApiError, LivechatApiError, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpListWebhook, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowResult, NetlifyClientAuthorization, NetlifyClientOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowResult, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientAuthorization, PlatformAdapterClientOptions, PlatformBillingClientAuthorization, PlatformBillingClientOptions, PlatformClientAuthorization, PlatformDpsClientAuthorization, PlatformDpsClientOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, PushAppPayload, PushAppResult, PushAppSaga, PushAppSagaAuthorizationStep, PushAppSagaBaseStep, PushAppSagaDeploymentStep, PushAppSagaDisplayStep, PushAppSagaMonetizationStep, PushAppSagaPropertiesStep, PushAppSagaRepositoryStep, PushAppSagaStorageStep, PushAppSagaWidgetsStep, RemoveAppAuthorizationPayload, RemoveAppMonetizationPayload, RemoveAppPropertiesPayload, RemoveAppPropertyPayload, RemoveAppWidgetPayload, RemoveAppWidgetsPayload, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, Saga, SagaInput, SagaOutput, SagaStep, SagaStepChanges, SagaStepComparer, SagaStepPropertyCompareResult, SagaStepStatus, SagaStepsSchema, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, ShopifyApiError, ShopifyAuthorizeActionContext, ShopifyAuthorizeActionResult, ShopifyAuthorizeFlowContext, ShopifyAuthorizeFlowResult, ShopifyClientAuthorization, ShopifyClientOptions, ShortcutDto, SyncAppVariablePayload, TextAuthorizeActionContext, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserVercelIntegrationDto, VercelAuthorizeFlowContext, VercelAuthorizeFlowResult, VercelClientAuthorization, VercelClientOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowResult, VercelIntegrateActionResult, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientConfig, getIntegrationFlowUrl, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getMailchimpClientUrl, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getShopifyClientAuthorization, getShopifyClientConfig, getShopifyClientUrl, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClient, initLiveChatClient, initMailchimpClient, initNeonClient, initNetlifyClient, initPlanetScaleClient, initPlatformAccountsClient, initPlatformAdapterClient, initPlatformBillingClient, initPlatformDpsClient, initShopifyClient, initTextClient, initVercelClient, livechatClientInstance, mailchimpClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, shopifyClientInstance, textClientInstance, updateGithubClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateVercelClient, vercelClientInstance };
3389
+ export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, ApiError, ApiErrorBase, ApiErrorKind, ApiErrorName, ApiErrorSource, AppAuthorizationData, AppBaseData, AppBaseTemplate, AppDeployment, AppDeploymentBlock, AppDeploymentBlockConfig, AppDeploymentData, AppDeploymentProvider, AppDisplayData, AppEventDto, AppGitHubRepository, AppGitHubRepositoryConfig, AppInfrastructureBlocks, AppManifest, AppMonetizationData, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNeonStorage, AppNeonStorageConfig, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppPropertiesData, AppPropertyData, AppRepository, AppRepositoryBlock, AppRepositoryBlockConfig, AppRepositoryData, AppRepositoryProvider, AppRepositoryTarget, AppRepositoryTemplate, AppRepositoryTemplates, AppResourceDto, AppStatsDto, AppStorage, AppStorageBlock, AppStorageBlockConfig, AppStorageData, AppStorageProvider, AppTemplate, AppTemplates, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppWidgetData, AppWidgetsData, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateWorkflowPayload, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GetWorkflowPayload, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, IntegrationFlowContext, IntegrationFlowOutput, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientAuthorization, LiveChatClientOptions, LiveChatConfigurationApiError, LivechatApiError, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpListWebhook, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowResult, NetlifyClientAuthorization, NetlifyClientOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowResult, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientAuthorization, PlatformAdapterClientOptions, PlatformBillingClientAuthorization, PlatformBillingClientOptions, PlatformClientAuthorization, PlatformDpsClientAuthorization, PlatformDpsClientOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, PushAppPayload, PushAppResult, PushAppSaga, PushAppSagaAuthorizationStep, PushAppSagaBaseStep, PushAppSagaDeploymentStep, PushAppSagaDisplayStep, PushAppSagaMonetizationStep, PushAppSagaPropertiesStep, PushAppSagaRepositoryStep, PushAppSagaStorageStep, PushAppSagaWidgetsStep, RemoveAppAuthorizationPayload, RemoveAppMonetizationPayload, RemoveAppPropertiesPayload, RemoveAppPropertyPayload, RemoveAppWidgetPayload, RemoveAppWidgetsPayload, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, Saga, SagaInput, SagaOutput, SagaStep, SagaStepChanges, SagaStepComparer, SagaStepPropertyCompareResult, SagaStepStatus, SagaStepsSchema, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, ShopifyApiError, ShopifyAuthorizeActionContext, ShopifyAuthorizeActionResult, ShopifyAuthorizeFlowContext, ShopifyAuthorizeFlowResult, ShopifyClientAuthorization, ShopifyClientOptions, ShortcutDto, SyncAppVariablePayload, TextAuthorizeActionContext, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, TriggerPayload, TriggerType, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserVercelIntegrationDto, VercelAuthorizeFlowContext, VercelAuthorizeFlowResult, VercelClientAuthorization, VercelClientOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowResult, VercelIntegrateActionResult, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookDto, Workflow, WorkflowDefinition, WorkflowDefinitionAddNodeTask, WorkflowDefinitionAddTriggerTask, WorkflowDefinitionForkJoinTask, WorkflowDefinitionHttpTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTask, WorkflowDefinitionTaskBase, WorkflowDefinitionTaskCore, WorkflowDefinitionTaskType, WorkflowDefinitionTerminateTask, WorkflowDefinitionsQueryParams, WorkflowExecution, WorkflowExecutionDetails, WorkflowExecutionPayload, Workflows, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientConfig, getIntegrationFlowUrl, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getMailchimpClientUrl, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getShopifyClientAuthorization, getShopifyClientConfig, getShopifyClientUrl, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClient, initLiveChatClient, initMailchimpClient, initNeonClient, initNetlifyClient, initPlanetScaleClient, initPlatformAccountsClient, initPlatformAdapterClient, initPlatformBillingClient, initPlatformDpsClient, initShopifyClient, initTextClient, initVercelClient, livechatClientInstance, mailchimpClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, shopifyClientInstance, textClientInstance, updateGithubClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateVercelClient, vercelClientInstance };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import * as shopify_api_node from 'shopify-api-node';
2
1
  import * as axios from 'axios';
3
2
  import { AxiosRequestConfig } from 'axios';
4
3
 
@@ -2355,6 +2354,142 @@ interface UpdateUserIntegrations {
2355
2354
  neon?: Partial<UserNeonIntegrationDto> | null;
2356
2355
  }
2357
2356
 
2357
+ type TriggerType = "manual_only" | "recurring" | "one_time";
2358
+ type TriggerPayload = {
2359
+ type: "manual_only";
2360
+ } | {
2361
+ type: "recurring";
2362
+ schedule: string[];
2363
+ } | {
2364
+ type: "one_time";
2365
+ at: string;
2366
+ };
2367
+ interface Workflows {
2368
+ name: string;
2369
+ version: number;
2370
+ description: string;
2371
+ trigger_type: TriggerType;
2372
+ created_by: string;
2373
+ }
2374
+ interface Workflow {
2375
+ name: string;
2376
+ version: number;
2377
+ description: string;
2378
+ definition: WorkflowDefinition;
2379
+ created_at: string;
2380
+ updated_at: string;
2381
+ created_by: string;
2382
+ trigger: TriggerPayload;
2383
+ }
2384
+ interface CreateWorkflowPayload {
2385
+ name: string;
2386
+ description: string;
2387
+ definition: WorkflowDefinition;
2388
+ trigger: TriggerPayload;
2389
+ }
2390
+ interface GetWorkflowPayload {
2391
+ name: string;
2392
+ version?: number;
2393
+ }
2394
+ interface WorkflowExecution {
2395
+ id: string;
2396
+ status: string;
2397
+ started_at: string;
2398
+ ended_at: string;
2399
+ }
2400
+ interface WorkflowExecutionPayload {
2401
+ name: string;
2402
+ execution_id: string;
2403
+ }
2404
+ interface WorkflowExecutionDetails {
2405
+ status: string;
2406
+ started_at: string;
2407
+ finished_at: string;
2408
+ output: any;
2409
+ failed_task_names: string[];
2410
+ failure_reason: string;
2411
+ }
2412
+ interface WorkflowDefinition {
2413
+ name: string;
2414
+ version: number;
2415
+ createTime?: number;
2416
+ updateTime?: number;
2417
+ description?: string;
2418
+ tasks: WorkflowDefinitionTask[];
2419
+ inputParameters: string[];
2420
+ inputTemplate?: any;
2421
+ outputParameters: any;
2422
+ schemaVersion: number;
2423
+ restartable?: boolean;
2424
+ workflowStatusListenerEnabled?: boolean;
2425
+ ownerEmail?: string;
2426
+ timeoutPolicy?: string;
2427
+ timeoutSeconds?: number;
2428
+ variables?: any;
2429
+ onStateChange?: any;
2430
+ accessPolicy?: any;
2431
+ }
2432
+ interface WorkflowDefinitionsQueryParams {
2433
+ name?: {
2434
+ value: string;
2435
+ exact?: boolean;
2436
+ };
2437
+ }
2438
+ declare const WorkflowDefinitionTaskType: {
2439
+ readonly http: "HTTP";
2440
+ readonly switch: "SWITCH";
2441
+ readonly forkJoin: "FORK_JOIN";
2442
+ readonly terminate: "TERMINATE";
2443
+ readonly join: "JOIN";
2444
+ readonly addNode: "ADD_NODE";
2445
+ readonly addTrigger: "ADD_TRIGGER";
2446
+ };
2447
+ interface WorkflowDefinitionTaskBase {
2448
+ customTask?: boolean;
2449
+ defaultCase?: [];
2450
+ expression?: string;
2451
+ evaluatorType?: "javascript";
2452
+ inputParameters?: any;
2453
+ startDelay?: 0;
2454
+ optional?: false;
2455
+ rateLimited?: false;
2456
+ defaultExclusiveJoinTask?: [];
2457
+ asyncComplete?: false;
2458
+ loopOver?: [];
2459
+ onStateChange?: any;
2460
+ targets?: {
2461
+ id: string;
2462
+ label?: string;
2463
+ }[];
2464
+ }
2465
+ type WorkflowDefinitionTaskCore<TType extends (typeof WorkflowDefinitionTaskType)[keyof typeof WorkflowDefinitionTaskType], TInputKey extends string, TInput> = WorkflowDefinitionTaskBase & {
2466
+ type: TType;
2467
+ name: string;
2468
+ taskReferenceName: string;
2469
+ } & {
2470
+ [key in TInputKey]: TInput;
2471
+ };
2472
+ type WorkflowDefinitionHttpTask = WorkflowDefinitionTaskCore<"HTTP", "inputParameters", {
2473
+ asyncComplete: boolean;
2474
+ http_request: {
2475
+ method: string;
2476
+ uri: string;
2477
+ body?: Record<string, string>;
2478
+ headers?: Record<string, string>;
2479
+ };
2480
+ customTask?: boolean;
2481
+ }>;
2482
+ type WorkflowDefinitionForkJoinTask = WorkflowDefinitionTaskCore<"FORK_JOIN", "forkTasks", WorkflowDefinitionTask[][]>;
2483
+ type WorkflowDefinitionSwitchTask = WorkflowDefinitionTaskCore<"SWITCH", "decisionCases", Record<string, WorkflowDefinitionTask[]>>;
2484
+ type WorkflowDefinitionTerminateTask = WorkflowDefinitionTaskCore<"TERMINATE", "inputParameters", {
2485
+ terminationStatus: string;
2486
+ terminationReason: string;
2487
+ }>;
2488
+ type WorkflowDefinitionJoinTask = WorkflowDefinitionTaskCore<"JOIN", "joinOn", any>;
2489
+ type WorkflowDefinitionAddNodeTask = WorkflowDefinitionTaskCore<"ADD_NODE", "add", null>;
2490
+ type WorkflowDefinitionAddTriggerTask = WorkflowDefinitionTaskCore<"ADD_TRIGGER", "add", null>;
2491
+ type WorkflowDefinitionTask = WorkflowDefinitionHttpTask | WorkflowDefinitionForkJoinTask | WorkflowDefinitionSwitchTask | WorkflowDefinitionTerminateTask | WorkflowDefinitionJoinTask | WorkflowDefinitionAddNodeTask | WorkflowDefinitionAddTriggerTask;
2492
+
2358
2493
  interface AgentDto {
2359
2494
  login: string;
2360
2495
  groups: {
@@ -2644,9 +2779,6 @@ declare const api: {
2644
2779
  verify(payload: VerifyAppPayload, authorization?: PlatformAdapterClientAuthorization | undefined): Promise<axios.AxiosResponse<VerifyAppResult, any>>;
2645
2780
  status<TSaga>(sagaId: string, authorization?: PlatformAdapterClientAuthorization | undefined): Promise<axios.AxiosResponse<SagaOutput<TSaga> | undefined, any>>;
2646
2781
  };
2647
- conductor: {
2648
- request<TData>(config: axios.AxiosRequestConfig<any>, authorization?: PlatformAdapterClientAuthorization | undefined): Promise<TData>;
2649
- };
2650
2782
  proxy: {
2651
2783
  neon: {
2652
2784
  user(authorization?: NeonClientAuthorization | undefined): Promise<NeonUser>;
@@ -2875,6 +3007,23 @@ declare const api: {
2875
3007
  };
2876
3008
  };
2877
3009
  };
3010
+ workflows: {
3011
+ getWorkflows(authorization?: PlatformClientAuthorization | undefined): Promise<Workflows[]>;
3012
+ createWorkflow(payload: CreateWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
3013
+ getWorkflow(payload: GetWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<Workflow>;
3014
+ updateWorkflow(payload: CreateWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<{
3015
+ version: number;
3016
+ }>;
3017
+ deleteWorkflow(payload: GetWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
3018
+ executeWorkflow(payload: {
3019
+ name: string;
3020
+ input: any;
3021
+ }, authorization?: PlatformClientAuthorization | undefined): Promise<{
3022
+ execution_id: string;
3023
+ }>;
3024
+ getWorkflowExecutionsList(payload: GetWorkflowPayload, authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowExecution[]>;
3025
+ getWorkflowExecutionDetails(payload: WorkflowExecutionPayload, authorization?: PlatformClientAuthorization | undefined): Promise<WorkflowExecution>;
3026
+ };
2878
3027
  };
2879
3028
  products: {
2880
3029
  livechat: {
@@ -3049,10 +3198,10 @@ declare const api: {
3049
3198
  topic?: string | undefined;
3050
3199
  address?: string | undefined;
3051
3200
  } | undefined, authorization?: ShopifyClientAuthorization | undefined): Promise<{
3052
- webhooks: shopify_api_node.IWebhook[];
3201
+ webhooks: IWebhook[];
3053
3202
  }>;
3054
- register(webhook: shopify_api_node.ICreateWebhook, authorization?: ShopifyClientAuthorization | undefined): Promise<{
3055
- webhook: shopify_api_node.IWebhook;
3203
+ register(webhook: ICreateWebhook, authorization?: ShopifyClientAuthorization | undefined): Promise<{
3204
+ webhook: IWebhook;
3056
3205
  }>;
3057
3206
  unregister(webhookId: number, authorization?: ShopifyClientAuthorization | undefined): Promise<void>;
3058
3207
  };
@@ -3178,6 +3327,7 @@ declare function initApi(config: {
3178
3327
  billing?: string;
3179
3328
  adapter?: string;
3180
3329
  dps?: string;
3330
+ workflows?: string;
3181
3331
  };
3182
3332
  products?: {
3183
3333
  livechat?: string;
@@ -3236,4 +3386,4 @@ declare function getIntegrationFlowUrl<TContext extends IntegrationFlowContext,
3236
3386
  adapterUrl: string;
3237
3387
  }): string;
3238
3388
 
3239
- export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, ApiError, ApiErrorBase, ApiErrorKind, ApiErrorName, ApiErrorSource, AppAuthorizationData, AppBaseData, AppBaseTemplate, AppDeployment, AppDeploymentBlock, AppDeploymentBlockConfig, AppDeploymentData, AppDeploymentProvider, AppDisplayData, AppEventDto, AppGitHubRepository, AppGitHubRepositoryConfig, AppInfrastructureBlocks, AppManifest, AppMonetizationData, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNeonStorage, AppNeonStorageConfig, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppPropertiesData, AppPropertyData, AppRepository, AppRepositoryBlock, AppRepositoryBlockConfig, AppRepositoryData, AppRepositoryProvider, AppRepositoryTarget, AppRepositoryTemplate, AppRepositoryTemplates, AppResourceDto, AppStatsDto, AppStorage, AppStorageBlock, AppStorageBlockConfig, AppStorageData, AppStorageProvider, AppTemplate, AppTemplates, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppWidgetData, AppWidgetsData, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, IntegrationFlowContext, IntegrationFlowOutput, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientAuthorization, LiveChatClientOptions, LiveChatConfigurationApiError, LivechatApiError, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpListWebhook, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowResult, NetlifyClientAuthorization, NetlifyClientOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowResult, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientAuthorization, PlatformAdapterClientOptions, PlatformBillingClientAuthorization, PlatformBillingClientOptions, PlatformClientAuthorization, PlatformDpsClientAuthorization, PlatformDpsClientOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, PushAppPayload, PushAppResult, PushAppSaga, PushAppSagaAuthorizationStep, PushAppSagaBaseStep, PushAppSagaDeploymentStep, PushAppSagaDisplayStep, PushAppSagaMonetizationStep, PushAppSagaPropertiesStep, PushAppSagaRepositoryStep, PushAppSagaStorageStep, PushAppSagaWidgetsStep, RemoveAppAuthorizationPayload, RemoveAppMonetizationPayload, RemoveAppPropertiesPayload, RemoveAppPropertyPayload, RemoveAppWidgetPayload, RemoveAppWidgetsPayload, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, Saga, SagaInput, SagaOutput, SagaStep, SagaStepChanges, SagaStepComparer, SagaStepPropertyCompareResult, SagaStepStatus, SagaStepsSchema, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, ShopifyApiError, ShopifyAuthorizeActionContext, ShopifyAuthorizeActionResult, ShopifyAuthorizeFlowContext, ShopifyAuthorizeFlowResult, ShopifyClientAuthorization, ShopifyClientOptions, ShortcutDto, SyncAppVariablePayload, TextAuthorizeActionContext, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserVercelIntegrationDto, VercelAuthorizeFlowContext, VercelAuthorizeFlowResult, VercelClientAuthorization, VercelClientOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowResult, VercelIntegrateActionResult, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookDto, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientConfig, getIntegrationFlowUrl, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getMailchimpClientUrl, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getShopifyClientAuthorization, getShopifyClientConfig, getShopifyClientUrl, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClient, initLiveChatClient, initMailchimpClient, initNeonClient, initNetlifyClient, initPlanetScaleClient, initPlatformAccountsClient, initPlatformAdapterClient, initPlatformBillingClient, initPlatformDpsClient, initShopifyClient, initTextClient, initVercelClient, livechatClientInstance, mailchimpClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, shopifyClientInstance, textClientInstance, updateGithubClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateVercelClient, vercelClientInstance };
3389
+ export { API_NOTIFICATIONS, AccountDto, AccountsApiError, AdapterApiError, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentConfigurationDto, AgentDto, ApiError, ApiErrorBase, ApiErrorKind, ApiErrorName, ApiErrorSource, AppAuthorizationData, AppBaseData, AppBaseTemplate, AppDeployment, AppDeploymentBlock, AppDeploymentBlockConfig, AppDeploymentData, AppDeploymentProvider, AppDisplayData, AppEventDto, AppGitHubRepository, AppGitHubRepositoryConfig, AppInfrastructureBlocks, AppManifest, AppMonetizationData, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNeonStorage, AppNeonStorageConfig, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppPropertiesData, AppPropertyData, AppRepository, AppRepositoryBlock, AppRepositoryBlockConfig, AppRepositoryData, AppRepositoryProvider, AppRepositoryTarget, AppRepositoryTemplate, AppRepositoryTemplates, AppResourceDto, AppStatsDto, AppStorage, AppStorageBlock, AppStorageBlockConfig, AppStorageData, AppStorageProvider, AppTemplate, AppTemplates, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppWidgetData, AppWidgetsData, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationChatBooster, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, ApplicationWidget, AuthorizeData, BillingAccountDto, BillingAccountInfoDto, BillingInvoiceDto, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppVariablePayload, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateWorkflowPayload, DeveloperLedgerParams, DpsApiError, EditAppVariablePayload, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetTextPlatformDashboardReportParams, GetVercelProjectsResult, GetWorkflowPayload, GitHubAuthorizeAppActionResult, GitHubAuthorizeFlowContext, GitHubAuthorizeFlowResult, GitHubAuthorizeOauthActionResult, GitHubInstallActionContext, GitHubInstallActionResult, GitHubInstallFlowContext, GitHubInstallFlowResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryIssue, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientAuthorization, GithubClientOptions, IntegrationFlowContext, IntegrationFlowOutput, IssueLabel, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppStorageData, LinkAppStorageNeonData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LiveChatClientAuthorization, LiveChatClientOptions, LiveChatConfigurationApiError, LivechatApiError, MailchimpApiError, MailchimpAuthorizeActionResult, MailchimpAuthorizeFlowContext, MailchimpAuthorizeFlowResult, MailchimpClientAuthorization, MailchimpClientInstanceOptions, MailchimpListWebhook, MyAccountDto, NeonAuthorizeActionResult, NeonAuthorizeFlowContext, NeonAuthorizeFlowResult, NeonClientAuthorization, NeonClientOptions, NeonProjectBranchDto, NeonProjectBranchesDto, NeonProjectDatabaseDto, NeonProjectDatabasesDto, NeonProjectDto, NeonProjectRoleDto, NeonProjectRolesDto, NeonProjectWithConnectionUriDto, NeonProjectsDto, NeonUser, NetlifyAccount, NetlifyAuthorizeActionResult, NetlifyAuthorizeFlowContext, NetlifyAuthorizeFlowResult, NetlifyClientAuthorization, NetlifyClientOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifyInstallActionContext, NetlifyInstallActionResult, NetlifyInstallFlowContext, NetlifyInstallFlowResult, NetlifySite, OrganizationDto, PatDto, PatScopeDto, PatWithSecretDto, PlanetScaleAuthorizeActionResult, PlanetScaleAuthorizeFlowContext, PlanetScaleAuthorizeFlowResult, PlanetScaleClientAuthorization, PlanetScaleClientOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientAuthorization, PlatformAdapterClientOptions, PlatformBillingClientAuthorization, PlatformBillingClientOptions, PlatformClientAuthorization, PlatformDpsClientAuthorization, PlatformDpsClientOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, PushAppPayload, PushAppResult, PushAppSaga, PushAppSagaAuthorizationStep, PushAppSagaBaseStep, PushAppSagaDeploymentStep, PushAppSagaDisplayStep, PushAppSagaMonetizationStep, PushAppSagaPropertiesStep, PushAppSagaRepositoryStep, PushAppSagaStorageStep, PushAppSagaWidgetsStep, RemoveAppAuthorizationPayload, RemoveAppMonetizationPayload, RemoveAppPropertiesPayload, RemoveAppPropertyPayload, RemoveAppWidgetPayload, RemoveAppWidgetsPayload, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, Saga, SagaInput, SagaOutput, SagaStep, SagaStepChanges, SagaStepComparer, SagaStepPropertyCompareResult, SagaStepStatus, SagaStepsSchema, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, ShopifyApiError, ShopifyAuthorizeActionContext, ShopifyAuthorizeActionResult, ShopifyAuthorizeFlowContext, ShopifyAuthorizeFlowResult, ShopifyClientAuthorization, ShopifyClientOptions, ShortcutDto, SyncAppVariablePayload, TextAuthorizeActionContext, TextAuthorizeActionResult, TextAuthorizeFlowContext, TextAuthorizeFlowResult, TextClientAuthorization, TextClientOptions, TextPlatformDashboardCreditsDto, TextPlatformDashboardPaymentDto, TextPlatformDashboardReportDto, TextPlatformDashboardReportItemDto, TriggerPayload, TriggerType, UnauthorizeApiError, UnlinkAppDeploymentData, UnlinkAppDeploymentPayload, UnlinkAppRepositoryData, UnlinkAppRepositoryPayload, UnlinkAppStorageData, UnlinkAppStoragePayload, UpdateAppAuthorizationPayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppDeploymentPayload, UpsertAppMonetizationPayload, UpsertAppPropertiesPayload, UpsertAppPropertyPayload, UpsertAppRepositoryPayload, UpsertAppResourcePayload, UpsertAppStoragePayload, UpsertAppWidgetPayload, UpsertAppWidgetsPayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNeonIntegrationDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserVercelIntegrationDto, VercelAuthorizeFlowContext, VercelAuthorizeFlowResult, VercelClientAuthorization, VercelClientOptions, VercelConnectActionContext, VercelConnectActionResult, VercelDeploy, VercelInstallActionContext, VercelInstallActionResult, VercelInstallFlowContext, VercelInstallFlowResult, VercelIntegrateActionResult, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, VerifyAppPayload, VerifyAppResult, Webhook, WebhookDto, Workflow, WorkflowDefinition, WorkflowDefinitionAddNodeTask, WorkflowDefinitionAddTriggerTask, WorkflowDefinitionForkJoinTask, WorkflowDefinitionHttpTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTask, WorkflowDefinitionTaskBase, WorkflowDefinitionTaskCore, WorkflowDefinitionTaskType, WorkflowDefinitionTerminateTask, WorkflowDefinitionsQueryParams, WorkflowExecution, WorkflowExecutionDetails, WorkflowExecutionPayload, Workflows, allAppTemplates, api, appBaseTemplates, appRepositoryTemplates, appRepositoryTemplatesMap, appTemplates, appTemplatesMap, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientConfig, getIntegrationFlowUrl, getLiveChatClientAuthorization, getLiveChatClientConfig, getMailchimpClientAuthorization, getMailchimpClientConfig, getMailchimpClientUrl, getNeonClientAuthorization, getNeonClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformAdapterClientDefaultConfig, getPlatformBillingClientAuthorization, getPlatformBillingClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getShopifyClientAuthorization, getShopifyClientConfig, getShopifyClientUrl, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClient, initLiveChatClient, initMailchimpClient, initNeonClient, initNetlifyClient, initPlanetScaleClient, initPlatformAccountsClient, initPlatformAdapterClient, initPlatformBillingClient, initPlatformDpsClient, initShopifyClient, initTextClient, initVercelClient, livechatClientInstance, mailchimpClientInstance, neonClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformBillingClientInstance, platformDpsClientInstance, shopifyClientInstance, textClientInstance, updateGithubClient, updateMailchimpClient, updateNeonClient, updateNetlifyClient, updatePlanetScaleClient, updatePlatformAdapterClient, updateShopifyClient, updateVercelClient, vercelClientInstance };
package/dist/index.js CHANGED
@@ -76,6 +76,7 @@ __export(src_exports, {
76
76
  MailchimpApiError: () => MailchimpApiError,
77
77
  ShopifyApiError: () => ShopifyApiError,
78
78
  UnauthorizeApiError: () => UnauthorizeApiError,
79
+ WorkflowDefinitionTaskType: () => WorkflowDefinitionTaskType,
79
80
  allAppTemplates: () => allAppTemplates,
80
81
  api: () => api,
81
82
  appBaseTemplates: () => appBaseTemplates,
@@ -5922,20 +5923,6 @@ var platformAdapterAppApi = {
5922
5923
  }
5923
5924
  };
5924
5925
 
5925
- // src/apis/platform/adapter/conductor/api.ts
5926
- var platformAdapterConductorApi = {
5927
- request(config, authorization) {
5928
- return __async(this, null, function* () {
5929
- const response = yield platformAdapterClientInstance.post(
5930
- `/conductor`,
5931
- config,
5932
- getPlatformAdapterClientConfig(authorization)
5933
- );
5934
- return response.data;
5935
- });
5936
- }
5937
- };
5938
-
5939
5926
  // src/apis/platform/billing/instance.ts
5940
5927
  var import_axios21 = __toESM(require("axios"));
5941
5928
  var platformBillingClientInstance = import_axios21.default.create({
@@ -5978,6 +5965,17 @@ function initPlatformBillingClient(baseUrl, token) {
5978
5965
  }
5979
5966
  }
5980
5967
 
5968
+ // src/apis/platform/workflows/contracts.ts
5969
+ var WorkflowDefinitionTaskType = {
5970
+ http: "HTTP",
5971
+ switch: "SWITCH",
5972
+ forkJoin: "FORK_JOIN",
5973
+ terminate: "TERMINATE",
5974
+ join: "JOIN",
5975
+ addNode: "ADD_NODE",
5976
+ addTrigger: "ADD_TRIGGER"
5977
+ };
5978
+
5981
5979
  // src/apis/platform/adapter/integrations/neon/api.ts
5982
5980
  var platformAdapterNeonProxyApi = {
5983
5981
  user(authorization) {
@@ -6023,7 +6021,6 @@ var platformAdapterIntegrationsProxyApi = {
6023
6021
  // src/apis/platform/adapter/api.ts
6024
6022
  var platformAdapterApi = {
6025
6023
  app: platformAdapterAppApi,
6026
- conductor: platformAdapterConductorApi,
6027
6024
  proxy: platformAdapterIntegrationsProxyApi,
6028
6025
  log(payload, authorization) {
6029
6026
  return __async(this, null, function* () {
@@ -6125,12 +6122,165 @@ var platformBillingApi = {
6125
6122
  invoices: platformBillingInvoicesApi
6126
6123
  };
6127
6124
 
6125
+ // src/apis/platform/workflows/instance.ts
6126
+ var import_axios22 = __toESM(require("axios"));
6127
+ var WorkflowsApiError = class extends ApiErrorBase {
6128
+ constructor() {
6129
+ super(...arguments);
6130
+ this.name = "dps";
6131
+ }
6132
+ };
6133
+ var workflowsClientInstance = import_axios22.default.create({
6134
+ baseURL: "https://api.labs.text.com/workflow_platform"
6135
+ });
6136
+ workflowsClientInstance.interceptors.response.use(
6137
+ (response) => response,
6138
+ (error) => {
6139
+ var _a, _b, _c, _d;
6140
+ if (((_a = error.response) == null ? void 0 : _a.status) === 403) {
6141
+ return Promise.reject(new UnauthorizeApiError("accounts"));
6142
+ }
6143
+ return Promise.reject(
6144
+ new WorkflowsApiError(
6145
+ error.message,
6146
+ (_b = error.response) == null ? void 0 : _b.data,
6147
+ (_d = (_c = error.response) == null ? void 0 : _c.status) != null ? _d : 400
6148
+ )
6149
+ );
6150
+ }
6151
+ );
6152
+ function getWorkflowsClientConfig(options = {}) {
6153
+ var _a;
6154
+ const currentHeaders = workflowsClientInstance.defaults.headers;
6155
+ const defaultAuthorization = currentHeaders.Authorization;
6156
+ if (!options.token && !defaultAuthorization) {
6157
+ throw new UnauthorizeApiError("accounts");
6158
+ }
6159
+ const headers = {
6160
+ authorization: (_a = options.token ? `Bearer ${options.token}` : void 0) != null ? _a : defaultAuthorization
6161
+ };
6162
+ return {
6163
+ headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
6164
+ };
6165
+ }
6166
+ function initWorkflowsClient(baseUrl, token) {
6167
+ const headers = workflowsClientInstance.defaults.headers;
6168
+ if (baseUrl) {
6169
+ workflowsClientInstance.interceptors.request.use(
6170
+ (config) => {
6171
+ config.baseURL = baseUrl;
6172
+ return config;
6173
+ },
6174
+ (error) => Promise.reject(error)
6175
+ );
6176
+ }
6177
+ if (token) {
6178
+ headers.Authorization = `Bearer ${token}`;
6179
+ } else {
6180
+ delete headers.Authorization;
6181
+ }
6182
+ }
6183
+
6184
+ // src/apis/platform/workflows/api.ts
6185
+ var workflowsApi = {
6186
+ getWorkflows(authorization) {
6187
+ return __async(this, null, function* () {
6188
+ const { data: workflows } = yield workflowsClientInstance.get(
6189
+ "/workflows",
6190
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6191
+ ensureAuthorizationToken: true
6192
+ }))
6193
+ );
6194
+ return workflows;
6195
+ });
6196
+ },
6197
+ createWorkflow(payload, authorization) {
6198
+ return __async(this, null, function* () {
6199
+ yield workflowsClientInstance.post(
6200
+ "/workflows",
6201
+ payload,
6202
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6203
+ ensureAuthorizationToken: true
6204
+ }))
6205
+ );
6206
+ });
6207
+ },
6208
+ getWorkflow(payload, authorization) {
6209
+ return __async(this, null, function* () {
6210
+ const { data: workflow } = yield workflowsClientInstance.get(
6211
+ `/workflows/${payload.name}?version=${payload.version}`,
6212
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6213
+ ensureAuthorizationToken: true
6214
+ }))
6215
+ );
6216
+ return workflow;
6217
+ });
6218
+ },
6219
+ updateWorkflow(payload, authorization) {
6220
+ return __async(this, null, function* () {
6221
+ const { data: workflow } = yield workflowsClientInstance.put(
6222
+ `/workflows/${payload.name}`,
6223
+ payload,
6224
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6225
+ ensureAuthorizationToken: true
6226
+ }))
6227
+ );
6228
+ return workflow;
6229
+ });
6230
+ },
6231
+ deleteWorkflow(payload, authorization) {
6232
+ return __async(this, null, function* () {
6233
+ yield workflowsClientInstance.delete(
6234
+ `/workflows/${payload.name}`,
6235
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6236
+ ensureAuthorizationToken: true
6237
+ }))
6238
+ );
6239
+ });
6240
+ },
6241
+ executeWorkflow(payload, authorization) {
6242
+ return __async(this, null, function* () {
6243
+ const { data: execution } = yield workflowsClientInstance.post(
6244
+ `/workflows/${payload.name}/executions`,
6245
+ payload,
6246
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6247
+ ensureAuthorizationToken: true
6248
+ }))
6249
+ );
6250
+ return execution;
6251
+ });
6252
+ },
6253
+ getWorkflowExecutionsList(payload, authorization) {
6254
+ return __async(this, null, function* () {
6255
+ const { data: executions } = yield workflowsClientInstance.get(
6256
+ `/workflows/${payload.name}/executions`,
6257
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6258
+ ensureAuthorizationToken: true
6259
+ }))
6260
+ );
6261
+ return executions;
6262
+ });
6263
+ },
6264
+ getWorkflowExecutionDetails(payload, authorization) {
6265
+ return __async(this, null, function* () {
6266
+ const { data: execution } = yield workflowsClientInstance.get(
6267
+ `/workflows/${payload.name}/executions/${payload.execution_id}`,
6268
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6269
+ ensureAuthorizationToken: true
6270
+ }))
6271
+ );
6272
+ return execution;
6273
+ });
6274
+ }
6275
+ };
6276
+
6128
6277
  // src/apis/platform/api.ts
6129
6278
  var platformApi = {
6130
6279
  accounts: platformAccountsApi,
6131
6280
  billing: platformBillingApi,
6132
6281
  adapter: platformAdapterApi,
6133
- dps: platformDpsApi
6282
+ dps: platformDpsApi,
6283
+ workflows: workflowsApi
6134
6284
  };
6135
6285
 
6136
6286
  // src/apis/api.ts
@@ -6141,7 +6291,7 @@ var api = {
6141
6291
  isInitialized: false
6142
6292
  };
6143
6293
  function initApi(config, tokens) {
6144
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
6294
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
6145
6295
  initPlatformAccountsClient(
6146
6296
  (_a = config.urls.platform) == null ? void 0 : _a.accounts,
6147
6297
  (_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.token
@@ -6151,8 +6301,9 @@ function initApi(config, tokens) {
6151
6301
  (_d = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _d.token
6152
6302
  );
6153
6303
  initPlatformDpsClient((_e = config.urls.platform) == null ? void 0 : _e.dps, (_f = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _f.token);
6304
+ initWorkflowsClient((_g = config.urls.platform) == null ? void 0 : _g.workflows, (_h = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _h.token);
6154
6305
  initPlatformAdapterClient(
6155
- (_g = config.urls.platform) == null ? void 0 : _g.adapter,
6306
+ (_i = config.urls.platform) == null ? void 0 : _i.adapter,
6156
6307
  tokens ? {
6157
6308
  platform: tokens.platform,
6158
6309
  github: tokens.github,
@@ -6164,15 +6315,15 @@ function initApi(config, tokens) {
6164
6315
  shopify: tokens.shopify
6165
6316
  } : void 0
6166
6317
  );
6167
- initLiveChatClient((_h = config.urls.products) == null ? void 0 : _h.livechat, (_i = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _i.token);
6168
- initTextClient((_j = config.urls.integrations) == null ? void 0 : _j.text, (_k = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _k.token);
6169
- initGithubClient((_l = tokens == null ? void 0 : tokens.github) == null ? void 0 : _l.appToken);
6170
- initNetlifyClient((_m = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _m.token);
6171
- initVercelClient((_n = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _n.token);
6172
- initNeonClient((_o = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _o.token);
6173
- initPlanetScaleClient((_p = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _p.token);
6174
- initMailchimpClient((_q = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _q.token, (_r = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _r.server);
6175
- initShopifyClient((_s = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _s.token, (_t = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _t.shop);
6318
+ initLiveChatClient((_j = config.urls.products) == null ? void 0 : _j.livechat, (_k = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _k.token);
6319
+ initTextClient((_l = config.urls.integrations) == null ? void 0 : _l.text, (_m = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _m.token);
6320
+ initGithubClient((_n = tokens == null ? void 0 : tokens.github) == null ? void 0 : _n.appToken);
6321
+ initNetlifyClient((_o = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _o.token);
6322
+ initVercelClient((_p = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _p.token);
6323
+ initNeonClient((_q = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _q.token);
6324
+ initPlanetScaleClient((_r = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _r.token);
6325
+ initMailchimpClient((_s = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _s.token, (_t = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _t.server);
6326
+ initShopifyClient((_u = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _u.token, (_v = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _v.shop);
6176
6327
  api.isInitialized = true;
6177
6328
  }
6178
6329
 
@@ -6208,6 +6359,7 @@ function getIntegrationFlowUrl(provider, flow, data, context, config) {
6208
6359
  MailchimpApiError,
6209
6360
  ShopifyApiError,
6210
6361
  UnauthorizeApiError,
6362
+ WorkflowDefinitionTaskType,
6211
6363
  allAppTemplates,
6212
6364
  api,
6213
6365
  appBaseTemplates,
package/dist/index.mjs CHANGED
@@ -5805,20 +5805,6 @@ var platformAdapterAppApi = {
5805
5805
  }
5806
5806
  };
5807
5807
 
5808
- // src/apis/platform/adapter/conductor/api.ts
5809
- var platformAdapterConductorApi = {
5810
- request(config, authorization) {
5811
- return __async(this, null, function* () {
5812
- const response = yield platformAdapterClientInstance.post(
5813
- `/conductor`,
5814
- config,
5815
- getPlatformAdapterClientConfig(authorization)
5816
- );
5817
- return response.data;
5818
- });
5819
- }
5820
- };
5821
-
5822
5808
  // src/apis/platform/billing/instance.ts
5823
5809
  import axios19 from "axios";
5824
5810
  var platformBillingClientInstance = axios19.create({
@@ -5861,6 +5847,17 @@ function initPlatformBillingClient(baseUrl, token) {
5861
5847
  }
5862
5848
  }
5863
5849
 
5850
+ // src/apis/platform/workflows/contracts.ts
5851
+ var WorkflowDefinitionTaskType = {
5852
+ http: "HTTP",
5853
+ switch: "SWITCH",
5854
+ forkJoin: "FORK_JOIN",
5855
+ terminate: "TERMINATE",
5856
+ join: "JOIN",
5857
+ addNode: "ADD_NODE",
5858
+ addTrigger: "ADD_TRIGGER"
5859
+ };
5860
+
5864
5861
  // src/apis/platform/adapter/integrations/neon/api.ts
5865
5862
  var platformAdapterNeonProxyApi = {
5866
5863
  user(authorization) {
@@ -5906,7 +5903,6 @@ var platformAdapterIntegrationsProxyApi = {
5906
5903
  // src/apis/platform/adapter/api.ts
5907
5904
  var platformAdapterApi = {
5908
5905
  app: platformAdapterAppApi,
5909
- conductor: platformAdapterConductorApi,
5910
5906
  proxy: platformAdapterIntegrationsProxyApi,
5911
5907
  log(payload, authorization) {
5912
5908
  return __async(this, null, function* () {
@@ -6008,12 +6004,165 @@ var platformBillingApi = {
6008
6004
  invoices: platformBillingInvoicesApi
6009
6005
  };
6010
6006
 
6007
+ // src/apis/platform/workflows/instance.ts
6008
+ import axios20 from "axios";
6009
+ var WorkflowsApiError = class extends ApiErrorBase {
6010
+ constructor() {
6011
+ super(...arguments);
6012
+ this.name = "dps";
6013
+ }
6014
+ };
6015
+ var workflowsClientInstance = axios20.create({
6016
+ baseURL: "https://api.labs.text.com/workflow_platform"
6017
+ });
6018
+ workflowsClientInstance.interceptors.response.use(
6019
+ (response) => response,
6020
+ (error) => {
6021
+ var _a, _b, _c, _d;
6022
+ if (((_a = error.response) == null ? void 0 : _a.status) === 403) {
6023
+ return Promise.reject(new UnauthorizeApiError("accounts"));
6024
+ }
6025
+ return Promise.reject(
6026
+ new WorkflowsApiError(
6027
+ error.message,
6028
+ (_b = error.response) == null ? void 0 : _b.data,
6029
+ (_d = (_c = error.response) == null ? void 0 : _c.status) != null ? _d : 400
6030
+ )
6031
+ );
6032
+ }
6033
+ );
6034
+ function getWorkflowsClientConfig(options = {}) {
6035
+ var _a;
6036
+ const currentHeaders = workflowsClientInstance.defaults.headers;
6037
+ const defaultAuthorization = currentHeaders.Authorization;
6038
+ if (!options.token && !defaultAuthorization) {
6039
+ throw new UnauthorizeApiError("accounts");
6040
+ }
6041
+ const headers = {
6042
+ authorization: (_a = options.token ? `Bearer ${options.token}` : void 0) != null ? _a : defaultAuthorization
6043
+ };
6044
+ return {
6045
+ headers: __spreadValues({}, headers.authorization ? { Authorization: headers.authorization } : {})
6046
+ };
6047
+ }
6048
+ function initWorkflowsClient(baseUrl, token) {
6049
+ const headers = workflowsClientInstance.defaults.headers;
6050
+ if (baseUrl) {
6051
+ workflowsClientInstance.interceptors.request.use(
6052
+ (config) => {
6053
+ config.baseURL = baseUrl;
6054
+ return config;
6055
+ },
6056
+ (error) => Promise.reject(error)
6057
+ );
6058
+ }
6059
+ if (token) {
6060
+ headers.Authorization = `Bearer ${token}`;
6061
+ } else {
6062
+ delete headers.Authorization;
6063
+ }
6064
+ }
6065
+
6066
+ // src/apis/platform/workflows/api.ts
6067
+ var workflowsApi = {
6068
+ getWorkflows(authorization) {
6069
+ return __async(this, null, function* () {
6070
+ const { data: workflows } = yield workflowsClientInstance.get(
6071
+ "/workflows",
6072
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6073
+ ensureAuthorizationToken: true
6074
+ }))
6075
+ );
6076
+ return workflows;
6077
+ });
6078
+ },
6079
+ createWorkflow(payload, authorization) {
6080
+ return __async(this, null, function* () {
6081
+ yield workflowsClientInstance.post(
6082
+ "/workflows",
6083
+ payload,
6084
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6085
+ ensureAuthorizationToken: true
6086
+ }))
6087
+ );
6088
+ });
6089
+ },
6090
+ getWorkflow(payload, authorization) {
6091
+ return __async(this, null, function* () {
6092
+ const { data: workflow } = yield workflowsClientInstance.get(
6093
+ `/workflows/${payload.name}?version=${payload.version}`,
6094
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6095
+ ensureAuthorizationToken: true
6096
+ }))
6097
+ );
6098
+ return workflow;
6099
+ });
6100
+ },
6101
+ updateWorkflow(payload, authorization) {
6102
+ return __async(this, null, function* () {
6103
+ const { data: workflow } = yield workflowsClientInstance.put(
6104
+ `/workflows/${payload.name}`,
6105
+ payload,
6106
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6107
+ ensureAuthorizationToken: true
6108
+ }))
6109
+ );
6110
+ return workflow;
6111
+ });
6112
+ },
6113
+ deleteWorkflow(payload, authorization) {
6114
+ return __async(this, null, function* () {
6115
+ yield workflowsClientInstance.delete(
6116
+ `/workflows/${payload.name}`,
6117
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6118
+ ensureAuthorizationToken: true
6119
+ }))
6120
+ );
6121
+ });
6122
+ },
6123
+ executeWorkflow(payload, authorization) {
6124
+ return __async(this, null, function* () {
6125
+ const { data: execution } = yield workflowsClientInstance.post(
6126
+ `/workflows/${payload.name}/executions`,
6127
+ payload,
6128
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6129
+ ensureAuthorizationToken: true
6130
+ }))
6131
+ );
6132
+ return execution;
6133
+ });
6134
+ },
6135
+ getWorkflowExecutionsList(payload, authorization) {
6136
+ return __async(this, null, function* () {
6137
+ const { data: executions } = yield workflowsClientInstance.get(
6138
+ `/workflows/${payload.name}/executions`,
6139
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6140
+ ensureAuthorizationToken: true
6141
+ }))
6142
+ );
6143
+ return executions;
6144
+ });
6145
+ },
6146
+ getWorkflowExecutionDetails(payload, authorization) {
6147
+ return __async(this, null, function* () {
6148
+ const { data: execution } = yield workflowsClientInstance.get(
6149
+ `/workflows/${payload.name}/executions/${payload.execution_id}`,
6150
+ getWorkflowsClientConfig(__spreadProps(__spreadValues({}, authorization), {
6151
+ ensureAuthorizationToken: true
6152
+ }))
6153
+ );
6154
+ return execution;
6155
+ });
6156
+ }
6157
+ };
6158
+
6011
6159
  // src/apis/platform/api.ts
6012
6160
  var platformApi = {
6013
6161
  accounts: platformAccountsApi,
6014
6162
  billing: platformBillingApi,
6015
6163
  adapter: platformAdapterApi,
6016
- dps: platformDpsApi
6164
+ dps: platformDpsApi,
6165
+ workflows: workflowsApi
6017
6166
  };
6018
6167
 
6019
6168
  // src/apis/api.ts
@@ -6024,7 +6173,7 @@ var api = {
6024
6173
  isInitialized: false
6025
6174
  };
6026
6175
  function initApi(config, tokens) {
6027
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
6176
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
6028
6177
  initPlatformAccountsClient(
6029
6178
  (_a = config.urls.platform) == null ? void 0 : _a.accounts,
6030
6179
  (_b = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _b.token
@@ -6034,8 +6183,9 @@ function initApi(config, tokens) {
6034
6183
  (_d = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _d.token
6035
6184
  );
6036
6185
  initPlatformDpsClient((_e = config.urls.platform) == null ? void 0 : _e.dps, (_f = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _f.token);
6186
+ initWorkflowsClient((_g = config.urls.platform) == null ? void 0 : _g.workflows, (_h = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _h.token);
6037
6187
  initPlatformAdapterClient(
6038
- (_g = config.urls.platform) == null ? void 0 : _g.adapter,
6188
+ (_i = config.urls.platform) == null ? void 0 : _i.adapter,
6039
6189
  tokens ? {
6040
6190
  platform: tokens.platform,
6041
6191
  github: tokens.github,
@@ -6047,15 +6197,15 @@ function initApi(config, tokens) {
6047
6197
  shopify: tokens.shopify
6048
6198
  } : void 0
6049
6199
  );
6050
- initLiveChatClient((_h = config.urls.products) == null ? void 0 : _h.livechat, (_i = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _i.token);
6051
- initTextClient((_j = config.urls.integrations) == null ? void 0 : _j.text, (_k = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _k.token);
6052
- initGithubClient((_l = tokens == null ? void 0 : tokens.github) == null ? void 0 : _l.appToken);
6053
- initNetlifyClient((_m = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _m.token);
6054
- initVercelClient((_n = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _n.token);
6055
- initNeonClient((_o = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _o.token);
6056
- initPlanetScaleClient((_p = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _p.token);
6057
- initMailchimpClient((_q = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _q.token, (_r = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _r.server);
6058
- initShopifyClient((_s = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _s.token, (_t = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _t.shop);
6200
+ initLiveChatClient((_j = config.urls.products) == null ? void 0 : _j.livechat, (_k = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _k.token);
6201
+ initTextClient((_l = config.urls.integrations) == null ? void 0 : _l.text, (_m = tokens == null ? void 0 : tokens.platform) == null ? void 0 : _m.token);
6202
+ initGithubClient((_n = tokens == null ? void 0 : tokens.github) == null ? void 0 : _n.appToken);
6203
+ initNetlifyClient((_o = tokens == null ? void 0 : tokens.netlify) == null ? void 0 : _o.token);
6204
+ initVercelClient((_p = tokens == null ? void 0 : tokens.vercel) == null ? void 0 : _p.token);
6205
+ initNeonClient((_q = tokens == null ? void 0 : tokens.neon) == null ? void 0 : _q.token);
6206
+ initPlanetScaleClient((_r = tokens == null ? void 0 : tokens.planetscale) == null ? void 0 : _r.token);
6207
+ initMailchimpClient((_s = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _s.token, (_t = tokens == null ? void 0 : tokens.mailchimp) == null ? void 0 : _t.server);
6208
+ initShopifyClient((_u = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _u.token, (_v = tokens == null ? void 0 : tokens.shopify) == null ? void 0 : _v.shop);
6059
6209
  api.isInitialized = true;
6060
6210
  }
6061
6211
 
@@ -6090,6 +6240,7 @@ export {
6090
6240
  MailchimpApiError,
6091
6241
  ShopifyApiError,
6092
6242
  UnauthorizeApiError,
6243
+ WorkflowDefinitionTaskType,
6093
6244
  allAppTemplates,
6094
6245
  api,
6095
6246
  appBaseTemplates,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.49",
3
+ "version": "3.0.50",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -19,9 +19,9 @@
19
19
  "@types/node": "^17.0.12",
20
20
  "tsup": "^7.1.0",
21
21
  "typescript": "^5.1.6",
22
- "eslint-config-custom": "0.0.8",
23
22
  "tsconfig": "0.0.1",
24
- "utils": "0.0.4"
23
+ "utils": "0.0.4",
24
+ "eslint-config-custom": "0.0.8"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "tsup",