@diagonal-hq/workflows 0.3.0 → 0.3.1
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 +9 -9
- package/dist/chunks/chunk-KXVTSLCN.js +428 -0
- package/dist/chunks/{chunk-RTCHH3JG.js → chunk-RWZW4V74.js} +89 -1
- package/dist/generated/capabilities.d.ts +1 -1
- package/dist/generated/profiles/migration.d.ts +155 -0
- package/dist/generated/profiles/test.d.ts +190 -0
- package/dist/index.js +45 -389
- package/dist/profiles/migration.d.ts +8 -2
- package/dist/profiles/migration.js +238 -4
- package/dist/profiles/shared.d.ts +4 -0
- package/dist/profiles/test.d.ts +8 -2
- package/dist/profiles/test.js +283 -4
- package/dist/testing/index.js +1 -2
- package/package.json +1 -1
- package/dist/chunks/chunk-3EO3FSI5.js +0 -94
- /package/dist/chunks/{chunk-NUFRM6SI.js → chunk-CSWWU6TP.js} +0 -0
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { data as rootData } from "../../data.js";
|
|
2
|
+
import { calendar as rootCalendar, callback as rootCallback, chart as rootChart, date as rootDate, file as rootFile, guard as rootGuard, lifecycle as rootLifecycle, mail as rootMail, markdown as rootMarkdown, mediaLibrary as rootMediaLibrary, money as rootMoney, notification as rootNotification, number as rootNumber, package as rootPackage, page as rootPage, payables as rootPayables, payment as rootPayment, phone as rootPhone, scheduling as rootScheduling, schema as rootSchema, security as rootSecurity, subscriptions as rootSubscriptions, text as rootText, time as rootTime, timezone as rootTimezone, tiptap as rootTiptap, user as rootUser, workflow as rootWorkflow, workspace as rootWorkspace } from "../capabilities.js";
|
|
3
|
+
export declare const calendar: {
|
|
4
|
+
generateLink: typeof rootCalendar.generateLink;
|
|
5
|
+
searchEvents: typeof rootCalendar.searchEvents;
|
|
6
|
+
};
|
|
7
|
+
export declare const callback: {
|
|
8
|
+
get: typeof rootCallback.get;
|
|
9
|
+
remove: typeof rootCallback.remove;
|
|
10
|
+
set: typeof rootCallback.set;
|
|
11
|
+
};
|
|
12
|
+
export declare const chart: {
|
|
13
|
+
distribution: typeof rootChart.distribution;
|
|
14
|
+
kpi: typeof rootChart.kpi;
|
|
15
|
+
leaderboard: typeof rootChart.leaderboard;
|
|
16
|
+
timeSeries: typeof rootChart.timeSeries;
|
|
17
|
+
};
|
|
18
|
+
export declare const data: {
|
|
19
|
+
aggregateMetrics: typeof rootData.aggregateMetrics;
|
|
20
|
+
count: typeof rootData.count;
|
|
21
|
+
create: typeof rootData.create;
|
|
22
|
+
createMany: typeof rootData.createMany;
|
|
23
|
+
delete: typeof rootData.delete;
|
|
24
|
+
deleteMany: typeof rootData.deleteMany;
|
|
25
|
+
find: typeof rootData.find;
|
|
26
|
+
findOrCreate: typeof rootData.findOrCreate;
|
|
27
|
+
relation: {
|
|
28
|
+
attach: typeof rootData.relation.attach;
|
|
29
|
+
attachMany: typeof rootData.relation.attachMany;
|
|
30
|
+
detach: typeof rootData.relation.detach;
|
|
31
|
+
detachMany: typeof rootData.relation.detachMany;
|
|
32
|
+
sync: typeof rootData.relation.sync;
|
|
33
|
+
};
|
|
34
|
+
restore: typeof rootData.restore;
|
|
35
|
+
search: typeof rootData.search;
|
|
36
|
+
semanticSearch: typeof rootData.semanticSearch;
|
|
37
|
+
sum: typeof rootData.sum;
|
|
38
|
+
update: typeof rootData.update;
|
|
39
|
+
updateOrCreate: typeof rootData.updateOrCreate;
|
|
40
|
+
validate: typeof rootData.validate;
|
|
41
|
+
};
|
|
42
|
+
export declare const date: {
|
|
43
|
+
add: typeof rootDate.add;
|
|
44
|
+
diff: typeof rootDate.diff;
|
|
45
|
+
endOf: typeof rootDate.endOf;
|
|
46
|
+
format: typeof rootDate.format;
|
|
47
|
+
startOf: typeof rootDate.startOf;
|
|
48
|
+
subtract: typeof rootDate.subtract;
|
|
49
|
+
};
|
|
50
|
+
export declare const file: {
|
|
51
|
+
changeVisibility: typeof rootFile.changeVisibility;
|
|
52
|
+
createMediaLibraryItem: typeof rootFile.createMediaLibraryItem;
|
|
53
|
+
createQrCode: typeof rootFile.createQrCode;
|
|
54
|
+
};
|
|
55
|
+
export declare const guard: {
|
|
56
|
+
validate: typeof rootGuard.validate;
|
|
57
|
+
};
|
|
58
|
+
export declare const lifecycle: {
|
|
59
|
+
output: typeof rootLifecycle.output;
|
|
60
|
+
};
|
|
61
|
+
export declare const mail: {
|
|
62
|
+
search: typeof rootMail.search;
|
|
63
|
+
};
|
|
64
|
+
export declare const markdown: {
|
|
65
|
+
fromContent: typeof rootMarkdown.fromContent;
|
|
66
|
+
toContent: typeof rootMarkdown.toContent;
|
|
67
|
+
};
|
|
68
|
+
export declare const mediaLibrary: {
|
|
69
|
+
createFolder: typeof rootMediaLibrary.createFolder;
|
|
70
|
+
deleteItem: typeof rootMediaLibrary.deleteItem;
|
|
71
|
+
moveItems: typeof rootMediaLibrary.moveItems;
|
|
72
|
+
updateItem: typeof rootMediaLibrary.updateItem;
|
|
73
|
+
};
|
|
74
|
+
export declare const money: {
|
|
75
|
+
format: typeof rootMoney.format;
|
|
76
|
+
};
|
|
77
|
+
export declare const notification: {
|
|
78
|
+
setConsent: typeof rootNotification.setConsent;
|
|
79
|
+
};
|
|
80
|
+
export declare const number: {
|
|
81
|
+
format: typeof rootNumber.format;
|
|
82
|
+
};
|
|
83
|
+
declare const package_: {
|
|
84
|
+
installInput: typeof rootPackage.installInput;
|
|
85
|
+
};
|
|
86
|
+
export { package_ as package };
|
|
87
|
+
export declare const page: {
|
|
88
|
+
url: typeof rootPage.url;
|
|
89
|
+
};
|
|
90
|
+
export declare const payables: {
|
|
91
|
+
void: typeof rootPayables.void;
|
|
92
|
+
writeOff: typeof rootPayables.writeOff;
|
|
93
|
+
};
|
|
94
|
+
export declare const payment: {
|
|
95
|
+
createManual: typeof rootPayment.createManual;
|
|
96
|
+
};
|
|
97
|
+
export declare const phone: {
|
|
98
|
+
format: typeof rootPhone.format;
|
|
99
|
+
};
|
|
100
|
+
export declare const scheduling: {
|
|
101
|
+
bookSlot: typeof rootScheduling.bookSlot;
|
|
102
|
+
findSlots: typeof rootScheduling.findSlots;
|
|
103
|
+
};
|
|
104
|
+
export declare const schema: {
|
|
105
|
+
toJsonSchema: typeof rootSchema.toJsonSchema;
|
|
106
|
+
};
|
|
107
|
+
export declare const security: {
|
|
108
|
+
randomPassword: typeof rootSecurity.randomPassword;
|
|
109
|
+
};
|
|
110
|
+
export declare const subscriptions: {
|
|
111
|
+
activate: typeof rootSubscriptions.activate;
|
|
112
|
+
cancel: typeof rootSubscriptions.cancel;
|
|
113
|
+
changeItems: typeof rootSubscriptions.changeItems;
|
|
114
|
+
create: typeof rootSubscriptions.create;
|
|
115
|
+
generateInvoice: typeof rootSubscriptions.generateInvoice;
|
|
116
|
+
pause: typeof rootSubscriptions.pause;
|
|
117
|
+
preview: typeof rootSubscriptions.preview;
|
|
118
|
+
previewChange: typeof rootSubscriptions.previewChange;
|
|
119
|
+
resume: typeof rootSubscriptions.resume;
|
|
120
|
+
setUpcomingItems: typeof rootSubscriptions.setUpcomingItems;
|
|
121
|
+
};
|
|
122
|
+
export declare const text: {
|
|
123
|
+
generate: typeof rootText.generate;
|
|
124
|
+
hash: typeof rootText.hash;
|
|
125
|
+
randomUuid: typeof rootText.randomUuid;
|
|
126
|
+
toContent: typeof rootText.toContent;
|
|
127
|
+
};
|
|
128
|
+
export declare const time: {
|
|
129
|
+
add: typeof rootTime.add;
|
|
130
|
+
diff: typeof rootTime.diff;
|
|
131
|
+
endOf: typeof rootTime.endOf;
|
|
132
|
+
format: typeof rootTime.format;
|
|
133
|
+
startOf: typeof rootTime.startOf;
|
|
134
|
+
subtract: typeof rootTime.subtract;
|
|
135
|
+
};
|
|
136
|
+
export declare const timezone: {
|
|
137
|
+
format: typeof rootTimezone.format;
|
|
138
|
+
interpret: typeof rootTimezone.interpret;
|
|
139
|
+
};
|
|
140
|
+
export declare const tiptap: {
|
|
141
|
+
parse: typeof rootTiptap.parse;
|
|
142
|
+
};
|
|
143
|
+
export declare const user: {
|
|
144
|
+
authorize: typeof rootUser.authorize;
|
|
145
|
+
};
|
|
146
|
+
export declare const workflow: {
|
|
147
|
+
url: typeof rootWorkflow.url;
|
|
148
|
+
};
|
|
149
|
+
export declare const workspace: {
|
|
150
|
+
loginUrl: typeof rootWorkspace.loginUrl;
|
|
151
|
+
setValue: typeof rootWorkspace.setValue;
|
|
152
|
+
setValues: typeof rootWorkspace.setValues;
|
|
153
|
+
value: typeof rootWorkspace.value;
|
|
154
|
+
values: typeof rootWorkspace.values;
|
|
155
|
+
};
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { data as rootData } from "../../data.js";
|
|
2
|
+
import { ai as rootAi, calendar as rootCalendar, callback as rootCallback, chart as rootChart, date as rootDate, file as rootFile, guard as rootGuard, http as rootHttp, lifecycle as rootLifecycle, mail as rootMail, markdown as rootMarkdown, mediaLibrary as rootMediaLibrary, money as rootMoney, notification as rootNotification, number as rootNumber, package as rootPackage, page as rootPage, payables as rootPayables, payment as rootPayment, payments as rootPayments, phone as rootPhone, scheduling as rootScheduling, schema as rootSchema, security as rootSecurity, sms as rootSms, subscriptions as rootSubscriptions, text as rootText, time as rootTime, timezone as rootTimezone, tiptap as rootTiptap, user as rootUser, web as rootWeb, workflow as rootWorkflow, workspace as rootWorkspace } from "../capabilities.js";
|
|
3
|
+
export declare const ai: {
|
|
4
|
+
decide: typeof rootAi.decide;
|
|
5
|
+
runPrompt: typeof rootAi.runPrompt;
|
|
6
|
+
};
|
|
7
|
+
export declare const calendar: {
|
|
8
|
+
generateLink: typeof rootCalendar.generateLink;
|
|
9
|
+
searchEvents: typeof rootCalendar.searchEvents;
|
|
10
|
+
};
|
|
11
|
+
export declare const callback: {
|
|
12
|
+
get: typeof rootCallback.get;
|
|
13
|
+
remove: typeof rootCallback.remove;
|
|
14
|
+
set: typeof rootCallback.set;
|
|
15
|
+
};
|
|
16
|
+
export declare const chart: {
|
|
17
|
+
distribution: typeof rootChart.distribution;
|
|
18
|
+
kpi: typeof rootChart.kpi;
|
|
19
|
+
leaderboard: typeof rootChart.leaderboard;
|
|
20
|
+
timeSeries: typeof rootChart.timeSeries;
|
|
21
|
+
};
|
|
22
|
+
export declare const data: {
|
|
23
|
+
aggregateMetrics: typeof rootData.aggregateMetrics;
|
|
24
|
+
count: typeof rootData.count;
|
|
25
|
+
create: typeof rootData.create;
|
|
26
|
+
createMany: typeof rootData.createMany;
|
|
27
|
+
delete: typeof rootData.delete;
|
|
28
|
+
deleteMany: typeof rootData.deleteMany;
|
|
29
|
+
find: typeof rootData.find;
|
|
30
|
+
findOrCreate: typeof rootData.findOrCreate;
|
|
31
|
+
relation: {
|
|
32
|
+
attach: typeof rootData.relation.attach;
|
|
33
|
+
attachMany: typeof rootData.relation.attachMany;
|
|
34
|
+
detach: typeof rootData.relation.detach;
|
|
35
|
+
detachMany: typeof rootData.relation.detachMany;
|
|
36
|
+
sync: typeof rootData.relation.sync;
|
|
37
|
+
};
|
|
38
|
+
restore: typeof rootData.restore;
|
|
39
|
+
search: typeof rootData.search;
|
|
40
|
+
semanticSearch: typeof rootData.semanticSearch;
|
|
41
|
+
sum: typeof rootData.sum;
|
|
42
|
+
update: typeof rootData.update;
|
|
43
|
+
updateOrCreate: typeof rootData.updateOrCreate;
|
|
44
|
+
validate: typeof rootData.validate;
|
|
45
|
+
};
|
|
46
|
+
export declare const date: {
|
|
47
|
+
add: typeof rootDate.add;
|
|
48
|
+
diff: typeof rootDate.diff;
|
|
49
|
+
endOf: typeof rootDate.endOf;
|
|
50
|
+
format: typeof rootDate.format;
|
|
51
|
+
startOf: typeof rootDate.startOf;
|
|
52
|
+
subtract: typeof rootDate.subtract;
|
|
53
|
+
};
|
|
54
|
+
export declare const file: {
|
|
55
|
+
changeVisibility: typeof rootFile.changeVisibility;
|
|
56
|
+
createFromUrl: typeof rootFile.createFromUrl;
|
|
57
|
+
createMediaLibraryItem: typeof rootFile.createMediaLibraryItem;
|
|
58
|
+
createQrCode: typeof rootFile.createQrCode;
|
|
59
|
+
};
|
|
60
|
+
export declare const guard: {
|
|
61
|
+
validate: typeof rootGuard.validate;
|
|
62
|
+
};
|
|
63
|
+
export declare const http: {
|
|
64
|
+
request: typeof rootHttp.request;
|
|
65
|
+
};
|
|
66
|
+
export declare const lifecycle: {
|
|
67
|
+
output: typeof rootLifecycle.output;
|
|
68
|
+
};
|
|
69
|
+
export declare const mail: {
|
|
70
|
+
search: typeof rootMail.search;
|
|
71
|
+
send: typeof rootMail.send;
|
|
72
|
+
sendNotification: typeof rootMail.sendNotification;
|
|
73
|
+
};
|
|
74
|
+
export declare const markdown: {
|
|
75
|
+
fromContent: typeof rootMarkdown.fromContent;
|
|
76
|
+
toContent: typeof rootMarkdown.toContent;
|
|
77
|
+
};
|
|
78
|
+
export declare const mediaLibrary: {
|
|
79
|
+
createFolder: typeof rootMediaLibrary.createFolder;
|
|
80
|
+
deleteItem: typeof rootMediaLibrary.deleteItem;
|
|
81
|
+
moveItems: typeof rootMediaLibrary.moveItems;
|
|
82
|
+
updateItem: typeof rootMediaLibrary.updateItem;
|
|
83
|
+
};
|
|
84
|
+
export declare const money: {
|
|
85
|
+
format: typeof rootMoney.format;
|
|
86
|
+
};
|
|
87
|
+
export declare const notification: {
|
|
88
|
+
send: typeof rootNotification.send;
|
|
89
|
+
sendBulkNotifications: typeof rootNotification.sendBulkNotifications;
|
|
90
|
+
sendNotification: typeof rootNotification.sendNotification;
|
|
91
|
+
setConsent: typeof rootNotification.setConsent;
|
|
92
|
+
};
|
|
93
|
+
export declare const number: {
|
|
94
|
+
format: typeof rootNumber.format;
|
|
95
|
+
};
|
|
96
|
+
declare const package_: {
|
|
97
|
+
installInput: typeof rootPackage.installInput;
|
|
98
|
+
};
|
|
99
|
+
export { package_ as package };
|
|
100
|
+
export declare const page: {
|
|
101
|
+
url: typeof rootPage.url;
|
|
102
|
+
};
|
|
103
|
+
export declare const payables: {
|
|
104
|
+
void: typeof rootPayables.void;
|
|
105
|
+
writeOff: typeof rootPayables.writeOff;
|
|
106
|
+
};
|
|
107
|
+
export declare const payment: {
|
|
108
|
+
createManual: typeof rootPayment.createManual;
|
|
109
|
+
};
|
|
110
|
+
export declare const payments: {
|
|
111
|
+
charge: typeof rootPayments.charge;
|
|
112
|
+
checkout: typeof rootPayments.checkout;
|
|
113
|
+
confirm: typeof rootPayments.confirm;
|
|
114
|
+
refund: typeof rootPayments.refund;
|
|
115
|
+
};
|
|
116
|
+
export declare const phone: {
|
|
117
|
+
format: typeof rootPhone.format;
|
|
118
|
+
};
|
|
119
|
+
export declare const scheduling: {
|
|
120
|
+
bookSlot: typeof rootScheduling.bookSlot;
|
|
121
|
+
findSlots: typeof rootScheduling.findSlots;
|
|
122
|
+
};
|
|
123
|
+
export declare const schema: {
|
|
124
|
+
toJsonSchema: typeof rootSchema.toJsonSchema;
|
|
125
|
+
};
|
|
126
|
+
export declare const security: {
|
|
127
|
+
randomPassword: typeof rootSecurity.randomPassword;
|
|
128
|
+
};
|
|
129
|
+
export declare const sms: {
|
|
130
|
+
sendNotification: typeof rootSms.sendNotification;
|
|
131
|
+
};
|
|
132
|
+
export declare const subscriptions: {
|
|
133
|
+
activate: typeof rootSubscriptions.activate;
|
|
134
|
+
cancel: typeof rootSubscriptions.cancel;
|
|
135
|
+
changeItems: typeof rootSubscriptions.changeItems;
|
|
136
|
+
create: typeof rootSubscriptions.create;
|
|
137
|
+
generateInvoice: typeof rootSubscriptions.generateInvoice;
|
|
138
|
+
pause: typeof rootSubscriptions.pause;
|
|
139
|
+
preview: typeof rootSubscriptions.preview;
|
|
140
|
+
previewChange: typeof rootSubscriptions.previewChange;
|
|
141
|
+
resume: typeof rootSubscriptions.resume;
|
|
142
|
+
setUpcomingItems: typeof rootSubscriptions.setUpcomingItems;
|
|
143
|
+
};
|
|
144
|
+
export declare const text: {
|
|
145
|
+
generate: typeof rootText.generate;
|
|
146
|
+
hash: typeof rootText.hash;
|
|
147
|
+
randomUuid: typeof rootText.randomUuid;
|
|
148
|
+
toContent: typeof rootText.toContent;
|
|
149
|
+
};
|
|
150
|
+
export declare const time: {
|
|
151
|
+
add: typeof rootTime.add;
|
|
152
|
+
diff: typeof rootTime.diff;
|
|
153
|
+
endOf: typeof rootTime.endOf;
|
|
154
|
+
format: typeof rootTime.format;
|
|
155
|
+
startOf: typeof rootTime.startOf;
|
|
156
|
+
subtract: typeof rootTime.subtract;
|
|
157
|
+
};
|
|
158
|
+
export declare const timezone: {
|
|
159
|
+
format: typeof rootTimezone.format;
|
|
160
|
+
interpret: typeof rootTimezone.interpret;
|
|
161
|
+
};
|
|
162
|
+
export declare const tiptap: {
|
|
163
|
+
parse: typeof rootTiptap.parse;
|
|
164
|
+
};
|
|
165
|
+
export declare const user: {
|
|
166
|
+
authorize: typeof rootUser.authorize;
|
|
167
|
+
};
|
|
168
|
+
export declare const web: {
|
|
169
|
+
agent: typeof rootWeb.agent;
|
|
170
|
+
batchScrape: typeof rootWeb.batchScrape;
|
|
171
|
+
crawl: typeof rootWeb.crawl;
|
|
172
|
+
extract: typeof rootWeb.extract;
|
|
173
|
+
googleSearch: typeof rootWeb.googleSearch;
|
|
174
|
+
map: typeof rootWeb.map;
|
|
175
|
+
pdf: typeof rootWeb.pdf;
|
|
176
|
+
scrape: typeof rootWeb.scrape;
|
|
177
|
+
screenshot: typeof rootWeb.screenshot;
|
|
178
|
+
searchRanked: typeof rootWeb.searchRanked;
|
|
179
|
+
};
|
|
180
|
+
export declare const workflow: {
|
|
181
|
+
run: typeof rootWorkflow.run;
|
|
182
|
+
url: typeof rootWorkflow.url;
|
|
183
|
+
};
|
|
184
|
+
export declare const workspace: {
|
|
185
|
+
loginUrl: typeof rootWorkspace.loginUrl;
|
|
186
|
+
setValue: typeof rootWorkspace.setValue;
|
|
187
|
+
setValues: typeof rootWorkspace.setValues;
|
|
188
|
+
value: typeof rootWorkspace.value;
|
|
189
|
+
values: typeof rootWorkspace.values;
|
|
190
|
+
};
|