@remit/backend 0.0.46 → 0.0.48
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/package.json
CHANGED
|
@@ -199,6 +199,7 @@ describe("createFilterWithAnchor (#351)", () => {
|
|
|
199
199
|
state: FilterState.Active,
|
|
200
200
|
hasAnchor: false,
|
|
201
201
|
ruleChangedAt: 1_700_000_000,
|
|
202
|
+
actionChangedAt: 1_700_000_000,
|
|
202
203
|
matchOperator: FilterMatchOperator.And,
|
|
203
204
|
literalClauses: [],
|
|
204
205
|
actionLabelId: "None",
|
package/src/handlers/filter.ts
CHANGED
|
@@ -187,6 +187,7 @@ const toFilterResponse = (item: FilterItem): FilterResponse => ({
|
|
|
187
187
|
state: item.state,
|
|
188
188
|
hasAnchor: item.hasAnchor,
|
|
189
189
|
ruleChangedAt: item.ruleChangedAt,
|
|
190
|
+
actionChangedAt: item.actionChangedAt,
|
|
190
191
|
matchOperator: item.matchOperator,
|
|
191
192
|
literalClauses: item.literalClauses,
|
|
192
193
|
actionLabelId: item.actionLabelId,
|
|
@@ -79,6 +79,7 @@ const filterItem = (over: Partial<FilterItem> = {}): FilterItem => ({
|
|
|
79
79
|
state: FilterState.Active,
|
|
80
80
|
hasAnchor: false,
|
|
81
81
|
ruleChangedAt: 0,
|
|
82
|
+
actionChangedAt: 0,
|
|
82
83
|
matchOperator: FilterMatchOperator.And,
|
|
83
84
|
literalClauses: [],
|
|
84
85
|
actionLabelId: "None",
|
|
@@ -780,6 +781,7 @@ describe("applyOrganize resolves move precedence against current Active filters
|
|
|
780
781
|
const newerFilter = filterItem({
|
|
781
782
|
filterId: "filter-newer",
|
|
782
783
|
ruleChangedAt: 1_000,
|
|
784
|
+
actionChangedAt: 1_000,
|
|
783
785
|
actionMailboxId: "mbox-new",
|
|
784
786
|
literalClauses: [{ field: "Subject", value: "reservation" }],
|
|
785
787
|
});
|
|
@@ -828,6 +830,7 @@ describe("applyOrganize resolves move precedence against current Active filters
|
|
|
828
830
|
const agreeingFilter = filterItem({
|
|
829
831
|
filterId: "filter-agrees",
|
|
830
832
|
ruleChangedAt: 1_000,
|
|
833
|
+
actionChangedAt: 1_000,
|
|
831
834
|
actionMailboxId: "mbox-target",
|
|
832
835
|
literalClauses: [{ field: "Subject", value: "reservation" }],
|
|
833
836
|
});
|
|
@@ -869,6 +872,7 @@ describe("applyOrganize resolves move precedence against current Active filters
|
|
|
869
872
|
const newerSemanticFilter = filterItem({
|
|
870
873
|
filterId: "filter-newer-semantic",
|
|
871
874
|
ruleChangedAt: 1_000,
|
|
875
|
+
actionChangedAt: 1_000,
|
|
872
876
|
actionMailboxId: "mbox-new",
|
|
873
877
|
hasAnchor: true,
|
|
874
878
|
});
|
package/tsconfig.json
CHANGED
|
@@ -3,16 +3,5 @@
|
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"outDir": "dist"
|
|
5
5
|
},
|
|
6
|
-
"include": [
|
|
7
|
-
"src/**/*.ts",
|
|
8
|
-
"dev-server/**/*.ts",
|
|
9
|
-
"scripts/**/*.ts",
|
|
10
|
-
// The backend image's third entrypoint. `migrate.mjs` and
|
|
11
|
-
// `backfill-list-id.mjs` ship inside this image alongside `server.mjs`
|
|
12
|
-
// (npm-scripts/docker-bundle.mjs), so they belong to the same typecheck —
|
|
13
|
-
// living under deploy/ is where it sits in the tree, not a different
|
|
14
|
-
// deliverable. Unchecked, it shipped a container entrypoint with two hard
|
|
15
|
-
// type errors.
|
|
16
|
-
"../../deploy/vps/migrate/**/*.ts"
|
|
17
|
-
]
|
|
6
|
+
"include": ["src/**/*.ts", "dev-server/**/*.ts", "scripts/**/*.ts"]
|
|
18
7
|
}
|