@marcoappio/marco-config 2.0.456 → 2.0.458

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.
@@ -32,6 +32,27 @@ export declare const endpoints: {
32
32
  readonly status: import("valibot").LiteralSchema<200, undefined>;
33
33
  }, undefined>], undefined>>;
34
34
  };
35
+ emailMessage: {
36
+ getAttachment: EndpointConfig<"/v1/pv/attachment/:attachmentId", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
37
+ readonly data: import("valibot").ObjectSchema<{
38
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
39
+ }, undefined>;
40
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
41
+ }, undefined>, import("valibot").ObjectSchema<{
42
+ readonly data: import("valibot").ObjectSchema<{
43
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
44
+ }, undefined>;
45
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
46
+ }, undefined>, import("valibot").ObjectSchema<{
47
+ readonly data: import("valibot").ObjectSchema<{
48
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
49
+ }, undefined>;
50
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
51
+ }, undefined>, import("valibot").ObjectSchema<{
52
+ readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
53
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
54
+ }, undefined>], undefined>>;
55
+ };
35
56
  user: {
36
57
  deleteUser: EndpointConfig<"/v1/pv/user", GenericSchema | undefined, GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
37
58
  readonly data: import("valibot").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/endpoints/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,KAAK,EAAE,cAAc,EAAe,MAAM,qBAAqB,CAAA;AAWtE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGM,CAAA"}
@@ -29,6 +29,27 @@ export declare const privateGroup: {
29
29
  readonly status: import("valibot").LiteralSchema<200, undefined>;
30
30
  }, undefined>], undefined>>;
31
31
  };
32
+ emailMessage: {
33
+ getAttachment: import("../../..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
34
+ readonly data: import("valibot").ObjectSchema<{
35
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
36
+ }, undefined>;
37
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
38
+ }, undefined>, import("valibot").ObjectSchema<{
39
+ readonly data: import("valibot").ObjectSchema<{
40
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
41
+ }, undefined>;
42
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
43
+ }, undefined>, import("valibot").ObjectSchema<{
44
+ readonly data: import("valibot").ObjectSchema<{
45
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
46
+ }, undefined>;
47
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
48
+ }, undefined>, import("valibot").ObjectSchema<{
49
+ readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
50
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
51
+ }, undefined>], undefined>>;
52
+ };
32
53
  user: {
33
54
  deleteUser: import("../../..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
34
55
  readonly data: import("valibot").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGxB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/sdk/endpoints/private/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIxB,CAAA"}
@@ -1,6 +1,8 @@
1
1
  import { draftAttachment } from './draftAttachment';
2
+ import { emailMessage } from './emailMessage';
2
3
  import { user } from './user';
3
4
  export const privateGroup = {
4
5
  draftAttachment,
6
+ emailMessage,
5
7
  user,
6
8
  };
@@ -31,6 +31,27 @@ export declare const marcoSDK: {
31
31
  readonly status: import("valibot").LiteralSchema<200, undefined>;
32
32
  }, undefined>], undefined>>;
33
33
  };
34
+ emailMessage: {
35
+ getAttachment: import("..").EndpointConfig<"/v1/pv/attachment/:attachmentId", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
36
+ readonly data: import("valibot").ObjectSchema<{
37
+ readonly code: import("valibot").LiteralSchema<"AUTHENTICATION_FAILED", undefined>;
38
+ }, undefined>;
39
+ readonly status: import("valibot").LiteralSchema<401, undefined>;
40
+ }, undefined>, import("valibot").ObjectSchema<{
41
+ readonly data: import("valibot").ObjectSchema<{
42
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_NOT_FOUND", undefined>;
43
+ }, undefined>;
44
+ readonly status: import("valibot").LiteralSchema<404, undefined>;
45
+ }, undefined>, import("valibot").ObjectSchema<{
46
+ readonly data: import("valibot").ObjectSchema<{
47
+ readonly code: import("valibot").LiteralSchema<"ATTACHMENT_STATE_INVALID", undefined>;
48
+ }, undefined>;
49
+ readonly status: import("valibot").LiteralSchema<409, undefined>;
50
+ }, undefined>, import("valibot").ObjectSchema<{
51
+ readonly file: import("valibot").NonOptionalSchema<import("valibot").FileSchema<undefined>, undefined>;
52
+ readonly status: import("valibot").LiteralSchema<200, undefined>;
53
+ }, undefined>], undefined>>;
54
+ };
34
55
  user: {
35
56
  deleteUser: import("..").EndpointConfig<"/v1/pv/user", import("valibot").GenericSchema | undefined, import("valibot").GenericSchema | undefined, import("valibot").UnionSchema<[import("valibot").ObjectSchema<{
36
57
  readonly data: import("valibot").ObjectSchema<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;QACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;QACvB,IAAI,CAAC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDtB,CAAA"}
@@ -35,17 +35,17 @@ export const getThreads = syncedQueryWithContext('getThreads', parseArgs, ({ use
35
35
  }
36
36
  if (where?.labelIds && where.labelIds.length > 0) {
37
37
  for (const labelId of where.labelIds) {
38
- query = query.whereExists('labels', x => x.where('id', labelId), { flip: true });
38
+ query = query.whereExists('labels', x => x.where('id', labelId));
39
39
  }
40
40
  }
41
41
  if (where?.messageIds && where.messageIds.length > 0) {
42
42
  for (const messageId of where.messageIds) {
43
- query = query.whereExists('messages', x => x.where('id', messageId), { flip: true });
43
+ query = query.whereExists('messages', x => x.where('id', messageId));
44
44
  }
45
45
  }
46
46
  if (where?.participants && where.participants.length > 0) {
47
47
  for (const participant of where.participants) {
48
- query = query.whereExists('messages', x => x.whereExists('recipients', y => y.where('emailAddress', participant), { flip: true }), { flip: true });
48
+ query = query.whereExists('messages', x => x.whereExists('recipients', y => y.where('emailAddress', participant)));
49
49
  }
50
50
  }
51
51
  if (search) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.456",
3
+ "version": "2.0.458",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",