@marcoappio/marco-config 2.0.493 → 2.0.495
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/types/Zero.d.ts +8 -0
- package/dist/types/Zero.d.ts.map +1 -1
- package/dist/zero/crud.d.ts +1024 -0
- package/dist/zero/crud.d.ts.map +1 -0
- package/dist/zero/crud.js +3 -0
- package/dist/zero/index.d.ts +322 -38
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +2 -1
- package/dist/zero/mutators/accountMutators/accountMutators.d.ts +88 -9
- package/dist/zero/mutators/accountMutators/accountMutators.d.ts.map +1 -1
- package/dist/zero/mutators/accountMutators/accountMutators.js +100 -99
- package/dist/zero/mutators/accountMutators/index.d.ts +1 -1
- package/dist/zero/mutators/accountMutators/index.d.ts.map +1 -1
- package/dist/zero/mutators/accountMutators/index.js +1 -1
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts +121 -9
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -1
- package/dist/zero/mutators/draftMutators/draftMutators.js +97 -97
- package/dist/zero/mutators/draftMutators/index.d.ts +1 -1
- package/dist/zero/mutators/draftMutators/index.d.ts.map +1 -1
- package/dist/zero/mutators/draftMutators/index.js +1 -1
- package/dist/zero/mutators/index.d.ts +224 -1
- package/dist/zero/mutators/index.d.ts.map +1 -1
- package/dist/zero/mutators/index.js +10 -1
- package/dist/zero/mutators/mutators.d.ts +90 -31
- package/dist/zero/mutators/mutators.d.ts.map +1 -1
- package/dist/zero/mutators/mutators.js +0 -1
- package/dist/zero/mutators/threadMutators/index.d.ts +1 -1
- package/dist/zero/mutators/threadMutators/index.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/index.js +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts +81 -12
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +82 -70
- package/dist/zero/mutators/userMutators/index.d.ts +1 -1
- package/dist/zero/mutators/userMutators/index.d.ts.map +1 -1
- package/dist/zero/mutators/userMutators/index.js +1 -1
- package/dist/zero/mutators/userMutators/userMutators.d.ts +28 -3
- package/dist/zero/mutators/userMutators/userMutators.d.ts.map +1 -1
- package/dist/zero/mutators/userMutators/userMutators.js +29 -29
- package/dist/zero/queries/getAccounts.d.ts +1 -1
- package/dist/zero/queries/getContacts.d.ts +1 -1
- package/dist/zero/queries/getDrafts.d.ts +1 -1
- package/dist/zero/queries/getThread.d.ts +1 -1
- package/dist/zero/queries/getThreadList.d.ts +1 -1
- package/dist/zero/queries/getThreads.d.ts +1 -1
- package/dist/zero/queries/getUser.d.ts +1 -1
- package/dist/zero/queries/index.d.ts +1 -1
- package/dist/zero/schema.d.ts +1 -1
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +0 -1
- package/package.json +2 -2
- package/dist/zero/mutators/defineMutator.d.ts +0 -16
- package/dist/zero/mutators/defineMutator.d.ts.map +0 -1
- package/dist/zero/mutators/defineMutator.js +0 -7
|
@@ -1029,7 +1029,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
1029
1029
|
};
|
|
1030
1030
|
};
|
|
1031
1031
|
enableLegacyQueries: boolean | undefined;
|
|
1032
|
-
enableLegacyMutators:
|
|
1032
|
+
enableLegacyMutators: boolean | undefined;
|
|
1033
1033
|
}, {
|
|
1034
1034
|
readonly emailAddress: string;
|
|
1035
1035
|
readonly id: string;
|
|
@@ -1026,7 +1026,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
1026
1026
|
};
|
|
1027
1027
|
};
|
|
1028
1028
|
enableLegacyQueries: boolean | undefined;
|
|
1029
|
-
enableLegacyMutators:
|
|
1029
|
+
enableLegacyMutators: boolean | undefined;
|
|
1030
1030
|
}, {
|
|
1031
1031
|
readonly accountId: string;
|
|
1032
1032
|
readonly body: {
|
|
@@ -1023,7 +1023,7 @@ export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread"
|
|
|
1023
1023
|
};
|
|
1024
1024
|
};
|
|
1025
1025
|
enableLegacyQueries: boolean | undefined;
|
|
1026
|
-
enableLegacyMutators:
|
|
1026
|
+
enableLegacyMutators: boolean | undefined;
|
|
1027
1027
|
}, ({
|
|
1028
1028
|
readonly accountId: string;
|
|
1029
1029
|
readonly flagged: boolean;
|
|
@@ -1032,7 +1032,7 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
1032
1032
|
};
|
|
1033
1033
|
};
|
|
1034
1034
|
enableLegacyQueries: boolean | undefined;
|
|
1035
|
-
enableLegacyMutators:
|
|
1035
|
+
enableLegacyMutators: boolean | undefined;
|
|
1036
1036
|
}, {
|
|
1037
1037
|
readonly labelId: string;
|
|
1038
1038
|
readonly latestMessageDate: number;
|
|
@@ -1032,7 +1032,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
1032
1032
|
};
|
|
1033
1033
|
};
|
|
1034
1034
|
enableLegacyQueries: boolean | undefined;
|
|
1035
|
-
enableLegacyMutators:
|
|
1035
|
+
enableLegacyMutators: boolean | undefined;
|
|
1036
1036
|
}, {
|
|
1037
1037
|
readonly labelId: string;
|
|
1038
1038
|
readonly latestMessageDate: number;
|
|
@@ -1020,7 +1020,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
1020
1020
|
};
|
|
1021
1021
|
};
|
|
1022
1022
|
enableLegacyQueries: boolean | undefined;
|
|
1023
|
-
enableLegacyMutators:
|
|
1023
|
+
enableLegacyMutators: boolean | undefined;
|
|
1024
1024
|
}, {
|
|
1025
1025
|
readonly id: string;
|
|
1026
1026
|
readonly name: string | null;
|
|
@@ -1019,7 +1019,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
1019
1019
|
};
|
|
1020
1020
|
};
|
|
1021
1021
|
enableLegacyQueries: boolean | undefined;
|
|
1022
|
-
enableLegacyMutators:
|
|
1022
|
+
enableLegacyMutators: boolean | undefined;
|
|
1023
1023
|
}>;
|
|
1024
1024
|
export { getAccounts } from './getAccounts';
|
|
1025
1025
|
export { getContacts } from './getContacts';
|
package/dist/zero/schema.d.ts
CHANGED
|
@@ -1019,7 +1019,7 @@ export declare const schema: {
|
|
|
1019
1019
|
};
|
|
1020
1020
|
};
|
|
1021
1021
|
enableLegacyQueries: boolean | undefined;
|
|
1022
|
-
enableLegacyMutators:
|
|
1022
|
+
enableLegacyMutators: boolean | undefined;
|
|
1023
1023
|
};
|
|
1024
1024
|
export type MarcoZeroSchema = typeof schema;
|
|
1025
1025
|
export declare const zeroTables: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"AA0bA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAjWJ,MAAM;4BACX,MAAM,EAAE;4BACR,MAAM,EAAE;6BACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkZT,CAAA"}
|
package/dist/zero/schema.js
CHANGED
|
@@ -380,7 +380,6 @@ const threadMessageRecipientRelationships = relationships(threadMessageRecipient
|
|
|
380
380
|
}),
|
|
381
381
|
}));
|
|
382
382
|
export const schema = createSchema({
|
|
383
|
-
enableLegacyMutators: false,
|
|
384
383
|
relationships: [
|
|
385
384
|
userRelationships,
|
|
386
385
|
userPushNotificationTokenRelationships,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marcoappio/marco-config",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.495",
|
|
4
4
|
"author": "team@marcoapp.io",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": "git@github.com:marcoappio/marco-config.git",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@orama/stemmers": "3.1.16",
|
|
29
29
|
"@orama/stopwords": "3.1.16",
|
|
30
|
-
"@rocicorp/zero": "0.25.0-canary.
|
|
30
|
+
"@rocicorp/zero": "0.25.0-canary.18",
|
|
31
31
|
"diff": "8.0.2",
|
|
32
32
|
"valibot": "1.1.0"
|
|
33
33
|
},
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ReadonlyJSONValue } from '@rocicorp/zero';
|
|
2
|
-
import { type MutatorDefinition } from '@rocicorp/zero';
|
|
3
|
-
import type { StandardSchemaV1 } from '@standard-schema/spec';
|
|
4
|
-
import type { MarcoZeroSchema } from '../../zero/schema';
|
|
5
|
-
export type MarcoZeroContext = {
|
|
6
|
-
userId: string;
|
|
7
|
-
};
|
|
8
|
-
type MarcoMutatorFn<TOutput extends ReadonlyJSONValue | undefined> = (options: {
|
|
9
|
-
args: TOutput;
|
|
10
|
-
ctx: MarcoZeroContext;
|
|
11
|
-
tx: import('@rocicorp/zero').Transaction<MarcoZeroSchema>;
|
|
12
|
-
}) => Promise<void>;
|
|
13
|
-
export declare function defineMutator<TInput extends ReadonlyJSONValue | undefined, TOutput extends ReadonlyJSONValue | undefined = TInput>(validator: StandardSchemaV1<TInput, TOutput>, mutator: MarcoMutatorFn<TOutput>): MutatorDefinition<TInput, TOutput, MarcoZeroContext>;
|
|
14
|
-
export declare function defineMutator<TInput extends ReadonlyJSONValue | undefined>(mutator: MarcoMutatorFn<TInput>): MutatorDefinition<TInput, TInput, MarcoZeroContext>;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=defineMutator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineMutator.d.ts","sourceRoot":"","sources":["../../../src/zero/mutators/defineMutator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAA;AACvD,OAAO,EAAE,KAAK,iBAAiB,EAAsC,MAAM,gBAAgB,CAAA;AAC3F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,KAAK,cAAc,CAAC,OAAO,SAAS,iBAAiB,GAAG,SAAS,IAAI,CAAC,OAAO,EAAE;IAC7E,IAAI,EAAE,OAAO,CAAA;IACb,GAAG,EAAE,gBAAgB,CAAA;IACrB,EAAE,EAAE,OAAO,gBAAgB,EAAE,WAAW,CAAC,eAAe,CAAC,CAAA;CAC1D,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;AAEnB,wBAAgB,aAAa,CAC3B,MAAM,SAAS,iBAAiB,GAAG,SAAS,EAC5C,OAAO,SAAS,iBAAiB,GAAG,SAAS,GAAG,MAAM,EAEtD,SAAS,EAAE,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,EAC5C,OAAO,EAAE,cAAc,CAAC,OAAO,CAAC,GAC/B,iBAAiB,CAAC,MAAM,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAA;AAEvD,wBAAgB,aAAa,CAAC,MAAM,SAAS,iBAAiB,GAAG,SAAS,EACxE,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,GAC9B,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { defineMutator as zeroDefineMutator } from '@rocicorp/zero';
|
|
2
|
-
export function defineMutator(validatorOrMutator, maybeMutator) {
|
|
3
|
-
if (maybeMutator) {
|
|
4
|
-
return zeroDefineMutator(validatorOrMutator, maybeMutator);
|
|
5
|
-
}
|
|
6
|
-
return zeroDefineMutator(validatorOrMutator);
|
|
7
|
-
}
|