@budibase/types 2.21.9 → 2.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/web/application.d.ts +11 -0
- package/dist/api/web/auth.d.ts +1 -0
- package/dist/core/installation.d.ts +3 -0
- package/dist/documents/app/app.d.ts +2 -1
- package/dist/documents/app/index.d.ts +1 -0
- package/dist/documents/app/snippet.d.ts +4 -0
- package/dist/documents/app/view.d.ts +1 -0
- package/dist/documents/global/user.d.ts +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +3 -3
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/events/app.d.ts +7 -0
- package/dist/sdk/events/event.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -10,6 +10,17 @@ export interface CreateAppRequest {
|
|
|
10
10
|
includeSampleData?: boolean;
|
|
11
11
|
encryptionPassword?: string;
|
|
12
12
|
templateString?: string;
|
|
13
|
+
file?: {
|
|
14
|
+
path: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface DuplicateAppRequest {
|
|
18
|
+
name: string;
|
|
19
|
+
url?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface DuplicateAppResponse {
|
|
22
|
+
duplicateAppId: string;
|
|
23
|
+
sourceAppId: string;
|
|
13
24
|
}
|
|
14
25
|
export interface FetchAppDefinitionResponse {
|
|
15
26
|
layouts: Layout[];
|
package/dist/api/web/auth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { User, Document, Plugin } from "../";
|
|
1
|
+
import { User, Document, Plugin, Snippet } from "../";
|
|
2
2
|
import { SocketSession } from "../../sdk";
|
|
3
3
|
export type AppMetadataErrors = {
|
|
4
4
|
[key: string]: string[];
|
|
@@ -26,6 +26,7 @@ export interface App extends Document {
|
|
|
26
26
|
automations?: AutomationSettings;
|
|
27
27
|
usedPlugins?: Plugin[];
|
|
28
28
|
upgradableVersion?: string;
|
|
29
|
+
snippets?: Snippet[];
|
|
29
30
|
}
|
|
30
31
|
export interface AppInstance {
|
|
31
32
|
_id: string;
|
package/dist/index.js
CHANGED
|
@@ -74,6 +74,7 @@ __export(src_exports, {
|
|
|
74
74
|
JsonFieldSubType: () => JsonFieldSubType,
|
|
75
75
|
LockName: () => LockName,
|
|
76
76
|
LockType: () => LockType,
|
|
77
|
+
MaintenanceType: () => MaintenanceType,
|
|
77
78
|
MigrationName: () => MigrationName,
|
|
78
79
|
MigrationType: () => MigrationType,
|
|
79
80
|
MonthlyQuotaName: () => MonthlyQuotaName,
|
|
@@ -186,6 +187,7 @@ var Event = /* @__PURE__ */ ((Event2) => {
|
|
|
186
187
|
Event2["APP_CREATED"] = "app:created";
|
|
187
188
|
Event2["APP_UPDATED"] = "app:updated";
|
|
188
189
|
Event2["APP_DELETED"] = "app:deleted";
|
|
190
|
+
Event2["APP_DUPLICATED"] = "app:duplicated";
|
|
189
191
|
Event2["APP_PUBLISHED"] = "app:published";
|
|
190
192
|
Event2["APP_UNPUBLISHED"] = "app:unpublished";
|
|
191
193
|
Event2["APP_TEMPLATE_IMPORTED"] = "app:template:imported";
|
|
@@ -335,6 +337,7 @@ var AuditedEventFriendlyName = {
|
|
|
335
337
|
["app:created" /* APP_CREATED */]: `App "{{ name }}" created`,
|
|
336
338
|
["app:updated" /* APP_UPDATED */]: `App "{{ name }}" updated`,
|
|
337
339
|
["app:deleted" /* APP_DELETED */]: `App "{{ name }}" deleted`,
|
|
340
|
+
["app:duplicated" /* APP_DUPLICATED */]: `App "{{ name }}" duplicated`,
|
|
338
341
|
["app:published" /* APP_PUBLISHED */]: `App "{{ name }}" published`,
|
|
339
342
|
["app:unpublished" /* APP_UNPUBLISHED */]: `App "{{ name }}" unpublished`,
|
|
340
343
|
["app:template:imported" /* APP_TEMPLATE_IMPORTED */]: `App "{{ name }}" template imported`,
|
|
@@ -1224,6 +1227,10 @@ var ServiceType = /* @__PURE__ */ ((ServiceType2) => {
|
|
|
1224
1227
|
ServiceType2["APPS"] = "apps";
|
|
1225
1228
|
return ServiceType2;
|
|
1226
1229
|
})(ServiceType || {});
|
|
1230
|
+
var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
1231
|
+
MaintenanceType2["SQS_MISSING"] = "sqs_missing";
|
|
1232
|
+
return MaintenanceType2;
|
|
1233
|
+
})(MaintenanceType || {});
|
|
1227
1234
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1228
1235
|
0 && (module.exports = {
|
|
1229
1236
|
APP_QUOTA_NAMES,
|
|
@@ -1280,6 +1287,7 @@ var ServiceType = /* @__PURE__ */ ((ServiceType2) => {
|
|
|
1280
1287
|
JsonFieldSubType,
|
|
1281
1288
|
LockName,
|
|
1282
1289
|
LockType,
|
|
1290
|
+
MaintenanceType,
|
|
1283
1291
|
MigrationName,
|
|
1284
1292
|
MigrationType,
|
|
1285
1293
|
MonthlyQuotaName,
|