@marcoappio/marco-config 2.0.467 → 2.0.469
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.
- package/dist/utils/threads/index.d.ts +4 -0
- package/dist/utils/threads/index.d.ts.map +1 -0
- package/dist/utils/threads/index.js +4 -0
- package/dist/utils/threads/processSearchTerm/index.d.ts +2 -0
- package/dist/utils/threads/processSearchTerm/index.d.ts.map +1 -0
- package/dist/utils/threads/processSearchTerm/index.js +1 -0
- package/dist/utils/threads/processSearchTerm/processSearchTerm.d.ts +2 -0
- package/dist/utils/threads/processSearchTerm/processSearchTerm.d.ts.map +1 -0
- package/dist/utils/threads/processSearchTerm/processSearchTerm.js +18 -0
- package/dist/utils/threads/processSearchTerm/processSearchTerm.test.d.ts +2 -0
- package/dist/utils/threads/processSearchTerm/processSearchTerm.test.d.ts.map +1 -0
- package/dist/utils/threads/processSearchTerm/processSearchTerm.test.js +38 -0
- package/dist/zero/index.d.ts +93 -35
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +15 -0
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +62 -2
- package/dist/zero/queries/getAccounts.d.ts +12 -5
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +12 -5
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +12 -5
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreadList.d.ts +13 -5
- package/dist/zero/queries/getThreadList.d.ts.map +1 -1
- package/dist/zero/queries/getThreadList.js +3 -3
- package/dist/zero/queries/getThreads.d.ts +13 -5
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.js +3 -3
- package/dist/zero/queries/getUser.d.ts +12 -5
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +12 -5
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +19 -5
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/threads/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;CAExB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/threads/processSearchTerm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { processSearchTerm } from './processSearchTerm';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processSearchTerm.d.ts","sourceRoot":"","sources":["../../../../src/utils/threads/processSearchTerm/processSearchTerm.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,SAAU,MAAM,KAAG,MAAM,EAkBtD,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { stemmer } from '@orama/stemmers/english';
|
|
2
|
+
import { stopwords } from '@orama/stopwords/english';
|
|
3
|
+
const STOP_WORDS_SET = new Set(stopwords);
|
|
4
|
+
export const processSearchTerm = (term) => {
|
|
5
|
+
const sanitizedTerm = term.trim().toLowerCase();
|
|
6
|
+
const tokens = sanitizedTerm.split(/\s+/).filter(Boolean);
|
|
7
|
+
const wordSet = new Set();
|
|
8
|
+
for (const token of tokens) {
|
|
9
|
+
if (STOP_WORDS_SET.has(token)) {
|
|
10
|
+
continue;
|
|
11
|
+
}
|
|
12
|
+
const stemmed = stemmer(token);
|
|
13
|
+
if (stemmed.length > 0) {
|
|
14
|
+
wordSet.add(stemmed);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return Array.from(wordSet);
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processSearchTerm.test.d.ts","sourceRoot":"","sources":["../../../../src/utils/threads/processSearchTerm/processSearchTerm.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { describe, expect, it } from 'bun:test';
|
|
2
|
+
import { processSearchTerm } from './processSearchTerm';
|
|
3
|
+
describe('processSearchTerm', () => {
|
|
4
|
+
const testCases = [
|
|
5
|
+
{ description: 'stems word to root form', expected: ['run'], input: 'running' },
|
|
6
|
+
{ description: 'stems -ing suffix', expected: ['jump'], input: 'jumping' },
|
|
7
|
+
{ description: 'stems plural', expected: ['cat'], input: 'cats' },
|
|
8
|
+
{ description: 'removes single stopword', expected: [], input: 'the' },
|
|
9
|
+
{ description: 'removes article stopword', expected: [], input: 'an' },
|
|
10
|
+
{ description: 'removes verb stopword', expected: [], input: 'is' },
|
|
11
|
+
{ description: 'removes stopwords from phrase', expected: ['quick', 'fox'], input: 'the quick fox' },
|
|
12
|
+
{ description: 'handles empty string', expected: [], input: '' },
|
|
13
|
+
{ description: 'handles whitespace only', expected: [], input: ' ' },
|
|
14
|
+
{ description: 'handles tabs and newlines', expected: [], input: '\t\n' },
|
|
15
|
+
{ description: 'returns empty for only stopwords', expected: [], input: 'the an' },
|
|
16
|
+
{ description: 'returns empty for multiple stopwords', expected: [], input: 'is are was were' },
|
|
17
|
+
{ description: 'deduplicates same-root words', expected: ['run'], input: 'run running runs' },
|
|
18
|
+
{ description: 'deduplicates stemmed variants', expected: ['happi'], input: 'happy happiness' },
|
|
19
|
+
{ description: 'normalizes uppercase', expected: ['hello'], input: 'HELLO' },
|
|
20
|
+
{ description: 'normalizes mixed case', expected: ['hello', 'world'], input: 'HeLLo WoRLd' },
|
|
21
|
+
{ description: 'handles extra spaces', expected: ['hello', 'world'], input: ' hello world ' },
|
|
22
|
+
{ description: 'handles mixed whitespace', expected: ['hello', 'world'], input: 'hello\t\nworld' },
|
|
23
|
+
{ description: 'preserves order of first occurrence', expected: ['world', 'hello'], input: 'world hello' },
|
|
24
|
+
{
|
|
25
|
+
description: 'handles mixed stopwords and content',
|
|
26
|
+
expected: ['meet', 'import'],
|
|
27
|
+
input: 'the meeting is important',
|
|
28
|
+
},
|
|
29
|
+
{ description: 'stems and filters mixed phrase', expected: ['import', 'messag'], input: 'an important message' },
|
|
30
|
+
{ description: 'passes through numbers unchanged', expected: ['123', 'test'], input: '123 test' },
|
|
31
|
+
{ description: 'passes through special characters unchanged', expected: ['@user', '#tag'], input: '@user #tag' },
|
|
32
|
+
];
|
|
33
|
+
for (const { input, expected, description } of testCases) {
|
|
34
|
+
it(`should ${description}`, () => {
|
|
35
|
+
expect(processSearchTerm(input)).toEqual(expected);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
package/dist/zero/index.d.ts
CHANGED
|
@@ -783,6 +783,13 @@ export declare const marcoZero: {
|
|
|
783
783
|
optional: false;
|
|
784
784
|
customType: string;
|
|
785
785
|
};
|
|
786
|
+
readonly labelIdList: {
|
|
787
|
+
type: "string";
|
|
788
|
+
optional: false;
|
|
789
|
+
customType: string;
|
|
790
|
+
} & {
|
|
791
|
+
serverName: string;
|
|
792
|
+
};
|
|
786
793
|
readonly latestMessageDate: {
|
|
787
794
|
type: "number";
|
|
788
795
|
optional: false;
|
|
@@ -1040,7 +1047,7 @@ export declare const marcoZero: {
|
|
|
1040
1047
|
}];
|
|
1041
1048
|
threads: [{
|
|
1042
1049
|
readonly sourceField: string[];
|
|
1043
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
1050
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1044
1051
|
readonly destSchema: "thread";
|
|
1045
1052
|
readonly cardinality: "many";
|
|
1046
1053
|
}];
|
|
@@ -1088,7 +1095,7 @@ export declare const marcoZero: {
|
|
|
1088
1095
|
}];
|
|
1089
1096
|
threads: [{
|
|
1090
1097
|
readonly sourceField: string[];
|
|
1091
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
1098
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1092
1099
|
readonly destSchema: "thread";
|
|
1093
1100
|
readonly cardinality: "many";
|
|
1094
1101
|
}];
|
|
@@ -1121,7 +1128,7 @@ export declare const marcoZero: {
|
|
|
1121
1128
|
readonly cardinality: "many";
|
|
1122
1129
|
}, {
|
|
1123
1130
|
readonly sourceField: string[];
|
|
1124
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
1131
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1125
1132
|
readonly destSchema: "thread";
|
|
1126
1133
|
readonly cardinality: "many";
|
|
1127
1134
|
}];
|
|
@@ -1200,7 +1207,7 @@ export declare const marcoZero: {
|
|
|
1200
1207
|
}];
|
|
1201
1208
|
thread: [{
|
|
1202
1209
|
readonly sourceField: string[];
|
|
1203
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
1210
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1204
1211
|
readonly destSchema: "thread";
|
|
1205
1212
|
readonly cardinality: "one";
|
|
1206
1213
|
}];
|
|
@@ -1231,7 +1238,7 @@ export declare const marcoZero: {
|
|
|
1231
1238
|
}];
|
|
1232
1239
|
thread: [{
|
|
1233
1240
|
readonly sourceField: string[];
|
|
1234
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
1241
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1235
1242
|
readonly destSchema: "thread";
|
|
1236
1243
|
readonly cardinality: "one";
|
|
1237
1244
|
}];
|
|
@@ -1742,6 +1749,13 @@ export declare const marcoZero: {
|
|
|
1742
1749
|
optional: false;
|
|
1743
1750
|
customType: string;
|
|
1744
1751
|
};
|
|
1752
|
+
readonly labelIdList: {
|
|
1753
|
+
type: "string";
|
|
1754
|
+
optional: false;
|
|
1755
|
+
customType: string;
|
|
1756
|
+
} & {
|
|
1757
|
+
serverName: string;
|
|
1758
|
+
};
|
|
1745
1759
|
readonly latestMessageDate: {
|
|
1746
1760
|
type: "number";
|
|
1747
1761
|
optional: false;
|
|
@@ -1999,7 +2013,7 @@ export declare const marcoZero: {
|
|
|
1999
2013
|
}];
|
|
2000
2014
|
threads: [{
|
|
2001
2015
|
readonly sourceField: string[];
|
|
2002
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
2016
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2003
2017
|
readonly destSchema: "thread";
|
|
2004
2018
|
readonly cardinality: "many";
|
|
2005
2019
|
}];
|
|
@@ -2047,7 +2061,7 @@ export declare const marcoZero: {
|
|
|
2047
2061
|
}];
|
|
2048
2062
|
threads: [{
|
|
2049
2063
|
readonly sourceField: string[];
|
|
2050
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
2064
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2051
2065
|
readonly destSchema: "thread";
|
|
2052
2066
|
readonly cardinality: "many";
|
|
2053
2067
|
}];
|
|
@@ -2080,7 +2094,7 @@ export declare const marcoZero: {
|
|
|
2080
2094
|
readonly cardinality: "many";
|
|
2081
2095
|
}, {
|
|
2082
2096
|
readonly sourceField: string[];
|
|
2083
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
2097
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2084
2098
|
readonly destSchema: "thread";
|
|
2085
2099
|
readonly cardinality: "many";
|
|
2086
2100
|
}];
|
|
@@ -2159,7 +2173,7 @@ export declare const marcoZero: {
|
|
|
2159
2173
|
}];
|
|
2160
2174
|
thread: [{
|
|
2161
2175
|
readonly sourceField: string[];
|
|
2162
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
2176
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2163
2177
|
readonly destSchema: "thread";
|
|
2164
2178
|
readonly cardinality: "one";
|
|
2165
2179
|
}];
|
|
@@ -2190,7 +2204,7 @@ export declare const marcoZero: {
|
|
|
2190
2204
|
}];
|
|
2191
2205
|
thread: [{
|
|
2192
2206
|
readonly sourceField: string[];
|
|
2193
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
2207
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2194
2208
|
readonly destSchema: "thread";
|
|
2195
2209
|
readonly cardinality: "one";
|
|
2196
2210
|
}];
|
|
@@ -2667,6 +2681,13 @@ export declare const marcoZero: {
|
|
|
2667
2681
|
optional: false;
|
|
2668
2682
|
customType: string;
|
|
2669
2683
|
};
|
|
2684
|
+
readonly labelIdList: {
|
|
2685
|
+
type: "string";
|
|
2686
|
+
optional: false;
|
|
2687
|
+
customType: string;
|
|
2688
|
+
} & {
|
|
2689
|
+
serverName: string;
|
|
2690
|
+
};
|
|
2670
2691
|
readonly latestMessageDate: {
|
|
2671
2692
|
type: "number";
|
|
2672
2693
|
optional: false;
|
|
@@ -2924,7 +2945,7 @@ export declare const marcoZero: {
|
|
|
2924
2945
|
}];
|
|
2925
2946
|
threads: [{
|
|
2926
2947
|
readonly sourceField: string[];
|
|
2927
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
2948
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2928
2949
|
readonly destSchema: "thread";
|
|
2929
2950
|
readonly cardinality: "many";
|
|
2930
2951
|
}];
|
|
@@ -2972,7 +2993,7 @@ export declare const marcoZero: {
|
|
|
2972
2993
|
}];
|
|
2973
2994
|
threads: [{
|
|
2974
2995
|
readonly sourceField: string[];
|
|
2975
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
2996
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2976
2997
|
readonly destSchema: "thread";
|
|
2977
2998
|
readonly cardinality: "many";
|
|
2978
2999
|
}];
|
|
@@ -3005,7 +3026,7 @@ export declare const marcoZero: {
|
|
|
3005
3026
|
readonly cardinality: "many";
|
|
3006
3027
|
}, {
|
|
3007
3028
|
readonly sourceField: string[];
|
|
3008
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
3029
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
3009
3030
|
readonly destSchema: "thread";
|
|
3010
3031
|
readonly cardinality: "many";
|
|
3011
3032
|
}];
|
|
@@ -3084,7 +3105,7 @@ export declare const marcoZero: {
|
|
|
3084
3105
|
}];
|
|
3085
3106
|
thread: [{
|
|
3086
3107
|
readonly sourceField: string[];
|
|
3087
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
3108
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
3088
3109
|
readonly destSchema: "thread";
|
|
3089
3110
|
readonly cardinality: "one";
|
|
3090
3111
|
}];
|
|
@@ -3115,7 +3136,7 @@ export declare const marcoZero: {
|
|
|
3115
3136
|
}];
|
|
3116
3137
|
thread: [{
|
|
3117
3138
|
readonly sourceField: string[];
|
|
3118
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
3139
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
3119
3140
|
readonly destSchema: "thread";
|
|
3120
3141
|
readonly cardinality: "one";
|
|
3121
3142
|
}];
|
|
@@ -3623,6 +3644,13 @@ export declare const marcoZero: {
|
|
|
3623
3644
|
optional: false;
|
|
3624
3645
|
customType: string;
|
|
3625
3646
|
};
|
|
3647
|
+
readonly labelIdList: {
|
|
3648
|
+
type: "string";
|
|
3649
|
+
optional: false;
|
|
3650
|
+
customType: string;
|
|
3651
|
+
} & {
|
|
3652
|
+
serverName: string;
|
|
3653
|
+
};
|
|
3626
3654
|
readonly latestMessageDate: {
|
|
3627
3655
|
type: "number";
|
|
3628
3656
|
optional: false;
|
|
@@ -3880,7 +3908,7 @@ export declare const marcoZero: {
|
|
|
3880
3908
|
}];
|
|
3881
3909
|
threads: [{
|
|
3882
3910
|
readonly sourceField: string[];
|
|
3883
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
3911
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
3884
3912
|
readonly destSchema: "thread";
|
|
3885
3913
|
readonly cardinality: "many";
|
|
3886
3914
|
}];
|
|
@@ -3928,7 +3956,7 @@ export declare const marcoZero: {
|
|
|
3928
3956
|
}];
|
|
3929
3957
|
threads: [{
|
|
3930
3958
|
readonly sourceField: string[];
|
|
3931
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
3959
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
3932
3960
|
readonly destSchema: "thread";
|
|
3933
3961
|
readonly cardinality: "many";
|
|
3934
3962
|
}];
|
|
@@ -3961,7 +3989,7 @@ export declare const marcoZero: {
|
|
|
3961
3989
|
readonly cardinality: "many";
|
|
3962
3990
|
}, {
|
|
3963
3991
|
readonly sourceField: string[];
|
|
3964
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
3992
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
3965
3993
|
readonly destSchema: "thread";
|
|
3966
3994
|
readonly cardinality: "many";
|
|
3967
3995
|
}];
|
|
@@ -4040,7 +4068,7 @@ export declare const marcoZero: {
|
|
|
4040
4068
|
}];
|
|
4041
4069
|
thread: [{
|
|
4042
4070
|
readonly sourceField: string[];
|
|
4043
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
4071
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
4044
4072
|
readonly destSchema: "thread";
|
|
4045
4073
|
readonly cardinality: "one";
|
|
4046
4074
|
}];
|
|
@@ -4071,7 +4099,7 @@ export declare const marcoZero: {
|
|
|
4071
4099
|
}];
|
|
4072
4100
|
thread: [{
|
|
4073
4101
|
readonly sourceField: string[];
|
|
4074
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
4102
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
4075
4103
|
readonly destSchema: "thread";
|
|
4076
4104
|
readonly cardinality: "one";
|
|
4077
4105
|
}];
|
|
@@ -4099,6 +4127,7 @@ export declare const marcoZero: {
|
|
|
4099
4127
|
readonly accountId: string;
|
|
4100
4128
|
readonly flagged: boolean;
|
|
4101
4129
|
readonly id: string;
|
|
4130
|
+
readonly labelIdList: string;
|
|
4102
4131
|
readonly latestMessageDate: number;
|
|
4103
4132
|
readonly seen: boolean;
|
|
4104
4133
|
readonly userId: string;
|
|
@@ -4587,6 +4616,13 @@ export declare const marcoZero: {
|
|
|
4587
4616
|
optional: false;
|
|
4588
4617
|
customType: string;
|
|
4589
4618
|
};
|
|
4619
|
+
readonly labelIdList: {
|
|
4620
|
+
type: "string";
|
|
4621
|
+
optional: false;
|
|
4622
|
+
customType: string;
|
|
4623
|
+
} & {
|
|
4624
|
+
serverName: string;
|
|
4625
|
+
};
|
|
4590
4626
|
readonly latestMessageDate: {
|
|
4591
4627
|
type: "number";
|
|
4592
4628
|
optional: false;
|
|
@@ -4844,7 +4880,7 @@ export declare const marcoZero: {
|
|
|
4844
4880
|
}];
|
|
4845
4881
|
threads: [{
|
|
4846
4882
|
readonly sourceField: string[];
|
|
4847
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
4883
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
4848
4884
|
readonly destSchema: "thread";
|
|
4849
4885
|
readonly cardinality: "many";
|
|
4850
4886
|
}];
|
|
@@ -4892,7 +4928,7 @@ export declare const marcoZero: {
|
|
|
4892
4928
|
}];
|
|
4893
4929
|
threads: [{
|
|
4894
4930
|
readonly sourceField: string[];
|
|
4895
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
4931
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
4896
4932
|
readonly destSchema: "thread";
|
|
4897
4933
|
readonly cardinality: "many";
|
|
4898
4934
|
}];
|
|
@@ -4925,7 +4961,7 @@ export declare const marcoZero: {
|
|
|
4925
4961
|
readonly cardinality: "many";
|
|
4926
4962
|
}, {
|
|
4927
4963
|
readonly sourceField: string[];
|
|
4928
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
4964
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
4929
4965
|
readonly destSchema: "thread";
|
|
4930
4966
|
readonly cardinality: "many";
|
|
4931
4967
|
}];
|
|
@@ -5004,7 +5040,7 @@ export declare const marcoZero: {
|
|
|
5004
5040
|
}];
|
|
5005
5041
|
thread: [{
|
|
5006
5042
|
readonly sourceField: string[];
|
|
5007
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
5043
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
5008
5044
|
readonly destSchema: "thread";
|
|
5009
5045
|
readonly cardinality: "one";
|
|
5010
5046
|
}];
|
|
@@ -5035,7 +5071,7 @@ export declare const marcoZero: {
|
|
|
5035
5071
|
}];
|
|
5036
5072
|
thread: [{
|
|
5037
5073
|
readonly sourceField: string[];
|
|
5038
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
5074
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
5039
5075
|
readonly destSchema: "thread";
|
|
5040
5076
|
readonly cardinality: "one";
|
|
5041
5077
|
}];
|
|
@@ -5063,6 +5099,7 @@ export declare const marcoZero: {
|
|
|
5063
5099
|
readonly accountId: string;
|
|
5064
5100
|
readonly flagged: boolean;
|
|
5065
5101
|
readonly id: string;
|
|
5102
|
+
readonly labelIdList: string;
|
|
5066
5103
|
readonly latestMessageDate: number;
|
|
5067
5104
|
readonly seen: boolean;
|
|
5068
5105
|
readonly userId: string;
|
|
@@ -5548,6 +5585,13 @@ export declare const marcoZero: {
|
|
|
5548
5585
|
optional: false;
|
|
5549
5586
|
customType: string;
|
|
5550
5587
|
};
|
|
5588
|
+
readonly labelIdList: {
|
|
5589
|
+
type: "string";
|
|
5590
|
+
optional: false;
|
|
5591
|
+
customType: string;
|
|
5592
|
+
} & {
|
|
5593
|
+
serverName: string;
|
|
5594
|
+
};
|
|
5551
5595
|
readonly latestMessageDate: {
|
|
5552
5596
|
type: "number";
|
|
5553
5597
|
optional: false;
|
|
@@ -5805,7 +5849,7 @@ export declare const marcoZero: {
|
|
|
5805
5849
|
}];
|
|
5806
5850
|
threads: [{
|
|
5807
5851
|
readonly sourceField: string[];
|
|
5808
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
5852
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
5809
5853
|
readonly destSchema: "thread";
|
|
5810
5854
|
readonly cardinality: "many";
|
|
5811
5855
|
}];
|
|
@@ -5853,7 +5897,7 @@ export declare const marcoZero: {
|
|
|
5853
5897
|
}];
|
|
5854
5898
|
threads: [{
|
|
5855
5899
|
readonly sourceField: string[];
|
|
5856
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
5900
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
5857
5901
|
readonly destSchema: "thread";
|
|
5858
5902
|
readonly cardinality: "many";
|
|
5859
5903
|
}];
|
|
@@ -5886,7 +5930,7 @@ export declare const marcoZero: {
|
|
|
5886
5930
|
readonly cardinality: "many";
|
|
5887
5931
|
}, {
|
|
5888
5932
|
readonly sourceField: string[];
|
|
5889
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
5933
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
5890
5934
|
readonly destSchema: "thread";
|
|
5891
5935
|
readonly cardinality: "many";
|
|
5892
5936
|
}];
|
|
@@ -5965,7 +6009,7 @@ export declare const marcoZero: {
|
|
|
5965
6009
|
}];
|
|
5966
6010
|
thread: [{
|
|
5967
6011
|
readonly sourceField: string[];
|
|
5968
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
6012
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
5969
6013
|
readonly destSchema: "thread";
|
|
5970
6014
|
readonly cardinality: "one";
|
|
5971
6015
|
}];
|
|
@@ -5996,7 +6040,7 @@ export declare const marcoZero: {
|
|
|
5996
6040
|
}];
|
|
5997
6041
|
thread: [{
|
|
5998
6042
|
readonly sourceField: string[];
|
|
5999
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
6043
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
6000
6044
|
readonly destSchema: "thread";
|
|
6001
6045
|
readonly cardinality: "one";
|
|
6002
6046
|
}];
|
|
@@ -6514,6 +6558,13 @@ export declare const marcoZero: {
|
|
|
6514
6558
|
optional: false;
|
|
6515
6559
|
customType: string;
|
|
6516
6560
|
};
|
|
6561
|
+
readonly labelIdList: {
|
|
6562
|
+
type: "string";
|
|
6563
|
+
optional: false;
|
|
6564
|
+
customType: string;
|
|
6565
|
+
} & {
|
|
6566
|
+
serverName: string;
|
|
6567
|
+
};
|
|
6517
6568
|
readonly latestMessageDate: {
|
|
6518
6569
|
type: "number";
|
|
6519
6570
|
optional: false;
|
|
@@ -6771,7 +6822,7 @@ export declare const marcoZero: {
|
|
|
6771
6822
|
}];
|
|
6772
6823
|
threads: [{
|
|
6773
6824
|
readonly sourceField: string[];
|
|
6774
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
6825
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
6775
6826
|
readonly destSchema: "thread";
|
|
6776
6827
|
readonly cardinality: "many";
|
|
6777
6828
|
}];
|
|
@@ -6819,7 +6870,7 @@ export declare const marcoZero: {
|
|
|
6819
6870
|
}];
|
|
6820
6871
|
threads: [{
|
|
6821
6872
|
readonly sourceField: string[];
|
|
6822
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
6873
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
6823
6874
|
readonly destSchema: "thread";
|
|
6824
6875
|
readonly cardinality: "many";
|
|
6825
6876
|
}];
|
|
@@ -6852,7 +6903,7 @@ export declare const marcoZero: {
|
|
|
6852
6903
|
readonly cardinality: "many";
|
|
6853
6904
|
}, {
|
|
6854
6905
|
readonly sourceField: string[];
|
|
6855
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
6906
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
6856
6907
|
readonly destSchema: "thread";
|
|
6857
6908
|
readonly cardinality: "many";
|
|
6858
6909
|
}];
|
|
@@ -6931,7 +6982,7 @@ export declare const marcoZero: {
|
|
|
6931
6982
|
}];
|
|
6932
6983
|
thread: [{
|
|
6933
6984
|
readonly sourceField: string[];
|
|
6934
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
6985
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
6935
6986
|
readonly destSchema: "thread";
|
|
6936
6987
|
readonly cardinality: "one";
|
|
6937
6988
|
}];
|
|
@@ -6962,7 +7013,7 @@ export declare const marcoZero: {
|
|
|
6962
7013
|
}];
|
|
6963
7014
|
thread: [{
|
|
6964
7015
|
readonly sourceField: string[];
|
|
6965
|
-
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
|
|
7016
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
6966
7017
|
readonly destSchema: "thread";
|
|
6967
7018
|
readonly cardinality: "one";
|
|
6968
7019
|
}];
|
|
@@ -7361,6 +7412,13 @@ export declare const marcoZero: {
|
|
|
7361
7412
|
optional: false;
|
|
7362
7413
|
customType: string;
|
|
7363
7414
|
};
|
|
7415
|
+
readonly labelIdList: {
|
|
7416
|
+
type: "string";
|
|
7417
|
+
optional: false;
|
|
7418
|
+
customType: string;
|
|
7419
|
+
} & {
|
|
7420
|
+
serverName: string;
|
|
7421
|
+
};
|
|
7364
7422
|
readonly latestMessageDate: {
|
|
7365
7423
|
type: "number";
|
|
7366
7424
|
optional: false;
|
package/dist/zero/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAmMxC,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MutationError } from '../../../types';
|
|
2
|
+
const buildLabelIdList = (labelIds) => labelIds.length === 0 ? '' : ` ${[...new Set(labelIds)].join(' ')} `;
|
|
2
3
|
export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
|
|
3
4
|
const thread = await tx.query.thread.where('id', threadId).one().run();
|
|
4
5
|
if (!thread) {
|
|
@@ -54,6 +55,10 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
|
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
57
|
}
|
|
58
|
+
await tx.mutate.thread.update({
|
|
59
|
+
id: threadId,
|
|
60
|
+
labelIdList: buildLabelIdList([targetLabel.id]),
|
|
61
|
+
});
|
|
57
62
|
return sourceLocations;
|
|
58
63
|
};
|
|
59
64
|
export const createThreadMutators = (_authData, callbacks) => ({
|
|
@@ -93,6 +98,11 @@ export const createThreadMutators = (_authData, callbacks) => ({
|
|
|
93
98
|
insertIndex++;
|
|
94
99
|
}
|
|
95
100
|
}
|
|
101
|
+
const allLabels = await tx.query.threadLabel.where('threadId', threadId).run();
|
|
102
|
+
await tx.mutate.thread.update({
|
|
103
|
+
id: threadId,
|
|
104
|
+
labelIdList: buildLabelIdList([...new Set(allLabels.map(x => x.labelId))]),
|
|
105
|
+
});
|
|
96
106
|
}
|
|
97
107
|
callbacks?.addLabel?.({ ...args, sourceLocations: [] });
|
|
98
108
|
},
|
|
@@ -138,6 +148,11 @@ export const createThreadMutators = (_authData, callbacks) => ({
|
|
|
138
148
|
threadMessageId: existing.threadMessageId,
|
|
139
149
|
});
|
|
140
150
|
}
|
|
151
|
+
const remainingLabels = await tx.query.threadLabel.where('threadId', threadId).run();
|
|
152
|
+
await tx.mutate.thread.update({
|
|
153
|
+
id: threadId,
|
|
154
|
+
labelIdList: buildLabelIdList([...new Set(remainingLabels.map(x => x.labelId))]),
|
|
155
|
+
});
|
|
141
156
|
}
|
|
142
157
|
callbacks?.removeLabel?.({ ...args, sourceLocations: allSourceLocations });
|
|
143
158
|
},
|