@marcoappio/marco-config 2.0.529 → 2.0.530
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 +5 -13
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/mutators.d.ts +1 -3
- package/dist/zero/mutators.d.ts.map +1 -1
- package/dist/zero/mutators.test.js +0 -21
- package/dist/zero/queries.d.ts +2 -4
- package/dist/zero/queries.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +2 -6
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +1 -1
- package/package.json +1 -1
package/dist/zero/index.d.ts
CHANGED
|
@@ -878,7 +878,7 @@ export declare const marcoZero: {
|
|
|
878
878
|
} & {
|
|
879
879
|
serverName: string;
|
|
880
880
|
};
|
|
881
|
-
readonly views:
|
|
881
|
+
readonly views: {
|
|
882
882
|
type: "json";
|
|
883
883
|
optional: false;
|
|
884
884
|
customType: {
|
|
@@ -886,8 +886,6 @@ export declare const marcoZero: {
|
|
|
886
886
|
name: string;
|
|
887
887
|
aliasEmails: string[];
|
|
888
888
|
}[];
|
|
889
|
-
}, "optional"> & {
|
|
890
|
-
optional: true;
|
|
891
889
|
};
|
|
892
890
|
};
|
|
893
891
|
primaryKey: readonly [string, ...string[]];
|
|
@@ -2170,7 +2168,7 @@ export declare const marcoZero: {
|
|
|
2170
2168
|
id: string;
|
|
2171
2169
|
name: string;
|
|
2172
2170
|
aliasEmails: string[];
|
|
2173
|
-
}[]
|
|
2171
|
+
}[];
|
|
2174
2172
|
} & {
|
|
2175
2173
|
readonly accounts: readonly ({
|
|
2176
2174
|
readonly color: string;
|
|
@@ -2251,7 +2249,7 @@ export declare const marcoZero: {
|
|
|
2251
2249
|
} & {
|
|
2252
2250
|
serverName: string;
|
|
2253
2251
|
};
|
|
2254
|
-
readonly views:
|
|
2252
|
+
readonly views: {
|
|
2255
2253
|
type: "json";
|
|
2256
2254
|
optional: false;
|
|
2257
2255
|
customType: {
|
|
@@ -2259,8 +2257,6 @@ export declare const marcoZero: {
|
|
|
2259
2257
|
name: string;
|
|
2260
2258
|
aliasEmails: string[];
|
|
2261
2259
|
}[];
|
|
2262
|
-
}, "optional"> & {
|
|
2263
|
-
optional: true;
|
|
2264
2260
|
};
|
|
2265
2261
|
};
|
|
2266
2262
|
primaryKey: readonly [string, ...string[]];
|
|
@@ -3294,7 +3290,7 @@ export declare const marcoZero: {
|
|
|
3294
3290
|
} & {
|
|
3295
3291
|
serverName: string;
|
|
3296
3292
|
};
|
|
3297
|
-
readonly views:
|
|
3293
|
+
readonly views: {
|
|
3298
3294
|
type: "json";
|
|
3299
3295
|
optional: false;
|
|
3300
3296
|
customType: {
|
|
@@ -3302,8 +3298,6 @@ export declare const marcoZero: {
|
|
|
3302
3298
|
name: string;
|
|
3303
3299
|
aliasEmails: string[];
|
|
3304
3300
|
}[];
|
|
3305
|
-
}, "optional"> & {
|
|
3306
|
-
optional: true;
|
|
3307
3301
|
};
|
|
3308
3302
|
};
|
|
3309
3303
|
primaryKey: readonly [string, ...string[]];
|
|
@@ -5033,7 +5027,7 @@ export declare const marcoZero: {
|
|
|
5033
5027
|
} & {
|
|
5034
5028
|
serverName: string;
|
|
5035
5029
|
};
|
|
5036
|
-
readonly views:
|
|
5030
|
+
readonly views: {
|
|
5037
5031
|
type: "json";
|
|
5038
5032
|
optional: false;
|
|
5039
5033
|
customType: {
|
|
@@ -5041,8 +5035,6 @@ export declare const marcoZero: {
|
|
|
5041
5035
|
name: string;
|
|
5042
5036
|
aliasEmails: string[];
|
|
5043
5037
|
}[];
|
|
5044
|
-
}, "optional"> & {
|
|
5045
|
-
optional: true;
|
|
5046
5038
|
};
|
|
5047
5039
|
};
|
|
5048
5040
|
primaryKey: readonly [string, ...string[]];
|
package/dist/zero/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMZ,CAAA"}
|
package/dist/zero/mutators.d.ts
CHANGED
|
@@ -506,7 +506,7 @@ export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
|
|
|
506
506
|
} & {
|
|
507
507
|
serverName: string;
|
|
508
508
|
};
|
|
509
|
-
readonly views:
|
|
509
|
+
readonly views: {
|
|
510
510
|
type: "json";
|
|
511
511
|
optional: false;
|
|
512
512
|
customType: {
|
|
@@ -514,8 +514,6 @@ export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
|
|
|
514
514
|
name: string;
|
|
515
515
|
aliasEmails: string[];
|
|
516
516
|
}[];
|
|
517
|
-
}, "optional"> & {
|
|
518
|
-
optional: true;
|
|
519
517
|
};
|
|
520
518
|
};
|
|
521
519
|
primaryKey: readonly [string, ...string[]];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutators.d.ts","sourceRoot":"","sources":["../../src/zero/mutators.ts"],"names":[],"mappings":"AASA,KAAK,OAAO,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAqGjC,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"mutators.d.ts","sourceRoot":"","sources":["../../src/zero/mutators.ts"],"names":[],"mappings":"AASA,KAAK,OAAO,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAqGjC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0iBnB,CAAA"}
|
|
@@ -685,18 +685,6 @@ describe('mutators', () => {
|
|
|
685
685
|
await mutators.user.createView.fn({ args, ctx, tx: tx });
|
|
686
686
|
expect(tx.mutate.user.update).not.toHaveBeenCalled();
|
|
687
687
|
});
|
|
688
|
-
it('handles null views array', async () => {
|
|
689
|
-
tx.run = mock(() => Promise.resolve({ id: 'user-1', views: null }));
|
|
690
|
-
const args = {
|
|
691
|
-
id: 'user-1',
|
|
692
|
-
view: { aliasEmails: ['a@example.com'], id: 'view-1', name: 'Work' },
|
|
693
|
-
};
|
|
694
|
-
await mutators.user.createView.fn({ args, ctx, tx: tx });
|
|
695
|
-
expect(tx.mutate.user.update).toHaveBeenCalledWith({
|
|
696
|
-
id: 'user-1',
|
|
697
|
-
views: [{ aliasEmails: ['a@example.com'], id: 'view-1', name: 'Work' }],
|
|
698
|
-
});
|
|
699
|
-
});
|
|
700
688
|
});
|
|
701
689
|
describe('deleteView', () => {
|
|
702
690
|
it('deletes a view', async () => {
|
|
@@ -720,15 +708,6 @@ describe('mutators', () => {
|
|
|
720
708
|
await mutators.user.deleteView.fn({ args, ctx, tx: tx });
|
|
721
709
|
expect(tx.mutate.user.update).not.toHaveBeenCalled();
|
|
722
710
|
});
|
|
723
|
-
it('handles null views array', async () => {
|
|
724
|
-
tx.run = mock(() => Promise.resolve({ id: 'user-1', views: null }));
|
|
725
|
-
const args = { id: 'user-1', viewId: 'view-1' };
|
|
726
|
-
await mutators.user.deleteView.fn({ args, ctx, tx: tx });
|
|
727
|
-
expect(tx.mutate.user.update).toHaveBeenCalledWith({
|
|
728
|
-
id: 'user-1',
|
|
729
|
-
views: [],
|
|
730
|
-
});
|
|
731
|
-
});
|
|
732
711
|
});
|
|
733
712
|
describe('updateView', () => {
|
|
734
713
|
it('updates view name', async () => {
|
package/dist/zero/queries.d.ts
CHANGED
|
@@ -271,7 +271,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
271
271
|
id: string;
|
|
272
272
|
name: string;
|
|
273
273
|
aliasEmails: string[];
|
|
274
|
-
}[]
|
|
274
|
+
}[];
|
|
275
275
|
} & {
|
|
276
276
|
readonly accounts: readonly ({
|
|
277
277
|
readonly color: string;
|
|
@@ -350,7 +350,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
350
350
|
} & {
|
|
351
351
|
serverName: string;
|
|
352
352
|
};
|
|
353
|
-
readonly views:
|
|
353
|
+
readonly views: {
|
|
354
354
|
type: "json";
|
|
355
355
|
optional: false;
|
|
356
356
|
customType: {
|
|
@@ -358,8 +358,6 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
358
358
|
name: string;
|
|
359
359
|
aliasEmails: string[];
|
|
360
360
|
}[];
|
|
361
|
-
}, "optional"> & {
|
|
362
|
-
optional: true;
|
|
363
361
|
};
|
|
364
362
|
};
|
|
365
363
|
primaryKey: readonly [string, ...string[]];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/zero/queries.ts"],"names":[],"mappings":"AAOA,KAAK,OAAO,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAQjC,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/zero/queries.ts"],"names":[],"mappings":"AAOA,KAAK,OAAO,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAQjC,eAAO,MAAM,OAAO;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoOlB,CAAA"}
|
package/dist/zero/schema.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare const schema: {
|
|
|
31
31
|
} & {
|
|
32
32
|
serverName: string;
|
|
33
33
|
};
|
|
34
|
-
readonly views:
|
|
34
|
+
readonly views: {
|
|
35
35
|
type: "json";
|
|
36
36
|
optional: false;
|
|
37
37
|
customType: {
|
|
@@ -39,8 +39,6 @@ export declare const schema: {
|
|
|
39
39
|
name: string;
|
|
40
40
|
aliasEmails: string[];
|
|
41
41
|
}[];
|
|
42
|
-
}, "optional"> & {
|
|
43
|
-
optional: true;
|
|
44
42
|
};
|
|
45
43
|
};
|
|
46
44
|
primaryKey: readonly [string, ...string[]];
|
|
@@ -1770,7 +1768,7 @@ export declare const tables: {
|
|
|
1770
1768
|
} & {
|
|
1771
1769
|
serverName: string;
|
|
1772
1770
|
};
|
|
1773
|
-
readonly views:
|
|
1771
|
+
readonly views: {
|
|
1774
1772
|
type: "json";
|
|
1775
1773
|
optional: false;
|
|
1776
1774
|
customType: {
|
|
@@ -1778,8 +1776,6 @@ export declare const tables: {
|
|
|
1778
1776
|
name: string;
|
|
1779
1777
|
aliasEmails: string[];
|
|
1780
1778
|
}[];
|
|
1781
|
-
}, "optional"> & {
|
|
1782
|
-
optional: true;
|
|
1783
1779
|
};
|
|
1784
1780
|
};
|
|
1785
1781
|
primaryKey: readonly [string, ...string[]];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"AAmcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAtaL,MAAM;8BACJ,MAAM;qCACC,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"AAmcA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAtaL,MAAM;8BACJ,MAAM;qCACC,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAkEhB,MAAM;4BACX,MAAM,EAAE;4BACR,MAAM,EAAE;6BACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAvEL,MAAM;0BACJ,MAAM;iCACC,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAudrB,CAAA"}
|
package/dist/zero/schema.js
CHANGED
|
@@ -5,7 +5,7 @@ const user = table('user')
|
|
|
5
5
|
name: string().optional(),
|
|
6
6
|
profilePicture: string().optional().from('profile_picture'),
|
|
7
7
|
undoSendEnabled: boolean().from('undo_send_enabled'),
|
|
8
|
-
views: json()
|
|
8
|
+
views: json(),
|
|
9
9
|
})
|
|
10
10
|
.primaryKey('id');
|
|
11
11
|
const userPushNotificationToken = table('userPushNotificationToken')
|