@marcoappio/marco-config 2.0.447 → 2.0.448

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.
@@ -510,10 +510,17 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
510
510
  } & {
511
511
  serverName: string;
512
512
  };
513
+ readonly threadMessageId: {
514
+ type: "string";
515
+ optional: false;
516
+ customType: string;
517
+ } & {
518
+ serverName: string;
519
+ };
513
520
  };
514
521
  primaryKey: readonly [string, ...string[]];
515
522
  } & {
516
- primaryKey: ["threadId", "labelId"];
523
+ primaryKey: ["threadMessageId", "labelId"];
517
524
  };
518
525
  readonly threadMessage: {
519
526
  name: "threadMessage";
@@ -762,7 +769,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
762
769
  }];
763
770
  threads: [{
764
771
  readonly sourceField: string[];
765
- readonly destField: ("labelId" | "threadId")[];
772
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
766
773
  readonly destSchema: "threadLabel";
767
774
  readonly cardinality: "many";
768
775
  }, {
@@ -823,7 +830,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
823
830
  }];
824
831
  labels: [{
825
832
  readonly sourceField: string[];
826
- readonly destField: ("labelId" | "threadId")[];
833
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
827
834
  readonly destSchema: "threadLabel";
828
835
  readonly cardinality: "many";
829
836
  }, {
@@ -852,6 +859,12 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
852
859
  readonly destSchema: "accountLabel";
853
860
  readonly cardinality: "one";
854
861
  }];
862
+ message: [{
863
+ readonly sourceField: string[];
864
+ readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
865
+ readonly destSchema: "threadMessage";
866
+ readonly cardinality: "one";
867
+ }];
855
868
  thread: [{
856
869
  readonly sourceField: string[];
857
870
  readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
@@ -866,6 +879,17 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
866
879
  readonly destSchema: "threadMessageAttachment";
867
880
  readonly cardinality: "many";
868
881
  }];
882
+ labels: [{
883
+ readonly sourceField: string[];
884
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
885
+ readonly destSchema: "threadLabel";
886
+ readonly cardinality: "many";
887
+ }, {
888
+ readonly sourceField: string[];
889
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
890
+ readonly destSchema: "accountLabel";
891
+ readonly cardinality: "many";
892
+ }];
869
893
  recipients: [{
870
894
  readonly sourceField: string[];
871
895
  readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
@@ -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,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -510,10 +510,17 @@ export declare const schema: {
510
510
  } & {
511
511
  serverName: string;
512
512
  };
513
+ readonly threadMessageId: {
514
+ type: "string";
515
+ optional: false;
516
+ customType: string;
517
+ } & {
518
+ serverName: string;
519
+ };
513
520
  };
514
521
  primaryKey: readonly [string, ...string[]];
515
522
  } & {
516
- primaryKey: ["threadId", "labelId"];
523
+ primaryKey: ["threadMessageId", "labelId"];
517
524
  };
518
525
  readonly threadMessage: {
519
526
  name: "threadMessage";
@@ -762,7 +769,7 @@ export declare const schema: {
762
769
  }];
763
770
  threads: [{
764
771
  readonly sourceField: string[];
765
- readonly destField: ("labelId" | "threadId")[];
772
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
766
773
  readonly destSchema: "threadLabel";
767
774
  readonly cardinality: "many";
768
775
  }, {
@@ -823,7 +830,7 @@ export declare const schema: {
823
830
  }];
824
831
  labels: [{
825
832
  readonly sourceField: string[];
826
- readonly destField: ("labelId" | "threadId")[];
833
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
827
834
  readonly destSchema: "threadLabel";
828
835
  readonly cardinality: "many";
829
836
  }, {
@@ -852,6 +859,12 @@ export declare const schema: {
852
859
  readonly destSchema: "accountLabel";
853
860
  readonly cardinality: "one";
854
861
  }];
862
+ message: [{
863
+ readonly sourceField: string[];
864
+ readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
865
+ readonly destSchema: "threadMessage";
866
+ readonly cardinality: "one";
867
+ }];
855
868
  thread: [{
856
869
  readonly sourceField: string[];
857
870
  readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
@@ -866,6 +879,17 @@ export declare const schema: {
866
879
  readonly destSchema: "threadMessageAttachment";
867
880
  readonly cardinality: "many";
868
881
  }];
882
+ labels: [{
883
+ readonly sourceField: string[];
884
+ readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
885
+ readonly destSchema: "threadLabel";
886
+ readonly cardinality: "many";
887
+ }, {
888
+ readonly sourceField: string[];
889
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
890
+ readonly destSchema: "accountLabel";
891
+ readonly cardinality: "many";
892
+ }];
869
893
  recipients: [{
870
894
  readonly sourceField: string[];
871
895
  readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
@@ -1343,10 +1367,17 @@ export declare const zeroTables: {
1343
1367
  } & {
1344
1368
  serverName: string;
1345
1369
  };
1370
+ readonly threadMessageId: {
1371
+ type: "string";
1372
+ optional: false;
1373
+ customType: string;
1374
+ } & {
1375
+ serverName: string;
1376
+ };
1346
1377
  };
1347
1378
  primaryKey: readonly [string, ...string[]];
1348
1379
  } & {
1349
- primaryKey: ["threadId", "labelId"];
1380
+ primaryKey: ["threadMessageId", "labelId"];
1350
1381
  }>;
1351
1382
  readonly threadMessage: import("@rocicorp/zero").TableBuilderWithColumns<{
1352
1383
  name: "threadMessage";
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"AAwZA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAjUJ,MAAM;4BACX,MAAM,EAAE;4BACR,MAAM,EAAE;6BACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkXjB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,OAAO,MAAM,CAAA;AAE3C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAzXR,MAAM;wBACX,MAAM,EAAE;wBACR,MAAM,EAAE;yBACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqYT,CAAA"}
@@ -111,8 +111,9 @@ const threadLabel = table('threadLabel')
111
111
  .columns({
112
112
  labelId: string().from('label_id'),
113
113
  threadId: string().from('thread_id'),
114
+ threadMessageId: string().from('thread_message_id'),
114
115
  })
115
- .primaryKey('threadId', 'labelId');
116
+ .primaryKey('threadMessageId', 'labelId');
116
117
  const threadMessage = table('threadMessage')
117
118
  .from('thread_message')
118
119
  .columns({
@@ -310,6 +311,11 @@ const threadLabelRelationships = relationships(threadLabel, ({ one }) => ({
310
311
  destSchema: accountLabel,
311
312
  sourceField: ['labelId'],
312
313
  }),
314
+ message: one({
315
+ destField: ['id'],
316
+ destSchema: threadMessage,
317
+ sourceField: ['threadMessageId'],
318
+ }),
313
319
  thread: one({
314
320
  destField: ['id'],
315
321
  destSchema: thread,
@@ -322,6 +328,15 @@ const threadMessageRelationships = relationships(threadMessage, ({ one, many })
322
328
  destSchema: threadMessageAttachment,
323
329
  sourceField: ['id'],
324
330
  }),
331
+ labels: many({
332
+ destField: ['threadMessageId'],
333
+ destSchema: threadLabel,
334
+ sourceField: ['id'],
335
+ }, {
336
+ destField: ['id'],
337
+ destSchema: accountLabel,
338
+ sourceField: ['labelId'],
339
+ }),
325
340
  recipients: many({
326
341
  destField: ['threadMessageId'],
327
342
  destSchema: threadMessageRecipient,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.447",
3
+ "version": "2.0.448",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",