@budibase/types 2.8.28 → 2.8.29-alpha.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.
Files changed (107) hide show
  1. package/dist/cjs/api/account/accounts.d.ts +6 -0
  2. package/dist/cjs/api/web/app/index.d.ts +4 -0
  3. package/dist/cjs/api/web/app/index.js +4 -0
  4. package/dist/cjs/api/web/app/index.js.map +1 -1
  5. package/dist/cjs/api/web/app/row.d.ts +8 -0
  6. package/dist/cjs/api/web/app/row.js +3 -0
  7. package/dist/cjs/api/web/app/row.js.map +1 -0
  8. package/dist/cjs/api/web/app/rows.d.ts +11 -0
  9. package/dist/cjs/api/web/app/rows.js +3 -0
  10. package/dist/cjs/api/web/app/rows.js.map +1 -0
  11. package/dist/cjs/api/web/app/table.d.ts +12 -0
  12. package/dist/cjs/api/web/app/table.js +3 -0
  13. package/dist/cjs/api/web/app/table.js.map +1 -0
  14. package/dist/cjs/api/web/app/view.d.ts +6 -0
  15. package/dist/cjs/api/web/app/view.js +3 -0
  16. package/dist/cjs/api/web/app/view.js.map +1 -0
  17. package/dist/cjs/api/web/debug.d.ts +11 -0
  18. package/dist/cjs/api/web/debug.js +3 -0
  19. package/dist/cjs/api/web/debug.js.map +1 -0
  20. package/dist/cjs/api/web/index.d.ts +1 -0
  21. package/dist/cjs/api/web/index.js +1 -0
  22. package/dist/cjs/api/web/index.js.map +1 -1
  23. package/dist/cjs/documents/app/app.d.ts +2 -0
  24. package/dist/cjs/documents/app/row.d.ts +1 -0
  25. package/dist/cjs/documents/app/table/constants.d.ts +8 -0
  26. package/dist/cjs/documents/app/table/constants.js +14 -0
  27. package/dist/cjs/documents/app/table/constants.js.map +1 -0
  28. package/dist/cjs/documents/app/table/index.d.ts +3 -0
  29. package/dist/cjs/documents/app/table/index.js +20 -0
  30. package/dist/cjs/documents/app/table/index.js.map +1 -0
  31. package/dist/cjs/documents/app/table/schema.d.ts +71 -0
  32. package/dist/cjs/documents/app/table/schema.js +3 -0
  33. package/dist/cjs/documents/app/table/schema.js.map +1 -0
  34. package/dist/cjs/documents/app/table/table.d.ts +33 -0
  35. package/dist/cjs/documents/app/table/table.js +3 -0
  36. package/dist/cjs/documents/app/table/table.js.map +1 -0
  37. package/dist/cjs/documents/app/view.d.ts +16 -0
  38. package/dist/cjs/documents/app/view.js.map +1 -1
  39. package/dist/cjs/sdk/db.d.ts +1 -1
  40. package/dist/cjs/sdk/search.d.ts +1 -1
  41. package/dist/cjs/tsconfig-cjs.build.tsbuildinfo +1 -1
  42. package/dist/mjs/api/account/accounts.d.ts +6 -0
  43. package/dist/mjs/api/web/app/index.d.ts +4 -0
  44. package/dist/mjs/api/web/app/index.js +4 -0
  45. package/dist/mjs/api/web/app/index.js.map +1 -1
  46. package/dist/mjs/api/web/app/row.d.ts +8 -0
  47. package/dist/mjs/api/web/app/row.js +2 -0
  48. package/dist/mjs/api/web/app/row.js.map +1 -0
  49. package/dist/mjs/api/web/app/rows.d.ts +11 -0
  50. package/dist/mjs/api/web/app/rows.js +2 -0
  51. package/dist/mjs/api/web/app/rows.js.map +1 -0
  52. package/dist/mjs/api/web/app/table.d.ts +12 -0
  53. package/dist/mjs/api/web/app/table.js +2 -0
  54. package/dist/mjs/api/web/app/table.js.map +1 -0
  55. package/dist/mjs/api/web/app/view.d.ts +6 -0
  56. package/dist/mjs/api/web/app/view.js +2 -0
  57. package/dist/mjs/api/web/app/view.js.map +1 -0
  58. package/dist/mjs/api/web/debug.d.ts +11 -0
  59. package/dist/mjs/api/web/debug.js +2 -0
  60. package/dist/mjs/api/web/debug.js.map +1 -0
  61. package/dist/mjs/api/web/index.d.ts +1 -0
  62. package/dist/mjs/api/web/index.js +1 -0
  63. package/dist/mjs/api/web/index.js.map +1 -1
  64. package/dist/mjs/documents/app/app.d.ts +2 -0
  65. package/dist/mjs/documents/app/row.d.ts +1 -0
  66. package/dist/mjs/documents/app/table/constants.d.ts +8 -0
  67. package/dist/mjs/documents/app/table/constants.js +11 -0
  68. package/dist/mjs/documents/app/table/constants.js.map +1 -0
  69. package/dist/mjs/documents/app/table/index.d.ts +3 -0
  70. package/dist/mjs/documents/app/table/index.js +4 -0
  71. package/dist/mjs/documents/app/table/index.js.map +1 -0
  72. package/dist/mjs/documents/app/table/schema.d.ts +71 -0
  73. package/dist/mjs/documents/app/table/schema.js +2 -0
  74. package/dist/mjs/documents/app/table/schema.js.map +1 -0
  75. package/dist/mjs/documents/app/table/table.d.ts +33 -0
  76. package/dist/mjs/documents/app/table/table.js +2 -0
  77. package/dist/mjs/documents/app/table/table.js.map +1 -0
  78. package/dist/mjs/documents/app/view.d.ts +16 -0
  79. package/dist/mjs/documents/app/view.js.map +1 -1
  80. package/dist/mjs/sdk/db.d.ts +1 -1
  81. package/dist/mjs/sdk/search.d.ts +1 -1
  82. package/dist/mjs/tsconfig.build.tsbuildinfo +1 -1
  83. package/package.json +2 -2
  84. package/src/api/account/accounts.ts +9 -0
  85. package/src/api/web/app/index.ts +4 -0
  86. package/src/api/web/app/row.ts +11 -0
  87. package/src/api/web/app/rows.ts +13 -0
  88. package/src/api/web/app/table.ts +13 -0
  89. package/src/api/web/app/view.ts +9 -0
  90. package/src/api/web/debug.ts +11 -0
  91. package/src/api/web/index.ts +1 -0
  92. package/src/documents/app/app.ts +2 -0
  93. package/src/documents/app/row.ts +1 -0
  94. package/src/documents/app/table/constants.ts +9 -0
  95. package/src/documents/app/table/index.ts +3 -0
  96. package/src/documents/app/table/schema.ts +98 -0
  97. package/src/documents/app/table/table.ts +30 -0
  98. package/src/documents/app/view.ts +18 -0
  99. package/src/sdk/db.ts +1 -1
  100. package/src/sdk/search.ts +1 -1
  101. package/dist/cjs/documents/app/table.d.ts +0 -94
  102. package/dist/cjs/documents/app/table.js +0 -14
  103. package/dist/cjs/documents/app/table.js.map +0 -1
  104. package/dist/mjs/documents/app/table.d.ts +0 -94
  105. package/dist/mjs/documents/app/table.js +0 -11
  106. package/dist/mjs/documents/app/table.js.map +0 -1
  107. package/src/documents/app/table.ts +0 -97
@@ -1,3 +1,4 @@
1
+ import { Account } from "../../documents";
1
2
  import { Hosting } from "../../sdk";
2
3
  export interface CreateAccountRequest {
3
4
  email: string;
@@ -9,3 +10,8 @@ export interface CreateAccountRequest {
9
10
  name?: string;
10
11
  password: string;
11
12
  }
13
+ export interface SearchAccountsRequest {
14
+ email?: string;
15
+ tenantId?: string;
16
+ }
17
+ export declare type SearchAccountsResponse = Account[];
@@ -1,2 +1,6 @@
1
1
  export * from "./backup";
2
2
  export * from "./datasource";
3
+ export * from "./row";
4
+ export * from "./view";
5
+ export * from "./rows";
6
+ export * from "./table";
@@ -16,4 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./backup"), exports);
18
18
  __exportStar(require("./datasource"), exports);
19
+ __exportStar(require("./row"), exports);
20
+ __exportStar(require("./view"), exports);
21
+ __exportStar(require("./rows"), exports);
22
+ __exportStar(require("./table"), exports);
19
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/web/app/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,+CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/web/app/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,+CAA4B;AAC5B,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB"}
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=row.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"row.js","sourceRoot":"","sources":["../../../../../src/api/web/app/row.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { Row } from "../../../documents";
2
+ export interface PatchRowRequest extends Row {
3
+ _id: string;
4
+ _rev: string;
5
+ tableId: string;
6
+ }
7
+ export interface PatchRowResponse extends Row {
8
+ }
9
+ export interface SearchResponse {
10
+ rows: any[];
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=rows.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rows.js","sourceRoot":"","sources":["../../../../../src/api/web/app/rows.ts"],"names":[],"mappings":""}
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../../src/api/web/app/table.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import { ViewV2 } from "../../../documents";
2
+ export interface ViewResponse {
3
+ data: ViewV2;
4
+ }
5
+ export declare type CreateViewRequest = Omit<ViewV2, "version" | "id">;
6
+ export declare type UpdateViewRequest = ViewV2;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../src/api/web/app/view.ts"],"names":[],"mappings":""}
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=debug.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"debug.js","sourceRoot":"","sources":["../../../../src/api/web/debug.ts"],"names":[],"mappings":""}
@@ -2,6 +2,7 @@ export * from "./analytics";
2
2
  export * from "./auth";
3
3
  export * from "./user";
4
4
  export * from "./errors";
5
+ export * from "./debug";
5
6
  export * from "./schedule";
6
7
  export * from "./system";
7
8
  export * from "./app";
@@ -18,6 +18,7 @@ __exportStar(require("./analytics"), exports);
18
18
  __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./user"), exports);
20
20
  __exportStar(require("./errors"), exports);
21
+ __exportStar(require("./debug"), exports);
21
22
  __exportStar(require("./schedule"), exports);
22
23
  __exportStar(require("./system"), exports);
23
24
  __exportStar(require("./app"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/web/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,yCAAsB;AACtB,yCAAsB;AACtB,2CAAwB;AACxB,6CAA0B;AAC1B,2CAAwB;AACxB,wCAAqB;AACrB,2CAAwB;AACxB,+CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/web/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,yCAAsB;AACtB,yCAAsB;AACtB,2CAAwB;AACxB,0CAAuB;AACvB,6CAA0B;AAC1B,2CAAwB;AACxB,wCAAqB;AACrB,2CAAwB;AACxB,+CAA4B"}
@@ -1,4 +1,5 @@
1
1
  import { User, Document } from "../";
2
+ import { SocketSession } from "../../sdk";
2
3
  export declare type AppMetadataErrors = {
3
4
  [key: string]: string[];
4
5
  };
@@ -17,6 +18,7 @@ export interface App extends Document {
17
18
  customTheme?: AppCustomTheme;
18
19
  revertableVersion?: string;
19
20
  lockedBy?: User;
21
+ sessions?: SocketSession[];
20
22
  navigation?: AppNavigation;
21
23
  automationErrors?: AppMetadataErrors;
22
24
  icon?: AppIcon;
@@ -26,5 +26,6 @@ export interface RowAttachment {
26
26
  export interface Row extends Document {
27
27
  type?: string;
28
28
  tableId?: string;
29
+ _viewId?: string;
29
30
  [key: string]: any;
30
31
  }
@@ -0,0 +1,8 @@
1
+ export declare enum RelationshipType {
2
+ ONE_TO_MANY = "one-to-many",
3
+ MANY_TO_ONE = "many-to-one",
4
+ MANY_TO_MANY = "many-to-many"
5
+ }
6
+ export declare enum AutoReason {
7
+ FOREIGN_KEY = "foreign_key"
8
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AutoReason = exports.RelationshipType = void 0;
4
+ var RelationshipType;
5
+ (function (RelationshipType) {
6
+ RelationshipType["ONE_TO_MANY"] = "one-to-many";
7
+ RelationshipType["MANY_TO_ONE"] = "many-to-one";
8
+ RelationshipType["MANY_TO_MANY"] = "many-to-many";
9
+ })(RelationshipType = exports.RelationshipType || (exports.RelationshipType = {}));
10
+ var AutoReason;
11
+ (function (AutoReason) {
12
+ AutoReason["FOREIGN_KEY"] = "foreign_key";
13
+ })(AutoReason = exports.AutoReason || (exports.AutoReason = {}));
14
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../src/documents/app/table/constants.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,+CAA2B,CAAA;IAC3B,+CAA2B,CAAA;IAC3B,iDAA6B,CAAA;AAC/B,CAAC,EAJW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAI3B;AAED,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,yCAA2B,CAAA;AAC7B,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB"}
@@ -0,0 +1,3 @@
1
+ export * from "./table";
2
+ export * from "./schema";
3
+ export * from "./constants";
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./table"), exports);
18
+ __exportStar(require("./schema"), exports);
19
+ __exportStar(require("./constants"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/documents/app/table/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B"}
@@ -0,0 +1,71 @@
1
+ import { FieldType } from "../row";
2
+ import { AutoReason, RelationshipType } from "./constants";
3
+ export interface UIFieldMetadata {
4
+ order?: number;
5
+ width?: number;
6
+ visible?: boolean;
7
+ icon?: string;
8
+ }
9
+ export interface RelationshipFieldMetadata {
10
+ main?: boolean;
11
+ fieldName?: string;
12
+ tableId?: string;
13
+ relationshipType?: RelationshipType;
14
+ through?: string;
15
+ foreignKey?: string;
16
+ throughFrom?: string;
17
+ throughTo?: string;
18
+ }
19
+ export interface AutoColumnFieldMetadata {
20
+ autocolumn?: boolean;
21
+ subtype?: string;
22
+ lastID?: number;
23
+ autoReason?: AutoReason;
24
+ }
25
+ export interface NumberFieldMetadata {
26
+ meta?: {
27
+ toTable: string;
28
+ toKey: string;
29
+ };
30
+ }
31
+ export interface DateFieldMetadata {
32
+ ignoreTimezones?: boolean;
33
+ timeOnly?: boolean;
34
+ }
35
+ export interface StringFieldMetadata {
36
+ useRichText?: boolean | null;
37
+ }
38
+ export interface FormulaFieldMetadata {
39
+ formula?: string;
40
+ formulaType?: string;
41
+ }
42
+ export interface FieldConstraints {
43
+ type?: string;
44
+ email?: boolean;
45
+ inclusion?: string[];
46
+ length?: {
47
+ minimum?: string | number | null;
48
+ maximum?: string | number | null;
49
+ };
50
+ numericality?: {
51
+ greaterThanOrEqualTo: string | null;
52
+ lessThanOrEqualTo: string | null;
53
+ };
54
+ presence?: boolean | {
55
+ allowEmpty?: boolean;
56
+ };
57
+ datetime?: {
58
+ latest: string;
59
+ earliest: string;
60
+ };
61
+ }
62
+ export interface FieldSchema extends UIFieldMetadata, DateFieldMetadata, RelationshipFieldMetadata, AutoColumnFieldMetadata, StringFieldMetadata, FormulaFieldMetadata, NumberFieldMetadata {
63
+ type: FieldType;
64
+ name: string;
65
+ sortable?: boolean;
66
+ externalType?: string;
67
+ constraints?: FieldConstraints;
68
+ }
69
+ export interface TableSchema {
70
+ [key: string]: FieldSchema;
71
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../src/documents/app/table/schema.ts"],"names":[],"mappings":""}
@@ -0,0 +1,33 @@
1
+ import { Document } from "../../document";
2
+ import { View, ViewV2 } from "../view";
3
+ import { RenameColumn } from "../../../sdk";
4
+ import { TableSchema } from "./schema";
5
+ export interface Table extends Document {
6
+ type?: string;
7
+ views?: {
8
+ [key: string]: View | ViewV2;
9
+ };
10
+ name: string;
11
+ primary?: string[];
12
+ schema: TableSchema;
13
+ primaryDisplay?: string;
14
+ sourceId?: string;
15
+ relatedFormula?: string[];
16
+ constrained?: string[];
17
+ sql?: boolean;
18
+ indexes?: {
19
+ [key: string]: any;
20
+ };
21
+ rows?: {
22
+ [key: string]: any;
23
+ };
24
+ created?: boolean;
25
+ rowHeight?: number;
26
+ }
27
+ export interface ExternalTable extends Table {
28
+ sourceId: string;
29
+ }
30
+ export interface TableRequest extends Table {
31
+ _rename?: RenameColumn;
32
+ created?: boolean;
33
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=table.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../../src/documents/app/table/table.ts"],"names":[],"mappings":""}
@@ -1,3 +1,6 @@
1
+ import { SortOrder, SortType } from "../../api";
2
+ import { SearchFilters } from "../../sdk";
3
+ import { UIFieldMetadata } from "./table";
1
4
  export interface View {
2
5
  name: string;
3
6
  tableId: string;
@@ -9,6 +12,19 @@ export interface View {
9
12
  reduce?: any;
10
13
  meta?: Record<string, any>;
11
14
  }
15
+ export interface ViewV2 {
16
+ version: 2;
17
+ id: string;
18
+ name: string;
19
+ tableId: string;
20
+ query?: SearchFilters;
21
+ sort?: {
22
+ field: string;
23
+ order?: SortOrder;
24
+ type?: SortType;
25
+ };
26
+ columns?: Record<string, UIFieldMetadata>;
27
+ }
12
28
  export declare type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema;
13
29
  export interface ViewCountOrSumSchema {
14
30
  field: string;
@@ -1 +1 @@
1
- {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../src/documents/app/view.ts"],"names":[],"mappings":";;;AAyCA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,kCAAe,CAAA;IACf,uCAAoB,CAAA;AACtB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
1
+ {"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../src/documents/app/view.ts"],"names":[],"mappings":";;;AA2DA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,kCAAe,CAAA;IACf,uCAAoB,CAAA;AACtB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
@@ -75,7 +75,7 @@ export interface Database {
75
75
  name: string;
76
76
  exists(): Promise<boolean>;
77
77
  checkSetup(): Promise<Nano.DocumentScope<any>>;
78
- get<T>(id?: string): Promise<T | any>;
78
+ get<T>(id?: string): Promise<T>;
79
79
  remove(id: string | Document, rev?: string): Promise<Nano.DocumentDestroyResponse>;
80
80
  put(document: AnyDocument, opts?: DatabasePutOpts): Promise<Nano.DocumentInsertResponse>;
81
81
  bulkDocs(documents: AnyDocument[]): Promise<Nano.DocumentBulkResponse[]>;
@@ -31,7 +31,7 @@ export interface SearchFilters {
31
31
  [key: string]: any[];
32
32
  };
33
33
  contains?: {
34
- [key: string]: any[];
34
+ [key: string]: any[] | any;
35
35
  };
36
36
  notContains?: {
37
37
  [key: string]: any[];