@livechat/platform-workflows 0.1.7 → 0.44.0-beta.v1

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.
@@ -1,98 +0,0 @@
1
- import { JSONSchema7 } from 'json-schema';
2
- import { WorkflowDefinitionTaskType, WorkflowDefinitionHttpTask, WorkflowDefinitionForkJoinTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTerminateTask, DeepPartial, WorkflowTriggerDto } from '@livechat/developer-studio-api';
3
-
4
- interface WorkflowItemCustomization {
5
- provider: string;
6
- providerDisplay: string;
7
- displayName: string;
8
- description: string;
9
- shortDescription: string;
10
- }
11
- interface WorkflowItemConfigBase {
12
- key: string;
13
- isEditable: boolean;
14
- customization: WorkflowItemCustomization;
15
- }
16
- type WorkflowTaskConfig = WorkflowItemConfigBase & (({
17
- type: 'other';
18
- specification: {
19
- input?: JSONSchema7;
20
- output?: JSONSchema7;
21
- };
22
- } & ({
23
- key: typeof WorkflowDefinitionTaskType.http;
24
- template: WorkflowDefinitionHttpTask;
25
- } | {
26
- key: typeof WorkflowDefinitionTaskType.forkJoin;
27
- template: WorkflowDefinitionForkJoinTask;
28
- } | {
29
- key: typeof WorkflowDefinitionTaskType.join;
30
- template: WorkflowDefinitionJoinTask;
31
- } | {
32
- key: typeof WorkflowDefinitionTaskType.switch;
33
- template: WorkflowDefinitionSwitchTask;
34
- } | {
35
- key: typeof WorkflowDefinitionTaskType.terminate;
36
- template: WorkflowDefinitionTerminateTask;
37
- })) | {
38
- type: typeof WorkflowDefinitionTaskType.http;
39
- url: string;
40
- specification: {
41
- input?: JSONSchema7;
42
- output?: JSONSchema7;
43
- };
44
- template: WorkflowDefinitionHttpTask;
45
- });
46
- type WorkflowTriggerConfig = (WorkflowItemConfigBase & {
47
- type: 'webhook';
48
- name: string;
49
- specification: {
50
- input?: JSONSchema7;
51
- output: JSONSchema7;
52
- };
53
- template: DeepPartial<Extract<WorkflowTriggerDto, {
54
- type: 'webhook';
55
- }>>;
56
- }) | (WorkflowItemConfigBase & {
57
- type: 'system';
58
- specification: {
59
- input?: JSONSchema7;
60
- output?: JSONSchema7;
61
- };
62
- template: Partial<Extract<WorkflowTriggerDto, {
63
- type?: 'manual_only' | 'recurring' | 'one_time';
64
- }>>;
65
- });
66
- type WorkflowItemConfig = ({
67
- kind: 'task';
68
- } & WorkflowTaskConfig) | ({
69
- kind: 'trigger';
70
- } & WorkflowTriggerConfig);
71
-
72
- declare enum BigCommerceTaskNames {
73
- CreateBlogPost = "BIGCOMMERCE_CREATE_BLOG_POST",
74
- CreateCustomer = "BIGCOMMERCE_CREATE_CUSTOMER",
75
- UpdateCustomer = "BIGCOMMERCE_UPDATE_CUSTOMER",
76
- CreateProduct = "BIGCOMMERCE_CREATE_PRODUCT",
77
- CreateCustomerAddress = "BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS",
78
- GetCustomer = "BIGCOMMERCE_GET_CUSTOMER",
79
- GetCustomerAddresses = "BIGCOMMERCE_GET_CUSTOMER_ADDRESSES",
80
- GetProducts = "BIGCOMMERCE_GET_PRODUCTS"
81
- }
82
- declare const bigCommerceTaskConfigs: () => Record<BigCommerceTaskNames, Extract<WorkflowItemConfig, {
83
- kind: 'task';
84
- }>>;
85
- declare const BigCommerceTriggerNames: {
86
- readonly CartCreated: "bigcommerce-cart_created";
87
- readonly CartUpdated: "bigcommerce-cart_updated";
88
- readonly OrderCreated: "bigcommerce-order_created";
89
- readonly OrderUpdated: "bigcommerce-order_updated";
90
- readonly ProductCreated: "bigcommerce-product_created";
91
- readonly ProductUpdated: "bigcommerce-product_updated";
92
- };
93
- declare const bigcommerceTriggerConfigs: () => Record<(typeof BigCommerceTriggerNames)[keyof typeof BigCommerceTriggerNames], Extract<WorkflowItemConfig, {
94
- kind: 'trigger';
95
- type: 'webhook';
96
- }>>;
97
-
98
- export { BigCommerceTaskNames as B, type WorkflowItemConfig as W, type WorkflowItemConfigBase as a, bigCommerceTaskConfigs as b, BigCommerceTriggerNames as c, bigcommerceTriggerConfigs as d, type WorkflowItemCustomization as e };
@@ -1,98 +0,0 @@
1
- import { JSONSchema7 } from 'json-schema';
2
- import { WorkflowDefinitionTaskType, WorkflowDefinitionHttpTask, WorkflowDefinitionForkJoinTask, WorkflowDefinitionJoinTask, WorkflowDefinitionSwitchTask, WorkflowDefinitionTerminateTask, DeepPartial, WorkflowTriggerDto } from '@livechat/developer-studio-api';
3
-
4
- interface WorkflowItemCustomization {
5
- provider: string;
6
- providerDisplay: string;
7
- displayName: string;
8
- description: string;
9
- shortDescription: string;
10
- }
11
- interface WorkflowItemConfigBase {
12
- key: string;
13
- isEditable: boolean;
14
- customization: WorkflowItemCustomization;
15
- }
16
- type WorkflowTaskConfig = WorkflowItemConfigBase & (({
17
- type: 'other';
18
- specification: {
19
- input?: JSONSchema7;
20
- output?: JSONSchema7;
21
- };
22
- } & ({
23
- key: typeof WorkflowDefinitionTaskType.http;
24
- template: WorkflowDefinitionHttpTask;
25
- } | {
26
- key: typeof WorkflowDefinitionTaskType.forkJoin;
27
- template: WorkflowDefinitionForkJoinTask;
28
- } | {
29
- key: typeof WorkflowDefinitionTaskType.join;
30
- template: WorkflowDefinitionJoinTask;
31
- } | {
32
- key: typeof WorkflowDefinitionTaskType.switch;
33
- template: WorkflowDefinitionSwitchTask;
34
- } | {
35
- key: typeof WorkflowDefinitionTaskType.terminate;
36
- template: WorkflowDefinitionTerminateTask;
37
- })) | {
38
- type: typeof WorkflowDefinitionTaskType.http;
39
- url: string;
40
- specification: {
41
- input?: JSONSchema7;
42
- output?: JSONSchema7;
43
- };
44
- template: WorkflowDefinitionHttpTask;
45
- });
46
- type WorkflowTriggerConfig = (WorkflowItemConfigBase & {
47
- type: 'webhook';
48
- name: string;
49
- specification: {
50
- input?: JSONSchema7;
51
- output: JSONSchema7;
52
- };
53
- template: DeepPartial<Extract<WorkflowTriggerDto, {
54
- type: 'webhook';
55
- }>>;
56
- }) | (WorkflowItemConfigBase & {
57
- type: 'system';
58
- specification: {
59
- input?: JSONSchema7;
60
- output?: JSONSchema7;
61
- };
62
- template: Partial<Extract<WorkflowTriggerDto, {
63
- type?: 'manual_only' | 'recurring' | 'one_time';
64
- }>>;
65
- });
66
- type WorkflowItemConfig = ({
67
- kind: 'task';
68
- } & WorkflowTaskConfig) | ({
69
- kind: 'trigger';
70
- } & WorkflowTriggerConfig);
71
-
72
- declare enum BigCommerceTaskNames {
73
- CreateBlogPost = "BIGCOMMERCE_CREATE_BLOG_POST",
74
- CreateCustomer = "BIGCOMMERCE_CREATE_CUSTOMER",
75
- UpdateCustomer = "BIGCOMMERCE_UPDATE_CUSTOMER",
76
- CreateProduct = "BIGCOMMERCE_CREATE_PRODUCT",
77
- CreateCustomerAddress = "BIGCOMMERCE_CREATE_CUSTOMER_ADDRESS",
78
- GetCustomer = "BIGCOMMERCE_GET_CUSTOMER",
79
- GetCustomerAddresses = "BIGCOMMERCE_GET_CUSTOMER_ADDRESSES",
80
- GetProducts = "BIGCOMMERCE_GET_PRODUCTS"
81
- }
82
- declare const bigCommerceTaskConfigs: () => Record<BigCommerceTaskNames, Extract<WorkflowItemConfig, {
83
- kind: 'task';
84
- }>>;
85
- declare const BigCommerceTriggerNames: {
86
- readonly CartCreated: "bigcommerce-cart_created";
87
- readonly CartUpdated: "bigcommerce-cart_updated";
88
- readonly OrderCreated: "bigcommerce-order_created";
89
- readonly OrderUpdated: "bigcommerce-order_updated";
90
- readonly ProductCreated: "bigcommerce-product_created";
91
- readonly ProductUpdated: "bigcommerce-product_updated";
92
- };
93
- declare const bigcommerceTriggerConfigs: () => Record<(typeof BigCommerceTriggerNames)[keyof typeof BigCommerceTriggerNames], Extract<WorkflowItemConfig, {
94
- kind: 'trigger';
95
- type: 'webhook';
96
- }>>;
97
-
98
- export { BigCommerceTaskNames as B, type WorkflowItemConfig as W, type WorkflowItemConfigBase as a, bigCommerceTaskConfigs as b, BigCommerceTriggerNames as c, bigcommerceTriggerConfigs as d, type WorkflowItemCustomization as e };