@budibase/types 2.21.8 → 2.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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[];
@@ -15,6 +15,7 @@ export interface UpdateSelfRequest {
15
15
  password?: string;
16
16
  forceResetPassword?: boolean;
17
17
  onboardedAt?: string;
18
+ appFavourites?: string[];
18
19
  tours?: Record<string, Date>;
19
20
  }
20
21
  export interface UpdateSelfResponse {
@@ -2,3 +2,6 @@ export declare enum ServiceType {
2
2
  WORKER = "worker",
3
3
  APPS = "apps"
4
4
  }
5
+ export declare enum MaintenanceType {
6
+ SQS_MISSING = "sqs_missing"
7
+ }
@@ -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;
@@ -14,3 +14,4 @@ export * from "./backup";
14
14
  export * from "./webhook";
15
15
  export * from "./links";
16
16
  export * from "./component";
17
+ export * from "./snippet";
@@ -0,0 +1,4 @@
1
+ export interface Snippet {
2
+ name: string;
3
+ code: string;
4
+ }
@@ -27,6 +27,7 @@ export interface View {
27
27
  map?: string;
28
28
  reduce?: any;
29
29
  meta?: ViewTemplateOpts;
30
+ groupBy?: string;
30
31
  }
31
32
  export interface ViewV2 {
32
33
  version: 2;
@@ -46,6 +46,7 @@ export interface User extends Document {
46
46
  scimInfo?: {
47
47
  isSync: true;
48
48
  } & Record<string, any>;
49
+ appFavourites?: string[];
49
50
  ssoId?: string;
50
51
  }
51
52
  export declare enum UserStatus {
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,