@marcoappio/marco-config 4.0.15 → 4.0.17

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 (72) hide show
  1. package/dist/appwrite/appwrite.d.ts.map +1 -1
  2. package/dist/appwrite/appwrite.js +15 -23
  3. package/dist/appwrite/appwrite.test.js +31 -11
  4. package/dist/appwrite/commands.d.ts +20 -20
  5. package/dist/appwrite/functions.d.ts +10 -10
  6. package/dist/appwrite/tableContract/identity.d.ts +0 -235
  7. package/dist/appwrite/tableContract/identity.d.ts.map +1 -1
  8. package/dist/appwrite/tableContract/identity.js +122 -146
  9. package/dist/appwrite/tableContract/index.d.ts +0 -92
  10. package/dist/appwrite/tableContract/index.d.ts.map +1 -1
  11. package/dist/appwrite/tableContract/index.js +18 -5
  12. package/dist/appwrite/tableContract/index.test.js +36 -0
  13. package/dist/appwrite/tableContract/mailbox.d.ts +0 -323
  14. package/dist/appwrite/tableContract/mailbox.d.ts.map +1 -1
  15. package/dist/appwrite/tableContract/mailbox.js +159 -180
  16. package/dist/appwrite/tableContract/operational.d.ts +0 -275
  17. package/dist/appwrite/tableContract/operational.d.ts.map +1 -1
  18. package/dist/appwrite/tableContract/operational.js +154 -178
  19. package/dist/appwrite/tableContract/shared.d.ts +13 -6
  20. package/dist/appwrite/tableContract/shared.d.ts.map +1 -1
  21. package/dist/appwrite/tableContract/shared.js +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/index.test.js +11 -0
  26. package/dist/schemas/app.d.ts +1 -1
  27. package/dist/schemas/app.js +1 -1
  28. package/dist/schemas/emailAccount.d.ts +4 -4
  29. package/dist/schemas/emailAccount.d.ts.map +1 -1
  30. package/dist/schemas/emailAccount.js +5 -5
  31. package/dist/schemas/index.d.ts +9 -27
  32. package/dist/schemas/index.d.ts.map +1 -1
  33. package/dist/schemas/index.js +1 -2
  34. package/dist/schemas/models/index.d.ts +1 -1
  35. package/dist/schemas/models/index.d.ts.map +1 -1
  36. package/dist/schemas/models/index.js +1 -1
  37. package/dist/schemas/models/thread.d.ts +1 -19
  38. package/dist/schemas/models/thread.d.ts.map +1 -1
  39. package/dist/schemas/models/thread.js +0 -1
  40. package/dist/schemas/models/user.d.ts +1 -1
  41. package/dist/schemas/models/user.test.js +7 -0
  42. package/dist/schemas/oauth.d.ts +1 -1
  43. package/dist/schemas/oauth.js +1 -1
  44. package/dist/schemas/pushNotifications.d.ts +2 -2
  45. package/dist/schemas/pushNotifications.d.ts.map +1 -1
  46. package/dist/schemas/pushNotifications.js +1 -2
  47. package/dist/schemas/schemaValues.test.d.ts +2 -0
  48. package/dist/schemas/schemaValues.test.d.ts.map +1 -0
  49. package/dist/schemas/schemaValues.test.js +21 -0
  50. package/dist/types/UserSettings.d.ts +16 -15
  51. package/dist/types/UserSettings.d.ts.map +1 -1
  52. package/dist/types/UserSettings.js +15 -29
  53. package/dist/utils/accounts/index.d.ts +1 -3
  54. package/dist/utils/accounts/index.d.ts.map +1 -1
  55. package/dist/utils/accounts/index.js +1 -4
  56. package/dist/utils/index.d.ts +3 -3
  57. package/dist/utils/index.d.ts.map +1 -1
  58. package/dist/utils/index.js +3 -3
  59. package/dist/utils/labels/index.d.ts +2 -3
  60. package/dist/utils/labels/index.d.ts.map +1 -1
  61. package/dist/utils/labels/index.js +1 -4
  62. package/dist/utils/threads/index.d.ts +2 -4
  63. package/dist/utils/threads/index.d.ts.map +1 -1
  64. package/dist/utils/threads/index.js +2 -6
  65. package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.js +1 -1
  66. package/package.json +1 -1
  67. package/dist/utils/threads/parseLabelIdList/index.d.ts +0 -2
  68. package/dist/utils/threads/parseLabelIdList/index.d.ts.map +0 -1
  69. package/dist/utils/threads/parseLabelIdList/index.js +0 -1
  70. package/dist/utils/threads/processSearchTerm/index.d.ts +0 -2
  71. package/dist/utils/threads/processSearchTerm/index.d.ts.map +0 -1
  72. package/dist/utils/threads/processSearchTerm/index.js +0 -1
@@ -2,7 +2,7 @@ export type { AccountId, AliasId, AttachmentId, ContactId, DraftId, JobId, Label
2
2
  export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, UserView, } from './models';
3
3
  export declare const marcoSchemas: {
4
4
  app: {
5
- platform: () => import("valibot").PicklistSchema<readonly ["ios", "osx", "web"], undefined>;
5
+ platform: import("valibot").PicklistSchema<readonly ["ios", "osx", "web"], undefined>;
6
6
  };
7
7
  auth: {
8
8
  code: import("valibot").ObjectSchema<{
@@ -12,7 +12,7 @@ export declare const marcoSchemas: {
12
12
  }, undefined>;
13
13
  };
14
14
  emailAccount: {
15
- connectionConfigImapRaw: () => import("valibot").ObjectSchema<{
15
+ connectionConfigImapRaw: import("valibot").ObjectSchema<{
16
16
  readonly imapHost: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
17
17
  readonly imapPassword: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
18
18
  readonly imapPort: import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>, import("valibot").MaxValueAction<number, 65535, undefined>]>;
@@ -24,13 +24,13 @@ export declare const marcoSchemas: {
24
24
  readonly smtpSocketType: import("valibot").PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
25
25
  readonly smtpUser: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
26
26
  }, undefined>;
27
- connectionConfigOauth: () => import("valibot").ObjectSchema<{
27
+ connectionConfigOauth: import("valibot").ObjectSchema<{
28
28
  readonly code: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
29
29
  readonly provider: import("valibot").PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
30
30
  readonly user: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
31
31
  }, undefined>;
32
- imapConnectionStatus: () => import("valibot").PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "CONNECTION_FAILED_AUTHENTICATION_ERROR", "CONNECTION_FAILED_CONNECTION_ERROR", "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", "CONNECTION_FAILED_QUOTA_ERROR", "CONNECTION_FAILED_UNKNOWN_ERROR"], undefined>;
33
- socketTypeSchema: () => import("valibot").PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
32
+ imapConnectionStatus: import("valibot").PicklistSchema<readonly ["AWAITING_CONNECTION", "CONNECTED", "CONNECTION_FAILED_AUTHENTICATION_ERROR", "CONNECTION_FAILED_CONNECTION_ERROR", "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR", "CONNECTION_FAILED_QUOTA_ERROR", "CONNECTION_FAILED_UNKNOWN_ERROR"], undefined>;
33
+ socketTypeSchema: import("valibot").PicklistSchema<readonly ["SSL", "STARTTLS"], undefined>;
34
34
  };
35
35
  id: {
36
36
  accountId: {
@@ -231,24 +231,6 @@ export declare const marcoSchemas: {
231
231
  readonly userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
232
232
  readonly words: import("valibot").StringSchema<undefined>;
233
233
  }, undefined>;
234
- threadListSchema: import("valibot").ObjectSchema<{
235
- accountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AccountId">]>, undefined>;
236
- flagged: import("valibot").BooleanSchema<undefined>;
237
- hasAttachments: import("valibot").BooleanSchema<undefined>;
238
- id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
239
- labelIdList: import("valibot").StringSchema<undefined>;
240
- latestMessageDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>, undefined>;
241
- latestMessageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "MessageId">]>, undefined>;
242
- messageCount: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
243
- previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
244
- seen: import("valibot").BooleanSchema<undefined>;
245
- senderEmail: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, import("valibot").MaxLengthAction<string, 320, undefined>]>, undefined>;
246
- senderName: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
247
- snoozedUntil: import("valibot").NullableSchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>, undefined>, undefined>;
248
- subject: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
249
- userId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "UserId">]>, undefined>;
250
- words: import("valibot").StringSchema<undefined>;
251
- }, undefined>;
252
234
  threadMessageAttachmentSchema: import("valibot").ObjectSchema<{
253
235
  readonly fileName: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
254
236
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AttachmentId">]>, undefined>;
@@ -308,7 +290,7 @@ export declare const marcoSchemas: {
308
290
  }, undefined>;
309
291
  userViewSchema: import("valibot").ObjectSchema<{
310
292
  readonly aliasIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "AliasId">]>, undefined>, undefined>;
311
- readonly icon: import("valibot").PicklistSchema<readonly [import("..").CustomViewIcon.AIRPLANE, import("..").CustomViewIcon.BELL, import("..").CustomViewIcon.BRIEFCASE, import("..").CustomViewIcon.CLOCK, import("..").CustomViewIcon.CREDIT_CARD, import("..").CustomViewIcon.HEART, import("..").CustomViewIcon.HOME, import("..").CustomViewIcon.KEY, import("..").CustomViewIcon.MOON, import("..").CustomViewIcon.PERSON, import("..").CustomViewIcon.SHOPPING_CART, import("..").CustomViewIcon.STAR], undefined>;
293
+ readonly icon: import("valibot").PicklistSchema<readonly import("..").CustomViewIcon[], undefined>;
312
294
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ViewId">]>, undefined>;
313
295
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>;
314
296
  }, undefined>;
@@ -319,16 +301,16 @@ export declare const marcoSchemas: {
319
301
  positiveInteger: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>]>, undefined>;
320
302
  };
321
303
  oauth: {
322
- provider: () => import("valibot").PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
304
+ provider: import("valibot").PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
323
305
  };
324
306
  pushNotifications: {
325
- payload: import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
307
+ payload: import("valibot").ObjectSchema<{
326
308
  readonly data: import("valibot").ObjectSchema<{
327
309
  readonly messageId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "MessageId">]>, undefined>;
328
310
  readonly threadId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>, import("valibot").BrandAction<string, "ThreadId">]>, undefined>;
329
311
  }, undefined>;
330
312
  readonly event: import("valibot").LiteralSchema<"EMAIL_RECEIVED", undefined>;
331
- }, undefined>], undefined>;
313
+ }, undefined>;
332
314
  };
333
315
  string: {
334
316
  email: () => import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").RfcEmailAction<string, undefined>]>, undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAyBA,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAC3K,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,QAAQ,GACT,MAAM,UAAU,CAAA;AAEjB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAwBA,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,uBAAuB,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAC3K,YAAY,EACV,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,KAAK,EACL,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,uBAAuB,EACvB,sBAAsB,EACtB,QAAQ,GACT,MAAM,UAAU,CAAA;AAEjB,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwBxB,CAAA"}
@@ -2,7 +2,7 @@ import { app } from './app';
2
2
  import { auth } from './auth';
3
3
  import { emailAccount } from './emailAccount';
4
4
  import { id } from './id';
5
- import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, threadFullSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userViewSchema, } from './models';
5
+ import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userViewSchema, } from './models';
6
6
  import { number } from './number';
7
7
  import { oauth } from './oauth';
8
8
  import { pushNotifications } from './pushNotifications';
@@ -21,7 +21,6 @@ export const marcoSchemas = {
21
21
  draftBodySchema,
22
22
  draftSchema,
23
23
  threadFullSchema,
24
- threadListSchema,
25
24
  threadMessageAttachmentSchema,
26
25
  threadMessageRecipientSchema,
27
26
  threadMessageSchema,
@@ -1,6 +1,6 @@
1
1
  export { type Account, type AccountAlias, type AccountLabel, accountAliasSchema, accountLabelSchema, accountSchema } from './account';
2
2
  export { type Contact, contactSchema } from './contact';
3
3
  export { type Draft, type DraftAttachment, type DraftBody, draftAttachmentSchema, draftBodySchema, draftSchema } from './draft';
4
- export { type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, threadFullSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
4
+ export { type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
5
5
  export { type UserView, userViewSchema } from './user';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACrI,OAAO,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,qBAAqB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC/H,OAAO,EACL,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,gBAAgB,EAChB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,KAAK,QAAQ,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,YAAY,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACrI,OAAO,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,eAAe,EAAE,KAAK,SAAS,EAAE,qBAAqB,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAC/H,OAAO,EACL,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,gBAAgB,EAChB,6BAA6B,EAC7B,4BAA4B,EAC5B,mBAAmB,EACnB,YAAY,GACb,MAAM,UAAU,CAAA;AACjB,OAAO,EAAE,KAAK,QAAQ,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA"}
@@ -1,5 +1,5 @@
1
1
  export { accountAliasSchema, accountLabelSchema, accountSchema } from './account';
2
2
  export { contactSchema } from './contact';
3
3
  export { draftAttachmentSchema, draftBodySchema, draftSchema } from './draft';
4
- export { threadFullSchema, threadListSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
4
+ export { threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
5
5
  export { userViewSchema } from './user';
@@ -56,24 +56,6 @@ export declare const threadSchema: v.ObjectSchema<{
56
56
  userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
57
57
  words: v.StringSchema<undefined>;
58
58
  }, undefined>;
59
- export declare const threadListSchema: v.ObjectSchema<{
60
- accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
61
- flagged: v.BooleanSchema<undefined>;
62
- hasAttachments: v.BooleanSchema<undefined>;
63
- id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
64
- labelIdList: v.StringSchema<undefined>;
65
- latestMessageDate: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
66
- latestMessageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
67
- messageCount: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
68
- previewText: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
69
- seen: v.BooleanSchema<undefined>;
70
- senderEmail: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, v.MaxLengthAction<string, 320, undefined>]>, undefined>;
71
- senderName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
72
- snoozedUntil: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>, undefined>;
73
- subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
74
- userId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "UserId">]>, undefined>;
75
- words: v.StringSchema<undefined>;
76
- }, undefined>;
77
59
  export declare const threadFullSchema: v.ObjectSchema<{
78
60
  readonly messages: v.ArraySchema<v.ObjectSchema<{
79
61
  readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AccountId">]>, undefined>;
@@ -118,7 +100,7 @@ export declare const threadFullSchema: v.ObjectSchema<{
118
100
  readonly words: v.StringSchema<undefined>;
119
101
  }, undefined>;
120
102
  export type Thread = v.InferOutput<typeof threadFullSchema>;
121
- export type ThreadListItem = v.InferOutput<typeof threadListSchema>;
103
+ export type ThreadListItem = v.InferOutput<typeof threadSchema>;
122
104
  export type ThreadMessage = v.InferOutput<typeof threadMessageSchema>;
123
105
  export type ThreadMessageAttachment = v.InferOutput<typeof threadMessageAttachmentSchema>;
124
106
  export type ThreadMessageRecipient = v.InferOutput<typeof threadMessageRecipientSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,6BAA6B;;;;;;aAMxC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;aAMvC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;aAY9B,CAAA;AAqBF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;aAA8B,CAAA;AAEvD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;aAAe,CAAA;AAE5C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAG3B,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAC3D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACnE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACrE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACzF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/schemas/models/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAQ5B,eAAO,MAAM,6BAA6B;;;;;;aAMxC,CAAA;AAEF,eAAO,MAAM,4BAA4B;;;;;;aAMvC,CAAA;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;aAY9B,CAAA;AAqBF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;aAA8B,CAAA;AAEvD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAG3B,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAC3D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,YAAY,CAAC,CAAA;AAC/D,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACrE,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,6BAA6B,CAAC,CAAA;AACzF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
@@ -50,7 +50,6 @@ const threadBaseEntries = {
50
50
  words: v.string(),
51
51
  };
52
52
  export const threadSchema = v.object(threadBaseEntries);
53
- export const threadListSchema = threadSchema;
54
53
  export const threadFullSchema = v.object({
55
54
  ...threadBaseEntries,
56
55
  messages: v.array(threadMessageSchema),
@@ -1,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const userViewSchema: v.ObjectSchema<{
3
3
  readonly aliasIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "AliasId">]>, undefined>, undefined>;
4
- readonly icon: v.PicklistSchema<readonly [import("../../types").CustomViewIcon.AIRPLANE, import("../../types").CustomViewIcon.BELL, import("../../types").CustomViewIcon.BRIEFCASE, import("../../types").CustomViewIcon.CLOCK, import("../../types").CustomViewIcon.CREDIT_CARD, import("../../types").CustomViewIcon.HEART, import("../../types").CustomViewIcon.HOME, import("../../types").CustomViewIcon.KEY, import("../../types").CustomViewIcon.MOON, import("../../types").CustomViewIcon.PERSON, import("../../types").CustomViewIcon.SHOPPING_CART, import("../../types").CustomViewIcon.STAR], undefined>;
4
+ readonly icon: v.PicklistSchema<readonly import("../../types").CustomViewIcon[], undefined>;
5
5
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ViewId">]>, undefined>;
6
6
  readonly name: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
7
7
  }, undefined>;
@@ -1,5 +1,6 @@
1
1
  import { describe, expect, it } from 'bun:test';
2
2
  import * as v from 'valibot';
3
+ import { CustomViewIcon, USER_SETTINGS_CUSTOM_VIEW_ICONS } from '../../types';
3
4
  import { userViewSchema } from './user';
4
5
  describe('userViewSchema', () => {
5
6
  it('keys saved views by stable alias IDs', () => {
@@ -8,4 +9,10 @@ describe('userViewSchema', () => {
8
9
  expect(v.safeParse(userViewSchema, view).success).toBe(true);
9
10
  expect(v.safeParse(userViewSchema, legacyView).success).toBe(false);
10
11
  });
12
+ it('derives the ordered custom-view icon collection from enum-style values', () => {
13
+ expect(CustomViewIcon.STAR).toBe('STAR');
14
+ expect(USER_SETTINGS_CUSTOM_VIEW_ICONS).toEqual(['AIRPLANE', 'BELL', 'BRIEFCASE', 'CLOCK', 'CREDIT_CARD', 'HEART', 'HOME', 'KEY', 'MOON', 'PERSON', 'SHOPPING_CART', 'STAR']);
15
+ expect(USER_SETTINGS_CUSTOM_VIEW_ICONS).toEqual(Object.values(CustomViewIcon));
16
+ expect(Object.isFrozen(USER_SETTINGS_CUSTOM_VIEW_ICONS)).toBe(true);
17
+ });
11
18
  });
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const oauth: {
3
- provider: () => v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
3
+ provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
4
4
  };
5
5
  //# sourceMappingURL=oauth.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
2
  import { OAUTH_PROVIDERS } from '../types';
3
3
  export const oauth = {
4
- provider: () => v.picklist(OAUTH_PROVIDERS),
4
+ provider: v.picklist(OAUTH_PROVIDERS),
5
5
  };
@@ -1,11 +1,11 @@
1
1
  import * as v from 'valibot';
2
2
  export declare const pushNotifications: {
3
- payload: v.UnionSchema<[v.ObjectSchema<{
3
+ payload: v.ObjectSchema<{
4
4
  readonly data: v.ObjectSchema<{
5
5
  readonly messageId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "MessageId">]>, undefined>;
6
6
  readonly threadId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>, v.BrandAction<string, "ThreadId">]>, undefined>;
7
7
  }, undefined>;
8
8
  readonly event: v.LiteralSchema<"EMAIL_RECEIVED", undefined>;
9
- }, undefined>], undefined>;
9
+ }, undefined>;
10
10
  };
11
11
  //# sourceMappingURL=pushNotifications.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pushNotifications.d.ts","sourceRoot":"","sources":["../../src/schemas/pushNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,iBAAiB;;;;;;;;CAE7B,CAAA"}
1
+ {"version":3,"file":"pushNotifications.d.ts","sourceRoot":"","sources":["../../src/schemas/pushNotifications.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAY5B,eAAO,MAAM,iBAAiB;;;;;;;;CAE7B,CAAA"}
@@ -7,7 +7,6 @@ const pushNotificationEmailReceivedPayload = v.object({
7
7
  }),
8
8
  event: v.literal('EMAIL_RECEIVED'),
9
9
  });
10
- const pushNotificationPayload = v.union([pushNotificationEmailReceivedPayload]);
11
10
  export const pushNotifications = {
12
- payload: pushNotificationPayload,
11
+ payload: pushNotificationEmailReceivedPayload,
13
12
  };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=schemaValues.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemaValues.test.d.ts","sourceRoot":"","sources":["../../src/schemas/schemaValues.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import { describe, expect, it } from 'bun:test';
2
+ import * as v from 'valibot';
3
+ import { marcoSchemas } from './index';
4
+ describe('immutable schema values', () => {
5
+ it('publishes parameterless schemas as reusable values', () => {
6
+ expect(v.safeParse(marcoSchemas.app.platform, 'ios').success).toBe(true);
7
+ expect(v.safeParse(marcoSchemas.oauth.provider, 'GOOGLE').success).toBe(true);
8
+ expect(v.safeParse(marcoSchemas.emailAccount.imapConnectionStatus, 'CONNECTED').success).toBe(true);
9
+ expect(v.safeParse(marcoSchemas.emailAccount.socketTypeSchema, 'SSL').success).toBe(true);
10
+ expect(marcoSchemas.app.platform.type).toBe('picklist');
11
+ expect(marcoSchemas.oauth.provider.type).toBe('picklist');
12
+ expect(marcoSchemas.emailAccount.connectionConfigImapRaw.type).toBe('object');
13
+ expect(marcoSchemas.emailAccount.connectionConfigOauth.type).toBe('object');
14
+ });
15
+ it('parses the single supported push payload without a wrapper union', () => {
16
+ const payload = { data: { messageId: 'message-1', threadId: 'thread-1' }, event: 'EMAIL_RECEIVED' };
17
+ expect(v.safeParse(marcoSchemas.pushNotifications.payload, payload).success).toBe(true);
18
+ expect(v.safeParse(marcoSchemas.pushNotifications.payload, { ...payload, event: 'UNKNOWN' }).success).toBe(false);
19
+ expect(marcoSchemas.pushNotifications.payload.type).toBe('object');
20
+ });
21
+ });
@@ -1,17 +1,18 @@
1
- export declare enum CustomViewIcon {
2
- AIRPLANE = "AIRPLANE",
3
- BELL = "BELL",
4
- BRIEFCASE = "BRIEFCASE",
5
- CLOCK = "CLOCK",
6
- CREDIT_CARD = "CREDIT_CARD",
7
- HEART = "HEART",
8
- HOME = "HOME",
9
- KEY = "KEY",
10
- MOON = "MOON",
11
- PERSON = "PERSON",
12
- SHOPPING_CART = "SHOPPING_CART",
13
- STAR = "STAR"
14
- }
15
- export declare const USER_SETTINGS_CUSTOM_VIEW_ICONS: readonly [CustomViewIcon.AIRPLANE, CustomViewIcon.BELL, CustomViewIcon.BRIEFCASE, CustomViewIcon.CLOCK, CustomViewIcon.CREDIT_CARD, CustomViewIcon.HEART, CustomViewIcon.HOME, CustomViewIcon.KEY, CustomViewIcon.MOON, CustomViewIcon.PERSON, CustomViewIcon.SHOPPING_CART, CustomViewIcon.STAR];
1
+ export declare const CustomViewIcon: {
2
+ readonly AIRPLANE: "AIRPLANE";
3
+ readonly BELL: "BELL";
4
+ readonly BRIEFCASE: "BRIEFCASE";
5
+ readonly CLOCK: "CLOCK";
6
+ readonly CREDIT_CARD: "CREDIT_CARD";
7
+ readonly HEART: "HEART";
8
+ readonly HOME: "HOME";
9
+ readonly KEY: "KEY";
10
+ readonly MOON: "MOON";
11
+ readonly PERSON: "PERSON";
12
+ readonly SHOPPING_CART: "SHOPPING_CART";
13
+ readonly STAR: "STAR";
14
+ };
15
+ export type CustomViewIcon = (typeof CustomViewIcon)[keyof typeof CustomViewIcon];
16
+ export declare const USER_SETTINGS_CUSTOM_VIEW_ICONS: readonly CustomViewIcon[];
16
17
  export type UserSettingsCustomViewIcon = (typeof USER_SETTINGS_CUSTOM_VIEW_ICONS)[number];
17
18
  //# sourceMappingURL=UserSettings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UserSettings.d.ts","sourceRoot":"","sources":["../../src/types/UserSettings.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB,QAAQ,aAAa;IACrB,IAAI,SAAS;IACb,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,WAAW,gBAAgB;IAC3B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,IAAI,SAAS;CACd;AAED,eAAO,MAAM,+BAA+B,mSAalC,CAAA;AAEV,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAA"}
1
+ {"version":3,"file":"UserSettings.d.ts","sourceRoot":"","sources":["../../src/types/UserSettings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;CAajB,CAAA;AAEV,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,OAAO,cAAc,CAAC,CAAA;AAEjF,eAAO,MAAM,+BAA+B,EAAE,SAAS,cAAc,EAAiD,CAAA;AAEtH,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,+BAA+B,CAAC,CAAC,MAAM,CAAC,CAAA"}
@@ -1,29 +1,15 @@
1
- export var CustomViewIcon;
2
- (function (CustomViewIcon) {
3
- CustomViewIcon["AIRPLANE"] = "AIRPLANE";
4
- CustomViewIcon["BELL"] = "BELL";
5
- CustomViewIcon["BRIEFCASE"] = "BRIEFCASE";
6
- CustomViewIcon["CLOCK"] = "CLOCK";
7
- CustomViewIcon["CREDIT_CARD"] = "CREDIT_CARD";
8
- CustomViewIcon["HEART"] = "HEART";
9
- CustomViewIcon["HOME"] = "HOME";
10
- CustomViewIcon["KEY"] = "KEY";
11
- CustomViewIcon["MOON"] = "MOON";
12
- CustomViewIcon["PERSON"] = "PERSON";
13
- CustomViewIcon["SHOPPING_CART"] = "SHOPPING_CART";
14
- CustomViewIcon["STAR"] = "STAR";
15
- })(CustomViewIcon || (CustomViewIcon = {}));
16
- export const USER_SETTINGS_CUSTOM_VIEW_ICONS = [
17
- CustomViewIcon.AIRPLANE,
18
- CustomViewIcon.BELL,
19
- CustomViewIcon.BRIEFCASE,
20
- CustomViewIcon.CLOCK,
21
- CustomViewIcon.CREDIT_CARD,
22
- CustomViewIcon.HEART,
23
- CustomViewIcon.HOME,
24
- CustomViewIcon.KEY,
25
- CustomViewIcon.MOON,
26
- CustomViewIcon.PERSON,
27
- CustomViewIcon.SHOPPING_CART,
28
- CustomViewIcon.STAR,
29
- ];
1
+ export const CustomViewIcon = {
2
+ AIRPLANE: 'AIRPLANE',
3
+ BELL: 'BELL',
4
+ BRIEFCASE: 'BRIEFCASE',
5
+ CLOCK: 'CLOCK',
6
+ CREDIT_CARD: 'CREDIT_CARD',
7
+ HEART: 'HEART',
8
+ HOME: 'HOME',
9
+ KEY: 'KEY',
10
+ MOON: 'MOON',
11
+ PERSON: 'PERSON',
12
+ SHOPPING_CART: 'SHOPPING_CART',
13
+ STAR: 'STAR',
14
+ };
15
+ export const USER_SETTINGS_CUSTOM_VIEW_ICONS = Object.freeze(Object.values(CustomViewIcon));
@@ -1,4 +1,2 @@
1
- export declare const accountUtils: {
2
- generateColor: (emailAddress: string) => string;
3
- };
1
+ export { generateAccountColor } from './generateAccountColor';
4
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;CAExB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA"}
@@ -1,4 +1 @@
1
- import { generateAccountColor } from './generateAccountColor';
2
- export const accountUtils = {
3
- generateColor: generateAccountColor,
4
- };
1
+ export { generateAccountColor } from './generateAccountColor';
@@ -1,4 +1,4 @@
1
- export { accountUtils } from './accounts';
2
- export { labelUtils } from './labels';
3
- export { threadsUtils } from './threads';
1
+ export { generateAccountColor } from './accounts';
2
+ export { labelSpecialUseOrdering } from './labels';
3
+ export { parseLabelIdList, processSearchTerm } from './threads';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA"}
@@ -1,3 +1,3 @@
1
- export { accountUtils } from './accounts';
2
- export { labelUtils } from './labels';
3
- export { threadsUtils } from './threads';
1
+ export { generateAccountColor } from './accounts';
2
+ export { labelSpecialUseOrdering } from './labels';
3
+ export { parseLabelIdList, processSearchTerm } from './threads';
@@ -1,4 +1,3 @@
1
- export declare const labelUtils: {
2
- specialUseOrdering: ("ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH")[];
3
- };
1
+ import type { LabelSpecialUse } from '../../types';
2
+ export declare const labelSpecialUseOrdering: readonly LabelSpecialUse[];
4
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/labels/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;CAEtB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/labels/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAE1D,eAAO,MAAM,uBAAuB,EAAE,SAAS,eAAe,EAAkD,CAAA"}
@@ -1,4 +1 @@
1
- const labelSpecialUseOrdering = ['INBOX', 'SENT', 'SPAM', 'TRASH', 'ARCHIVE'];
2
- export const labelUtils = {
3
- specialUseOrdering: labelSpecialUseOrdering,
4
- };
1
+ export const labelSpecialUseOrdering = ['INBOX', 'SENT', 'SPAM', 'TRASH', 'ARCHIVE'];
@@ -1,5 +1,3 @@
1
- export declare const threadsUtils: {
2
- parseLabelIdList: (labelIdList: string) => string[];
3
- processSearchTerm: (term: string) => string[];
4
- };
1
+ export { parseLabelIdList } from './parseLabelIdList/parseLabelIdList';
2
+ export { processSearchTerm } from './processSearchTerm/processSearchTerm';
5
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/threads/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;CAGxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/threads/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA"}
@@ -1,6 +1,2 @@
1
- import { parseLabelIdList } from './parseLabelIdList';
2
- import { processSearchTerm } from './processSearchTerm';
3
- export const threadsUtils = {
4
- parseLabelIdList,
5
- processSearchTerm,
6
- };
1
+ export { parseLabelIdList } from './parseLabelIdList/parseLabelIdList';
2
+ export { processSearchTerm } from './processSearchTerm/processSearchTerm';
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, it } from 'bun:test';
2
- import { parseLabelIdList } from './index';
2
+ import { parseLabelIdList } from './parseLabelIdList';
3
3
  describe('parseLabelIdList', () => {
4
4
  const testCases = [
5
5
  { description: 'parses space-separated IDs', expected: ['id1', 'id2', 'id3'], input: ' id1 id2 id3 ' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "4.0.15",
3
+ "version": "4.0.17",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -1,2 +0,0 @@
1
- export { parseLabelIdList } from './parseLabelIdList';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/threads/parseLabelIdList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1 +0,0 @@
1
- export { parseLabelIdList } from './parseLabelIdList';
@@ -1,2 +0,0 @@
1
- export { processSearchTerm } from './processSearchTerm';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/threads/processSearchTerm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1 +0,0 @@
1
- export { processSearchTerm } from './processSearchTerm';