@marcoappio/marco-config 2.0.108 → 2.0.110
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 +10 -1
- package/dist/clients/account.d.ts.map +1 -1
- package/dist/clients/account.js +14 -10
- package/dist/clients/index.d.ts +9 -1
- package/dist/clients/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/types/IMAPPasswordConfigStatus.d.ts +6 -0
- package/dist/types/IMAPPasswordConfigStatus.d.ts.map +1 -0
- package/dist/types/IMAPPasswordConfigStatus.js +6 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
+
import { IMAPPasswordConfigStatus } from '../types';
|
|
2
3
|
export declare const account: {
|
|
3
4
|
model: v.ObjectSchema<{
|
|
4
5
|
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -7,7 +8,7 @@ export declare const account: {
|
|
|
7
8
|
readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
8
9
|
readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
9
10
|
readonly port: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
10
|
-
readonly status: v.
|
|
11
|
+
readonly status: v.EnumSchema<typeof IMAPPasswordConfigStatus, undefined>;
|
|
11
12
|
}, undefined>, undefined>;
|
|
12
13
|
readonly labels: v.ArraySchema<v.ObjectSchema<{
|
|
13
14
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -21,6 +22,14 @@ export declare const account: {
|
|
|
21
22
|
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
22
23
|
}, undefined>;
|
|
23
24
|
};
|
|
25
|
+
setIMAPPasswordConfig: {
|
|
26
|
+
delta: v.ObjectSchema<{
|
|
27
|
+
readonly status: v.LiteralSchema<IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
|
|
28
|
+
readonly host: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
readonly password: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
30
|
+
readonly port: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
};
|
|
24
33
|
};
|
|
25
34
|
name: "account";
|
|
26
35
|
pullURL: "/v1/pv/sync/pull/account";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/clients/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,OAAO,EAAE,wBAAwB,EAAe,MAAM,qBAAqB,CAAA;AAS3E,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BG,CAAA"}
|
package/dist/clients/account.js
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
import { marcoSchemas } from '../schemas';
|
|
3
|
+
import { IMAPPasswordConfigStatus } from '../types';
|
|
4
|
+
const imapPasswordConfig = v.object({
|
|
5
|
+
host: marcoSchemas.string.required(),
|
|
6
|
+
password: marcoSchemas.string.required(),
|
|
7
|
+
port: marcoSchemas.number.minMax(1, 65535),
|
|
8
|
+
status: v.enum(IMAPPasswordConfigStatus),
|
|
9
|
+
});
|
|
3
10
|
export const account = {
|
|
4
11
|
model: v.object({
|
|
5
12
|
emailAddress: marcoSchemas.string.email(),
|
|
6
13
|
id: marcoSchemas.string.required(),
|
|
7
|
-
imapPasswordConfig: v.nullable(
|
|
8
|
-
host: marcoSchemas.string.required(),
|
|
9
|
-
password: marcoSchemas.string.required(),
|
|
10
|
-
port: marcoSchemas.number.minMax(1, 65535),
|
|
11
|
-
status: v.union([
|
|
12
|
-
v.literal('AWAITING_CONNECTION'),
|
|
13
|
-
v.literal('CONNECTED'),
|
|
14
|
-
v.literal('CONNECTION_FAILED'),
|
|
15
|
-
]),
|
|
16
|
-
})),
|
|
14
|
+
imapPasswordConfig: v.nullable(imapPasswordConfig),
|
|
17
15
|
labels: v.array(v.object({
|
|
18
16
|
id: marcoSchemas.string.required(),
|
|
19
17
|
name: marcoSchemas.string.required(),
|
|
@@ -26,6 +24,12 @@ export const account = {
|
|
|
26
24
|
id: marcoSchemas.string.required(),
|
|
27
25
|
}),
|
|
28
26
|
},
|
|
27
|
+
setIMAPPasswordConfig: {
|
|
28
|
+
delta: v.object({
|
|
29
|
+
...imapPasswordConfig.entries,
|
|
30
|
+
status: v.literal(IMAPPasswordConfigStatus.AWAITING_CONNECTION),
|
|
31
|
+
}),
|
|
32
|
+
},
|
|
29
33
|
},
|
|
30
34
|
name: 'account',
|
|
31
35
|
pullURL: '/v1/pv/sync/pull/account',
|
package/dist/clients/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const marcoClients: {
|
|
|
7
7
|
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
8
8
|
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
9
9
|
readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
10
|
-
readonly status: import("valibot").
|
|
10
|
+
readonly status: import("valibot").EnumSchema<typeof import("../types").IMAPPasswordConfigStatus, undefined>;
|
|
11
11
|
}, undefined>, undefined>;
|
|
12
12
|
readonly labels: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
13
13
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
@@ -21,6 +21,14 @@ export declare const marcoClients: {
|
|
|
21
21
|
readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
22
22
|
}, undefined>;
|
|
23
23
|
};
|
|
24
|
+
setIMAPPasswordConfig: {
|
|
25
|
+
delta: import("valibot").ObjectSchema<{
|
|
26
|
+
readonly status: import("valibot").LiteralSchema<import("../types").IMAPPasswordConfigStatus.AWAITING_CONNECTION, undefined>;
|
|
27
|
+
readonly host: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
28
|
+
readonly password: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
29
|
+
readonly port: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").MinValueAction<number, number, undefined>, import("valibot").MaxValueAction<number, number, undefined>]>, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
};
|
|
24
32
|
};
|
|
25
33
|
name: "account";
|
|
26
34
|
pullURL: "/v1/pv/sync/pull/account";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIc,CAAA"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { marcoClients } from './clients';
|
|
2
2
|
export { marcoPublicConfig, MARCO_ENV, MarcoEnvironment } from './marcoPublicConfig';
|
|
3
3
|
export { marcoSDK } from './sdk';
|
|
4
|
-
export { MarcoWSEvent, MarcoClient, MarcoWSSyncPoke, EndpointConfig, EndpointError, EndpointResponse } from './types';
|
|
4
|
+
export { MarcoWSEvent, MarcoClient, MarcoWSSyncPoke, EndpointConfig, EndpointError, EndpointResponse, IMAPPasswordConfigStatus } from './types';
|
|
5
5
|
export { marcoSchemas } from './schemas';
|
|
6
6
|
export { marcoWS } from './ws';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAC/I,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { marcoClients } from './clients';
|
|
2
2
|
export { marcoPublicConfig, MARCO_ENV } from './marcoPublicConfig';
|
|
3
3
|
export { marcoSDK } from './sdk';
|
|
4
|
+
export { IMAPPasswordConfigStatus } from './types';
|
|
4
5
|
export { marcoSchemas } from './schemas';
|
|
5
6
|
export { marcoWS } from './ws';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IMAPPasswordConfigStatus.d.ts","sourceRoot":"","sources":["../../src/types/IMAPPasswordConfigStatus.ts"],"names":[],"mappings":"AAAA,oBAAY,wBAAwB;IAClC,mBAAmB,wBAAwB;IAC3C,SAAS,cAAc;IACvB,iBAAiB,sBAAsB;CACxC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var IMAPPasswordConfigStatus;
|
|
2
|
+
(function (IMAPPasswordConfigStatus) {
|
|
3
|
+
IMAPPasswordConfigStatus["AWAITING_CONNECTION"] = "AWAITING_CONNECTION";
|
|
4
|
+
IMAPPasswordConfigStatus["CONNECTED"] = "CONNECTED";
|
|
5
|
+
IMAPPasswordConfigStatus["CONNECTION_FAILED"] = "CONNECTION_FAILED";
|
|
6
|
+
})(IMAPPasswordConfigStatus || (IMAPPasswordConfigStatus = {}));
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,MAAM,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,eAAe,CAAA;AAC7B,cAAc,MAAM,CAAA"}
|
package/dist/types/index.js
CHANGED