@budibase/types 3.2.42 → 3.2.44
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/dist/index.js +1 -1764
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
- package/dist/index.js.meta.json +0 -1
package/dist/index.js
CHANGED
|
@@ -1,1765 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
AIOperationEnum: () => AIOperationEnum,
|
|
24
|
-
APP_QUOTA_NAMES: () => APP_QUOTA_NAMES,
|
|
25
|
-
AUDIT_LOG_TYPE: () => AUDIT_LOG_TYPE,
|
|
26
|
-
AccountSSOProvider: () => AccountSSOProvider,
|
|
27
|
-
AccountSSOProviderType: () => AccountSSOProviderType,
|
|
28
|
-
AnalyticsEvent: () => AnalyticsEvent,
|
|
29
|
-
AppBackupStatus: () => AppBackupStatus,
|
|
30
|
-
AppBackupTrigger: () => AppBackupTrigger,
|
|
31
|
-
AppBackupType: () => AppBackupType,
|
|
32
|
-
AppEnvironment: () => AppEnvironment,
|
|
33
|
-
ArrayOperator: () => ArrayOperator,
|
|
34
|
-
AsyncEvents: () => AsyncEvents,
|
|
35
|
-
AuditLogResourceStatus: () => AuditLogResourceStatus,
|
|
36
|
-
AuditLogSystemUser: () => AuditLogSystemUser,
|
|
37
|
-
AuditedEventFriendlyName: () => AuditedEventFriendlyName,
|
|
38
|
-
AuthType: () => AuthType,
|
|
39
|
-
AutoFieldSubType: () => AutoFieldSubType,
|
|
40
|
-
AutoReason: () => AutoReason,
|
|
41
|
-
AutomationActionStepId: () => AutomationActionStepId,
|
|
42
|
-
AutomationCustomIOType: () => AutomationCustomIOType,
|
|
43
|
-
AutomationEventType: () => AutomationEventType,
|
|
44
|
-
AutomationFeature: () => AutomationFeature,
|
|
45
|
-
AutomationIOType: () => AutomationIOType,
|
|
46
|
-
AutomationStatus: () => AutomationStatus,
|
|
47
|
-
AutomationStepIdArray: () => AutomationStepIdArray,
|
|
48
|
-
AutomationStepStatus: () => AutomationStepStatus,
|
|
49
|
-
AutomationStepType: () => AutomationStepType,
|
|
50
|
-
AutomationStoppedReason: () => AutomationStoppedReason,
|
|
51
|
-
AutomationTriggerStepId: () => AutomationTriggerStepId,
|
|
52
|
-
BBReferenceFieldSubType: () => BBReferenceFieldSubType,
|
|
53
|
-
BREAKDOWN_QUOTA_NAMES: () => BREAKDOWN_QUOTA_NAMES,
|
|
54
|
-
BasicOperator: () => BasicOperator,
|
|
55
|
-
BodyType: () => BodyType,
|
|
56
|
-
BreakdownQuotaName: () => BreakdownQuotaName,
|
|
57
|
-
BuiltinPermissionID: () => BuiltinPermissionID,
|
|
58
|
-
CalculationType: () => CalculationType,
|
|
59
|
-
CommandWord: () => CommandWord,
|
|
60
|
-
ConfigType: () => ConfigType,
|
|
61
|
-
ConstantQuotaName: () => ConstantQuotaName,
|
|
62
|
-
DSPlusOperation: () => DSPlusOperation,
|
|
63
|
-
DatasourceFeature: () => DatasourceFeature,
|
|
64
|
-
DatasourceFieldType: () => DatasourceFieldType,
|
|
65
|
-
DeploymentStatus: () => DeploymentStatus,
|
|
66
|
-
DocumentType: () => DocumentType,
|
|
67
|
-
DocumentTypesToImport: () => DocumentTypesToImport,
|
|
68
|
-
EmailTemplatePurpose: () => EmailTemplatePurpose,
|
|
69
|
-
EmptyFilterOption: () => EmptyFilterOption,
|
|
70
|
-
Event: () => Event,
|
|
71
|
-
EventPublishType: () => EventPublishType,
|
|
72
|
-
EventType: () => EventType,
|
|
73
|
-
Feature: () => Feature,
|
|
74
|
-
FeatureFlag: () => FeatureFlag,
|
|
75
|
-
FeatureFlagDefaults: () => FeatureFlagDefaults,
|
|
76
|
-
FieldType: () => FieldType,
|
|
77
|
-
FilterType: () => FilterType,
|
|
78
|
-
FormulaType: () => FormulaType,
|
|
79
|
-
GroupByTypes: () => GroupByTypes,
|
|
80
|
-
GroupType: () => GroupType,
|
|
81
|
-
Hosting: () => Hosting,
|
|
82
|
-
HttpMethod: () => HttpMethod,
|
|
83
|
-
INTERNAL_TABLE_SOURCE_ID: () => INTERNAL_TABLE_SOURCE_ID,
|
|
84
|
-
IdentityType: () => IdentityType,
|
|
85
|
-
IncludeRelationship: () => IncludeRelationship,
|
|
86
|
-
InitType: () => InitType,
|
|
87
|
-
InternalSearchFilterOperator: () => InternalSearchFilterOperator,
|
|
88
|
-
InternalTable: () => InternalTable,
|
|
89
|
-
JsonFieldSubType: () => JsonFieldSubType,
|
|
90
|
-
JsonTypes: () => JsonTypes,
|
|
91
|
-
LockName: () => LockName,
|
|
92
|
-
LockType: () => LockType,
|
|
93
|
-
LogicalOperator: () => LogicalOperator,
|
|
94
|
-
LoginMethod: () => LoginMethod,
|
|
95
|
-
LoopStepType: () => LoopStepType,
|
|
96
|
-
MaintenanceType: () => MaintenanceType,
|
|
97
|
-
MetadataType: () => MetadataType,
|
|
98
|
-
MigrationName: () => MigrationName,
|
|
99
|
-
MigrationType: () => MigrationType,
|
|
100
|
-
Model: () => Model,
|
|
101
|
-
MonthlyQuotaName: () => MonthlyQuotaName,
|
|
102
|
-
NumericTypes: () => NumericTypes,
|
|
103
|
-
Operation: () => Operation,
|
|
104
|
-
OperationFieldTypeEnum: () => OperationFieldTypeEnum,
|
|
105
|
-
PASSWORD_REPLACEMENT: () => PASSWORD_REPLACEMENT,
|
|
106
|
-
PLUGIN_TYPE_ARR: () => PLUGIN_TYPE_ARR,
|
|
107
|
-
PermissionLevel: () => PermissionLevel,
|
|
108
|
-
PermissionSource: () => PermissionSource,
|
|
109
|
-
PermissionType: () => PermissionType,
|
|
110
|
-
PingSource: () => PingSource,
|
|
111
|
-
PlanModel: () => PlanModel,
|
|
112
|
-
PlanType: () => PlanType,
|
|
113
|
-
PluginSource: () => PluginSource,
|
|
114
|
-
PluginType: () => PluginType,
|
|
115
|
-
PriceDuration: () => PriceDuration,
|
|
116
|
-
QueryType: () => QueryType,
|
|
117
|
-
QuotaType: () => QuotaType,
|
|
118
|
-
QuotaUsageType: () => QuotaUsageType,
|
|
119
|
-
RangeOperator: () => RangeOperator,
|
|
120
|
-
RelationshipType: () => RelationshipType,
|
|
121
|
-
RestAuthType: () => RestAuthType,
|
|
122
|
-
RowExportFormat: () => RowExportFormat,
|
|
123
|
-
RowOperations: () => RowOperations,
|
|
124
|
-
SEPARATOR: () => SEPARATOR,
|
|
125
|
-
SQLiteType: () => SQLiteType,
|
|
126
|
-
SSOProviderType: () => SSOProviderType,
|
|
127
|
-
ScheduleRepeatPeriod: () => ScheduleRepeatPeriod,
|
|
128
|
-
ScheduleType: () => ScheduleType,
|
|
129
|
-
SearchIndex: () => SearchIndex,
|
|
130
|
-
ServiceType: () => ServiceType,
|
|
131
|
-
SortOption: () => SortOption,
|
|
132
|
-
SortOrder: () => SortOrder,
|
|
133
|
-
SortType: () => SortType,
|
|
134
|
-
SourceName: () => SourceName,
|
|
135
|
-
SqlClient: () => SqlClient,
|
|
136
|
-
StaticQuotaName: () => StaticQuotaName,
|
|
137
|
-
TableSourceType: () => TableSourceType,
|
|
138
|
-
TemplateType: () => TemplateType,
|
|
139
|
-
TenantResolutionStrategy: () => TenantResolutionStrategy,
|
|
140
|
-
Theme: () => Theme,
|
|
141
|
-
UILogicalOperator: () => UILogicalOperator,
|
|
142
|
-
UNICODE_MAX: () => UNICODE_MAX,
|
|
143
|
-
UserGroupSyncEvents: () => UserGroupSyncEvents,
|
|
144
|
-
UserStatus: () => UserStatus,
|
|
145
|
-
ViewCalculation: () => ViewCalculation,
|
|
146
|
-
ViewV2Type: () => ViewV2Type,
|
|
147
|
-
VirtualDocumentType: () => VirtualDocumentType,
|
|
148
|
-
WebhookActionType: () => WebhookActionType,
|
|
149
|
-
canGroupBy: () => canGroupBy,
|
|
150
|
-
getDocumentType: () => getDocumentType,
|
|
151
|
-
getVirtualDocumentType: () => getVirtualDocumentType,
|
|
152
|
-
isAIConfig: () => isAIConfig,
|
|
153
|
-
isAppBackupMetadata: () => isAppBackupMetadata,
|
|
154
|
-
isArraySearchOperator: () => isArraySearchOperator,
|
|
155
|
-
isBasicSearchOperator: () => isBasicSearchOperator,
|
|
156
|
-
isCloudAccount: () => isCloudAccount,
|
|
157
|
-
isConfig: () => isConfig,
|
|
158
|
-
isConstantQuota: () => isConstantQuota,
|
|
159
|
-
isCreatePasswordAccount: () => isCreatePasswordAccount,
|
|
160
|
-
isDocument: () => isDocument,
|
|
161
|
-
isGoogleConfig: () => isGoogleConfig,
|
|
162
|
-
isLogicalSearchOperator: () => isLogicalSearchOperator,
|
|
163
|
-
isManyToMany: () => isManyToMany,
|
|
164
|
-
isManyToOne: () => isManyToOne,
|
|
165
|
-
isMonthlyQuota: () => isMonthlyQuota,
|
|
166
|
-
isNumeric: () => isNumeric,
|
|
167
|
-
isOIDCConfig: () => isOIDCConfig,
|
|
168
|
-
isOneToMany: () => isOneToMany,
|
|
169
|
-
isPasswordAccount: () => isPasswordAccount,
|
|
170
|
-
isRangeSearchOperator: () => isRangeSearchOperator,
|
|
171
|
-
isRelationshipField: () => isRelationshipField,
|
|
172
|
-
isSCIMConfig: () => isSCIMConfig,
|
|
173
|
-
isSMTPConfig: () => isSMTPConfig,
|
|
174
|
-
isSSOAccount: () => isSSOAccount,
|
|
175
|
-
isSSOUser: () => isSSOUser,
|
|
176
|
-
isSelfHostAccount: () => isSelfHostAccount,
|
|
177
|
-
isSettingsConfig: () => isSettingsConfig,
|
|
178
|
-
isStaticQuota: () => isStaticQuota,
|
|
179
|
-
isUser: () => isUser,
|
|
180
|
-
isVerifiableSSOProvider: () => isVerifiableSSOProvider,
|
|
181
|
-
prefixed: () => prefixed,
|
|
182
|
-
searchRowRequestValidator: () => searchRowRequestValidator
|
|
183
|
-
});
|
|
184
|
-
module.exports = __toCommonJS(src_exports);
|
|
185
|
-
|
|
186
|
-
// src/sdk/ai.ts
|
|
187
|
-
var AIOperationEnum = /* @__PURE__ */ ((AIOperationEnum2) => {
|
|
188
|
-
AIOperationEnum2["SUMMARISE_TEXT"] = "SUMMARISE_TEXT";
|
|
189
|
-
AIOperationEnum2["CLEAN_DATA"] = "CLEAN_DATA";
|
|
190
|
-
AIOperationEnum2["TRANSLATE"] = "TRANSLATE";
|
|
191
|
-
AIOperationEnum2["CATEGORISE_TEXT"] = "CATEGORISE_TEXT";
|
|
192
|
-
AIOperationEnum2["SENTIMENT_ANALYSIS"] = "SENTIMENT_ANALYSIS";
|
|
193
|
-
AIOperationEnum2["PROMPT"] = "PROMPT";
|
|
194
|
-
AIOperationEnum2["SEARCH_WEB"] = "SEARCH_WEB";
|
|
195
|
-
return AIOperationEnum2;
|
|
196
|
-
})(AIOperationEnum || {});
|
|
197
|
-
var OperationFieldTypeEnum = /* @__PURE__ */ ((OperationFieldTypeEnum2) => {
|
|
198
|
-
OperationFieldTypeEnum2["MULTI_COLUMN"] = "columns";
|
|
199
|
-
OperationFieldTypeEnum2["COLUMN"] = "column";
|
|
200
|
-
OperationFieldTypeEnum2["BINDABLE_TEXT"] = "prompt";
|
|
201
|
-
return OperationFieldTypeEnum2;
|
|
202
|
-
})(OperationFieldTypeEnum || {});
|
|
203
|
-
|
|
204
|
-
// src/sdk/hosting.ts
|
|
205
|
-
var Hosting = /* @__PURE__ */ ((Hosting2) => {
|
|
206
|
-
Hosting2["CLOUD"] = "cloud";
|
|
207
|
-
Hosting2["SELF"] = "self";
|
|
208
|
-
return Hosting2;
|
|
209
|
-
})(Hosting || {});
|
|
210
|
-
|
|
211
|
-
// src/sdk/events/event.ts
|
|
212
|
-
var Event = /* @__PURE__ */ ((Event2) => {
|
|
213
|
-
Event2["USER_CREATED"] = "user:created";
|
|
214
|
-
Event2["USER_UPDATED"] = "user:updated";
|
|
215
|
-
Event2["USER_DELETED"] = "user:deleted";
|
|
216
|
-
Event2["USER_ONBOARDING_COMPLETE"] = "user:onboarding:complete";
|
|
217
|
-
Event2["USER_PERMISSION_ADMIN_ASSIGNED"] = "user:admin:assigned";
|
|
218
|
-
Event2["USER_PERMISSION_ADMIN_REMOVED"] = "user:admin:removed";
|
|
219
|
-
Event2["USER_PERMISSION_BUILDER_ASSIGNED"] = "user:builder:assigned";
|
|
220
|
-
Event2["USER_PERMISSION_BUILDER_REMOVED"] = "user:builder:removed";
|
|
221
|
-
Event2["USER_INVITED"] = "user:invited";
|
|
222
|
-
Event2["USER_INVITED_ACCEPTED"] = "user:invite:accepted";
|
|
223
|
-
Event2["USER_PASSWORD_FORCE_RESET"] = "user:password:force:reset";
|
|
224
|
-
Event2["USER_PASSWORD_UPDATED"] = "user:password:updated";
|
|
225
|
-
Event2["USER_PASSWORD_RESET_REQUESTED"] = "user:password:reset:requested";
|
|
226
|
-
Event2["USER_PASSWORD_RESET"] = "user:password:reset";
|
|
227
|
-
Event2["USER_DATA_COLLABORATION"] = "user:data:collaboration";
|
|
228
|
-
Event2["EMAIL_SMTP_CREATED"] = "email:smtp:created";
|
|
229
|
-
Event2["EMAIL_SMTP_UPDATED"] = "email:smtp:updated";
|
|
230
|
-
Event2["AI_CONFIG_CREATED"] = "ai:config:created";
|
|
231
|
-
Event2["AI_CONFIG_UPDATED"] = "ai:config:updated";
|
|
232
|
-
Event2["AUTH_SSO_CREATED"] = "auth:sso:created";
|
|
233
|
-
Event2["AUTH_SSO_UPDATED"] = "auth:sso:updated";
|
|
234
|
-
Event2["AUTH_SSO_ACTIVATED"] = "auth:sso:activated";
|
|
235
|
-
Event2["AUTH_SSO_DEACTIVATED"] = "auth:sso:deactivated";
|
|
236
|
-
Event2["AUTH_LOGIN"] = "auth:login";
|
|
237
|
-
Event2["AUTH_LOGOUT"] = "auth:logout";
|
|
238
|
-
Event2["ORG_NAME_UPDATED"] = "org:info:name:updated";
|
|
239
|
-
Event2["ORG_LOGO_UPDATED"] = "org:info:logo:updated";
|
|
240
|
-
Event2["ORG_PLATFORM_URL_UPDATED"] = "org:platformurl:updated";
|
|
241
|
-
Event2["INSTALLATION_VERSION_CHECKED"] = "installation:version:checked";
|
|
242
|
-
Event2["INSTALLATION_VERSION_UPGRADED"] = "installation:version:upgraded";
|
|
243
|
-
Event2["INSTALLATION_VERSION_DOWNGRADED"] = "installation:version:downgraded";
|
|
244
|
-
Event2["INSTALLATION_FIRST_STARTUP"] = "installation:firstStartup";
|
|
245
|
-
Event2["ANALYTICS_OPT_OUT"] = "analytics:opt:out";
|
|
246
|
-
Event2["ANALYTICS_OPT_IN"] = "analytics:opt:in";
|
|
247
|
-
Event2["APP_CREATED"] = "app:created";
|
|
248
|
-
Event2["APP_UPDATED"] = "app:updated";
|
|
249
|
-
Event2["APP_DELETED"] = "app:deleted";
|
|
250
|
-
Event2["APP_DUPLICATED"] = "app:duplicated";
|
|
251
|
-
Event2["APP_PUBLISHED"] = "app:published";
|
|
252
|
-
Event2["APP_UNPUBLISHED"] = "app:unpublished";
|
|
253
|
-
Event2["APP_TEMPLATE_IMPORTED"] = "app:template:imported";
|
|
254
|
-
Event2["APP_FILE_IMPORTED"] = "app:file:imported";
|
|
255
|
-
Event2["APP_VERSION_UPDATED"] = "app:version:updated";
|
|
256
|
-
Event2["APP_VERSION_REVERTED"] = "app:version:reverted";
|
|
257
|
-
Event2["APP_REVERTED"] = "app:reverted";
|
|
258
|
-
Event2["APP_EXPORTED"] = "app:exported";
|
|
259
|
-
Event2["ROLE_CREATED"] = "role:created";
|
|
260
|
-
Event2["ROLE_UPDATED"] = "role:updated";
|
|
261
|
-
Event2["ROLE_DELETED"] = "role:deleted";
|
|
262
|
-
Event2["ROLE_ASSIGNED"] = "role:assigned";
|
|
263
|
-
Event2["ROLE_UNASSIGNED"] = "role:unassigned";
|
|
264
|
-
Event2["SERVED_BUILDER"] = "served:builder";
|
|
265
|
-
Event2["SERVED_APP"] = "served:app";
|
|
266
|
-
Event2["SERVED_APP_PREVIEW"] = "served:app:preview";
|
|
267
|
-
Event2["DATASOURCE_CREATED"] = "datasource:created";
|
|
268
|
-
Event2["DATASOURCE_UPDATED"] = "datasource:updated";
|
|
269
|
-
Event2["DATASOURCE_DELETED"] = "datasource:deleted";
|
|
270
|
-
Event2["QUERY_CREATED"] = "query:created";
|
|
271
|
-
Event2["QUERY_UPDATED"] = "query:updated";
|
|
272
|
-
Event2["QUERY_DELETED"] = "query:deleted";
|
|
273
|
-
Event2["QUERY_IMPORT"] = "query:import";
|
|
274
|
-
Event2["QUERIES_RUN"] = "queries:run";
|
|
275
|
-
Event2["QUERY_PREVIEWED"] = "query:previewed";
|
|
276
|
-
Event2["TABLE_CREATED"] = "table:created";
|
|
277
|
-
Event2["TABLE_UPDATED"] = "table:updated";
|
|
278
|
-
Event2["TABLE_DELETED"] = "table:deleted";
|
|
279
|
-
Event2["TABLE_EXPORTED"] = "table:exported";
|
|
280
|
-
Event2["TABLE_IMPORTED"] = "table:imported";
|
|
281
|
-
Event2["TABLE_DATA_IMPORTED"] = "table:data:imported";
|
|
282
|
-
Event2["VIEW_CREATED"] = "view:created";
|
|
283
|
-
Event2["VIEW_UPDATED"] = "view:updated";
|
|
284
|
-
Event2["VIEW_DELETED"] = "view:deleted";
|
|
285
|
-
Event2["VIEW_EXPORTED"] = "view:exported";
|
|
286
|
-
Event2["VIEW_FILTER_CREATED"] = "view:filter:created";
|
|
287
|
-
Event2["VIEW_FILTER_UPDATED"] = "view:filter:updated";
|
|
288
|
-
Event2["VIEW_FILTER_DELETED"] = "view:filter:deleted";
|
|
289
|
-
Event2["VIEW_CALCULATION_CREATED"] = "view:calculation:created";
|
|
290
|
-
Event2["VIEW_CALCULATION_UPDATED"] = "view:calculation:updated";
|
|
291
|
-
Event2["VIEW_CALCULATION_DELETED"] = "view:calculation:deleted";
|
|
292
|
-
Event2["VIEW_JOIN_CREATED"] = "view:join:created";
|
|
293
|
-
Event2["ROWS_CREATED"] = "rows:created";
|
|
294
|
-
Event2["ROWS_IMPORTED"] = "rows:imported";
|
|
295
|
-
Event2["COMPONENT_CREATED"] = "component:created";
|
|
296
|
-
Event2["COMPONENT_DELETED"] = "component:deleted";
|
|
297
|
-
Event2["SCREEN_CREATED"] = "screen:created";
|
|
298
|
-
Event2["SCREEN_DELETED"] = "screen:deleted";
|
|
299
|
-
Event2["LAYOUT_CREATED"] = "layout:created";
|
|
300
|
-
Event2["LAYOUT_DELETED"] = "layout:deleted";
|
|
301
|
-
Event2["AUTOMATION_CREATED"] = "automation:created";
|
|
302
|
-
Event2["AUTOMATION_DELETED"] = "automation:deleted";
|
|
303
|
-
Event2["AUTOMATION_TESTED"] = "automation:tested";
|
|
304
|
-
Event2["AUTOMATIONS_RUN"] = "automations:run";
|
|
305
|
-
Event2["AUTOMATION_STEP_CREATED"] = "automation:step:created";
|
|
306
|
-
Event2["AUTOMATION_STEP_DELETED"] = "automation:step:deleted";
|
|
307
|
-
Event2["AUTOMATION_TRIGGER_UPDATED"] = "automation:trigger:updated";
|
|
308
|
-
Event2["LICENSE_PLAN_CHANGED"] = "license:plan:changed";
|
|
309
|
-
Event2["LICENSE_ACTIVATED"] = "license:activated";
|
|
310
|
-
Event2["LICENSE_PAYMENT_FAILED"] = "license:payment:failed";
|
|
311
|
-
Event2["LICENSE_PAYMENT_RECOVERED"] = "license:payment:recovered";
|
|
312
|
-
Event2["LICENSE_CHECKOUT_OPENED"] = "license:checkout:opened";
|
|
313
|
-
Event2["LICENSE_CHECKOUT_SUCCESS"] = "license:checkout:success";
|
|
314
|
-
Event2["LICENSE_PORTAL_OPENED"] = "license:portal:opened";
|
|
315
|
-
Event2["ACCOUNT_CREATED"] = "account:created";
|
|
316
|
-
Event2["ACCOUNT_DELETED"] = "account:deleted";
|
|
317
|
-
Event2["ACCOUNT_VERIFIED"] = "account:verified";
|
|
318
|
-
Event2["APP_BACKFILL_SUCCEEDED"] = "app:backfill:succeeded";
|
|
319
|
-
Event2["APP_BACKFILL_FAILED"] = "app:backfill:failed";
|
|
320
|
-
Event2["TENANT_BACKFILL_SUCCEEDED"] = "tenant:backfill:succeeded";
|
|
321
|
-
Event2["TENANT_BACKFILL_FAILED"] = "tenant:backfill:failed";
|
|
322
|
-
Event2["INSTALLATION_BACKFILL_SUCCEEDED"] = "installation:backfill:succeeded";
|
|
323
|
-
Event2["INSTALLATION_BACKFILL_FAILED"] = "installation:backfill:failed";
|
|
324
|
-
Event2["USER_GROUP_CREATED"] = "user_group:created";
|
|
325
|
-
Event2["USER_GROUP_UPDATED"] = "user_group:updated";
|
|
326
|
-
Event2["USER_GROUP_DELETED"] = "user_group:deleted";
|
|
327
|
-
Event2["USER_GROUP_USERS_ADDED"] = "user_group:user_added";
|
|
328
|
-
Event2["USER_GROUP_USERS_REMOVED"] = "user_group:users_deleted";
|
|
329
|
-
Event2["USER_GROUP_PERMISSIONS_EDITED"] = "user_group:permissions_edited";
|
|
330
|
-
Event2["USER_GROUP_ONBOARDING"] = "user_group:onboarding_added";
|
|
331
|
-
Event2["PLUGIN_INIT"] = "plugin:init";
|
|
332
|
-
Event2["PLUGIN_IMPORTED"] = "plugin:imported";
|
|
333
|
-
Event2["PLUGIN_DELETED"] = "plugin:deleted";
|
|
334
|
-
Event2["APP_BACKUP_RESTORED"] = "app:backup:restored";
|
|
335
|
-
Event2["APP_BACKUP_TRIGGERED"] = "app:backup:triggered";
|
|
336
|
-
Event2["ENVIRONMENT_VARIABLE_CREATED"] = "environment_variable:created";
|
|
337
|
-
Event2["ENVIRONMENT_VARIABLE_DELETED"] = "environment_variable:deleted";
|
|
338
|
-
Event2["ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED"] = "environment_variable:upgrade_panel_opened";
|
|
339
|
-
Event2["AUDIT_LOGS_FILTERED"] = "audit_log:filtered";
|
|
340
|
-
Event2["AUDIT_LOGS_DOWNLOADED"] = "audit_log:downloaded";
|
|
341
|
-
Event2["ROW_ACTION_CREATED"] = "row_action:created";
|
|
342
|
-
return Event2;
|
|
343
|
-
})(Event || {});
|
|
344
|
-
var UserGroupSyncEvents = [
|
|
345
|
-
"user:created" /* USER_CREATED */,
|
|
346
|
-
"user:updated" /* USER_UPDATED */,
|
|
347
|
-
"user:deleted" /* USER_DELETED */,
|
|
348
|
-
"user:admin:assigned" /* USER_PERMISSION_ADMIN_ASSIGNED */,
|
|
349
|
-
"user:admin:removed" /* USER_PERMISSION_ADMIN_REMOVED */,
|
|
350
|
-
"user:builder:assigned" /* USER_PERMISSION_BUILDER_ASSIGNED */,
|
|
351
|
-
"user:builder:removed" /* USER_PERMISSION_BUILDER_REMOVED */,
|
|
352
|
-
"user_group:created" /* USER_GROUP_CREATED */,
|
|
353
|
-
"user_group:updated" /* USER_GROUP_UPDATED */,
|
|
354
|
-
"user_group:deleted" /* USER_GROUP_DELETED */,
|
|
355
|
-
"user_group:user_added" /* USER_GROUP_USERS_ADDED */,
|
|
356
|
-
"user_group:users_deleted" /* USER_GROUP_USERS_REMOVED */,
|
|
357
|
-
"user_group:permissions_edited" /* USER_GROUP_PERMISSIONS_EDITED */
|
|
358
|
-
];
|
|
359
|
-
var AsyncEvents = [...UserGroupSyncEvents];
|
|
360
|
-
var AuditedEventFriendlyName = {
|
|
361
|
-
// USER
|
|
362
|
-
["user:created" /* USER_CREATED */]: `User "{{ email }}" created{{#if viaScim}} via SCIM{{/if}}`,
|
|
363
|
-
["user:updated" /* USER_UPDATED */]: `User "{{ email }}" updated{{#if viaScim}} via SCIM{{/if}}`,
|
|
364
|
-
["user:deleted" /* USER_DELETED */]: `User "{{ email }}" deleted{{#if viaScim}} via SCIM{{/if}}`,
|
|
365
|
-
["user:admin:assigned" /* USER_PERMISSION_ADMIN_ASSIGNED */]: `User "{{ email }}" admin role assigned`,
|
|
366
|
-
["user:admin:removed" /* USER_PERMISSION_ADMIN_REMOVED */]: `User "{{ email }}" admin role removed`,
|
|
367
|
-
["user:builder:assigned" /* USER_PERMISSION_BUILDER_ASSIGNED */]: `User "{{ email }}" builder role assigned`,
|
|
368
|
-
["user:builder:removed" /* USER_PERMISSION_BUILDER_REMOVED */]: `User "{{ email }}" builder role removed`,
|
|
369
|
-
["user:invited" /* USER_INVITED */]: `User "{{ email }}" invited`,
|
|
370
|
-
["user:invite:accepted" /* USER_INVITED_ACCEPTED */]: `User "{{ email }}" accepted invite`,
|
|
371
|
-
["user:password:updated" /* USER_PASSWORD_UPDATED */]: `User "{{ email }}" password updated`,
|
|
372
|
-
["user:password:reset:requested" /* USER_PASSWORD_RESET_REQUESTED */]: `User "{{ email }}" password reset requested`,
|
|
373
|
-
["user:password:reset" /* USER_PASSWORD_RESET */]: `User "{{ email }}" password reset`,
|
|
374
|
-
["user_group:created" /* USER_GROUP_CREATED */]: `User group "{{ name }}" created{{#if viaScim}} via SCIM{{/if}}`,
|
|
375
|
-
["user_group:updated" /* USER_GROUP_UPDATED */]: `User group "{{ name }}" updated{{#if viaScim}} via SCIM{{/if}}`,
|
|
376
|
-
["user_group:deleted" /* USER_GROUP_DELETED */]: `User group "{{ name }}" deleted{{#if viaScim}} via SCIM{{/if}}`,
|
|
377
|
-
["user_group:user_added" /* USER_GROUP_USERS_ADDED */]: `User group "{{ name }}" {{ count }} users added{{#if viaScim}} via SCIM{{/if}}`,
|
|
378
|
-
["user_group:users_deleted" /* USER_GROUP_USERS_REMOVED */]: `User group "{{ name }}" {{ count }} users removed{{#if viaScim}} via SCIM{{/if}}`,
|
|
379
|
-
["user_group:permissions_edited" /* USER_GROUP_PERMISSIONS_EDITED */]: `User group "{{ name }}" permissions edited`,
|
|
380
|
-
["user:password:force:reset" /* USER_PASSWORD_FORCE_RESET */]: void 0,
|
|
381
|
-
["user_group:onboarding_added" /* USER_GROUP_ONBOARDING */]: void 0,
|
|
382
|
-
["user:onboarding:complete" /* USER_ONBOARDING_COMPLETE */]: void 0,
|
|
383
|
-
["user:data:collaboration" /* USER_DATA_COLLABORATION */]: void 0,
|
|
384
|
-
// EMAIL
|
|
385
|
-
["email:smtp:created" /* EMAIL_SMTP_CREATED */]: `Email configuration created`,
|
|
386
|
-
["email:smtp:updated" /* EMAIL_SMTP_UPDATED */]: `Email configuration updated`,
|
|
387
|
-
// AI
|
|
388
|
-
["ai:config:created" /* AI_CONFIG_CREATED */]: `AI configuration created`,
|
|
389
|
-
["ai:config:updated" /* AI_CONFIG_UPDATED */]: `AI configuration updated`,
|
|
390
|
-
// AUTH
|
|
391
|
-
["auth:sso:created" /* AUTH_SSO_CREATED */]: `SSO configuration created`,
|
|
392
|
-
["auth:sso:updated" /* AUTH_SSO_UPDATED */]: `SSO configuration updated`,
|
|
393
|
-
["auth:sso:activated" /* AUTH_SSO_ACTIVATED */]: `SSO configuration activated`,
|
|
394
|
-
["auth:sso:deactivated" /* AUTH_SSO_DEACTIVATED */]: `SSO configuration deactivated`,
|
|
395
|
-
["auth:login" /* AUTH_LOGIN */]: `User "{{ email }}" logged in`,
|
|
396
|
-
["auth:logout" /* AUTH_LOGOUT */]: `User "{{ email }}" logged out`,
|
|
397
|
-
// ORG
|
|
398
|
-
["org:info:name:updated" /* ORG_NAME_UPDATED */]: `Organisation name updated`,
|
|
399
|
-
["org:info:logo:updated" /* ORG_LOGO_UPDATED */]: `Organisation logo updated`,
|
|
400
|
-
["org:platformurl:updated" /* ORG_PLATFORM_URL_UPDATED */]: `Organisation platform URL updated`,
|
|
401
|
-
// APP
|
|
402
|
-
["app:created" /* APP_CREATED */]: `App "{{ name }}" created`,
|
|
403
|
-
["app:updated" /* APP_UPDATED */]: `App "{{ name }}" updated`,
|
|
404
|
-
["app:deleted" /* APP_DELETED */]: `App "{{ name }}" deleted`,
|
|
405
|
-
["app:duplicated" /* APP_DUPLICATED */]: `App "{{ name }}" duplicated`,
|
|
406
|
-
["app:published" /* APP_PUBLISHED */]: `App "{{ name }}" published`,
|
|
407
|
-
["app:unpublished" /* APP_UNPUBLISHED */]: `App "{{ name }}" unpublished`,
|
|
408
|
-
["app:template:imported" /* APP_TEMPLATE_IMPORTED */]: `App "{{ name }}" template imported`,
|
|
409
|
-
["app:file:imported" /* APP_FILE_IMPORTED */]: `App "{{ name }}" file imported`,
|
|
410
|
-
["app:version:updated" /* APP_VERSION_UPDATED */]: `App "{{ name }}" version updated`,
|
|
411
|
-
["app:version:reverted" /* APP_VERSION_REVERTED */]: `App "{{ name }}" version reverted`,
|
|
412
|
-
["app:reverted" /* APP_REVERTED */]: `App "{{ name }}" reverted`,
|
|
413
|
-
["app:exported" /* APP_EXPORTED */]: `App "{{ name }}" exported`,
|
|
414
|
-
["app:backup:restored" /* APP_BACKUP_RESTORED */]: `App backup "{{ name }}" restored`,
|
|
415
|
-
["app:backup:triggered" /* APP_BACKUP_TRIGGERED */]: `App backup "{{ name }}" triggered`,
|
|
416
|
-
// DATASOURCE
|
|
417
|
-
["datasource:created" /* DATASOURCE_CREATED */]: `Datasource created`,
|
|
418
|
-
["datasource:updated" /* DATASOURCE_UPDATED */]: `Datasource updated`,
|
|
419
|
-
["datasource:deleted" /* DATASOURCE_DELETED */]: `Datasource deleted`,
|
|
420
|
-
// QUERY
|
|
421
|
-
["query:created" /* QUERY_CREATED */]: `Query created`,
|
|
422
|
-
["query:updated" /* QUERY_UPDATED */]: `Query updated`,
|
|
423
|
-
["query:deleted" /* QUERY_DELETED */]: `Query deleted`,
|
|
424
|
-
["query:import" /* QUERY_IMPORT */]: `Query import`,
|
|
425
|
-
["queries:run" /* QUERIES_RUN */]: void 0,
|
|
426
|
-
["query:previewed" /* QUERY_PREVIEWED */]: void 0,
|
|
427
|
-
// TABLE
|
|
428
|
-
["table:created" /* TABLE_CREATED */]: `Table "{{ name }}" created`,
|
|
429
|
-
["table:updated" /* TABLE_UPDATED */]: `Table "{{ name }}" updated`,
|
|
430
|
-
["table:deleted" /* TABLE_DELETED */]: `Table "{{ name }}" deleted`,
|
|
431
|
-
["table:exported" /* TABLE_EXPORTED */]: `Table "{{ name }}" exported`,
|
|
432
|
-
["table:imported" /* TABLE_IMPORTED */]: `Table "{{ name }}" imported`,
|
|
433
|
-
["table:data:imported" /* TABLE_DATA_IMPORTED */]: `Data imported to table`,
|
|
434
|
-
// ROWS
|
|
435
|
-
["rows:created" /* ROWS_CREATED */]: `Rows created`,
|
|
436
|
-
["rows:imported" /* ROWS_IMPORTED */]: `Rows imported`,
|
|
437
|
-
// AUTOMATION
|
|
438
|
-
["automation:created" /* AUTOMATION_CREATED */]: `Automation "{{ name }}" created`,
|
|
439
|
-
["automation:deleted" /* AUTOMATION_DELETED */]: `Automation "{{ name }}" deleted`,
|
|
440
|
-
["automation:step:created" /* AUTOMATION_STEP_CREATED */]: `Automation "{{ name }}" step added`,
|
|
441
|
-
["automation:step:deleted" /* AUTOMATION_STEP_DELETED */]: `Automation "{{ name }}" step removed`,
|
|
442
|
-
["automation:tested" /* AUTOMATION_TESTED */]: void 0,
|
|
443
|
-
["automations:run" /* AUTOMATIONS_RUN */]: void 0,
|
|
444
|
-
["automation:trigger:updated" /* AUTOMATION_TRIGGER_UPDATED */]: void 0,
|
|
445
|
-
// SCREEN
|
|
446
|
-
["screen:created" /* SCREEN_CREATED */]: `Screen "{{ name }}" created`,
|
|
447
|
-
["screen:deleted" /* SCREEN_DELETED */]: `Screen "{{ name }}" deleted`,
|
|
448
|
-
// COMPONENT
|
|
449
|
-
["component:created" /* COMPONENT_CREATED */]: `Component created`,
|
|
450
|
-
["component:deleted" /* COMPONENT_DELETED */]: `Component deleted`,
|
|
451
|
-
// ENVIRONMENT VARIABLE
|
|
452
|
-
["environment_variable:created" /* ENVIRONMENT_VARIABLE_CREATED */]: `Environment variable created`,
|
|
453
|
-
["environment_variable:deleted" /* ENVIRONMENT_VARIABLE_DELETED */]: `Environment variable deleted`,
|
|
454
|
-
["environment_variable:upgrade_panel_opened" /* ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED */]: void 0,
|
|
455
|
-
// PLUGIN
|
|
456
|
-
["plugin:imported" /* PLUGIN_IMPORTED */]: `Plugin imported`,
|
|
457
|
-
["plugin:deleted" /* PLUGIN_DELETED */]: `Plugin deleted`,
|
|
458
|
-
["plugin:init" /* PLUGIN_INIT */]: void 0,
|
|
459
|
-
// ROLE - NOT AUDITED
|
|
460
|
-
["role:created" /* ROLE_CREATED */]: void 0,
|
|
461
|
-
["role:updated" /* ROLE_UPDATED */]: void 0,
|
|
462
|
-
["role:deleted" /* ROLE_DELETED */]: void 0,
|
|
463
|
-
["role:assigned" /* ROLE_ASSIGNED */]: void 0,
|
|
464
|
-
["role:unassigned" /* ROLE_UNASSIGNED */]: void 0,
|
|
465
|
-
// LICENSE - NOT AUDITED
|
|
466
|
-
["license:plan:changed" /* LICENSE_PLAN_CHANGED */]: void 0,
|
|
467
|
-
["license:activated" /* LICENSE_ACTIVATED */]: void 0,
|
|
468
|
-
["license:payment:failed" /* LICENSE_PAYMENT_FAILED */]: void 0,
|
|
469
|
-
["license:payment:recovered" /* LICENSE_PAYMENT_RECOVERED */]: void 0,
|
|
470
|
-
["license:checkout:opened" /* LICENSE_CHECKOUT_OPENED */]: void 0,
|
|
471
|
-
["license:checkout:success" /* LICENSE_CHECKOUT_SUCCESS */]: void 0,
|
|
472
|
-
["license:portal:opened" /* LICENSE_PORTAL_OPENED */]: void 0,
|
|
473
|
-
// ACCOUNT - NOT AUDITED
|
|
474
|
-
["account:created" /* ACCOUNT_CREATED */]: void 0,
|
|
475
|
-
["account:deleted" /* ACCOUNT_DELETED */]: void 0,
|
|
476
|
-
["account:verified" /* ACCOUNT_VERIFIED */]: void 0,
|
|
477
|
-
// BACKFILL - NOT AUDITED
|
|
478
|
-
["app:backfill:succeeded" /* APP_BACKFILL_SUCCEEDED */]: void 0,
|
|
479
|
-
["app:backfill:failed" /* APP_BACKFILL_FAILED */]: void 0,
|
|
480
|
-
["tenant:backfill:succeeded" /* TENANT_BACKFILL_SUCCEEDED */]: void 0,
|
|
481
|
-
["tenant:backfill:failed" /* TENANT_BACKFILL_FAILED */]: void 0,
|
|
482
|
-
["installation:backfill:succeeded" /* INSTALLATION_BACKFILL_SUCCEEDED */]: void 0,
|
|
483
|
-
["installation:backfill:failed" /* INSTALLATION_BACKFILL_FAILED */]: void 0,
|
|
484
|
-
// LAYOUT - NOT AUDITED
|
|
485
|
-
["layout:created" /* LAYOUT_CREATED */]: void 0,
|
|
486
|
-
["layout:deleted" /* LAYOUT_DELETED */]: void 0,
|
|
487
|
-
// VIEW - NOT AUDITED
|
|
488
|
-
["view:created" /* VIEW_CREATED */]: void 0,
|
|
489
|
-
["view:updated" /* VIEW_UPDATED */]: void 0,
|
|
490
|
-
["view:deleted" /* VIEW_DELETED */]: void 0,
|
|
491
|
-
["view:exported" /* VIEW_EXPORTED */]: void 0,
|
|
492
|
-
["view:filter:created" /* VIEW_FILTER_CREATED */]: void 0,
|
|
493
|
-
["view:filter:updated" /* VIEW_FILTER_UPDATED */]: void 0,
|
|
494
|
-
["view:filter:deleted" /* VIEW_FILTER_DELETED */]: void 0,
|
|
495
|
-
["view:calculation:created" /* VIEW_CALCULATION_CREATED */]: void 0,
|
|
496
|
-
["view:calculation:updated" /* VIEW_CALCULATION_UPDATED */]: void 0,
|
|
497
|
-
["view:calculation:deleted" /* VIEW_CALCULATION_DELETED */]: void 0,
|
|
498
|
-
["view:join:created" /* VIEW_JOIN_CREATED */]: void 0,
|
|
499
|
-
// SERVED - NOT AUDITED
|
|
500
|
-
["served:builder" /* SERVED_BUILDER */]: void 0,
|
|
501
|
-
["served:app" /* SERVED_APP */]: void 0,
|
|
502
|
-
["served:app:preview" /* SERVED_APP_PREVIEW */]: void 0,
|
|
503
|
-
// ANALYTICS - NOT AUDITED
|
|
504
|
-
["analytics:opt:out" /* ANALYTICS_OPT_OUT */]: void 0,
|
|
505
|
-
["analytics:opt:in" /* ANALYTICS_OPT_IN */]: void 0,
|
|
506
|
-
// INSTALLATION - NOT AUDITED
|
|
507
|
-
["installation:version:checked" /* INSTALLATION_VERSION_CHECKED */]: void 0,
|
|
508
|
-
["installation:version:upgraded" /* INSTALLATION_VERSION_UPGRADED */]: void 0,
|
|
509
|
-
["installation:version:downgraded" /* INSTALLATION_VERSION_DOWNGRADED */]: void 0,
|
|
510
|
-
["installation:firstStartup" /* INSTALLATION_FIRST_STARTUP */]: void 0,
|
|
511
|
-
// AUDIT LOG - NOT AUDITED
|
|
512
|
-
["audit_log:filtered" /* AUDIT_LOGS_FILTERED */]: void 0,
|
|
513
|
-
["audit_log:downloaded" /* AUDIT_LOGS_DOWNLOADED */]: void 0,
|
|
514
|
-
// ROW ACTIONS - NOT AUDITED
|
|
515
|
-
["row_action:created" /* ROW_ACTION_CREATED */]: void 0
|
|
516
|
-
};
|
|
517
|
-
|
|
518
|
-
// src/sdk/events/identification.ts
|
|
519
|
-
var GroupType = /* @__PURE__ */ ((GroupType2) => {
|
|
520
|
-
GroupType2["TENANT"] = "tenant";
|
|
521
|
-
GroupType2["INSTALLATION"] = "installation";
|
|
522
|
-
return GroupType2;
|
|
523
|
-
})(GroupType || {});
|
|
524
|
-
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
525
|
-
IdentityType2["USER"] = "user";
|
|
526
|
-
IdentityType2["TENANT"] = "tenant";
|
|
527
|
-
IdentityType2["INSTALLATION"] = "installation";
|
|
528
|
-
return IdentityType2;
|
|
529
|
-
})(IdentityType || {});
|
|
530
|
-
|
|
531
|
-
// src/sdk/licensing/plan.ts
|
|
532
|
-
var PlanType = /* @__PURE__ */ ((PlanType3) => {
|
|
533
|
-
PlanType3["FREE"] = "free";
|
|
534
|
-
PlanType3["PRO"] = "pro";
|
|
535
|
-
PlanType3["TEAM"] = "team";
|
|
536
|
-
PlanType3["PREMIUM"] = "premium";
|
|
537
|
-
PlanType3["PREMIUM_PLUS"] = "premium_plus";
|
|
538
|
-
PlanType3["PREMIUM_PLUS_TRIAL"] = "premium_plus_trial";
|
|
539
|
-
PlanType3["BUSINESS"] = "business";
|
|
540
|
-
PlanType3["ENTERPRISE_BASIC"] = "enterprise_basic";
|
|
541
|
-
PlanType3["ENTERPRISE_BASIC_TRIAL"] = "enterprise_basic_trial";
|
|
542
|
-
PlanType3["ENTERPRISE"] = "enterprise";
|
|
543
|
-
return PlanType3;
|
|
544
|
-
})(PlanType || {});
|
|
545
|
-
var PriceDuration = /* @__PURE__ */ ((PriceDuration2) => {
|
|
546
|
-
PriceDuration2["MONTHLY"] = "monthly";
|
|
547
|
-
PriceDuration2["YEARLY"] = "yearly";
|
|
548
|
-
return PriceDuration2;
|
|
549
|
-
})(PriceDuration || {});
|
|
550
|
-
var PlanModel = /* @__PURE__ */ ((PlanModel2) => {
|
|
551
|
-
PlanModel2["PER_USER"] = "perUser";
|
|
552
|
-
PlanModel2["PER_CREATOR_PER_USER"] = "per_creator_per_user";
|
|
553
|
-
return PlanModel2;
|
|
554
|
-
})(PlanModel || {});
|
|
555
|
-
|
|
556
|
-
// src/sdk/licensing/quota.ts
|
|
557
|
-
var QuotaUsageType = /* @__PURE__ */ ((QuotaUsageType2) => {
|
|
558
|
-
QuotaUsageType2["STATIC"] = "static";
|
|
559
|
-
QuotaUsageType2["MONTHLY"] = "monthly";
|
|
560
|
-
return QuotaUsageType2;
|
|
561
|
-
})(QuotaUsageType || {});
|
|
562
|
-
var QuotaType = /* @__PURE__ */ ((QuotaType2) => {
|
|
563
|
-
QuotaType2["USAGE"] = "usage";
|
|
564
|
-
QuotaType2["CONSTANT"] = "constant";
|
|
565
|
-
return QuotaType2;
|
|
566
|
-
})(QuotaType || {});
|
|
567
|
-
var StaticQuotaName = /* @__PURE__ */ ((StaticQuotaName2) => {
|
|
568
|
-
StaticQuotaName2["ROWS"] = "rows";
|
|
569
|
-
StaticQuotaName2["APPS"] = "apps";
|
|
570
|
-
StaticQuotaName2["USERS"] = "users";
|
|
571
|
-
StaticQuotaName2["CREATORS"] = "creators";
|
|
572
|
-
StaticQuotaName2["USER_GROUPS"] = "userGroups";
|
|
573
|
-
StaticQuotaName2["PLUGINS"] = "plugins";
|
|
574
|
-
StaticQuotaName2["AI_CUSTOM_CONFIGS"] = "aiCustomConfigs";
|
|
575
|
-
return StaticQuotaName2;
|
|
576
|
-
})(StaticQuotaName || {});
|
|
577
|
-
var MonthlyQuotaName = /* @__PURE__ */ ((MonthlyQuotaName2) => {
|
|
578
|
-
MonthlyQuotaName2["QUERIES"] = "queries";
|
|
579
|
-
MonthlyQuotaName2["AUTOMATIONS"] = "automations";
|
|
580
|
-
MonthlyQuotaName2["BUDIBASE_AI_CREDITS"] = "budibaseAICredits";
|
|
581
|
-
return MonthlyQuotaName2;
|
|
582
|
-
})(MonthlyQuotaName || {});
|
|
583
|
-
var ConstantQuotaName = /* @__PURE__ */ ((ConstantQuotaName2) => {
|
|
584
|
-
ConstantQuotaName2["AUTOMATION_LOG_RETENTION_DAYS"] = "automationLogRetentionDays";
|
|
585
|
-
ConstantQuotaName2["APP_BACKUPS_RETENTION_DAYS"] = "appBackupRetentionDays";
|
|
586
|
-
return ConstantQuotaName2;
|
|
587
|
-
})(ConstantQuotaName || {});
|
|
588
|
-
var isStaticQuota = (quotaType, usageType, name) => {
|
|
589
|
-
return quotaType === "usage" /* USAGE */ && usageType === "static" /* STATIC */;
|
|
590
|
-
};
|
|
591
|
-
var isMonthlyQuota = (quotaType, usageType, name) => {
|
|
592
|
-
return quotaType === "usage" /* USAGE */ && usageType === "monthly" /* MONTHLY */;
|
|
593
|
-
};
|
|
594
|
-
var isConstantQuota = (quotaType, name) => {
|
|
595
|
-
return quotaType === "constant" /* CONSTANT */;
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
// src/sdk/licensing/feature.ts
|
|
599
|
-
var Feature = /* @__PURE__ */ ((Feature3) => {
|
|
600
|
-
Feature3["USER_GROUPS"] = "userGroups";
|
|
601
|
-
Feature3["APP_BACKUPS"] = "appBackups";
|
|
602
|
-
Feature3["ENVIRONMENT_VARIABLES"] = "environmentVariables";
|
|
603
|
-
Feature3["AUDIT_LOGS"] = "auditLogs";
|
|
604
|
-
Feature3["ENFORCEABLE_SSO"] = "enforceableSSO";
|
|
605
|
-
Feature3["BRANDING"] = "branding";
|
|
606
|
-
Feature3["SCIM"] = "scim";
|
|
607
|
-
Feature3["SYNC_AUTOMATIONS"] = "syncAutomations";
|
|
608
|
-
Feature3["TRIGGER_AUTOMATION_RUN"] = "triggerAutomationRun";
|
|
609
|
-
Feature3["APP_BUILDERS"] = "appBuilders";
|
|
610
|
-
Feature3["OFFLINE"] = "offline";
|
|
611
|
-
Feature3["EXPANDED_PUBLIC_API"] = "expandedPublicApi";
|
|
612
|
-
Feature3["VIEW_PERMISSIONS"] = "viewPermissions";
|
|
613
|
-
Feature3["VIEW_READONLY_COLUMNS"] = "viewReadonlyColumns";
|
|
614
|
-
Feature3["BUDIBASE_AI"] = "budibaseAI";
|
|
615
|
-
Feature3["AI_CUSTOM_CONFIGS"] = "aiCustomConfigs";
|
|
616
|
-
return Feature3;
|
|
617
|
-
})(Feature || {});
|
|
618
|
-
|
|
619
|
-
// src/sdk/migrations.ts
|
|
620
|
-
var MigrationType = /* @__PURE__ */ ((MigrationType2) => {
|
|
621
|
-
MigrationType2["GLOBAL"] = "global";
|
|
622
|
-
MigrationType2["APP"] = "app";
|
|
623
|
-
MigrationType2["INSTALLATION"] = "installation";
|
|
624
|
-
return MigrationType2;
|
|
625
|
-
})(MigrationType || {});
|
|
626
|
-
var MigrationName = /* @__PURE__ */ ((MigrationName2) => {
|
|
627
|
-
MigrationName2["USER_EMAIL_VIEW_CASING"] = "user_email_view_casing";
|
|
628
|
-
MigrationName2["APP_URLS"] = "app_urls";
|
|
629
|
-
MigrationName2["EVENT_APP_BACKFILL"] = "event_app_backfill";
|
|
630
|
-
MigrationName2["EVENT_GLOBAL_BACKFILL"] = "event_global_backfill";
|
|
631
|
-
MigrationName2["EVENT_INSTALLATION_BACKFILL"] = "event_installation_backfill";
|
|
632
|
-
MigrationName2["GLOBAL_INFO_SYNC_USERS"] = "global_info_sync_users";
|
|
633
|
-
MigrationName2["TABLE_SETTINGS_LINKS_TO_ACTIONS"] = "table_settings_links_to_actions";
|
|
634
|
-
MigrationName2["SYNC_QUOTAS"] = "sync_quotas_2";
|
|
635
|
-
return MigrationName2;
|
|
636
|
-
})(MigrationName || {});
|
|
637
|
-
|
|
638
|
-
// src/sdk/datasources.ts
|
|
639
|
-
var PASSWORD_REPLACEMENT = "--secret-value--";
|
|
640
|
-
var Operation = /* @__PURE__ */ ((Operation2) => {
|
|
641
|
-
Operation2["CREATE"] = "CREATE";
|
|
642
|
-
Operation2["READ"] = "READ";
|
|
643
|
-
Operation2["UPDATE"] = "UPDATE";
|
|
644
|
-
Operation2["DELETE"] = "DELETE";
|
|
645
|
-
Operation2["COUNT"] = "COUNT";
|
|
646
|
-
Operation2["BULK_CREATE"] = "BULK_CREATE";
|
|
647
|
-
Operation2["BULK_UPSERT"] = "BULK_UPSERT";
|
|
648
|
-
Operation2["CREATE_TABLE"] = "CREATE_TABLE";
|
|
649
|
-
Operation2["UPDATE_TABLE"] = "UPDATE_TABLE";
|
|
650
|
-
Operation2["DELETE_TABLE"] = "DELETE_TABLE";
|
|
651
|
-
return Operation2;
|
|
652
|
-
})(Operation || {});
|
|
653
|
-
var RowOperations = [
|
|
654
|
-
"CREATE" /* CREATE */,
|
|
655
|
-
"READ" /* READ */,
|
|
656
|
-
"UPDATE" /* UPDATE */,
|
|
657
|
-
"DELETE" /* DELETE */,
|
|
658
|
-
"BULK_CREATE" /* BULK_CREATE */,
|
|
659
|
-
"BULK_UPSERT" /* BULK_UPSERT */
|
|
660
|
-
];
|
|
661
|
-
var QueryType = /* @__PURE__ */ ((QueryType2) => {
|
|
662
|
-
QueryType2["SQL"] = "sql";
|
|
663
|
-
QueryType2["JSON"] = "json";
|
|
664
|
-
QueryType2["FIELDS"] = "fields";
|
|
665
|
-
return QueryType2;
|
|
666
|
-
})(QueryType || {});
|
|
667
|
-
var DatasourceFieldType = /* @__PURE__ */ ((DatasourceFieldType2) => {
|
|
668
|
-
DatasourceFieldType2["STRING"] = "string";
|
|
669
|
-
DatasourceFieldType2["CODE"] = "code";
|
|
670
|
-
DatasourceFieldType2["LONGFORM"] = "longForm";
|
|
671
|
-
DatasourceFieldType2["BOOLEAN"] = "boolean";
|
|
672
|
-
DatasourceFieldType2["NUMBER"] = "number";
|
|
673
|
-
DatasourceFieldType2["PASSWORD"] = "password";
|
|
674
|
-
DatasourceFieldType2["LIST"] = "list";
|
|
675
|
-
DatasourceFieldType2["OBJECT"] = "object";
|
|
676
|
-
DatasourceFieldType2["JSON"] = "json";
|
|
677
|
-
DatasourceFieldType2["FILE"] = "file";
|
|
678
|
-
DatasourceFieldType2["FIELD_GROUP"] = "fieldGroup";
|
|
679
|
-
DatasourceFieldType2["SELECT"] = "select";
|
|
680
|
-
return DatasourceFieldType2;
|
|
681
|
-
})(DatasourceFieldType || {});
|
|
682
|
-
var SourceName = /* @__PURE__ */ ((SourceName2) => {
|
|
683
|
-
SourceName2["POSTGRES"] = "POSTGRES";
|
|
684
|
-
SourceName2["DYNAMODB"] = "DYNAMODB";
|
|
685
|
-
SourceName2["MONGODB"] = "MONGODB";
|
|
686
|
-
SourceName2["ELASTICSEARCH"] = "ELASTICSEARCH";
|
|
687
|
-
SourceName2["COUCHDB"] = "COUCHDB";
|
|
688
|
-
SourceName2["SQL_SERVER"] = "SQL_SERVER";
|
|
689
|
-
SourceName2["S3"] = "S3";
|
|
690
|
-
SourceName2["AIRTABLE"] = "AIRTABLE";
|
|
691
|
-
SourceName2["MYSQL"] = "MYSQL";
|
|
692
|
-
SourceName2["ARANGODB"] = "ARANGODB";
|
|
693
|
-
SourceName2["REST"] = "REST";
|
|
694
|
-
SourceName2["ORACLE"] = "ORACLE";
|
|
695
|
-
SourceName2["GOOGLE_SHEETS"] = "GOOGLE_SHEETS";
|
|
696
|
-
SourceName2["FIRESTORE"] = "FIRESTORE";
|
|
697
|
-
SourceName2["REDIS"] = "REDIS";
|
|
698
|
-
SourceName2["SNOWFLAKE"] = "SNOWFLAKE";
|
|
699
|
-
SourceName2["BUDIBASE"] = "BUDIBASE";
|
|
700
|
-
return SourceName2;
|
|
701
|
-
})(SourceName || {});
|
|
702
|
-
var IncludeRelationship = /* @__PURE__ */ ((IncludeRelationship2) => {
|
|
703
|
-
IncludeRelationship2[IncludeRelationship2["INCLUDE"] = 1] = "INCLUDE";
|
|
704
|
-
IncludeRelationship2[IncludeRelationship2["EXCLUDE"] = 0] = "EXCLUDE";
|
|
705
|
-
return IncludeRelationship2;
|
|
706
|
-
})(IncludeRelationship || {});
|
|
707
|
-
var FilterType = /* @__PURE__ */ ((FilterType2) => {
|
|
708
|
-
FilterType2["STRING"] = "string";
|
|
709
|
-
FilterType2["FUZZY"] = "fuzzy";
|
|
710
|
-
FilterType2["RANGE"] = "range";
|
|
711
|
-
FilterType2["EQUAL"] = "equal";
|
|
712
|
-
FilterType2["NOT_EQUAL"] = "notEqual";
|
|
713
|
-
FilterType2["EMPTY"] = "empty";
|
|
714
|
-
FilterType2["NOT_EMPTY"] = "notEmpty";
|
|
715
|
-
FilterType2["ONE_OF"] = "oneOf";
|
|
716
|
-
return FilterType2;
|
|
717
|
-
})(FilterType || {});
|
|
718
|
-
var DatasourceFeature = /* @__PURE__ */ ((DatasourceFeature2) => {
|
|
719
|
-
DatasourceFeature2["CONNECTION_CHECKING"] = "connection";
|
|
720
|
-
DatasourceFeature2["FETCH_TABLE_NAMES"] = "fetch_table_names";
|
|
721
|
-
DatasourceFeature2["EXPORT_SCHEMA"] = "export_schema";
|
|
722
|
-
return DatasourceFeature2;
|
|
723
|
-
})(DatasourceFeature || {});
|
|
724
|
-
var DSPlusOperation = /* @__PURE__ */ ((DSPlusOperation2) => {
|
|
725
|
-
DSPlusOperation2["CREATE"] = "create";
|
|
726
|
-
DSPlusOperation2["READ"] = "read";
|
|
727
|
-
DSPlusOperation2["UPDATE"] = "update";
|
|
728
|
-
DSPlusOperation2["DELETE"] = "delete";
|
|
729
|
-
return DSPlusOperation2;
|
|
730
|
-
})(DSPlusOperation || {});
|
|
731
|
-
|
|
732
|
-
// src/sdk/search.ts
|
|
733
|
-
var BasicOperator = /* @__PURE__ */ ((BasicOperator2) => {
|
|
734
|
-
BasicOperator2["EQUAL"] = "equal";
|
|
735
|
-
BasicOperator2["NOT_EQUAL"] = "notEqual";
|
|
736
|
-
BasicOperator2["EMPTY"] = "empty";
|
|
737
|
-
BasicOperator2["NOT_EMPTY"] = "notEmpty";
|
|
738
|
-
BasicOperator2["FUZZY"] = "fuzzy";
|
|
739
|
-
BasicOperator2["STRING"] = "string";
|
|
740
|
-
return BasicOperator2;
|
|
741
|
-
})(BasicOperator || {});
|
|
742
|
-
var ArrayOperator = /* @__PURE__ */ ((ArrayOperator2) => {
|
|
743
|
-
ArrayOperator2["CONTAINS"] = "contains";
|
|
744
|
-
ArrayOperator2["NOT_CONTAINS"] = "notContains";
|
|
745
|
-
ArrayOperator2["CONTAINS_ANY"] = "containsAny";
|
|
746
|
-
ArrayOperator2["ONE_OF"] = "oneOf";
|
|
747
|
-
return ArrayOperator2;
|
|
748
|
-
})(ArrayOperator || {});
|
|
749
|
-
var RangeOperator = /* @__PURE__ */ ((RangeOperator2) => {
|
|
750
|
-
RangeOperator2["RANGE"] = "range";
|
|
751
|
-
return RangeOperator2;
|
|
752
|
-
})(RangeOperator || {});
|
|
753
|
-
var LogicalOperator = /* @__PURE__ */ ((LogicalOperator2) => {
|
|
754
|
-
LogicalOperator2["AND"] = "$and";
|
|
755
|
-
LogicalOperator2["OR"] = "$or";
|
|
756
|
-
return LogicalOperator2;
|
|
757
|
-
})(LogicalOperator || {});
|
|
758
|
-
function isLogicalSearchOperator(value) {
|
|
759
|
-
return Object.values(LogicalOperator).includes(value);
|
|
760
|
-
}
|
|
761
|
-
function isBasicSearchOperator(value) {
|
|
762
|
-
return Object.values(BasicOperator).includes(value);
|
|
763
|
-
}
|
|
764
|
-
function isArraySearchOperator(value) {
|
|
765
|
-
return Object.values(ArrayOperator).includes(value);
|
|
766
|
-
}
|
|
767
|
-
function isRangeSearchOperator(value) {
|
|
768
|
-
return Object.values(RangeOperator).includes(value);
|
|
769
|
-
}
|
|
770
|
-
var InternalSearchFilterOperator = /* @__PURE__ */ ((InternalSearchFilterOperator2) => {
|
|
771
|
-
InternalSearchFilterOperator2["COMPLEX_ID_OPERATOR"] = "_complexIdOperator";
|
|
772
|
-
return InternalSearchFilterOperator2;
|
|
773
|
-
})(InternalSearchFilterOperator || {});
|
|
774
|
-
var EmptyFilterOption = /* @__PURE__ */ ((EmptyFilterOption2) => {
|
|
775
|
-
EmptyFilterOption2["RETURN_ALL"] = "all";
|
|
776
|
-
EmptyFilterOption2["RETURN_NONE"] = "none";
|
|
777
|
-
return EmptyFilterOption2;
|
|
778
|
-
})(EmptyFilterOption || {});
|
|
779
|
-
var UILogicalOperator = /* @__PURE__ */ ((UILogicalOperator2) => {
|
|
780
|
-
UILogicalOperator2["ALL"] = "all";
|
|
781
|
-
UILogicalOperator2["ANY"] = "any";
|
|
782
|
-
return UILogicalOperator2;
|
|
783
|
-
})(UILogicalOperator || {});
|
|
784
|
-
var SqlClient = /* @__PURE__ */ ((SqlClient2) => {
|
|
785
|
-
SqlClient2["MS_SQL"] = "mssql";
|
|
786
|
-
SqlClient2["POSTGRES"] = "pg";
|
|
787
|
-
SqlClient2["MY_SQL"] = "mysql2";
|
|
788
|
-
SqlClient2["MARIADB"] = "mariadb";
|
|
789
|
-
SqlClient2["ORACLE"] = "oracledb";
|
|
790
|
-
SqlClient2["SQL_LITE"] = "sqlite3";
|
|
791
|
-
return SqlClient2;
|
|
792
|
-
})(SqlClient || {});
|
|
793
|
-
|
|
794
|
-
// src/sdk/koa.ts
|
|
795
|
-
var LoginMethod = /* @__PURE__ */ ((LoginMethod2) => {
|
|
796
|
-
LoginMethod2["API_KEY"] = "api_key";
|
|
797
|
-
LoginMethod2["COOKIE"] = "cookie";
|
|
798
|
-
return LoginMethod2;
|
|
799
|
-
})(LoginMethod || {});
|
|
800
|
-
|
|
801
|
-
// src/sdk/locks.ts
|
|
802
|
-
var LockType = /* @__PURE__ */ ((LockType2) => {
|
|
803
|
-
LockType2["TRY_ONCE"] = "try_once";
|
|
804
|
-
LockType2["TRY_TWICE"] = "try_twice";
|
|
805
|
-
LockType2["DEFAULT"] = "default";
|
|
806
|
-
LockType2["DELAY_500"] = "delay_500";
|
|
807
|
-
LockType2["CUSTOM"] = "custom";
|
|
808
|
-
LockType2["AUTO_EXTEND"] = "auto_extend";
|
|
809
|
-
return LockType2;
|
|
810
|
-
})(LockType || {});
|
|
811
|
-
var LockName = /* @__PURE__ */ ((LockName2) => {
|
|
812
|
-
LockName2["MIGRATIONS"] = "migrations";
|
|
813
|
-
LockName2["TRIGGER_QUOTA"] = "trigger_quota";
|
|
814
|
-
LockName2["SYNC_ACCOUNT_LICENSE"] = "sync_account_license";
|
|
815
|
-
LockName2["UPDATE_TENANTS_DOC"] = "update_tenants_doc";
|
|
816
|
-
LockName2["PERSIST_WRITETHROUGH"] = "persist_writethrough";
|
|
817
|
-
LockName2["QUOTA_USAGE_EVENT"] = "quota_usage_event";
|
|
818
|
-
LockName2["APP_MIGRATION"] = "app_migrations";
|
|
819
|
-
LockName2["PROCESS_USER_INVITE"] = "process_user_invite";
|
|
820
|
-
return LockName2;
|
|
821
|
-
})(LockName || {});
|
|
822
|
-
|
|
823
|
-
// src/sdk/db.ts
|
|
824
|
-
var SearchIndex = /* @__PURE__ */ ((SearchIndex2) => {
|
|
825
|
-
SearchIndex2["ROWS"] = "rows";
|
|
826
|
-
SearchIndex2["USER"] = "user";
|
|
827
|
-
return SearchIndex2;
|
|
828
|
-
})(SearchIndex || {});
|
|
829
|
-
var SortOption = /* @__PURE__ */ ((SortOption2) => {
|
|
830
|
-
SortOption2["ASCENDING"] = "asc";
|
|
831
|
-
SortOption2["DESCENDING"] = "desc";
|
|
832
|
-
return SortOption2;
|
|
833
|
-
})(SortOption || {});
|
|
834
|
-
var isDocument = (doc) => {
|
|
835
|
-
return typeof doc === "object" && doc._id && doc._rev;
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
// src/sdk/middleware/tenancy.ts
|
|
839
|
-
var TenantResolutionStrategy = /* @__PURE__ */ ((TenantResolutionStrategy2) => {
|
|
840
|
-
TenantResolutionStrategy2["USER"] = "user";
|
|
841
|
-
TenantResolutionStrategy2["HEADER"] = "header";
|
|
842
|
-
TenantResolutionStrategy2["QUERY"] = "query";
|
|
843
|
-
TenantResolutionStrategy2["SUBDOMAIN"] = "subdomain";
|
|
844
|
-
TenantResolutionStrategy2["PATH"] = "path";
|
|
845
|
-
return TenantResolutionStrategy2;
|
|
846
|
-
})(TenantResolutionStrategy || {});
|
|
847
|
-
|
|
848
|
-
// src/sdk/featureFlag.ts
|
|
849
|
-
var FeatureFlag = /* @__PURE__ */ ((FeatureFlag2) => {
|
|
850
|
-
FeatureFlag2["USE_ZOD_VALIDATOR"] = "USE_ZOD_VALIDATOR";
|
|
851
|
-
FeatureFlag2["DIRECT_LOGIN_TO_ACCOUNT_PORTAL"] = "DIRECT_LOGIN_TO_ACCOUNT_PORTAL";
|
|
852
|
-
return FeatureFlag2;
|
|
853
|
-
})(FeatureFlag || {});
|
|
854
|
-
var FeatureFlagDefaults = {
|
|
855
|
-
["USE_ZOD_VALIDATOR" /* USE_ZOD_VALIDATOR */]: false,
|
|
856
|
-
// Account-portal
|
|
857
|
-
["DIRECT_LOGIN_TO_ACCOUNT_PORTAL" /* DIRECT_LOGIN_TO_ACCOUNT_PORTAL */]: false
|
|
858
|
-
};
|
|
859
|
-
|
|
860
|
-
// src/sdk/environmentVariables.ts
|
|
861
|
-
var AppEnvironment = /* @__PURE__ */ ((AppEnvironment2) => {
|
|
862
|
-
AppEnvironment2["PRODUCTION"] = "production";
|
|
863
|
-
AppEnvironment2["DEVELOPMENT"] = "development";
|
|
864
|
-
return AppEnvironment2;
|
|
865
|
-
})(AppEnvironment || {});
|
|
866
|
-
|
|
867
|
-
// src/sdk/cli/constants.ts
|
|
868
|
-
var CommandWord = /* @__PURE__ */ ((CommandWord2) => {
|
|
869
|
-
CommandWord2["BACKUPS"] = "backups";
|
|
870
|
-
CommandWord2["HOSTING"] = "hosting";
|
|
871
|
-
CommandWord2["ANALYTICS"] = "analytics";
|
|
872
|
-
CommandWord2["HELP"] = "help";
|
|
873
|
-
CommandWord2["PLUGIN"] = "plugins";
|
|
874
|
-
return CommandWord2;
|
|
875
|
-
})(CommandWord || {});
|
|
876
|
-
var InitType = /* @__PURE__ */ ((InitType2) => {
|
|
877
|
-
InitType2["QUICK"] = "quick";
|
|
878
|
-
InitType2["DIGITAL_OCEAN"] = "do";
|
|
879
|
-
return InitType2;
|
|
880
|
-
})(InitType || {});
|
|
881
|
-
var AnalyticsEvent = {
|
|
882
|
-
OptOut: "analytics:opt:out",
|
|
883
|
-
OptIn: "analytics:opt:in",
|
|
884
|
-
SelfHostInit: "hosting:init",
|
|
885
|
-
PluginInit: "plugin:init" /* PLUGIN_INIT */
|
|
886
|
-
};
|
|
887
|
-
|
|
888
|
-
// src/sdk/permissions.ts
|
|
889
|
-
var PermissionLevel = /* @__PURE__ */ ((PermissionLevel2) => {
|
|
890
|
-
PermissionLevel2["READ"] = "read";
|
|
891
|
-
PermissionLevel2["WRITE"] = "write";
|
|
892
|
-
PermissionLevel2["EXECUTE"] = "execute";
|
|
893
|
-
PermissionLevel2["ADMIN"] = "admin";
|
|
894
|
-
return PermissionLevel2;
|
|
895
|
-
})(PermissionLevel || {});
|
|
896
|
-
var BuiltinPermissionID = /* @__PURE__ */ ((BuiltinPermissionID2) => {
|
|
897
|
-
BuiltinPermissionID2["PUBLIC"] = "public";
|
|
898
|
-
BuiltinPermissionID2["READ_ONLY"] = "read_only";
|
|
899
|
-
BuiltinPermissionID2["WRITE"] = "write";
|
|
900
|
-
BuiltinPermissionID2["ADMIN"] = "admin";
|
|
901
|
-
BuiltinPermissionID2["POWER"] = "power";
|
|
902
|
-
return BuiltinPermissionID2;
|
|
903
|
-
})(BuiltinPermissionID || {});
|
|
904
|
-
var PermissionType = /* @__PURE__ */ ((PermissionType2) => {
|
|
905
|
-
PermissionType2["APP"] = "app";
|
|
906
|
-
PermissionType2["TABLE"] = "table";
|
|
907
|
-
PermissionType2["USER"] = "user";
|
|
908
|
-
PermissionType2["AUTOMATION"] = "automation";
|
|
909
|
-
PermissionType2["WEBHOOK"] = "webhook";
|
|
910
|
-
PermissionType2["BUILDER"] = "builder";
|
|
911
|
-
PermissionType2["CREATOR"] = "creator";
|
|
912
|
-
PermissionType2["GLOBAL_BUILDER"] = "globalBuilder";
|
|
913
|
-
PermissionType2["QUERY"] = "query";
|
|
914
|
-
PermissionType2["VIEW"] = "view";
|
|
915
|
-
PermissionType2["LEGACY_VIEW"] = "legacy_view";
|
|
916
|
-
return PermissionType2;
|
|
917
|
-
})(PermissionType || {});
|
|
918
|
-
var PermissionSource = /* @__PURE__ */ ((PermissionSource2) => {
|
|
919
|
-
PermissionSource2["EXPLICIT"] = "EXPLICIT";
|
|
920
|
-
PermissionSource2["INHERITED"] = "INHERITED";
|
|
921
|
-
PermissionSource2["BASE"] = "BASE";
|
|
922
|
-
return PermissionSource2;
|
|
923
|
-
})(PermissionSource || {});
|
|
924
|
-
|
|
925
|
-
// src/sdk/row.ts
|
|
926
|
-
var RowExportFormat = /* @__PURE__ */ ((RowExportFormat2) => {
|
|
927
|
-
RowExportFormat2["CSV"] = "csv";
|
|
928
|
-
RowExportFormat2["JSON"] = "json";
|
|
929
|
-
RowExportFormat2["JSON_WITH_SCHEMA"] = "jsonWithSchema";
|
|
930
|
-
return RowExportFormat2;
|
|
931
|
-
})(RowExportFormat || {});
|
|
932
|
-
|
|
933
|
-
// src/documents/account/account.ts
|
|
934
|
-
var isCreatePasswordAccount = (account) => account.authType === "password" /* PASSWORD */;
|
|
935
|
-
var isPasswordAccount = (account) => account.authType === "password" /* PASSWORD */ && account.hosting === "self" /* SELF */;
|
|
936
|
-
var isCloudAccount = (account) => account.hosting === "cloud" /* CLOUD */;
|
|
937
|
-
var isSelfHostAccount = (account) => account.hosting === "self" /* SELF */;
|
|
938
|
-
var isSSOAccount = (account) => account.authType === "sso" /* SSO */;
|
|
939
|
-
var AccountSSOProviderType = /* @__PURE__ */ ((AccountSSOProviderType2) => {
|
|
940
|
-
AccountSSOProviderType2["GOOGLE"] = "google";
|
|
941
|
-
AccountSSOProviderType2["MICROSOFT"] = "microsoft";
|
|
942
|
-
return AccountSSOProviderType2;
|
|
943
|
-
})(AccountSSOProviderType || {});
|
|
944
|
-
var AccountSSOProvider = /* @__PURE__ */ ((AccountSSOProvider2) => {
|
|
945
|
-
AccountSSOProvider2["GOOGLE"] = "google";
|
|
946
|
-
AccountSSOProvider2["MICROSOFT"] = "microsoft";
|
|
947
|
-
return AccountSSOProvider2;
|
|
948
|
-
})(AccountSSOProvider || {});
|
|
949
|
-
var verifiableSSOProviders = [
|
|
950
|
-
"microsoft" /* MICROSOFT */
|
|
951
|
-
];
|
|
952
|
-
function isVerifiableSSOProvider(provider) {
|
|
953
|
-
return verifiableSSOProviders.includes(provider);
|
|
954
|
-
}
|
|
955
|
-
var AuthType = /* @__PURE__ */ ((AuthType2) => {
|
|
956
|
-
AuthType2["SSO"] = "sso";
|
|
957
|
-
AuthType2["PASSWORD"] = "password";
|
|
958
|
-
return AuthType2;
|
|
959
|
-
})(AuthType || {});
|
|
960
|
-
|
|
961
|
-
// src/documents/app/automation/automation.ts
|
|
962
|
-
var AutomationIOType = /* @__PURE__ */ ((AutomationIOType2) => {
|
|
963
|
-
AutomationIOType2["OBJECT"] = "object";
|
|
964
|
-
AutomationIOType2["STRING"] = "string";
|
|
965
|
-
AutomationIOType2["BOOLEAN"] = "boolean";
|
|
966
|
-
AutomationIOType2["NUMBER"] = "number";
|
|
967
|
-
AutomationIOType2["ARRAY"] = "array";
|
|
968
|
-
AutomationIOType2["JSON"] = "json";
|
|
969
|
-
AutomationIOType2["DATE"] = "date";
|
|
970
|
-
AutomationIOType2["ATTACHMENT"] = "attachment";
|
|
971
|
-
return AutomationIOType2;
|
|
972
|
-
})(AutomationIOType || {});
|
|
973
|
-
var AutomationCustomIOType = /* @__PURE__ */ ((AutomationCustomIOType2) => {
|
|
974
|
-
AutomationCustomIOType2["TABLE"] = "table";
|
|
975
|
-
AutomationCustomIOType2["ROW"] = "row";
|
|
976
|
-
AutomationCustomIOType2["ROWS"] = "rows";
|
|
977
|
-
AutomationCustomIOType2["WIDE"] = "wide";
|
|
978
|
-
AutomationCustomIOType2["QUERY"] = "query";
|
|
979
|
-
AutomationCustomIOType2["QUERY_PARAMS"] = "queryParams";
|
|
980
|
-
AutomationCustomIOType2["QUERY_LIMIT"] = "queryLimit";
|
|
981
|
-
AutomationCustomIOType2["LOOP_OPTION"] = "loopOption";
|
|
982
|
-
AutomationCustomIOType2["ITEM"] = "item";
|
|
983
|
-
AutomationCustomIOType2["CODE"] = "code";
|
|
984
|
-
AutomationCustomIOType2["FILTERS"] = "filters";
|
|
985
|
-
AutomationCustomIOType2["COLUMN"] = "column";
|
|
986
|
-
AutomationCustomIOType2["TRIGGER_SCHEMA"] = "triggerSchema";
|
|
987
|
-
AutomationCustomIOType2["CRON"] = "cron";
|
|
988
|
-
AutomationCustomIOType2["WEBHOOK_URL"] = "webhookUrl";
|
|
989
|
-
AutomationCustomIOType2["AUTOMATION"] = "automation";
|
|
990
|
-
AutomationCustomIOType2["AUTOMATION_FIELDS"] = "automationFields";
|
|
991
|
-
AutomationCustomIOType2["MULTI_ATTACHMENTS"] = "multi_attachments";
|
|
992
|
-
AutomationCustomIOType2["TRIGGER_FILTER"] = "trigger_filter";
|
|
993
|
-
return AutomationCustomIOType2;
|
|
994
|
-
})(AutomationCustomIOType || {});
|
|
995
|
-
var AutomationTriggerStepId = /* @__PURE__ */ ((AutomationTriggerStepId2) => {
|
|
996
|
-
AutomationTriggerStepId2["ROW_SAVED"] = "ROW_SAVED";
|
|
997
|
-
AutomationTriggerStepId2["ROW_UPDATED"] = "ROW_UPDATED";
|
|
998
|
-
AutomationTriggerStepId2["ROW_DELETED"] = "ROW_DELETED";
|
|
999
|
-
AutomationTriggerStepId2["WEBHOOK"] = "WEBHOOK";
|
|
1000
|
-
AutomationTriggerStepId2["APP"] = "APP";
|
|
1001
|
-
AutomationTriggerStepId2["CRON"] = "CRON";
|
|
1002
|
-
AutomationTriggerStepId2["ROW_ACTION"] = "ROW_ACTION";
|
|
1003
|
-
return AutomationTriggerStepId2;
|
|
1004
|
-
})(AutomationTriggerStepId || {});
|
|
1005
|
-
var AutomationStepType = /* @__PURE__ */ ((AutomationStepType2) => {
|
|
1006
|
-
AutomationStepType2["LOGIC"] = "LOGIC";
|
|
1007
|
-
AutomationStepType2["ACTION"] = "ACTION";
|
|
1008
|
-
AutomationStepType2["TRIGGER"] = "TRIGGER";
|
|
1009
|
-
return AutomationStepType2;
|
|
1010
|
-
})(AutomationStepType || {});
|
|
1011
|
-
var AutomationActionStepId = /* @__PURE__ */ ((AutomationActionStepId2) => {
|
|
1012
|
-
AutomationActionStepId2["SEND_EMAIL_SMTP"] = "SEND_EMAIL_SMTP";
|
|
1013
|
-
AutomationActionStepId2["CREATE_ROW"] = "CREATE_ROW";
|
|
1014
|
-
AutomationActionStepId2["UPDATE_ROW"] = "UPDATE_ROW";
|
|
1015
|
-
AutomationActionStepId2["DELETE_ROW"] = "DELETE_ROW";
|
|
1016
|
-
AutomationActionStepId2["EXECUTE_BASH"] = "EXECUTE_BASH";
|
|
1017
|
-
AutomationActionStepId2["OUTGOING_WEBHOOK"] = "OUTGOING_WEBHOOK";
|
|
1018
|
-
AutomationActionStepId2["EXECUTE_SCRIPT"] = "EXECUTE_SCRIPT";
|
|
1019
|
-
AutomationActionStepId2["EXECUTE_QUERY"] = "EXECUTE_QUERY";
|
|
1020
|
-
AutomationActionStepId2["SERVER_LOG"] = "SERVER_LOG";
|
|
1021
|
-
AutomationActionStepId2["DELAY"] = "DELAY";
|
|
1022
|
-
AutomationActionStepId2["FILTER"] = "FILTER";
|
|
1023
|
-
AutomationActionStepId2["QUERY_ROWS"] = "QUERY_ROWS";
|
|
1024
|
-
AutomationActionStepId2["LOOP"] = "LOOP";
|
|
1025
|
-
AutomationActionStepId2["COLLECT"] = "COLLECT";
|
|
1026
|
-
AutomationActionStepId2["OPENAI"] = "OPENAI";
|
|
1027
|
-
AutomationActionStepId2["TRIGGER_AUTOMATION_RUN"] = "TRIGGER_AUTOMATION_RUN";
|
|
1028
|
-
AutomationActionStepId2["BRANCH"] = "BRANCH";
|
|
1029
|
-
AutomationActionStepId2["discord"] = "discord";
|
|
1030
|
-
AutomationActionStepId2["slack"] = "slack";
|
|
1031
|
-
AutomationActionStepId2["zapier"] = "zapier";
|
|
1032
|
-
AutomationActionStepId2["integromat"] = "integromat";
|
|
1033
|
-
AutomationActionStepId2["n8n"] = "n8n";
|
|
1034
|
-
return AutomationActionStepId2;
|
|
1035
|
-
})(AutomationActionStepId || {});
|
|
1036
|
-
var AutomationStepIdArray = [
|
|
1037
|
-
...Object.values(AutomationActionStepId),
|
|
1038
|
-
...Object.values(AutomationTriggerStepId)
|
|
1039
|
-
];
|
|
1040
|
-
var AutomationFeature = /* @__PURE__ */ ((AutomationFeature2) => {
|
|
1041
|
-
AutomationFeature2["LOOPING"] = "LOOPING";
|
|
1042
|
-
return AutomationFeature2;
|
|
1043
|
-
})(AutomationFeature || {});
|
|
1044
|
-
var AutomationStepStatus = /* @__PURE__ */ ((AutomationStepStatus2) => {
|
|
1045
|
-
AutomationStepStatus2["NO_ITERATIONS"] = "no_iterations";
|
|
1046
|
-
AutomationStepStatus2["MAX_ITERATIONS"] = "max_iterations_reached";
|
|
1047
|
-
return AutomationStepStatus2;
|
|
1048
|
-
})(AutomationStepStatus || {});
|
|
1049
|
-
var AutomationStatus = /* @__PURE__ */ ((AutomationStatus2) => {
|
|
1050
|
-
AutomationStatus2["SUCCESS"] = "success";
|
|
1051
|
-
AutomationStatus2["ERROR"] = "error";
|
|
1052
|
-
AutomationStatus2["STOPPED"] = "stopped";
|
|
1053
|
-
AutomationStatus2["STOPPED_ERROR"] = "stopped_error";
|
|
1054
|
-
AutomationStatus2["NO_CONDITION_MET"] = "No branch condition met";
|
|
1055
|
-
return AutomationStatus2;
|
|
1056
|
-
})(AutomationStatus || {});
|
|
1057
|
-
var AutomationStoppedReason = /* @__PURE__ */ ((AutomationStoppedReason2) => {
|
|
1058
|
-
AutomationStoppedReason2["TRIGGER_FILTER_NOT_MET"] = "Automation did not run. Filter conditions in trigger were not met.";
|
|
1059
|
-
return AutomationStoppedReason2;
|
|
1060
|
-
})(AutomationStoppedReason || {});
|
|
1061
|
-
var AutomationEventType = /* @__PURE__ */ ((AutomationEventType2) => {
|
|
1062
|
-
AutomationEventType2["ROW_SAVE"] = "row:save";
|
|
1063
|
-
AutomationEventType2["ROW_UPDATE"] = "row:update";
|
|
1064
|
-
AutomationEventType2["ROW_DELETE"] = "row:delete";
|
|
1065
|
-
AutomationEventType2["APP_TRIGGER"] = "app:trigger";
|
|
1066
|
-
AutomationEventType2["CRON_TRIGGER"] = "cron:trigger";
|
|
1067
|
-
AutomationEventType2["WEBHOOK_TRIGGER"] = "web:trigger";
|
|
1068
|
-
AutomationEventType2["ROW_ACTION"] = "row:action";
|
|
1069
|
-
return AutomationEventType2;
|
|
1070
|
-
})(AutomationEventType || {});
|
|
1071
|
-
var LoopStepType = /* @__PURE__ */ ((LoopStepType2) => {
|
|
1072
|
-
LoopStepType2["ARRAY"] = "Array";
|
|
1073
|
-
LoopStepType2["STRING"] = "String";
|
|
1074
|
-
return LoopStepType2;
|
|
1075
|
-
})(LoopStepType || {});
|
|
1076
|
-
|
|
1077
|
-
// src/documents/app/automation/StepInputsOutputs.ts
|
|
1078
|
-
var Model = /* @__PURE__ */ ((Model2) => {
|
|
1079
|
-
Model2["GPT_35_TURBO"] = "gpt-3.5-turbo";
|
|
1080
|
-
Model2["GPT_4"] = "gpt-4";
|
|
1081
|
-
Model2["GPT_4O"] = "gpt-4o";
|
|
1082
|
-
Model2["GPT_4O_MINI"] = "gpt-4o-mini";
|
|
1083
|
-
return Model2;
|
|
1084
|
-
})(Model || {});
|
|
1085
|
-
|
|
1086
|
-
// src/documents/app/datasource.ts
|
|
1087
|
-
var RestAuthType = /* @__PURE__ */ ((RestAuthType2) => {
|
|
1088
|
-
RestAuthType2["BASIC"] = "basic";
|
|
1089
|
-
RestAuthType2["BEARER"] = "bearer";
|
|
1090
|
-
return RestAuthType2;
|
|
1091
|
-
})(RestAuthType || {});
|
|
1092
|
-
|
|
1093
|
-
// src/documents/app/query.ts
|
|
1094
|
-
var BodyType = /* @__PURE__ */ ((BodyType2) => {
|
|
1095
|
-
BodyType2["NONE"] = "none";
|
|
1096
|
-
BodyType2["FORM_DATA"] = "form";
|
|
1097
|
-
BodyType2["XML"] = "xml";
|
|
1098
|
-
BodyType2["ENCODED"] = "encoded";
|
|
1099
|
-
BodyType2["JSON"] = "json";
|
|
1100
|
-
BodyType2["TEXT"] = "text";
|
|
1101
|
-
return BodyType2;
|
|
1102
|
-
})(BodyType || {});
|
|
1103
|
-
var HttpMethod = /* @__PURE__ */ ((HttpMethod2) => {
|
|
1104
|
-
HttpMethod2["GET"] = "GET";
|
|
1105
|
-
HttpMethod2["POST"] = "POST";
|
|
1106
|
-
HttpMethod2["PATCH"] = "PATCH";
|
|
1107
|
-
HttpMethod2["PUT"] = "PUT";
|
|
1108
|
-
HttpMethod2["HEAD"] = "HEAD";
|
|
1109
|
-
HttpMethod2["DELETE"] = "DELETE";
|
|
1110
|
-
return HttpMethod2;
|
|
1111
|
-
})(HttpMethod || {});
|
|
1112
|
-
|
|
1113
|
-
// src/documents/app/table/table.ts
|
|
1114
|
-
var INTERNAL_TABLE_SOURCE_ID = "bb_internal";
|
|
1115
|
-
var TableSourceType = /* @__PURE__ */ ((TableSourceType2) => {
|
|
1116
|
-
TableSourceType2["EXTERNAL"] = "external";
|
|
1117
|
-
TableSourceType2["INTERNAL"] = "internal";
|
|
1118
|
-
return TableSourceType2;
|
|
1119
|
-
})(TableSourceType || {});
|
|
1120
|
-
|
|
1121
|
-
// src/documents/app/row.ts
|
|
1122
|
-
var FieldType = /* @__PURE__ */ ((FieldType2) => {
|
|
1123
|
-
FieldType2["STRING"] = "string";
|
|
1124
|
-
FieldType2["LONGFORM"] = "longform";
|
|
1125
|
-
FieldType2["OPTIONS"] = "options";
|
|
1126
|
-
FieldType2["NUMBER"] = "number";
|
|
1127
|
-
FieldType2["BOOLEAN"] = "boolean";
|
|
1128
|
-
FieldType2["ARRAY"] = "array";
|
|
1129
|
-
FieldType2["DATETIME"] = "datetime";
|
|
1130
|
-
FieldType2["ATTACHMENTS"] = "attachment";
|
|
1131
|
-
FieldType2["ATTACHMENT_SINGLE"] = "attachment_single";
|
|
1132
|
-
FieldType2["LINK"] = "link";
|
|
1133
|
-
FieldType2["FORMULA"] = "formula";
|
|
1134
|
-
FieldType2["AUTO"] = "auto";
|
|
1135
|
-
FieldType2["AI"] = "ai";
|
|
1136
|
-
FieldType2["JSON"] = "json";
|
|
1137
|
-
FieldType2["INTERNAL"] = "internal";
|
|
1138
|
-
FieldType2["BARCODEQR"] = "barcodeqr";
|
|
1139
|
-
FieldType2["SIGNATURE_SINGLE"] = "signature_single";
|
|
1140
|
-
FieldType2["BIGINT"] = "bigint";
|
|
1141
|
-
FieldType2["BB_REFERENCE"] = "bb_reference";
|
|
1142
|
-
FieldType2["BB_REFERENCE_SINGLE"] = "bb_reference_single";
|
|
1143
|
-
return FieldType2;
|
|
1144
|
-
})(FieldType || {});
|
|
1145
|
-
var JsonTypes = [
|
|
1146
|
-
"attachment_single" /* ATTACHMENT_SINGLE */,
|
|
1147
|
-
"attachment" /* ATTACHMENTS */,
|
|
1148
|
-
// only BB_REFERENCE is JSON, it's an array, BB_REFERENCE_SINGLE is a string type
|
|
1149
|
-
"bb_reference" /* BB_REFERENCE */,
|
|
1150
|
-
"json" /* JSON */,
|
|
1151
|
-
"array" /* ARRAY */
|
|
1152
|
-
];
|
|
1153
|
-
var NumericTypes = ["number" /* NUMBER */, "bigint" /* BIGINT */];
|
|
1154
|
-
function isNumeric(type) {
|
|
1155
|
-
return NumericTypes.includes(type);
|
|
1156
|
-
}
|
|
1157
|
-
var GroupByTypes = [
|
|
1158
|
-
"string" /* STRING */,
|
|
1159
|
-
"longform" /* LONGFORM */,
|
|
1160
|
-
"options" /* OPTIONS */,
|
|
1161
|
-
"number" /* NUMBER */,
|
|
1162
|
-
"boolean" /* BOOLEAN */,
|
|
1163
|
-
"datetime" /* DATETIME */,
|
|
1164
|
-
"bigint" /* BIGINT */,
|
|
1165
|
-
"ai" /* AI */
|
|
1166
|
-
];
|
|
1167
|
-
function canGroupBy(type) {
|
|
1168
|
-
return GroupByTypes.includes(type);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
// src/documents/app/table/constants.ts
|
|
1172
|
-
var RelationshipType = /* @__PURE__ */ ((RelationshipType2) => {
|
|
1173
|
-
RelationshipType2["ONE_TO_MANY"] = "one-to-many";
|
|
1174
|
-
RelationshipType2["MANY_TO_ONE"] = "many-to-one";
|
|
1175
|
-
RelationshipType2["MANY_TO_MANY"] = "many-to-many";
|
|
1176
|
-
return RelationshipType2;
|
|
1177
|
-
})(RelationshipType || {});
|
|
1178
|
-
var AutoReason = /* @__PURE__ */ ((AutoReason3) => {
|
|
1179
|
-
AutoReason3["FOREIGN_KEY"] = "foreign_key";
|
|
1180
|
-
return AutoReason3;
|
|
1181
|
-
})(AutoReason || {});
|
|
1182
|
-
var AutoFieldSubType = /* @__PURE__ */ ((AutoFieldSubType3) => {
|
|
1183
|
-
AutoFieldSubType3["CREATED_BY"] = "createdBy";
|
|
1184
|
-
AutoFieldSubType3["CREATED_AT"] = "createdAt";
|
|
1185
|
-
AutoFieldSubType3["UPDATED_BY"] = "updatedBy";
|
|
1186
|
-
AutoFieldSubType3["UPDATED_AT"] = "updatedAt";
|
|
1187
|
-
AutoFieldSubType3["AUTO_ID"] = "autoID";
|
|
1188
|
-
return AutoFieldSubType3;
|
|
1189
|
-
})(AutoFieldSubType || {});
|
|
1190
|
-
var JsonFieldSubType = /* @__PURE__ */ ((JsonFieldSubType3) => {
|
|
1191
|
-
JsonFieldSubType3["ARRAY"] = "array";
|
|
1192
|
-
return JsonFieldSubType3;
|
|
1193
|
-
})(JsonFieldSubType || {});
|
|
1194
|
-
var FormulaType = /* @__PURE__ */ ((FormulaType3) => {
|
|
1195
|
-
FormulaType3["STATIC"] = "static";
|
|
1196
|
-
FormulaType3["DYNAMIC"] = "dynamic";
|
|
1197
|
-
FormulaType3["AI"] = "ai";
|
|
1198
|
-
return FormulaType3;
|
|
1199
|
-
})(FormulaType || {});
|
|
1200
|
-
var BBReferenceFieldSubType = /* @__PURE__ */ ((BBReferenceFieldSubType3) => {
|
|
1201
|
-
BBReferenceFieldSubType3["USER"] = "user";
|
|
1202
|
-
BBReferenceFieldSubType3["USERS"] = "users";
|
|
1203
|
-
return BBReferenceFieldSubType3;
|
|
1204
|
-
})(BBReferenceFieldSubType || {});
|
|
1205
|
-
|
|
1206
|
-
// src/documents/app/table/schema.ts
|
|
1207
|
-
function isRelationshipField(field) {
|
|
1208
|
-
return field.type === "link" /* LINK */;
|
|
1209
|
-
}
|
|
1210
|
-
function isManyToMany(field) {
|
|
1211
|
-
return field.relationshipType === "many-to-many" /* MANY_TO_MANY */;
|
|
1212
|
-
}
|
|
1213
|
-
function isOneToMany(field) {
|
|
1214
|
-
return field.relationshipType === "one-to-many" /* ONE_TO_MANY */;
|
|
1215
|
-
}
|
|
1216
|
-
function isManyToOne(field) {
|
|
1217
|
-
return field.relationshipType === "many-to-one" /* MANY_TO_ONE */;
|
|
1218
|
-
}
|
|
1219
|
-
|
|
1220
|
-
// src/documents/app/view.ts
|
|
1221
|
-
var CalculationType = /* @__PURE__ */ ((CalculationType2) => {
|
|
1222
|
-
CalculationType2["SUM"] = "sum";
|
|
1223
|
-
CalculationType2["AVG"] = "avg";
|
|
1224
|
-
CalculationType2["COUNT"] = "count";
|
|
1225
|
-
CalculationType2["MIN"] = "min";
|
|
1226
|
-
CalculationType2["MAX"] = "max";
|
|
1227
|
-
return CalculationType2;
|
|
1228
|
-
})(CalculationType || {});
|
|
1229
|
-
var ViewV2Type = /* @__PURE__ */ ((ViewV2Type2) => {
|
|
1230
|
-
ViewV2Type2["CALCULATION"] = "calculation";
|
|
1231
|
-
return ViewV2Type2;
|
|
1232
|
-
})(ViewV2Type || {});
|
|
1233
|
-
var ViewCalculation = /* @__PURE__ */ ((ViewCalculation2) => {
|
|
1234
|
-
ViewCalculation2["SUM"] = "sum";
|
|
1235
|
-
ViewCalculation2["COUNT"] = "count";
|
|
1236
|
-
ViewCalculation2["STATISTICS"] = "stats";
|
|
1237
|
-
return ViewCalculation2;
|
|
1238
|
-
})(ViewCalculation || {});
|
|
1239
|
-
|
|
1240
|
-
// src/documents/document.ts
|
|
1241
|
-
var SEPARATOR = "_";
|
|
1242
|
-
var UNICODE_MAX = "\uFFF0";
|
|
1243
|
-
var prefixed = (type) => `${type}${SEPARATOR}`;
|
|
1244
|
-
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
1245
|
-
DocumentType2["USER"] = "us";
|
|
1246
|
-
DocumentType2["GROUP"] = "gr";
|
|
1247
|
-
DocumentType2["WORKSPACE"] = "workspace";
|
|
1248
|
-
DocumentType2["CONFIG"] = "config";
|
|
1249
|
-
DocumentType2["TEMPLATE"] = "template";
|
|
1250
|
-
DocumentType2["APP"] = "app";
|
|
1251
|
-
DocumentType2["DEV"] = "dev";
|
|
1252
|
-
DocumentType2["APP_DEV"] = "app_dev";
|
|
1253
|
-
DocumentType2["APP_METADATA"] = "app_metadata";
|
|
1254
|
-
DocumentType2["ROLE"] = "role";
|
|
1255
|
-
DocumentType2["MIGRATIONS"] = "migrations";
|
|
1256
|
-
DocumentType2["DEV_INFO"] = "devinfo";
|
|
1257
|
-
DocumentType2["AUTOMATION_LOG"] = "log_au";
|
|
1258
|
-
DocumentType2["ACCOUNT_METADATA"] = "acc_metadata";
|
|
1259
|
-
DocumentType2["PLUGIN"] = "plg";
|
|
1260
|
-
DocumentType2["DATASOURCE"] = "datasource";
|
|
1261
|
-
DocumentType2["DATASOURCE_PLUS"] = "datasource_plus";
|
|
1262
|
-
DocumentType2["APP_BACKUP"] = "backup";
|
|
1263
|
-
DocumentType2["TABLE"] = "ta";
|
|
1264
|
-
DocumentType2["ROW"] = "ro";
|
|
1265
|
-
DocumentType2["AUTOMATION"] = "au";
|
|
1266
|
-
DocumentType2["LINK"] = "li";
|
|
1267
|
-
DocumentType2["WEBHOOK"] = "wh";
|
|
1268
|
-
DocumentType2["INSTANCE"] = "inst";
|
|
1269
|
-
DocumentType2["LAYOUT"] = "layout";
|
|
1270
|
-
DocumentType2["SCREEN"] = "screen";
|
|
1271
|
-
DocumentType2["QUERY"] = "query";
|
|
1272
|
-
DocumentType2["DEPLOYMENTS"] = "deployments";
|
|
1273
|
-
DocumentType2["METADATA"] = "metadata";
|
|
1274
|
-
DocumentType2["MEM_VIEW"] = "view";
|
|
1275
|
-
DocumentType2["USER_FLAG"] = "flag";
|
|
1276
|
-
DocumentType2["AUTOMATION_METADATA"] = "meta_au";
|
|
1277
|
-
DocumentType2["AUDIT_LOG"] = "al";
|
|
1278
|
-
DocumentType2["APP_MIGRATION_METADATA"] = "_design/migrations";
|
|
1279
|
-
DocumentType2["SCIM_LOG"] = "scimlog";
|
|
1280
|
-
DocumentType2["ROW_ACTIONS"] = "ra";
|
|
1281
|
-
return DocumentType2;
|
|
1282
|
-
})(DocumentType || {});
|
|
1283
|
-
var sortedDocumentTypes = Object.values(DocumentType).sort(
|
|
1284
|
-
(a, b) => b.length - a.length
|
|
1285
|
-
// descending
|
|
1286
|
-
);
|
|
1287
|
-
function getDocumentType(id) {
|
|
1288
|
-
return sortedDocumentTypes.find(
|
|
1289
|
-
(docType) => id.startsWith(`${docType}${SEPARATOR}`)
|
|
1290
|
-
);
|
|
1291
|
-
}
|
|
1292
|
-
var DocumentTypesToImport = [
|
|
1293
|
-
"role" /* ROLE */,
|
|
1294
|
-
"datasource" /* DATASOURCE */,
|
|
1295
|
-
"datasource_plus" /* DATASOURCE_PLUS */,
|
|
1296
|
-
"ta" /* TABLE */,
|
|
1297
|
-
"au" /* AUTOMATION */,
|
|
1298
|
-
"wh" /* WEBHOOK */,
|
|
1299
|
-
"screen" /* SCREEN */,
|
|
1300
|
-
"query" /* QUERY */,
|
|
1301
|
-
"metadata" /* METADATA */,
|
|
1302
|
-
"view" /* MEM_VIEW */,
|
|
1303
|
-
// Deprecated but still copied
|
|
1304
|
-
"inst" /* INSTANCE */,
|
|
1305
|
-
"layout" /* LAYOUT */
|
|
1306
|
-
];
|
|
1307
|
-
var InternalTable = /* @__PURE__ */ ((InternalTable2) => {
|
|
1308
|
-
InternalTable2["USER_METADATA"] = "ta_users";
|
|
1309
|
-
return InternalTable2;
|
|
1310
|
-
})(InternalTable || {});
|
|
1311
|
-
var VirtualDocumentType = /* @__PURE__ */ ((VirtualDocumentType2) => {
|
|
1312
|
-
VirtualDocumentType2["VIEW"] = "view";
|
|
1313
|
-
VirtualDocumentType2["ROW_ACTION"] = "row_action";
|
|
1314
|
-
return VirtualDocumentType2;
|
|
1315
|
-
})(VirtualDocumentType || {});
|
|
1316
|
-
var sortedVirtualDocumentTypes = Object.values(VirtualDocumentType).sort(
|
|
1317
|
-
(a, b) => b.length - a.length
|
|
1318
|
-
// descending
|
|
1319
|
-
);
|
|
1320
|
-
function getVirtualDocumentType(id) {
|
|
1321
|
-
return sortedVirtualDocumentTypes.find(
|
|
1322
|
-
(docType) => id.startsWith(`${docType}${SEPARATOR}`)
|
|
1323
|
-
);
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
// src/documents/app/backup.ts
|
|
1327
|
-
var AppBackupType = /* @__PURE__ */ ((AppBackupType2) => {
|
|
1328
|
-
AppBackupType2["BACKUP"] = "backup";
|
|
1329
|
-
AppBackupType2["RESTORE"] = "restore";
|
|
1330
|
-
return AppBackupType2;
|
|
1331
|
-
})(AppBackupType || {});
|
|
1332
|
-
var AppBackupStatus = /* @__PURE__ */ ((AppBackupStatus2) => {
|
|
1333
|
-
AppBackupStatus2["STARTED"] = "started";
|
|
1334
|
-
AppBackupStatus2["PENDING"] = "pending";
|
|
1335
|
-
AppBackupStatus2["COMPLETE"] = "complete";
|
|
1336
|
-
AppBackupStatus2["FAILED"] = "failed";
|
|
1337
|
-
return AppBackupStatus2;
|
|
1338
|
-
})(AppBackupStatus || {});
|
|
1339
|
-
var AppBackupTrigger = /* @__PURE__ */ ((AppBackupTrigger2) => {
|
|
1340
|
-
AppBackupTrigger2["PUBLISH"] = "publish";
|
|
1341
|
-
AppBackupTrigger2["MANUAL"] = "manual";
|
|
1342
|
-
AppBackupTrigger2["SCHEDULED"] = "scheduled";
|
|
1343
|
-
AppBackupTrigger2["RESTORING"] = "restoring";
|
|
1344
|
-
return AppBackupTrigger2;
|
|
1345
|
-
})(AppBackupTrigger || {});
|
|
1346
|
-
|
|
1347
|
-
// src/documents/app/webhook.ts
|
|
1348
|
-
var WebhookActionType = /* @__PURE__ */ ((WebhookActionType2) => {
|
|
1349
|
-
WebhookActionType2["AUTOMATION"] = "automation";
|
|
1350
|
-
return WebhookActionType2;
|
|
1351
|
-
})(WebhookActionType || {});
|
|
1352
|
-
|
|
1353
|
-
// src/documents/app/sqlite.ts
|
|
1354
|
-
var SQLiteType = /* @__PURE__ */ ((SQLiteType2) => {
|
|
1355
|
-
SQLiteType2["REAL"] = "REAL";
|
|
1356
|
-
SQLiteType2["TEXT"] = "VARCHAR";
|
|
1357
|
-
SQLiteType2["INT"] = "INTEGER";
|
|
1358
|
-
SQLiteType2["BLOB"] = "BLOB";
|
|
1359
|
-
SQLiteType2["NUMERIC"] = "NUMERIC";
|
|
1360
|
-
return SQLiteType2;
|
|
1361
|
-
})(SQLiteType || {});
|
|
1362
|
-
|
|
1363
|
-
// src/documents/app/theme.ts
|
|
1364
|
-
var Theme = /* @__PURE__ */ ((Theme2) => {
|
|
1365
|
-
Theme2["LIGHTEST"] = "lightest";
|
|
1366
|
-
Theme2["LIGHT"] = "light";
|
|
1367
|
-
Theme2["DARK"] = "dark";
|
|
1368
|
-
Theme2["DARKEST"] = "darkest";
|
|
1369
|
-
Theme2["NORD"] = "nord";
|
|
1370
|
-
Theme2["MIDNIGHT"] = "midnight";
|
|
1371
|
-
return Theme2;
|
|
1372
|
-
})(Theme || {});
|
|
1373
|
-
|
|
1374
|
-
// src/documents/app/deployment.ts
|
|
1375
|
-
var DeploymentStatus = /* @__PURE__ */ ((DeploymentStatus2) => {
|
|
1376
|
-
DeploymentStatus2["SUCCESS"] = "SUCCESS";
|
|
1377
|
-
DeploymentStatus2["PENDING"] = "PENDING";
|
|
1378
|
-
DeploymentStatus2["FAILURE"] = "FAILURE";
|
|
1379
|
-
return DeploymentStatus2;
|
|
1380
|
-
})(DeploymentStatus || {});
|
|
1381
|
-
|
|
1382
|
-
// src/documents/app/metadata.ts
|
|
1383
|
-
var MetadataType = /* @__PURE__ */ ((MetadataType2) => {
|
|
1384
|
-
MetadataType2["AUTOMATION_TEST_INPUT"] = "automationTestInput";
|
|
1385
|
-
MetadataType2["AUTOMATION_TEST_HISTORY"] = "automationTestHistory";
|
|
1386
|
-
return MetadataType2;
|
|
1387
|
-
})(MetadataType || {});
|
|
1388
|
-
|
|
1389
|
-
// src/documents/global/config.ts
|
|
1390
|
-
var isConfig = (config) => "type" in config && "config" in config;
|
|
1391
|
-
var isSettingsConfig = (config) => config.type === "settings" /* SETTINGS */;
|
|
1392
|
-
var isSMTPConfig = (config) => config.type === "smtp" /* SMTP */;
|
|
1393
|
-
var isGoogleConfig = (config) => config.type === "google" /* GOOGLE */;
|
|
1394
|
-
var isOIDCConfig = (config) => config.type === "oidc" /* OIDC */;
|
|
1395
|
-
var isSCIMConfig = (config) => config.type === "scim" /* SCIM */;
|
|
1396
|
-
var isAIConfig = (config) => config.type === "ai" /* AI */;
|
|
1397
|
-
var ConfigType = /* @__PURE__ */ ((ConfigType2) => {
|
|
1398
|
-
ConfigType2["SETTINGS"] = "settings";
|
|
1399
|
-
ConfigType2["ACCOUNT"] = "account";
|
|
1400
|
-
ConfigType2["SMTP"] = "smtp";
|
|
1401
|
-
ConfigType2["GOOGLE"] = "google";
|
|
1402
|
-
ConfigType2["OIDC"] = "oidc";
|
|
1403
|
-
ConfigType2["OIDC_LOGOS"] = "logos_oidc";
|
|
1404
|
-
ConfigType2["SCIM"] = "scim";
|
|
1405
|
-
ConfigType2["AI"] = "ai";
|
|
1406
|
-
return ConfigType2;
|
|
1407
|
-
})(ConfigType || {});
|
|
1408
|
-
|
|
1409
|
-
// src/documents/global/user.ts
|
|
1410
|
-
var SSOProviderType = /* @__PURE__ */ ((SSOProviderType2) => {
|
|
1411
|
-
SSOProviderType2["OIDC"] = "oidc";
|
|
1412
|
-
SSOProviderType2["GOOGLE"] = "google";
|
|
1413
|
-
return SSOProviderType2;
|
|
1414
|
-
})(SSOProviderType || {});
|
|
1415
|
-
function isSSOUser(user) {
|
|
1416
|
-
return !!user.providerType;
|
|
1417
|
-
}
|
|
1418
|
-
var UserStatus = /* @__PURE__ */ ((UserStatus2) => {
|
|
1419
|
-
UserStatus2["ACTIVE"] = "active";
|
|
1420
|
-
UserStatus2["INACTIVE"] = "inactive";
|
|
1421
|
-
return UserStatus2;
|
|
1422
|
-
})(UserStatus || {});
|
|
1423
|
-
function isUser(user) {
|
|
1424
|
-
return !!user.roles;
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
// src/documents/global/plugin.ts
|
|
1428
|
-
var PluginType = /* @__PURE__ */ ((PluginType2) => {
|
|
1429
|
-
PluginType2["DATASOURCE"] = "datasource";
|
|
1430
|
-
PluginType2["COMPONENT"] = "component";
|
|
1431
|
-
PluginType2["AUTOMATION"] = "automation";
|
|
1432
|
-
return PluginType2;
|
|
1433
|
-
})(PluginType || {});
|
|
1434
|
-
var PluginSource = /* @__PURE__ */ ((PluginSource2) => {
|
|
1435
|
-
PluginSource2["NPM"] = "NPM";
|
|
1436
|
-
PluginSource2["GITHUB"] = "Github";
|
|
1437
|
-
PluginSource2["URL"] = "URL";
|
|
1438
|
-
PluginSource2["FILE"] = "File Upload";
|
|
1439
|
-
return PluginSource2;
|
|
1440
|
-
})(PluginSource || {});
|
|
1441
|
-
var PLUGIN_TYPE_ARR = Object.values(PluginType);
|
|
1442
|
-
|
|
1443
|
-
// src/documents/global/quotas.ts
|
|
1444
|
-
var BreakdownQuotaName = /* @__PURE__ */ ((BreakdownQuotaName2) => {
|
|
1445
|
-
BreakdownQuotaName2["ROW_QUERIES"] = "rowQueries";
|
|
1446
|
-
BreakdownQuotaName2["DATASOURCE_QUERIES"] = "datasourceQueries";
|
|
1447
|
-
BreakdownQuotaName2["AUTOMATIONS"] = "automations";
|
|
1448
|
-
return BreakdownQuotaName2;
|
|
1449
|
-
})(BreakdownQuotaName || {});
|
|
1450
|
-
var APP_QUOTA_NAMES = [
|
|
1451
|
-
"rows" /* ROWS */,
|
|
1452
|
-
"queries" /* QUERIES */,
|
|
1453
|
-
"automations" /* AUTOMATIONS */
|
|
1454
|
-
];
|
|
1455
|
-
var BREAKDOWN_QUOTA_NAMES = [
|
|
1456
|
-
"queries" /* QUERIES */,
|
|
1457
|
-
"automations" /* AUTOMATIONS */
|
|
1458
|
-
];
|
|
1459
|
-
|
|
1460
|
-
// src/documents/global/schedule.ts
|
|
1461
|
-
var ScheduleType = /* @__PURE__ */ ((ScheduleType2) => {
|
|
1462
|
-
ScheduleType2["APP_BACKUP"] = "app_backup";
|
|
1463
|
-
return ScheduleType2;
|
|
1464
|
-
})(ScheduleType || {});
|
|
1465
|
-
var ScheduleRepeatPeriod = /* @__PURE__ */ ((ScheduleRepeatPeriod2) => {
|
|
1466
|
-
ScheduleRepeatPeriod2["DAILY"] = "daily";
|
|
1467
|
-
ScheduleRepeatPeriod2["WEEKLY"] = "weekly";
|
|
1468
|
-
ScheduleRepeatPeriod2["MONTHLY"] = "monthly";
|
|
1469
|
-
return ScheduleRepeatPeriod2;
|
|
1470
|
-
})(ScheduleRepeatPeriod || {});
|
|
1471
|
-
var isAppBackupMetadata = (type, metadata) => {
|
|
1472
|
-
return type === "app_backup" /* APP_BACKUP */;
|
|
1473
|
-
};
|
|
1474
|
-
|
|
1475
|
-
// src/documents/global/auditLogs.ts
|
|
1476
|
-
var AuditLogSystemUser = "SYSTEM";
|
|
1477
|
-
var AUDIT_LOG_TYPE = "auditLog";
|
|
1478
|
-
|
|
1479
|
-
// src/api/web/analytics.ts
|
|
1480
|
-
var PingSource = /* @__PURE__ */ ((PingSource2) => {
|
|
1481
|
-
PingSource2["BUILDER"] = "builder";
|
|
1482
|
-
PingSource2["APP"] = "app";
|
|
1483
|
-
return PingSource2;
|
|
1484
|
-
})(PingSource || {});
|
|
1485
|
-
|
|
1486
|
-
// src/api/web/pagination.ts
|
|
1487
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1488
|
-
SortOrder2["ASCENDING"] = "ascending";
|
|
1489
|
-
SortOrder2["DESCENDING"] = "descending";
|
|
1490
|
-
return SortOrder2;
|
|
1491
|
-
})(SortOrder || {});
|
|
1492
|
-
var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
1493
|
-
SortType2["STRING"] = "string";
|
|
1494
|
-
SortType2["NUMBER"] = "number";
|
|
1495
|
-
return SortType2;
|
|
1496
|
-
})(SortType || {});
|
|
1497
|
-
|
|
1498
|
-
// src/api/web/app/rows/search.ts
|
|
1499
|
-
var import_zod = require("zod");
|
|
1500
|
-
var fieldKey = import_zod.z.string().refine((s) => s !== "_complexIdOperator" /* COMPLEX_ID_OPERATOR */, {
|
|
1501
|
-
message: `Key '${"_complexIdOperator" /* COMPLEX_ID_OPERATOR */}' is not allowed`
|
|
1502
|
-
});
|
|
1503
|
-
var stringBasicFilter = import_zod.z.record(fieldKey, import_zod.z.string());
|
|
1504
|
-
var basicFilter = import_zod.z.record(fieldKey, import_zod.z.any());
|
|
1505
|
-
var arrayFilter = import_zod.z.record(fieldKey, import_zod.z.union([import_zod.z.any().array(), import_zod.z.string()]));
|
|
1506
|
-
var logicFilter = import_zod.z.lazy(
|
|
1507
|
-
() => import_zod.z.object({
|
|
1508
|
-
conditions: import_zod.z.array(import_zod.z.object(queryFilterValidation))
|
|
1509
|
-
})
|
|
1510
|
-
);
|
|
1511
|
-
var stringOrNumber = import_zod.z.union([import_zod.z.string(), import_zod.z.number()]);
|
|
1512
|
-
var queryFilterValidation = {
|
|
1513
|
-
["string" /* STRING */]: stringBasicFilter.optional(),
|
|
1514
|
-
["fuzzy" /* FUZZY */]: stringBasicFilter.optional(),
|
|
1515
|
-
["range" /* RANGE */]: import_zod.z.record(
|
|
1516
|
-
fieldKey,
|
|
1517
|
-
import_zod.z.union([
|
|
1518
|
-
import_zod.z.object({ high: stringOrNumber, low: stringOrNumber }),
|
|
1519
|
-
import_zod.z.object({ high: stringOrNumber }),
|
|
1520
|
-
import_zod.z.object({ low: stringOrNumber })
|
|
1521
|
-
])
|
|
1522
|
-
).optional(),
|
|
1523
|
-
["equal" /* EQUAL */]: basicFilter.optional(),
|
|
1524
|
-
["notEqual" /* NOT_EQUAL */]: basicFilter.optional(),
|
|
1525
|
-
["empty" /* EMPTY */]: basicFilter.optional(),
|
|
1526
|
-
["notEmpty" /* NOT_EMPTY */]: basicFilter.optional(),
|
|
1527
|
-
["oneOf" /* ONE_OF */]: arrayFilter.optional(),
|
|
1528
|
-
["contains" /* CONTAINS */]: arrayFilter.optional(),
|
|
1529
|
-
["notContains" /* NOT_CONTAINS */]: arrayFilter.optional(),
|
|
1530
|
-
["containsAny" /* CONTAINS_ANY */]: arrayFilter.optional(),
|
|
1531
|
-
["$and" /* AND */]: logicFilter.optional(),
|
|
1532
|
-
["$or" /* OR */]: logicFilter.optional()
|
|
1533
|
-
};
|
|
1534
|
-
var searchRowRequest = import_zod.z.object({
|
|
1535
|
-
query: import_zod.z.object({
|
|
1536
|
-
allOr: import_zod.z.boolean().optional(),
|
|
1537
|
-
onEmptyFilter: import_zod.z.nativeEnum(EmptyFilterOption).optional(),
|
|
1538
|
-
...queryFilterValidation
|
|
1539
|
-
}).optional(),
|
|
1540
|
-
paginate: import_zod.z.boolean().optional(),
|
|
1541
|
-
bookmark: import_zod.z.union([import_zod.z.string(), import_zod.z.number()]).nullish(),
|
|
1542
|
-
limit: import_zod.z.number().optional(),
|
|
1543
|
-
sort: import_zod.z.string().nullish(),
|
|
1544
|
-
sortOrder: import_zod.z.nativeEnum(SortOrder).optional(),
|
|
1545
|
-
sortType: import_zod.z.nativeEnum(SortType).nullish(),
|
|
1546
|
-
version: import_zod.z.string().optional(),
|
|
1547
|
-
disableEscaping: import_zod.z.boolean().optional(),
|
|
1548
|
-
countRows: import_zod.z.boolean().optional()
|
|
1549
|
-
});
|
|
1550
|
-
var searchRowRequestValidator = searchRowRequest;
|
|
1551
|
-
|
|
1552
|
-
// src/api/web/global/auditLogs.ts
|
|
1553
|
-
var AuditLogResourceStatus = /* @__PURE__ */ ((AuditLogResourceStatus2) => {
|
|
1554
|
-
AuditLogResourceStatus2["DELETED"] = "deleted";
|
|
1555
|
-
return AuditLogResourceStatus2;
|
|
1556
|
-
})(AuditLogResourceStatus || {});
|
|
1557
|
-
|
|
1558
|
-
// src/api/web/global/events.ts
|
|
1559
|
-
var EventPublishType = /* @__PURE__ */ ((EventPublishType2) => {
|
|
1560
|
-
EventPublishType2["ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED"] = "environment_variable_upgrade_panel_opened";
|
|
1561
|
-
return EventPublishType2;
|
|
1562
|
-
})(EventPublishType || {});
|
|
1563
|
-
|
|
1564
|
-
// src/api/web/global/email.ts
|
|
1565
|
-
var EmailTemplatePurpose = /* @__PURE__ */ ((EmailTemplatePurpose2) => {
|
|
1566
|
-
EmailTemplatePurpose2["CORE"] = "core";
|
|
1567
|
-
EmailTemplatePurpose2["BASE"] = "base";
|
|
1568
|
-
EmailTemplatePurpose2["PASSWORD_RECOVERY"] = "password_recovery";
|
|
1569
|
-
EmailTemplatePurpose2["INVITATION"] = "invitation";
|
|
1570
|
-
EmailTemplatePurpose2["WELCOME"] = "welcome";
|
|
1571
|
-
EmailTemplatePurpose2["CUSTOM"] = "custom";
|
|
1572
|
-
return EmailTemplatePurpose2;
|
|
1573
|
-
})(EmailTemplatePurpose || {});
|
|
1574
|
-
|
|
1575
|
-
// src/api/web/template.ts
|
|
1576
|
-
var TemplateType = /* @__PURE__ */ ((TemplateType2) => {
|
|
1577
|
-
TemplateType2["APP"] = "app";
|
|
1578
|
-
return TemplateType2;
|
|
1579
|
-
})(TemplateType || {});
|
|
1580
|
-
|
|
1581
|
-
// src/core/installation.ts
|
|
1582
|
-
var ServiceType = /* @__PURE__ */ ((ServiceType2) => {
|
|
1583
|
-
ServiceType2["WORKER"] = "worker";
|
|
1584
|
-
ServiceType2["APPS"] = "apps";
|
|
1585
|
-
return ServiceType2;
|
|
1586
|
-
})(ServiceType || {});
|
|
1587
|
-
var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
1588
|
-
MaintenanceType2["SQS_MISSING"] = "sqs_missing";
|
|
1589
|
-
return MaintenanceType2;
|
|
1590
|
-
})(MaintenanceType || {});
|
|
1591
|
-
|
|
1592
|
-
// src/core/events.ts
|
|
1593
|
-
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
1594
|
-
EventType2["ROW_SAVE"] = "row:save";
|
|
1595
|
-
EventType2["ROW_UPDATE"] = "row:update";
|
|
1596
|
-
EventType2["ROW_DELETE"] = "row:delete";
|
|
1597
|
-
EventType2["TABLE_SAVE"] = "table:save";
|
|
1598
|
-
EventType2["TABLE_UPDATED"] = "table:updated";
|
|
1599
|
-
EventType2["TABLE_DELETE"] = "table:delete";
|
|
1600
|
-
return EventType2;
|
|
1601
|
-
})(EventType || {});
|
|
1602
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1603
|
-
0 && (module.exports = {
|
|
1604
|
-
AIOperationEnum,
|
|
1605
|
-
APP_QUOTA_NAMES,
|
|
1606
|
-
AUDIT_LOG_TYPE,
|
|
1607
|
-
AccountSSOProvider,
|
|
1608
|
-
AccountSSOProviderType,
|
|
1609
|
-
AnalyticsEvent,
|
|
1610
|
-
AppBackupStatus,
|
|
1611
|
-
AppBackupTrigger,
|
|
1612
|
-
AppBackupType,
|
|
1613
|
-
AppEnvironment,
|
|
1614
|
-
ArrayOperator,
|
|
1615
|
-
AsyncEvents,
|
|
1616
|
-
AuditLogResourceStatus,
|
|
1617
|
-
AuditLogSystemUser,
|
|
1618
|
-
AuditedEventFriendlyName,
|
|
1619
|
-
AuthType,
|
|
1620
|
-
AutoFieldSubType,
|
|
1621
|
-
AutoReason,
|
|
1622
|
-
AutomationActionStepId,
|
|
1623
|
-
AutomationCustomIOType,
|
|
1624
|
-
AutomationEventType,
|
|
1625
|
-
AutomationFeature,
|
|
1626
|
-
AutomationIOType,
|
|
1627
|
-
AutomationStatus,
|
|
1628
|
-
AutomationStepIdArray,
|
|
1629
|
-
AutomationStepStatus,
|
|
1630
|
-
AutomationStepType,
|
|
1631
|
-
AutomationStoppedReason,
|
|
1632
|
-
AutomationTriggerStepId,
|
|
1633
|
-
BBReferenceFieldSubType,
|
|
1634
|
-
BREAKDOWN_QUOTA_NAMES,
|
|
1635
|
-
BasicOperator,
|
|
1636
|
-
BodyType,
|
|
1637
|
-
BreakdownQuotaName,
|
|
1638
|
-
BuiltinPermissionID,
|
|
1639
|
-
CalculationType,
|
|
1640
|
-
CommandWord,
|
|
1641
|
-
ConfigType,
|
|
1642
|
-
ConstantQuotaName,
|
|
1643
|
-
DSPlusOperation,
|
|
1644
|
-
DatasourceFeature,
|
|
1645
|
-
DatasourceFieldType,
|
|
1646
|
-
DeploymentStatus,
|
|
1647
|
-
DocumentType,
|
|
1648
|
-
DocumentTypesToImport,
|
|
1649
|
-
EmailTemplatePurpose,
|
|
1650
|
-
EmptyFilterOption,
|
|
1651
|
-
Event,
|
|
1652
|
-
EventPublishType,
|
|
1653
|
-
EventType,
|
|
1654
|
-
Feature,
|
|
1655
|
-
FeatureFlag,
|
|
1656
|
-
FeatureFlagDefaults,
|
|
1657
|
-
FieldType,
|
|
1658
|
-
FilterType,
|
|
1659
|
-
FormulaType,
|
|
1660
|
-
GroupByTypes,
|
|
1661
|
-
GroupType,
|
|
1662
|
-
Hosting,
|
|
1663
|
-
HttpMethod,
|
|
1664
|
-
INTERNAL_TABLE_SOURCE_ID,
|
|
1665
|
-
IdentityType,
|
|
1666
|
-
IncludeRelationship,
|
|
1667
|
-
InitType,
|
|
1668
|
-
InternalSearchFilterOperator,
|
|
1669
|
-
InternalTable,
|
|
1670
|
-
JsonFieldSubType,
|
|
1671
|
-
JsonTypes,
|
|
1672
|
-
LockName,
|
|
1673
|
-
LockType,
|
|
1674
|
-
LogicalOperator,
|
|
1675
|
-
LoginMethod,
|
|
1676
|
-
LoopStepType,
|
|
1677
|
-
MaintenanceType,
|
|
1678
|
-
MetadataType,
|
|
1679
|
-
MigrationName,
|
|
1680
|
-
MigrationType,
|
|
1681
|
-
Model,
|
|
1682
|
-
MonthlyQuotaName,
|
|
1683
|
-
NumericTypes,
|
|
1684
|
-
Operation,
|
|
1685
|
-
OperationFieldTypeEnum,
|
|
1686
|
-
PASSWORD_REPLACEMENT,
|
|
1687
|
-
PLUGIN_TYPE_ARR,
|
|
1688
|
-
PermissionLevel,
|
|
1689
|
-
PermissionSource,
|
|
1690
|
-
PermissionType,
|
|
1691
|
-
PingSource,
|
|
1692
|
-
PlanModel,
|
|
1693
|
-
PlanType,
|
|
1694
|
-
PluginSource,
|
|
1695
|
-
PluginType,
|
|
1696
|
-
PriceDuration,
|
|
1697
|
-
QueryType,
|
|
1698
|
-
QuotaType,
|
|
1699
|
-
QuotaUsageType,
|
|
1700
|
-
RangeOperator,
|
|
1701
|
-
RelationshipType,
|
|
1702
|
-
RestAuthType,
|
|
1703
|
-
RowExportFormat,
|
|
1704
|
-
RowOperations,
|
|
1705
|
-
SEPARATOR,
|
|
1706
|
-
SQLiteType,
|
|
1707
|
-
SSOProviderType,
|
|
1708
|
-
ScheduleRepeatPeriod,
|
|
1709
|
-
ScheduleType,
|
|
1710
|
-
SearchIndex,
|
|
1711
|
-
ServiceType,
|
|
1712
|
-
SortOption,
|
|
1713
|
-
SortOrder,
|
|
1714
|
-
SortType,
|
|
1715
|
-
SourceName,
|
|
1716
|
-
SqlClient,
|
|
1717
|
-
StaticQuotaName,
|
|
1718
|
-
TableSourceType,
|
|
1719
|
-
TemplateType,
|
|
1720
|
-
TenantResolutionStrategy,
|
|
1721
|
-
Theme,
|
|
1722
|
-
UILogicalOperator,
|
|
1723
|
-
UNICODE_MAX,
|
|
1724
|
-
UserGroupSyncEvents,
|
|
1725
|
-
UserStatus,
|
|
1726
|
-
ViewCalculation,
|
|
1727
|
-
ViewV2Type,
|
|
1728
|
-
VirtualDocumentType,
|
|
1729
|
-
WebhookActionType,
|
|
1730
|
-
canGroupBy,
|
|
1731
|
-
getDocumentType,
|
|
1732
|
-
getVirtualDocumentType,
|
|
1733
|
-
isAIConfig,
|
|
1734
|
-
isAppBackupMetadata,
|
|
1735
|
-
isArraySearchOperator,
|
|
1736
|
-
isBasicSearchOperator,
|
|
1737
|
-
isCloudAccount,
|
|
1738
|
-
isConfig,
|
|
1739
|
-
isConstantQuota,
|
|
1740
|
-
isCreatePasswordAccount,
|
|
1741
|
-
isDocument,
|
|
1742
|
-
isGoogleConfig,
|
|
1743
|
-
isLogicalSearchOperator,
|
|
1744
|
-
isManyToMany,
|
|
1745
|
-
isManyToOne,
|
|
1746
|
-
isMonthlyQuota,
|
|
1747
|
-
isNumeric,
|
|
1748
|
-
isOIDCConfig,
|
|
1749
|
-
isOneToMany,
|
|
1750
|
-
isPasswordAccount,
|
|
1751
|
-
isRangeSearchOperator,
|
|
1752
|
-
isRelationshipField,
|
|
1753
|
-
isSCIMConfig,
|
|
1754
|
-
isSMTPConfig,
|
|
1755
|
-
isSSOAccount,
|
|
1756
|
-
isSSOUser,
|
|
1757
|
-
isSelfHostAccount,
|
|
1758
|
-
isSettingsConfig,
|
|
1759
|
-
isStaticQuota,
|
|
1760
|
-
isUser,
|
|
1761
|
-
isVerifiableSSOProvider,
|
|
1762
|
-
prefixed,
|
|
1763
|
-
searchRowRequestValidator
|
|
1764
|
-
});
|
|
1
|
+
"use strict";var b=Object.defineProperty;var Pt=Object.getOwnPropertyDescriptor;var Lt=Object.getOwnPropertyNames;var bt=Object.prototype.hasOwnProperty;var Mt=(r,i)=>{for(var t in i)b(r,t,{get:i[t],enumerable:!0})},Bt=(r,i,t,n)=>{if(i&&typeof i=="object"||typeof i=="function")for(let p of Lt(i))!bt.call(r,p)&&p!==t&&b(r,p,{get:()=>i[p],enumerable:!(n=Pt(i,p))||n.enumerable});return r};var ht=r=>Bt(b({},"__esModule",{value:!0}),r);var Fr={};Mt(Fr,{AIOperationEnum:()=>q,APP_QUOTA_NAMES:()=>Cr,AUDIT_LOG_TYPE:()=>Mr,AccountSSOProvider:()=>Le,AccountSSOProviderType:()=>Pe,AnalyticsEvent:()=>jt,AppBackupStatus:()=>it,AppBackupTrigger:()=>at,AppBackupType:()=>ot,AppEnvironment:()=>fe,ArrayOperator:()=>S,AsyncEvents:()=>Ft,AuditLogResourceStatus:()=>It,AuditLogSystemUser:()=>br,AuditedEventFriendlyName:()=>Gt,AuthType:()=>be,AutoFieldSubType:()=>Je,AutoReason:()=>je,AutomationActionStepId:()=>w,AutomationCustomIOType:()=>Be,AutomationEventType:()=>Ve,AutomationFeature:()=>Fe,AutomationIOType:()=>Me,AutomationStatus:()=>ve,AutomationStepIdArray:()=>nr,AutomationStepStatus:()=>Ge,AutomationStepType:()=>he,AutomationStoppedReason:()=>we,AutomationTriggerStepId:()=>v,BBReferenceFieldSubType:()=>$e,BREAKDOWN_QUOTA_NAMES:()=>Pr,BasicOperator:()=>_,BodyType:()=>Ye,BreakdownQuotaName:()=>Tt,BuiltinPermissionID:()=>ye,CalculationType:()=>et,CommandWord:()=>Ie,ConfigType:()=>ut,ConstantQuotaName:()=>te,DSPlusOperation:()=>ue,DatasourceFeature:()=>le,DatasourceFieldType:()=>se,DeploymentStatus:()=>dt,DocumentType:()=>k,DocumentTypesToImport:()=>Tr,EmailTemplatePurpose:()=>Dt,EmptyFilterOption:()=>x,Event:()=>B,EventPublishType:()=>xt,EventType:()=>Ct,Feature:()=>re,FeatureFlag:()=>Se,FeatureFlagDefaults:()=>Xt,FieldType:()=>V,FilterType:()=>de,FormulaType:()=>Ze,GroupByTypes:()=>Xe,GroupType:()=>X,Hosting:()=>M,HttpMethod:()=>qe,INTERNAL_TABLE_SOURCE_ID:()=>or,IdentityType:()=>j,IncludeRelationship:()=>Ee,InitType:()=>xe,InternalSearchFilterOperator:()=>G,InternalTable:()=>nt,JsonFieldSubType:()=>ze,JsonTypes:()=>ir,LockName:()=>Ae,LockType:()=>Te,LogicalOperator:()=>I,LoginMethod:()=>ge,LoopStepType:()=>Qe,MaintenanceType:()=>Ut,MetadataType:()=>lt,MigrationName:()=>oe,MigrationType:()=>ne,Model:()=>ke,MonthlyQuotaName:()=>F,NumericTypes:()=>Ke,Operation:()=>ie,OperationFieldTypeEnum:()=>H,PASSWORD_REPLACEMENT:()=>Qt,PLUGIN_TYPE_ARR:()=>Ur,PermissionLevel:()=>De,PermissionSource:()=>Ue,PermissionType:()=>Ne,PingSource:()=>Ot,PlanModel:()=>Z,PlanType:()=>J,PluginSource:()=>gt,PluginType:()=>Y,PriceDuration:()=>z,QueryType:()=>ae,QuotaType:()=>ee,QuotaUsageType:()=>$,RangeOperator:()=>f,RelationshipType:()=>Q,RestAuthType:()=>We,RowExportFormat:()=>Ce,RowOperations:()=>kt,SEPARATOR:()=>D,SQLiteType:()=>pt,SSOProviderType:()=>mt,ScheduleRepeatPeriod:()=>Rt,ScheduleType:()=>At,SearchIndex:()=>Re,ServiceType:()=>Nt,SortOption:()=>Oe,SortOrder:()=>y,SortType:()=>N,SourceName:()=>pe,SqlClient:()=>ce,StaticQuotaName:()=>h,TableSourceType:()=>He,TemplateType:()=>yt,TenantResolutionStrategy:()=>_e,Theme:()=>Et,UILogicalOperator:()=>me,UNICODE_MAX:()=>ur,UserGroupSyncEvents:()=>K,UserStatus:()=>ct,ViewCalculation:()=>rt,ViewV2Type:()=>tt,VirtualDocumentType:()=>W,WebhookActionType:()=>st,canGroupBy:()=>sr,getDocumentType:()=>gr,getVirtualDocumentType:()=>Rr,isAIConfig:()=>Dr,isAppBackupMetadata:()=>Lr,isArraySearchOperator:()=>qt,isBasicSearchOperator:()=>Yt,isCloudAccount:()=>Zt,isConfig:()=>Or,isConstantQuota:()=>Vt,isCreatePasswordAccount:()=>Jt,isDocument:()=>Kt,isGoogleConfig:()=>fr,isLogicalSearchOperator:()=>Wt,isManyToMany:()=>Er,isManyToOne:()=>lr,isMonthlyQuota:()=>wt,isNumeric:()=>ar,isOIDCConfig:()=>Ir,isOneToMany:()=>dr,isPasswordAccount:()=>zt,isRangeSearchOperator:()=>Ht,isRelationshipField:()=>pr,isSCIMConfig:()=>xr,isSMTPConfig:()=>Sr,isSSOAccount:()=>er,isSSOUser:()=>yr,isSelfHostAccount:()=>$t,isSettingsConfig:()=>_r,isStaticQuota:()=>vt,isUser:()=>Nr,isVerifiableSSOProvider:()=>rr,prefixed:()=>mr,searchRowRequestValidator:()=>hr});module.exports=ht(Fr);var q=(l=>(l.SUMMARISE_TEXT="SUMMARISE_TEXT",l.CLEAN_DATA="CLEAN_DATA",l.TRANSLATE="TRANSLATE",l.CATEGORISE_TEXT="CATEGORISE_TEXT",l.SENTIMENT_ANALYSIS="SENTIMENT_ANALYSIS",l.PROMPT="PROMPT",l.SEARCH_WEB="SEARCH_WEB",l))(q||{}),H=(n=>(n.MULTI_COLUMN="columns",n.COLUMN="column",n.BINDABLE_TEXT="prompt",n))(H||{});var M=(t=>(t.CLOUD="cloud",t.SELF="self",t))(M||{});var B=(e=>(e.USER_CREATED="user:created",e.USER_UPDATED="user:updated",e.USER_DELETED="user:deleted",e.USER_ONBOARDING_COMPLETE="user:onboarding:complete",e.USER_PERMISSION_ADMIN_ASSIGNED="user:admin:assigned",e.USER_PERMISSION_ADMIN_REMOVED="user:admin:removed",e.USER_PERMISSION_BUILDER_ASSIGNED="user:builder:assigned",e.USER_PERMISSION_BUILDER_REMOVED="user:builder:removed",e.USER_INVITED="user:invited",e.USER_INVITED_ACCEPTED="user:invite:accepted",e.USER_PASSWORD_FORCE_RESET="user:password:force:reset",e.USER_PASSWORD_UPDATED="user:password:updated",e.USER_PASSWORD_RESET_REQUESTED="user:password:reset:requested",e.USER_PASSWORD_RESET="user:password:reset",e.USER_DATA_COLLABORATION="user:data:collaboration",e.EMAIL_SMTP_CREATED="email:smtp:created",e.EMAIL_SMTP_UPDATED="email:smtp:updated",e.AI_CONFIG_CREATED="ai:config:created",e.AI_CONFIG_UPDATED="ai:config:updated",e.AUTH_SSO_CREATED="auth:sso:created",e.AUTH_SSO_UPDATED="auth:sso:updated",e.AUTH_SSO_ACTIVATED="auth:sso:activated",e.AUTH_SSO_DEACTIVATED="auth:sso:deactivated",e.AUTH_LOGIN="auth:login",e.AUTH_LOGOUT="auth:logout",e.ORG_NAME_UPDATED="org:info:name:updated",e.ORG_LOGO_UPDATED="org:info:logo:updated",e.ORG_PLATFORM_URL_UPDATED="org:platformurl:updated",e.INSTALLATION_VERSION_CHECKED="installation:version:checked",e.INSTALLATION_VERSION_UPGRADED="installation:version:upgraded",e.INSTALLATION_VERSION_DOWNGRADED="installation:version:downgraded",e.INSTALLATION_FIRST_STARTUP="installation:firstStartup",e.ANALYTICS_OPT_OUT="analytics:opt:out",e.ANALYTICS_OPT_IN="analytics:opt:in",e.APP_CREATED="app:created",e.APP_UPDATED="app:updated",e.APP_DELETED="app:deleted",e.APP_DUPLICATED="app:duplicated",e.APP_PUBLISHED="app:published",e.APP_UNPUBLISHED="app:unpublished",e.APP_TEMPLATE_IMPORTED="app:template:imported",e.APP_FILE_IMPORTED="app:file:imported",e.APP_VERSION_UPDATED="app:version:updated",e.APP_VERSION_REVERTED="app:version:reverted",e.APP_REVERTED="app:reverted",e.APP_EXPORTED="app:exported",e.ROLE_CREATED="role:created",e.ROLE_UPDATED="role:updated",e.ROLE_DELETED="role:deleted",e.ROLE_ASSIGNED="role:assigned",e.ROLE_UNASSIGNED="role:unassigned",e.SERVED_BUILDER="served:builder",e.SERVED_APP="served:app",e.SERVED_APP_PREVIEW="served:app:preview",e.DATASOURCE_CREATED="datasource:created",e.DATASOURCE_UPDATED="datasource:updated",e.DATASOURCE_DELETED="datasource:deleted",e.QUERY_CREATED="query:created",e.QUERY_UPDATED="query:updated",e.QUERY_DELETED="query:deleted",e.QUERY_IMPORT="query:import",e.QUERIES_RUN="queries:run",e.QUERY_PREVIEWED="query:previewed",e.TABLE_CREATED="table:created",e.TABLE_UPDATED="table:updated",e.TABLE_DELETED="table:deleted",e.TABLE_EXPORTED="table:exported",e.TABLE_IMPORTED="table:imported",e.TABLE_DATA_IMPORTED="table:data:imported",e.VIEW_CREATED="view:created",e.VIEW_UPDATED="view:updated",e.VIEW_DELETED="view:deleted",e.VIEW_EXPORTED="view:exported",e.VIEW_FILTER_CREATED="view:filter:created",e.VIEW_FILTER_UPDATED="view:filter:updated",e.VIEW_FILTER_DELETED="view:filter:deleted",e.VIEW_CALCULATION_CREATED="view:calculation:created",e.VIEW_CALCULATION_UPDATED="view:calculation:updated",e.VIEW_CALCULATION_DELETED="view:calculation:deleted",e.VIEW_JOIN_CREATED="view:join:created",e.ROWS_CREATED="rows:created",e.ROWS_IMPORTED="rows:imported",e.COMPONENT_CREATED="component:created",e.COMPONENT_DELETED="component:deleted",e.SCREEN_CREATED="screen:created",e.SCREEN_DELETED="screen:deleted",e.LAYOUT_CREATED="layout:created",e.LAYOUT_DELETED="layout:deleted",e.AUTOMATION_CREATED="automation:created",e.AUTOMATION_DELETED="automation:deleted",e.AUTOMATION_TESTED="automation:tested",e.AUTOMATIONS_RUN="automations:run",e.AUTOMATION_STEP_CREATED="automation:step:created",e.AUTOMATION_STEP_DELETED="automation:step:deleted",e.AUTOMATION_TRIGGER_UPDATED="automation:trigger:updated",e.LICENSE_PLAN_CHANGED="license:plan:changed",e.LICENSE_ACTIVATED="license:activated",e.LICENSE_PAYMENT_FAILED="license:payment:failed",e.LICENSE_PAYMENT_RECOVERED="license:payment:recovered",e.LICENSE_CHECKOUT_OPENED="license:checkout:opened",e.LICENSE_CHECKOUT_SUCCESS="license:checkout:success",e.LICENSE_PORTAL_OPENED="license:portal:opened",e.ACCOUNT_CREATED="account:created",e.ACCOUNT_DELETED="account:deleted",e.ACCOUNT_VERIFIED="account:verified",e.APP_BACKFILL_SUCCEEDED="app:backfill:succeeded",e.APP_BACKFILL_FAILED="app:backfill:failed",e.TENANT_BACKFILL_SUCCEEDED="tenant:backfill:succeeded",e.TENANT_BACKFILL_FAILED="tenant:backfill:failed",e.INSTALLATION_BACKFILL_SUCCEEDED="installation:backfill:succeeded",e.INSTALLATION_BACKFILL_FAILED="installation:backfill:failed",e.USER_GROUP_CREATED="user_group:created",e.USER_GROUP_UPDATED="user_group:updated",e.USER_GROUP_DELETED="user_group:deleted",e.USER_GROUP_USERS_ADDED="user_group:user_added",e.USER_GROUP_USERS_REMOVED="user_group:users_deleted",e.USER_GROUP_PERMISSIONS_EDITED="user_group:permissions_edited",e.USER_GROUP_ONBOARDING="user_group:onboarding_added",e.PLUGIN_INIT="plugin:init",e.PLUGIN_IMPORTED="plugin:imported",e.PLUGIN_DELETED="plugin:deleted",e.APP_BACKUP_RESTORED="app:backup:restored",e.APP_BACKUP_TRIGGERED="app:backup:triggered",e.ENVIRONMENT_VARIABLE_CREATED="environment_variable:created",e.ENVIRONMENT_VARIABLE_DELETED="environment_variable:deleted",e.ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED="environment_variable:upgrade_panel_opened",e.AUDIT_LOGS_FILTERED="audit_log:filtered",e.AUDIT_LOGS_DOWNLOADED="audit_log:downloaded",e.ROW_ACTION_CREATED="row_action:created",e))(B||{}),K=["user:created","user:updated","user:deleted","user:admin:assigned","user:admin:removed","user:builder:assigned","user:builder:removed","user_group:created","user_group:updated","user_group:deleted","user_group:user_added","user_group:users_deleted","user_group:permissions_edited"],Ft=[...K],Gt={"user:created":'User "{{ email }}" created{{#if viaScim}} via SCIM{{/if}}',"user:updated":'User "{{ email }}" updated{{#if viaScim}} via SCIM{{/if}}',"user:deleted":'User "{{ email }}" deleted{{#if viaScim}} via SCIM{{/if}}',"user:admin:assigned":'User "{{ email }}" admin role assigned',"user:admin:removed":'User "{{ email }}" admin role removed',"user:builder:assigned":'User "{{ email }}" builder role assigned',"user:builder:removed":'User "{{ email }}" builder role removed',"user:invited":'User "{{ email }}" invited',"user:invite:accepted":'User "{{ email }}" accepted invite',"user:password:updated":'User "{{ email }}" password updated',"user:password:reset:requested":'User "{{ email }}" password reset requested',"user:password:reset":'User "{{ email }}" password reset',"user_group:created":'User group "{{ name }}" created{{#if viaScim}} via SCIM{{/if}}',"user_group:updated":'User group "{{ name }}" updated{{#if viaScim}} via SCIM{{/if}}',"user_group:deleted":'User group "{{ name }}" deleted{{#if viaScim}} via SCIM{{/if}}',"user_group:user_added":'User group "{{ name }}" {{ count }} users added{{#if viaScim}} via SCIM{{/if}}',"user_group:users_deleted":'User group "{{ name }}" {{ count }} users removed{{#if viaScim}} via SCIM{{/if}}',"user_group:permissions_edited":'User group "{{ name }}" permissions edited',"user:password:force:reset":void 0,"user_group:onboarding_added":void 0,"user:onboarding:complete":void 0,"user:data:collaboration":void 0,"email:smtp:created":"Email configuration created","email:smtp:updated":"Email configuration updated","ai:config:created":"AI configuration created","ai:config:updated":"AI configuration updated","auth:sso:created":"SSO configuration created","auth:sso:updated":"SSO configuration updated","auth:sso:activated":"SSO configuration activated","auth:sso:deactivated":"SSO configuration deactivated","auth:login":'User "{{ email }}" logged in',"auth:logout":'User "{{ email }}" logged out',"org:info:name:updated":"Organisation name updated","org:info:logo:updated":"Organisation logo updated","org:platformurl:updated":"Organisation platform URL updated","app:created":'App "{{ name }}" created',"app:updated":'App "{{ name }}" updated',"app:deleted":'App "{{ name }}" deleted',"app:duplicated":'App "{{ name }}" duplicated',"app:published":'App "{{ name }}" published',"app:unpublished":'App "{{ name }}" unpublished',"app:template:imported":'App "{{ name }}" template imported',"app:file:imported":'App "{{ name }}" file imported',"app:version:updated":'App "{{ name }}" version updated',"app:version:reverted":'App "{{ name }}" version reverted',"app:reverted":'App "{{ name }}" reverted',"app:exported":'App "{{ name }}" exported',"app:backup:restored":'App backup "{{ name }}" restored',"app:backup:triggered":'App backup "{{ name }}" triggered',"datasource:created":"Datasource created","datasource:updated":"Datasource updated","datasource:deleted":"Datasource deleted","query:created":"Query created","query:updated":"Query updated","query:deleted":"Query deleted","query:import":"Query import","queries:run":void 0,"query:previewed":void 0,"table:created":'Table "{{ name }}" created',"table:updated":'Table "{{ name }}" updated',"table:deleted":'Table "{{ name }}" deleted',"table:exported":'Table "{{ name }}" exported',"table:imported":'Table "{{ name }}" imported',"table:data:imported":"Data imported to table","rows:created":"Rows created","rows:imported":"Rows imported","automation:created":'Automation "{{ name }}" created',"automation:deleted":'Automation "{{ name }}" deleted',"automation:step:created":'Automation "{{ name }}" step added',"automation:step:deleted":'Automation "{{ name }}" step removed',"automation:tested":void 0,"automations:run":void 0,"automation:trigger:updated":void 0,"screen:created":'Screen "{{ name }}" created',"screen:deleted":'Screen "{{ name }}" deleted',"component:created":"Component created","component:deleted":"Component deleted","environment_variable:created":"Environment variable created","environment_variable:deleted":"Environment variable deleted","environment_variable:upgrade_panel_opened":void 0,"plugin:imported":"Plugin imported","plugin:deleted":"Plugin deleted","plugin:init":void 0,"role:created":void 0,"role:updated":void 0,"role:deleted":void 0,"role:assigned":void 0,"role:unassigned":void 0,"license:plan:changed":void 0,"license:activated":void 0,"license:payment:failed":void 0,"license:payment:recovered":void 0,"license:checkout:opened":void 0,"license:checkout:success":void 0,"license:portal:opened":void 0,"account:created":void 0,"account:deleted":void 0,"account:verified":void 0,"app:backfill:succeeded":void 0,"app:backfill:failed":void 0,"tenant:backfill:succeeded":void 0,"tenant:backfill:failed":void 0,"installation:backfill:succeeded":void 0,"installation:backfill:failed":void 0,"layout:created":void 0,"layout:deleted":void 0,"view:created":void 0,"view:updated":void 0,"view:deleted":void 0,"view:exported":void 0,"view:filter:created":void 0,"view:filter:updated":void 0,"view:filter:deleted":void 0,"view:calculation:created":void 0,"view:calculation:updated":void 0,"view:calculation:deleted":void 0,"view:join:created":void 0,"served:builder":void 0,"served:app":void 0,"served:app:preview":void 0,"analytics:opt:out":void 0,"analytics:opt:in":void 0,"installation:version:checked":void 0,"installation:version:upgraded":void 0,"installation:version:downgraded":void 0,"installation:firstStartup":void 0,"audit_log:filtered":void 0,"audit_log:downloaded":void 0,"row_action:created":void 0};var X=(t=>(t.TENANT="tenant",t.INSTALLATION="installation",t))(X||{}),j=(n=>(n.USER="user",n.TENANT="tenant",n.INSTALLATION="installation",n))(j||{});var J=(m=>(m.FREE="free",m.PRO="pro",m.TEAM="team",m.PREMIUM="premium",m.PREMIUM_PLUS="premium_plus",m.PREMIUM_PLUS_TRIAL="premium_plus_trial",m.BUSINESS="business",m.ENTERPRISE_BASIC="enterprise_basic",m.ENTERPRISE_BASIC_TRIAL="enterprise_basic_trial",m.ENTERPRISE="enterprise",m))(J||{}),z=(t=>(t.MONTHLY="monthly",t.YEARLY="yearly",t))(z||{}),Z=(t=>(t.PER_USER="perUser",t.PER_CREATOR_PER_USER="per_creator_per_user",t))(Z||{});var $=(t=>(t.STATIC="static",t.MONTHLY="monthly",t))($||{}),ee=(t=>(t.USAGE="usage",t.CONSTANT="constant",t))(ee||{}),h=(l=>(l.ROWS="rows",l.APPS="apps",l.USERS="users",l.CREATORS="creators",l.USER_GROUPS="userGroups",l.PLUGINS="plugins",l.AI_CUSTOM_CONFIGS="aiCustomConfigs",l))(h||{}),F=(n=>(n.QUERIES="queries",n.AUTOMATIONS="automations",n.BUDIBASE_AI_CREDITS="budibaseAICredits",n))(F||{}),te=(t=>(t.AUTOMATION_LOG_RETENTION_DAYS="automationLogRetentionDays",t.APP_BACKUPS_RETENTION_DAYS="appBackupRetentionDays",t))(te||{}),vt=(r,i,t)=>r==="usage"&&i==="static",wt=(r,i,t)=>r==="usage"&&i==="monthly",Vt=(r,i)=>r==="constant";var re=(A=>(A.USER_GROUPS="userGroups",A.APP_BACKUPS="appBackups",A.ENVIRONMENT_VARIABLES="environmentVariables",A.AUDIT_LOGS="auditLogs",A.ENFORCEABLE_SSO="enforceableSSO",A.BRANDING="branding",A.SCIM="scim",A.SYNC_AUTOMATIONS="syncAutomations",A.TRIGGER_AUTOMATION_RUN="triggerAutomationRun",A.APP_BUILDERS="appBuilders",A.OFFLINE="offline",A.EXPANDED_PUBLIC_API="expandedPublicApi",A.VIEW_PERMISSIONS="viewPermissions",A.VIEW_READONLY_COLUMNS="viewReadonlyColumns",A.BUDIBASE_AI="budibaseAI",A.AI_CUSTOM_CONFIGS="aiCustomConfigs",A))(re||{});var ne=(n=>(n.GLOBAL="global",n.APP="app",n.INSTALLATION="installation",n))(ne||{}),oe=(a=>(a.USER_EMAIL_VIEW_CASING="user_email_view_casing",a.APP_URLS="app_urls",a.EVENT_APP_BACKFILL="event_app_backfill",a.EVENT_GLOBAL_BACKFILL="event_global_backfill",a.EVENT_INSTALLATION_BACKFILL="event_installation_backfill",a.GLOBAL_INFO_SYNC_USERS="global_info_sync_users",a.TABLE_SETTINGS_LINKS_TO_ACTIONS="table_settings_links_to_actions",a.SYNC_QUOTAS="sync_quotas_2",a))(oe||{});var Qt="--secret-value--",ie=(m=>(m.CREATE="CREATE",m.READ="READ",m.UPDATE="UPDATE",m.DELETE="DELETE",m.COUNT="COUNT",m.BULK_CREATE="BULK_CREATE",m.BULK_UPSERT="BULK_UPSERT",m.CREATE_TABLE="CREATE_TABLE",m.UPDATE_TABLE="UPDATE_TABLE",m.DELETE_TABLE="DELETE_TABLE",m))(ie||{}),kt=["CREATE","READ","UPDATE","DELETE","BULK_CREATE","BULK_UPSERT"],ae=(n=>(n.SQL="sql",n.JSON="json",n.FIELDS="fields",n))(ae||{}),se=(R=>(R.STRING="string",R.CODE="code",R.LONGFORM="longForm",R.BOOLEAN="boolean",R.NUMBER="number",R.PASSWORD="password",R.LIST="list",R.OBJECT="object",R.JSON="json",R.FILE="file",R.FIELD_GROUP="fieldGroup",R.SELECT="select",R))(se||{}),pe=(T=>(T.POSTGRES="POSTGRES",T.DYNAMODB="DYNAMODB",T.MONGODB="MONGODB",T.ELASTICSEARCH="ELASTICSEARCH",T.COUCHDB="COUCHDB",T.SQL_SERVER="SQL_SERVER",T.S3="S3",T.AIRTABLE="AIRTABLE",T.MYSQL="MYSQL",T.ARANGODB="ARANGODB",T.REST="REST",T.ORACLE="ORACLE",T.GOOGLE_SHEETS="GOOGLE_SHEETS",T.FIRESTORE="FIRESTORE",T.REDIS="REDIS",T.SNOWFLAKE="SNOWFLAKE",T.BUDIBASE="BUDIBASE",T))(pe||{}),Ee=(t=>(t[t.INCLUDE=1]="INCLUDE",t[t.EXCLUDE=0]="EXCLUDE",t))(Ee||{}),de=(a=>(a.STRING="string",a.FUZZY="fuzzy",a.RANGE="range",a.EQUAL="equal",a.NOT_EQUAL="notEqual",a.EMPTY="empty",a.NOT_EMPTY="notEmpty",a.ONE_OF="oneOf",a))(de||{}),le=(n=>(n.CONNECTION_CHECKING="connection",n.FETCH_TABLE_NAMES="fetch_table_names",n.EXPORT_SCHEMA="export_schema",n))(le||{}),ue=(p=>(p.CREATE="create",p.READ="read",p.UPDATE="update",p.DELETE="delete",p))(ue||{});var _=(o=>(o.EQUAL="equal",o.NOT_EQUAL="notEqual",o.EMPTY="empty",o.NOT_EMPTY="notEmpty",o.FUZZY="fuzzy",o.STRING="string",o))(_||{}),S=(p=>(p.CONTAINS="contains",p.NOT_CONTAINS="notContains",p.CONTAINS_ANY="containsAny",p.ONE_OF="oneOf",p))(S||{}),f=(i=>(i.RANGE="range",i))(f||{}),I=(t=>(t.AND="$and",t.OR="$or",t))(I||{});function Wt(r){return Object.values(I).includes(r)}function Yt(r){return Object.values(_).includes(r)}function qt(r){return Object.values(S).includes(r)}function Ht(r){return Object.values(f).includes(r)}var G=(i=>(i.COMPLEX_ID_OPERATOR="_complexIdOperator",i))(G||{}),x=(t=>(t.RETURN_ALL="all",t.RETURN_NONE="none",t))(x||{}),me=(t=>(t.ALL="all",t.ANY="any",t))(me||{}),ce=(o=>(o.MS_SQL="mssql",o.POSTGRES="pg",o.MY_SQL="mysql2",o.MARIADB="mariadb",o.ORACLE="oracledb",o.SQL_LITE="sqlite3",o))(ce||{});var ge=(t=>(t.API_KEY="api_key",t.COOKIE="cookie",t))(ge||{});var Te=(o=>(o.TRY_ONCE="try_once",o.TRY_TWICE="try_twice",o.DEFAULT="default",o.DELAY_500="delay_500",o.CUSTOM="custom",o.AUTO_EXTEND="auto_extend",o))(Te||{}),Ae=(a=>(a.MIGRATIONS="migrations",a.TRIGGER_QUOTA="trigger_quota",a.SYNC_ACCOUNT_LICENSE="sync_account_license",a.UPDATE_TENANTS_DOC="update_tenants_doc",a.PERSIST_WRITETHROUGH="persist_writethrough",a.QUOTA_USAGE_EVENT="quota_usage_event",a.APP_MIGRATION="app_migrations",a.PROCESS_USER_INVITE="process_user_invite",a))(Ae||{});var Re=(t=>(t.ROWS="rows",t.USER="user",t))(Re||{}),Oe=(t=>(t.ASCENDING="asc",t.DESCENDING="desc",t))(Oe||{}),Kt=r=>typeof r=="object"&&r._id&&r._rev;var _e=(s=>(s.USER="user",s.HEADER="header",s.QUERY="query",s.SUBDOMAIN="subdomain",s.PATH="path",s))(_e||{});var Se=(t=>(t.USE_ZOD_VALIDATOR="USE_ZOD_VALIDATOR",t.DIRECT_LOGIN_TO_ACCOUNT_PORTAL="DIRECT_LOGIN_TO_ACCOUNT_PORTAL",t))(Se||{}),Xt={USE_ZOD_VALIDATOR:!1,DIRECT_LOGIN_TO_ACCOUNT_PORTAL:!1};var fe=(t=>(t.PRODUCTION="production",t.DEVELOPMENT="development",t))(fe||{});var Ie=(s=>(s.BACKUPS="backups",s.HOSTING="hosting",s.ANALYTICS="analytics",s.HELP="help",s.PLUGIN="plugins",s))(Ie||{}),xe=(t=>(t.QUICK="quick",t.DIGITAL_OCEAN="do",t))(xe||{}),jt={OptOut:"analytics:opt:out",OptIn:"analytics:opt:in",SelfHostInit:"hosting:init",PluginInit:"plugin:init"};var De=(p=>(p.READ="read",p.WRITE="write",p.EXECUTE="execute",p.ADMIN="admin",p))(De||{}),ye=(s=>(s.PUBLIC="public",s.READ_ONLY="read_only",s.WRITE="write",s.ADMIN="admin",s.POWER="power",s))(ye||{}),Ne=(O=>(O.APP="app",O.TABLE="table",O.USER="user",O.AUTOMATION="automation",O.WEBHOOK="webhook",O.BUILDER="builder",O.CREATOR="creator",O.GLOBAL_BUILDER="globalBuilder",O.QUERY="query",O.VIEW="view",O.LEGACY_VIEW="legacy_view",O))(Ne||{}),Ue=(n=>(n.EXPLICIT="EXPLICIT",n.INHERITED="INHERITED",n.BASE="BASE",n))(Ue||{});var Ce=(n=>(n.CSV="csv",n.JSON="json",n.JSON_WITH_SCHEMA="jsonWithSchema",n))(Ce||{});var Jt=r=>r.authType==="password",zt=r=>r.authType==="password"&&r.hosting==="self",Zt=r=>r.hosting==="cloud",$t=r=>r.hosting==="self",er=r=>r.authType==="sso",Pe=(t=>(t.GOOGLE="google",t.MICROSOFT="microsoft",t))(Pe||{}),Le=(t=>(t.GOOGLE="google",t.MICROSOFT="microsoft",t))(Le||{}),tr=["microsoft"];function rr(r){return tr.includes(r)}var be=(t=>(t.SSO="sso",t.PASSWORD="password",t))(be||{});var Me=(a=>(a.OBJECT="object",a.STRING="string",a.BOOLEAN="boolean",a.NUMBER="number",a.ARRAY="array",a.JSON="json",a.DATE="date",a.ATTACHMENT="attachment",a))(Me||{}),Be=(g=>(g.TABLE="table",g.ROW="row",g.ROWS="rows",g.WIDE="wide",g.QUERY="query",g.QUERY_PARAMS="queryParams",g.QUERY_LIMIT="queryLimit",g.LOOP_OPTION="loopOption",g.ITEM="item",g.CODE="code",g.FILTERS="filters",g.COLUMN="column",g.TRIGGER_SCHEMA="triggerSchema",g.CRON="cron",g.WEBHOOK_URL="webhookUrl",g.AUTOMATION="automation",g.AUTOMATION_FIELDS="automationFields",g.MULTI_ATTACHMENTS="multi_attachments",g.TRIGGER_FILTER="trigger_filter",g))(Be||{}),v=(l=>(l.ROW_SAVED="ROW_SAVED",l.ROW_UPDATED="ROW_UPDATED",l.ROW_DELETED="ROW_DELETED",l.WEBHOOK="WEBHOOK",l.APP="APP",l.CRON="CRON",l.ROW_ACTION="ROW_ACTION",l))(v||{}),he=(n=>(n.LOGIC="LOGIC",n.ACTION="ACTION",n.TRIGGER="TRIGGER",n))(he||{}),w=(u=>(u.SEND_EMAIL_SMTP="SEND_EMAIL_SMTP",u.CREATE_ROW="CREATE_ROW",u.UPDATE_ROW="UPDATE_ROW",u.DELETE_ROW="DELETE_ROW",u.EXECUTE_BASH="EXECUTE_BASH",u.OUTGOING_WEBHOOK="OUTGOING_WEBHOOK",u.EXECUTE_SCRIPT="EXECUTE_SCRIPT",u.EXECUTE_QUERY="EXECUTE_QUERY",u.SERVER_LOG="SERVER_LOG",u.DELAY="DELAY",u.FILTER="FILTER",u.QUERY_ROWS="QUERY_ROWS",u.LOOP="LOOP",u.COLLECT="COLLECT",u.OPENAI="OPENAI",u.TRIGGER_AUTOMATION_RUN="TRIGGER_AUTOMATION_RUN",u.BRANCH="BRANCH",u.discord="discord",u.slack="slack",u.zapier="zapier",u.integromat="integromat",u.n8n="n8n",u))(w||{}),nr=[...Object.values(w),...Object.values(v)],Fe=(i=>(i.LOOPING="LOOPING",i))(Fe||{}),Ge=(t=>(t.NO_ITERATIONS="no_iterations",t.MAX_ITERATIONS="max_iterations_reached",t))(Ge||{}),ve=(s=>(s.SUCCESS="success",s.ERROR="error",s.STOPPED="stopped",s.STOPPED_ERROR="stopped_error",s.NO_CONDITION_MET="No branch condition met",s))(ve||{}),we=(i=>(i.TRIGGER_FILTER_NOT_MET="Automation did not run. Filter conditions in trigger were not met.",i))(we||{}),Ve=(l=>(l.ROW_SAVE="row:save",l.ROW_UPDATE="row:update",l.ROW_DELETE="row:delete",l.APP_TRIGGER="app:trigger",l.CRON_TRIGGER="cron:trigger",l.WEBHOOK_TRIGGER="web:trigger",l.ROW_ACTION="row:action",l))(Ve||{}),Qe=(t=>(t.ARRAY="Array",t.STRING="String",t))(Qe||{});var ke=(p=>(p.GPT_35_TURBO="gpt-3.5-turbo",p.GPT_4="gpt-4",p.GPT_4O="gpt-4o",p.GPT_4O_MINI="gpt-4o-mini",p))(ke||{});var We=(t=>(t.BASIC="basic",t.BEARER="bearer",t))(We||{});var Ye=(o=>(o.NONE="none",o.FORM_DATA="form",o.XML="xml",o.ENCODED="encoded",o.JSON="json",o.TEXT="text",o))(Ye||{}),qe=(o=>(o.GET="GET",o.POST="POST",o.PATCH="PATCH",o.PUT="PUT",o.HEAD="HEAD",o.DELETE="DELETE",o))(qe||{});var or="bb_internal",He=(t=>(t.EXTERNAL="external",t.INTERNAL="internal",t))(He||{});var V=(c=>(c.STRING="string",c.LONGFORM="longform",c.OPTIONS="options",c.NUMBER="number",c.BOOLEAN="boolean",c.ARRAY="array",c.DATETIME="datetime",c.ATTACHMENTS="attachment",c.ATTACHMENT_SINGLE="attachment_single",c.LINK="link",c.FORMULA="formula",c.AUTO="auto",c.AI="ai",c.JSON="json",c.INTERNAL="internal",c.BARCODEQR="barcodeqr",c.SIGNATURE_SINGLE="signature_single",c.BIGINT="bigint",c.BB_REFERENCE="bb_reference",c.BB_REFERENCE_SINGLE="bb_reference_single",c))(V||{}),ir=["attachment_single","attachment","bb_reference","json","array"],Ke=["number","bigint"];function ar(r){return Ke.includes(r)}var Xe=["string","longform","options","number","boolean","datetime","bigint","ai"];function sr(r){return Xe.includes(r)}var Q=(n=>(n.ONE_TO_MANY="one-to-many",n.MANY_TO_ONE="many-to-one",n.MANY_TO_MANY="many-to-many",n))(Q||{}),je=(i=>(i.FOREIGN_KEY="foreign_key",i))(je||{}),Je=(s=>(s.CREATED_BY="createdBy",s.CREATED_AT="createdAt",s.UPDATED_BY="updatedBy",s.UPDATED_AT="updatedAt",s.AUTO_ID="autoID",s))(Je||{}),ze=(i=>(i.ARRAY="array",i))(ze||{}),Ze=(n=>(n.STATIC="static",n.DYNAMIC="dynamic",n.AI="ai",n))(Ze||{}),$e=(t=>(t.USER="user",t.USERS="users",t))($e||{});function pr(r){return r.type==="link"}function Er(r){return r.relationshipType==="many-to-many"}function dr(r){return r.relationshipType==="one-to-many"}function lr(r){return r.relationshipType==="many-to-one"}var et=(s=>(s.SUM="sum",s.AVG="avg",s.COUNT="count",s.MIN="min",s.MAX="max",s))(et||{}),tt=(i=>(i.CALCULATION="calculation",i))(tt||{}),rt=(n=>(n.SUM="sum",n.COUNT="count",n.STATISTICS="stats",n))(rt||{});var D="_",ur="\uFFF0",mr=r=>`${r}${D}`,k=(d=>(d.USER="us",d.GROUP="gr",d.WORKSPACE="workspace",d.CONFIG="config",d.TEMPLATE="template",d.APP="app",d.DEV="dev",d.APP_DEV="app_dev",d.APP_METADATA="app_metadata",d.ROLE="role",d.MIGRATIONS="migrations",d.DEV_INFO="devinfo",d.AUTOMATION_LOG="log_au",d.ACCOUNT_METADATA="acc_metadata",d.PLUGIN="plg",d.DATASOURCE="datasource",d.DATASOURCE_PLUS="datasource_plus",d.APP_BACKUP="backup",d.TABLE="ta",d.ROW="ro",d.AUTOMATION="au",d.LINK="li",d.WEBHOOK="wh",d.INSTANCE="inst",d.LAYOUT="layout",d.SCREEN="screen",d.QUERY="query",d.DEPLOYMENTS="deployments",d.METADATA="metadata",d.MEM_VIEW="view",d.USER_FLAG="flag",d.AUTOMATION_METADATA="meta_au",d.AUDIT_LOG="al",d.APP_MIGRATION_METADATA="_design/migrations",d.SCIM_LOG="scimlog",d.ROW_ACTIONS="ra",d))(k||{}),cr=Object.values(k).sort((r,i)=>i.length-r.length);function gr(r){return cr.find(i=>r.startsWith(`${i}${D}`))}var Tr=["role","datasource","datasource_plus","ta","au","wh","screen","query","metadata","view","inst","layout"],nt=(i=>(i.USER_METADATA="ta_users",i))(nt||{}),W=(t=>(t.VIEW="view",t.ROW_ACTION="row_action",t))(W||{}),Ar=Object.values(W).sort((r,i)=>i.length-r.length);function Rr(r){return Ar.find(i=>r.startsWith(`${i}${D}`))}var ot=(t=>(t.BACKUP="backup",t.RESTORE="restore",t))(ot||{}),it=(p=>(p.STARTED="started",p.PENDING="pending",p.COMPLETE="complete",p.FAILED="failed",p))(it||{}),at=(p=>(p.PUBLISH="publish",p.MANUAL="manual",p.SCHEDULED="scheduled",p.RESTORING="restoring",p))(at||{});var st=(i=>(i.AUTOMATION="automation",i))(st||{});var pt=(s=>(s.REAL="REAL",s.TEXT="VARCHAR",s.INT="INTEGER",s.BLOB="BLOB",s.NUMERIC="NUMERIC",s))(pt||{});var Et=(o=>(o.LIGHTEST="lightest",o.LIGHT="light",o.DARK="dark",o.DARKEST="darkest",o.NORD="nord",o.MIDNIGHT="midnight",o))(Et||{});var dt=(n=>(n.SUCCESS="SUCCESS",n.PENDING="PENDING",n.FAILURE="FAILURE",n))(dt||{});var lt=(t=>(t.AUTOMATION_TEST_INPUT="automationTestInput",t.AUTOMATION_TEST_HISTORY="automationTestHistory",t))(lt||{});var Or=r=>"type"in r&&"config"in r,_r=r=>r.type==="settings",Sr=r=>r.type==="smtp",fr=r=>r.type==="google",Ir=r=>r.type==="oidc",xr=r=>r.type==="scim",Dr=r=>r.type==="ai",ut=(a=>(a.SETTINGS="settings",a.ACCOUNT="account",a.SMTP="smtp",a.GOOGLE="google",a.OIDC="oidc",a.OIDC_LOGOS="logos_oidc",a.SCIM="scim",a.AI="ai",a))(ut||{});var mt=(t=>(t.OIDC="oidc",t.GOOGLE="google",t))(mt||{});function yr(r){return!!r.providerType}var ct=(t=>(t.ACTIVE="active",t.INACTIVE="inactive",t))(ct||{});function Nr(r){return!!r.roles}var Y=(n=>(n.DATASOURCE="datasource",n.COMPONENT="component",n.AUTOMATION="automation",n))(Y||{}),gt=(p=>(p.NPM="NPM",p.GITHUB="Github",p.URL="URL",p.FILE="File Upload",p))(gt||{}),Ur=Object.values(Y);var Tt=(n=>(n.ROW_QUERIES="rowQueries",n.DATASOURCE_QUERIES="datasourceQueries",n.AUTOMATIONS="automations",n))(Tt||{}),Cr=["rows","queries","automations"],Pr=["queries","automations"];var At=(i=>(i.APP_BACKUP="app_backup",i))(At||{}),Rt=(n=>(n.DAILY="daily",n.WEEKLY="weekly",n.MONTHLY="monthly",n))(Rt||{}),Lr=(r,i)=>r==="app_backup";var br="SYSTEM",Mr="auditLog";var Ot=(t=>(t.BUILDER="builder",t.APP="app",t))(Ot||{});var y=(t=>(t.ASCENDING="ascending",t.DESCENDING="descending",t))(y||{}),N=(t=>(t.STRING="string",t.NUMBER="number",t))(N||{});var E=require("zod"),L=E.z.string().refine(r=>r!=="_complexIdOperator",{message:"Key '_complexIdOperator' is not allowed"}),_t=E.z.record(L,E.z.string()),U=E.z.record(L,E.z.any()),C=E.z.record(L,E.z.union([E.z.any().array(),E.z.string()])),St=E.z.lazy(()=>E.z.object({conditions:E.z.array(E.z.object(ft))})),P=E.z.union([E.z.string(),E.z.number()]),ft={string:_t.optional(),fuzzy:_t.optional(),range:E.z.record(L,E.z.union([E.z.object({high:P,low:P}),E.z.object({high:P}),E.z.object({low:P})])).optional(),equal:U.optional(),notEqual:U.optional(),empty:U.optional(),notEmpty:U.optional(),oneOf:C.optional(),contains:C.optional(),notContains:C.optional(),containsAny:C.optional(),$and:St.optional(),$or:St.optional()},Br=E.z.object({query:E.z.object({allOr:E.z.boolean().optional(),onEmptyFilter:E.z.nativeEnum(x).optional(),...ft}).optional(),paginate:E.z.boolean().optional(),bookmark:E.z.union([E.z.string(),E.z.number()]).nullish(),limit:E.z.number().optional(),sort:E.z.string().nullish(),sortOrder:E.z.nativeEnum(y).optional(),sortType:E.z.nativeEnum(N).nullish(),version:E.z.string().optional(),disableEscaping:E.z.boolean().optional(),countRows:E.z.boolean().optional()}),hr=Br;var It=(i=>(i.DELETED="deleted",i))(It||{});var xt=(i=>(i.ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED="environment_variable_upgrade_panel_opened",i))(xt||{});var Dt=(o=>(o.CORE="core",o.BASE="base",o.PASSWORD_RECOVERY="password_recovery",o.INVITATION="invitation",o.WELCOME="welcome",o.CUSTOM="custom",o))(Dt||{});var yt=(i=>(i.APP="app",i))(yt||{});var Nt=(t=>(t.WORKER="worker",t.APPS="apps",t))(Nt||{}),Ut=(i=>(i.SQS_MISSING="sqs_missing",i))(Ut||{});var Ct=(o=>(o.ROW_SAVE="row:save",o.ROW_UPDATE="row:update",o.ROW_DELETE="row:delete",o.TABLE_SAVE="table:save",o.TABLE_UPDATED="table:updated",o.TABLE_DELETE="table:delete",o))(Ct||{});0&&(module.exports={AIOperationEnum,APP_QUOTA_NAMES,AUDIT_LOG_TYPE,AccountSSOProvider,AccountSSOProviderType,AnalyticsEvent,AppBackupStatus,AppBackupTrigger,AppBackupType,AppEnvironment,ArrayOperator,AsyncEvents,AuditLogResourceStatus,AuditLogSystemUser,AuditedEventFriendlyName,AuthType,AutoFieldSubType,AutoReason,AutomationActionStepId,AutomationCustomIOType,AutomationEventType,AutomationFeature,AutomationIOType,AutomationStatus,AutomationStepIdArray,AutomationStepStatus,AutomationStepType,AutomationStoppedReason,AutomationTriggerStepId,BBReferenceFieldSubType,BREAKDOWN_QUOTA_NAMES,BasicOperator,BodyType,BreakdownQuotaName,BuiltinPermissionID,CalculationType,CommandWord,ConfigType,ConstantQuotaName,DSPlusOperation,DatasourceFeature,DatasourceFieldType,DeploymentStatus,DocumentType,DocumentTypesToImport,EmailTemplatePurpose,EmptyFilterOption,Event,EventPublishType,EventType,Feature,FeatureFlag,FeatureFlagDefaults,FieldType,FilterType,FormulaType,GroupByTypes,GroupType,Hosting,HttpMethod,INTERNAL_TABLE_SOURCE_ID,IdentityType,IncludeRelationship,InitType,InternalSearchFilterOperator,InternalTable,JsonFieldSubType,JsonTypes,LockName,LockType,LogicalOperator,LoginMethod,LoopStepType,MaintenanceType,MetadataType,MigrationName,MigrationType,Model,MonthlyQuotaName,NumericTypes,Operation,OperationFieldTypeEnum,PASSWORD_REPLACEMENT,PLUGIN_TYPE_ARR,PermissionLevel,PermissionSource,PermissionType,PingSource,PlanModel,PlanType,PluginSource,PluginType,PriceDuration,QueryType,QuotaType,QuotaUsageType,RangeOperator,RelationshipType,RestAuthType,RowExportFormat,RowOperations,SEPARATOR,SQLiteType,SSOProviderType,ScheduleRepeatPeriod,ScheduleType,SearchIndex,ServiceType,SortOption,SortOrder,SortType,SourceName,SqlClient,StaticQuotaName,TableSourceType,TemplateType,TenantResolutionStrategy,Theme,UILogicalOperator,UNICODE_MAX,UserGroupSyncEvents,UserStatus,ViewCalculation,ViewV2Type,VirtualDocumentType,WebhookActionType,canGroupBy,getDocumentType,getVirtualDocumentType,isAIConfig,isAppBackupMetadata,isArraySearchOperator,isBasicSearchOperator,isCloudAccount,isConfig,isConstantQuota,isCreatePasswordAccount,isDocument,isGoogleConfig,isLogicalSearchOperator,isManyToMany,isManyToOne,isMonthlyQuota,isNumeric,isOIDCConfig,isOneToMany,isPasswordAccount,isRangeSearchOperator,isRelationshipField,isSCIMConfig,isSMTPConfig,isSSOAccount,isSSOUser,isSelfHostAccount,isSettingsConfig,isStaticQuota,isUser,isVerifiableSSOProvider,prefixed,searchRowRequestValidator});
|
|
1765
2
|
//# sourceMappingURL=index.js.map
|