@marcoappio/marco-config 2.0.415 → 2.0.417

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 (126) hide show
  1. package/dist/index.d.ts +3 -4
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +3 -3
  4. package/dist/marcoPublicConfig.d.ts +9 -1
  5. package/dist/marcoPublicConfig.d.ts.map +1 -1
  6. package/dist/marcoPublicConfig.js +12 -0
  7. package/dist/schemas/app.d.ts +1 -1
  8. package/dist/schemas/app.d.ts.map +1 -1
  9. package/dist/schemas/app.js +2 -1
  10. package/dist/schemas/emailAccount.d.ts +1 -1
  11. package/dist/schemas/index.d.ts +3 -3
  12. package/dist/schemas/oauth.d.ts +1 -1
  13. package/dist/schemas/oauth.d.ts.map +1 -1
  14. package/dist/schemas/oauth.js +2 -1
  15. package/dist/sdk/endpoints/index.d.ts +0 -887
  16. package/dist/sdk/endpoints/index.d.ts.map +1 -1
  17. package/dist/sdk/endpoints/private/index.d.ts +0 -887
  18. package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
  19. package/dist/sdk/endpoints/private/index.js +0 -2
  20. package/dist/sdk/index.d.ts +0 -887
  21. package/dist/sdk/index.d.ts.map +1 -1
  22. package/dist/types/MarcoPlatform.d.ts +3 -0
  23. package/dist/types/MarcoPlatform.d.ts.map +1 -0
  24. package/dist/types/MarcoPlatform.js +1 -0
  25. package/dist/types/OAuthProvider.d.ts +3 -0
  26. package/dist/types/OAuthProvider.d.ts.map +1 -0
  27. package/dist/types/OAuthProvider.js +1 -0
  28. package/dist/types/index.d.ts +2 -2
  29. package/dist/types/index.d.ts.map +1 -1
  30. package/dist/types/index.js +2 -2
  31. package/dist/utils/index.d.ts +1 -0
  32. package/dist/utils/index.d.ts.map +1 -1
  33. package/dist/utils/index.js +1 -0
  34. package/dist/utils/labels/index.d.ts +4 -0
  35. package/dist/utils/labels/index.d.ts.map +1 -0
  36. package/dist/utils/labels/index.js +4 -0
  37. package/dist/zero/index.d.ts +1448 -0
  38. package/dist/zero/index.d.ts.map +1 -0
  39. package/dist/zero/index.js +13 -0
  40. package/dist/{sdk/endpoints/private/sync/push → zero/mutators}/account.d.ts +33 -75
  41. package/dist/zero/mutators/account.d.ts.map +1 -0
  42. package/dist/zero/mutators/account.js +69 -0
  43. package/dist/{sdk/endpoints/private/sync/push → zero/mutators}/draft.d.ts +35 -79
  44. package/dist/{clients → zero/mutators}/draft.d.ts.map +1 -1
  45. package/dist/zero/mutators/draft.js +114 -0
  46. package/dist/{sdk/endpoints/private/sync/push → zero/mutators}/thread.d.ts +32 -76
  47. package/dist/zero/mutators/thread.d.ts.map +1 -0
  48. package/dist/zero/mutators/thread.js +76 -0
  49. package/dist/zero/mutators/user.d.ts +32 -0
  50. package/dist/zero/mutators/user.d.ts.map +1 -0
  51. package/dist/zero/mutators/user.js +33 -0
  52. package/dist/zero/mutators.d.ts +412 -0
  53. package/dist/zero/mutators.d.ts.map +1 -0
  54. package/dist/zero/mutators.js +44 -0
  55. package/dist/zero/mutators.test.d.ts +2 -0
  56. package/dist/zero/mutators.test.d.ts.map +1 -0
  57. package/dist/zero/mutators.test.js +33 -0
  58. package/dist/zero/schema.d.ts +1438 -0
  59. package/dist/zero/schema.d.ts.map +1 -0
  60. package/dist/zero/schema.js +430 -0
  61. package/package.json +2 -1
  62. package/dist/clients/account.d.ts +0 -144
  63. package/dist/clients/account.d.ts.map +0 -1
  64. package/dist/clients/account.js +0 -93
  65. package/dist/clients/contact.d.ts +0 -14
  66. package/dist/clients/contact.d.ts.map +0 -1
  67. package/dist/clients/contact.js +0 -14
  68. package/dist/clients/draft.d.ts +0 -196
  69. package/dist/clients/draft.js +0 -122
  70. package/dist/clients/index.d.ts +0 -526
  71. package/dist/clients/index.d.ts.map +0 -1
  72. package/dist/clients/index.js +0 -13
  73. package/dist/clients/thread.d.ts +0 -125
  74. package/dist/clients/thread.d.ts.map +0 -1
  75. package/dist/clients/thread.js +0 -117
  76. package/dist/clients/user.d.ts +0 -53
  77. package/dist/clients/user.d.ts.map +0 -1
  78. package/dist/clients/user.js +0 -52
  79. package/dist/clients/utils/index.d.ts +0 -4
  80. package/dist/clients/utils/index.d.ts.map +0 -1
  81. package/dist/clients/utils/index.js +0 -4
  82. package/dist/clients/utils/labelSpecialUseOrdering.d.ts +0 -3
  83. package/dist/clients/utils/labelSpecialUseOrdering.d.ts.map +0 -1
  84. package/dist/clients/utils/labelSpecialUseOrdering.js +0 -1
  85. package/dist/sdk/endpoints/private/sync/index.d.ts +0 -888
  86. package/dist/sdk/endpoints/private/sync/index.d.ts.map +0 -1
  87. package/dist/sdk/endpoints/private/sync/index.js +0 -3
  88. package/dist/sdk/endpoints/private/sync/pull/account.d.ts +0 -71
  89. package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +0 -1
  90. package/dist/sdk/endpoints/private/sync/pull/account.js +0 -33
  91. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +0 -56
  92. package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +0 -1
  93. package/dist/sdk/endpoints/private/sync/pull/contact.js +0 -40
  94. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +0 -72
  95. package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +0 -1
  96. package/dist/sdk/endpoints/private/sync/pull/draft.js +0 -36
  97. package/dist/sdk/endpoints/private/sync/pull/index.d.ts +0 -349
  98. package/dist/sdk/endpoints/private/sync/pull/index.d.ts.map +0 -1
  99. package/dist/sdk/endpoints/private/sync/pull/index.js +0 -6
  100. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +0 -100
  101. package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +0 -1
  102. package/dist/sdk/endpoints/private/sync/pull/thread.js +0 -45
  103. package/dist/sdk/endpoints/private/sync/pull/user.d.ts +0 -57
  104. package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +0 -1
  105. package/dist/sdk/endpoints/private/sync/pull/user.js +0 -33
  106. package/dist/sdk/endpoints/private/sync/push/account.d.ts.map +0 -1
  107. package/dist/sdk/endpoints/private/sync/push/account.js +0 -73
  108. package/dist/sdk/endpoints/private/sync/push/draft.d.ts.map +0 -1
  109. package/dist/sdk/endpoints/private/sync/push/draft.js +0 -79
  110. package/dist/sdk/endpoints/private/sync/push/index.d.ts +0 -538
  111. package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +0 -1
  112. package/dist/sdk/endpoints/private/sync/push/index.js +0 -5
  113. package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +0 -1
  114. package/dist/sdk/endpoints/private/sync/push/thread.js +0 -79
  115. package/dist/sdk/endpoints/private/sync/push/user.d.ts +0 -64
  116. package/dist/sdk/endpoints/private/sync/push/user.d.ts.map +0 -1
  117. package/dist/sdk/endpoints/private/sync/push/user.js +0 -43
  118. package/dist/types/MarcoClient.d.ts +0 -12
  119. package/dist/types/MarcoClient.d.ts.map +0 -1
  120. package/dist/types/MarcoClient.js +0 -1
  121. package/dist/types/WS.d.ts +0 -7
  122. package/dist/types/WS.d.ts.map +0 -1
  123. package/dist/types/WS.js +0 -1
  124. package/dist/ws.d.ts +0 -6
  125. package/dist/ws.d.ts.map +0 -1
  126. package/dist/ws.js +0 -5
@@ -1 +0,0 @@
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"}
@@ -1,13 +0,0 @@
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
- };
@@ -1,125 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,117 +0,0 @@
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
- };
@@ -1,53 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,52 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- export declare const marcoClientsUtils: {
2
- labelSpecialUseOrdering: ("ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH")[];
3
- };
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clients/utils/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;CAE7B,CAAA"}
@@ -1,4 +0,0 @@
1
- import { labelSpecialUseOrdering } from './labelSpecialUseOrdering';
2
- export const marcoClientsUtils = {
3
- labelSpecialUseOrdering,
4
- };
@@ -1,3 +0,0 @@
1
- import type { LabelSpecialUse } from '../../types';
2
- export declare const labelSpecialUseOrdering: LabelSpecialUse[];
3
- //# sourceMappingURL=labelSpecialUseOrdering.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- export const labelSpecialUseOrdering = ['INBOX', 'SENT', 'SPAM', 'TRASH', 'ARCHIVE'];