@corsair-dev/gmail 0.1.0 → 0.1.2
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/api.test.d.ts +2 -0
- package/dist/api.test.d.ts.map +1 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/endpoints/drafts.d.ts +1 -1
- package/dist/endpoints/drafts.d.ts.map +1 -1
- package/dist/endpoints/index.d.ts +3 -3
- package/dist/endpoints/labels.d.ts +1 -1
- package/dist/endpoints/labels.d.ts.map +1 -1
- package/dist/endpoints/messages.d.ts +1 -1
- package/dist/endpoints/messages.d.ts.map +1 -1
- package/dist/endpoints/threads.d.ts +1 -1
- package/dist/endpoints/threads.d.ts.map +1 -1
- package/dist/endpoints/types.d.ts +222 -1388
- package/dist/endpoints/types.d.ts.map +1 -1
- package/dist/index.d.ts +224 -1337
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/integration.test.d.ts +2 -0
- package/dist/integration.test.d.ts.map +1 -0
- package/dist/schema/database.d.ts +23 -83
- package/dist/schema/database.d.ts.map +1 -1
- package/dist/schema/index.d.ts +24 -94
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/webhooks/index.d.ts +12 -12
- package/dist/webhooks/messages.d.ts +1 -1
- package/dist/webhooks/messages.d.ts.map +1 -1
- package/dist/webhooks/types.d.ts +22 -134
- package/dist/webhooks/types.d.ts.map +1 -1
- package/package.json +15 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.test.d.ts","sourceRoot":"","sources":["../api.test.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC"}
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../client.ts"],"names":[],"mappings":"AAGA,qBAAa,aAAc,S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GAAE,mBAAwB,GAC/B,OAAO,CAAC,CAAC,CAAC,CAUZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drafts.d.ts","sourceRoot":"","sources":["../../endpoints/drafts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"drafts.d.ts","sourceRoot":"","sources":["../../endpoints/drafts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAuB,cAAc,EAAE,MAAM,UAAU,CAAC;AAGpE,eAAO,MAAM,IAAI,EAAE,cAAc,CAAC,YAAY,CAoC7C,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,cAAc,CAAC,WAAW,CAyB3C,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,cAAc,CAoBjD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,cAAc,CAoBjD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,cAAc,CA0BtD,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,cAAc,CAAC,YAAY,CAkB7C,CAAC"}
|
|
@@ -30,9 +30,9 @@ export declare const MessagesEndpoints: {
|
|
|
30
30
|
}) => Promise<import("..").Message>;
|
|
31
31
|
batchModify: (ctx: import("..").GmailContext, args: {
|
|
32
32
|
userId?: string | undefined;
|
|
33
|
+
ids?: string[] | undefined;
|
|
33
34
|
addLabelIds?: string[] | undefined;
|
|
34
35
|
removeLabelIds?: string[] | undefined;
|
|
35
|
-
ids?: string[] | undefined;
|
|
36
36
|
}) => Promise<void>;
|
|
37
37
|
trash: (ctx: import("..").GmailContext, args: {
|
|
38
38
|
id: string;
|
|
@@ -84,9 +84,9 @@ export declare const LabelsEndpoints: {
|
|
|
84
84
|
export declare const DraftsEndpoints: {
|
|
85
85
|
list: (ctx: import("..").GmailContext, args: {
|
|
86
86
|
userId?: string | undefined;
|
|
87
|
-
q?: string | undefined;
|
|
88
87
|
maxResults?: number | undefined;
|
|
89
88
|
pageToken?: string | undefined;
|
|
89
|
+
q?: string | undefined;
|
|
90
90
|
}) => Promise<import("..").DraftListResponse>;
|
|
91
91
|
get: (ctx: import("..").GmailContext, args: {
|
|
92
92
|
id: string;
|
|
@@ -117,12 +117,12 @@ export declare const DraftsEndpoints: {
|
|
|
117
117
|
userId?: string | undefined;
|
|
118
118
|
}) => Promise<void>;
|
|
119
119
|
send: (ctx: import("..").GmailContext, args: {
|
|
120
|
+
userId?: string | undefined;
|
|
120
121
|
id?: string | undefined;
|
|
121
122
|
message?: {
|
|
122
123
|
raw?: string | undefined;
|
|
123
124
|
threadId?: string | undefined;
|
|
124
125
|
} | undefined;
|
|
125
|
-
userId?: string | undefined;
|
|
126
126
|
}) => Promise<import("..").Message>;
|
|
127
127
|
};
|
|
128
128
|
export declare const ThreadsEndpoints: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../endpoints/labels.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../endpoints/labels.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAuB,cAAc,EAAE,MAAM,UAAU,CAAC;AAGpE,eAAO,MAAM,IAAI,EAAE,cAAc,CAAC,YAAY,CA8B7C,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,cAAc,CAAC,WAAW,CA4B3C,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,cAAc,CAoBjD,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,cAAc,CAoBjD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,cAAc,CA0BtD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GmailEndpoints } from '
|
|
1
|
+
import type { GmailEndpoints } from '../index';
|
|
2
2
|
export declare const list: GmailEndpoints['messagesList'];
|
|
3
3
|
export declare const get: GmailEndpoints['messagesGet'];
|
|
4
4
|
export declare const send: GmailEndpoints['messagesSend'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../endpoints/messages.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../endpoints/messages.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAuB,cAAc,EAAE,MAAM,UAAU,CAAC;AAgFpE,eAAO,MAAM,IAAI,EAAE,cAAc,CAAC,cAAc,CAqC/C,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,cAAc,CAAC,aAAa,CAsC7C,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,cAAc,CAAC,cAAc,CAuB/C,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,cAAc,CAAC,gBAAgB,CA0B1D,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,gBAAgB,CAiCnD,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,cAAc,CAAC,qBAAqB,CAiC7D,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,cAAc,CAAC,eAAe,CAmBjD,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,cAAc,CAAC,iBAAiB,CAsBrD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GmailEndpoints } from '
|
|
1
|
+
import type { GmailEndpoints } from '../index';
|
|
2
2
|
export declare const list: GmailEndpoints['threadsList'];
|
|
3
3
|
export declare const get: GmailEndpoints['threadsGet'];
|
|
4
4
|
export declare const modify: GmailEndpoints['threadsModify'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threads.d.ts","sourceRoot":"","sources":["../../endpoints/threads.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"threads.d.ts","sourceRoot":"","sources":["../../endpoints/threads.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAuB,cAAc,EAAE,MAAM,UAAU,CAAC;AAGpE,eAAO,MAAM,IAAI,EAAE,cAAc,CAAC,aAAa,CAqC9C,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,cAAc,CAAC,YAAY,CA8B5C,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,cAAc,CAAC,eAAe,CAiClD,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,cAAc,CAAC,eAAe,CA0BxD,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,cAAc,CAAC,cAAc,CAmBhD,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,cAAc,CAAC,gBAAgB,CAmBpD,CAAC"}
|