@marcoappio/marco-config 2.0.100 → 2.0.103

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 (60) 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/marcoPublicConfig.d.ts +3 -0
  9. package/dist/marcoPublicConfig.d.ts.map +1 -1
  10. package/dist/marcoPublicConfig.js +9 -0
  11. package/dist/sdk/endpoints/index.d.ts +0 -555
  12. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  13. package/dist/sdk/endpoints/private/index.d.ts +0 -555
  14. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  15. package/dist/sdk/endpoints/private/index.js +0 -2
  16. package/dist/sdk/index.d.ts +0 -555
  17. package/dist/sdk/index.d.ts.map +1 -1
  18. package/package.json +2 -2
  19. package/dist/ClientDB.d.ts +0 -275
  20. package/dist/ClientDB.d.ts.map +0 -1
  21. package/dist/ClientDB.js +0 -177
  22. package/dist/sdk/endpoints/private/clientDB/index.d.ts +0 -556
  23. package/dist/sdk/endpoints/private/clientDB/index.d.ts.map +0 -1
  24. package/dist/sdk/endpoints/private/clientDB/index.js +0 -6
  25. package/dist/sdk/endpoints/private/clientDB/schemas/changes.d.ts +0 -264
  26. package/dist/sdk/endpoints/private/clientDB/schemas/changes.d.ts.map +0 -1
  27. package/dist/sdk/endpoints/private/clientDB/schemas/changes.js +0 -17
  28. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccount.d.ts +0 -8
  29. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccount.d.ts.map +0 -1
  30. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccount.js +0 -7
  31. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccountIMAPPasswordConfig.d.ts +0 -11
  32. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccountIMAPPasswordConfig.d.ts.map +0 -1
  33. package/dist/sdk/endpoints/private/clientDB/schemas/emailAccountIMAPPasswordConfig.js +0 -10
  34. package/dist/sdk/endpoints/private/clientDB/schemas/emailContact.d.ts +0 -10
  35. package/dist/sdk/endpoints/private/clientDB/schemas/emailContact.d.ts.map +0 -1
  36. package/dist/sdk/endpoints/private/clientDB/schemas/emailContact.js +0 -9
  37. package/dist/sdk/endpoints/private/clientDB/schemas/emailLabel.d.ts +0 -10
  38. package/dist/sdk/endpoints/private/clientDB/schemas/emailLabel.d.ts.map +0 -1
  39. package/dist/sdk/endpoints/private/clientDB/schemas/emailLabel.js +0 -9
  40. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessage.d.ts +0 -13
  41. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessage.d.ts.map +0 -1
  42. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessage.js +0 -12
  43. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageContact.d.ts +0 -11
  44. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageContact.d.ts.map +0 -1
  45. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageContact.js +0 -10
  46. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageLabel.d.ts +0 -9
  47. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageLabel.d.ts.map +0 -1
  48. package/dist/sdk/endpoints/private/clientDB/schemas/emailMessageLabel.js +0 -8
  49. package/dist/sdk/endpoints/private/clientDB/schemas/emailThread.d.ts +0 -8
  50. package/dist/sdk/endpoints/private/clientDB/schemas/emailThread.d.ts.map +0 -1
  51. package/dist/sdk/endpoints/private/clientDB/schemas/emailThread.js +0 -7
  52. package/dist/sdk/endpoints/private/clientDB/schemas/index.d.ts +0 -11
  53. package/dist/sdk/endpoints/private/clientDB/schemas/index.d.ts.map +0 -1
  54. package/dist/sdk/endpoints/private/clientDB/schemas/index.js +0 -10
  55. package/dist/sdk/endpoints/private/clientDB/syncPull.d.ts +0 -282
  56. package/dist/sdk/endpoints/private/clientDB/syncPull.d.ts.map +0 -1
  57. package/dist/sdk/endpoints/private/clientDB/syncPull.js +0 -27
  58. package/dist/sdk/endpoints/private/clientDB/syncPush.d.ts +0 -275
  59. package/dist/sdk/endpoints/private/clientDB/syncPush.d.ts.map +0 -1
  60. package/dist/sdk/endpoints/private/clientDB/syncPush.js +0 -18
@@ -1,282 +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
- }, {
156
- created_at: number;
157
- id: string;
158
- updated_at: number;
159
- envelope_date: string;
160
- envelope_subject: string;
161
- preview_text: string;
162
- email_thread_id: string;
163
- is_flagged: boolean;
164
- is_seen: boolean;
165
- }, v.BaseIssue<unknown>>, undefined>;
166
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
167
- readonly updated: v.ArraySchema<v.GenericSchema<{
168
- created_at: number;
169
- id: string;
170
- updated_at: number;
171
- envelope_date: string;
172
- envelope_subject: string;
173
- preview_text: string;
174
- email_thread_id: string;
175
- is_flagged: boolean;
176
- is_seen: boolean;
177
- }, {
178
- created_at: number;
179
- id: string;
180
- updated_at: number;
181
- envelope_date: string;
182
- envelope_subject: string;
183
- preview_text: string;
184
- email_thread_id: string;
185
- is_flagged: boolean;
186
- is_seen: boolean;
187
- }, v.BaseIssue<unknown>>, undefined>;
188
- }, undefined>;
189
- readonly email_message_contact: v.ObjectSchema<{
190
- readonly created: v.ArraySchema<v.GenericSchema<{
191
- created_at: number;
192
- id: string;
193
- updated_at: number;
194
- email_message_id: string;
195
- email_contact_id: string;
196
- email_contact_type: import("../../../../types").EmailContactType;
197
- }, {
198
- created_at: number;
199
- id: string;
200
- updated_at: number;
201
- email_message_id: string;
202
- email_contact_id: string;
203
- email_contact_type: import("../../../../types").EmailContactType;
204
- }, v.BaseIssue<unknown>>, undefined>;
205
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
206
- readonly updated: v.ArraySchema<v.GenericSchema<{
207
- created_at: number;
208
- id: string;
209
- updated_at: number;
210
- email_message_id: string;
211
- email_contact_id: string;
212
- email_contact_type: import("../../../../types").EmailContactType;
213
- }, {
214
- created_at: number;
215
- id: string;
216
- updated_at: number;
217
- email_message_id: string;
218
- email_contact_id: string;
219
- email_contact_type: import("../../../../types").EmailContactType;
220
- }, v.BaseIssue<unknown>>, undefined>;
221
- }, undefined>;
222
- readonly email_message_label: v.ObjectSchema<{
223
- readonly created: v.ArraySchema<v.GenericSchema<{
224
- created_at: number;
225
- id: string;
226
- updated_at: number;
227
- email_message_id: string;
228
- email_label_id: string;
229
- }, {
230
- created_at: number;
231
- id: string;
232
- updated_at: number;
233
- email_message_id: string;
234
- email_label_id: string;
235
- }, v.BaseIssue<unknown>>, undefined>;
236
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
237
- readonly updated: v.ArraySchema<v.GenericSchema<{
238
- created_at: number;
239
- id: string;
240
- updated_at: number;
241
- email_message_id: string;
242
- email_label_id: string;
243
- }, {
244
- created_at: number;
245
- id: string;
246
- updated_at: number;
247
- email_message_id: string;
248
- email_label_id: string;
249
- }, v.BaseIssue<unknown>>, undefined>;
250
- }, undefined>;
251
- readonly email_thread: v.ObjectSchema<{
252
- readonly created: v.ArraySchema<v.GenericSchema<{
253
- created_at: number;
254
- id: string;
255
- updated_at: number;
256
- email_account_id: string;
257
- }, {
258
- created_at: number;
259
- id: string;
260
- updated_at: number;
261
- email_account_id: string;
262
- }, v.BaseIssue<unknown>>, undefined>;
263
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
264
- readonly updated: v.ArraySchema<v.GenericSchema<{
265
- created_at: number;
266
- id: string;
267
- updated_at: number;
268
- email_account_id: string;
269
- }, {
270
- created_at: number;
271
- id: string;
272
- updated_at: number;
273
- email_account_id: string;
274
- }, v.BaseIssue<unknown>>, undefined>;
275
- }, undefined>;
276
- }, undefined>;
277
- readonly hasMore: v.BooleanSchema<undefined>;
278
- readonly timestamp: v.NumberSchema<undefined>;
279
- }, undefined>;
280
- readonly status: v.LiteralSchema<200, undefined>;
281
- }, undefined>], undefined>>;
282
- //# 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,275 +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
- }, {
144
- created_at: number;
145
- id: string;
146
- updated_at: number;
147
- envelope_date: string;
148
- envelope_subject: string;
149
- preview_text: string;
150
- email_thread_id: string;
151
- is_flagged: boolean;
152
- is_seen: boolean;
153
- }, v.BaseIssue<unknown>>, undefined>;
154
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
155
- readonly updated: v.ArraySchema<v.GenericSchema<{
156
- created_at: number;
157
- id: string;
158
- updated_at: number;
159
- envelope_date: string;
160
- envelope_subject: string;
161
- preview_text: string;
162
- email_thread_id: string;
163
- is_flagged: boolean;
164
- is_seen: boolean;
165
- }, {
166
- created_at: number;
167
- id: string;
168
- updated_at: number;
169
- envelope_date: string;
170
- envelope_subject: string;
171
- preview_text: string;
172
- email_thread_id: string;
173
- is_flagged: boolean;
174
- is_seen: boolean;
175
- }, v.BaseIssue<unknown>>, undefined>;
176
- }, undefined>;
177
- readonly email_message_contact: v.ObjectSchema<{
178
- readonly created: v.ArraySchema<v.GenericSchema<{
179
- created_at: number;
180
- id: string;
181
- updated_at: number;
182
- email_message_id: string;
183
- email_contact_id: string;
184
- email_contact_type: import("../../../../types").EmailContactType;
185
- }, {
186
- created_at: number;
187
- id: string;
188
- updated_at: number;
189
- email_message_id: string;
190
- email_contact_id: string;
191
- email_contact_type: import("../../../../types").EmailContactType;
192
- }, v.BaseIssue<unknown>>, undefined>;
193
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
194
- readonly updated: 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
- }, undefined>;
210
- readonly email_message_label: v.ObjectSchema<{
211
- readonly created: v.ArraySchema<v.GenericSchema<{
212
- created_at: number;
213
- id: string;
214
- updated_at: number;
215
- email_message_id: string;
216
- email_label_id: string;
217
- }, {
218
- created_at: number;
219
- id: string;
220
- updated_at: number;
221
- email_message_id: string;
222
- email_label_id: string;
223
- }, v.BaseIssue<unknown>>, undefined>;
224
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
225
- readonly updated: v.ArraySchema<v.GenericSchema<{
226
- created_at: number;
227
- id: string;
228
- updated_at: number;
229
- email_message_id: string;
230
- email_label_id: string;
231
- }, {
232
- created_at: number;
233
- id: string;
234
- updated_at: number;
235
- email_message_id: string;
236
- email_label_id: string;
237
- }, v.BaseIssue<unknown>>, undefined>;
238
- }, undefined>;
239
- readonly email_thread: v.ObjectSchema<{
240
- readonly created: v.ArraySchema<v.GenericSchema<{
241
- created_at: number;
242
- id: string;
243
- updated_at: number;
244
- email_account_id: string;
245
- }, {
246
- created_at: number;
247
- id: string;
248
- updated_at: number;
249
- email_account_id: string;
250
- }, v.BaseIssue<unknown>>, undefined>;
251
- readonly deleted: v.ArraySchema<v.StringSchema<undefined>, undefined>;
252
- readonly updated: v.ArraySchema<v.GenericSchema<{
253
- created_at: number;
254
- id: string;
255
- updated_at: number;
256
- email_account_id: string;
257
- }, {
258
- created_at: number;
259
- id: string;
260
- updated_at: number;
261
- email_account_id: string;
262
- }, v.BaseIssue<unknown>>, undefined>;
263
- }, undefined>;
264
- }, undefined>;
265
- readonly lastPulledAt: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
266
- }, undefined>, v.GenericSchema<unknown, unknown, v.BaseIssue<unknown>> | undefined, v.UnionSchema<[v.ObjectSchema<{
267
- readonly code: v.LiteralSchema<"::UNAUTHENTICATED", undefined>;
268
- readonly status: v.LiteralSchema<401, undefined>;
269
- }, undefined>, v.ObjectSchema<{
270
- readonly code: v.LiteralSchema<"::VALIDATION_FAILED", undefined>;
271
- readonly status: v.LiteralSchema<400, undefined>;
272
- }, undefined>, v.ObjectSchema<{
273
- readonly status: v.LiteralSchema<200, undefined>;
274
- }, undefined>], undefined>>;
275
- //# 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
- });