@diagonal-hq/workflows 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -8
- package/dist/chunks/{chunk-KXVTSLCN.js → chunk-7MUIXOH5.js} +21 -4
- package/dist/chunks/{chunk-RWZW4V74.js → chunk-EU2ME5WR.js} +15 -6
- package/dist/data.d.ts +7 -1
- package/dist/generated/capabilities.d.ts +246 -9
- package/dist/generated/profiles/test.d.ts +2 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -2
- package/dist/notifications.d.ts +4 -3
- package/dist/profiles/shared.d.ts +1 -1
- package/dist/profiles/test.js +2 -3
- package/dist/testing/context.d.ts +6 -0
- package/dist/testing/index.d.ts +8 -5
- package/dist/testing/index.js +37 -25
- package/dist/workflow-config.d.ts +7 -0
- package/dist/workflow.d.ts +23 -6
- package/dist/workspace-values.d.ts +36 -0
- package/package.json +1 -5
- package/dist/chunks/chunk-CSWWU6TP.js +0 -0
- package/dist/generated/profiles/migration.d.ts +0 -155
- package/dist/profiles/migration.d.ts +0 -9
- package/dist/profiles/migration.js +0 -255
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import "../chunks/chunk-CSWWU6TP.js";
|
|
2
|
-
import {
|
|
3
|
-
calendar,
|
|
4
|
-
callback,
|
|
5
|
-
chart,
|
|
6
|
-
data,
|
|
7
|
-
date,
|
|
8
|
-
file,
|
|
9
|
-
guard,
|
|
10
|
-
lifecycle,
|
|
11
|
-
mail,
|
|
12
|
-
markdown,
|
|
13
|
-
mediaLibrary,
|
|
14
|
-
money,
|
|
15
|
-
notification,
|
|
16
|
-
number,
|
|
17
|
-
package_,
|
|
18
|
-
page,
|
|
19
|
-
payables,
|
|
20
|
-
payment,
|
|
21
|
-
phone,
|
|
22
|
-
scheduling,
|
|
23
|
-
schema,
|
|
24
|
-
security,
|
|
25
|
-
subscriptions,
|
|
26
|
-
text,
|
|
27
|
-
time,
|
|
28
|
-
timezone,
|
|
29
|
-
tiptap,
|
|
30
|
-
transaction,
|
|
31
|
-
user,
|
|
32
|
-
workflow,
|
|
33
|
-
workspace
|
|
34
|
-
} from "../chunks/chunk-KXVTSLCN.js";
|
|
35
|
-
import {
|
|
36
|
-
InputField,
|
|
37
|
-
InputSchema,
|
|
38
|
-
defineWorkflow,
|
|
39
|
-
parseWorkflowInput,
|
|
40
|
-
redirect,
|
|
41
|
-
respond,
|
|
42
|
-
v,
|
|
43
|
-
validateWorkflowInput
|
|
44
|
-
} from "../chunks/chunk-RWZW4V74.js";
|
|
45
|
-
import {
|
|
46
|
-
HostError,
|
|
47
|
-
WorkflowFailure,
|
|
48
|
-
fail,
|
|
49
|
-
validationError
|
|
50
|
-
} from "../chunks/chunk-OF5QITP7.js";
|
|
51
|
-
|
|
52
|
-
// packages/workflows/src/generated/profiles/migration.ts
|
|
53
|
-
var calendar2 = {
|
|
54
|
-
generateLink: calendar.generateLink,
|
|
55
|
-
searchEvents: calendar.searchEvents
|
|
56
|
-
};
|
|
57
|
-
var callback2 = {
|
|
58
|
-
get: callback.get,
|
|
59
|
-
remove: callback.remove,
|
|
60
|
-
set: callback.set
|
|
61
|
-
};
|
|
62
|
-
var chart2 = {
|
|
63
|
-
distribution: chart.distribution,
|
|
64
|
-
kpi: chart.kpi,
|
|
65
|
-
leaderboard: chart.leaderboard,
|
|
66
|
-
timeSeries: chart.timeSeries
|
|
67
|
-
};
|
|
68
|
-
var data2 = {
|
|
69
|
-
aggregateMetrics: data.aggregateMetrics,
|
|
70
|
-
count: data.count,
|
|
71
|
-
create: data.create,
|
|
72
|
-
createMany: data.createMany,
|
|
73
|
-
delete: data.delete,
|
|
74
|
-
deleteMany: data.deleteMany,
|
|
75
|
-
find: data.find,
|
|
76
|
-
findOrCreate: data.findOrCreate,
|
|
77
|
-
relation: {
|
|
78
|
-
attach: data.relation.attach,
|
|
79
|
-
attachMany: data.relation.attachMany,
|
|
80
|
-
detach: data.relation.detach,
|
|
81
|
-
detachMany: data.relation.detachMany,
|
|
82
|
-
sync: data.relation.sync
|
|
83
|
-
},
|
|
84
|
-
restore: data.restore,
|
|
85
|
-
search: data.search,
|
|
86
|
-
semanticSearch: data.semanticSearch,
|
|
87
|
-
sum: data.sum,
|
|
88
|
-
update: data.update,
|
|
89
|
-
updateOrCreate: data.updateOrCreate,
|
|
90
|
-
validate: data.validate
|
|
91
|
-
};
|
|
92
|
-
var date2 = {
|
|
93
|
-
add: date.add,
|
|
94
|
-
diff: date.diff,
|
|
95
|
-
endOf: date.endOf,
|
|
96
|
-
format: date.format,
|
|
97
|
-
startOf: date.startOf,
|
|
98
|
-
subtract: date.subtract
|
|
99
|
-
};
|
|
100
|
-
var file2 = {
|
|
101
|
-
changeVisibility: file.changeVisibility,
|
|
102
|
-
createMediaLibraryItem: file.createMediaLibraryItem,
|
|
103
|
-
createQrCode: file.createQrCode
|
|
104
|
-
};
|
|
105
|
-
var guard2 = {
|
|
106
|
-
validate: guard.validate
|
|
107
|
-
};
|
|
108
|
-
var lifecycle2 = {
|
|
109
|
-
output: lifecycle.output
|
|
110
|
-
};
|
|
111
|
-
var mail2 = {
|
|
112
|
-
search: mail.search
|
|
113
|
-
};
|
|
114
|
-
var markdown2 = {
|
|
115
|
-
fromContent: markdown.fromContent,
|
|
116
|
-
toContent: markdown.toContent
|
|
117
|
-
};
|
|
118
|
-
var mediaLibrary2 = {
|
|
119
|
-
createFolder: mediaLibrary.createFolder,
|
|
120
|
-
deleteItem: mediaLibrary.deleteItem,
|
|
121
|
-
moveItems: mediaLibrary.moveItems,
|
|
122
|
-
updateItem: mediaLibrary.updateItem
|
|
123
|
-
};
|
|
124
|
-
var money2 = {
|
|
125
|
-
format: money.format
|
|
126
|
-
};
|
|
127
|
-
var notification2 = {
|
|
128
|
-
setConsent: notification.setConsent
|
|
129
|
-
};
|
|
130
|
-
var number2 = {
|
|
131
|
-
format: number.format
|
|
132
|
-
};
|
|
133
|
-
var package_2 = {
|
|
134
|
-
installInput: package_.installInput
|
|
135
|
-
};
|
|
136
|
-
var page2 = {
|
|
137
|
-
url: page.url
|
|
138
|
-
};
|
|
139
|
-
var payables2 = {
|
|
140
|
-
void: payables.void,
|
|
141
|
-
writeOff: payables.writeOff
|
|
142
|
-
};
|
|
143
|
-
var payment2 = {
|
|
144
|
-
createManual: payment.createManual
|
|
145
|
-
};
|
|
146
|
-
var phone2 = {
|
|
147
|
-
format: phone.format
|
|
148
|
-
};
|
|
149
|
-
var scheduling2 = {
|
|
150
|
-
bookSlot: scheduling.bookSlot,
|
|
151
|
-
findSlots: scheduling.findSlots
|
|
152
|
-
};
|
|
153
|
-
var schema2 = {
|
|
154
|
-
toJsonSchema: schema.toJsonSchema
|
|
155
|
-
};
|
|
156
|
-
var security2 = {
|
|
157
|
-
randomPassword: security.randomPassword
|
|
158
|
-
};
|
|
159
|
-
var subscriptions2 = {
|
|
160
|
-
activate: subscriptions.activate,
|
|
161
|
-
cancel: subscriptions.cancel,
|
|
162
|
-
changeItems: subscriptions.changeItems,
|
|
163
|
-
create: subscriptions.create,
|
|
164
|
-
generateInvoice: subscriptions.generateInvoice,
|
|
165
|
-
pause: subscriptions.pause,
|
|
166
|
-
preview: subscriptions.preview,
|
|
167
|
-
previewChange: subscriptions.previewChange,
|
|
168
|
-
resume: subscriptions.resume,
|
|
169
|
-
setUpcomingItems: subscriptions.setUpcomingItems
|
|
170
|
-
};
|
|
171
|
-
var text2 = {
|
|
172
|
-
generate: text.generate,
|
|
173
|
-
hash: text.hash,
|
|
174
|
-
randomUuid: text.randomUuid,
|
|
175
|
-
toContent: text.toContent
|
|
176
|
-
};
|
|
177
|
-
var time2 = {
|
|
178
|
-
add: time.add,
|
|
179
|
-
diff: time.diff,
|
|
180
|
-
endOf: time.endOf,
|
|
181
|
-
format: time.format,
|
|
182
|
-
startOf: time.startOf,
|
|
183
|
-
subtract: time.subtract
|
|
184
|
-
};
|
|
185
|
-
var timezone2 = {
|
|
186
|
-
format: timezone.format,
|
|
187
|
-
interpret: timezone.interpret
|
|
188
|
-
};
|
|
189
|
-
var tiptap2 = {
|
|
190
|
-
parse: tiptap.parse
|
|
191
|
-
};
|
|
192
|
-
var user2 = {
|
|
193
|
-
authorize: user.authorize
|
|
194
|
-
};
|
|
195
|
-
var workflow2 = {
|
|
196
|
-
url: workflow.url
|
|
197
|
-
};
|
|
198
|
-
var workspace2 = {
|
|
199
|
-
loginUrl: workspace.loginUrl,
|
|
200
|
-
setValue: workspace.setValue,
|
|
201
|
-
setValues: workspace.setValues,
|
|
202
|
-
value: workspace.value,
|
|
203
|
-
values: workspace.values
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
// packages/workflows/src/profiles/migration.ts
|
|
207
|
-
var data3 = {
|
|
208
|
-
...data2,
|
|
209
|
-
each: data.each
|
|
210
|
-
};
|
|
211
|
-
export {
|
|
212
|
-
HostError,
|
|
213
|
-
InputField,
|
|
214
|
-
InputSchema,
|
|
215
|
-
WorkflowFailure,
|
|
216
|
-
calendar2 as calendar,
|
|
217
|
-
callback2 as callback,
|
|
218
|
-
chart2 as chart,
|
|
219
|
-
data3 as data,
|
|
220
|
-
date2 as date,
|
|
221
|
-
defineWorkflow,
|
|
222
|
-
fail,
|
|
223
|
-
file2 as file,
|
|
224
|
-
guard2 as guard,
|
|
225
|
-
lifecycle2 as lifecycle,
|
|
226
|
-
mail2 as mail,
|
|
227
|
-
markdown2 as markdown,
|
|
228
|
-
mediaLibrary2 as mediaLibrary,
|
|
229
|
-
money2 as money,
|
|
230
|
-
notification2 as notification,
|
|
231
|
-
number2 as number,
|
|
232
|
-
package_2 as package,
|
|
233
|
-
page2 as page,
|
|
234
|
-
parseWorkflowInput,
|
|
235
|
-
payables2 as payables,
|
|
236
|
-
payment2 as payment,
|
|
237
|
-
phone2 as phone,
|
|
238
|
-
redirect,
|
|
239
|
-
respond,
|
|
240
|
-
scheduling2 as scheduling,
|
|
241
|
-
schema2 as schema,
|
|
242
|
-
security2 as security,
|
|
243
|
-
subscriptions2 as subscriptions,
|
|
244
|
-
text2 as text,
|
|
245
|
-
time2 as time,
|
|
246
|
-
timezone2 as timezone,
|
|
247
|
-
tiptap2 as tiptap,
|
|
248
|
-
transaction,
|
|
249
|
-
user2 as user,
|
|
250
|
-
v,
|
|
251
|
-
validateWorkflowInput,
|
|
252
|
-
validationError,
|
|
253
|
-
workflow2 as workflow,
|
|
254
|
-
workspace2 as workspace
|
|
255
|
-
};
|