@marcoappio/marco-config 4.0.17 → 4.0.18

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 (65) hide show
  1. package/dist/appwrite/appwrite.d.ts +557 -561
  2. package/dist/appwrite/appwrite.d.ts.map +1 -1
  3. package/dist/appwrite/appwrite.js +4 -7
  4. package/dist/appwrite/appwrite.test.js +2 -1
  5. package/dist/appwrite/commands.js +5 -5
  6. package/dist/appwrite/commands.test.js +3 -3
  7. package/dist/appwrite/decodedSchemas.js +2 -2
  8. package/dist/appwrite/functions.js +6 -6
  9. package/dist/appwrite/functions.test.js +1 -1
  10. package/dist/appwrite/index.d.ts +5 -3
  11. package/dist/appwrite/index.d.ts.map +1 -1
  12. package/dist/appwrite/index.js +4 -3
  13. package/dist/appwrite/tableContract/identity.d.ts +62 -62
  14. package/dist/appwrite/tableContract/identity.js +1 -1
  15. package/dist/appwrite/tableContract/index.d.ts +726 -726
  16. package/dist/appwrite/tableContract/index.js +5 -5
  17. package/dist/appwrite/tableContract/index.test.js +5 -5
  18. package/dist/appwrite/tableContract/mailbox.d.ts +88 -88
  19. package/dist/appwrite/tableContract/mailbox.js +1 -1
  20. package/dist/appwrite/tableContract/operational.d.ts +76 -76
  21. package/dist/appwrite/tableContract/operational.js +1 -1
  22. package/dist/appwrite/tableContract/shared.d.ts +1 -1
  23. package/dist/appwrite/tableContract/shared.js +1 -1
  24. package/dist/constants/emailProvider.js +1 -1
  25. package/dist/constants/index.js +5 -5
  26. package/dist/index.d.ts +5 -5
  27. package/dist/index.d.ts.map +1 -1
  28. package/dist/index.js +5 -5
  29. package/dist/index.test.js +67 -6
  30. package/dist/schemas/app.js +1 -1
  31. package/dist/schemas/auth.js +1 -1
  32. package/dist/schemas/emailAccount.d.ts +1 -1
  33. package/dist/schemas/emailAccount.js +5 -5
  34. package/dist/schemas/index.d.ts +3 -3
  35. package/dist/schemas/index.js +9 -9
  36. package/dist/schemas/models/account.js +4 -4
  37. package/dist/schemas/models/contact.js +2 -2
  38. package/dist/schemas/models/draft.js +4 -4
  39. package/dist/schemas/models/index.d.ts +5 -5
  40. package/dist/schemas/models/index.js +5 -5
  41. package/dist/schemas/models/mailboxAddress.test.js +3 -3
  42. package/dist/schemas/models/numericSemantics.test.js +2 -2
  43. package/dist/schemas/models/thread.js +5 -5
  44. package/dist/schemas/models/user.d.ts +1 -1
  45. package/dist/schemas/models/user.js +3 -3
  46. package/dist/schemas/models/user.test.js +2 -2
  47. package/dist/schemas/number.js +1 -1
  48. package/dist/schemas/oauth.js +1 -1
  49. package/dist/schemas/pushNotifications.js +1 -1
  50. package/dist/schemas/scalars.test.js +2 -2
  51. package/dist/schemas/schemaValues.test.js +1 -1
  52. package/dist/schemas/string.js +1 -1
  53. package/dist/types/IMAPSourceLocation.d.ts +1 -1
  54. package/dist/types/index.d.ts +11 -11
  55. package/dist/types/index.js +11 -11
  56. package/dist/utils/accounts/index.d.ts +1 -1
  57. package/dist/utils/accounts/index.js +1 -1
  58. package/dist/utils/index.d.ts +3 -3
  59. package/dist/utils/index.js +3 -3
  60. package/dist/utils/labels/index.d.ts +1 -1
  61. package/dist/utils/threads/index.d.ts +2 -2
  62. package/dist/utils/threads/index.js +2 -2
  63. package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.js +1 -1
  64. package/dist/utils/threads/processSearchTerm/processSearchTerm.test.js +1 -1
  65. package/package.json +15 -3
@@ -1,5 +1,5 @@
1
- export { accountAliasSchema, accountLabelSchema, accountSchema } from './account';
2
- export { contactSchema } from './contact';
3
- export { draftAttachmentSchema, draftBodySchema, draftSchema } from './draft';
4
- export { threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
5
- export { userViewSchema } from './user';
1
+ export { accountAliasSchema, accountLabelSchema, accountSchema } from './account.js';
2
+ export { contactSchema } from './contact.js';
3
+ export { draftAttachmentSchema, draftBodySchema, draftSchema } from './draft.js';
4
+ export { threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread.js';
5
+ export { userViewSchema } from './user.js';
@@ -1,8 +1,8 @@
1
1
  import { describe, expect, it } from 'bun:test';
2
2
  import * as v from 'valibot';
3
- import { contactSchema } from './contact';
4
- import { draftBodySchema } from './draft';
5
- import { threadMessageRecipientSchema, threadMessageSchema, threadSchema } from './thread';
3
+ import { contactSchema } from './contact.js';
4
+ import { draftBodySchema } from './draft.js';
5
+ import { threadMessageRecipientSchema, threadMessageSchema, threadSchema } from './thread.js';
6
6
  const mailboxAddressSchemas = [
7
7
  contactSchema.entries.emailAddress,
8
8
  draftBodySchema.entries.bcc.item,
@@ -1,7 +1,7 @@
1
1
  import { describe, expect, it } from 'bun:test';
2
2
  import * as v from 'valibot';
3
- import { draftAttachmentSchema, draftSchema } from './draft';
4
- import { threadMessageAttachmentSchema, threadMessageSchema, threadSchema } from './thread';
3
+ import { draftAttachmentSchema, draftSchema } from './draft.js';
4
+ import { threadMessageAttachmentSchema, threadMessageSchema, threadSchema } from './thread.js';
5
5
  describe('legacy model numeric semantics', () => {
6
6
  it('requires positive epoch timestamps', () => {
7
7
  const timestampSchemas = [
@@ -1,9 +1,9 @@
1
1
  import * as v from 'valibot';
2
- import { messages } from '../../constants/messages';
3
- import { id } from '../../schemas/id';
4
- import { number } from '../../schemas/number';
5
- import { string } from '../../schemas/string';
6
- import { MESSAGE_RECIPIENT_TYPES } from '../../types';
2
+ import { messages } from '../../constants/messages.js';
3
+ import { id } from '../../schemas/id.js';
4
+ import { number } from '../../schemas/number.js';
5
+ import { string } from '../../schemas/string.js';
6
+ import { MESSAGE_RECIPIENT_TYPES } from '../../types/index.js';
7
7
  export const threadMessageAttachmentSchema = v.object({
8
8
  fileName: string.required(),
9
9
  id: id.attachmentId.required(),
@@ -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[], undefined>;
4
+ readonly icon: v.PicklistSchema<readonly import("../../types/index.js").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,7 +1,7 @@
1
1
  import * as v from 'valibot';
2
- import { id } from '../../schemas/id';
3
- import { string } from '../../schemas/string';
4
- import { USER_SETTINGS_CUSTOM_VIEW_ICONS } from '../../types';
2
+ import { id } from '../../schemas/id.js';
3
+ import { string } from '../../schemas/string.js';
4
+ import { USER_SETTINGS_CUSTOM_VIEW_ICONS } from '../../types/index.js';
5
5
  export const userViewSchema = v.object({
6
6
  aliasIds: v.array(id.aliasId.required()),
7
7
  icon: v.picklist(USER_SETTINGS_CUSTOM_VIEW_ICONS),
@@ -1,7 +1,7 @@
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';
4
- import { userViewSchema } from './user';
3
+ import { CustomViewIcon, USER_SETTINGS_CUSTOM_VIEW_ICONS } from '../../types/index.js';
4
+ import { userViewSchema } from './user.js';
5
5
  describe('userViewSchema', () => {
6
6
  it('keys saved views by stable alias IDs', () => {
7
7
  const view = { aliasIds: ['alias-1'], icon: 'STAR', id: 'view-1', name: 'Important' };
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- import { nonNegativeIntegerSchema, positiveIntegerSchema } from './scalars';
2
+ import { nonNegativeIntegerSchema, positiveIntegerSchema } from './scalars.js';
3
3
  export const number = {
4
4
  minMax: (min, max) => v.nonOptional(v.pipe(v.number(), v.minValue(min), v.maxValue(max))),
5
5
  nonNegativeInteger: () => v.nonOptional(nonNegativeIntegerSchema),
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- import { OAUTH_PROVIDERS } from '../types';
2
+ import { OAUTH_PROVIDERS } from '../types/index.js';
3
3
  export const oauth = {
4
4
  provider: v.picklist(OAUTH_PROVIDERS),
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- import { id } from './id';
2
+ import { id } from './id.js';
3
3
  const pushNotificationEmailReceivedPayload = v.object({
4
4
  data: v.object({
5
5
  messageId: id.messageId.required(),
@@ -1,7 +1,7 @@
1
1
  import { describe, expect, it } from 'bun:test';
2
2
  import * as v from 'valibot';
3
- import { number } from './number';
4
- import { canonicalTimestampSchema, isoTimestampSchema, jsonObjectTextSchema, mailboxAddressSchema, portSchema, rfcEmailSchema, socketTypeSchema, socketTypes, webEmailSchema, } from './scalars';
3
+ import { number } from './number.js';
4
+ import { canonicalTimestampSchema, isoTimestampSchema, jsonObjectTextSchema, mailboxAddressSchema, portSchema, rfcEmailSchema, socketTypeSchema, socketTypes, webEmailSchema, } from './scalars.js';
5
5
  describe('scalar contracts', () => {
6
6
  it('distinguishes non-negative and positive integers', () => {
7
7
  expect(v.safeParse(number.nonNegativeInteger(), 0).success).toBe(true);
@@ -1,6 +1,6 @@
1
1
  import { describe, expect, it } from 'bun:test';
2
2
  import * as v from 'valibot';
3
- import { marcoSchemas } from './index';
3
+ import { marcoSchemas } from './index.js';
4
4
  describe('immutable schema values', () => {
5
5
  it('publishes parameterless schemas as reusable values', () => {
6
6
  expect(v.safeParse(marcoSchemas.app.platform, 'ios').success).toBe(true);
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- import { mailboxAddressSchema, rfcEmailSchema } from './scalars';
2
+ import { mailboxAddressSchema, rfcEmailSchema } from './scalars.js';
3
3
  export const string = {
4
4
  email: () => v.nonOptional(rfcEmailSchema),
5
5
  mailboxAddress: () => v.nonOptional(mailboxAddressSchema),
@@ -1,4 +1,4 @@
1
- import type { LabelId, MessageId } from '../schemas/id';
1
+ import type { LabelId, MessageId } from '../schemas/id.js';
2
2
  export type IMAPSourceLocation = {
3
3
  labelId: LabelId;
4
4
  threadMessageId: MessageId;
@@ -1,12 +1,12 @@
1
- export * from './DraftAttachmentUploadStatus';
2
- export * from './DraftStatus';
3
- export * from './DraftType';
4
- export * from './EmailProvider';
5
- export * from './IMAPConnectionStatus';
6
- export * from './IMAPSourceLocation';
7
- export * from './LabelSpecialUse';
8
- export * from './MarcoPlatform';
9
- export * from './MessageRecipientType';
10
- export * from './OAuthProvider';
11
- export * from './UserSettings';
1
+ export * from './DraftAttachmentUploadStatus.js';
2
+ export * from './DraftStatus.js';
3
+ export * from './DraftType.js';
4
+ export * from './EmailProvider.js';
5
+ export * from './IMAPConnectionStatus.js';
6
+ export * from './IMAPSourceLocation.js';
7
+ export * from './LabelSpecialUse.js';
8
+ export * from './MarcoPlatform.js';
9
+ export * from './MessageRecipientType.js';
10
+ export * from './OAuthProvider.js';
11
+ export * from './UserSettings.js';
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,11 @@
1
- export * from './DraftAttachmentUploadStatus';
2
- export * from './DraftStatus';
3
- export * from './DraftType';
4
- export * from './EmailProvider';
5
- export * from './IMAPConnectionStatus';
6
- export * from './IMAPSourceLocation';
7
- export * from './LabelSpecialUse';
8
- export * from './MarcoPlatform';
9
- export * from './MessageRecipientType';
10
- export * from './OAuthProvider';
11
- export * from './UserSettings';
1
+ export * from './DraftAttachmentUploadStatus.js';
2
+ export * from './DraftStatus.js';
3
+ export * from './DraftType.js';
4
+ export * from './EmailProvider.js';
5
+ export * from './IMAPConnectionStatus.js';
6
+ export * from './IMAPSourceLocation.js';
7
+ export * from './LabelSpecialUse.js';
8
+ export * from './MarcoPlatform.js';
9
+ export * from './MessageRecipientType.js';
10
+ export * from './OAuthProvider.js';
11
+ export * from './UserSettings.js';
@@ -1,2 +1,2 @@
1
- export { generateAccountColor } from './generateAccountColor';
1
+ export { generateAccountColor } from './generateAccountColor.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- export { generateAccountColor } from './generateAccountColor';
1
+ export { generateAccountColor } from './generateAccountColor.js';
@@ -1,4 +1,4 @@
1
- export { generateAccountColor } from './accounts';
2
- export { labelSpecialUseOrdering } from './labels';
3
- export { parseLabelIdList, processSearchTerm } from './threads';
1
+ export { generateAccountColor } from './accounts/index.js';
2
+ export { labelSpecialUseOrdering } from './labels/index.js';
3
+ export { parseLabelIdList, processSearchTerm } from './threads/index.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { generateAccountColor } from './accounts';
2
- export { labelSpecialUseOrdering } from './labels';
3
- export { parseLabelIdList, processSearchTerm } from './threads';
1
+ export { generateAccountColor } from './accounts/index.js';
2
+ export { labelSpecialUseOrdering } from './labels/index.js';
3
+ export { parseLabelIdList, processSearchTerm } from './threads/index.js';
@@ -1,3 +1,3 @@
1
- import type { LabelSpecialUse } from '../../types';
1
+ import type { LabelSpecialUse } from '../../types/index.js';
2
2
  export declare const labelSpecialUseOrdering: readonly LabelSpecialUse[];
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { parseLabelIdList } from './parseLabelIdList/parseLabelIdList';
2
- export { processSearchTerm } from './processSearchTerm/processSearchTerm';
1
+ export { parseLabelIdList } from './parseLabelIdList/parseLabelIdList.js';
2
+ export { processSearchTerm } from './processSearchTerm/processSearchTerm.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export { parseLabelIdList } from './parseLabelIdList/parseLabelIdList';
2
- export { processSearchTerm } from './processSearchTerm/processSearchTerm';
1
+ export { parseLabelIdList } from './parseLabelIdList/parseLabelIdList.js';
2
+ export { processSearchTerm } from './processSearchTerm/processSearchTerm.js';
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, it } from 'bun:test';
2
- import { parseLabelIdList } from './parseLabelIdList';
2
+ import { parseLabelIdList } from './parseLabelIdList.js';
3
3
  describe('parseLabelIdList', () => {
4
4
  const testCases = [
5
5
  { description: 'parses space-separated IDs', expected: ['id1', 'id2', 'id3'], input: ' id1 id2 id3 ' },
@@ -1,5 +1,5 @@
1
1
  import { describe, expect, it } from 'bun:test';
2
- import { processSearchTerm } from './processSearchTerm';
2
+ import { processSearchTerm } from './processSearchTerm.js';
3
3
  describe('processSearchTerm', () => {
4
4
  const testCases = [
5
5
  { description: 'stems word to root form', expected: ['run'], input: 'running' },
package/package.json CHANGED
@@ -1,10 +1,22 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
4
4
  "author": "team@marcoapp.io",
5
- "main": "dist/index.js",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "import": "./dist/index.js",
9
+ "default": "./dist/index.js"
10
+ },
11
+ "./appwrite": {
12
+ "types": "./dist/appwrite/index.d.ts",
13
+ "import": "./dist/appwrite/index.js",
14
+ "default": "./dist/appwrite/index.js"
15
+ }
16
+ },
6
17
  "repository": "git@github.com:marcoappio/marco-config.git",
7
18
  "packageManager": "bun@1.3.1",
19
+ "type": "module",
8
20
  "engines": {
9
21
  "bun": "1.3.1"
10
22
  },
@@ -17,7 +29,7 @@
17
29
  ]
18
30
  },
19
31
  "scripts": {
20
- "build": "bun scripts/clean/clean.ts && tsc && tsc-alias",
32
+ "build": "bun scripts/clean/clean.ts && tsc && tsc-alias --resolve-full-paths --resolve-full-extension .js",
21
33
  "check:package": "bun run build && bun scripts/verifyPackage/verifyPackage.ts",
22
34
  "check:workflow-secrets": "git grep --files-with-matches --extended-regexp 'https://hooks[.]slack[.]com/services/' -- .; test $? -eq 1",
23
35
  "format": "oxfmt --write .",