runline 0.3.3 → 0.4.0
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/main.js +0 -0
- package/dist/plugins/gmail/src/index.js +13 -13
- package/dist/plugins/googleCalendar/src/index.js +795 -0
- package/dist/plugins/googleContacts/src/index.js +691 -0
- package/dist/plugins/googleDocs/src/index.js +669 -0
- package/dist/plugins/googleDrive/src/index.js +1161 -0
- package/dist/plugins/googleSheets/src/index.js +913 -0
- package/dist/plugins/googleSlides/src/index.js +319 -0
- package/dist/plugins/googleTasks/src/index.js +419 -0
- package/package.json +3 -2
package/dist/main.js
CHANGED
|
File without changes
|
|
@@ -270,7 +270,7 @@ const REPLY_METADATA_HEADERS = [
|
|
|
270
270
|
/**
|
|
271
271
|
* Translate a friendly filter bag into Gmail's list query shape.
|
|
272
272
|
*
|
|
273
|
-
*
|
|
273
|
+
* `sender`, `readStatus`,
|
|
274
274
|
* `receivedAfter`, `receivedBefore` fold into the `q=` search
|
|
275
275
|
* expression (which itself can be combined with an explicit `q`).
|
|
276
276
|
* `labelIds`, `includeSpamTrash`, `pageToken`, `maxResults` pass
|
|
@@ -582,7 +582,7 @@ export default function gmail(rl) {
|
|
|
582
582
|
},
|
|
583
583
|
},
|
|
584
584
|
async execute(input, ctx) {
|
|
585
|
-
const p = input;
|
|
585
|
+
const p = (input ?? {});
|
|
586
586
|
const email = {
|
|
587
587
|
to: normalizeAddressList(p.to),
|
|
588
588
|
cc: normalizeAddressList(p.cc),
|
|
@@ -613,7 +613,7 @@ export default function gmail(rl) {
|
|
|
613
613
|
attachments: { type: "array", required: false },
|
|
614
614
|
},
|
|
615
615
|
async execute(input, ctx) {
|
|
616
|
-
const p = input;
|
|
616
|
+
const p = (input ?? {});
|
|
617
617
|
return replyToMessage(ctx, p.messageId, p);
|
|
618
618
|
},
|
|
619
619
|
});
|
|
@@ -634,7 +634,7 @@ export default function gmail(rl) {
|
|
|
634
634
|
},
|
|
635
635
|
},
|
|
636
636
|
async execute(input, ctx) {
|
|
637
|
-
const p = input;
|
|
637
|
+
const p = (input ?? {});
|
|
638
638
|
const qs = { format: p.format ?? "full" };
|
|
639
639
|
if (p.metadataHeaders)
|
|
640
640
|
qs.metadataHeaders = p.metadataHeaders;
|
|
@@ -672,7 +672,7 @@ export default function gmail(rl) {
|
|
|
672
672
|
},
|
|
673
673
|
},
|
|
674
674
|
async execute(input, ctx) {
|
|
675
|
-
const p = input;
|
|
675
|
+
const p = (input ?? {});
|
|
676
676
|
const qs = buildListQuery(p);
|
|
677
677
|
if (p.returnAll) {
|
|
678
678
|
return paginateAll(ctx, "/messages", "messages", qs);
|
|
@@ -777,7 +777,7 @@ export default function gmail(rl) {
|
|
|
777
777
|
},
|
|
778
778
|
},
|
|
779
779
|
async execute(input, ctx) {
|
|
780
|
-
const p = input;
|
|
780
|
+
const p = (input ?? {});
|
|
781
781
|
const qs = { format: p.format ?? "full" };
|
|
782
782
|
if (p.metadataHeaders)
|
|
783
783
|
qs.metadataHeaders = p.metadataHeaders;
|
|
@@ -803,7 +803,7 @@ export default function gmail(rl) {
|
|
|
803
803
|
returnAll: { type: "boolean", required: false },
|
|
804
804
|
},
|
|
805
805
|
async execute(input, ctx) {
|
|
806
|
-
const p = input;
|
|
806
|
+
const p = (input ?? {});
|
|
807
807
|
const qs = buildListQuery(p);
|
|
808
808
|
if (p.returnAll)
|
|
809
809
|
return paginateAll(ctx, "/threads", "threads", qs);
|
|
@@ -875,7 +875,7 @@ export default function gmail(rl) {
|
|
|
875
875
|
attachments: { type: "array", required: false },
|
|
876
876
|
},
|
|
877
877
|
async execute(input, ctx) {
|
|
878
|
-
const p = input;
|
|
878
|
+
const p = (input ?? {});
|
|
879
879
|
const thread = (await gmailRequest(ctx, "GET", `/threads/${p.id}`, undefined, { format: "minimal" }));
|
|
880
880
|
const last = thread.messages?.[thread.messages.length - 1];
|
|
881
881
|
if (!last?.id) {
|
|
@@ -905,7 +905,7 @@ export default function gmail(rl) {
|
|
|
905
905
|
attachments: { type: "array", required: false },
|
|
906
906
|
},
|
|
907
907
|
async execute(input, ctx) {
|
|
908
|
-
const p = input;
|
|
908
|
+
const p = (input ?? {});
|
|
909
909
|
const from = p.from ?? p.fromAlias;
|
|
910
910
|
const email = {
|
|
911
911
|
to: normalizeAddressList(p.to) ?? "",
|
|
@@ -943,7 +943,7 @@ export default function gmail(rl) {
|
|
|
943
943
|
format: { type: "string", required: false },
|
|
944
944
|
},
|
|
945
945
|
async execute(input, ctx) {
|
|
946
|
-
const p = input;
|
|
946
|
+
const p = (input ?? {});
|
|
947
947
|
const qs = { format: p.format ?? "full" };
|
|
948
948
|
return gmailRequest(ctx, "GET", `/drafts/${p.id}`, undefined, qs);
|
|
949
949
|
},
|
|
@@ -958,7 +958,7 @@ export default function gmail(rl) {
|
|
|
958
958
|
returnAll: { type: "boolean", required: false },
|
|
959
959
|
},
|
|
960
960
|
async execute(input, ctx) {
|
|
961
|
-
const p = input;
|
|
961
|
+
const p = (input ?? {});
|
|
962
962
|
const qs = {};
|
|
963
963
|
if (p.q)
|
|
964
964
|
qs.q = p.q;
|
|
@@ -1006,7 +1006,7 @@ export default function gmail(rl) {
|
|
|
1006
1006
|
},
|
|
1007
1007
|
},
|
|
1008
1008
|
async execute(input, ctx) {
|
|
1009
|
-
const p = input;
|
|
1009
|
+
const p = (input ?? {});
|
|
1010
1010
|
const body = { name: p.name };
|
|
1011
1011
|
if (p.labelListVisibility)
|
|
1012
1012
|
body.labelListVisibility = p.labelListVisibility;
|
|
@@ -1047,7 +1047,7 @@ export default function gmail(rl) {
|
|
|
1047
1047
|
messageListVisibility: { type: "string", required: false },
|
|
1048
1048
|
},
|
|
1049
1049
|
async execute(input, ctx) {
|
|
1050
|
-
const p = input;
|
|
1050
|
+
const p = (input ?? {});
|
|
1051
1051
|
const body = {};
|
|
1052
1052
|
if (p.name)
|
|
1053
1053
|
body.name = p.name;
|