@marcoappio/marco-config 2.0.528 → 2.0.529
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/constants/index.d.ts +4 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/user.d.ts +4 -0
- package/dist/constants/user.d.ts.map +1 -1
- package/dist/constants/user.js +4 -0
- package/dist/zero/index.d.ts +169 -30
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/mutatorSchemas.d.ts +47 -0
- package/dist/zero/mutatorSchemas.d.ts.map +1 -1
- package/dist/zero/mutatorSchemas.js +22 -0
- package/dist/zero/mutators.d.ts +58 -10
- package/dist/zero/mutators.d.ts.map +1 -1
- package/dist/zero/mutators.js +38 -0
- package/dist/zero/mutators.test.js +221 -0
- package/dist/zero/queries.d.ts +26 -10
- package/dist/zero/queries.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +32 -10
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +1 -0
- package/package.json +1 -1
package/dist/zero/schema.d.ts
CHANGED
|
@@ -31,6 +31,17 @@ export declare const schema: {
|
|
|
31
31
|
} & {
|
|
32
32
|
serverName: string;
|
|
33
33
|
};
|
|
34
|
+
readonly views: Omit<{
|
|
35
|
+
type: "json";
|
|
36
|
+
optional: false;
|
|
37
|
+
customType: {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
aliasEmails: string[];
|
|
41
|
+
}[];
|
|
42
|
+
}, "optional"> & {
|
|
43
|
+
optional: true;
|
|
44
|
+
};
|
|
34
45
|
};
|
|
35
46
|
primaryKey: readonly [string, ...string[]];
|
|
36
47
|
} & {
|
|
@@ -769,31 +780,31 @@ export declare const schema: {
|
|
|
769
780
|
relationships: {
|
|
770
781
|
readonly user: {
|
|
771
782
|
accounts: [{
|
|
772
|
-
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
783
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name" | "views")[];
|
|
773
784
|
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
774
785
|
readonly destSchema: "account";
|
|
775
786
|
readonly cardinality: "many";
|
|
776
787
|
}];
|
|
777
788
|
contacts: [{
|
|
778
|
-
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
789
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name" | "views")[];
|
|
779
790
|
readonly destField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
780
791
|
readonly destSchema: "contact";
|
|
781
792
|
readonly cardinality: "many";
|
|
782
793
|
}];
|
|
783
794
|
drafts: [{
|
|
784
|
-
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
795
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name" | "views")[];
|
|
785
796
|
readonly destField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
786
797
|
readonly destSchema: "draft";
|
|
787
798
|
readonly cardinality: "many";
|
|
788
799
|
}];
|
|
789
800
|
pushNotificationTokens: [{
|
|
790
|
-
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
801
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name" | "views")[];
|
|
791
802
|
readonly destField: readonly ("id" | "createdAt" | "token" | "userId")[];
|
|
792
803
|
readonly destSchema: "userPushNotificationToken";
|
|
793
804
|
readonly cardinality: "many";
|
|
794
805
|
}];
|
|
795
806
|
threads: [{
|
|
796
|
-
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
807
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name" | "views")[];
|
|
797
808
|
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
798
809
|
readonly destSchema: "thread";
|
|
799
810
|
readonly cardinality: "many";
|
|
@@ -802,7 +813,7 @@ export declare const schema: {
|
|
|
802
813
|
readonly userPushNotificationToken: {
|
|
803
814
|
user: [{
|
|
804
815
|
readonly sourceField: readonly ("id" | "createdAt" | "token" | "userId")[];
|
|
805
|
-
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
816
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name" | "views")[];
|
|
806
817
|
readonly destSchema: "user";
|
|
807
818
|
readonly cardinality: "one";
|
|
808
819
|
}];
|
|
@@ -810,7 +821,7 @@ export declare const schema: {
|
|
|
810
821
|
readonly contact: {
|
|
811
822
|
user: [{
|
|
812
823
|
readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
813
|
-
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
824
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name" | "views")[];
|
|
814
825
|
readonly destSchema: "user";
|
|
815
826
|
readonly cardinality: "one";
|
|
816
827
|
}];
|
|
@@ -848,7 +859,7 @@ export declare const schema: {
|
|
|
848
859
|
}];
|
|
849
860
|
user: [{
|
|
850
861
|
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
851
|
-
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
862
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name" | "views")[];
|
|
852
863
|
readonly destSchema: "user";
|
|
853
864
|
readonly cardinality: "one";
|
|
854
865
|
}];
|
|
@@ -895,7 +906,7 @@ export declare const schema: {
|
|
|
895
906
|
}];
|
|
896
907
|
user: [{
|
|
897
908
|
readonly sourceField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
898
|
-
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
909
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name" | "views")[];
|
|
899
910
|
readonly destSchema: "user";
|
|
900
911
|
readonly cardinality: "one";
|
|
901
912
|
}];
|
|
@@ -940,7 +951,7 @@ export declare const schema: {
|
|
|
940
951
|
}];
|
|
941
952
|
user: [{
|
|
942
953
|
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
943
|
-
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
954
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name" | "views")[];
|
|
944
955
|
readonly destSchema: "user";
|
|
945
956
|
readonly cardinality: "one";
|
|
946
957
|
}];
|
|
@@ -1759,6 +1770,17 @@ export declare const tables: {
|
|
|
1759
1770
|
} & {
|
|
1760
1771
|
serverName: string;
|
|
1761
1772
|
};
|
|
1773
|
+
readonly views: Omit<{
|
|
1774
|
+
type: "json";
|
|
1775
|
+
optional: false;
|
|
1776
|
+
customType: {
|
|
1777
|
+
id: string;
|
|
1778
|
+
name: string;
|
|
1779
|
+
aliasEmails: string[];
|
|
1780
|
+
}[];
|
|
1781
|
+
}, "optional"> & {
|
|
1782
|
+
optional: true;
|
|
1783
|
+
};
|
|
1762
1784
|
};
|
|
1763
1785
|
primaryKey: readonly [string, ...string[]];
|
|
1764
1786
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"
|
|
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,6 +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().optional(),
|
|
8
9
|
})
|
|
9
10
|
.primaryKey('id');
|
|
10
11
|
const userPushNotificationToken = table('userPushNotificationToken')
|