@marcoappio/marco-config 2.0.470 → 2.0.472

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.
@@ -533,6 +533,28 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
533
533
  } & {
534
534
  primaryKey: ["accountId", "labelId", "threadMessageId"];
535
535
  };
536
+ readonly threadByLabel: {
537
+ name: "threadByLabel";
538
+ columns: {
539
+ readonly labelId: {
540
+ type: "string";
541
+ optional: false;
542
+ customType: string;
543
+ } & {
544
+ serverName: string;
545
+ };
546
+ readonly threadId: {
547
+ type: "string";
548
+ optional: false;
549
+ customType: string;
550
+ } & {
551
+ serverName: string;
552
+ };
553
+ };
554
+ primaryKey: readonly [string, ...string[]];
555
+ } & {
556
+ primaryKey: ["labelId", "threadId"];
557
+ };
536
558
  readonly threadMessage: {
537
559
  name: "threadMessage";
538
560
  columns: {
@@ -844,6 +866,12 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
844
866
  readonly destSchema: "threadMessage";
845
867
  readonly cardinality: "many";
846
868
  }];
869
+ threadByLabel: [{
870
+ readonly sourceField: string[];
871
+ readonly destField: ("labelId" | "threadId")[];
872
+ readonly destSchema: "threadByLabel";
873
+ readonly cardinality: "many";
874
+ }];
847
875
  user: [{
848
876
  readonly sourceField: string[];
849
877
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -871,6 +899,20 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
871
899
  readonly cardinality: "one";
872
900
  }];
873
901
  };
902
+ readonly threadByLabel: {
903
+ label: [{
904
+ readonly sourceField: string[];
905
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
906
+ readonly destSchema: "accountLabel";
907
+ readonly cardinality: "one";
908
+ }];
909
+ thread: [{
910
+ readonly sourceField: string[];
911
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
912
+ readonly destSchema: "thread";
913
+ readonly cardinality: "one";
914
+ }];
915
+ };
874
916
  readonly threadMessage: {
875
917
  attachments: [{
876
918
  readonly sourceField: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getUser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMnB,CAAA"}
@@ -532,6 +532,28 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
532
532
  } & {
533
533
  primaryKey: ["accountId", "labelId", "threadMessageId"];
534
534
  };
535
+ readonly threadByLabel: {
536
+ name: "threadByLabel";
537
+ columns: {
538
+ readonly labelId: {
539
+ type: "string";
540
+ optional: false;
541
+ customType: string;
542
+ } & {
543
+ serverName: string;
544
+ };
545
+ readonly threadId: {
546
+ type: "string";
547
+ optional: false;
548
+ customType: string;
549
+ } & {
550
+ serverName: string;
551
+ };
552
+ };
553
+ primaryKey: readonly [string, ...string[]];
554
+ } & {
555
+ primaryKey: ["labelId", "threadId"];
556
+ };
535
557
  readonly threadMessage: {
536
558
  name: "threadMessage";
537
559
  columns: {
@@ -843,6 +865,12 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
843
865
  readonly destSchema: "threadMessage";
844
866
  readonly cardinality: "many";
845
867
  }];
868
+ threadByLabel: [{
869
+ readonly sourceField: string[];
870
+ readonly destField: ("labelId" | "threadId")[];
871
+ readonly destSchema: "threadByLabel";
872
+ readonly cardinality: "many";
873
+ }];
846
874
  user: [{
847
875
  readonly sourceField: string[];
848
876
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -870,6 +898,20 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
870
898
  readonly cardinality: "one";
871
899
  }];
872
900
  };
901
+ readonly threadByLabel: {
902
+ label: [{
903
+ readonly sourceField: string[];
904
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
905
+ readonly destSchema: "accountLabel";
906
+ readonly cardinality: "one";
907
+ }];
908
+ thread: [{
909
+ readonly sourceField: string[];
910
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
911
+ readonly destSchema: "thread";
912
+ readonly cardinality: "one";
913
+ }];
914
+ };
873
915
  readonly threadMessage: {
874
916
  attachments: [{
875
917
  readonly sourceField: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwB,CAAA;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -532,6 +532,28 @@ export declare const schema: {
532
532
  } & {
533
533
  primaryKey: ["accountId", "labelId", "threadMessageId"];
534
534
  };
535
+ readonly threadByLabel: {
536
+ name: "threadByLabel";
537
+ columns: {
538
+ readonly labelId: {
539
+ type: "string";
540
+ optional: false;
541
+ customType: string;
542
+ } & {
543
+ serverName: string;
544
+ };
545
+ readonly threadId: {
546
+ type: "string";
547
+ optional: false;
548
+ customType: string;
549
+ } & {
550
+ serverName: string;
551
+ };
552
+ };
553
+ primaryKey: readonly [string, ...string[]];
554
+ } & {
555
+ primaryKey: ["labelId", "threadId"];
556
+ };
535
557
  readonly threadMessage: {
536
558
  name: "threadMessage";
537
559
  columns: {
@@ -843,6 +865,12 @@ export declare const schema: {
843
865
  readonly destSchema: "threadMessage";
844
866
  readonly cardinality: "many";
845
867
  }];
868
+ threadByLabel: [{
869
+ readonly sourceField: string[];
870
+ readonly destField: ("labelId" | "threadId")[];
871
+ readonly destSchema: "threadByLabel";
872
+ readonly cardinality: "many";
873
+ }];
846
874
  user: [{
847
875
  readonly sourceField: string[];
848
876
  readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
@@ -870,6 +898,20 @@ export declare const schema: {
870
898
  readonly cardinality: "one";
871
899
  }];
872
900
  };
901
+ readonly threadByLabel: {
902
+ label: [{
903
+ readonly sourceField: string[];
904
+ readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
905
+ readonly destSchema: "accountLabel";
906
+ readonly cardinality: "one";
907
+ }];
908
+ thread: [{
909
+ readonly sourceField: string[];
910
+ readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
911
+ readonly destSchema: "thread";
912
+ readonly cardinality: "one";
913
+ }];
914
+ };
873
915
  readonly threadMessage: {
874
916
  attachments: [{
875
917
  readonly sourceField: string[];
@@ -1332,6 +1374,28 @@ export declare const zeroTables: {
1332
1374
  } & {
1333
1375
  primaryKey: ["id"];
1334
1376
  }>;
1377
+ readonly threadByLabel: import("@rocicorp/zero").TableBuilderWithColumns<{
1378
+ name: "threadByLabel";
1379
+ columns: {
1380
+ readonly labelId: {
1381
+ type: "string";
1382
+ optional: false;
1383
+ customType: string;
1384
+ } & {
1385
+ serverName: string;
1386
+ };
1387
+ readonly threadId: {
1388
+ type: "string";
1389
+ optional: false;
1390
+ customType: string;
1391
+ } & {
1392
+ serverName: string;
1393
+ };
1394
+ };
1395
+ primaryKey: readonly [string, ...string[]];
1396
+ } & {
1397
+ primaryKey: ["labelId", "threadId"];
1398
+ }>;
1335
1399
  readonly threadLabel: import("@rocicorp/zero").TableBuilderWithColumns<{
1336
1400
  name: "threadLabel";
1337
1401
  columns: {
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"AAwZA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA/TJ,MAAM;4BACX,MAAM,EAAE;4BACR,MAAM,EAAE;6BACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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111
  uidValidity: numeric().from('uid_validity'),
112
112
  })
113
113
  .primaryKey('accountId', 'labelId', 'threadMessageId');
114
+ const threadByLabel = table('threadByLabel')
115
+ .from('thread_by_label')
116
+ .columns({
117
+ labelId: string().from('label_id'),
118
+ threadId: string().from('thread_id'),
119
+ })
120
+ .primaryKey('labelId', 'threadId');
114
121
  const threadMessage = table('threadMessage')
115
122
  .from('thread_message')
116
123
  .columns({
@@ -284,6 +291,11 @@ const threadRelationships = relationships(thread, ({ one, many }) => ({
284
291
  destSchema: threadMessage,
285
292
  sourceField: ['id'],
286
293
  }),
294
+ threadByLabel: many({
295
+ destField: ['threadId'],
296
+ destSchema: threadByLabel,
297
+ sourceField: ['id'],
298
+ }),
287
299
  user: one({
288
300
  destField: ['id'],
289
301
  destSchema: user,
@@ -307,6 +319,18 @@ const threadLabelRelationships = relationships(threadLabel, ({ one }) => ({
307
319
  sourceField: ['threadId'],
308
320
  }),
309
321
  }));
322
+ const threadByLabelRelationships = relationships(threadByLabel, ({ one }) => ({
323
+ label: one({
324
+ destField: ['id'],
325
+ destSchema: accountLabel,
326
+ sourceField: ['labelId'],
327
+ }),
328
+ thread: one({
329
+ destField: ['id'],
330
+ destSchema: thread,
331
+ sourceField: ['threadId'],
332
+ }),
333
+ }));
310
334
  const threadMessageRelationships = relationships(threadMessage, ({ one, many }) => ({
311
335
  attachments: many({
312
336
  destField: ['threadMessageId'],
@@ -360,6 +384,7 @@ export const schema = createSchema({
360
384
  draftAttachmentRelationships,
361
385
  threadRelationships,
362
386
  threadLabelRelationships,
387
+ threadByLabelRelationships,
363
388
  threadMessageRelationships,
364
389
  threadMessageAttachmentRelationships,
365
390
  threadMessageRecipientRelationships,
@@ -375,6 +400,7 @@ export const schema = createSchema({
375
400
  draftAttachment,
376
401
  thread,
377
402
  threadLabel,
403
+ threadByLabel,
378
404
  threadMessage,
379
405
  threadMessageRecipient,
380
406
  threadMessageAttachment,
@@ -388,6 +414,7 @@ export const zeroTables = {
388
414
  draft,
389
415
  draftAttachment,
390
416
  thread,
417
+ threadByLabel,
391
418
  threadLabel,
392
419
  threadMessage,
393
420
  threadMessageAttachment,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.470",
3
+ "version": "2.0.472",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",