@marcoappio/marco-config 2.0.414 → 2.0.415
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/clients/account.d.ts +144 -0
- package/dist/clients/account.d.ts.map +1 -0
- package/dist/clients/account.js +93 -0
- package/dist/clients/contact.d.ts +14 -0
- package/dist/clients/contact.d.ts.map +1 -0
- package/dist/clients/contact.js +14 -0
- package/dist/clients/draft.d.ts +196 -0
- package/dist/clients/draft.d.ts.map +1 -0
- package/dist/clients/draft.js +122 -0
- package/dist/clients/index.d.ts +526 -0
- package/dist/clients/index.d.ts.map +1 -0
- package/dist/clients/index.js +13 -0
- package/dist/clients/thread.d.ts +125 -0
- package/dist/clients/thread.d.ts.map +1 -0
- package/dist/clients/thread.js +117 -0
- package/dist/clients/user.d.ts +53 -0
- package/dist/clients/user.d.ts.map +1 -0
- package/dist/clients/user.js +52 -0
- package/dist/clients/utils/index.d.ts +4 -0
- package/dist/clients/utils/index.d.ts.map +1 -0
- package/dist/clients/utils/index.js +4 -0
- package/dist/clients/utils/labelSpecialUseOrdering.d.ts +3 -0
- package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +1 -0
- package/dist/clients/utils/labelSpecialUseOrdering.js +1 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/marcoPublicConfig.d.ts +6 -0
- package/dist/marcoPublicConfig.d.ts.map +1 -1
- package/dist/marcoPublicConfig.js +18 -0
- package/dist/sdk/endpoints/index.d.ts +1073 -0
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/index.js +2 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +21 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +16 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +19 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +19 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +39 -0
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/emailMessage/index.js +6 -0
- package/dist/sdk/endpoints/private/index.d.ts +938 -0
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/index.js +8 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts +888 -0
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/index.js +3 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +71 -0
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/account.js +33 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +56 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/contact.js +40 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +72 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/draft.js +36 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +349 -0
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/index.js +6 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +100 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/thread.js +45 -0
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +57 -0
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/pull/user.js +33 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +151 -0
- package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/account.js +73 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +206 -0
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/draft.js +79 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +538 -0
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/index.js +5 -0
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +122 -0
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/thread.js +79 -0
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +64 -0
- package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/sync/push/user.js +43 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts +10 -0
- package/dist/sdk/endpoints/private/user/deleteUser.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/deleteUser.js +13 -0
- package/dist/sdk/endpoints/private/user/index.d.ts +11 -0
- package/dist/sdk/endpoints/private/user/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/private/user/index.js +4 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts +137 -0
- package/dist/sdk/endpoints/public/auth/index.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/index.js +8 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +41 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +33 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts +27 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/sendAuthCode.js +19 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +72 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts.map +1 -0
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +37 -0
- package/dist/sdk/endpoints/public/index.d.ts +136 -0
- package/dist/sdk/endpoints/public/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/index.js +2 -0
- package/dist/sdk/index.d.ts +1073 -0
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/types/Endpoint.d.ts +2 -1
- package/dist/types/Endpoint.d.ts.map +1 -1
- package/dist/types/MarcoClient.d.ts +12 -0
- package/dist/types/MarcoClient.d.ts.map +1 -0
- package/dist/types/MarcoClient.js +1 -0
- package/dist/types/SDKError.d.ts +4 -0
- package/dist/types/SDKError.d.ts.map +1 -0
- package/dist/types/SDKError.js +1 -0
- package/dist/types/WS.d.ts +7 -0
- package/dist/types/WS.d.ts.map +1 -0
- package/dist/types/WS.js +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +3 -0
- package/dist/ws.d.ts +6 -0
- package/dist/ws.d.ts.map +1 -0
- package/dist/ws.js +5 -0
- package/package.json +1 -2
- package/dist/instantDB/index.d.ts +0 -3
- package/dist/instantDB/index.d.ts.map +0 -1
- package/dist/instantDB/index.js +0 -2
- package/dist/instantDB/instant.perms.d.ts +0 -134
- package/dist/instantDB/instant.perms.d.ts.map +0 -1
- package/dist/instantDB/instant.perms.js +0 -133
- package/dist/instantDB/instant.schema.d.ts +0 -338
- package/dist/instantDB/instant.schema.d.ts.map +0 -1
- package/dist/instantDB/instant.schema.js +0 -180
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMc,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { account } from './account';
|
|
2
|
+
import { contact } from './contact';
|
|
3
|
+
import { draft } from './draft';
|
|
4
|
+
import { thread } from './thread';
|
|
5
|
+
import { user } from './user';
|
|
6
|
+
export { marcoClientsUtils } from './utils';
|
|
7
|
+
export const marcoClients = {
|
|
8
|
+
account,
|
|
9
|
+
contact,
|
|
10
|
+
draft,
|
|
11
|
+
thread,
|
|
12
|
+
user,
|
|
13
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const thread: {
|
|
3
|
+
model: v.ObjectSchema<{
|
|
4
|
+
readonly bagOfWords: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
5
|
+
readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
6
|
+
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
7
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
8
|
+
readonly messages: v.ArraySchema<v.ObjectSchema<{
|
|
9
|
+
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
10
|
+
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
11
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
12
|
+
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
13
|
+
readonly size: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
14
|
+
readonly status: v.PicklistSchema<readonly ["NOT_DOWNLOADED", "DOWNLOAD_REQUESTED", "DOWNLOADED", "DOWNLOAD_FAILED"], undefined>;
|
|
15
|
+
}, undefined>, undefined>;
|
|
16
|
+
readonly bcc: v.ArraySchema<v.ObjectSchema<{
|
|
17
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
18
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
19
|
+
}, undefined>, undefined>;
|
|
20
|
+
readonly cc: v.ArraySchema<v.ObjectSchema<{
|
|
21
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
22
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
+
}, undefined>, undefined>;
|
|
24
|
+
readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
25
|
+
readonly envelopeSubject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
|
+
readonly from: v.ObjectSchema<{
|
|
27
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
28
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
31
|
+
readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
32
|
+
readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
+
readonly replyTo: v.ArraySchema<v.ObjectSchema<{
|
|
34
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
35
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
+
}, undefined>, undefined>;
|
|
37
|
+
readonly to: v.ArraySchema<v.ObjectSchema<{
|
|
38
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
39
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
|
+
}, undefined>, undefined>;
|
|
41
|
+
}, undefined>, undefined>;
|
|
42
|
+
readonly seen: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
43
|
+
}, undefined>;
|
|
44
|
+
mutators: {
|
|
45
|
+
addLabel: {
|
|
46
|
+
delta: v.ObjectSchema<{
|
|
47
|
+
readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
49
|
+
}, undefined>;
|
|
50
|
+
};
|
|
51
|
+
delete: {
|
|
52
|
+
delta: v.UnionSchema<[v.ObjectSchema<{
|
|
53
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
|
+
}, undefined>, v.ObjectSchema<{
|
|
55
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
56
|
+
}, undefined>], undefined>;
|
|
57
|
+
};
|
|
58
|
+
removeLabel: {
|
|
59
|
+
delta: v.ObjectSchema<{
|
|
60
|
+
readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
61
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
62
|
+
}, undefined>;
|
|
63
|
+
};
|
|
64
|
+
requestAttachmentDownload: {
|
|
65
|
+
delta: v.UnionSchema<readonly [v.ObjectSchema<{
|
|
66
|
+
readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
67
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
68
|
+
}, undefined>, v.ObjectSchema<{
|
|
69
|
+
readonly attachmentIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
70
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
71
|
+
}, undefined>], undefined>;
|
|
72
|
+
};
|
|
73
|
+
setFlagged: {
|
|
74
|
+
delta: v.UnionSchema<readonly [v.ObjectSchema<{
|
|
75
|
+
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
76
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
77
|
+
}, undefined>, v.ObjectSchema<{
|
|
78
|
+
readonly flagged: v.NonOptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
79
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
80
|
+
}, undefined>], undefined>;
|
|
81
|
+
};
|
|
82
|
+
setSeen: {
|
|
83
|
+
delta: v.UnionSchema<readonly [v.ObjectSchema<{
|
|
84
|
+
readonly seen: v.BooleanSchema<undefined>;
|
|
85
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
86
|
+
}, undefined>, v.ObjectSchema<{
|
|
87
|
+
readonly seen: v.BooleanSchema<undefined>;
|
|
88
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
89
|
+
}, undefined>], undefined>;
|
|
90
|
+
};
|
|
91
|
+
setArchive: {
|
|
92
|
+
delta: v.UnionSchema<[v.ObjectSchema<{
|
|
93
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
94
|
+
}, undefined>, v.ObjectSchema<{
|
|
95
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
96
|
+
}, undefined>], undefined>;
|
|
97
|
+
};
|
|
98
|
+
setInbox: {
|
|
99
|
+
delta: v.UnionSchema<[v.ObjectSchema<{
|
|
100
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
101
|
+
}, undefined>, v.ObjectSchema<{
|
|
102
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
103
|
+
}, undefined>], undefined>;
|
|
104
|
+
};
|
|
105
|
+
setSpam: {
|
|
106
|
+
delta: v.UnionSchema<[v.ObjectSchema<{
|
|
107
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
108
|
+
}, undefined>, v.ObjectSchema<{
|
|
109
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
110
|
+
}, undefined>], undefined>;
|
|
111
|
+
};
|
|
112
|
+
setTrash: {
|
|
113
|
+
delta: v.UnionSchema<[v.ObjectSchema<{
|
|
114
|
+
readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
115
|
+
}, undefined>, v.ObjectSchema<{
|
|
116
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
117
|
+
}, undefined>], undefined>;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
name: "thread";
|
|
121
|
+
pullUrl: "/v1/pv/sync/pull/thread";
|
|
122
|
+
pushUrl: "/v1/pv/sync/push/thread";
|
|
123
|
+
schemaVersion: "v1";
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=thread.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/clients/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA6C5B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiFI,CAAA"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoConstants } from '../constants';
|
|
3
|
+
import { marcoSchemas } from '../schemas';
|
|
4
|
+
import { MESSAGE_ATTACHMENT_STATUSES } from '../types';
|
|
5
|
+
const inlineContact = v.object({
|
|
6
|
+
emailAddress: marcoSchemas.string.email(),
|
|
7
|
+
name: marcoSchemas.string.nullable(),
|
|
8
|
+
});
|
|
9
|
+
const inlineAttachment = v.object({
|
|
10
|
+
fileName: marcoSchemas.string.required(),
|
|
11
|
+
id: marcoSchemas.string.required(),
|
|
12
|
+
mimeType: marcoSchemas.string.required(),
|
|
13
|
+
size: marcoSchemas.number.positiveInteger(),
|
|
14
|
+
status: v.picklist(MESSAGE_ATTACHMENT_STATUSES),
|
|
15
|
+
});
|
|
16
|
+
const threadIdOrIdArraySchema = v.union([
|
|
17
|
+
v.object({
|
|
18
|
+
threadId: marcoSchemas.string.required(),
|
|
19
|
+
}),
|
|
20
|
+
v.object({
|
|
21
|
+
threadIds: v.array(marcoSchemas.string.required()),
|
|
22
|
+
}),
|
|
23
|
+
]);
|
|
24
|
+
const specialUseMutators = {
|
|
25
|
+
setArchive: {
|
|
26
|
+
delta: threadIdOrIdArraySchema,
|
|
27
|
+
},
|
|
28
|
+
setInbox: {
|
|
29
|
+
delta: threadIdOrIdArraySchema,
|
|
30
|
+
},
|
|
31
|
+
setSpam: {
|
|
32
|
+
delta: threadIdOrIdArraySchema,
|
|
33
|
+
},
|
|
34
|
+
setTrash: {
|
|
35
|
+
delta: threadIdOrIdArraySchema,
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
export const thread = {
|
|
39
|
+
model: v.object({
|
|
40
|
+
bagOfWords: v.array(marcoSchemas.string.required()),
|
|
41
|
+
emailAccountId: marcoSchemas.string.required(),
|
|
42
|
+
flagged: v.nonOptional(v.boolean()),
|
|
43
|
+
id: marcoSchemas.string.required(),
|
|
44
|
+
messages: v.array(v.object({
|
|
45
|
+
attachments: v.array(inlineAttachment),
|
|
46
|
+
bcc: v.array(inlineContact),
|
|
47
|
+
cc: v.array(inlineContact),
|
|
48
|
+
envelopeDate: marcoSchemas.number.positiveInteger(),
|
|
49
|
+
envelopeSubject: marcoSchemas.string.nullable(),
|
|
50
|
+
from: inlineContact,
|
|
51
|
+
id: marcoSchemas.string.required(),
|
|
52
|
+
labelIds: v.array(marcoSchemas.string.required()),
|
|
53
|
+
previewText: marcoSchemas.string.required(marcoConstants.messages.PREVIEW_TEXT_MAX_LENGTH),
|
|
54
|
+
replyTo: v.array(inlineContact),
|
|
55
|
+
to: v.array(inlineContact),
|
|
56
|
+
})),
|
|
57
|
+
seen: v.nonOptional(v.boolean()),
|
|
58
|
+
}),
|
|
59
|
+
mutators: {
|
|
60
|
+
...specialUseMutators,
|
|
61
|
+
addLabel: {
|
|
62
|
+
delta: v.object({
|
|
63
|
+
labelPath: marcoSchemas.string.required(),
|
|
64
|
+
threadIds: v.array(marcoSchemas.string.required()),
|
|
65
|
+
}),
|
|
66
|
+
},
|
|
67
|
+
delete: {
|
|
68
|
+
delta: threadIdOrIdArraySchema,
|
|
69
|
+
},
|
|
70
|
+
removeLabel: {
|
|
71
|
+
delta: v.object({
|
|
72
|
+
labelPath: marcoSchemas.string.required(),
|
|
73
|
+
threadIds: v.array(marcoSchemas.string.required()),
|
|
74
|
+
}),
|
|
75
|
+
},
|
|
76
|
+
requestAttachmentDownload: {
|
|
77
|
+
delta: v.union([
|
|
78
|
+
v.object({
|
|
79
|
+
attachmentId: marcoSchemas.string.required(),
|
|
80
|
+
threadId: marcoSchemas.string.required(),
|
|
81
|
+
}),
|
|
82
|
+
v.object({
|
|
83
|
+
attachmentIds: v.array(marcoSchemas.string.required()),
|
|
84
|
+
threadIds: v.array(marcoSchemas.string.required()),
|
|
85
|
+
}),
|
|
86
|
+
]),
|
|
87
|
+
},
|
|
88
|
+
setFlagged: {
|
|
89
|
+
delta: v.union([
|
|
90
|
+
v.object({
|
|
91
|
+
flagged: v.nonOptional(v.boolean()),
|
|
92
|
+
threadId: marcoSchemas.string.required(),
|
|
93
|
+
}),
|
|
94
|
+
v.object({
|
|
95
|
+
flagged: v.nonOptional(v.boolean()),
|
|
96
|
+
threadIds: v.array(marcoSchemas.string.required()),
|
|
97
|
+
}),
|
|
98
|
+
]),
|
|
99
|
+
},
|
|
100
|
+
setSeen: {
|
|
101
|
+
delta: v.union([
|
|
102
|
+
v.object({
|
|
103
|
+
seen: v.boolean(),
|
|
104
|
+
threadId: marcoSchemas.string.required(),
|
|
105
|
+
}),
|
|
106
|
+
v.object({
|
|
107
|
+
seen: v.boolean(),
|
|
108
|
+
threadIds: v.array(marcoSchemas.string.required()),
|
|
109
|
+
}),
|
|
110
|
+
]),
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
name: 'thread',
|
|
114
|
+
pullUrl: '/v1/pv/sync/pull/thread',
|
|
115
|
+
pushUrl: '/v1/pv/sync/push/thread',
|
|
116
|
+
schemaVersion: 'v1',
|
|
117
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const user: {
|
|
3
|
+
model: v.ObjectSchema<{
|
|
4
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
5
|
+
readonly settings: v.ObjectSchema<{
|
|
6
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
7
|
+
readonly notifications: v.ObjectSchema<{
|
|
8
|
+
readonly pushNotificationTokens: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
9
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
10
|
+
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
11
|
+
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
12
|
+
}, undefined>, undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
readonly profilePicture: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
15
|
+
readonly undoSendEnabled: v.BooleanSchema<undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
mutators: {
|
|
19
|
+
deleteSettingsPushNotificationToken: {
|
|
20
|
+
delta: v.ObjectSchema<{
|
|
21
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
22
|
+
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
};
|
|
25
|
+
deleteSettingsPushNotificationTokenForDevice: {
|
|
26
|
+
delta: v.ObjectSchema<{
|
|
27
|
+
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
28
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
29
|
+
}, undefined>;
|
|
30
|
+
};
|
|
31
|
+
setSettingsName: {
|
|
32
|
+
delta: v.ObjectSchema<{
|
|
33
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
+
}, undefined>;
|
|
36
|
+
};
|
|
37
|
+
setSettingsPushNotificationToken: {
|
|
38
|
+
delta: v.ObjectSchema<{
|
|
39
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
|
+
readonly pushNotificationToken: v.ObjectSchema<{
|
|
41
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
42
|
+
readonly deviceId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
|
+
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
44
|
+
}, undefined>;
|
|
45
|
+
}, undefined>;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
name: "user";
|
|
49
|
+
pullUrl: "/v1/pv/sync/pull/user";
|
|
50
|
+
pushUrl: "/v1/pv/sync/push/user";
|
|
51
|
+
schemaVersion: "v1";
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/clients/user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsB5B,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCM,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { marcoSchemas } from '../schemas';
|
|
3
|
+
const pushNotificationToken = v.object({
|
|
4
|
+
createdAt: marcoSchemas.number.positiveInteger(),
|
|
5
|
+
deviceId: marcoSchemas.string.required(),
|
|
6
|
+
token: marcoSchemas.string.required(),
|
|
7
|
+
});
|
|
8
|
+
const pushNotificationTokens = v.record(marcoSchemas.string.required(), pushNotificationToken);
|
|
9
|
+
const userSettings = v.object({
|
|
10
|
+
name: marcoSchemas.string.nullable(),
|
|
11
|
+
notifications: v.object({
|
|
12
|
+
pushNotificationTokens,
|
|
13
|
+
}),
|
|
14
|
+
profilePicture: marcoSchemas.string.nullable(),
|
|
15
|
+
undoSendEnabled: v.boolean(),
|
|
16
|
+
});
|
|
17
|
+
export const user = {
|
|
18
|
+
model: v.object({
|
|
19
|
+
id: marcoSchemas.string.required(),
|
|
20
|
+
settings: userSettings,
|
|
21
|
+
}),
|
|
22
|
+
mutators: {
|
|
23
|
+
deleteSettingsPushNotificationToken: {
|
|
24
|
+
delta: v.object({
|
|
25
|
+
id: marcoSchemas.string.required(),
|
|
26
|
+
token: marcoSchemas.string.required(),
|
|
27
|
+
}),
|
|
28
|
+
},
|
|
29
|
+
deleteSettingsPushNotificationTokenForDevice: {
|
|
30
|
+
delta: v.object({
|
|
31
|
+
deviceId: marcoSchemas.string.required(),
|
|
32
|
+
id: marcoSchemas.string.required(),
|
|
33
|
+
}),
|
|
34
|
+
},
|
|
35
|
+
setSettingsName: {
|
|
36
|
+
delta: v.object({
|
|
37
|
+
id: marcoSchemas.string.required(),
|
|
38
|
+
name: marcoSchemas.string.nullable(),
|
|
39
|
+
}),
|
|
40
|
+
},
|
|
41
|
+
setSettingsPushNotificationToken: {
|
|
42
|
+
delta: v.object({
|
|
43
|
+
id: marcoSchemas.string.required(),
|
|
44
|
+
pushNotificationToken,
|
|
45
|
+
}),
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
name: 'user',
|
|
49
|
+
pullUrl: '/v1/pv/sync/pull/user',
|
|
50
|
+
pushUrl: '/v1/pv/sync/push/user',
|
|
51
|
+
schemaVersion: 'v1',
|
|
52
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clients/utils/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;CAE7B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labelSpecialUseOrdering.d.ts","sourceRoot":"","sources":["../../../src/clients/utils/labelSpecialUseOrdering.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1D,eAAO,MAAM,uBAAuB,EAAE,eAAe,EAAkD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const labelSpecialUseOrdering = ['INBOX', 'SENT', 'SPAM', 'TRASH', 'ARCHIVE'];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
export { marcoClients, marcoClientsUtils } from './clients';
|
|
1
2
|
export { marcoConstants } from './constants';
|
|
2
|
-
export { instantDBPermissions, instantDBSchema } from './instantDB';
|
|
3
3
|
export { MARCO_ENV, MarcoEnvironment, marcoPublicConfig } from './marcoPublicConfig';
|
|
4
4
|
export { marcoSchemas } from './schemas';
|
|
5
5
|
export { marcoSDK } from './sdk';
|
|
6
|
-
export { EndpointConfig, SDKResponse as EndpointResponse } from './types';
|
|
6
|
+
export { EndpointConfig, LabelSpecialUse, MarcoClient, MarcoWSEvent, MarcoWSSyncPoke, SDKError, SDKResponse as EndpointResponse, } from './types';
|
|
7
7
|
export { accountUtils, stringPatch } from './utils';
|
|
8
|
+
export { marcoWS } from './ws';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EACL,cAAc,EACd,eAAe,EACf,WAAW,EACX,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,WAAW,IAAI,gBAAgB,GAChC,MAAM,SAAS,CAAA;AAChB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
export { marcoClients, marcoClientsUtils } from './clients';
|
|
1
2
|
export { marcoConstants } from './constants';
|
|
2
|
-
export { instantDBPermissions, instantDBSchema } from './instantDB';
|
|
3
3
|
export { MARCO_ENV, marcoPublicConfig } from './marcoPublicConfig';
|
|
4
4
|
export { marcoSchemas } from './schemas';
|
|
5
5
|
export { marcoSDK } from './sdk';
|
|
6
6
|
export { accountUtils, stringPatch } from './utils';
|
|
7
|
+
export { marcoWS } from './ws';
|
|
@@ -23,6 +23,12 @@ type MarcoPublicConfig = {
|
|
|
23
23
|
tenantId: string;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
replicache: {
|
|
27
|
+
licenseKey: string;
|
|
28
|
+
};
|
|
29
|
+
workOS: {
|
|
30
|
+
clientId: string;
|
|
31
|
+
};
|
|
26
32
|
};
|
|
27
33
|
export declare const marcoPublicConfig: (env?: MarcoEnvironment) => MarcoPublicConfig;
|
|
28
34
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAGP,CAAA;AAEf,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM,CAAA;YAChB,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;KACF,CAAA;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"marcoPublicConfig.d.ts","sourceRoot":"","sources":["../src/marcoPublicConfig.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEvE,eAAO,MAAM,SAAS,kBAGP,CAAA;AAEf,KAAK,iBAAiB,GAAG;IACvB,KAAK,EAAE;QACL,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,GAAG,EAAE;YACH,OAAO,EAAE,MAAM,CAAA;SAChB,CAAA;QACD,EAAE,EAAE;YACF,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,GAAG,EAAE,MAAM,CAAA;SACZ,CAAA;KACF,CAAA;IACD,KAAK,EAAE;QACL,MAAM,EAAE;YACN,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QACD,OAAO,EAAE;YACP,QAAQ,EAAE,MAAM,CAAA;YAChB,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;KACF,CAAA;IACD,UAAU,EAAE;QACV,UAAU,EAAE,MAAM,CAAA;KACnB,CAAA;IACD,MAAM,EAAE;QACN,QAAQ,EAAE,MAAM,CAAA;KACjB,CAAA;CACF,CAAA;AA+FD,eAAO,MAAM,iBAAiB,SAAS,gBAAgB,sBAAmC,CAAA"}
|
|
@@ -25,6 +25,12 @@ const configMap = {
|
|
|
25
25
|
tenantId: '33fe2afe-644d-4fe2-a264-c4f2c34fa2cf',
|
|
26
26
|
},
|
|
27
27
|
},
|
|
28
|
+
replicache: {
|
|
29
|
+
licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
|
|
30
|
+
},
|
|
31
|
+
workOS: {
|
|
32
|
+
clientId: 'client_01J51ET6KV4GBGMGHY0PJ9VGP2',
|
|
33
|
+
},
|
|
28
34
|
},
|
|
29
35
|
production: {
|
|
30
36
|
marco: {
|
|
@@ -49,6 +55,12 @@ const configMap = {
|
|
|
49
55
|
tenantId: '33fe2afe-644d-4fe2-a264-c4f2c34fa2cf',
|
|
50
56
|
},
|
|
51
57
|
},
|
|
58
|
+
replicache: {
|
|
59
|
+
licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
|
|
60
|
+
},
|
|
61
|
+
workOS: {
|
|
62
|
+
clientId: 'client_01J51ET6RT5WCS3NNQYBB7FAE7',
|
|
63
|
+
},
|
|
52
64
|
},
|
|
53
65
|
staging: {
|
|
54
66
|
marco: {
|
|
@@ -73,6 +85,12 @@ const configMap = {
|
|
|
73
85
|
tenantId: '33fe2afe-644d-4fe2-a264-c4f2c34fa2cf',
|
|
74
86
|
},
|
|
75
87
|
},
|
|
88
|
+
replicache: {
|
|
89
|
+
licenseKey: 'la6cf85ee37b5495481575ecececc3e49',
|
|
90
|
+
},
|
|
91
|
+
workOS: {
|
|
92
|
+
clientId: 'client_01J51ET6KV4GBGMGHY0PJ9VGP2',
|
|
93
|
+
},
|
|
76
94
|
},
|
|
77
95
|
};
|
|
78
96
|
export const marcoPublicConfig = (env = 'development') => configMap[env];
|