@marcoappio/marco-config 2.0.114 → 2.0.115

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.
@@ -11,7 +11,6 @@ export declare const account: {
11
11
  readonly status: v.EnumSchema<typeof IMAPPasswordConfigStatus, undefined>;
12
12
  }, undefined>, undefined>;
13
13
  readonly labels: v.ArraySchema<v.ObjectSchema<{
14
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
15
14
  readonly name: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
16
15
  readonly path: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
17
16
  }, undefined>, undefined>;
@@ -1 +1 @@
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCG,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCG,CAAA"}
@@ -13,7 +13,6 @@ export const account = {
13
13
  id: marcoSchemas.string.required(),
14
14
  imapPasswordConfig: v.nullable(imapPasswordConfig),
15
15
  labels: v.array(v.object({
16
- id: marcoSchemas.string.required(),
17
16
  name: marcoSchemas.string.required(),
18
17
  path: marcoSchemas.string.required(),
19
18
  })),
@@ -3,7 +3,6 @@ export declare const contact: {
3
3
  model: v.ObjectSchema<{
4
4
  readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
5
5
  readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
6
- readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
7
6
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
8
7
  }, undefined>;
9
8
  mutators: {};
@@ -1 +1 @@
1
- {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../src/clients/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYG,CAAA"}
1
+ {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../../src/clients/contact.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAK5B,eAAO,MAAM,OAAO;;;;;;;;;;;CAWG,CAAA"}
@@ -4,7 +4,6 @@ export const contact = {
4
4
  model: v.object({
5
5
  emailAccountId: marcoSchemas.string.required(),
6
6
  emailAddress: marcoSchemas.string.email(),
7
- id: marcoSchemas.string.required(),
8
7
  name: marcoSchemas.string.nullable(),
9
8
  }),
10
9
  mutators: {},
@@ -10,7 +10,6 @@ export declare const marcoClients: {
10
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
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
14
13
  readonly name: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
15
14
  readonly path: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
16
15
  }, undefined>, undefined>;
@@ -42,7 +41,6 @@ export declare const marcoClients: {
42
41
  model: import("valibot").ObjectSchema<{
43
42
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
44
43
  readonly emailAddress: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
45
- readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
46
44
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
47
45
  }, undefined>;
48
46
  mutators: {};
@@ -56,33 +54,18 @@ export declare const marcoClients: {
56
54
  readonly emailAccountId: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
57
55
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
58
56
  readonly messages: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
59
- readonly bcc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
60
- readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
61
- readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
62
- }, undefined>, undefined>;
63
- readonly cc: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
57
+ readonly contacts: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
58
+ readonly associationType: import("valibot").EnumSchema<typeof import("../types").ContactAssociationType, undefined>;
64
59
  readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
65
60
  readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
66
61
  }, undefined>, undefined>;
67
62
  readonly envelopeDate: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 0, undefined>]>, undefined>;
68
63
  readonly envelopeSubject: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
69
64
  readonly flagged: import("valibot").BooleanSchema<undefined>;
70
- readonly from: import("valibot").ObjectSchema<{
71
- readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
72
- readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
73
- }, undefined>;
74
65
  readonly id: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
75
66
  readonly labelIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
76
67
  readonly previewText: import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
77
- readonly replyTo: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
78
- readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
79
- readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
80
- }, undefined>, undefined>;
81
68
  readonly seen: import("valibot").BooleanSchema<undefined>;
82
- readonly to: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
83
- readonly emailAddresses: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").EmailAction<string, undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
84
- readonly name: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<[import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 255, undefined>]>, undefined>;
85
- }, undefined>, undefined>;
86
69
  }, undefined>, undefined>;
87
70
  }, undefined>;
88
71
  mutators: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/clients/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIc,CAAA"}
@@ -1,36 +1,22 @@
1
1
  import * as v from 'valibot';
2
+ import { ContactAssociationType } from '../types';
2
3
  export declare const thread: {
3
4
  model: v.ObjectSchema<{
4
5
  readonly emailAccountId: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
5
6
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
6
7
  readonly messages: v.ArraySchema<v.ObjectSchema<{
7
- readonly bcc: v.ArraySchema<v.ObjectSchema<{
8
- readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
9
- readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
10
- }, undefined>, undefined>;
11
- readonly cc: v.ArraySchema<v.ObjectSchema<{
8
+ readonly contacts: v.ArraySchema<v.ObjectSchema<{
9
+ readonly associationType: v.EnumSchema<typeof ContactAssociationType, undefined>;
12
10
  readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
13
11
  readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
14
12
  }, undefined>, undefined>;
15
13
  readonly envelopeDate: v.NonOptionalSchema<v.SchemaWithPipe<[v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
16
14
  readonly envelopeSubject: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
17
15
  readonly flagged: v.BooleanSchema<undefined>;
18
- readonly from: v.ObjectSchema<{
19
- readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
20
- readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
21
- }, undefined>;
22
16
  readonly id: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
23
17
  readonly labelIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
24
18
  readonly previewText: v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
25
- readonly replyTo: v.ArraySchema<v.ObjectSchema<{
26
- readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
27
- readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
28
- }, undefined>, undefined>;
29
19
  readonly seen: v.BooleanSchema<undefined>;
30
- readonly to: v.ArraySchema<v.ObjectSchema<{
31
- readonly emailAddresses: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.EmailAction<string, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
32
- readonly name: v.NullableSchema<v.SchemaWithPipe<[v.StringSchema<undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
33
- }, undefined>, undefined>;
34
20
  }, undefined>, undefined>;
35
21
  }, undefined>;
36
22
  mutators: {
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/clients/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCI,CAAA"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/clients/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAG5B,OAAO,EAAE,sBAAsB,EAAe,MAAM,qBAAqB,CAAA;AAQzE,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmCI,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import * as v from 'valibot';
2
2
  import { marcoSchemas } from '../schemas';
3
+ import { ContactAssociationType } from '../types';
3
4
  const inlineContact = v.object({
5
+ associationType: v.enum(ContactAssociationType),
4
6
  emailAddresses: v.array(marcoSchemas.string.email()),
5
7
  name: marcoSchemas.string.nullable(),
6
8
  });
@@ -9,18 +11,14 @@ export const thread = {
9
11
  emailAccountId: marcoSchemas.string.required(),
10
12
  id: marcoSchemas.string.required(),
11
13
  messages: v.array(v.object({
12
- bcc: v.array(inlineContact),
13
- cc: v.array(inlineContact),
14
+ contacts: v.array(inlineContact),
14
15
  envelopeDate: marcoSchemas.number.positiveInteger(),
15
16
  envelopeSubject: marcoSchemas.string.required(),
16
17
  flagged: v.boolean(),
17
- from: inlineContact,
18
18
  id: marcoSchemas.string.required(),
19
19
  labelIds: v.array(marcoSchemas.string.required()),
20
20
  previewText: marcoSchemas.string.required(),
21
- replyTo: v.array(inlineContact),
22
21
  seen: v.boolean(),
23
- to: v.array(inlineContact),
24
22
  })),
25
23
  }),
26
24
  mutators: {
@@ -3,4 +3,11 @@ export declare enum IMAPPasswordConfigStatus {
3
3
  CONNECTED = "CONNECTED",
4
4
  CONNECTION_FAILED = "CONNECTION_FAILED"
5
5
  }
6
+ export declare enum ContactAssociationType {
7
+ BCC = "BCC",
8
+ CC = "CC",
9
+ FROM = "FROM",
10
+ REPLY_TO = "REPLY_TO",
11
+ TO = "TO"
12
+ }
6
13
  //# sourceMappingURL=IMAPPasswordConfigStatus.d.ts.map
@@ -1 +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"}
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;AAED,oBAAY,sBAAsB;IAChC,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,EAAE,OAAO;CACV"}
@@ -4,3 +4,11 @@ export var IMAPPasswordConfigStatus;
4
4
  IMAPPasswordConfigStatus["CONNECTED"] = "CONNECTED";
5
5
  IMAPPasswordConfigStatus["CONNECTION_FAILED"] = "CONNECTION_FAILED";
6
6
  })(IMAPPasswordConfigStatus || (IMAPPasswordConfigStatus = {}));
7
+ export var ContactAssociationType;
8
+ (function (ContactAssociationType) {
9
+ ContactAssociationType["BCC"] = "BCC";
10
+ ContactAssociationType["CC"] = "CC";
11
+ ContactAssociationType["FROM"] = "FROM";
12
+ ContactAssociationType["REPLY_TO"] = "REPLY_TO";
13
+ ContactAssociationType["TO"] = "TO";
14
+ })(ContactAssociationType || (ContactAssociationType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.114",
3
+ "version": "2.0.115",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",