@satorijs/adapter-dingtalk 1.0.1 → 2.0.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/lib/api/contact.d.ts +1 -1
- package/lib/index.js +6 -1
- package/lib/index.js.map +2 -2
- package/package.json +2 -2
- package/readme.md +5 -0
package/lib/api/contact.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface GetOrgAuthInfoResponse {
|
|
|
13
13
|
authLevel: number;
|
|
14
14
|
}
|
|
15
15
|
export interface BatchApproveUnionApplyParams {
|
|
16
|
-
/** 申请的合作伙伴组织CorpId,参考[基础概念-CorpId](https://open.dingtalk.com/document/org/basic-concepts)。 */
|
|
16
|
+
/** 申请的合作伙伴组织 CorpId,参考[基础概念-CorpId](https://open.dingtalk.com/document/org/basic-concepts)。 */
|
|
17
17
|
branchCorpId?: string;
|
|
18
18
|
/** 合作伙伴组织在上下游组织内的名称。 */
|
|
19
19
|
unionRootName?: string;
|
package/lib/index.js
CHANGED
|
@@ -211,9 +211,14 @@ var _DingtalkMessageEncoder = class _DingtalkMessageEncoder extends import_sator
|
|
|
211
211
|
await this.render(children);
|
|
212
212
|
} else if (type === "at") {
|
|
213
213
|
this.buffer += `@${attrs.id}`;
|
|
214
|
-
} else if (type === "
|
|
214
|
+
} else if (type === "br") {
|
|
215
215
|
this.buffer += "\n";
|
|
216
|
+
} else if (type === "p") {
|
|
217
|
+
if (!this.buffer.endsWith("\n"))
|
|
218
|
+
this.buffer += "\n";
|
|
216
219
|
await this.render(children);
|
|
220
|
+
if (!this.buffer.endsWith("\n"))
|
|
221
|
+
this.buffer += "\n";
|
|
217
222
|
this.buffer += "\n";
|
|
218
223
|
} else if (type === "b" || type === "strong") {
|
|
219
224
|
this.buffer += ` **`;
|