@marcoappio/marco-config 2.0.472 → 2.0.473

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.
@@ -1 +1 @@
1
- {"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAOlE,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;QACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;QACvB,IAAI,CAAC,EAAE,OAAO,CAAA;KACf,CAAA;CACF,CAAA;AAoBD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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
22
22
  export const getThreads = syncedQueryWithContext('getThreads', parseArgs, ({ userId }, { search, limit, where }) => {
23
+ if (where?.labelIds && where.labelIds.length > 0) {
24
+ const [primaryLabelId, ...additionalLabelIds] = where.labelIds;
25
+ let query = z.threadByLabel
26
+ .where('labelId', primaryLabelId)
27
+ .orderBy('latestMessageDate', 'desc')
28
+ .limit(limit)
29
+ .related('thread', t => {
30
+ let threadQuery = t
31
+ .where('userId', userId)
32
+ .related('messages', m => m.related('recipients').related('attachments').orderBy('envelopeDate', 'asc'));
33
+ if (where?.id) {
34
+ threadQuery = threadQuery.where('id', where.id);
35
+ }
36
+ if (typeof where?.flagged === 'boolean') {
37
+ threadQuery = threadQuery.where('flagged', where.flagged);
38
+ }
39
+ if (typeof where?.seen === 'boolean') {
40
+ threadQuery = threadQuery.where('seen', where.seen);
41
+ }
42
+ if (where?.messageIds && where.messageIds.length > 0) {
43
+ for (const messageId of where.messageIds) {
44
+ threadQuery = threadQuery.whereExists('messages', x => x.where('id', messageId));
45
+ }
46
+ }
47
+ if (where?.participants && where.participants.length > 0) {
48
+ for (const participant of where.participants) {
49
+ threadQuery = threadQuery.whereExists('messages', x => x.whereExists('recipients', y => y.where('emailAddress', participant)));
50
+ }
51
+ }
52
+ if (search) {
53
+ const tokens = threadsUtils.processSearchTerm(search);
54
+ if (tokens.length > 0) {
55
+ threadQuery = threadQuery.where(({ and, cmp }) => and(...tokens.map(x => cmp('words', 'ILIKE', `%${x}%`))));
56
+ }
57
+ }
58
+ return threadQuery;
59
+ });
60
+ for (const additionalLabelId of additionalLabelIds) {
61
+ query = query.whereExists('thread', t => t.whereExists('threadByLabel', tbl => tbl.where('labelId', additionalLabelId)));
62
+ }
63
+ return query;
64
+ }
23
65
  let query = z.thread
24
66
  .where('userId', userId)
25
67
  .related('messages', x => x.related('recipients').related('attachments').orderBy('envelopeDate', 'asc'))
@@ -33,11 +75,6 @@ export const getThreads = syncedQueryWithContext('getThreads', parseArgs, ({ use
33
75
  if (typeof where?.seen === 'boolean') {
34
76
  query = query.where('seen', where.seen);
35
77
  }
36
- if (where?.labelIds && where.labelIds.length > 0) {
37
- for (const labelId of where.labelIds) {
38
- query = query.whereExists('threadByLabel', x => x.where('labelId', labelId));
39
- }
40
- }
41
78
  if (where?.messageIds && where.messageIds.length > 0) {
42
79
  for (const messageId of where.messageIds) {
43
80
  query = query.whereExists('messages', x => x.where('id', messageId));
@@ -543,6 +543,13 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
543
543
  } & {
544
544
  serverName: string;
545
545
  };
546
+ readonly latestMessageDate: {
547
+ type: "number";
548
+ optional: false;
549
+ customType: number;
550
+ } & {
551
+ serverName: string;
552
+ };
546
553
  readonly threadId: {
547
554
  type: "string";
548
555
  optional: false;
@@ -868,7 +875,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
868
875
  }];
869
876
  threadByLabel: [{
870
877
  readonly sourceField: string[];
871
- readonly destField: ("labelId" | "threadId")[];
878
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
872
879
  readonly destSchema: "threadByLabel";
873
880
  readonly cardinality: "many";
874
881
  }];
@@ -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"}
@@ -542,6 +542,13 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
542
542
  } & {
543
543
  serverName: string;
544
544
  };
545
+ readonly latestMessageDate: {
546
+ type: "number";
547
+ optional: false;
548
+ customType: number;
549
+ } & {
550
+ serverName: string;
551
+ };
545
552
  readonly threadId: {
546
553
  type: "string";
547
554
  optional: false;
@@ -867,7 +874,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
867
874
  }];
868
875
  threadByLabel: [{
869
876
  readonly sourceField: string[];
870
- readonly destField: ("labelId" | "threadId")[];
877
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
871
878
  readonly destSchema: "threadByLabel";
872
879
  readonly cardinality: "many";
873
880
  }];
@@ -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"}
@@ -542,6 +542,13 @@ export declare const schema: {
542
542
  } & {
543
543
  serverName: string;
544
544
  };
545
+ readonly latestMessageDate: {
546
+ type: "number";
547
+ optional: false;
548
+ customType: number;
549
+ } & {
550
+ serverName: string;
551
+ };
545
552
  readonly threadId: {
546
553
  type: "string";
547
554
  optional: false;
@@ -867,7 +874,7 @@ export declare const schema: {
867
874
  }];
868
875
  threadByLabel: [{
869
876
  readonly sourceField: string[];
870
- readonly destField: ("labelId" | "threadId")[];
877
+ readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
871
878
  readonly destSchema: "threadByLabel";
872
879
  readonly cardinality: "many";
873
880
  }];
@@ -1384,6 +1391,13 @@ export declare const zeroTables: {
1384
1391
  } & {
1385
1392
  serverName: string;
1386
1393
  };
1394
+ readonly latestMessageDate: {
1395
+ type: "number";
1396
+ optional: false;
1397
+ customType: number;
1398
+ } & {
1399
+ serverName: string;
1400
+ };
1387
1401
  readonly threadId: {
1388
1402
  type: "string";
1389
1403
  optional: false;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"AAkbA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAzVJ,MAAM;4BACX,MAAM,EAAE;4BACR,MAAM,EAAE;6BACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4YT,CAAA"}
@@ -115,6 +115,7 @@ const threadByLabel = table('threadByLabel')
115
115
  .from('thread_by_label')
116
116
  .columns({
117
117
  labelId: string().from('label_id'),
118
+ latestMessageDate: numeric().from('latest_message_date'),
118
119
  threadId: string().from('thread_id'),
119
120
  })
120
121
  .primaryKey('labelId', 'threadId');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.472",
3
+ "version": "2.0.473",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",