mstate-cli 0.2.4 → 0.2.6

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,21 +0,0 @@
1
- {
2
- "name": "handle_update_ticket",
3
- "type": "CHAINED",
4
- "steps": [
5
- {
6
- "id": "1",
7
- "module": "DOUBLE_TICK",
8
- "config": {
9
- "operation": "update",
10
- "secretKey": "EVAL -- env.DOUBLE_TICK_SECRET",
11
- "payload": {
12
- "ticketID": "EVAL -- ticket.data.TaskID",
13
- "assignedTo": "EVAL -- assignee.payload.data.EmailID",
14
- "workspaceID": "EVAL -- env.DOUBLE_TICK_WORKSPACE_ID",
15
- "StatusID": "EVAL -- status.payload.data.ID",
16
- "CollaboratorIDs": "EVAL -- cc.payload.data.test"
17
- }
18
- }
19
- }
20
- ]
21
- }
@@ -1,140 +0,0 @@
1
- {
2
- "steps": [
3
- {
4
- "config": {
5
- "as": "userDetail",
6
- "key": "userDetail"
7
- },
8
- "id": "0",
9
- "module": "CUSTOM_FIELD"
10
- },
11
- {
12
- "config": {
13
- "data": {
14
- "id": "1",
15
- "buttonActionText": "Next",
16
- "fieldType": "dropDown",
17
- "field": {
18
- "keyForAPI": "machine",
19
- "isRequired": true,
20
- "label": "Select Machine",
21
- "hint": "Select Select Machine",
22
- "value": "",
23
- "request": {
24
- "method": "GET",
25
- "url": "EVAL -- CONCAT(env.DOUBLE_TICK_URL, '/workspace/GetWorkspaceProjectsByWorkspaceID', '?WorkspaceID=', env.DOUBLE_TICK_WORKSPACE_ID)",
26
- "headers": {
27
- "secret-key": "EVAL -- env.DOUBLE_TICK_SECRET"
28
- }
29
- },
30
- "mapper": {
31
- "target": "Table",
32
- "id": "ID",
33
- "label": "ProjectName"
34
- },
35
- "placeholder": "Select"
36
- },
37
- "label": "Select Machine",
38
- "order": 1
39
- }
40
- },
41
- "id": "1",
42
- "module": "USER_INPUT"
43
- },
44
- {
45
- "config": {
46
- "data": {
47
- "id": "2",
48
- "buttonActionText": "Next",
49
- "fieldType": "checkBox",
50
- "field": {
51
- "keyForAPI": "reasons",
52
- "isRequired": true,
53
- "label": "Breakdown Reason",
54
- "hint": "Select Breakdown Reason",
55
- "value": "",
56
- "request": {
57
- "method": "GET",
58
- "url": "EVAL -- CONCAT(env.DOUBLE_TICK_URL, '/workspace/GetWorkspaceLabelByWorkspaceID', '?WorkspaceID=', env.DOUBLE_TICK_WORKSPACE_ID)",
59
- "headers": {
60
- "secret-key": "EVAL -- env.DOUBLE_TICK_SECRET"
61
- }
62
- },
63
- "mapper": {
64
- "target": "Table",
65
- "id": "ID",
66
- "label": "Name"
67
- },
68
- "placeholder": "Select"
69
- },
70
- "label": "Breakdown Reason",
71
- "order": 2
72
- }
73
- },
74
- "id": "2",
75
- "module": "USER_INPUT"
76
- },
77
- {
78
- "config": {
79
- "data": {
80
- "id": "3",
81
- "buttonActionText": "Next",
82
- "fieldType": "inputField",
83
- "field": {
84
- "keyForAPI": "summary",
85
- "isRequired": true,
86
- "label": "Breakdown Summary",
87
- "value": "",
88
- "placeholder": "Type here..."
89
- },
90
- "inputType": "text",
91
- "label": "Breakdown Summary",
92
- "order": 3
93
- }
94
- },
95
- "id": "3",
96
- "module": "USER_INPUT"
97
- },
98
- {
99
- "config": {
100
- "data": {
101
- "buttonActionText": "Done",
102
- "fieldType": "summary",
103
- "field": {
104
- "hint": "",
105
- "icon": "",
106
- "label": "Summary",
107
- "value": "",
108
- "id": "sum-3-6"
109
- },
110
- "id": "sum-3-6",
111
- "label": "Summary",
112
- "order": 8,
113
- "type": "summary"
114
- }
115
- },
116
- "id": "7",
117
- "module": "USER_INPUT"
118
- }
119
- ],
120
- "name": "submit_form",
121
- "type": "MANUAL",
122
- "as": "input",
123
- "meta": {
124
- "title": "Maintenance request",
125
- "startCollectionName": "submit_form",
126
- "displayName": "Maintenance request",
127
- "icon": "https://firebasestorage.googleapis.com/v0/b/mobioffice-dev.appspot.com/o/action_icon%2Fattendances.svg?alt=media&token=dd1766c8-687c-4243-8466-e26b26621dcf",
128
- "workflowName": "demo/maintenance_request",
129
- "mstate": true,
130
- "responseSentToMstate": true,
131
- "actionType": "worklog",
132
- "name": "submit_form",
133
- "showDone": true,
134
- "id": "7akmz33czirblvIsLwFX",
135
- "actionHandlerAPI": "",
136
- "actionCompleteText": "Maintenance request send Successfully",
137
- "require_location": false,
138
- "order": 0
139
- }
140
- }
@@ -1,8 +0,0 @@
1
- {
2
- "DOUBLE_TICK_ADMIN": "919104338810",
3
- "DOUBLE_TICK_SECRET": "lrnQuWRvVIqrdFmSh2YhtXnPaOmtdA",
4
- "DOUBLE_TICK_WORKSPACE_ID": 17,
5
- "DOUBLE_TICK_WORKFLOW_ID": 21,
6
- "DOUBLE_TICK_DEFAULT_STATUS_ID": 112,
7
- "DOUBLE_TICK_URL": "https://dev-api.task-management.mobioffice.io/api"
8
- }
@@ -1,84 +0,0 @@
1
- {
2
- "name": "maintenance_request",
3
- "version": "v1",
4
- "maxChainCount": 5,
5
- "states": [
6
- {
7
- "name": "maintenance_request_form",
8
- "actions": [
9
- {
10
- "name": "submit_form",
11
- "on": {
12
- "done": {
13
- "name": "create_ticket",
14
- "type": "ACTION"
15
- }
16
- }
17
- },
18
- {
19
- "name": "create_ticket",
20
- "on": {
21
- "done": {
22
- "name": "handle_ticket_action",
23
- "type": "STATE"
24
- }
25
- }
26
- }
27
- ]
28
- },
29
- {
30
- "name": "handle_ticket_action",
31
- "actions": [
32
- {
33
- "name": "change_status",
34
- "on": {
35
- "done": {
36
- "name": "handle_update_ticket",
37
- "type": "ACTION"
38
- }
39
- }
40
- },
41
- {
42
- "name": "change_assignee",
43
- "on": {
44
- "done": {
45
- "name": "handle_update_ticket",
46
- "type": "ACTION"
47
- }
48
- }
49
- },
50
- {
51
- "name": "edit_collaborator",
52
- "on": {
53
- "done": {
54
- "name": "handle_update_ticket",
55
- "type": "ACTION"
56
- }
57
- }
58
- },
59
- {
60
- "name": "add_photo",
61
- "on": {
62
- "done": {
63
- "name": "handle_ticket_action",
64
- "type": "STATE"
65
- }
66
- }
67
- },
68
- {
69
- "name": "handle_update_ticket",
70
- "on": {
71
- "done": {
72
- "name": "handle_ticket_action",
73
- "type": "STATE"
74
- }
75
- }
76
- }
77
- ]
78
- },
79
- {
80
- "name": "final",
81
- "actions": []
82
- }
83
- ]
84
- }
package/rollup.config.js DELETED
@@ -1,23 +0,0 @@
1
- const resolve = require('@rollup/plugin-node-resolve');
2
- const commonjs = require('@rollup/plugin-commonjs');
3
- const typescript = require('@rollup/plugin-typescript');
4
- const json = require('@rollup/plugin-json');
5
- const terser = require('@rollup/plugin-terser');
6
-
7
- module.exports = {
8
- input: 'src/index.ts', // Your entry file
9
- output: {
10
- dir: 'dist', // Output directory
11
- format: 'cjs', // CommonJS format
12
- },
13
- plugins: [
14
- resolve(), // Resolves node_modules
15
- commonjs(), // Converts CommonJS to ES Modules
16
- terser(), // remove spaces and compress build
17
- typescript({
18
- tsconfig: './tsconfig.json', // Ensure Rollup uses your TypeScript config
19
- declaration: false, // Make sure to disable declaration file generation in Rollup
20
- }), // Transpile TypeScript
21
- json(), // Add JSON plugin
22
- ],
23
- };