@marcoappio/marco-config 4.0.16 → 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 (72) 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.d.ts +20 -20
  6. package/dist/appwrite/commands.js +5 -5
  7. package/dist/appwrite/commands.test.js +3 -3
  8. package/dist/appwrite/decodedSchemas.js +2 -2
  9. package/dist/appwrite/functions.d.ts +10 -10
  10. package/dist/appwrite/functions.js +6 -6
  11. package/dist/appwrite/functions.test.js +1 -1
  12. package/dist/appwrite/index.d.ts +5 -3
  13. package/dist/appwrite/index.d.ts.map +1 -1
  14. package/dist/appwrite/index.js +4 -3
  15. package/dist/appwrite/tableContract/identity.d.ts +62 -297
  16. package/dist/appwrite/tableContract/identity.d.ts.map +1 -1
  17. package/dist/appwrite/tableContract/identity.js +122 -146
  18. package/dist/appwrite/tableContract/index.d.ts +726 -818
  19. package/dist/appwrite/tableContract/index.d.ts.map +1 -1
  20. package/dist/appwrite/tableContract/index.js +23 -10
  21. package/dist/appwrite/tableContract/index.test.js +40 -4
  22. package/dist/appwrite/tableContract/mailbox.d.ts +88 -411
  23. package/dist/appwrite/tableContract/mailbox.d.ts.map +1 -1
  24. package/dist/appwrite/tableContract/mailbox.js +159 -180
  25. package/dist/appwrite/tableContract/operational.d.ts +76 -351
  26. package/dist/appwrite/tableContract/operational.d.ts.map +1 -1
  27. package/dist/appwrite/tableContract/operational.js +154 -178
  28. package/dist/appwrite/tableContract/shared.d.ts +14 -7
  29. package/dist/appwrite/tableContract/shared.d.ts.map +1 -1
  30. package/dist/appwrite/tableContract/shared.js +2 -2
  31. package/dist/constants/emailProvider.js +1 -1
  32. package/dist/constants/index.js +5 -5
  33. package/dist/index.d.ts +5 -5
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +5 -5
  36. package/dist/index.test.js +67 -6
  37. package/dist/schemas/app.js +1 -1
  38. package/dist/schemas/auth.js +1 -1
  39. package/dist/schemas/emailAccount.d.ts +1 -1
  40. package/dist/schemas/emailAccount.js +5 -5
  41. package/dist/schemas/index.d.ts +3 -3
  42. package/dist/schemas/index.js +9 -9
  43. package/dist/schemas/models/account.js +4 -4
  44. package/dist/schemas/models/contact.js +2 -2
  45. package/dist/schemas/models/draft.js +4 -4
  46. package/dist/schemas/models/index.d.ts +5 -5
  47. package/dist/schemas/models/index.js +5 -5
  48. package/dist/schemas/models/mailboxAddress.test.js +3 -3
  49. package/dist/schemas/models/numericSemantics.test.js +2 -2
  50. package/dist/schemas/models/thread.js +5 -5
  51. package/dist/schemas/models/user.d.ts +1 -1
  52. package/dist/schemas/models/user.js +3 -3
  53. package/dist/schemas/models/user.test.js +2 -2
  54. package/dist/schemas/number.js +1 -1
  55. package/dist/schemas/oauth.js +1 -1
  56. package/dist/schemas/pushNotifications.js +1 -1
  57. package/dist/schemas/scalars.test.js +2 -2
  58. package/dist/schemas/schemaValues.test.js +1 -1
  59. package/dist/schemas/string.js +1 -1
  60. package/dist/types/IMAPSourceLocation.d.ts +1 -1
  61. package/dist/types/index.d.ts +11 -11
  62. package/dist/types/index.js +11 -11
  63. package/dist/utils/accounts/index.d.ts +1 -1
  64. package/dist/utils/accounts/index.js +1 -1
  65. package/dist/utils/index.d.ts +3 -3
  66. package/dist/utils/index.js +3 -3
  67. package/dist/utils/labels/index.d.ts +1 -1
  68. package/dist/utils/threads/index.d.ts +2 -2
  69. package/dist/utils/threads/index.js +2 -2
  70. package/dist/utils/threads/parseLabelIdList/parseLabelIdList.test.js +1 -1
  71. package/dist/utils/threads/processSearchTerm/processSearchTerm.test.js +1 -1
  72. package/package.json +15 -3
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- import { MARCO_PLATFORM } from '../types';
2
+ import { MARCO_PLATFORM } from '../types/index.js';
3
3
  export const app = {
4
4
  platform: v.picklist(MARCO_PLATFORM),
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- import { string } from './string';
2
+ import { string } from './string.js';
3
3
  export const auth = {
4
4
  code: v.object({
5
5
  authType: v.literal('CODE'),
@@ -1,5 +1,5 @@
1
1
  import * as v from 'valibot';
2
- export { socketTypeSchema } from './scalars';
2
+ export { socketTypeSchema } from './scalars.js';
3
3
  export declare const emailAccount: {
4
4
  connectionConfigImapRaw: v.ObjectSchema<{
5
5
  readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
@@ -1,9 +1,9 @@
1
1
  import * as v from 'valibot';
2
- import { IMAP_CONNECTION_STATUSES } from '../types';
3
- import { oauth } from './oauth';
4
- import { portSchema, socketTypeSchema } from './scalars';
5
- import { string } from './string';
6
- export { socketTypeSchema } from './scalars';
2
+ import { IMAP_CONNECTION_STATUSES } from '../types/index.js';
3
+ import { oauth } from './oauth.js';
4
+ import { portSchema, socketTypeSchema } from './scalars.js';
5
+ import { string } from './string.js';
6
+ export { socketTypeSchema } from './scalars.js';
7
7
  export const emailAccount = {
8
8
  connectionConfigImapRaw: v.object({
9
9
  imapHost: string.required(4096),
@@ -1,5 +1,5 @@
1
- export type { AccountId, AliasId, AttachmentId, ContactId, DraftId, JobId, LabelId, MessageId, PushNotificationTokenId, RecipientId, ThreadId, UserId, ViewId } from './id';
2
- export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, UserView, } from './models';
1
+ export type { AccountId, AliasId, AttachmentId, ContactId, DraftId, JobId, LabelId, MessageId, PushNotificationTokenId, RecipientId, ThreadId, UserId, ViewId } from './id.js';
2
+ export type { Account, AccountAlias, AccountLabel, Contact, Draft, DraftAttachment, DraftBody, Thread, ThreadMessage, ThreadMessageAttachment, ThreadMessageRecipient, UserView, } from './models/index.js';
3
3
  export declare const marcoSchemas: {
4
4
  app: {
5
5
  platform: import("valibot").PicklistSchema<readonly ["ios", "osx", "web"], undefined>;
@@ -290,7 +290,7 @@ export declare const marcoSchemas: {
290
290
  }, undefined>;
291
291
  userViewSchema: import("valibot").ObjectSchema<{
292
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>;
293
- readonly icon: import("valibot").PicklistSchema<readonly import("..").CustomViewIcon[], undefined>;
293
+ readonly icon: import("valibot").PicklistSchema<readonly import("../index.js").CustomViewIcon[], undefined>;
294
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>;
295
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>;
296
296
  }, undefined>;
@@ -1,12 +1,12 @@
1
- import { app } from './app';
2
- import { auth } from './auth';
3
- import { emailAccount } from './emailAccount';
4
- import { id } from './id';
5
- import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userViewSchema, } from './models';
6
- import { number } from './number';
7
- import { oauth } from './oauth';
8
- import { pushNotifications } from './pushNotifications';
9
- import { string } from './string';
1
+ import { app } from './app.js';
2
+ import { auth } from './auth.js';
3
+ import { emailAccount } from './emailAccount.js';
4
+ import { id } from './id.js';
5
+ import { accountAliasSchema, accountLabelSchema, accountSchema, contactSchema, draftAttachmentSchema, draftBodySchema, draftSchema, threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, userViewSchema, } from './models/index.js';
6
+ import { number } from './number.js';
7
+ import { oauth } from './oauth.js';
8
+ import { pushNotifications } from './pushNotifications.js';
9
+ import { string } from './string.js';
10
10
  export const marcoSchemas = {
11
11
  app,
12
12
  auth,
@@ -1,8 +1,8 @@
1
1
  import * as v from 'valibot';
2
- import { id } from '../../schemas/id';
3
- import { number } from '../../schemas/number';
4
- import { string } from '../../schemas/string';
5
- import { IMAP_CONNECTION_STATUSES, LABEL_SPECIAL_USES } from '../../types';
2
+ import { id } from '../../schemas/id.js';
3
+ import { number } from '../../schemas/number.js';
4
+ import { string } from '../../schemas/string.js';
5
+ import { IMAP_CONNECTION_STATUSES, LABEL_SPECIAL_USES } from '../../types/index.js';
6
6
  export const accountAliasSchema = v.object({
7
7
  accountId: id.accountId.required(),
8
8
  emailAddress: string.required(),
@@ -1,6 +1,6 @@
1
1
  import * as v from 'valibot';
2
- import { id } from '../../schemas/id';
3
- import { string } from '../../schemas/string';
2
+ import { id } from '../../schemas/id.js';
3
+ import { string } from '../../schemas/string.js';
4
4
  export const contactSchema = v.object({
5
5
  emailAddress: string.mailboxAddress(),
6
6
  id: id.contactId.required(),
@@ -1,8 +1,8 @@
1
1
  import * as v from 'valibot';
2
- import { id } from '../../schemas/id';
3
- import { number } from '../../schemas/number';
4
- import { string } from '../../schemas/string';
5
- import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES } from '../../types';
2
+ import { id } from '../../schemas/id.js';
3
+ import { number } from '../../schemas/number.js';
4
+ import { string } from '../../schemas/string.js';
5
+ import { DRAFT_ATTACHMENT_UPLOAD_STATUSES, DRAFT_STATUSES, DRAFT_TYPES } from '../../types/index.js';
6
6
  export const draftAttachmentSchema = v.object({
7
7
  draftId: id.draftId.required(),
8
8
  fileName: string.required(),
@@ -1,6 +1,6 @@
1
- export { type Account, type AccountAlias, type AccountLabel, accountAliasSchema, accountLabelSchema, accountSchema } from './account';
2
- export { type Contact, contactSchema } from './contact';
3
- export { type Draft, type DraftAttachment, type DraftBody, draftAttachmentSchema, draftBodySchema, draftSchema } from './draft';
4
- export { type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread';
5
- export { type UserView, userViewSchema } from './user';
1
+ export { type Account, type AccountAlias, type AccountLabel, accountAliasSchema, accountLabelSchema, accountSchema } from './account.js';
2
+ export { type Contact, contactSchema } from './contact.js';
3
+ export { type Draft, type DraftAttachment, type DraftBody, draftAttachmentSchema, draftBodySchema, draftSchema } from './draft.js';
4
+ export { type Thread, type ThreadMessage, type ThreadMessageAttachment, type ThreadMessageRecipient, threadFullSchema, threadMessageAttachmentSchema, threadMessageRecipientSchema, threadMessageSchema, threadSchema, } from './thread.js';
5
+ export { type UserView, userViewSchema } from './user.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -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.16",
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 .",