@opentabs-dev/opentabs-plugin-outlook 0.0.81 → 0.1.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/adapter.iife.js +14 -12
- package/dist/adapter.iife.js.map +3 -3
- package/dist/outlook-api.d.ts +2 -0
- package/dist/outlook-api.d.ts.map +1 -1
- package/dist/outlook-api.js +7 -0
- package/dist/outlook-api.js.map +1 -1
- package/dist/tools/get-attachment-content.d.ts.map +1 -1
- package/dist/tools/get-attachment-content.js +2 -13
- package/dist/tools/get-attachment-content.js.map +1 -1
- package/dist/tools/list-messages.d.ts.map +1 -1
- package/dist/tools/list-messages.js +0 -1
- package/dist/tools/list-messages.js.map +1 -1
- package/dist/tools/reply-to-message.d.ts.map +1 -1
- package/dist/tools/reply-to-message.js +11 -7
- package/dist/tools/reply-to-message.js.map +1 -1
- package/package.json +2 -2
package/dist/adapter.iife.js
CHANGED
|
@@ -14426,12 +14426,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14426
14426
|
const contentType = data.contentType ?? "application/octet-stream";
|
|
14427
14427
|
const size = data.size ?? 0;
|
|
14428
14428
|
const contentBytes = data.contentBytes ?? "";
|
|
14429
|
-
const isText = contentType.startsWith("text/") || contentType
|
|
14429
|
+
const isText = contentType.startsWith("text/") || contentType === "application/json" || contentType === "application/xml" || contentType === "application/csv" || name.endsWith(".csv") || name.endsWith(".json") || name.endsWith(".xml") || name.endsWith(".txt") || name.endsWith(".md") || name.endsWith(".html") || name.endsWith(".htm");
|
|
14430
14430
|
let content;
|
|
14431
14431
|
let encoding;
|
|
14432
14432
|
if (isText && contentBytes) {
|
|
14433
|
-
|
|
14434
|
-
content = new TextDecoder().decode(bytes);
|
|
14433
|
+
content = atob(contentBytes);
|
|
14435
14434
|
encoding = "text";
|
|
14436
14435
|
} else {
|
|
14437
14436
|
content = contentBytes;
|
|
@@ -14655,8 +14654,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14655
14654
|
$skip: params.skip,
|
|
14656
14655
|
$filter: params.filter,
|
|
14657
14656
|
$count: true
|
|
14658
|
-
}
|
|
14659
|
-
headers: { ConsistencyLevel: "eventual" }
|
|
14657
|
+
}
|
|
14660
14658
|
});
|
|
14661
14659
|
return {
|
|
14662
14660
|
messages: (data.value ?? []).map(mapMessageSummary),
|
|
@@ -14710,11 +14708,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14710
14708
|
const action = params.reply_all ? "replyAll" : "reply";
|
|
14711
14709
|
await api(`/me/messages/${params.message_id}/${action}`, {
|
|
14712
14710
|
method: "POST",
|
|
14713
|
-
body:
|
|
14714
|
-
|
|
14715
|
-
|
|
14716
|
-
|
|
14717
|
-
|
|
14711
|
+
body: {
|
|
14712
|
+
comment: params.body,
|
|
14713
|
+
// Graph API reply uses 'comment' for plain text; for HTML we need message body
|
|
14714
|
+
...params.body_type === "html" ? {
|
|
14715
|
+
message: {
|
|
14716
|
+
body: { contentType: "HTML", content: params.body }
|
|
14717
|
+
}
|
|
14718
|
+
} : {}
|
|
14719
|
+
}
|
|
14718
14720
|
});
|
|
14719
14721
|
return { success: true };
|
|
14720
14722
|
}
|
|
@@ -14861,7 +14863,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
14861
14863
|
};
|
|
14862
14864
|
var src_default = new OutlookPlugin();
|
|
14863
14865
|
|
|
14864
|
-
// dist/
|
|
14866
|
+
// dist/_adapter_entry_21e2a872-53d6-4ebd-a862-0d91c936fc28.ts
|
|
14865
14867
|
if (!globalThis.__openTabs) {
|
|
14866
14868
|
globalThis.__openTabs = {};
|
|
14867
14869
|
} else {
|
|
@@ -15077,5 +15079,5 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15077
15079
|
};
|
|
15078
15080
|
delete src_default.onDeactivate;
|
|
15079
15081
|
}
|
|
15080
|
-
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["outlook"]){var a=o.adapters["outlook"];a.__adapterHash="
|
|
15082
|
+
})();(function(){var o=(globalThis).__openTabs;if(o&&o.adapters&&o.adapters["outlook"]){var a=o.adapters["outlook"];a.__adapterHash="a3d64b82937443f7e151127079ebaf6e3a24908e58b7992aa5de21dca61f87ae";if(a.tools&&Array.isArray(a.tools)){for(var i=0;i<a.tools.length;i++){Object.freeze(a.tools[i]);}Object.freeze(a.tools);}Object.freeze(a);Object.defineProperty(o.adapters,"outlook",{value:a,writable:false,configurable:false,enumerable:true});Object.defineProperty(o,"adapters",{value:o.adapters,writable:false,configurable:false});}})();
|
|
15081
15083
|
//# sourceMappingURL=adapter.iife.js.map
|