@diagonal-hq/cli 0.41.4 → 0.41.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.
- package/README.md +47 -8
- package/dist/check-data.json +1 -1
- package/dist/{cli-assets-cli-FMLE5XEF.mjs → cli-assets-cli-WEGERBBR.mjs} +8 -134
- package/dist/{cli-check-data-PQDHTVM6.mjs → cli-check-data-7TKAM34J.mjs} +152 -2259
- package/dist/cli-chunk-25JQRNTW.mjs +24138 -0
- package/dist/{cli-chunk-U2ET6LQJ.mjs → cli-chunk-3SEADNVJ.mjs} +153 -1
- package/dist/{cli-chunk-TEV2VFGB.mjs → cli-chunk-77DCVFIZ.mjs} +7 -23955
- package/dist/{cli-chunk-4FQYK2WG.mjs → cli-chunk-ES45EAOO.mjs} +4 -1
- package/dist/{cli-skill-file-26B4RRZZ.mjs → cli-chunk-KZOQCV4Y.mjs} +7 -8
- package/dist/{cli-chunk-2YX3ABIW.mjs → cli-chunk-NEXRHJ3X.mjs} +1500 -44
- package/dist/{cli-chunk-XMVYLKEB.mjs → cli-chunk-TDGR3ENO.mjs} +278 -1
- package/dist/cli-chunk-XO3FRXQ4.mjs +3200 -0
- package/dist/{cli-chunk-GCF6XYTF.mjs → cli-chunk-XQQBHS6I.mjs} +18 -2
- package/dist/cli-skill-file-XEFKCU5Y.mjs +27 -0
- package/dist/{cli-workflows-YLHANSO2.mjs → cli-workflows-VFKTQW7H.mjs} +14 -18
- package/dist/cli.mjs +10361 -99
- package/dist/index.d.ts +55 -15
- package/dist/sdk-contract.d.ts +4 -1
- package/package.json +4 -4
- package/dist/cli-chunk-C3LVTOK3.mjs +0 -1054
- package/dist/cli-chunk-WPC3DBHX.mjs +0 -52
|
@@ -1,1054 +0,0 @@
|
|
|
1
|
-
import { createRequire as __diagonalCreateRequire } from 'node:module';
|
|
2
|
-
const require = __diagonalCreateRequire(import.meta.url);
|
|
3
|
-
|
|
4
|
-
// packages/cli/package-rules.json
|
|
5
|
-
var package_rules_default = {
|
|
6
|
-
package_name: "^(?:@[a-z0-9-~][a-z0-9-._~]*/)?[a-z0-9-~][a-z0-9-._~]*$",
|
|
7
|
-
dev_file_infix: "\\.dev(?=\\.[^/]+$)",
|
|
8
|
-
problems: {
|
|
9
|
-
package_name: '"name" must be a package name that npm installs, such as "todo" or "@acme/todo"',
|
|
10
|
-
diagonal_field: '"diagonal" must be an object. Write "diagonal": {} to mark a Diagonal package'
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
// scripts/lib/runtime-build/definition-slug.mjs
|
|
15
|
-
var LATIN_LETTERS = /* @__PURE__ */ new Map([
|
|
16
|
-
["\xDF", "ss"],
|
|
17
|
-
["\u1E9E", "ss"],
|
|
18
|
-
["\xE6", "ae"],
|
|
19
|
-
["\xC6", "ae"],
|
|
20
|
-
["\xF8", "o"],
|
|
21
|
-
["\xD8", "o"],
|
|
22
|
-
["\u0153", "oe"],
|
|
23
|
-
["\u0152", "oe"],
|
|
24
|
-
["\u0111", "d"],
|
|
25
|
-
["\u0110", "d"],
|
|
26
|
-
["\u0142", "l"],
|
|
27
|
-
["\u0141", "l"],
|
|
28
|
-
["\xFE", "th"],
|
|
29
|
-
["\xDE", "th"],
|
|
30
|
-
["\xF0", "d"],
|
|
31
|
-
["\xD0", "d"],
|
|
32
|
-
["\u0131", "i"],
|
|
33
|
-
["\u014B", "n"],
|
|
34
|
-
["\u014A", "n"],
|
|
35
|
-
["\u0127", "h"],
|
|
36
|
-
["\u0126", "h"],
|
|
37
|
-
["\u0167", "t"],
|
|
38
|
-
["\u0166", "t"],
|
|
39
|
-
["\u0138", "k"]
|
|
40
|
-
]);
|
|
41
|
-
var LATIN_LETTER = new RegExp(`[${[...LATIN_LETTERS.keys()].join("")}]`, "g");
|
|
42
|
-
var DEV_INFIX = new RegExp(package_rules_default.dev_file_infix);
|
|
43
|
-
function isDevPath(path) {
|
|
44
|
-
return DEV_INFIX.test(path);
|
|
45
|
-
}
|
|
46
|
-
function withoutDevInfix(path) {
|
|
47
|
-
return path.replace(DEV_INFIX, "");
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// scripts/lib/runtime-build/diagnostics.mjs
|
|
51
|
-
var BUILD_STAGE = "build";
|
|
52
|
-
function diagnostic(path, line, column, message, { stage = BUILD_STAGE, severity = "error", relatedPath } = {}) {
|
|
53
|
-
const result = { path, line, column, severity, message, stage };
|
|
54
|
-
if (relatedPath !== void 0) {
|
|
55
|
-
result.related_path = relatedPath;
|
|
56
|
-
}
|
|
57
|
-
return result;
|
|
58
|
-
}
|
|
59
|
-
function diagnosticAt(path, node, message, options) {
|
|
60
|
-
const start = node?.loc?.start;
|
|
61
|
-
return diagnostic(node?.loc?.filename ?? path, start ? start.line : 1, start ? start.column + 1 : 1, message, options);
|
|
62
|
-
}
|
|
63
|
-
function hasErrors(diagnostics) {
|
|
64
|
-
return diagnostics.some((diagnostic2) => diagnostic2.severity === "error");
|
|
65
|
-
}
|
|
66
|
-
function sortDiagnostics(diagnostics) {
|
|
67
|
-
return diagnostics.toSorted(
|
|
68
|
-
(left, right) => left.path.localeCompare(right.path) || left.line - right.line || left.column - right.column
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// app/pages/resources/js/pageRuntime/sdk/generated/sdkExports.ts
|
|
73
|
-
var PAGES_SDK_PACKAGE = "@diagonal-hq/pages";
|
|
74
|
-
var PAGE_SDK_FILE_ONLY_EXPORTS = Object.freeze(["defineMenu", "useMenu"]);
|
|
75
|
-
var PAGE_SDK_FILE_TYPED_EXPORTS = Object.freeze(["defineMenu", "useMenu", "utils"]);
|
|
76
|
-
var PAGE_SDK_EXPORTS = Object.freeze({
|
|
77
|
-
Accordion: ["Components", "Accordion"],
|
|
78
|
-
AdminNavButtons: ["Components", "AdminNavButtons"],
|
|
79
|
-
AiAgentButton: ["Components", "AiAgentButton"],
|
|
80
|
-
AiChatButton: ["Components", "AiChatButton"],
|
|
81
|
-
Alert: ["Components", "Alert"],
|
|
82
|
-
AnalyticsEmbed: ["Components", "AnalyticsEmbed"],
|
|
83
|
-
Avatar: ["Components", "Avatar"],
|
|
84
|
-
Badge: ["Components", "Badge"],
|
|
85
|
-
BarChart: ["Components", "BarChart"],
|
|
86
|
-
Breadcrumb: ["Components", "Breadcrumb"],
|
|
87
|
-
Button: ["Components", "Button"],
|
|
88
|
-
ButtonLink: ["Components", "ButtonLink"],
|
|
89
|
-
Calendar: ["Components", "Calendar"],
|
|
90
|
-
CalendarConnections: ["Components", "CalendarConnections"],
|
|
91
|
-
CalendarNextButton: ["Components", "CalendarNextButton"],
|
|
92
|
-
CalendarPrevButton: ["Components", "CalendarPrevButton"],
|
|
93
|
-
CalendarSelector: ["Components", "CalendarSelector"],
|
|
94
|
-
CalendarTitle: ["Components", "CalendarTitle"],
|
|
95
|
-
CalendarTodayButton: ["Components", "CalendarTodayButton"],
|
|
96
|
-
CalendarViewSwitcher: ["Components", "CalendarViewSwitcher"],
|
|
97
|
-
Card: ["Components", "Card"],
|
|
98
|
-
Collapsible: ["Components", "Collapsible"],
|
|
99
|
-
ConfirmDialog: ["Components", "ConfirmDialog"],
|
|
100
|
-
CreateResourceRecordForm: ["Components", "CreateResourceRecordForm"],
|
|
101
|
-
DataTable: ["Components", "DataTable"],
|
|
102
|
-
DataTableAddFilter: ["Components", "DataTableAddFilter"],
|
|
103
|
-
DataTableBulkActions: ["Components", "DataTableBulkActions"],
|
|
104
|
-
DataTableColumnToggle: ["Components", "DataTableColumnToggle"],
|
|
105
|
-
DataTableContent: ["Components", "DataTableContent"],
|
|
106
|
-
DataTableFilterChips: ["Components", "DataTableFilterChips"],
|
|
107
|
-
DataTableFilters: ["Components", "DataTableFilters"],
|
|
108
|
-
DataTablePagination: ["Components", "DataTablePagination"],
|
|
109
|
-
DataTableRowActions: ["Components", "DataTableRowActions"],
|
|
110
|
-
DataTableSearch: ["Components", "DataTableSearch"],
|
|
111
|
-
DataTableToolbar: ["Components", "DataTableToolbar"],
|
|
112
|
-
DeleteResourceRecord: ["Components", "DeleteResourceRecord"],
|
|
113
|
-
Dnd: ["Dnd"],
|
|
114
|
-
DropdownMenu: ["Components", "DropdownMenu"],
|
|
115
|
-
EmailComposer: ["Components", "EmailComposer"],
|
|
116
|
-
EmailMessages: ["Components", "EmailMessages"],
|
|
117
|
-
EmptyState: ["Components", "EmptyState"],
|
|
118
|
-
ErrorBoundary: ["Components", "ErrorBoundary"],
|
|
119
|
-
FilterPresets: ["Components", "FilterPresets"],
|
|
120
|
-
ForgotPasswordForm: ["Components", "ForgotPasswordForm"],
|
|
121
|
-
FormCheckbox: ["Components", "FormCheckbox"],
|
|
122
|
-
FormCheckboxGroupInput: ["Components", "FormCheckboxGroupInput"],
|
|
123
|
-
FormCodeInput: ["Components", "FormCodeInput"],
|
|
124
|
-
FormColorInput: ["Components", "FormColorInput"],
|
|
125
|
-
FormComboboxInput: ["Components", "FormComboboxInput"],
|
|
126
|
-
FormContentInput: ["Components", "FormContentInput"],
|
|
127
|
-
FormDateInput: ["Components", "FormDateInput"],
|
|
128
|
-
FormDatetimeInput: ["Components", "FormDatetimeInput"],
|
|
129
|
-
FormFieldDisplay: ["Components", "FormFieldDisplay"],
|
|
130
|
-
FormFieldInput: ["Components", "FormFieldInput"],
|
|
131
|
-
FormFileUpload: ["Components", "FormFileUpload"],
|
|
132
|
-
FormLocationInput: ["Components", "FormLocationInput"],
|
|
133
|
-
FormMarkdownInput: ["Components", "FormMarkdownInput"],
|
|
134
|
-
FormMoneyInput: ["Components", "FormMoneyInput"],
|
|
135
|
-
FormMultiComboboxInput: ["Components", "FormMultiComboboxInput"],
|
|
136
|
-
FormNumberInput: ["Components", "FormNumberInput"],
|
|
137
|
-
FormPasswordInput: ["Components", "FormPasswordInput"],
|
|
138
|
-
FormPhoneInput: ["Components", "FormPhoneInput"],
|
|
139
|
-
FormRadio: ["Components", "FormRadio"],
|
|
140
|
-
FormSelectInput: ["Components", "FormSelectInput"],
|
|
141
|
-
FormSlider: ["Components", "FormSlider"],
|
|
142
|
-
FormSwitch: ["Components", "FormSwitch"],
|
|
143
|
-
FormTextArea: ["Components", "FormTextArea"],
|
|
144
|
-
FormTextInput: ["Components", "FormTextInput"],
|
|
145
|
-
FormTimeInput: ["Components", "FormTimeInput"],
|
|
146
|
-
FormTimezoneInput: ["Components", "FormTimezoneInput"],
|
|
147
|
-
HasAnyPermission: ["Components", "HasAnyPermission"],
|
|
148
|
-
HasPermission: ["Components", "HasPermission"],
|
|
149
|
-
Icon: ["Components", "Icon"],
|
|
150
|
-
Iframe: ["Components", "Iframe"],
|
|
151
|
-
Image: ["Components", "Image"],
|
|
152
|
-
KeyValueList: ["Components", "KeyValueList"],
|
|
153
|
-
LineChart: ["Components", "LineChart"],
|
|
154
|
-
Link: ["Components", "Link"],
|
|
155
|
-
List: ["Components", "List"],
|
|
156
|
-
LoginForm: ["Components", "LoginForm"],
|
|
157
|
-
LogoutButton: ["Components", "LogoutButton"],
|
|
158
|
-
Map: ["Components", "Map"],
|
|
159
|
-
Modal: ["Components", "Modal"],
|
|
160
|
-
NavMain: ["Components", "NavMain"],
|
|
161
|
-
NotificationComposer: ["Components", "NotificationComposer"],
|
|
162
|
-
NotificationConsentForm: ["Components", "NotificationConsentForm"],
|
|
163
|
-
NotificationHistory: ["Components", "NotificationHistory"],
|
|
164
|
-
NotificationVariablesForm: ["Components", "NotificationVariablesForm"],
|
|
165
|
-
PackageReleaseNotes: ["Components", "PackageReleaseNotes"],
|
|
166
|
-
PageHeader: ["Components", "PageHeader"],
|
|
167
|
-
PaymentForm: ["Components", "PaymentForm"],
|
|
168
|
-
PaymentMethods: ["Components", "PaymentMethods"],
|
|
169
|
-
PieChart: ["Components", "PieChart"],
|
|
170
|
-
Popover: ["Components", "Popover"],
|
|
171
|
-
QrCode: ["Components", "QrCode"],
|
|
172
|
-
RecordFields: ["Components", "RecordFields"],
|
|
173
|
-
RecordScheduleDisplay: ["Components", "RecordScheduleDisplay"],
|
|
174
|
-
ResourceTable: ["Components", "ResourceTable"],
|
|
175
|
-
RestoreResourceRecord: ["Components", "RestoreResourceRecord"],
|
|
176
|
-
RichText: ["Components", "RichText"],
|
|
177
|
-
ScheduledNotificationComposer: ["Components", "ScheduledNotificationComposer"],
|
|
178
|
-
SearchBar: ["Components", "SearchBar"],
|
|
179
|
-
Separator: ["Components", "Separator"],
|
|
180
|
-
SharedFilters: ["Components", "SharedFilters"],
|
|
181
|
-
ShowResourceRecord: ["Components", "ShowResourceRecord"],
|
|
182
|
-
Sidebar: ["Components", "Sidebar"],
|
|
183
|
-
SidebarCollapseButton: ["Components", "SidebarCollapseButton"],
|
|
184
|
-
SidebarContent: ["Components", "SidebarContent"],
|
|
185
|
-
SidebarFooter: ["Components", "SidebarFooter"],
|
|
186
|
-
SidebarHeader: ["Components", "SidebarHeader"],
|
|
187
|
-
SidebarInset: ["Components", "SidebarInset"],
|
|
188
|
-
SidebarMenu: ["Components", "SidebarMenu"],
|
|
189
|
-
SidebarMenuButton: ["Components", "SidebarMenuButton"],
|
|
190
|
-
SidebarMenuItem: ["Components", "SidebarMenuItem"],
|
|
191
|
-
SidebarProvider: ["Components", "SidebarProvider"],
|
|
192
|
-
SidebarTrigger: ["Components", "SidebarTrigger"],
|
|
193
|
-
SimpleTable: ["Components", "SimpleTable"],
|
|
194
|
-
Skeleton: ["Components", "Skeleton"],
|
|
195
|
-
Slideover: ["Components", "Slideover"],
|
|
196
|
-
SlotPicker: ["Components", "SlotPicker"],
|
|
197
|
-
Spinner: ["Components", "Spinner"],
|
|
198
|
-
StatCard: ["Components", "StatCard"],
|
|
199
|
-
Step: ["Components", "Step"],
|
|
200
|
-
Stepper: ["Components", "Stepper"],
|
|
201
|
-
SubscriptionBillingPreview: ["Components", "SubscriptionBillingPreview"],
|
|
202
|
-
SubscriptionChangePreview: ["Components", "SubscriptionChangePreview"],
|
|
203
|
-
SupportChatButton: ["Components", "SupportChatButton"],
|
|
204
|
-
Tabs: ["Components", "Tabs"],
|
|
205
|
-
ThemeToggle: ["Components", "ThemeToggle"],
|
|
206
|
-
Timer: ["Components", "Timer"],
|
|
207
|
-
Tooltip: ["Components", "Tooltip"],
|
|
208
|
-
TwoFactorBackupCodeList: ["Components", "TwoFactorBackupCodeList"],
|
|
209
|
-
TwoFactorBackupCodes: ["Components", "TwoFactorBackupCodes"],
|
|
210
|
-
TwoFactorChallenge: ["Components", "TwoFactorChallenge"],
|
|
211
|
-
TwoFactorSendCodeButton: ["Components", "TwoFactorSendCodeButton"],
|
|
212
|
-
TwoFactorSetup: ["Components", "TwoFactorSetup"],
|
|
213
|
-
TwoFactorSmsConsent: ["Components", "TwoFactorSmsConsent"],
|
|
214
|
-
UpdateResourceRecordForm: ["Components", "UpdateResourceRecordForm"],
|
|
215
|
-
UserMenu: ["Components", "UserMenu"],
|
|
216
|
-
Video: ["Components", "Video"],
|
|
217
|
-
WorkflowForm: ["Components", "WorkflowForm"],
|
|
218
|
-
WorkspaceFieldsForm: ["Components", "WorkspaceFieldsForm"],
|
|
219
|
-
api: ["api"],
|
|
220
|
-
auth: ["auth"],
|
|
221
|
-
defineMenu: ["defineMenu"],
|
|
222
|
-
getInput: ["helpers", "getInput"],
|
|
223
|
-
getRouteBinding: ["helpers", "getRouteBinding"],
|
|
224
|
-
getRouteParam: ["helpers", "getRouteParam"],
|
|
225
|
-
getRouteParams: ["helpers", "getRouteParams"],
|
|
226
|
-
identity: ["identity"],
|
|
227
|
-
page: ["page"],
|
|
228
|
-
permissions: ["permissions"],
|
|
229
|
-
resource: ["resource"],
|
|
230
|
-
resourceId: ["resourceId"],
|
|
231
|
-
resourceIds: ["resourceIds"],
|
|
232
|
-
resourceOrNull: ["resourceOrNull"],
|
|
233
|
-
router: ["router"],
|
|
234
|
-
useAccountingEntities: ["hooks", "useAccountingEntities"],
|
|
235
|
-
useAiChat: ["hooks", "useAiChat"],
|
|
236
|
-
useAnalytics: ["hooks", "useAnalytics"],
|
|
237
|
-
useApi: ["hooks", "useApi"],
|
|
238
|
-
useAvailability: ["hooks", "useAvailability"],
|
|
239
|
-
useAvailableSlots: ["hooks", "useAvailableSlots"],
|
|
240
|
-
useBulkNotificationRun: ["hooks", "useBulkNotificationRun"],
|
|
241
|
-
useCalendarConnections: ["hooks", "useCalendarConnections"],
|
|
242
|
-
useCalendarEvents: ["hooks", "useCalendarEvents"],
|
|
243
|
-
useCalendarSelection: ["hooks", "useCalendarSelection"],
|
|
244
|
-
useCalendarView: ["hooks", "useCalendarView"],
|
|
245
|
-
useCancelScheduledNotification: ["hooks", "useCancelScheduledNotification"],
|
|
246
|
-
useCreateRecord: ["hooks", "useCreateRecord"],
|
|
247
|
-
useCreateResourceRecordForm: ["hooks", "useCreateResourceRecordForm"],
|
|
248
|
-
useDataTable: ["hooks", "useDataTable"],
|
|
249
|
-
useDeleteResourceRecord: ["hooks", "useDeleteResourceRecord"],
|
|
250
|
-
useEmailMessages: ["hooks", "useEmailMessages"],
|
|
251
|
-
useFilterPresets: ["hooks", "useFilterPresets"],
|
|
252
|
-
useForm: ["useForm"],
|
|
253
|
-
useHoldScheduledNotification: ["hooks", "useHoldScheduledNotification"],
|
|
254
|
-
useInfiniteRecords: ["hooks", "useInfiniteRecords"],
|
|
255
|
-
useInput: ["helpers", "useInput"],
|
|
256
|
-
useInvalidateAll: ["hooks", "useInvalidateAll"],
|
|
257
|
-
useLocalStorage: ["hooks", "useLocalStorage"],
|
|
258
|
-
useMenu: ["useMenu"],
|
|
259
|
-
useNewCalendarEvent: ["hooks", "useNewCalendarEvent"],
|
|
260
|
-
useNotificationConsent: ["hooks", "useNotificationConsent"],
|
|
261
|
-
useNotificationHistory: ["hooks", "useNotificationHistory"],
|
|
262
|
-
useNotificationHistoryDetail: ["hooks", "useNotificationHistoryDetail"],
|
|
263
|
-
useNotificationTemplate: ["hooks", "useNotificationTemplate"],
|
|
264
|
-
useNotificationTemplateEmailDraft: ["hooks", "useNotificationTemplateEmailDraft"],
|
|
265
|
-
useNotificationTemplates: ["hooks", "useNotificationTemplates"],
|
|
266
|
-
useNotificationTypes: ["hooks", "useNotificationTypes"],
|
|
267
|
-
usePackageReleaseNotes: ["hooks", "usePackageReleaseNotes"],
|
|
268
|
-
usePayerBalances: ["hooks", "usePayerBalances"],
|
|
269
|
-
usePaymentRefundPreview: ["hooks", "usePaymentRefundPreview"],
|
|
270
|
-
usePoll: ["hooks", "usePoll"],
|
|
271
|
-
usePreviewScheduledNotification: ["hooks", "usePreviewScheduledNotification"],
|
|
272
|
-
useQueryParams: ["hooks", "useQueryParams"],
|
|
273
|
-
useRecord: ["hooks", "useRecord"],
|
|
274
|
-
useRecordScheduleTimelines: ["hooks", "useRecordScheduleTimelines"],
|
|
275
|
-
useRecords: ["hooks", "useRecords"],
|
|
276
|
-
useResourceDataTable: ["hooks", "useResourceDataTable"],
|
|
277
|
-
useRestoreResourceRecord: ["hooks", "useRestoreResourceRecord"],
|
|
278
|
-
useResumeScheduledNotification: ["hooks", "useResumeScheduledNotification"],
|
|
279
|
-
useSaveNotificationTemplate: ["hooks", "useSaveNotificationTemplate"],
|
|
280
|
-
useScheduleConflicts: ["hooks", "useScheduleConflicts"],
|
|
281
|
-
useScheduleNotification: ["hooks", "useScheduleNotification"],
|
|
282
|
-
useScheduledNotification: ["hooks", "useScheduledNotification"],
|
|
283
|
-
useSendBulkNotifications: ["hooks", "useSendBulkNotifications"],
|
|
284
|
-
useSendEmail: ["hooks", "useSendEmail"],
|
|
285
|
-
useSendNotification: ["hooks", "useSendNotification"],
|
|
286
|
-
useSendResolvedNotification: ["hooks", "useSendResolvedNotification"],
|
|
287
|
-
useSendScheduledNotificationNow: ["hooks", "useSendScheduledNotificationNow"],
|
|
288
|
-
useSharedFilters: ["hooks", "useSharedFilters"],
|
|
289
|
-
useSidebar: ["hooks", "useSidebar"],
|
|
290
|
-
useStepper: ["hooks", "useStepper"],
|
|
291
|
-
useSubscriptionChangePreview: ["hooks", "useSubscriptionChangePreview"],
|
|
292
|
-
useSubscriptionPreview: ["hooks", "useSubscriptionPreview"],
|
|
293
|
-
useTheme: ["hooks", "useTheme"],
|
|
294
|
-
useTwoFactorBackupCodes: ["hooks", "useTwoFactorBackupCodes"],
|
|
295
|
-
useTwoFactorChallenge: ["hooks", "useTwoFactorChallenge"],
|
|
296
|
-
useTwoFactorSetup: ["hooks", "useTwoFactorSetup"],
|
|
297
|
-
useUpcomingNotifications: ["hooks", "useUpcomingNotifications"],
|
|
298
|
-
useUpdateRecord: ["hooks", "useUpdateRecord"],
|
|
299
|
-
useUpdateResourceRecordForm: ["hooks", "useUpdateResourceRecordForm"],
|
|
300
|
-
useUpdateScheduledNotification: ["hooks", "useUpdateScheduledNotification"],
|
|
301
|
-
useWorkflowAction: ["hooks", "useWorkflowAction"],
|
|
302
|
-
useWorkflowForm: ["hooks", "useWorkflowForm"],
|
|
303
|
-
useWorkspaceFieldsForm: ["hooks", "useWorkspaceFieldsForm"],
|
|
304
|
-
useWorkspaceValues: ["hooks", "useWorkspaceValues"],
|
|
305
|
-
utils: ["utils"],
|
|
306
|
-
workspace: ["workspace"]
|
|
307
|
-
});
|
|
308
|
-
var PAGE_SDK_TYPES = {
|
|
309
|
-
AccountingEntities: { "parameters": "", "arguments": "" },
|
|
310
|
-
AccountingEntity: { "parameters": "", "arguments": "" },
|
|
311
|
-
AddCalendarLinkInput: { "parameters": "", "arguments": "" },
|
|
312
|
-
AnalyticsDistributionParams: { "parameters": "", "arguments": "" },
|
|
313
|
-
AnalyticsGranularity: { "parameters": "", "arguments": "" },
|
|
314
|
-
AnalyticsHandle: { "parameters": "<TResult>", "arguments": "<TResult>" },
|
|
315
|
-
AnalyticsKpiParams: { "parameters": '<TMetrics extends readonly import("diagonal:sdk-internal").AnalyticsMetric[] = import("diagonal:sdk-internal").AnalyticsMetric[]>', "arguments": "<TMetrics>" },
|
|
316
|
-
AnalyticsKpiResult: { "parameters": '<TMetrics extends readonly import("diagonal:sdk-internal").AnalyticsMetric[] = import("diagonal:sdk-internal").AnalyticsMetric[]>', "arguments": "<TMetrics>" },
|
|
317
|
-
AnalyticsLeaderboardParams: { "parameters": "", "arguments": "" },
|
|
318
|
-
AnalyticsMetric: { "parameters": "", "arguments": "" },
|
|
319
|
-
AnalyticsResource: { "parameters": '<TKind extends keyof import("diagonal:sdk-internal").SdkResourceAnalytics>', "arguments": "<TKind>" },
|
|
320
|
-
AnalyticsRow: { "parameters": "", "arguments": "" },
|
|
321
|
-
AnalyticsTimeSeriesMetric: { "parameters": "", "arguments": "" },
|
|
322
|
-
AnalyticsTimeSeriesParams: { "parameters": "", "arguments": "" },
|
|
323
|
-
AnalyticsValue: { "parameters": "", "arguments": "" },
|
|
324
|
-
Api: { "parameters": "", "arguments": "" },
|
|
325
|
-
ApiError: { "parameters": "", "arguments": "" },
|
|
326
|
-
ApiErrorBody: { "parameters": "", "arguments": "" },
|
|
327
|
-
ApiFetcher: { "parameters": "<TData>", "arguments": "<TData>" },
|
|
328
|
-
ApiHandle: { "parameters": "<TData>", "arguments": "<TData>" },
|
|
329
|
-
ApiQueryKey: { "parameters": "", "arguments": "" },
|
|
330
|
-
Auth: { "parameters": "", "arguments": "" },
|
|
331
|
-
AuthConfig: { "parameters": "", "arguments": "" },
|
|
332
|
-
AuthLoginInput: { "parameters": "", "arguments": "" },
|
|
333
|
-
AuthMagicLinkInput: { "parameters": "", "arguments": "" },
|
|
334
|
-
AuthPasswordResetInput: { "parameters": "", "arguments": "" },
|
|
335
|
-
AuthResource: { "parameters": "", "arguments": "" },
|
|
336
|
-
AvailabilityHandle: { "parameters": "", "arguments": "" },
|
|
337
|
-
AvailabilityOptions: { "parameters": "", "arguments": "" },
|
|
338
|
-
AvailabilityPiece: { "parameters": "", "arguments": "" },
|
|
339
|
-
AvailableSlot: { "parameters": "", "arguments": "" },
|
|
340
|
-
AvailableSlotsHandle: { "parameters": "", "arguments": "" },
|
|
341
|
-
AvailableSlotsOptions: { "parameters": "", "arguments": "" },
|
|
342
|
-
BadgeVariant: { "parameters": "", "arguments": "" },
|
|
343
|
-
BookingCreateResult: { "parameters": "", "arguments": "" },
|
|
344
|
-
BrandLogoOptions: { "parameters": "", "arguments": "" },
|
|
345
|
-
BulkNotificationRun: { "parameters": "", "arguments": "" },
|
|
346
|
-
BulkNotificationVariable: { "parameters": "", "arguments": "" },
|
|
347
|
-
CalendarAccessRole: { "parameters": "", "arguments": "" },
|
|
348
|
-
CalendarChoice: { "parameters": "", "arguments": "" },
|
|
349
|
-
CalendarChoices: { "parameters": "", "arguments": "" },
|
|
350
|
-
CalendarConnectionsHandle: { "parameters": "", "arguments": "" },
|
|
351
|
-
CalendarEventsChoice: { "parameters": "", "arguments": "" },
|
|
352
|
-
CalendarLink: { "parameters": "", "arguments": "" },
|
|
353
|
-
CalendarLinkFlags: { "parameters": "", "arguments": "" },
|
|
354
|
-
CalendarLinkState: { "parameters": "", "arguments": "" },
|
|
355
|
-
CalendarLinks: { "parameters": "", "arguments": "" },
|
|
356
|
-
CalendarLogin: { "parameters": "", "arguments": "" },
|
|
357
|
-
CalendarResult: { "parameters": "", "arguments": "" },
|
|
358
|
-
CalendarSignInResult: { "parameters": "", "arguments": "" },
|
|
359
|
-
CalendarStaff: { "parameters": "", "arguments": "" },
|
|
360
|
-
CalendarUnavailableReason: { "parameters": "", "arguments": "" },
|
|
361
|
-
CancelScheduledNotificationHandle: { "parameters": "", "arguments": "" },
|
|
362
|
-
CancelledNotificationResult: { "parameters": "", "arguments": "" },
|
|
363
|
-
CatalogRecord: { "parameters": '<TResourceId extends string, TRelations extends readonly import("diagonal:sdk-internal").SdkCatalogRelationPath<TResourceId>[] = readonly []>', "arguments": "<TResourceId, TRelations>" },
|
|
364
|
-
CatalogRelationPath: { "parameters": "<TResourceId extends string>", "arguments": "<TResourceId>" },
|
|
365
|
-
ClassValue: { "parameters": "", "arguments": "" },
|
|
366
|
-
ClipboardCopyOptions: { "parameters": "", "arguments": "" },
|
|
367
|
-
ConfettiOptions: { "parameters": "", "arguments": "" },
|
|
368
|
-
ContentValue: { "parameters": "", "arguments": "" },
|
|
369
|
-
Contract: { "parameters": "", "arguments": "" },
|
|
370
|
-
CreateRecordHandle: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
371
|
-
DateAddUnit: { "parameters": "", "arguments": "" },
|
|
372
|
-
DateBoundaryUnit: { "parameters": "", "arguments": "" },
|
|
373
|
-
DisplayFormatOptions: { "parameters": "", "arguments": "" },
|
|
374
|
-
DisplayPriceOptions: { "parameters": "", "arguments": "" },
|
|
375
|
-
DisplayUtils: { "parameters": "", "arguments": "" },
|
|
376
|
-
Dnd: { "parameters": "", "arguments": "" },
|
|
377
|
-
DndCanDrag: { "parameters": '<TItem, TLocation extends import("diagonal:sdk-internal").SdkDndLocation = import("diagonal:sdk-internal").SdkDndLocation>', "arguments": "<TItem, TLocation>" },
|
|
378
|
-
DndCanDrop: { "parameters": '<TItem, TLocation extends import("diagonal:sdk-internal").SdkDndLocation = import("diagonal:sdk-internal").SdkDndLocation>', "arguments": "<TItem, TLocation>" },
|
|
379
|
-
DndCustomPersistence: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
380
|
-
DndGroupMoveChange: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
381
|
-
DndGroupMoveResult: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
382
|
-
DndGroupedLocation: { "parameters": "", "arguments": "" },
|
|
383
|
-
DndIdentifier: { "parameters": "", "arguments": "" },
|
|
384
|
-
DndItemIdentifier: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
385
|
-
DndLocation: { "parameters": "", "arguments": "" },
|
|
386
|
-
DndMoveContext: { "parameters": '<TItem, TLocation extends import("diagonal:sdk-internal").SdkDndLocation = import("diagonal:sdk-internal").SdkDndLocation>', "arguments": "<TItem, TLocation>" },
|
|
387
|
-
DndReorder: { "parameters": "", "arguments": "" },
|
|
388
|
-
DndReorderChange: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
389
|
-
DndReorderResult: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
390
|
-
DndResourcePersistence: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
391
|
-
DndSortableGroupRenderState: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
392
|
-
DndSortableGroupsCommonProps: { "parameters": "<TItem, TGroup>", "arguments": "<TItem, TGroup>" },
|
|
393
|
-
DndSortableGroupsComponent: { "parameters": "", "arguments": "" },
|
|
394
|
-
DndSortableGroupsCustomPersistence: { "parameters": "<TItem, TGroup>", "arguments": "<TItem, TGroup>" },
|
|
395
|
-
DndSortableGroupsProps: { "parameters": "<TItem, TGroup>", "arguments": "<TItem, TGroup>" },
|
|
396
|
-
DndSortableGroupsResourcePersistence: { "parameters": "<TItem, TGroup>", "arguments": "<TItem, TGroup>" },
|
|
397
|
-
DndSortableGroupsResourceProps: { "parameters": `<TResource extends import("diagonal:sdk-internal").SdkResourceType & Pick<import("diagonal:sdk-internal").SdkResource, 'fields' | 'updateMany'>, TItem extends import("diagonal:sdk-internal").SdkDndResourceItem<NoInfer<TResource>>, TGroup>`, "arguments": "<TResource, TItem, TGroup>" },
|
|
398
|
-
DndSortableItem: { "parameters": "", "arguments": "" },
|
|
399
|
-
DndSortableListCommonProps: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
400
|
-
DndSortableListComponent: { "parameters": "", "arguments": "" },
|
|
401
|
-
DndSortableListProps: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
402
|
-
DndSortableListResourceProps: { "parameters": `<TResource extends import("diagonal:sdk-internal").SdkResourceType & Pick<import("diagonal:sdk-internal").SdkResource, 'fields' | 'updateMany'>, TItem extends import("diagonal:sdk-internal").SdkDndResourceItem<NoInfer<TResource>> = import("diagonal:sdk-internal").SdkDndResourceItem<TResource>>`, "arguments": "<TResource, TItem>" },
|
|
403
|
-
DndSortableOptions: { "parameters": "<TItem>", "arguments": "<TItem>" },
|
|
404
|
-
DndSortableRenderState: { "parameters": "", "arguments": "" },
|
|
405
|
-
EmailAddress: { "parameters": "", "arguments": "" },
|
|
406
|
-
EmailAttempt: { "parameters": "", "arguments": "" },
|
|
407
|
-
EmailAttemptAttachment: { "parameters": "", "arguments": "" },
|
|
408
|
-
EmailAttemptEvent: { "parameters": "", "arguments": "" },
|
|
409
|
-
EmailAttemptRecipients: { "parameters": "", "arguments": "" },
|
|
410
|
-
EmailAttemptStatus: { "parameters": "", "arguments": "" },
|
|
411
|
-
EmailMessage: { "parameters": "", "arguments": "" },
|
|
412
|
-
EmailMessages: { "parameters": "", "arguments": "" },
|
|
413
|
-
EmailMessagesFilters: { "parameters": "", "arguments": "" },
|
|
414
|
-
EmailMessagesOptions: { "parameters": "", "arguments": "" },
|
|
415
|
-
EmailMessagesRecord: { "parameters": "", "arguments": "" },
|
|
416
|
-
EmailRecipient: { "parameters": "", "arguments": "" },
|
|
417
|
-
EmailRecipientRole: { "parameters": "", "arguments": "" },
|
|
418
|
-
EventScheduleValue: { "parameters": "", "arguments": "" },
|
|
419
|
-
FieldSelector: { "parameters": "<TKey extends string = string>", "arguments": "<TKey>" },
|
|
420
|
-
FieldValue: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord, TSelector extends import("diagonal:sdk-internal").SdkFieldSelector>', "arguments": "<TRecord, TSelector>" },
|
|
421
|
-
FormField: { "parameters": "", "arguments": "" },
|
|
422
|
-
FormFieldProps: { "parameters": "", "arguments": "" },
|
|
423
|
-
FormWrapperProps: { "parameters": "", "arguments": "" },
|
|
424
|
-
GoogleCalendarLoginStatus: { "parameters": "", "arguments": "" },
|
|
425
|
-
HeldNotificationResult: { "parameters": "", "arguments": "" },
|
|
426
|
-
Helpers: { "parameters": "", "arguments": "" },
|
|
427
|
-
HoldScheduledNotificationHandle: { "parameters": "", "arguments": "" },
|
|
428
|
-
Hooks: { "parameters": "", "arguments": "" },
|
|
429
|
-
Identity: { "parameters": "", "arguments": "" },
|
|
430
|
-
InfiniteRecordsHandle: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
431
|
-
ListItemField: { "parameters": "", "arguments": "" },
|
|
432
|
-
LocalStorageArray: { "parameters": "", "arguments": "" },
|
|
433
|
-
LocalStorageObject: { "parameters": "", "arguments": "" },
|
|
434
|
-
LocalStoragePrimitive: { "parameters": "", "arguments": "" },
|
|
435
|
-
LocalStorageResult: { "parameters": "<TValue>", "arguments": "<TValue>" },
|
|
436
|
-
LocalStorageSetter: { "parameters": "<TValue>", "arguments": "<TValue>" },
|
|
437
|
-
LocalStorageValue: { "parameters": "", "arguments": "" },
|
|
438
|
-
LocationFormatOptions: { "parameters": "", "arguments": "" },
|
|
439
|
-
LocationValue: { "parameters": "", "arguments": "" },
|
|
440
|
-
Menu: { "parameters": '<E extends import("diagonal:sdk-internal").SdkMenuExtra = Record<never, never>>', "arguments": "<E>" },
|
|
441
|
-
MenuContext: { "parameters": "", "arguments": "" },
|
|
442
|
-
MenuExtra: { "parameters": "", "arguments": "" },
|
|
443
|
-
MenuItem: { "parameters": "", "arguments": "" },
|
|
444
|
-
MenuResult: { "parameters": "", "arguments": "" },
|
|
445
|
-
Money: { "parameters": "", "arguments": "" },
|
|
446
|
-
MoneyFormatOptions: { "parameters": "", "arguments": "" },
|
|
447
|
-
MoneyInput: { "parameters": "", "arguments": "" },
|
|
448
|
-
NavigateOptions: { "parameters": "", "arguments": "" },
|
|
449
|
-
NavigationMenu: { "parameters": "", "arguments": "" },
|
|
450
|
-
NavigationMenuCatalog: { "parameters": "", "arguments": "" },
|
|
451
|
-
NotificationChannel: { "parameters": "", "arguments": "" },
|
|
452
|
-
NotificationChannelAvailability: { "parameters": "", "arguments": "" },
|
|
453
|
-
NotificationChannelUnavailableReason: { "parameters": "", "arguments": "" },
|
|
454
|
-
NotificationChannels: { "parameters": "", "arguments": "" },
|
|
455
|
-
NotificationConsent: { "parameters": "", "arguments": "" },
|
|
456
|
-
NotificationConsentChannels: { "parameters": "", "arguments": "" },
|
|
457
|
-
NotificationConsentHandle: { "parameters": "", "arguments": "" },
|
|
458
|
-
NotificationDeliveryChannel: { "parameters": "", "arguments": "" },
|
|
459
|
-
NotificationHistory: { "parameters": "", "arguments": "" },
|
|
460
|
-
NotificationHistoryDetail: { "parameters": "", "arguments": "" },
|
|
461
|
-
NotificationHistoryItem: { "parameters": "", "arguments": "" },
|
|
462
|
-
NotificationHistoryKind: { "parameters": "", "arguments": "" },
|
|
463
|
-
NotificationHistoryOptions: { "parameters": "", "arguments": "" },
|
|
464
|
-
NotificationHistoryRecord: { "parameters": "", "arguments": "" },
|
|
465
|
-
NotificationHistoryStatus: { "parameters": "", "arguments": "" },
|
|
466
|
-
NotificationListOptions: { "parameters": "", "arguments": "" },
|
|
467
|
-
NotificationRecipient: { "parameters": "", "arguments": "" },
|
|
468
|
-
NotificationSourceKind: { "parameters": "", "arguments": "" },
|
|
469
|
-
NotificationTemplateContent: { "parameters": "", "arguments": "" },
|
|
470
|
-
NotificationTemplateDefinition: { "parameters": "", "arguments": "" },
|
|
471
|
-
NotificationTemplateEmailDraft: { "parameters": "", "arguments": "" },
|
|
472
|
-
NotificationTemplateList: { "parameters": "", "arguments": "" },
|
|
473
|
-
NotificationTemplateReference: { "parameters": "", "arguments": "" },
|
|
474
|
-
NotificationTemplateSummary: { "parameters": "", "arguments": "" },
|
|
475
|
-
NotificationTypeList: { "parameters": "", "arguments": "" },
|
|
476
|
-
NotificationTypeListOptions: { "parameters": "", "arguments": "" },
|
|
477
|
-
NotificationTypeSummary: { "parameters": "", "arguments": "" },
|
|
478
|
-
NotificationVariableSummary: { "parameters": "", "arguments": "" },
|
|
479
|
-
NotifyToastOptions: { "parameters": "", "arguments": "" },
|
|
480
|
-
NotifyVariant: { "parameters": "", "arguments": "" },
|
|
481
|
-
NumberFormatOptions: { "parameters": "", "arguments": "" },
|
|
482
|
-
PackageReleaseHistory: { "parameters": "", "arguments": "" },
|
|
483
|
-
PackageReleaseNotes: { "parameters": "", "arguments": "" },
|
|
484
|
-
PackageReleaseNotesOptions: { "parameters": "", "arguments": "" },
|
|
485
|
-
PackageReleaseNotesProps: { "parameters": "", "arguments": "" },
|
|
486
|
-
PageAliasCatalog: { "parameters": "", "arguments": "" },
|
|
487
|
-
PageHandle: { "parameters": "", "arguments": "" },
|
|
488
|
-
PageReference: { "parameters": "", "arguments": "" },
|
|
489
|
-
PageRouteSettings: { "parameters": "", "arguments": "" },
|
|
490
|
-
PayerBalances: { "parameters": "", "arguments": "" },
|
|
491
|
-
PayerBalancesOptions: { "parameters": "", "arguments": "" },
|
|
492
|
-
PayerEntityBalance: { "parameters": "", "arguments": "" },
|
|
493
|
-
PaymentRefundPreview: { "parameters": "", "arguments": "" },
|
|
494
|
-
PaymentRefundPreviewHandle: { "parameters": "", "arguments": "" },
|
|
495
|
-
PaymentRefundPreviewOptions: { "parameters": "", "arguments": "" },
|
|
496
|
-
Permissions: { "parameters": "", "arguments": "" },
|
|
497
|
-
PhoneFormatOptions: { "parameters": "", "arguments": "" },
|
|
498
|
-
PointValue: { "parameters": "", "arguments": "" },
|
|
499
|
-
PollControls: { "parameters": "", "arguments": "" },
|
|
500
|
-
PollInterval: { "parameters": "<TData>", "arguments": "<TData>" },
|
|
501
|
-
PreviewNotificationInput: { "parameters": "", "arguments": "" },
|
|
502
|
-
PreviewNotificationResponse: { "parameters": "", "arguments": "" },
|
|
503
|
-
RecordAvailability: { "parameters": "", "arguments": "" },
|
|
504
|
-
RecordHandle: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
505
|
-
RecordInput: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
506
|
-
RecordMutationState: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
507
|
-
RecordOf: { "parameters": '<TKey extends keyof import("diagonal:sdk-internal").ResourceRecordCatalog>', "arguments": "<TKey>" },
|
|
508
|
-
RecordScheduleTimeline: { "parameters": "", "arguments": "" },
|
|
509
|
-
RecordScheduleTimelineOffset: { "parameters": "", "arguments": "" },
|
|
510
|
-
RecordScheduleTimelinesHandle: { "parameters": "", "arguments": "" },
|
|
511
|
-
RecordsHandle: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
512
|
-
RecurrenceDefinition: { "parameters": "", "arguments": "" },
|
|
513
|
-
RecurrenceValue: { "parameters": "", "arguments": "" },
|
|
514
|
-
ReferenceRecord: { "parameters": '<TReference extends import("diagonal:sdk-internal").ResourceTypeReference, TRelations extends readonly import("diagonal:sdk-internal").SdkReferenceRelationPath<TReference>[] = readonly []>', "arguments": "<TReference, TRelations>" },
|
|
515
|
-
ReferenceRelationPath: { "parameters": '<TReference extends import("diagonal:sdk-internal").ResourceTypeReference>', "arguments": "<TReference>" },
|
|
516
|
-
RegularHoursDay: { "parameters": "", "arguments": "" },
|
|
517
|
-
RegularHoursValue: { "parameters": "", "arguments": "" },
|
|
518
|
-
ResolvedMenuItem: { "parameters": "", "arguments": "" },
|
|
519
|
-
ResolvedNotification: { "parameters": "", "arguments": "" },
|
|
520
|
-
ResolvedNotificationEmail: { "parameters": "", "arguments": "" },
|
|
521
|
-
Resource: { "parameters": '<TFields extends Record<string, import("diagonal:sdk-internal").SdkResourceField> = Record<string, import("diagonal:sdk-internal").SdkResourceField>, TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord, TRelations extends import("diagonal:sdk-internal").ResourceRelationCatalog = import("diagonal:sdk-internal").ResourceRelationCatalog, TWorkflowInputs extends import("diagonal:sdk-internal").SdkResourceWorkflowInputs = import("diagonal:sdk-internal").SdkResourceWorkflowInputs>', "arguments": "<TFields, TRecord, TRelations, TWorkflowInputs>" },
|
|
522
|
-
ResourceAnalytics: { "parameters": "", "arguments": "" },
|
|
523
|
-
ResourceBulkUpdateRecord: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
524
|
-
ResourceCapabilityFieldMappings: { "parameters": "", "arguments": "" },
|
|
525
|
-
ResourceCollectionResult: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
526
|
-
ResourceCountOptions: { "parameters": "", "arguments": "" },
|
|
527
|
-
ResourceDeletePayload: { "parameters": "", "arguments": "" },
|
|
528
|
-
ResourceField: { "parameters": "", "arguments": "" },
|
|
529
|
-
ResourceFieldSettings: { "parameters": "", "arguments": "" },
|
|
530
|
-
ResourceFieldSettingsUi: { "parameters": "", "arguments": "" },
|
|
531
|
-
ResourceFieldUpdatePayload: { "parameters": "", "arguments": "" },
|
|
532
|
-
ResourceForm: { "parameters": "", "arguments": "" },
|
|
533
|
-
ResourceFormWorkflowInputs: { "parameters": `<TResource extends Pick<import("diagonal:sdk-internal").SdkResource, 'workflow_inputs'>, TEvents extends import("diagonal:sdk-internal").SdkWorkflowEvent>`, "arguments": "<TResource, TEvents>" },
|
|
534
|
-
ResourceHandle: { "parameters": "", "arguments": "" },
|
|
535
|
-
ResourceListParams: { "parameters": "<TRelations extends readonly string[] = readonly string[]>", "arguments": "<TRelations>" },
|
|
536
|
-
ResourceOperation: { "parameters": "", "arguments": "" },
|
|
537
|
-
ResourceOperationRecord: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
538
|
-
ResourceOperations: { "parameters": '<TResource extends import("diagonal:sdk-internal").SdkResourceType = import("diagonal:sdk-internal").SdkResourceType>', "arguments": "<TResource>" },
|
|
539
|
-
ResourcePagination: { "parameters": "", "arguments": "" },
|
|
540
|
-
ResourceQueryHandle: { "parameters": `<TUrl extends keyof import("diagonal:sdk-internal").ResourceUrls = 'show' | 'search'>`, "arguments": "<TUrl>" },
|
|
541
|
-
ResourceQueryReference: { "parameters": `<TUrl extends keyof import("diagonal:sdk-internal").ResourceUrls = 'show' | 'search'>`, "arguments": "<TUrl>" },
|
|
542
|
-
ResourceRecord: { "parameters": "", "arguments": "" },
|
|
543
|
-
ResourceRecordCatalog: { "parameters": "", "arguments": "" },
|
|
544
|
-
ResourceRecordFormActionsProps: { "parameters": "", "arguments": "" },
|
|
545
|
-
ResourceRecordFormFieldsProps: { "parameters": "", "arguments": "" },
|
|
546
|
-
ResourceRecordFormStep: { "parameters": "<RenderState>", "arguments": "<RenderState>" },
|
|
547
|
-
ResourceRecordFrom: { "parameters": '<TResource extends import("diagonal:sdk-internal").SdkResourceType | null | undefined, TRelations extends readonly import("diagonal:sdk-internal").SdkResourceRelationPath<NonNullable<TResource>>[] = readonly []>', "arguments": "<TResource, TRelations>" },
|
|
548
|
-
ResourceRecordPayload: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
549
|
-
ResourceRecordResult: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
550
|
-
ResourceRecordsResult: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
551
|
-
ResourceReference: { "parameters": "", "arguments": "" },
|
|
552
|
-
ResourceRelationCatalog: { "parameters": "", "arguments": "" },
|
|
553
|
-
ResourceRelationPath: { "parameters": '<TResource extends import("diagonal:sdk-internal").SdkResourceType>', "arguments": "<TResource>" },
|
|
554
|
-
ResourceRelationsFrom: { "parameters": '<TResource extends import("diagonal:sdk-internal").SdkResourceType>', "arguments": "<TResource>" },
|
|
555
|
-
ResourceSearchAllOptions: { "parameters": "<TRelations extends readonly string[] = readonly string[]>", "arguments": "<TRelations>" },
|
|
556
|
-
ResourceSearchBody: { "parameters": "<TRelations extends readonly string[] = readonly string[]>", "arguments": "<TRelations>" },
|
|
557
|
-
ResourceSortDescriptor: { "parameters": "", "arguments": "" },
|
|
558
|
-
ResourceSortDescriptorList: { "parameters": "", "arguments": "" },
|
|
559
|
-
ResourceSortDirection: { "parameters": "", "arguments": "" },
|
|
560
|
-
ResourceSortFieldDescriptor: { "parameters": "", "arguments": "" },
|
|
561
|
-
ResourceSortInput: { "parameters": "", "arguments": "" },
|
|
562
|
-
ResourceSortMap: { "parameters": "", "arguments": "" },
|
|
563
|
-
ResourceType: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord, TRelations extends import("diagonal:sdk-internal").ResourceRelationCatalog = import("diagonal:sdk-internal").ResourceRelationCatalog>', "arguments": "<TRecord, TRelations>" },
|
|
564
|
-
ResourceUrls: { "parameters": "", "arguments": "" },
|
|
565
|
-
ResourceWorkflowInputs: { "parameters": "", "arguments": "" },
|
|
566
|
-
ResumeScheduledNotificationHandle: { "parameters": "", "arguments": "" },
|
|
567
|
-
Router: { "parameters": "", "arguments": "" },
|
|
568
|
-
RouterVisitOptions: { "parameters": "", "arguments": "" },
|
|
569
|
-
SaveNotificationTemplateHandle: { "parameters": "", "arguments": "" },
|
|
570
|
-
SaveNotificationTemplateInput: { "parameters": "", "arguments": "" },
|
|
571
|
-
SchedulableRecordRef: { "parameters": "", "arguments": "" },
|
|
572
|
-
ScheduleConflict: { "parameters": "", "arguments": "" },
|
|
573
|
-
ScheduleConflictsHandle: { "parameters": "", "arguments": "" },
|
|
574
|
-
ScheduleConflictsOptions: { "parameters": "", "arguments": "" },
|
|
575
|
-
ScheduleNotificationHandle: { "parameters": "", "arguments": "" },
|
|
576
|
-
ScheduleNotificationInput: { "parameters": "", "arguments": "" },
|
|
577
|
-
ScheduledNotificationContent: { "parameters": "", "arguments": "" },
|
|
578
|
-
ScheduledNotificationDetail: { "parameters": "", "arguments": "" },
|
|
579
|
-
ScheduledNotificationEdits: { "parameters": "", "arguments": "" },
|
|
580
|
-
ScheduledNotificationPreview: { "parameters": "", "arguments": "" },
|
|
581
|
-
ScheduledNotificationResult: { "parameters": "", "arguments": "" },
|
|
582
|
-
SelectedResourceRecord: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord, TRelationCatalog extends import("diagonal:sdk-internal").ResourceRelationCatalog, TRelations extends readonly Extract<keyof TRelationCatalog, string>[] = readonly []>', "arguments": "<TRecord, TRelationCatalog, TRelations>" },
|
|
583
|
-
SendBulkNotificationsHandle: { "parameters": "", "arguments": "" },
|
|
584
|
-
SendBulkNotificationsInput: { "parameters": "", "arguments": "" },
|
|
585
|
-
SendEmailHandle: { "parameters": "", "arguments": "" },
|
|
586
|
-
SendEmailInput: { "parameters": "", "arguments": "" },
|
|
587
|
-
SendEmailResponse: { "parameters": "", "arguments": "" },
|
|
588
|
-
SendNotificationHandle: { "parameters": "", "arguments": "" },
|
|
589
|
-
SendNotificationInput: { "parameters": "", "arguments": "" },
|
|
590
|
-
SendNotificationResponse: { "parameters": "", "arguments": "" },
|
|
591
|
-
SendResolvedNotificationHandle: { "parameters": "", "arguments": "" },
|
|
592
|
-
SendResolvedNotificationInput: { "parameters": "", "arguments": "" },
|
|
593
|
-
SendScheduledNotificationNowHandle: { "parameters": "", "arguments": "" },
|
|
594
|
-
SeriesChangeResult: { "parameters": "", "arguments": "" },
|
|
595
|
-
SeriesOccurrenceMeta: { "parameters": "", "arguments": "" },
|
|
596
|
-
SlotSearchGroup: { "parameters": "", "arguments": "" },
|
|
597
|
-
SmsMessage: { "parameters": "", "arguments": "" },
|
|
598
|
-
SmsMessageStatus: { "parameters": "", "arguments": "" },
|
|
599
|
-
SubscriptionChangePreview: { "parameters": "", "arguments": "" },
|
|
600
|
-
SubscriptionChangePreviewHandle: { "parameters": "", "arguments": "" },
|
|
601
|
-
SubscriptionChangePreviewOptions: { "parameters": "", "arguments": "" },
|
|
602
|
-
SubscriptionPreview: { "parameters": "", "arguments": "" },
|
|
603
|
-
SubscriptionPreviewHandle: { "parameters": "", "arguments": "" },
|
|
604
|
-
SubscriptionPreviewOptions: { "parameters": "", "arguments": "" },
|
|
605
|
-
SystemSettingsPage: { "parameters": "", "arguments": "" },
|
|
606
|
-
SystemSettingsPageEntry: { "parameters": "", "arguments": "" },
|
|
607
|
-
TextGenerateOptions: { "parameters": "", "arguments": "" },
|
|
608
|
-
TimeAddUnit: { "parameters": "", "arguments": "" },
|
|
609
|
-
TimeBoundaryUnit: { "parameters": "", "arguments": "" },
|
|
610
|
-
TiptapParseInput: { "parameters": "", "arguments": "" },
|
|
611
|
-
TwoFactorBackupCodesHandle: { "parameters": "", "arguments": "" },
|
|
612
|
-
TwoFactorBackupCodesState: { "parameters": "", "arguments": "" },
|
|
613
|
-
TwoFactorChallengeHandle: { "parameters": "", "arguments": "" },
|
|
614
|
-
TwoFactorChallengeState: { "parameters": "", "arguments": "" },
|
|
615
|
-
TwoFactorFlow: { "parameters": "", "arguments": "" },
|
|
616
|
-
TwoFactorMode: { "parameters": "", "arguments": "" },
|
|
617
|
-
TwoFactorPending: { "parameters": "", "arguments": "" },
|
|
618
|
-
TwoFactorRequestState: { "parameters": "", "arguments": "" },
|
|
619
|
-
TwoFactorSetupHandle: { "parameters": "", "arguments": "" },
|
|
620
|
-
TwoFactorSetupState: { "parameters": "", "arguments": "" },
|
|
621
|
-
TwoFactorSetupStep: { "parameters": "", "arguments": "" },
|
|
622
|
-
UpcomingNotification: { "parameters": "", "arguments": "" },
|
|
623
|
-
UpcomingNotifications: { "parameters": "", "arguments": "" },
|
|
624
|
-
UpcomingNotificationsOptions: { "parameters": "", "arguments": "" },
|
|
625
|
-
UpdateRecordHandle: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
626
|
-
UpdateScheduledNotificationHandle: { "parameters": "", "arguments": "" },
|
|
627
|
-
UpdateScheduledNotificationInput: { "parameters": "", "arguments": "" },
|
|
628
|
-
UseAnalyticsOptions: { "parameters": "", "arguments": "" },
|
|
629
|
-
UseApiOptions: { "parameters": "<TData = any>", "arguments": "<TData>" },
|
|
630
|
-
UseCalendarConnectionsOptions: { "parameters": "", "arguments": "" },
|
|
631
|
-
UseCreateRecordOptions: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
632
|
-
UseCreateResourceRecordFormResult: { "parameters": "", "arguments": "" },
|
|
633
|
-
UseForm: { "parameters": "", "arguments": "" },
|
|
634
|
-
UseInfiniteRecordsOptions: { "parameters": "<TRelations extends readonly string[] = readonly string[]>", "arguments": "<TRelations>" },
|
|
635
|
-
UseNotificationConsentOptions: { "parameters": "", "arguments": "" },
|
|
636
|
-
UsePollOptions: { "parameters": "", "arguments": "" },
|
|
637
|
-
UseRecordOptions: { "parameters": '<TRelations extends readonly string[] = readonly string[], TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRelations, TRecord>" },
|
|
638
|
-
UseRecordScheduleTimelinesOptions: { "parameters": "", "arguments": "" },
|
|
639
|
-
UseRecordsOptions: { "parameters": '<TRelations extends readonly string[] = readonly string[], TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRelations, TRecord>" },
|
|
640
|
-
UseSaveNotificationTemplateOptions: { "parameters": "", "arguments": "" },
|
|
641
|
-
UseSendEmailOptions: { "parameters": "", "arguments": "" },
|
|
642
|
-
UseSendNotificationOptions: { "parameters": "", "arguments": "" },
|
|
643
|
-
UseTwoFactorOptions: { "parameters": "", "arguments": "" },
|
|
644
|
-
UseUpdateRecordOptions: { "parameters": '<TRecord extends import("diagonal:sdk-internal").ResourceRecord = import("diagonal:sdk-internal").ResourceRecord>', "arguments": "<TRecord>" },
|
|
645
|
-
UseUpdateResourceRecordFormResult: { "parameters": "", "arguments": "" },
|
|
646
|
-
UseWorkflowActionResult: { "parameters": "", "arguments": "" },
|
|
647
|
-
UseWorkflowFormResult: { "parameters": "", "arguments": "" },
|
|
648
|
-
UseWorkspaceFieldsFormOptions: { "parameters": "", "arguments": "" },
|
|
649
|
-
UseWorkspaceFieldsFormResult: { "parameters": "", "arguments": "" },
|
|
650
|
-
Utils: { "parameters": "", "arguments": "" },
|
|
651
|
-
WorkflowEvent: { "parameters": "", "arguments": "" },
|
|
652
|
-
WorkflowForm: { "parameters": "", "arguments": "" },
|
|
653
|
-
WorkflowInput: { "parameters": "", "arguments": "" },
|
|
654
|
-
WorkflowInputProps: { "parameters": "", "arguments": "" },
|
|
655
|
-
WorkflowInputSettings: { "parameters": "", "arguments": "" },
|
|
656
|
-
WorkflowInputsProps: { "parameters": "", "arguments": "" },
|
|
657
|
-
WorkflowOutput: { "parameters": "", "arguments": "" },
|
|
658
|
-
WorkflowPendingResponse: { "parameters": "", "arguments": "" },
|
|
659
|
-
WorkflowReference: { "parameters": "", "arguments": "" },
|
|
660
|
-
WorkflowResponse: { "parameters": "", "arguments": "" },
|
|
661
|
-
WorkflowRouteSettings: { "parameters": "", "arguments": "" },
|
|
662
|
-
WorkflowTarget: { "parameters": "", "arguments": "" },
|
|
663
|
-
Workspace: { "parameters": "", "arguments": "" },
|
|
664
|
-
WorkspaceField: { "parameters": "", "arguments": "" },
|
|
665
|
-
WorkspaceFields: { "parameters": "", "arguments": "" },
|
|
666
|
-
WorkspaceFieldsForm: { "parameters": "", "arguments": "" },
|
|
667
|
-
WorkspaceRecord: { "parameters": "", "arguments": "" },
|
|
668
|
-
WorkspaceValues: { "parameters": "", "arguments": "" }
|
|
669
|
-
};
|
|
670
|
-
|
|
671
|
-
// app/pages/resources/js/pageRuntime/sdk/pageTypeCheckConfig.ts
|
|
672
|
-
var AMBIENT_SHIM = `
|
|
673
|
-
declare namespace React {
|
|
674
|
-
type ReactNode = RenderableChild;
|
|
675
|
-
type ReactElement = any;
|
|
676
|
-
type ComponentType<P = any> = (props: P) => any;
|
|
677
|
-
type FC<P = any> = (props: P & { children?: RenderableChild }) => any;
|
|
678
|
-
type PropsWithChildren<P = unknown> = P & { children?: RenderableChild };
|
|
679
|
-
type CSSProperties = { [property: string]: any };
|
|
680
|
-
type RefObject<T = any> = { current: T };
|
|
681
|
-
type MutableRefObject<T = any> = { current: T };
|
|
682
|
-
type Ref<T = any> = ((instance: T | null) => void) | RefObject<T | null> | null;
|
|
683
|
-
type Dispatch<A = any> = (value: A) => void;
|
|
684
|
-
type SetStateAction<S = any> = S | ((previousState: S) => S);
|
|
685
|
-
type DependencyList = readonly unknown[];
|
|
686
|
-
type ChangeEvent<T = any> = any;
|
|
687
|
-
type FormEvent<T = any> = any;
|
|
688
|
-
type MouseEvent<T = any> = any;
|
|
689
|
-
type KeyboardEvent<T = any> = any;
|
|
690
|
-
type FocusEvent<T = any> = any;
|
|
691
|
-
}
|
|
692
|
-
interface DiagonalReactGlobal {
|
|
693
|
-
useState(initialState: null): [any, React.Dispatch<React.SetStateAction<any>>];
|
|
694
|
-
useState(initialState: never[]): [any[], React.Dispatch<React.SetStateAction<any[]>>];
|
|
695
|
-
useState<S>(initialState: S | (() => S)): [S, React.Dispatch<React.SetStateAction<S>>];
|
|
696
|
-
useState<S = undefined>(): [S | undefined, React.Dispatch<React.SetStateAction<S | undefined>>];
|
|
697
|
-
useEffect(effect: () => any, deps?: React.DependencyList): void;
|
|
698
|
-
useLayoutEffect(effect: () => any, deps?: React.DependencyList): void;
|
|
699
|
-
useMemo<T>(factory: () => T, deps?: React.DependencyList): T;
|
|
700
|
-
useCallback<T extends (...args: any[]) => any>(callback: T, deps?: React.DependencyList): T;
|
|
701
|
-
useRef<T>(initialValue: T): React.RefObject<T>;
|
|
702
|
-
useRef<T>(initialValue: T | null): React.RefObject<T | null>;
|
|
703
|
-
useRef<T>(initialValue: T | undefined): React.RefObject<T | undefined>;
|
|
704
|
-
useReducer<S, A>(reducer: (state: S, action: A) => S, initialState: S): [S, React.Dispatch<A>];
|
|
705
|
-
useReducer<S, A, I>(
|
|
706
|
-
reducer: (state: S, action: A) => S,
|
|
707
|
-
initializerArg: I,
|
|
708
|
-
initializer: (arg: I) => S
|
|
709
|
-
): [S, React.Dispatch<A>];
|
|
710
|
-
useContext<T = any>(context: unknown): T;
|
|
711
|
-
useId(): string;
|
|
712
|
-
useTransition(): [boolean, (callback: () => void) => void];
|
|
713
|
-
useDeferredValue<T>(value: T): T;
|
|
714
|
-
memo<T>(component: T, arePropsEqual?: (previous: any, next: any) => boolean): T;
|
|
715
|
-
forwardRef<T = any, P = any>(
|
|
716
|
-
render: (props: P, ref: React.Ref<T>) => any
|
|
717
|
-
): (props: P & { ref?: React.Ref<T> }) => any;
|
|
718
|
-
[member: string]: any;
|
|
719
|
-
}
|
|
720
|
-
declare const React: DiagonalReactGlobal;
|
|
721
|
-
declare namespace JSX {
|
|
722
|
-
type Element = any;
|
|
723
|
-
interface ElementChildrenAttribute { children: {}; }
|
|
724
|
-
interface IntrinsicAttributes { key?: any; }
|
|
725
|
-
interface IntrinsicElements { [name: string]: { [attribute: string]: any; children?: RenderableChild }; }
|
|
726
|
-
}
|
|
727
|
-
type RenderableChild =
|
|
728
|
-
| string
|
|
729
|
-
| number
|
|
730
|
-
| bigint
|
|
731
|
-
| boolean
|
|
732
|
-
| null
|
|
733
|
-
| undefined
|
|
734
|
-
| Iterable<RenderableChild>
|
|
735
|
-
| Promise<RenderableChild>;
|
|
736
|
-
`;
|
|
737
|
-
var SDK_INTERNAL_MODULE = "diagonal:sdk-internal";
|
|
738
|
-
var TYPE_CHECK_LIB = [
|
|
739
|
-
"lib.es2023.d.ts",
|
|
740
|
-
"lib.dom.d.ts",
|
|
741
|
-
"lib.dom.iterable.d.ts"
|
|
742
|
-
];
|
|
743
|
-
var TYPE_CHECK_FLAGS = {
|
|
744
|
-
strict: false,
|
|
745
|
-
strictNullChecks: true,
|
|
746
|
-
noImplicitAny: true
|
|
747
|
-
};
|
|
748
|
-
var NON_IMPLICIT_ANY_CODES = /* @__PURE__ */ new Set([
|
|
749
|
-
7027,
|
|
750
|
-
7028,
|
|
751
|
-
7029,
|
|
752
|
-
7030,
|
|
753
|
-
7036,
|
|
754
|
-
7038,
|
|
755
|
-
7041,
|
|
756
|
-
7042,
|
|
757
|
-
7059,
|
|
758
|
-
7060,
|
|
759
|
-
7061
|
|
760
|
-
]);
|
|
761
|
-
function isImplicitAnyDiagnostic(code) {
|
|
762
|
-
return code !== void 0 && code >= 7e3 && code <= 7099 && !NON_IMPLICIT_ANY_CODES.has(code);
|
|
763
|
-
}
|
|
764
|
-
|
|
765
|
-
// scripts/lib/runtime-build/module-imports.mjs
|
|
766
|
-
import { existsSync, readdirSync, realpathSync, statSync } from "node:fs";
|
|
767
|
-
import { builtinModules } from "node:module";
|
|
768
|
-
import { basename, dirname, join, posix, relative } from "node:path";
|
|
769
|
-
var APP_PREFIX = "@app/";
|
|
770
|
-
var AUTHORING_MODULE = "@diagonal-hq/cli";
|
|
771
|
-
var PAGES_SDK_MODULE = PAGES_SDK_PACKAGE;
|
|
772
|
-
var RENAMED_MODULES = /* @__PURE__ */ new Map([["@diagonal/pages", PAGES_SDK_MODULE]]);
|
|
773
|
-
function isAuthoringModule(specifier) {
|
|
774
|
-
return specifier === AUTHORING_MODULE;
|
|
775
|
-
}
|
|
776
|
-
var HOST_MODULES = /* @__PURE__ */ new Set([
|
|
777
|
-
"react",
|
|
778
|
-
"react/jsx-runtime",
|
|
779
|
-
"react-dom",
|
|
780
|
-
"react-dom/client",
|
|
781
|
-
"@inertiajs/react",
|
|
782
|
-
PAGES_SDK_MODULE,
|
|
783
|
-
AUTHORING_MODULE
|
|
784
|
-
]);
|
|
785
|
-
var SOURCE_EXTENSIONS = [".ts", ".tsx", ".js", ".jsx"];
|
|
786
|
-
var BINARY_EXTENSIONS = /* @__PURE__ */ new Set([
|
|
787
|
-
".apng",
|
|
788
|
-
".avif",
|
|
789
|
-
".bmp",
|
|
790
|
-
".gif",
|
|
791
|
-
".heic",
|
|
792
|
-
".heif",
|
|
793
|
-
".ico",
|
|
794
|
-
".jpeg",
|
|
795
|
-
".jpg",
|
|
796
|
-
".jxl",
|
|
797
|
-
".png",
|
|
798
|
-
".svg",
|
|
799
|
-
".svgz",
|
|
800
|
-
".tif",
|
|
801
|
-
".tiff",
|
|
802
|
-
".webp",
|
|
803
|
-
".cur",
|
|
804
|
-
".m4v",
|
|
805
|
-
".mov",
|
|
806
|
-
".mp4",
|
|
807
|
-
".mpeg",
|
|
808
|
-
".mpg",
|
|
809
|
-
".ogv",
|
|
810
|
-
".webm",
|
|
811
|
-
".aac",
|
|
812
|
-
".flac",
|
|
813
|
-
".m4a",
|
|
814
|
-
".mp3",
|
|
815
|
-
".oga",
|
|
816
|
-
".ogg",
|
|
817
|
-
".opus",
|
|
818
|
-
".wav",
|
|
819
|
-
".weba",
|
|
820
|
-
".pdf",
|
|
821
|
-
".eot",
|
|
822
|
-
".otf",
|
|
823
|
-
".ttf",
|
|
824
|
-
".woff",
|
|
825
|
-
".woff2"
|
|
826
|
-
]);
|
|
827
|
-
var BINARY_FILE_MESSAGE = "Binary files cannot be in the repository. Add it as an Application Asset and use Assets.<Name>.url from @app/generated/assets in code or url(asset:<key>) in CSS. For an icon, use the Icon component from @diagonal-hq/pages or an SVG written as a TSX component";
|
|
828
|
-
var NODE_MODULES = new Set(builtinModules.flatMap((name) => [name, `node:${name}`]));
|
|
829
|
-
var SERVER_PACKAGES = /* @__PURE__ */ new Set(["@diagonal/workflow", "@diagonal/workflow/workspace"]);
|
|
830
|
-
var SERVER_PACKAGE_NAMES = /* @__PURE__ */ new Set(["@diagonal-hq/workflows"]);
|
|
831
|
-
var IMPORT_RULES = {
|
|
832
|
-
hostModules: [...HOST_MODULES],
|
|
833
|
-
nodeModules: [...NODE_MODULES],
|
|
834
|
-
renamedModules: Object.fromEntries(RENAMED_MODULES),
|
|
835
|
-
serverModules: [...SERVER_PACKAGES],
|
|
836
|
-
serverPackages: [...SERVER_PACKAGE_NAMES],
|
|
837
|
-
binaryExtensions: [...BINARY_EXTENSIONS],
|
|
838
|
-
sourceExtensions: SOURCE_EXTENSIONS,
|
|
839
|
-
binaryFileMessage: BINARY_FILE_MESSAGE,
|
|
840
|
-
pagesSdkModule: PAGES_SDK_MODULE,
|
|
841
|
-
pagesSdkExports: Object.keys(PAGE_SDK_EXPORTS),
|
|
842
|
-
pagesSdkTypes: Object.keys(PAGE_SDK_TYPES)
|
|
843
|
-
};
|
|
844
|
-
function importKind(specifier) {
|
|
845
|
-
const bare = specifier.split("?")[0];
|
|
846
|
-
if (specifier.includes("?") || bare.endsWith(".wasm") || /^[a-z][a-z0-9+.-]*:\/\//i.test(specifier)) {
|
|
847
|
-
return "unsupported";
|
|
848
|
-
}
|
|
849
|
-
if (HOST_MODULES.has(specifier)) {
|
|
850
|
-
return "host";
|
|
851
|
-
}
|
|
852
|
-
if (NODE_MODULES.has(specifier) || NODE_MODULES.has(specifier.split("/")[0])) {
|
|
853
|
-
return "node";
|
|
854
|
-
}
|
|
855
|
-
if (RENAMED_MODULES.has(specifier)) {
|
|
856
|
-
return "renamed";
|
|
857
|
-
}
|
|
858
|
-
if (SERVER_PACKAGES.has(specifier) || SERVER_PACKAGE_NAMES.has(packageName(specifier))) {
|
|
859
|
-
return "server";
|
|
860
|
-
}
|
|
861
|
-
if (specifier.startsWith("@/") || specifier.startsWith("#")) {
|
|
862
|
-
return "alias";
|
|
863
|
-
}
|
|
864
|
-
const local = specifier.startsWith(APP_PREFIX) || isRelativeSpecifier(specifier);
|
|
865
|
-
if (!local) {
|
|
866
|
-
return "package";
|
|
867
|
-
}
|
|
868
|
-
if (bare.endsWith(".module.css")) {
|
|
869
|
-
return "style_module";
|
|
870
|
-
}
|
|
871
|
-
if (bare.endsWith(".css")) {
|
|
872
|
-
return "style";
|
|
873
|
-
}
|
|
874
|
-
return BINARY_EXTENSIONS.has(posix.extname(bare).toLowerCase()) ? "binary" : "app";
|
|
875
|
-
}
|
|
876
|
-
function isRelativeSpecifier(specifier) {
|
|
877
|
-
return specifier === "." || specifier === ".." || specifier.startsWith("./") || specifier.startsWith("../");
|
|
878
|
-
}
|
|
879
|
-
function unsupportedImportMessage(specifier, kind, suggestion = null) {
|
|
880
|
-
switch (kind) {
|
|
881
|
-
case "alias":
|
|
882
|
-
return `"${specifier}" is not supported. Import a workspace file by its relative path, such as "${suggestion ?? "../components/Card"}", or from the workspace root with @app/`;
|
|
883
|
-
case "binary":
|
|
884
|
-
return `"${specifier}" is a binary file. ${BINARY_FILE_MESSAGE}`;
|
|
885
|
-
case "node":
|
|
886
|
-
return `"${specifier}" is a Node.js module. Pages run in the browser, so they cannot import it`;
|
|
887
|
-
case "renamed":
|
|
888
|
-
return `"${specifier}" is now "${RENAMED_MODULES.get(specifier)}". Import from "${RENAMED_MODULES.get(specifier)}"`;
|
|
889
|
-
case "server":
|
|
890
|
-
return `"${specifier}" runs in workflows only. A page cannot import it`;
|
|
891
|
-
case "unsupported":
|
|
892
|
-
return `"${specifier}" is not supported. Pages cannot import URLs, query suffixes such as ?worker or ?url, or WebAssembly`;
|
|
893
|
-
default:
|
|
894
|
-
return null;
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
function packageName(specifier) {
|
|
898
|
-
const parts = specifier.split("/");
|
|
899
|
-
return specifier.startsWith("@") ? parts.slice(0, 2).join("/") : parts[0];
|
|
900
|
-
}
|
|
901
|
-
var TEST_SOURCE_PREFIX = "tests/";
|
|
902
|
-
function testSourceImportMessage(from, target) {
|
|
903
|
-
if (!target.startsWith(TEST_SOURCE_PREFIX) || from.startsWith(TEST_SOURCE_PREFIX)) {
|
|
904
|
-
return null;
|
|
905
|
-
}
|
|
906
|
-
return `${from} imports ${target}. Only a file of tests/ can import a file of tests/. Move the shared code to another folder, such as lib/`;
|
|
907
|
-
}
|
|
908
|
-
function resolveLocalSpecifier(root, from, specifier) {
|
|
909
|
-
return localCandidates(from, specifier).find((candidate) => isExactFile(join(root, candidate))) ?? null;
|
|
910
|
-
}
|
|
911
|
-
function localCandidates(from, specifier) {
|
|
912
|
-
const request = specifier.split("?")[0];
|
|
913
|
-
const joined = request.startsWith(APP_PREFIX) ? request.slice(APP_PREFIX.length) : posix.join(posix.dirname(from), request);
|
|
914
|
-
const path = posix.normalize(joined).replace(/\/+$/, "");
|
|
915
|
-
if (path === "" || path === "." || path.startsWith("../") || path === ".." || path.startsWith("/")) {
|
|
916
|
-
return [];
|
|
917
|
-
}
|
|
918
|
-
return [
|
|
919
|
-
path,
|
|
920
|
-
...SOURCE_EXTENSIONS.map((extension) => `${path}${extension}`),
|
|
921
|
-
...SOURCE_EXTENSIONS.map((extension) => `${path}/index${extension}`)
|
|
922
|
-
];
|
|
923
|
-
}
|
|
924
|
-
function relativeSpecifier(from, path) {
|
|
925
|
-
const extension = SOURCE_EXTENSIONS.find((candidate) => path.endsWith(candidate));
|
|
926
|
-
const target = extension === void 0 ? path : path.slice(0, -extension.length);
|
|
927
|
-
const relativePath = posix.relative(posix.dirname(from), target);
|
|
928
|
-
return relativePath.startsWith("../") ? relativePath : `./${relativePath}`;
|
|
929
|
-
}
|
|
930
|
-
function suggestedRelativeSpecifier(root, from, specifier) {
|
|
931
|
-
const tail = specifier.split("?")[0].replace(/^@\//, "").replace(/^#[^/]*\//, "").replace(new RegExp(`^${APP_PREFIX}`), "").replace(/^(\.\.?\/)+/, "");
|
|
932
|
-
if (tail === "" || tail.startsWith("#")) {
|
|
933
|
-
return null;
|
|
934
|
-
}
|
|
935
|
-
const path = resolveLocalSpecifier(root, "", tail);
|
|
936
|
-
return path === null ? null : relativeSpecifier(from, path);
|
|
937
|
-
}
|
|
938
|
-
function isExactFile(path) {
|
|
939
|
-
return existsSync(path) && statSync(path).isFile() && readdirSync(dirname(path)).includes(basename(path));
|
|
940
|
-
}
|
|
941
|
-
function moduleSpecifiers(ast) {
|
|
942
|
-
const found = [];
|
|
943
|
-
for (const statement of ast.program.body) {
|
|
944
|
-
const isImport = statement.type === "ImportDeclaration";
|
|
945
|
-
const isReExport = (statement.type === "ExportAllDeclaration" || statement.type === "ExportNamedDeclaration") && statement.source !== null && statement.source !== void 0;
|
|
946
|
-
if (isImport || isReExport) {
|
|
947
|
-
const typeOnly = statement.importKind === "type" || statement.exportKind === "type";
|
|
948
|
-
found.push({ specifier: statement.source.value, node: statement.source, statement, dynamic: false, typeOnly });
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
const pending = [ast.program];
|
|
952
|
-
while (pending.length > 0) {
|
|
953
|
-
const node = pending.pop();
|
|
954
|
-
if (node === null || typeof node !== "object") {
|
|
955
|
-
continue;
|
|
956
|
-
}
|
|
957
|
-
const isDynamicImport = node.type === "ImportExpression" || node.type === "CallExpression" && node.callee.type === "Import";
|
|
958
|
-
if (isDynamicImport) {
|
|
959
|
-
const argument = node.type === "ImportExpression" ? node.source : node.arguments[0];
|
|
960
|
-
const literal = argument?.type === "StringLiteral" ? argument.value : null;
|
|
961
|
-
found.push({ specifier: literal, node: argument ?? node, call: node, statement: null, dynamic: true, typeOnly: false });
|
|
962
|
-
}
|
|
963
|
-
for (const [key, value] of Object.entries(node)) {
|
|
964
|
-
if (key === "loc" || key === "start" || key === "end" || key === "extra") {
|
|
965
|
-
continue;
|
|
966
|
-
}
|
|
967
|
-
if (Array.isArray(value)) {
|
|
968
|
-
pending.push(...value);
|
|
969
|
-
} else if (value !== null && typeof value === "object" && typeof value.type === "string") {
|
|
970
|
-
pending.push(value);
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
return found;
|
|
975
|
-
}
|
|
976
|
-
function requestedNames(statement) {
|
|
977
|
-
if (statement === null || statement.importKind === "type" || statement.exportKind === "type") {
|
|
978
|
-
return [];
|
|
979
|
-
}
|
|
980
|
-
if (statement.type === "ExportAllDeclaration") {
|
|
981
|
-
return ["*"];
|
|
982
|
-
}
|
|
983
|
-
if (statement.type === "ExportNamedDeclaration") {
|
|
984
|
-
return (statement.specifiers ?? []).filter((specifier) => specifier.exportKind !== "type").map(
|
|
985
|
-
(specifier) => specifier.type === "ExportNamespaceSpecifier" ? "*" : specifier.local.name ?? specifier.local.value
|
|
986
|
-
);
|
|
987
|
-
}
|
|
988
|
-
if (statement.type !== "ImportDeclaration") {
|
|
989
|
-
return [];
|
|
990
|
-
}
|
|
991
|
-
return statement.specifiers.flatMap((specifier) => {
|
|
992
|
-
if (specifier.type === "ImportDefaultSpecifier") {
|
|
993
|
-
return ["default"];
|
|
994
|
-
}
|
|
995
|
-
if (specifier.type === "ImportNamespaceSpecifier") {
|
|
996
|
-
return ["*"];
|
|
997
|
-
}
|
|
998
|
-
if (specifier.type === "ImportSpecifier" && specifier.importKind !== "type") {
|
|
999
|
-
return [specifier.imported.name ?? specifier.imported.value];
|
|
1000
|
-
}
|
|
1001
|
-
return [];
|
|
1002
|
-
});
|
|
1003
|
-
}
|
|
1004
|
-
|
|
1005
|
-
// scripts/lib/runtime-build/resource-paths.mjs
|
|
1006
|
-
var CHILD_KINDS = Object.freeze({
|
|
1007
|
-
fields: "resource_field",
|
|
1008
|
-
policies: "resource_policy",
|
|
1009
|
-
records: "resource_record"
|
|
1010
|
-
});
|
|
1011
|
-
var CHILD_PATH = /^resources\/([^/]+)\/(fields|policies|records)\/([^/]+)\.ts$/;
|
|
1012
|
-
function resourceChildOf(path) {
|
|
1013
|
-
const match = CHILD_PATH.exec(withoutDevInfix(path));
|
|
1014
|
-
if (match === null) {
|
|
1015
|
-
return null;
|
|
1016
|
-
}
|
|
1017
|
-
const [, folder, directory, key] = match;
|
|
1018
|
-
return { folder, kind: CHILD_KINDS[directory], key, definitionPath: `resources/${folder}/resource.ts` };
|
|
1019
|
-
}
|
|
1020
|
-
|
|
1021
|
-
export {
|
|
1022
|
-
package_rules_default,
|
|
1023
|
-
isDevPath,
|
|
1024
|
-
withoutDevInfix,
|
|
1025
|
-
diagnostic,
|
|
1026
|
-
diagnosticAt,
|
|
1027
|
-
hasErrors,
|
|
1028
|
-
sortDiagnostics,
|
|
1029
|
-
PAGES_SDK_PACKAGE,
|
|
1030
|
-
PAGE_SDK_FILE_TYPED_EXPORTS,
|
|
1031
|
-
PAGE_SDK_EXPORTS,
|
|
1032
|
-
PAGE_SDK_TYPES,
|
|
1033
|
-
AMBIENT_SHIM,
|
|
1034
|
-
SDK_INTERNAL_MODULE,
|
|
1035
|
-
TYPE_CHECK_LIB,
|
|
1036
|
-
TYPE_CHECK_FLAGS,
|
|
1037
|
-
isImplicitAnyDiagnostic,
|
|
1038
|
-
APP_PREFIX,
|
|
1039
|
-
AUTHORING_MODULE,
|
|
1040
|
-
PAGES_SDK_MODULE,
|
|
1041
|
-
isAuthoringModule,
|
|
1042
|
-
SOURCE_EXTENSIONS,
|
|
1043
|
-
BINARY_EXTENSIONS,
|
|
1044
|
-
BINARY_FILE_MESSAGE,
|
|
1045
|
-
IMPORT_RULES,
|
|
1046
|
-
importKind,
|
|
1047
|
-
unsupportedImportMessage,
|
|
1048
|
-
testSourceImportMessage,
|
|
1049
|
-
resolveLocalSpecifier,
|
|
1050
|
-
suggestedRelativeSpecifier,
|
|
1051
|
-
moduleSpecifiers,
|
|
1052
|
-
requestedNames,
|
|
1053
|
-
resourceChildOf
|
|
1054
|
-
};
|