@marcoappio/marco-config 2.0.495 → 2.0.497
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/zero/index.d.ts +1027 -5
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/mutators/accountMutators/accountMutators.d.ts.map +1 -1
- package/dist/zero/mutators/accountMutators/accountMutators.js +1 -1
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -1
- package/dist/zero/mutators/draftMutators/draftMutators.js +1 -1
- package/dist/zero/mutators/mutators.d.ts +1027 -5
- package/dist/zero/mutators/mutators.d.ts.map +1 -1
- package/dist/zero/mutators/mutators.js +3 -2
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts +2 -2
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +1 -1
- package/dist/zero/mutators/typedMutator.d.ts +2056 -0
- package/dist/zero/mutators/typedMutator.d.ts.map +1 -0
- package/dist/zero/mutators/typedMutator.js +2 -0
- package/dist/zero/mutators/userMutators/userMutators.d.ts.map +1 -1
- package/dist/zero/mutators/userMutators/userMutators.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutators.d.ts","sourceRoot":"","sources":["../../../src/zero/mutators/mutators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mutators.d.ts","sourceRoot":"","sources":["../../../src/zero/mutators/mutators.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiF,CAAA;AAEtG,MAAM,MAAM,iBAAiB,GAAG,OAAO,QAAQ,CAAA"}
|
|
@@ -3,9 +3,10 @@ import { accountMutators } from './accountMutators';
|
|
|
3
3
|
import { draftMutators } from './draftMutators';
|
|
4
4
|
import { threadMutators } from './threadMutators';
|
|
5
5
|
import { userMutators } from './userMutators';
|
|
6
|
-
|
|
6
|
+
const mutatorsDefinition = {
|
|
7
7
|
account: accountMutators,
|
|
8
8
|
draft: draftMutators,
|
|
9
9
|
thread: threadMutators,
|
|
10
10
|
user: userMutators,
|
|
11
|
-
}
|
|
11
|
+
};
|
|
12
|
+
export const mutators = defineMutators(mutatorsDefinition);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type Transaction } from '@rocicorp/zero';
|
|
2
1
|
import * as v from 'valibot';
|
|
3
2
|
import type { LabelSpecialUse } from '../../../types';
|
|
3
|
+
import { type MarcoTransaction } from '../../../zero/mutators/typedMutator';
|
|
4
4
|
export declare const threadMutatorSchemas: {
|
|
5
5
|
addLabel: v.ObjectSchema<{
|
|
6
6
|
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
@@ -52,7 +52,7 @@ export declare const threadMutatorSchemas: {
|
|
|
52
52
|
}, undefined>, undefined>;
|
|
53
53
|
}, undefined>;
|
|
54
54
|
};
|
|
55
|
-
export declare const setSystemLabel: (tx:
|
|
55
|
+
export declare const setSystemLabel: (tx: MarcoTransaction, threadId: string, targetSpecialUse: LabelSpecialUse) => Promise<void>;
|
|
56
56
|
export declare const threadMutators: {
|
|
57
57
|
addLabel: import("@rocicorp/zero").MutatorDefinition<{
|
|
58
58
|
accounts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threadMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/threadMutators/threadMutators.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"threadMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/threadMutators/threadMutators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAI1D,OAAO,EAAiB,KAAK,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAoB/F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBhC,CAAA;AAED,eAAO,MAAM,cAAc,OACrB,gBAAgB,YACV,MAAM,oBACE,eAAe,KAChC,OAAO,CAAC,IAAI,CAqGd,CAAA;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoQ1B,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineMutator } from '@rocicorp/zero';
|
|
2
1
|
import * as v from 'valibot';
|
|
3
2
|
import { marcoSchemas } from '../../../schemas';
|
|
4
3
|
import { MutationError } from '../../../types';
|
|
5
4
|
import { threadsUtils } from '../../../utils/threads';
|
|
6
5
|
import { zeroCRUD } from '../../../zero/crud';
|
|
6
|
+
import { defineMutator } from '../../../zero/mutators/typedMutator';
|
|
7
7
|
const buildLabelIdList = (x) => (x.length === 0 ? '' : ` ${[...new Set(x)].join(' ')} `);
|
|
8
8
|
const accountsSchema = v.record(marcoSchemas.string.required(), v.object({
|
|
9
9
|
threadIds: v.array(marcoSchemas.string.required()),
|