@budibase/types 2.9.19 → 2.9.21-alpha.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.
Files changed (260) hide show
  1. package/dist/api/account/accounts.d.ts +17 -0
  2. package/dist/api/account/index.d.ts +4 -0
  3. package/dist/api/account/license.d.ts +31 -0
  4. package/dist/api/account/status.d.ts +7 -0
  5. package/{src/api/account/user.ts → dist/api/account/user.d.ts} +3 -4
  6. package/dist/api/index.d.ts +2 -0
  7. package/dist/api/web/analytics.d.ts +9 -0
  8. package/{src/api/web/app/backup.ts → dist/api/web/app/backup.d.ts} +10 -14
  9. package/{src/api/web/app/datasource.ts → dist/api/web/app/datasource.d.ts} +13 -21
  10. package/dist/api/web/app/index.d.ts +6 -0
  11. package/dist/api/web/app/row.d.ts +8 -0
  12. package/dist/api/web/app/rows.d.ts +16 -0
  13. package/dist/api/web/app/table.d.ts +12 -0
  14. package/dist/api/web/app/view.d.ts +10 -0
  15. package/dist/api/web/auth.d.ts +22 -0
  16. package/dist/api/web/debug.d.ts +11 -0
  17. package/dist/api/web/errors.d.ts +6 -0
  18. package/dist/api/web/global/auditLogs.d.ts +39 -0
  19. package/{src/api/web/global/configs.ts → dist/api/web/global/configs.d.ts} +11 -15
  20. package/{src/api/web/global/environmentVariables.ts → dist/api/web/global/environmentVariables.d.ts} +7 -10
  21. package/dist/api/web/global/events.d.ts +6 -0
  22. package/dist/api/web/global/index.d.ts +6 -0
  23. package/{src/api/web/global/license.ts → dist/api/web/global/license.d.ts} +5 -15
  24. package/dist/api/web/global/scim/groups.d.ts +27 -0
  25. package/dist/api/web/global/scim/index.d.ts +3 -0
  26. package/dist/api/web/global/scim/shared.d.ts +12 -0
  27. package/dist/api/web/global/scim/users.d.ts +48 -0
  28. package/dist/api/web/index.d.ts +11 -0
  29. package/dist/api/web/pagination.d.ts +23 -0
  30. package/dist/api/web/schedule.d.ts +10 -0
  31. package/dist/api/web/searchFilter.d.ts +48 -0
  32. package/dist/api/web/system/environment.d.ts +8 -0
  33. package/dist/api/web/system/index.d.ts +1 -0
  34. package/dist/api/web/user.d.ts +84 -0
  35. package/dist/core/index.d.ts +1 -0
  36. package/dist/core/installation.d.ts +4 -0
  37. package/dist/documents/account/account.d.ts +78 -0
  38. package/dist/documents/account/index.d.ts +2 -0
  39. package/{src/documents/account/user.ts → dist/documents/account/user.d.ts} +5 -6
  40. package/dist/documents/app/app.d.ts +61 -0
  41. package/dist/documents/app/automation.d.ts +192 -0
  42. package/dist/documents/app/backup.d.ts +63 -0
  43. package/dist/documents/app/component.d.ts +10 -0
  44. package/dist/documents/app/datasource.d.ts +49 -0
  45. package/dist/documents/app/index.d.ts +16 -0
  46. package/dist/documents/app/layout.d.ts +4 -0
  47. package/dist/documents/app/links.d.ts +19 -0
  48. package/dist/documents/app/query.d.ts +49 -0
  49. package/dist/documents/app/role.d.ts +9 -0
  50. package/dist/documents/app/row.d.ts +31 -0
  51. package/dist/documents/app/screen.d.ts +22 -0
  52. package/dist/documents/app/table/constants.d.ts +8 -0
  53. package/dist/documents/app/table/index.d.ts +3 -0
  54. package/dist/documents/app/table/schema.d.ts +71 -0
  55. package/dist/documents/app/table/table.d.ts +33 -0
  56. package/dist/documents/app/user.d.ts +5 -0
  57. package/dist/documents/app/view.d.ts +58 -0
  58. package/dist/documents/app/webhook.d.ts +13 -0
  59. package/dist/documents/document.d.ts +47 -0
  60. package/dist/documents/global/auditLogs.d.ts +16 -0
  61. package/dist/documents/global/config.d.ts +112 -0
  62. package/dist/documents/global/environmentVariables.d.ts +12 -0
  63. package/dist/documents/global/index.d.ts +9 -0
  64. package/dist/documents/global/plugin.d.ts +34 -0
  65. package/dist/documents/global/quotas.d.ts +63 -0
  66. package/dist/documents/global/schedule.d.ts +21 -0
  67. package/dist/documents/global/templates.d.ts +8 -0
  68. package/dist/documents/global/user.d.ts +74 -0
  69. package/dist/documents/global/userGroup.d.ts +32 -0
  70. package/dist/documents/index.d.ts +6 -0
  71. package/dist/documents/platform/accounts.d.ts +4 -0
  72. package/dist/documents/platform/index.d.ts +4 -0
  73. package/dist/documents/platform/info.d.ts +8 -0
  74. package/dist/documents/platform/tenants.d.ts +4 -0
  75. package/dist/documents/platform/users.d.ts +15 -0
  76. package/dist/documents/pouch.d.ts +28 -0
  77. package/dist/index.d.ts +5 -0
  78. package/dist/index.js +1159 -0
  79. package/dist/index.js.map +7 -0
  80. package/dist/index.js.meta.json +1 -0
  81. package/dist/sdk/auditLogs.d.ts +15 -0
  82. package/dist/sdk/auth.d.ts +30 -0
  83. package/dist/sdk/automations/index.d.ts +13 -0
  84. package/dist/sdk/cli/constants.d.ts +18 -0
  85. package/dist/sdk/cli/index.d.ts +1 -0
  86. package/dist/sdk/context.d.ts +18 -0
  87. package/dist/sdk/datasources.d.ts +159 -0
  88. package/dist/sdk/db.d.ts +91 -0
  89. package/dist/sdk/environmentVariables.d.ts +4 -0
  90. package/{src/sdk/events/account.ts → dist/sdk/events/account.d.ts} +6 -9
  91. package/dist/sdk/events/app.d.ts +74 -0
  92. package/dist/sdk/events/auditLog.d.ts +8 -0
  93. package/dist/sdk/events/auth.d.ts +29 -0
  94. package/dist/sdk/events/automation.d.ts +56 -0
  95. package/{src/sdk/events/backfill.ts → dist/sdk/events/backfill.d.ts} +26 -34
  96. package/dist/sdk/events/backup.d.ts +15 -0
  97. package/dist/sdk/events/datasource.d.ts +16 -0
  98. package/dist/sdk/events/email.d.ts +5 -0
  99. package/{src/sdk/events/environmentVariable.ts → dist/sdk/events/environmentVariable.d.ts} +5 -8
  100. package/dist/sdk/events/event.d.ts +155 -0
  101. package/dist/sdk/events/identification.d.ts +45 -0
  102. package/dist/sdk/events/index.d.ts +25 -0
  103. package/{src/sdk/events/layout.ts → dist/sdk/events/layout.d.ts} +3 -5
  104. package/dist/sdk/events/license.d.ts +28 -0
  105. package/dist/sdk/events/plugin.d.ts +23 -0
  106. package/dist/sdk/events/query.d.ts +34 -0
  107. package/dist/sdk/events/role.d.ts +24 -0
  108. package/{src/sdk/events/rows.ts → dist/sdk/events/rows.d.ts} +4 -6
  109. package/dist/sdk/events/screen.d.ts +17 -0
  110. package/{src/sdk/events/serve.ts → dist/sdk/events/serve.d.ts} +7 -10
  111. package/dist/sdk/events/table.d.ts +32 -0
  112. package/dist/sdk/events/user.d.ts +79 -0
  113. package/dist/sdk/events/userGroup.d.ts +49 -0
  114. package/{src/sdk/events/version.ts → dist/sdk/events/version.d.ts} +4 -6
  115. package/{src/sdk/events/view.ts → dist/sdk/events/view.d.ts} +16 -26
  116. package/dist/sdk/featureFlag.d.ts +6 -0
  117. package/dist/sdk/hosting.d.ts +4 -0
  118. package/dist/sdk/index.d.ts +22 -0
  119. package/dist/sdk/koa.d.ts +44 -0
  120. package/dist/sdk/licensing/billing.d.ts +21 -0
  121. package/dist/sdk/licensing/feature.d.ts +16 -0
  122. package/dist/sdk/licensing/index.d.ts +5 -0
  123. package/dist/sdk/licensing/license.d.ts +17 -0
  124. package/dist/sdk/licensing/plan.d.ts +41 -0
  125. package/dist/sdk/licensing/quota.d.ts +69 -0
  126. package/dist/sdk/locks.d.ts +47 -0
  127. package/dist/sdk/middleware/index.d.ts +2 -0
  128. package/dist/sdk/middleware/matchers.d.ts +21 -0
  129. package/dist/sdk/middleware/tenancy.d.ts +12 -0
  130. package/dist/sdk/migrations.d.ts +46 -0
  131. package/dist/sdk/permissions.d.ts +17 -0
  132. package/dist/sdk/row.d.ts +15 -0
  133. package/dist/sdk/search.d.ts +94 -0
  134. package/dist/sdk/sso.d.ts +24 -0
  135. package/dist/sdk/user.d.ts +5 -0
  136. package/dist/sdk/websocket.d.ts +9 -0
  137. package/dist/shared/index.d.ts +1 -0
  138. package/dist/shared/typeUtils.d.ts +7 -0
  139. package/package.json +4 -10
  140. package/src/api/account/accounts.ts +0 -22
  141. package/src/api/account/index.ts +0 -4
  142. package/src/api/account/license.ts +0 -39
  143. package/src/api/account/status.ts +0 -7
  144. package/src/api/index.ts +0 -2
  145. package/src/api/public/.keep +0 -0
  146. package/src/api/web/analytics.ts +0 -10
  147. package/src/api/web/app/index.ts +0 -6
  148. package/src/api/web/app/row.ts +0 -11
  149. package/src/api/web/app/rows.ts +0 -13
  150. package/src/api/web/app/table.ts +0 -13
  151. package/src/api/web/app/view.ts +0 -15
  152. package/src/api/web/auth.ts +0 -26
  153. package/src/api/web/debug.ts +0 -11
  154. package/src/api/web/errors.ts +0 -6
  155. package/src/api/web/global/auditLogs.ts +0 -51
  156. package/src/api/web/global/events.ts +0 -7
  157. package/src/api/web/global/index.ts +0 -6
  158. package/src/api/web/global/scim/groups.ts +0 -30
  159. package/src/api/web/global/scim/index.ts +0 -3
  160. package/src/api/web/global/scim/shared.ts +0 -14
  161. package/src/api/web/global/scim/users.ts +0 -53
  162. package/src/api/web/index.ts +0 -10
  163. package/src/api/web/pagination.ts +0 -27
  164. package/src/api/web/schedule.ts +0 -15
  165. package/src/api/web/system/environment.ts +0 -8
  166. package/src/api/web/system/index.ts +0 -1
  167. package/src/api/web/user.ts +0 -87
  168. package/src/core/index.ts +0 -1
  169. package/src/core/installation.ts +0 -4
  170. package/src/documents/account/account.ts +0 -108
  171. package/src/documents/account/index.ts +0 -2
  172. package/src/documents/app/app.ts +0 -69
  173. package/src/documents/app/automation.ts +0 -222
  174. package/src/documents/app/backup.ts +0 -71
  175. package/src/documents/app/component.ts +0 -9
  176. package/src/documents/app/datasource.ts +0 -56
  177. package/src/documents/app/index.ts +0 -16
  178. package/src/documents/app/layout.ts +0 -5
  179. package/src/documents/app/links.ts +0 -21
  180. package/src/documents/app/query.ts +0 -51
  181. package/src/documents/app/role.ts +0 -8
  182. package/src/documents/app/row.ts +0 -35
  183. package/src/documents/app/screen.ts +0 -25
  184. package/src/documents/app/table/constants.ts +0 -9
  185. package/src/documents/app/table/index.ts +0 -3
  186. package/src/documents/app/table/schema.ts +0 -98
  187. package/src/documents/app/table/table.ts +0 -30
  188. package/src/documents/app/user.ts +0 -6
  189. package/src/documents/app/view.ts +0 -66
  190. package/src/documents/app/webhook.ts +0 -15
  191. package/src/documents/document.ts +0 -51
  192. package/src/documents/global/auditLogs.ts +0 -19
  193. package/src/documents/global/config.ts +0 -137
  194. package/src/documents/global/environmentVariables.ts +0 -20
  195. package/src/documents/global/index.ts +0 -9
  196. package/src/documents/global/plugin.ts +0 -38
  197. package/src/documents/global/quotas.ts +0 -81
  198. package/src/documents/global/schedule.ts +0 -32
  199. package/src/documents/global/templates.ts +0 -9
  200. package/src/documents/global/user.ts +0 -95
  201. package/src/documents/global/userGroup.ts +0 -36
  202. package/src/documents/index.ts +0 -6
  203. package/src/documents/platform/accounts.ts +0 -5
  204. package/src/documents/platform/index.ts +0 -4
  205. package/src/documents/platform/info.ts +0 -9
  206. package/src/documents/platform/tenants.ts +0 -5
  207. package/src/documents/platform/users.ts +0 -18
  208. package/src/documents/pouch.ts +0 -32
  209. package/src/index.ts +0 -5
  210. package/src/sdk/auditLogs.ts +0 -22
  211. package/src/sdk/auth.ts +0 -37
  212. package/src/sdk/automations/index.ts +0 -16
  213. package/src/sdk/cli/constants.ts +0 -21
  214. package/src/sdk/cli/index.ts +0 -1
  215. package/src/sdk/context.ts +0 -22
  216. package/src/sdk/datasources.ts +0 -181
  217. package/src/sdk/db.ts +0 -116
  218. package/src/sdk/environmentVariables.ts +0 -4
  219. package/src/sdk/events/app.ts +0 -85
  220. package/src/sdk/events/auditLog.ts +0 -10
  221. package/src/sdk/events/auth.ts +0 -36
  222. package/src/sdk/events/automation.ts +0 -63
  223. package/src/sdk/events/backup.ts +0 -17
  224. package/src/sdk/events/datasource.ts +0 -19
  225. package/src/sdk/events/email.ts +0 -5
  226. package/src/sdk/events/event.ts +0 -424
  227. package/src/sdk/events/identification.ts +0 -60
  228. package/src/sdk/events/index.ts +0 -25
  229. package/src/sdk/events/license.ts +0 -36
  230. package/src/sdk/events/plugin.ts +0 -26
  231. package/src/sdk/events/query.ts +0 -40
  232. package/src/sdk/events/role.ts +0 -29
  233. package/src/sdk/events/screen.ts +0 -19
  234. package/src/sdk/events/table.ts +0 -37
  235. package/src/sdk/events/user.ts +0 -92
  236. package/src/sdk/events/userGroup.ts +0 -56
  237. package/src/sdk/featureFlag.ts +0 -7
  238. package/src/sdk/hosting.ts +0 -4
  239. package/src/sdk/index.ts +0 -21
  240. package/src/sdk/koa.ts +0 -50
  241. package/src/sdk/licensing/billing.ts +0 -24
  242. package/src/sdk/licensing/feature.ts +0 -16
  243. package/src/sdk/licensing/index.ts +0 -5
  244. package/src/sdk/licensing/license.ts +0 -20
  245. package/src/sdk/licensing/plan.ts +0 -47
  246. package/src/sdk/licensing/quota.ts +0 -99
  247. package/src/sdk/locks.ts +0 -50
  248. package/src/sdk/middleware/index.ts +0 -2
  249. package/src/sdk/middleware/matchers.ts +0 -22
  250. package/src/sdk/middleware/tenancy.ts +0 -13
  251. package/src/sdk/migrations.ts +0 -55
  252. package/src/sdk/permissions.ts +0 -19
  253. package/src/sdk/search.ts +0 -101
  254. package/src/sdk/sso.ts +0 -37
  255. package/src/sdk/user.ts +0 -5
  256. package/src/sdk/websocket.ts +0 -9
  257. package/src/shared/index.ts +0 -1
  258. package/src/shared/typeUtils.ts +0 -9
  259. package/tsconfig.build.json +0 -18
  260. package/tsconfig.json +0 -10
@@ -0,0 +1,17 @@
1
+ import { Account } from "../../documents";
2
+ import { Hosting } from "../../sdk";
3
+ export interface CreateAccountRequest {
4
+ email: string;
5
+ tenantId: string;
6
+ hosting: Hosting;
7
+ size: string;
8
+ profession: string;
9
+ tenantName?: string;
10
+ name?: string;
11
+ password: string;
12
+ }
13
+ export interface SearchAccountsRequest {
14
+ email?: string;
15
+ tenantId?: string;
16
+ }
17
+ export declare type SearchAccountsResponse = Account[];
@@ -0,0 +1,4 @@
1
+ export * from "./accounts";
2
+ export * from "./user";
3
+ export * from "./license";
4
+ export * from "./status";
@@ -0,0 +1,31 @@
1
+ import { LicenseOverrides, QuotaUsage } from "../../documents";
2
+ import { OfflineLicense, PlanType } from "../../sdk";
3
+ import { ISO8601 } from "../../shared";
4
+ export interface GetLicenseRequest {
5
+ quotaUsage?: QuotaUsage;
6
+ install: {
7
+ id: string;
8
+ tenantId: string;
9
+ version: string;
10
+ };
11
+ }
12
+ export interface QuotaTriggeredRequest {
13
+ percentage: number;
14
+ name: string;
15
+ resetDate?: string;
16
+ }
17
+ export interface LicenseActivateRequest {
18
+ installVersion?: string;
19
+ }
20
+ export interface UpdateLicenseRequest {
21
+ planType?: PlanType;
22
+ overrides?: LicenseOverrides;
23
+ }
24
+ export interface CreateOfflineLicenseRequest {
25
+ installationIdentifierBase64: string;
26
+ expireAt: ISO8601;
27
+ }
28
+ export interface GetOfflineLicenseResponse {
29
+ offlineLicenseToken: string;
30
+ license: OfflineLicense;
31
+ }
@@ -0,0 +1,7 @@
1
+ export interface HealthStatusResponse {
2
+ passing: boolean;
3
+ checks: {
4
+ login: boolean;
5
+ search: boolean;
6
+ };
7
+ }
@@ -1,8 +1,7 @@
1
1
  export interface PostAccountUserActivity {
2
- timestamp: number
2
+ timestamp: number;
3
3
  }
4
-
5
4
  export interface PostAccountUserActivityResponse {
6
- userId: string
7
- timestamp: number
5
+ userId: string;
6
+ timestamp: number;
8
7
  }
@@ -0,0 +1,2 @@
1
+ export * from "./account";
2
+ export * from "./web";
@@ -0,0 +1,9 @@
1
+ export declare enum PingSource {
2
+ BUILDER = "builder",
3
+ APP = "app"
4
+ }
5
+ export interface AnalyticsPingRequest {
6
+ source: PingSource;
7
+ timezone: string;
8
+ embedded?: boolean;
9
+ }
@@ -1,22 +1,18 @@
1
- import { AppBackupTrigger, AppBackupType } from "../../../documents"
2
-
1
+ import { AppBackupTrigger, AppBackupType } from "../../../documents";
3
2
  export interface SearchAppBackupsRequest {
4
- trigger: AppBackupTrigger
5
- type: AppBackupType
6
- startDate: string
7
- endDate: string
8
- page?: string
3
+ trigger: AppBackupTrigger;
4
+ type: AppBackupType;
5
+ startDate: string;
6
+ endDate: string;
7
+ page?: string;
9
8
  }
10
-
11
9
  export interface CreateAppBackupRequest {
12
- name: string
10
+ name: string;
13
11
  }
14
-
15
12
  export interface CreateAppBackupResponse {
16
- backupId: string
17
- message: string
13
+ backupId: string;
14
+ message: string;
18
15
  }
19
-
20
16
  export interface UpdateAppBackupRequest {
21
- name: string
17
+ name: string;
22
18
  }
@@ -1,37 +1,29 @@
1
- import { Datasource } from "../../../documents"
2
-
1
+ import { Datasource } from "../../../documents";
3
2
  export interface CreateDatasourceResponse {
4
- datasource: Datasource
5
- error?: any
3
+ datasource: Datasource;
4
+ error?: any;
6
5
  }
7
-
8
6
  export interface UpdateDatasourceResponse {
9
- datasource: Datasource
7
+ datasource: Datasource;
10
8
  }
11
-
12
9
  export interface CreateDatasourceRequest {
13
- datasource: Datasource
14
- fetchSchema?: boolean
15
- tablesFilter: string[]
10
+ datasource: Datasource;
11
+ fetchSchema?: boolean;
12
+ tablesFilter: string[];
16
13
  }
17
-
18
14
  export interface VerifyDatasourceRequest {
19
- datasource: Datasource
15
+ datasource: Datasource;
20
16
  }
21
-
22
17
  export interface VerifyDatasourceResponse {
23
- connected: boolean
24
- error?: string
18
+ connected: boolean;
19
+ error?: string;
25
20
  }
26
-
27
21
  export interface FetchDatasourceInfoRequest {
28
- datasource: Datasource
22
+ datasource: Datasource;
29
23
  }
30
-
31
24
  export interface FetchDatasourceInfoResponse {
32
- tableNames: string[]
25
+ tableNames: string[];
33
26
  }
34
-
35
27
  export interface UpdateDatasourceRequest extends Datasource {
36
- datasource: Datasource
28
+ datasource: Datasource;
37
29
  }
@@ -0,0 +1,6 @@
1
+ export * from "./backup";
2
+ export * from "./datasource";
3
+ export * from "./row";
4
+ export * from "./view";
5
+ export * from "./rows";
6
+ export * from "./table";
@@ -0,0 +1,8 @@
1
+ import { Row } from "../../../documents/app/row";
2
+ export interface DeleteRows {
3
+ rows: (Row | string)[];
4
+ }
5
+ export interface DeleteRow {
6
+ _id: string;
7
+ }
8
+ export declare type DeleteRowRequest = DeleteRows | DeleteRow;
@@ -0,0 +1,16 @@
1
+ import { SearchParams } from "../../../sdk";
2
+ import { Row } from "../../../documents";
3
+ export interface PatchRowRequest extends Row {
4
+ _id: string;
5
+ _rev: string;
6
+ tableId: string;
7
+ }
8
+ export interface PatchRowResponse extends Row {
9
+ }
10
+ export interface SearchRowRequest extends Omit<SearchParams, "tableId"> {
11
+ }
12
+ export interface SearchViewRowRequest extends Pick<SearchRowRequest, "sort" | "sortOrder" | "sortType" | "limit" | "bookmark" | "paginate"> {
13
+ }
14
+ export interface SearchRowResponse {
15
+ rows: any[];
16
+ }
@@ -0,0 +1,12 @@
1
+ import { Table, TableSchema, View, ViewV2 } from "../../../documents";
2
+ interface ViewV2Response extends ViewV2 {
3
+ schema: TableSchema;
4
+ }
5
+ export declare type TableViewsResponse = {
6
+ [key: string]: View | ViewV2Response;
7
+ };
8
+ export interface TableResponse extends Table {
9
+ views?: TableViewsResponse;
10
+ }
11
+ export declare type FetchTablesResponse = TableResponse[];
12
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ViewV2, UIFieldMetadata } from "../../../documents";
2
+ export interface ViewResponse {
3
+ data: ViewV2;
4
+ }
5
+ export interface CreateViewRequest extends Omit<ViewV2, "version" | "id" | "columns" | "schemaUI"> {
6
+ schema?: Record<string, UIFieldMetadata>;
7
+ }
8
+ export interface UpdateViewRequest extends Omit<ViewV2, "columns" | "schemaUI"> {
9
+ schema?: Record<string, UIFieldMetadata>;
10
+ }
@@ -0,0 +1,22 @@
1
+ export interface LoginRequest {
2
+ username: string;
3
+ password: string;
4
+ }
5
+ export interface PasswordResetRequest {
6
+ email: string;
7
+ }
8
+ export interface PasswordResetUpdateRequest {
9
+ resetCode: string;
10
+ password: string;
11
+ }
12
+ export interface UpdateSelfRequest {
13
+ firstName?: string;
14
+ lastName?: string;
15
+ password?: string;
16
+ forceResetPassword?: boolean;
17
+ onboardedAt?: string;
18
+ }
19
+ export interface UpdateSelfResponse {
20
+ _id: string;
21
+ _rev: string;
22
+ }
@@ -0,0 +1,11 @@
1
+ export interface GetDiagnosticsResponse {
2
+ budibaseVersion: string;
3
+ hosting: string;
4
+ nodeVersion: string;
5
+ platform: string;
6
+ cpuArch: string;
7
+ cpuCores: number;
8
+ cpuInfo: string;
9
+ totalMemory: string;
10
+ uptime: string;
11
+ }
@@ -0,0 +1,6 @@
1
+ export interface APIError {
2
+ message: string;
3
+ status: number;
4
+ error?: any;
5
+ validationErrors?: any;
6
+ }
@@ -0,0 +1,39 @@
1
+ import { Event } from "../../../sdk";
2
+ import { PaginationResponse, BasicPaginationRequest } from "../";
3
+ import { User, App } from "../../../";
4
+ export interface AuditLogSearchParams {
5
+ userIds?: string[];
6
+ appIds?: string[];
7
+ events?: Event[];
8
+ startDate?: string;
9
+ endDate?: string;
10
+ fullSearch?: string;
11
+ bookmark?: string;
12
+ }
13
+ export interface DownloadAuditLogsRequest extends AuditLogSearchParams {
14
+ }
15
+ export interface SearchAuditLogsRequest extends BasicPaginationRequest, AuditLogSearchParams {
16
+ }
17
+ export declare enum AuditLogResourceStatus {
18
+ DELETED = "deleted"
19
+ }
20
+ export declare type DeletedResourceInfo = {
21
+ _id: string;
22
+ status: AuditLogResourceStatus;
23
+ email?: string;
24
+ name?: string;
25
+ };
26
+ export interface AuditLogEnriched {
27
+ app?: App | DeletedResourceInfo;
28
+ user: User | DeletedResourceInfo;
29
+ event: Event;
30
+ timestamp: string;
31
+ name: string;
32
+ metadata: any;
33
+ }
34
+ export interface SearchAuditLogsResponse extends PaginationResponse {
35
+ data: AuditLogEnriched[];
36
+ }
37
+ export interface DefinitionsAuditLogsResponse {
38
+ events: Record<string, string>;
39
+ }
@@ -1,24 +1,20 @@
1
- import { SettingsConfig, SettingsInnerConfig } from "../../../documents"
2
-
1
+ import { SettingsConfig, SettingsInnerConfig } from "../../../documents";
3
2
  /**
4
3
  * Settings that aren't stored in the database - enriched at runtime.
5
4
  */
6
5
  export interface PublicSettingsInnerConfig extends SettingsInnerConfig {
7
- google: boolean
8
- googleDatasourceConfigured: boolean
9
- oidc: boolean
10
- oidcCallbackUrl: string
11
- googleCallbackUrl: string
6
+ google: boolean;
7
+ googleDatasourceConfigured: boolean;
8
+ oidc: boolean;
9
+ oidcCallbackUrl: string;
10
+ googleCallbackUrl: string;
12
11
  }
13
-
14
12
  export interface GetPublicSettingsResponse extends SettingsConfig {
15
- config: PublicSettingsInnerConfig
13
+ config: PublicSettingsInnerConfig;
16
14
  }
17
-
18
15
  export interface PublicOIDCConfig {
19
- logo?: string
20
- name?: string
21
- uuid?: string
16
+ logo?: string;
17
+ name?: string;
18
+ uuid?: string;
22
19
  }
23
-
24
- export type GetPublicOIDCConfigResponse = PublicOIDCConfig[]
20
+ export declare type GetPublicOIDCConfigResponse = PublicOIDCConfig[];
@@ -1,18 +1,15 @@
1
1
  export interface StatusEnvironmentVariableResponse {
2
- encryptionKeyAvailable: boolean
2
+ encryptionKeyAvailable: boolean;
3
3
  }
4
-
5
4
  export interface CreateEnvironmentVariableRequest {
6
- name: string
7
- production: string
8
- development: string
5
+ name: string;
6
+ production: string;
7
+ development: string;
9
8
  }
10
-
11
9
  export interface UpdateEnvironmentVariableRequest {
12
- production: string
13
- development: string
10
+ production: string;
11
+ development: string;
14
12
  }
15
-
16
13
  export interface GetEnvironmentVariablesResponse {
17
- variables: string[]
14
+ variables: string[];
18
15
  }
@@ -0,0 +1,6 @@
1
+ export declare enum EventPublishType {
2
+ ENVIRONMENT_VARIABLE_UPGRADE_PANEL_OPENED = "environment_variable_upgrade_panel_opened"
3
+ }
4
+ export interface PostEventPublishRequest {
5
+ type: EventPublishType;
6
+ }
@@ -0,0 +1,6 @@
1
+ export * from "./environmentVariables";
2
+ export * from "./auditLogs";
3
+ export * from "./events";
4
+ export * from "./configs";
5
+ export * from "./scim";
6
+ export * from "./license";
@@ -1,25 +1,15 @@
1
- // LICENSE KEY
2
-
3
1
  export interface ActivateLicenseKeyRequest {
4
- licenseKey: string
2
+ licenseKey: string;
5
3
  }
6
-
7
4
  export interface GetLicenseKeyResponse {
8
- licenseKey: string
5
+ licenseKey: string;
9
6
  }
10
-
11
- // OFFLINE LICENSE
12
-
13
7
  export interface ActivateOfflineLicenseTokenRequest {
14
- offlineLicenseToken: string
8
+ offlineLicenseToken: string;
15
9
  }
16
-
17
10
  export interface GetOfflineLicenseTokenResponse {
18
- offlineLicenseToken: string
11
+ offlineLicenseToken: string;
19
12
  }
20
-
21
- // IDENTIFIER
22
-
23
13
  export interface GetOfflineIdentifierResponse {
24
- identifierBase64: string
14
+ identifierBase64: string;
25
15
  }
@@ -0,0 +1,27 @@
1
+ import { ScimResource, ScimMeta } from "scim-patch";
2
+ import { ScimListResponse } from "./shared";
3
+ export interface ScimGroupResponse extends ScimResource {
4
+ schemas: ["urn:ietf:params:scim:schemas:core:2.0:Group"];
5
+ id: string;
6
+ externalId: string;
7
+ displayName: string;
8
+ meta: ScimMeta & {
9
+ resourceType: "Group";
10
+ };
11
+ members?: {
12
+ value: string;
13
+ }[];
14
+ }
15
+ export interface ScimCreateGroupRequest {
16
+ schemas: [
17
+ "urn:ietf:params:scim:schemas:core:2.0:Group",
18
+ "http://schemas.microsoft.com/2006/11/ResourceManagement/ADSCIM/2.0/Group"
19
+ ];
20
+ externalId: string;
21
+ displayName: string;
22
+ meta: ScimMeta & {
23
+ resourceType: "Group";
24
+ };
25
+ }
26
+ export interface ScimGroupListResponse extends ScimListResponse<ScimGroupResponse> {
27
+ }
@@ -0,0 +1,3 @@
1
+ export * from "./users";
2
+ export * from "./groups";
3
+ export * from "./shared";
@@ -0,0 +1,12 @@
1
+ import { ScimPatchOperation } from "scim-patch";
2
+ export interface ScimListResponse<T> {
3
+ schemas: ["urn:ietf:params:scim:api:messages:2.0:ListResponse"];
4
+ totalResults: number;
5
+ Resources: T[];
6
+ startIndex: number;
7
+ itemsPerPage: number;
8
+ }
9
+ export interface ScimUpdateRequest {
10
+ schemas: ["urn:ietf:params:scim:api:messages:2.0:PatchOp"];
11
+ Operations: ScimPatchOperation[];
12
+ }
@@ -0,0 +1,48 @@
1
+ import { ScimResource, ScimMeta } from "scim-patch";
2
+ import { ScimListResponse } from "./shared";
3
+ declare type BooleanString = boolean | "True" | "true" | "False" | "false";
4
+ declare type Emails = {
5
+ value: string;
6
+ type: "work";
7
+ primary: boolean;
8
+ }[];
9
+ export interface ScimUserResponse extends ScimResource {
10
+ schemas: ["urn:ietf:params:scim:schemas:core:2.0:User"];
11
+ id: string;
12
+ externalId: string;
13
+ meta: ScimMeta & {
14
+ resourceType: "User";
15
+ };
16
+ userName: string;
17
+ displayName?: string;
18
+ name?: {
19
+ formatted?: string;
20
+ familyName?: string;
21
+ givenName?: string;
22
+ };
23
+ active: BooleanString;
24
+ emails?: Emails;
25
+ }
26
+ export interface ScimCreateUserRequest {
27
+ schemas: [
28
+ "urn:ietf:params:scim:schemas:core:2.0:User",
29
+ "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User"
30
+ ];
31
+ externalId: string;
32
+ userName: string;
33
+ active: BooleanString;
34
+ emails?: Emails;
35
+ meta: {
36
+ resourceType: "User";
37
+ };
38
+ displayName?: string;
39
+ name?: {
40
+ formatted: string;
41
+ familyName: string;
42
+ givenName: string;
43
+ };
44
+ roles: [];
45
+ }
46
+ export interface ScimUserListResponse extends ScimListResponse<ScimUserResponse> {
47
+ }
48
+ export {};
@@ -0,0 +1,11 @@
1
+ export * from "./analytics";
2
+ export * from "./auth";
3
+ export * from "./user";
4
+ export * from "./errors";
5
+ export * from "./debug";
6
+ export * from "./schedule";
7
+ export * from "./system";
8
+ export * from "./app";
9
+ export * from "./global";
10
+ export * from "./pagination";
11
+ export * from "./searchFilter";
@@ -0,0 +1,23 @@
1
+ export declare enum SortOrder {
2
+ ASCENDING = "ascending",
3
+ DESCENDING = "descending"
4
+ }
5
+ export declare enum SortType {
6
+ STRING = "string",
7
+ number = "number"
8
+ }
9
+ export interface BasicPaginationRequest {
10
+ bookmark?: string;
11
+ }
12
+ export interface PaginationRequest extends BasicPaginationRequest {
13
+ limit?: number;
14
+ sort?: {
15
+ order: SortOrder;
16
+ column: string;
17
+ type: SortType;
18
+ };
19
+ }
20
+ export interface PaginationResponse {
21
+ bookmark: string | undefined;
22
+ hasNextPage: boolean;
23
+ }
@@ -0,0 +1,10 @@
1
+ import { ScheduleMetadata, ScheduleRepeatPeriod, ScheduleType } from "../../documents";
2
+ export interface CreateScheduleRequest {
3
+ type: ScheduleType;
4
+ name: string;
5
+ startDate: string;
6
+ repeat: ScheduleRepeatPeriod;
7
+ metadata: ScheduleMetadata;
8
+ }
9
+ export interface UpdateScheduleRequest extends CreateScheduleRequest {
10
+ }
@@ -0,0 +1,48 @@
1
+ import { FieldType } from "../../documents";
2
+ export declare type SearchFilter = {
3
+ operator: keyof SearchQuery;
4
+ field: string;
5
+ type?: FieldType;
6
+ value: any;
7
+ externalType?: string;
8
+ };
9
+ export declare type SearchQuery = {
10
+ allOr?: boolean;
11
+ string?: {
12
+ [key: string]: string;
13
+ };
14
+ fuzzy?: {
15
+ [key: string]: string;
16
+ };
17
+ range?: {
18
+ [key: string]: {
19
+ high: number | string;
20
+ low: number | string;
21
+ };
22
+ };
23
+ equal?: {
24
+ [key: string]: any;
25
+ };
26
+ notEqual?: {
27
+ [key: string]: any;
28
+ };
29
+ empty?: {
30
+ [key: string]: any;
31
+ };
32
+ notEmpty?: {
33
+ [key: string]: any;
34
+ };
35
+ oneOf?: {
36
+ [key: string]: any[];
37
+ };
38
+ contains?: {
39
+ [key: string]: any[];
40
+ };
41
+ notContains?: {
42
+ [key: string]: any[];
43
+ };
44
+ containsAny?: {
45
+ [key: string]: any[];
46
+ };
47
+ };
48
+ export declare type SearchQueryFields = Omit<SearchQuery, "allOr">;
@@ -0,0 +1,8 @@
1
+ export interface GetEnvironmentResponse {
2
+ multiTenancy: boolean;
3
+ cloud: boolean;
4
+ accountPortalUrl: string;
5
+ baseUrl: string;
6
+ disableAccountPortal: boolean;
7
+ isDev: boolean;
8
+ }
@@ -0,0 +1 @@
1
+ export * from "./environment";