@marcoappio/marco-config 2.0.350 → 2.0.352
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.
- package/dist/clients/account.d.ts +17 -17
- package/dist/clients/account.js +15 -15
- package/dist/clients/contact.d.ts +1 -1
- package/dist/clients/contact.js +1 -1
- package/dist/clients/draft.d.ts +25 -25
- package/dist/clients/draft.js +19 -19
- package/dist/clients/index.d.ts +64 -59
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/clients/thread.d.ts +18 -13
- package/dist/clients/thread.d.ts.map +1 -1
- package/dist/clients/thread.js +18 -13
- package/dist/clients/user.d.ts +3 -3
- package/dist/clients/user.js +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/schemas/index.d.ts +3 -4
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/number.d.ts +1 -0
- package/dist/schemas/number.d.ts.map +1 -1
- package/dist/schemas/number.js +1 -0
- package/dist/schemas/pushNotifications.d.ts +2 -2
- package/dist/schemas/pushNotifications.js +2 -2
- package/dist/schemas/string.d.ts +0 -2
- package/dist/schemas/string.d.ts.map +1 -1
- package/dist/schemas/string.js +0 -3
- package/dist/sdk/endpoints/index.d.ts +83 -76
- package/dist/sdk/endpoints/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.d.ts +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageAttachment.js +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/emailMessage/getEmailMessageHTML.js +2 -1
- package/dist/sdk/endpoints/private/emailMessage/index.d.ts +2 -2
- package/dist/sdk/endpoints/private/index.d.ts +75 -68
- package/dist/sdk/endpoints/private/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/index.d.ts +73 -66
- package/dist/sdk/endpoints/private/sync/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts +4 -4
- package/dist/sdk/endpoints/private/sync/pull/account.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/account.js +3 -2
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/pull/contact.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/contact.js +3 -2
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts +6 -6
- package/dist/sdk/endpoints/private/sync/pull/draft.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/draft.js +3 -2
- package/dist/sdk/endpoints/private/sync/pull/index.d.ts +21 -21
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts +7 -7
- package/dist/sdk/endpoints/private/sync/pull/thread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/thread.js +4 -3
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts +2 -2
- package/dist/sdk/endpoints/private/sync/pull/user.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/pull/user.js +3 -2
- package/dist/sdk/endpoints/private/sync/push/account.d.ts +14 -14
- package/dist/sdk/endpoints/private/sync/push/draft.d.ts +20 -20
- package/dist/sdk/endpoints/private/sync/push/index.d.ts +52 -45
- package/dist/sdk/endpoints/private/sync/push/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts +16 -9
- package/dist/sdk/endpoints/private/sync/push/thread.d.ts.map +1 -1
- package/dist/sdk/endpoints/private/sync/push/thread.js +6 -0
- package/dist/sdk/endpoints/private/sync/push/user.d.ts +2 -2
- package/dist/sdk/endpoints/public/auth/index.d.ts +7 -7
- package/dist/sdk/endpoints/public/auth/refreshAuth.d.ts +4 -4
- package/dist/sdk/endpoints/public/auth/refreshAuth.js +4 -4
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.d.ts +3 -3
- package/dist/sdk/endpoints/public/auth/verifyAuthCode.js +3 -3
- package/dist/sdk/endpoints/public/config/index.d.ts +1 -1
- package/dist/sdk/endpoints/public/config/index.d.ts.map +1 -1
- package/dist/sdk/endpoints/public/config/index.js +2 -1
- package/dist/sdk/endpoints/public/index.d.ts +8 -8
- package/dist/sdk/index.d.ts +83 -76
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/utils/accounts/index.d.ts +0 -4
- package/dist/utils/accounts/index.d.ts.map +1 -1
- package/dist/utils/accounts/index.js +0 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +0 -1
- package/dist/ws.d.ts.map +1 -1
- package/dist/ws.js +1 -6
- package/package.json +3 -4
- package/dist/schemas/string.test.d.ts +0 -2
- package/dist/schemas/string.test.d.ts.map +0 -1
- package/dist/schemas/string.test.js +0 -20
- package/dist/utils/accounts/labelIdGenerate.d.ts +0 -5
- package/dist/utils/accounts/labelIdGenerate.d.ts.map +0 -1
- package/dist/utils/accounts/labelIdGenerate.js +0 -6
- package/dist/utils/accounts/labelIdGenerate.test.d.ts +0 -2
- package/dist/utils/accounts/labelIdGenerate.test.d.ts.map +0 -1
- package/dist/utils/accounts/labelIdGenerate.test.js +0 -51
- package/dist/utils/shortUUID/index.d.ts +0 -2
- package/dist/utils/shortUUID/index.d.ts.map +0 -1
- package/dist/utils/shortUUID/index.js +0 -1
- package/dist/utils/shortUUID/shortUUID.d.ts +0 -7
- package/dist/utils/shortUUID/shortUUID.d.ts.map +0 -1
- package/dist/utils/shortUUID/shortUUID.js +0 -8
- package/dist/utils/shortUUID/shortUUID.test.d.ts +0 -2
- package/dist/utils/shortUUID/shortUUID.test.d.ts.map +0 -1
- package/dist/utils/shortUUID/shortUUID.test.js +0 -19
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/s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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;CAExB,CAAA"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -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,
|
|
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,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
package/dist/utils/index.js
CHANGED
package/dist/ws.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../src/ws.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ws.d.ts","sourceRoot":"","sources":["../src/ws.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;uBAED,MAAM;;CAExB,CAAA"}
|
package/dist/ws.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marcoappio/marco-config",
|
|
3
3
|
"packageManager": "bun@1.2.0",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.352",
|
|
5
5
|
"author": "team@marcoapp.io",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"repository": "git@github.com:marcoappio/marco-config.git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"build": "tsc && tsc-alias",
|
|
19
19
|
"lint": "eslint --ext .ts,.tsx,.js src",
|
|
20
20
|
"release": "bun run build && auto shipit",
|
|
21
|
+
"test": "bun test",
|
|
21
22
|
"typecheck": "tsc -noEmit --incremental"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@types/bun": "1.2.0",
|
|
25
25
|
"@typescript-eslint/eslint-plugin": "5.62.0",
|
|
26
26
|
"@typescript-eslint/parser": "6.21.0",
|
|
27
27
|
"diff": "8.0.0-beta",
|
|
@@ -33,12 +33,11 @@
|
|
|
33
33
|
"eslint-plugin-sort-destructure-keys": "1.4.0",
|
|
34
34
|
"eslint-plugin-sort-keys-fix": "1.1.2",
|
|
35
35
|
"eslint-plugin-typescript-sort-keys": "2.3.0",
|
|
36
|
-
"short-uuid": "5.2.0",
|
|
37
|
-
"uuid": "11.1.0",
|
|
38
36
|
"valibot": "1.0.0-beta.9"
|
|
39
37
|
},
|
|
40
38
|
"devDependencies": {
|
|
41
39
|
"@auto-it/npm": "11.2.0",
|
|
40
|
+
"@types/bun": "1.2.0",
|
|
42
41
|
"auto": "11.2.0",
|
|
43
42
|
"tsc-alias": "1.8.16",
|
|
44
43
|
"typescript": "5.7.3"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string.test.d.ts","sourceRoot":"","sources":["../../src/schemas/string.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'bun:test';
|
|
2
|
-
import * as v from 'valibot';
|
|
3
|
-
import { string } from '../schemas/string';
|
|
4
|
-
import { shortUUID } from '../utils';
|
|
5
|
-
describe('string', () => {
|
|
6
|
-
const uuid = shortUUID.createUUID();
|
|
7
|
-
const uuidShort = shortUUID.fromUUID(uuid);
|
|
8
|
-
describe('shortUUID', () => {
|
|
9
|
-
it('should correctly validate a short UUID', () => {
|
|
10
|
-
expect(v.safeParse(string.shortUUID(), uuidShort).success).toBe(true);
|
|
11
|
-
expect(v.safeParse(string.shortUUID(), uuid).success).toBe(false);
|
|
12
|
-
});
|
|
13
|
-
});
|
|
14
|
-
describe('uuid', () => {
|
|
15
|
-
it('should correctly validate a UUID', () => {
|
|
16
|
-
expect(v.safeParse(string.uuid(), uuid).success).toBe(true);
|
|
17
|
-
expect(v.safeParse(string.uuid(), uuidShort).success).toBe(false);
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labelIdGenerate.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts/labelIdGenerate.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,WAAY;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACf,WAOA,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"labelIdGenerate.test.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts/labelIdGenerate.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'bun:test';
|
|
2
|
-
import { labelIdGenerate } from './labelIdGenerate';
|
|
3
|
-
describe('labelIdGenerate', () => {
|
|
4
|
-
const accountId1 = 'account-uuid-1';
|
|
5
|
-
const accountId2 = 'account-uuid-2';
|
|
6
|
-
const path1 = '/inbox';
|
|
7
|
-
const path2 = '/sent';
|
|
8
|
-
it('should generate different IDs for different paths with same accountId', () => {
|
|
9
|
-
const id1 = labelIdGenerate({ accountId: accountId1, path: path1 });
|
|
10
|
-
const id2 = labelIdGenerate({ accountId: accountId1, path: path2 });
|
|
11
|
-
expect(id1).not.toBe(id2);
|
|
12
|
-
expect(typeof id1).toBe('string');
|
|
13
|
-
expect(typeof id2).toBe('string');
|
|
14
|
-
expect(id1.length).toBeGreaterThan(0);
|
|
15
|
-
expect(id2.length).toBeGreaterThan(0);
|
|
16
|
-
});
|
|
17
|
-
it('should generate different IDs for different accountIds with same path', () => {
|
|
18
|
-
const id1 = labelIdGenerate({ accountId: accountId1, path: path1 });
|
|
19
|
-
const id2 = labelIdGenerate({ accountId: accountId2, path: path1 });
|
|
20
|
-
expect(id1).not.toBe(id2);
|
|
21
|
-
expect(typeof id1).toBe('string');
|
|
22
|
-
expect(typeof id2).toBe('string');
|
|
23
|
-
expect(id1.length).toBeGreaterThan(0);
|
|
24
|
-
expect(id2.length).toBeGreaterThan(0);
|
|
25
|
-
});
|
|
26
|
-
it('should generate different IDs for different accountIds and different paths', () => {
|
|
27
|
-
const id1 = labelIdGenerate({ accountId: accountId1, path: path1 });
|
|
28
|
-
const id2 = labelIdGenerate({ accountId: accountId2, path: path2 });
|
|
29
|
-
expect(id1).not.toBe(id2);
|
|
30
|
-
expect(typeof id1).toBe('string');
|
|
31
|
-
expect(typeof id2).toBe('string');
|
|
32
|
-
expect(id1.length).toBeGreaterThan(0);
|
|
33
|
-
expect(id2.length).toBeGreaterThan(0);
|
|
34
|
-
});
|
|
35
|
-
it('should generate the same ID for identical inputs (deterministic)', () => {
|
|
36
|
-
const id1 = labelIdGenerate({ accountId: accountId1, path: path1 });
|
|
37
|
-
const id2 = labelIdGenerate({ accountId: accountId1, path: path1 });
|
|
38
|
-
expect(id1).toBe(id2);
|
|
39
|
-
});
|
|
40
|
-
it('should handle empty strings', () => {
|
|
41
|
-
const id1 = labelIdGenerate({ accountId: '', path: '' });
|
|
42
|
-
const id2 = labelIdGenerate({ accountId: 'test', path: '' });
|
|
43
|
-
const id3 = labelIdGenerate({ accountId: '', path: 'test' });
|
|
44
|
-
expect(id1).not.toBe(id2);
|
|
45
|
-
expect(id1).not.toBe(id3);
|
|
46
|
-
expect(id2).not.toBe(id3);
|
|
47
|
-
expect(typeof id1).toBe('string');
|
|
48
|
-
expect(typeof id2).toBe('string');
|
|
49
|
-
expect(typeof id3).toBe('string');
|
|
50
|
-
});
|
|
51
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/shortUUID/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { shortUUID } from './shortUUID';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shortUUID.d.ts","sourceRoot":"","sources":["../../../src/utils/shortUUID/shortUUID.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;sBACmB,MAAM;qBAC5B,MAAM,KAAkC,MAAM;wBAC3C,MAAM,KAAqC,MAAM;qBACpD,MAAM,KAAkC,OAAO;CACjE,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import short from 'short-uuid';
|
|
2
|
-
const translator = short();
|
|
3
|
-
export const shortUUID = {
|
|
4
|
-
createUUID: () => translator.uuid(),
|
|
5
|
-
fromUUID: (uuid) => translator.fromUUID(uuid),
|
|
6
|
-
toUUID: (shortUUID) => translator.toUUID(shortUUID),
|
|
7
|
-
validate: (uuid) => translator.validate(uuid),
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shortUUID.test.d.ts","sourceRoot":"","sources":["../../../src/utils/shortUUID/shortUUID.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { describe, expect, it } from 'bun:test';
|
|
2
|
-
import { shortUUID } from './shortUUID';
|
|
3
|
-
describe('shortUUID', () => {
|
|
4
|
-
const testUUID = '123e4567-e89b-12d3-a456-426614174000';
|
|
5
|
-
const testShortUUID = '3fEgj34VWmVufdDCYA2MKE';
|
|
6
|
-
it('should abbreviate a UUID to a short UUID', () => {
|
|
7
|
-
expect(shortUUID.fromUUID(testUUID)).toBe(testShortUUID);
|
|
8
|
-
});
|
|
9
|
-
it('should expand a short UUID to a UUID', () => {
|
|
10
|
-
expect(shortUUID.toUUID(testShortUUID)).toBe(testUUID);
|
|
11
|
-
});
|
|
12
|
-
it('should create a new UUID', () => {
|
|
13
|
-
expect(typeof shortUUID.createUUID()).toBe('string');
|
|
14
|
-
});
|
|
15
|
-
it('should validate a short UUID', () => {
|
|
16
|
-
expect(shortUUID.validate(testShortUUID)).toBe(true);
|
|
17
|
-
expect(shortUUID.validate(testUUID)).toBe(false);
|
|
18
|
-
});
|
|
19
|
-
});
|