@marcoappio/marco-config 2.0.99 → 2.0.102

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.
Files changed (57) hide show
  1. package/.eslintrc.json +1 -1
  2. package/dist/MarcoClients.d.ts +100 -0
  3. package/dist/MarcoClients.d.ts.map +1 -0
  4. package/dist/MarcoClients.js +1 -0
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +1 -2
  8. package/dist/sdk/endpoints/index.d.ts +0 -563
  9. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  10. package/dist/sdk/endpoints/private/index.d.ts +0 -563
  11. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  12. package/dist/sdk/endpoints/private/index.js +0 -2
  13. package/dist/sdk/index.d.ts +0 -563
  14. package/dist/sdk/index.d.ts.map +1 -1
  15. package/package.json +2 -2
  16. package/dist/ClientDB.d.ts +0 -276
  17. package/dist/ClientDB.d.ts.map +0 -1
  18. package/dist/ClientDB.js +0 -177
  19. package/dist/sdk/endpoints/private/clientDB/index.d.ts +0 -564
  20. package/dist/sdk/endpoints/private/clientDB/index.d.ts.map +0 -1
  21. package/dist/sdk/endpoints/private/clientDB/index.js +0 -6
  22. package/dist/sdk/endpoints/private/clientDB/schemas/changes.d.ts +0 -268
  23. package/dist/sdk/endpoints/private/clientDB/schemas/changes.d.ts.map +0 -1
  24. package/dist/sdk/endpoints/private/clientDB/schemas/changes.js +0 -17
  25. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccount.d.ts +0 -8
  26. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccount.d.ts.map +0 -1
  27. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccount.js +0 -7
  28. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccountIMAPPasswordConfig.d.ts +0 -11
  29. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccountIMAPPasswordConfig.d.ts.map +0 -1
  30. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccountIMAPPasswordConfig.js +0 -10
  31. package/dist/sdk/endpoints/private/clientDB/schemas/emailContact.d.ts +0 -10
  32. package/dist/sdk/endpoints/private/clientDB/schemas/emailContact.d.ts.map +0 -1
  33. package/dist/sdk/endpoints/private/clientDB/schemas/emailContact.js +0 -9
  34. package/dist/sdk/endpoints/private/clientDB/schemas/emailLabel.d.ts +0 -10
  35. package/dist/sdk/endpoints/private/clientDB/schemas/emailLabel.d.ts.map +0 -1
  36. package/dist/sdk/endpoints/private/clientDB/schemas/emailLabel.js +0 -9
  37. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessage.d.ts +0 -14
  38. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessage.d.ts.map +0 -1
  39. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessage.js +0 -13
  40. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageContact.d.ts +0 -11
  41. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageContact.d.ts.map +0 -1
  42. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageContact.js +0 -10
  43. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageLabel.d.ts +0 -9
  44. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageLabel.d.ts.map +0 -1
  45. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageLabel.js +0 -8
  46. package/dist/sdk/endpoints/private/clientDB/schemas/emailThread.d.ts +0 -8
  47. package/dist/sdk/endpoints/private/clientDB/schemas/emailThread.d.ts.map +0 -1
  48. package/dist/sdk/endpoints/private/clientDB/schemas/emailThread.js +0 -7
  49. package/dist/sdk/endpoints/private/clientDB/schemas/index.d.ts +0 -11
  50. package/dist/sdk/endpoints/private/clientDB/schemas/index.d.ts.map +0 -1
  51. package/dist/sdk/endpoints/private/clientDB/schemas/index.js +0 -10
  52. package/dist/sdk/endpoints/private/clientDB/syncPull.d.ts +0 -286
  53. package/dist/sdk/endpoints/private/clientDB/syncPull.d.ts.map +0 -1
  54. package/dist/sdk/endpoints/private/clientDB/syncPull.js +0 -27
  55. package/dist/sdk/endpoints/private/clientDB/syncPush.d.ts +0 -279
  56. package/dist/sdk/endpoints/private/clientDB/syncPush.d.ts.map +0 -1
  57. package/dist/sdk/endpoints/private/clientDB/syncPush.js +0 -18
@@ -1,286 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const syncPull: import("../../../../types").EndpointConfig<"/v1/pv/client-db", v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.ObjectSchema<{
3
- readonly page: v.StringSchema<undefined>;
4
- readonly schemaVersion: v.OptionalSchema<v.StringSchema<undefined>, never>;
5
- readonly timestampMax: v.OptionalSchema<v.StringSchema<undefined>, never>;
6
- readonly timestampMin: v.OptionalSchema<v.StringSchema<undefined>, never>;
7
- }, undefined>, v.UnionSchema<[v.ObjectSchema<{
8
- readonly code: v.LiteralSchema<"::UNAUTHENTICATED", undefined>;
9
- readonly status: v.LiteralSchema<401, undefined>;
10
- }, undefined>, v.ObjectSchema<{
11
- readonly code: v.LiteralSchema<"::VALIDATION_FAILED", undefined>;
12
- readonly status: v.LiteralSchema<400, undefined>;
13
- }, undefined>, v.ObjectSchema<{
14
- readonly data: v.ObjectSchema<{
15
- readonly changes: v.ObjectSchema<{
16
- readonly email_account: v.ObjectSchema<{
17
- readonly created: v.ArraySchema<v.GenericSchema<{
18
- created_at: number;
19
- email_address: string;
20
- id: string;
21
- updated_at: number;
22
- }, {
23
- created_at: number;
24
- email_address: string;
25
- id: string;
26
- updated_at: number;
27
- }, v.BaseIssue<unknown>>, undefined>;
28
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
29
- readonly updated: v.ArraySchema<v.GenericSchema<{
30
- created_at: number;
31
- email_address: string;
32
- id: string;
33
- updated_at: number;
34
- }, {
35
- created_at: number;
36
- email_address: string;
37
- id: string;
38
- updated_at: number;
39
- }, v.BaseIssue<unknown>>, undefined>;
40
- }, undefined>;
41
- readonly email_account_imap_password_config: v.ObjectSchema<{
42
- readonly created: v.ArraySchema<v.GenericSchema<{
43
- created_at: number;
44
- id: string;
45
- updated_at: number;
46
- host: string;
47
- port: number;
48
- email_account_id: string;
49
- password: string;
50
- }, {
51
- created_at: number;
52
- id: string;
53
- updated_at: number;
54
- host: string;
55
- port: number;
56
- email_account_id: string;
57
- password: string;
58
- }, v.BaseIssue<unknown>>, undefined>;
59
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
60
- readonly updated: v.ArraySchema<v.GenericSchema<{
61
- created_at: number;
62
- id: string;
63
- updated_at: number;
64
- host: string;
65
- port: number;
66
- email_account_id: string;
67
- password: string;
68
- }, {
69
- created_at: number;
70
- id: string;
71
- updated_at: number;
72
- host: string;
73
- port: number;
74
- email_account_id: string;
75
- password: string;
76
- }, v.BaseIssue<unknown>>, undefined>;
77
- }, undefined>;
78
- readonly email_contact: v.ObjectSchema<{
79
- readonly created: v.ArraySchema<v.GenericSchema<{
80
- created_at: number;
81
- email_address: string;
82
- id: string;
83
- updated_at: number;
84
- name: string | null;
85
- email_account_id: string;
86
- }, {
87
- created_at: number;
88
- email_address: string;
89
- id: string;
90
- updated_at: number;
91
- name: string | null;
92
- email_account_id: string;
93
- }, v.BaseIssue<unknown>>, undefined>;
94
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
95
- readonly updated: v.ArraySchema<v.GenericSchema<{
96
- created_at: number;
97
- email_address: string;
98
- id: string;
99
- updated_at: number;
100
- name: string | null;
101
- email_account_id: string;
102
- }, {
103
- created_at: number;
104
- email_address: string;
105
- id: string;
106
- updated_at: number;
107
- name: string | null;
108
- email_account_id: string;
109
- }, v.BaseIssue<unknown>>, undefined>;
110
- }, undefined>;
111
- readonly email_label: v.ObjectSchema<{
112
- readonly created: v.ArraySchema<v.GenericSchema<{
113
- created_at: number;
114
- id: string;
115
- updated_at: number;
116
- name: string;
117
- email_account_id: string;
118
- path: string;
119
- }, {
120
- created_at: number;
121
- id: string;
122
- updated_at: number;
123
- name: string;
124
- email_account_id: string;
125
- path: string;
126
- }, v.BaseIssue<unknown>>, undefined>;
127
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
128
- readonly updated: v.ArraySchema<v.GenericSchema<{
129
- created_at: number;
130
- id: string;
131
- updated_at: number;
132
- name: string;
133
- email_account_id: string;
134
- path: string;
135
- }, {
136
- created_at: number;
137
- id: string;
138
- updated_at: number;
139
- name: string;
140
- email_account_id: string;
141
- path: string;
142
- }, v.BaseIssue<unknown>>, undefined>;
143
- }, undefined>;
144
- readonly email_message: v.ObjectSchema<{
145
- readonly created: v.ArraySchema<v.GenericSchema<{
146
- created_at: number;
147
- id: string;
148
- updated_at: number;
149
- envelope_date: string;
150
- envelope_subject: string;
151
- preview_text: string;
152
- email_thread_id: string;
153
- is_flagged: boolean;
154
- is_seen: boolean;
155
- draft: boolean;
156
- }, {
157
- created_at: number;
158
- id: string;
159
- updated_at: number;
160
- envelope_date: string;
161
- envelope_subject: string;
162
- preview_text: string;
163
- email_thread_id: string;
164
- is_flagged: boolean;
165
- is_seen: boolean;
166
- draft: boolean;
167
- }, v.BaseIssue<unknown>>, undefined>;
168
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
169
- readonly updated: v.ArraySchema<v.GenericSchema<{
170
- created_at: number;
171
- id: string;
172
- updated_at: number;
173
- envelope_date: string;
174
- envelope_subject: string;
175
- preview_text: string;
176
- email_thread_id: string;
177
- is_flagged: boolean;
178
- is_seen: boolean;
179
- draft: boolean;
180
- }, {
181
- created_at: number;
182
- id: string;
183
- updated_at: number;
184
- envelope_date: string;
185
- envelope_subject: string;
186
- preview_text: string;
187
- email_thread_id: string;
188
- is_flagged: boolean;
189
- is_seen: boolean;
190
- draft: boolean;
191
- }, v.BaseIssue<unknown>>, undefined>;
192
- }, undefined>;
193
- readonly email_message_contact: v.ObjectSchema<{
194
- readonly created: v.ArraySchema<v.GenericSchema<{
195
- created_at: number;
196
- id: string;
197
- updated_at: number;
198
- email_message_id: string;
199
- email_contact_id: string;
200
- email_contact_type: import("../../../../types").EmailContactType;
201
- }, {
202
- created_at: number;
203
- id: string;
204
- updated_at: number;
205
- email_message_id: string;
206
- email_contact_id: string;
207
- email_contact_type: import("../../../../types").EmailContactType;
208
- }, v.BaseIssue<unknown>>, undefined>;
209
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
210
- readonly updated: v.ArraySchema<v.GenericSchema<{
211
- created_at: number;
212
- id: string;
213
- updated_at: number;
214
- email_message_id: string;
215
- email_contact_id: string;
216
- email_contact_type: import("../../../../types").EmailContactType;
217
- }, {
218
- created_at: number;
219
- id: string;
220
- updated_at: number;
221
- email_message_id: string;
222
- email_contact_id: string;
223
- email_contact_type: import("../../../../types").EmailContactType;
224
- }, v.BaseIssue<unknown>>, undefined>;
225
- }, undefined>;
226
- readonly email_message_label: v.ObjectSchema<{
227
- readonly created: v.ArraySchema<v.GenericSchema<{
228
- created_at: number;
229
- id: string;
230
- updated_at: number;
231
- email_message_id: string;
232
- email_label_id: string;
233
- }, {
234
- created_at: number;
235
- id: string;
236
- updated_at: number;
237
- email_message_id: string;
238
- email_label_id: string;
239
- }, v.BaseIssue<unknown>>, undefined>;
240
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
241
- readonly updated: v.ArraySchema<v.GenericSchema<{
242
- created_at: number;
243
- id: string;
244
- updated_at: number;
245
- email_message_id: string;
246
- email_label_id: string;
247
- }, {
248
- created_at: number;
249
- id: string;
250
- updated_at: number;
251
- email_message_id: string;
252
- email_label_id: string;
253
- }, v.BaseIssue<unknown>>, undefined>;
254
- }, undefined>;
255
- readonly email_thread: v.ObjectSchema<{
256
- readonly created: v.ArraySchema<v.GenericSchema<{
257
- created_at: number;
258
- id: string;
259
- updated_at: number;
260
- email_account_id: string;
261
- }, {
262
- created_at: number;
263
- id: string;
264
- updated_at: number;
265
- email_account_id: string;
266
- }, v.BaseIssue<unknown>>, undefined>;
267
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
268
- readonly updated: v.ArraySchema<v.GenericSchema<{
269
- created_at: number;
270
- id: string;
271
- updated_at: number;
272
- email_account_id: string;
273
- }, {
274
- created_at: number;
275
- id: string;
276
- updated_at: number;
277
- email_account_id: string;
278
- }, v.BaseIssue<unknown>>, undefined>;
279
- }, undefined>;
280
- }, undefined>;
281
- readonly hasMore: v.BooleanSchema<undefined>;
282
- readonly timestamp: v.NumberSchema<undefined>;
283
- }, undefined>;
284
- readonly status: v.LiteralSchema<200, undefined>;
285
- }, undefined>], undefined>>;
286
- //# sourceMappingURL=syncPull.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"syncPull.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/clientDB/syncPull.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAqBnB,CAAA"}
@@ -1,27 +0,0 @@
1
- import * as v from 'valibot';
2
- import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
- import { errorManifest } from '../../../../sdk/validation/errors';
4
- import { HTTPMethod } from '../../../../types';
5
- import { changesSchema } from './schemas';
6
- export const syncPull = createEndpoint({
7
- method: HTTPMethod.GET,
8
- path: '/v1/pv/client-db',
9
- query: v.object({
10
- page: v.string(),
11
- schemaVersion: v.optional(v.string()),
12
- timestampMax: v.optional(v.string()),
13
- timestampMin: v.optional(v.string()),
14
- }),
15
- response: v.union([
16
- errorManifest.unauthenticatedErrorSchema,
17
- errorManifest.validationFailedErrorSchema,
18
- v.object({
19
- data: v.object({
20
- changes: changesSchema,
21
- hasMore: v.boolean(),
22
- timestamp: v.number(),
23
- }),
24
- status: v.literal(200),
25
- }),
26
- ]),
27
- });
@@ -1,279 +0,0 @@
1
- import * as v from 'valibot';
2
- export declare const syncPush: import("../../../../types").EndpointConfig<"/v1/pv/client-db", v.ObjectSchema<{
3
- readonly changes: v.ObjectSchema<{
4
- readonly email_account: v.ObjectSchema<{
5
- readonly created: v.ArraySchema<v.GenericSchema<{
6
- created_at: number;
7
- email_address: string;
8
- id: string;
9
- updated_at: number;
10
- }, {
11
- created_at: number;
12
- email_address: string;
13
- id: string;
14
- updated_at: number;
15
- }, v.BaseIssue<unknown>>, undefined>;
16
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
17
- readonly updated: v.ArraySchema<v.GenericSchema<{
18
- created_at: number;
19
- email_address: string;
20
- id: string;
21
- updated_at: number;
22
- }, {
23
- created_at: number;
24
- email_address: string;
25
- id: string;
26
- updated_at: number;
27
- }, v.BaseIssue<unknown>>, undefined>;
28
- }, undefined>;
29
- readonly email_account_imap_password_config: v.ObjectSchema<{
30
- readonly created: v.ArraySchema<v.GenericSchema<{
31
- created_at: number;
32
- id: string;
33
- updated_at: number;
34
- host: string;
35
- port: number;
36
- email_account_id: string;
37
- password: string;
38
- }, {
39
- created_at: number;
40
- id: string;
41
- updated_at: number;
42
- host: string;
43
- port: number;
44
- email_account_id: string;
45
- password: string;
46
- }, v.BaseIssue<unknown>>, undefined>;
47
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
48
- readonly updated: v.ArraySchema<v.GenericSchema<{
49
- created_at: number;
50
- id: string;
51
- updated_at: number;
52
- host: string;
53
- port: number;
54
- email_account_id: string;
55
- password: string;
56
- }, {
57
- created_at: number;
58
- id: string;
59
- updated_at: number;
60
- host: string;
61
- port: number;
62
- email_account_id: string;
63
- password: string;
64
- }, v.BaseIssue<unknown>>, undefined>;
65
- }, undefined>;
66
- readonly email_contact: v.ObjectSchema<{
67
- readonly created: v.ArraySchema<v.GenericSchema<{
68
- created_at: number;
69
- email_address: string;
70
- id: string;
71
- updated_at: number;
72
- name: string | null;
73
- email_account_id: string;
74
- }, {
75
- created_at: number;
76
- email_address: string;
77
- id: string;
78
- updated_at: number;
79
- name: string | null;
80
- email_account_id: string;
81
- }, v.BaseIssue<unknown>>, undefined>;
82
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
83
- readonly updated: v.ArraySchema<v.GenericSchema<{
84
- created_at: number;
85
- email_address: string;
86
- id: string;
87
- updated_at: number;
88
- name: string | null;
89
- email_account_id: string;
90
- }, {
91
- created_at: number;
92
- email_address: string;
93
- id: string;
94
- updated_at: number;
95
- name: string | null;
96
- email_account_id: string;
97
- }, v.BaseIssue<unknown>>, undefined>;
98
- }, undefined>;
99
- readonly email_label: v.ObjectSchema<{
100
- readonly created: v.ArraySchema<v.GenericSchema<{
101
- created_at: number;
102
- id: string;
103
- updated_at: number;
104
- name: string;
105
- email_account_id: string;
106
- path: string;
107
- }, {
108
- created_at: number;
109
- id: string;
110
- updated_at: number;
111
- name: string;
112
- email_account_id: string;
113
- path: string;
114
- }, v.BaseIssue<unknown>>, undefined>;
115
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
116
- readonly updated: v.ArraySchema<v.GenericSchema<{
117
- created_at: number;
118
- id: string;
119
- updated_at: number;
120
- name: string;
121
- email_account_id: string;
122
- path: string;
123
- }, {
124
- created_at: number;
125
- id: string;
126
- updated_at: number;
127
- name: string;
128
- email_account_id: string;
129
- path: string;
130
- }, v.BaseIssue<unknown>>, undefined>;
131
- }, undefined>;
132
- readonly email_message: v.ObjectSchema<{
133
- readonly created: v.ArraySchema<v.GenericSchema<{
134
- created_at: number;
135
- id: string;
136
- updated_at: number;
137
- envelope_date: string;
138
- envelope_subject: string;
139
- preview_text: string;
140
- email_thread_id: string;
141
- is_flagged: boolean;
142
- is_seen: boolean;
143
- draft: boolean;
144
- }, {
145
- created_at: number;
146
- id: string;
147
- updated_at: number;
148
- envelope_date: string;
149
- envelope_subject: string;
150
- preview_text: string;
151
- email_thread_id: string;
152
- is_flagged: boolean;
153
- is_seen: boolean;
154
- draft: boolean;
155
- }, v.BaseIssue<unknown>>, undefined>;
156
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
157
- readonly updated: v.ArraySchema<v.GenericSchema<{
158
- created_at: number;
159
- id: string;
160
- updated_at: number;
161
- envelope_date: string;
162
- envelope_subject: string;
163
- preview_text: string;
164
- email_thread_id: string;
165
- is_flagged: boolean;
166
- is_seen: boolean;
167
- draft: boolean;
168
- }, {
169
- created_at: number;
170
- id: string;
171
- updated_at: number;
172
- envelope_date: string;
173
- envelope_subject: string;
174
- preview_text: string;
175
- email_thread_id: string;
176
- is_flagged: boolean;
177
- is_seen: boolean;
178
- draft: boolean;
179
- }, v.BaseIssue<unknown>>, undefined>;
180
- }, undefined>;
181
- readonly email_message_contact: v.ObjectSchema<{
182
- readonly created: v.ArraySchema<v.GenericSchema<{
183
- created_at: number;
184
- id: string;
185
- updated_at: number;
186
- email_message_id: string;
187
- email_contact_id: string;
188
- email_contact_type: import("../../../../types").EmailContactType;
189
- }, {
190
- created_at: number;
191
- id: string;
192
- updated_at: number;
193
- email_message_id: string;
194
- email_contact_id: string;
195
- email_contact_type: import("../../../../types").EmailContactType;
196
- }, v.BaseIssue<unknown>>, undefined>;
197
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
198
- readonly updated: v.ArraySchema<v.GenericSchema<{
199
- created_at: number;
200
- id: string;
201
- updated_at: number;
202
- email_message_id: string;
203
- email_contact_id: string;
204
- email_contact_type: import("../../../../types").EmailContactType;
205
- }, {
206
- created_at: number;
207
- id: string;
208
- updated_at: number;
209
- email_message_id: string;
210
- email_contact_id: string;
211
- email_contact_type: import("../../../../types").EmailContactType;
212
- }, v.BaseIssue<unknown>>, undefined>;
213
- }, undefined>;
214
- readonly email_message_label: v.ObjectSchema<{
215
- readonly created: v.ArraySchema<v.GenericSchema<{
216
- created_at: number;
217
- id: string;
218
- updated_at: number;
219
- email_message_id: string;
220
- email_label_id: string;
221
- }, {
222
- created_at: number;
223
- id: string;
224
- updated_at: number;
225
- email_message_id: string;
226
- email_label_id: string;
227
- }, v.BaseIssue<unknown>>, undefined>;
228
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
229
- readonly updated: v.ArraySchema<v.GenericSchema<{
230
- created_at: number;
231
- id: string;
232
- updated_at: number;
233
- email_message_id: string;
234
- email_label_id: string;
235
- }, {
236
- created_at: number;
237
- id: string;
238
- updated_at: number;
239
- email_message_id: string;
240
- email_label_id: string;
241
- }, v.BaseIssue<unknown>>, undefined>;
242
- }, undefined>;
243
- readonly email_thread: v.ObjectSchema<{
244
- readonly created: v.ArraySchema<v.GenericSchema<{
245
- created_at: number;
246
- id: string;
247
- updated_at: number;
248
- email_account_id: string;
249
- }, {
250
- created_at: number;
251
- id: string;
252
- updated_at: number;
253
- email_account_id: string;
254
- }, v.BaseIssue<unknown>>, undefined>;
255
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
256
- readonly updated: v.ArraySchema<v.GenericSchema<{
257
- created_at: number;
258
- id: string;
259
- updated_at: number;
260
- email_account_id: string;
261
- }, {
262
- created_at: number;
263
- id: string;
264
- updated_at: number;
265
- email_account_id: string;
266
- }, v.BaseIssue<unknown>>, undefined>;
267
- }, undefined>;
268
- }, undefined>;
269
- readonly lastPulledAt: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
270
- }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
271
- readonly code: v.LiteralSchema<"::UNAUTHENTICATED", undefined>;
272
- readonly status: v.LiteralSchema<401, undefined>;
273
- }, undefined>, v.ObjectSchema<{
274
- readonly code: v.LiteralSchema<"::VALIDATION_FAILED", undefined>;
275
- readonly status: v.LiteralSchema<400, undefined>;
276
- }, undefined>, v.ObjectSchema<{
277
- readonly status: v.LiteralSchema<200, undefined>;
278
- }, undefined>], undefined>>;
279
- //# sourceMappingURL=syncPush.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"syncPush.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/endpoints/private/clientDB/syncPush.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAYnB,CAAA"}
@@ -1,18 +0,0 @@
1
- import * as v from 'valibot';
2
- import { createEndpoint } from '../../../../sdk/endpoints/createEndpointConfig';
3
- import { errorManifest } from '../../../../sdk/validation/errors';
4
- import { HTTPMethod } from '../../../../types';
5
- import { changesSchema } from './schemas';
6
- export const syncPush = createEndpoint({
7
- body: v.object({
8
- changes: changesSchema,
9
- lastPulledAt: v.optional(v.number(), 0),
10
- }),
11
- method: HTTPMethod.POST,
12
- path: '/v1/pv/client-db',
13
- response: v.union([
14
- errorManifest.unauthenticatedErrorSchema,
15
- errorManifest.validationFailedErrorSchema,
16
- v.object({ status: v.literal(200) }),
17
- ]),
18
- });