@comapeo/core 4.4.0 → 5.0.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 (72) hide show
  1. package/dist/blob-store/downloader.d.ts +5 -2
  2. package/dist/blob-store/downloader.d.ts.map +1 -1
  3. package/dist/constants.d.ts +0 -1
  4. package/dist/constants.d.ts.map +1 -1
  5. package/dist/datatype/index.d.ts +1 -1
  6. package/dist/datatype/index.d.ts.map +1 -1
  7. package/dist/discovery/local-discovery.d.ts.map +1 -1
  8. package/dist/import-categories.d.ts +19 -0
  9. package/dist/import-categories.d.ts.map +1 -0
  10. package/dist/intl/iso639.d.ts +4 -0
  11. package/dist/intl/iso639.d.ts.map +1 -0
  12. package/dist/intl/parse-bcp-47.d.ts +22 -0
  13. package/dist/intl/parse-bcp-47.d.ts.map +1 -0
  14. package/dist/invite/invite-api.d.ts.map +1 -1
  15. package/dist/lib/drizzle-helpers.d.ts +19 -1
  16. package/dist/lib/drizzle-helpers.d.ts.map +1 -1
  17. package/dist/mapeo-manager.d.ts +15 -9
  18. package/dist/mapeo-manager.d.ts.map +1 -1
  19. package/dist/mapeo-project.d.ts +4968 -3017
  20. package/dist/mapeo-project.d.ts.map +1 -1
  21. package/dist/schema/client.d.ts +246 -232
  22. package/dist/schema/client.d.ts.map +1 -1
  23. package/dist/schema/comapeo-to-drizzle.d.ts +65 -0
  24. package/dist/schema/comapeo-to-drizzle.d.ts.map +1 -0
  25. package/dist/schema/json-schema-to-drizzle.d.ts +18 -0
  26. package/dist/schema/json-schema-to-drizzle.d.ts.map +1 -0
  27. package/dist/schema/project.d.ts +2711 -1835
  28. package/dist/schema/project.d.ts.map +1 -1
  29. package/dist/schema/types.d.ts +73 -66
  30. package/dist/schema/types.d.ts.map +1 -1
  31. package/dist/translation-api.d.ts +111 -189
  32. package/dist/translation-api.d.ts.map +1 -1
  33. package/dist/utils.d.ts +10 -0
  34. package/dist/utils.d.ts.map +1 -1
  35. package/drizzle/client/0004_glorious_shape.sql +1 -0
  36. package/drizzle/client/meta/0000_snapshot.json +13 -9
  37. package/drizzle/client/meta/0001_snapshot.json +13 -9
  38. package/drizzle/client/meta/0002_snapshot.json +13 -9
  39. package/drizzle/client/meta/0003_snapshot.json +13 -9
  40. package/drizzle/client/meta/0004_snapshot.json +239 -0
  41. package/drizzle/client/meta/_journal.json +7 -0
  42. package/drizzle/project/meta/0000_snapshot.json +43 -24
  43. package/drizzle/project/meta/0001_snapshot.json +47 -26
  44. package/drizzle/project/meta/0002_snapshot.json +47 -26
  45. package/package.json +16 -8
  46. package/src/constants.js +0 -3
  47. package/src/datatype/index.js +8 -5
  48. package/src/discovery/local-discovery.js +3 -2
  49. package/src/import-categories.js +364 -0
  50. package/src/index-writer/index.js +1 -1
  51. package/src/intl/iso639.js +8118 -0
  52. package/src/intl/parse-bcp-47.js +91 -0
  53. package/src/invite/invite-api.js +2 -0
  54. package/src/lib/drizzle-helpers.js +70 -18
  55. package/src/mapeo-manager.js +138 -88
  56. package/src/mapeo-project.js +56 -218
  57. package/src/roles.js +1 -1
  58. package/src/schema/client.js +22 -28
  59. package/src/schema/comapeo-to-drizzle.js +57 -0
  60. package/src/schema/{schema-to-drizzle.js → json-schema-to-drizzle.js} +25 -25
  61. package/src/schema/project.js +24 -37
  62. package/src/schema/types.ts +138 -99
  63. package/src/translation-api.js +64 -12
  64. package/src/utils.js +13 -0
  65. package/dist/config-import.d.ts +0 -74
  66. package/dist/config-import.d.ts.map +0 -1
  67. package/dist/schema/schema-to-drizzle.d.ts +0 -20
  68. package/dist/schema/schema-to-drizzle.d.ts.map +0 -1
  69. package/dist/schema/utils.d.ts +0 -55
  70. package/dist/schema/utils.d.ts.map +0 -1
  71. package/src/config-import.js +0 -603
  72. package/src/schema/utils.js +0 -51
@@ -1 +1 @@
1
- {"version":3,"file":"mapeo-project.d.ts","sourceRoot":"","sources":["../src/mapeo-project.js"],"names":[],"mappings":"AAskDA;;;;;GAKG;AACH,qCAJW,MA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AgB,CAAC;8BACtC,GAAG,CAAC,MAAM,EAAC,UAAU,CAAC;;cAE1B,MAAM,GAAC,SAAS;YAChB,MAAM;;;aAIF,MAAM,EAAE;YACR,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;;oBAIvB,MAAM;kBACN,KAAK;YACL,KAAK;aACL,KAAK;;6BAlFU,oBAAoB;wBAYzB,eAAe;0BAHb,sBAAsB;yBACL,qBAAqB;0BAuCtC,iBAAiB;wBAKpC,oBAAoB;2BAIA,sBAAsB;wBAFzB,eAAe;4BAhDX,yBAAyB;8BAuB9C,qBAAqB;0BApBF,uBAAuB;uCAqD8H,YAAY;4BAnD/J,yBAAyB;iCAmD0H,YAAY;0BAJjK,IAAI;uBALP,aAAa;0CAQ0B,iBAAiB;gCACgG,YAAY;4BAAZ,YAAY"}
@@ -1,217 +1,180 @@
1
- export const projectSettingsTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
2
- name: "projectSettings";
3
- schema: undefined;
4
- columns: {
5
- readonly docId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
6
- name: "docId";
7
- tableName: "projectSettings";
8
- dataType: "string";
9
- columnType: "SQLiteText";
10
- data: string;
11
- driverParam: string;
12
- notNull: true;
13
- hasDefault: false;
14
- enumValues: [string, ...string[]];
15
- baseColumn: never;
16
- }, object>;
17
- readonly versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
18
- name: "versionId";
19
- tableName: "projectSettings";
20
- dataType: "string";
21
- columnType: "SQLiteText";
22
- data: string;
23
- driverParam: string;
24
- notNull: true;
25
- hasDefault: false;
26
- enumValues: [string, ...string[]];
27
- baseColumn: never;
28
- }, object>;
29
- readonly originalVersionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
30
- name: "originalVersionId";
31
- tableName: "projectSettings";
32
- dataType: "string";
33
- columnType: "SQLiteText";
34
- data: string;
35
- driverParam: string;
36
- notNull: true;
37
- hasDefault: false;
38
- enumValues: [string, ...string[]];
39
- baseColumn: never;
40
- }, object>;
41
- readonly schemaName: import("drizzle-orm/sqlite-core").SQLiteColumn<{
42
- name: "schemaName";
43
- tableName: "projectSettings";
44
- dataType: "string";
45
- columnType: "SQLiteText";
46
- data: "projectSettings";
47
- driverParam: string;
48
- notNull: true;
49
- hasDefault: false;
50
- enumValues: ["projectSettings"];
51
- baseColumn: never;
52
- }, object>;
53
- readonly createdAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
54
- name: "createdAt";
55
- tableName: "projectSettings";
56
- dataType: "string";
57
- columnType: "SQLiteText";
58
- data: string;
59
- driverParam: string;
60
- notNull: true;
61
- hasDefault: false;
62
- enumValues: [string, ...string[]];
63
- baseColumn: never;
64
- }, object>;
65
- readonly updatedAt: import("drizzle-orm/sqlite-core").SQLiteColumn<{
66
- name: "updatedAt";
67
- tableName: "projectSettings";
68
- dataType: "string";
69
- columnType: "SQLiteText";
70
- data: string;
71
- driverParam: string;
72
- notNull: true;
73
- hasDefault: false;
74
- enumValues: [string, ...string[]];
75
- baseColumn: never;
76
- }, object>;
77
- readonly links: import("drizzle-orm/sqlite-core").SQLiteColumn<{
78
- name: "links";
79
- tableName: "projectSettings";
80
- dataType: "custom";
81
- columnType: "SQLiteCustomColumn";
82
- data: string[];
83
- driverParam: string;
84
- notNull: true;
85
- hasDefault: false;
86
- enumValues: undefined;
87
- baseColumn: never;
88
- }, object>;
89
- readonly deleted: import("drizzle-orm/sqlite-core").SQLiteColumn<{
90
- name: "deleted";
91
- tableName: "projectSettings";
92
- dataType: "boolean";
93
- columnType: "SQLiteBoolean";
94
- data: boolean;
95
- driverParam: number;
96
- notNull: true;
97
- hasDefault: false;
98
- enumValues: undefined;
99
- baseColumn: never;
100
- }, object>;
101
- readonly name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
102
- name: "name";
103
- tableName: "projectSettings";
104
- dataType: "string";
105
- columnType: "SQLiteText";
106
- data: string;
107
- driverParam: string;
108
- notNull: false;
109
- hasDefault: false;
110
- enumValues: [string, ...string[]];
111
- baseColumn: never;
112
- }, object>;
113
- readonly projectDescription: import("drizzle-orm/sqlite-core").SQLiteColumn<{
114
- name: "projectDescription";
115
- tableName: "projectSettings";
116
- dataType: "string";
117
- columnType: "SQLiteText";
118
- data: string;
119
- driverParam: string;
120
- notNull: false;
121
- hasDefault: false;
122
- enumValues: [string, ...string[]];
123
- baseColumn: never;
124
- }, object>;
125
- readonly projectColor: import("drizzle-orm/sqlite-core").SQLiteColumn<{
126
- name: "projectColor";
127
- tableName: "projectSettings";
128
- dataType: "string";
129
- columnType: "SQLiteText";
130
- data: string;
131
- driverParam: string;
132
- notNull: false;
133
- hasDefault: false;
134
- enumValues: [string, ...string[]];
135
- baseColumn: never;
136
- }, object>;
137
- readonly sendStats: import("drizzle-orm/sqlite-core").SQLiteColumn<{
138
- name: "sendStats";
139
- tableName: "projectSettings";
140
- dataType: "boolean";
141
- columnType: "SQLiteBoolean";
142
- data: boolean;
143
- driverParam: number;
144
- notNull: true;
145
- hasDefault: false;
146
- enumValues: undefined;
147
- baseColumn: never;
148
- }, object>;
149
- readonly defaultPresets: import("drizzle-orm/sqlite-core").SQLiteColumn<{
150
- name: "defaultPresets";
151
- tableName: "projectSettings";
152
- dataType: "custom";
153
- columnType: "SQLiteCustomColumn";
154
- data: {
155
- point: string[];
156
- area: string[];
157
- vertex: string[];
158
- line: string[];
159
- relation: string[];
160
- } | undefined;
161
- driverParam: string;
162
- notNull: false;
163
- hasDefault: false;
164
- enumValues: undefined;
165
- baseColumn: never;
166
- }, object>;
167
- readonly configMetadata: import("drizzle-orm/sqlite-core").SQLiteColumn<{
168
- name: "configMetadata";
169
- tableName: "projectSettings";
170
- dataType: "custom";
171
- columnType: "SQLiteCustomColumn";
172
- data: {
173
- name: string;
174
- buildDate: string;
175
- importDate: string;
176
- fileVersion: string;
177
- } | undefined;
178
- driverParam: string;
179
- notNull: false;
180
- hasDefault: false;
181
- enumValues: undefined;
182
- baseColumn: never;
183
- }, object>;
184
- forks: import("drizzle-orm/sqlite-core").SQLiteColumn<{
185
- name: "forks";
186
- tableName: "projectSettings";
187
- dataType: "custom";
188
- columnType: "SQLiteCustomColumn";
189
- data: string[];
190
- driverParam: string;
191
- notNull: true;
192
- hasDefault: false;
193
- enumValues: undefined;
194
- baseColumn: never;
195
- }, object>;
1
+ export const projectSettingsTable: import("./types.js").JsonSchemaToDrizzleSqliteTable<{
2
+ schemaName: "projectSettings";
3
+ name?: string | undefined;
4
+ projectDescription?: string | undefined;
5
+ projectColor?: string | undefined;
6
+ sendStats: boolean;
7
+ defaultPresets?: {
8
+ point: string[];
9
+ area: string[];
10
+ vertex: string[];
11
+ line: string[];
12
+ relation: string[];
13
+ } | undefined;
14
+ configMetadata?: {
15
+ name: string;
16
+ buildDate: string;
17
+ importDate: string;
18
+ fileVersion: string;
19
+ } | undefined;
20
+ docId: string;
21
+ versionId: string;
22
+ originalVersionId: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ links: string[];
26
+ deleted: boolean;
27
+ }, {
28
+ readonly $schema: "http://json-schema.org/draft-07/schema#";
29
+ readonly $id: "http://mapeo.world/schemas/project/v1.json";
30
+ readonly title: "ProjectSettings";
31
+ readonly type: "object";
32
+ readonly properties: {
33
+ readonly docId: {
34
+ readonly description: "Hex-encoded 32-byte buffer";
35
+ readonly type: "string";
36
+ readonly minLength: 1;
37
+ };
38
+ readonly versionId: {
39
+ readonly description: "core discovery id (hex-encoded 32-byte buffer) and core index number, separated by '/'";
40
+ readonly type: "string";
41
+ readonly minLength: 1;
42
+ };
43
+ readonly originalVersionId: {
44
+ readonly description: "Version ID of the original version of this document. For the original version, matches `versionId`.";
45
+ readonly type: "string";
46
+ readonly minLength: 1;
47
+ };
48
+ readonly schemaName: {
49
+ readonly description: "Must be `project`";
50
+ readonly type: "string";
51
+ readonly const: "projectSettings";
52
+ };
53
+ readonly createdAt: {
54
+ readonly description: "RFC3339-formatted datetime of when the first version of the element was created";
55
+ readonly type: "string";
56
+ readonly format: "date-time";
57
+ };
58
+ readonly updatedAt: {
59
+ readonly description: "RFC3339-formatted datetime of when this version of the element was created";
60
+ readonly type: "string";
61
+ readonly format: "date-time";
62
+ };
63
+ readonly links: {
64
+ readonly description: "Version ids of the previous document versions this one is replacing. Each link is id (hex-encoded 32 byte buffer) and index number, separated by '/'";
65
+ readonly type: "array";
66
+ readonly uniqueItems: true;
67
+ readonly items: {
68
+ readonly type: "string";
69
+ };
70
+ };
71
+ readonly deleted: {
72
+ readonly description: "Indicates whether the document has been deleted";
73
+ readonly type: "boolean";
74
+ };
75
+ readonly name: {
76
+ readonly description: "name of the project";
77
+ readonly type: "string";
78
+ };
79
+ readonly projectDescription: {
80
+ readonly description: "description of the project";
81
+ readonly type: "string";
82
+ };
83
+ readonly projectColor: {
84
+ readonly description: "color associated with a project represented in 24 bit (#rrggbb)";
85
+ readonly type: "string";
86
+ readonly pattern: "^#[a-fA-F0-9]{6}$";
87
+ };
88
+ readonly sendStats: {
89
+ readonly description: "Flag to toggle project stats collection / reporting";
90
+ readonly type: "boolean";
91
+ };
92
+ readonly defaultPresets: {
93
+ readonly type: "object";
94
+ readonly properties: {
95
+ readonly point: {
96
+ readonly type: "array";
97
+ readonly items: {
98
+ readonly type: "string";
99
+ };
100
+ };
101
+ readonly area: {
102
+ readonly type: "array";
103
+ readonly items: {
104
+ readonly type: "string";
105
+ };
106
+ };
107
+ readonly vertex: {
108
+ readonly type: "array";
109
+ readonly items: {
110
+ readonly type: "string";
111
+ };
112
+ };
113
+ readonly line: {
114
+ readonly type: "array";
115
+ readonly items: {
116
+ readonly type: "string";
117
+ };
118
+ };
119
+ readonly relation: {
120
+ readonly type: "array";
121
+ readonly items: {
122
+ readonly type: "string";
123
+ };
124
+ };
125
+ };
126
+ readonly required: readonly ["point", "area", "vertex", "line", "relation"];
127
+ readonly additionalProperties: false;
128
+ };
129
+ readonly configMetadata: {
130
+ readonly type: "object";
131
+ readonly properties: {
132
+ readonly name: {
133
+ readonly type: "string";
134
+ readonly description: "Name of the configuration";
135
+ };
136
+ readonly buildDate: {
137
+ readonly type: "string";
138
+ readonly format: "date-time";
139
+ readonly description: "RFC3339-formatted datetime of when the configuration was built";
140
+ };
141
+ readonly importDate: {
142
+ readonly type: "string";
143
+ readonly format: "date-time";
144
+ readonly description: "RFC3339-formatted datetime of when the configuration was imported to the project";
145
+ };
146
+ readonly fileVersion: {
147
+ readonly type: "string";
148
+ readonly description: "version of the configuration file format as comver (MAJOR.MINOR)";
149
+ };
150
+ };
151
+ readonly additionalProperties: false;
152
+ readonly required: readonly ["name", "buildDate", "importDate", "fileVersion"];
153
+ };
196
154
  };
197
- dialect: "sqlite";
198
- }>;
155
+ readonly required: readonly ["schemaName", "sendStats", "docId", "createdAt", "updatedAt", "links", "versionId", "originalVersionId", "deleted"];
156
+ readonly additionalProperties: false;
157
+ }, "projectSettings", import("./comapeo-to-drizzle.js").AdditionalColumns, "docId">;
199
158
  export const projectBacklinkTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
200
159
  name: string;
201
160
  schema: undefined;
202
161
  columns: {
203
162
  versionId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
204
- name: "versionId";
163
+ name: string;
205
164
  tableName: string;
206
165
  dataType: "string";
207
- columnType: "SQLiteText";
208
166
  data: string;
209
167
  driverParam: string;
210
168
  notNull: true;
211
169
  hasDefault: false;
170
+ isPrimaryKey: true;
171
+ isAutoincrement: false;
172
+ hasRuntimeDefault: false;
212
173
  enumValues: [string, ...string[]];
213
174
  baseColumn: never;
214
- }, object>;
175
+ identity: undefined;
176
+ generated: undefined;
177
+ }, {}>;
215
178
  };
216
179
  dialect: "sqlite";
217
180
  }>;
@@ -220,112 +183,163 @@ export const projectKeysTable: import("drizzle-orm/sqlite-core").SQLiteTableWith
220
183
  schema: undefined;
221
184
  columns: {
222
185
  projectId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
223
- name: "projectId";
186
+ name: string;
224
187
  tableName: "projectKeys";
225
188
  dataType: "string";
226
- columnType: "SQLiteText";
227
189
  data: string;
228
190
  driverParam: string;
229
191
  notNull: true;
230
192
  hasDefault: false;
193
+ isPrimaryKey: true;
194
+ isAutoincrement: false;
195
+ hasRuntimeDefault: false;
231
196
  enumValues: [string, ...string[]];
232
197
  baseColumn: never;
233
- }, object>;
198
+ identity: undefined;
199
+ generated: undefined;
200
+ }, {}>;
234
201
  projectPublicId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
235
- name: "projectPublicId";
202
+ name: string;
236
203
  tableName: "projectKeys";
237
204
  dataType: "string";
238
- columnType: "SQLiteText";
239
205
  data: string;
240
206
  driverParam: string;
241
207
  notNull: true;
242
208
  hasDefault: false;
209
+ isPrimaryKey: false;
210
+ isAutoincrement: false;
211
+ hasRuntimeDefault: false;
243
212
  enumValues: [string, ...string[]];
244
213
  baseColumn: never;
245
- }, object>;
214
+ identity: undefined;
215
+ generated: undefined;
216
+ }, {}>;
246
217
  projectInviteId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
247
- name: "projectInviteId";
218
+ name: string;
248
219
  tableName: "projectKeys";
249
- dataType: "json";
250
- columnType: "SQLiteBlobJson";
251
- data: unknown;
220
+ dataType: "object buffer";
221
+ data: Buffer;
252
222
  driverParam: Buffer;
253
223
  notNull: true;
254
224
  hasDefault: false;
225
+ isPrimaryKey: false;
226
+ isAutoincrement: false;
227
+ hasRuntimeDefault: false;
255
228
  enumValues: undefined;
256
229
  baseColumn: never;
257
- }, object>;
230
+ identity: undefined;
231
+ generated: undefined;
232
+ }, {}>;
258
233
  keysCipher: import("drizzle-orm/sqlite-core").SQLiteColumn<{
259
- name: "keysCipher";
234
+ name: string;
260
235
  tableName: "projectKeys";
261
- dataType: "buffer";
262
- columnType: "SQLiteBlobBuffer";
236
+ dataType: "object buffer";
263
237
  data: Buffer;
264
238
  driverParam: Buffer;
265
239
  notNull: true;
266
240
  hasDefault: false;
241
+ isPrimaryKey: false;
242
+ isAutoincrement: false;
243
+ hasRuntimeDefault: false;
267
244
  enumValues: undefined;
268
245
  baseColumn: never;
269
- }, object>;
246
+ identity: undefined;
247
+ generated: undefined;
248
+ }, {}>;
270
249
  projectInfo: import("drizzle-orm/sqlite-core").SQLiteColumn<{
271
- name: "projectInfo";
250
+ name: string;
272
251
  tableName: "projectKeys";
273
- dataType: "custom";
274
- columnType: "SQLiteCustomColumn";
252
+ dataType: "object json";
275
253
  data: ProjectInfo;
276
- driverParam: unknown;
254
+ driverParam: string;
277
255
  notNull: true;
278
256
  hasDefault: true;
257
+ isPrimaryKey: false;
258
+ isAutoincrement: false;
259
+ hasRuntimeDefault: false;
279
260
  enumValues: undefined;
280
261
  baseColumn: never;
281
- }, object>;
262
+ identity: undefined;
263
+ generated: undefined;
264
+ }, {}>;
265
+ hasLeftProject: import("drizzle-orm/sqlite-core").SQLiteColumn<{
266
+ name: string;
267
+ tableName: "projectKeys";
268
+ dataType: "boolean";
269
+ data: boolean;
270
+ driverParam: number;
271
+ notNull: true;
272
+ hasDefault: true;
273
+ isPrimaryKey: false;
274
+ isAutoincrement: false;
275
+ hasRuntimeDefault: false;
276
+ enumValues: undefined;
277
+ baseColumn: never;
278
+ identity: undefined;
279
+ generated: undefined;
280
+ }, {}>;
282
281
  };
283
282
  dialect: "sqlite";
284
283
  }>;
284
+ /**
285
+ * @typedef {Omit<import('@comapeo/schema').DeviceInfoValue, 'schemaName'>} DeviceInfoParam
286
+ */
285
287
  export const deviceSettingsTable: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
286
288
  name: "deviceSettings";
287
289
  schema: undefined;
288
290
  columns: {
289
291
  deviceId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
290
- name: "deviceId";
292
+ name: string;
291
293
  tableName: "deviceSettings";
292
294
  dataType: "string";
293
- columnType: "SQLiteText";
294
295
  data: string;
295
296
  driverParam: string;
296
297
  notNull: true;
297
298
  hasDefault: false;
299
+ isPrimaryKey: false;
300
+ isAutoincrement: false;
301
+ hasRuntimeDefault: false;
298
302
  enumValues: [string, ...string[]];
299
303
  baseColumn: never;
300
- }, object>;
304
+ identity: undefined;
305
+ generated: undefined;
306
+ }, {}>;
301
307
  deviceInfo: import("drizzle-orm/sqlite-core").SQLiteColumn<{
302
- name: "deviceInfo";
308
+ name: string;
303
309
  tableName: "deviceSettings";
304
- dataType: "custom";
305
- columnType: "SQLiteCustomColumn";
310
+ dataType: "object json";
306
311
  data: DeviceInfoParam;
307
- driverParam: unknown;
312
+ driverParam: string;
308
313
  notNull: false;
309
314
  hasDefault: false;
315
+ isPrimaryKey: false;
316
+ isAutoincrement: false;
317
+ hasRuntimeDefault: false;
310
318
  enumValues: undefined;
311
319
  baseColumn: never;
312
- }, object>;
320
+ identity: undefined;
321
+ generated: undefined;
322
+ }, {}>;
313
323
  isArchiveDevice: import("drizzle-orm/sqlite-core").SQLiteColumn<{
314
- name: "isArchiveDevice";
324
+ name: string;
315
325
  tableName: "deviceSettings";
316
326
  dataType: "boolean";
317
- columnType: "SQLiteBoolean";
318
327
  data: boolean;
319
328
  driverParam: number;
320
329
  notNull: false;
321
330
  hasDefault: false;
331
+ isPrimaryKey: false;
332
+ isAutoincrement: false;
333
+ hasRuntimeDefault: false;
322
334
  enumValues: undefined;
323
335
  baseColumn: never;
324
- }, object>;
336
+ identity: undefined;
337
+ generated: undefined;
338
+ }, {}>;
325
339
  };
326
340
  dialect: "sqlite";
327
341
  }>;
328
- export type ProjectInfo = Pick<ProjectSettings, "name" | "projectColor" | "projectDescription">;
342
+ export type ProjectInfo = Pick<ProjectSettings, "name" | "projectColor" | "projectDescription" | "sendStats">;
329
343
  export type DeviceInfoParam = Omit<import("@comapeo/schema").DeviceInfoValue, "schemaName">;
330
344
  import type { ProjectSettings } from '@comapeo/schema';
331
345
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/schema/client.js"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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