@iflyrpa/actions 1.2.5 → 1.2.6-beta.1
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/actions/weixinPublish/index.d.ts +21 -1
- package/dist/actions/xiaohongshuPublish/index.d.ts +1 -0
- package/dist/bundle.js +537 -18
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +537 -18
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +537 -18
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import type { CommonAction } from "@iflyrpa/share";
|
|
2
2
|
import type { ActiomCommonParams } from "../../types";
|
|
3
|
+
export interface WxInteraction {
|
|
4
|
+
Type: "public" | "private" | "off";
|
|
5
|
+
Option?: {
|
|
6
|
+
Comment: "已关注7天及以上的用户" | "已关注的用户" | "所有用户";
|
|
7
|
+
reply: "已关注7天及以上的用户" | "已关注的用户" | "所有用户";
|
|
8
|
+
elect_comment: boolean;
|
|
9
|
+
elect_reply: boolean;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
3
12
|
export interface WeixinPublishParams extends ActiomCommonParams {
|
|
4
13
|
saveType: "draft" | "publish";
|
|
5
14
|
masssend?: boolean;
|
|
@@ -14,12 +23,23 @@ export interface WeixinPublishParams extends ActiomCommonParams {
|
|
|
14
23
|
wxAuthor?: string;
|
|
15
24
|
wxAbstract?: string;
|
|
16
25
|
wxOriginalText?: string;
|
|
17
|
-
|
|
26
|
+
wxCopyright?: boolean;
|
|
27
|
+
wxWhitelist?: string[];
|
|
28
|
+
wxRewardTarget?: Record<string, string>;
|
|
29
|
+
wxRewardText?: string;
|
|
18
30
|
wxQuickReprint?: boolean;
|
|
19
31
|
wxNotAllowRecommend?: boolean;
|
|
20
32
|
wxCreationSource?: string[];
|
|
33
|
+
wxInteraction?: WxInteraction;
|
|
21
34
|
};
|
|
22
35
|
safeQrcodeCallback?: (qrcodePath: string) => void;
|
|
23
36
|
}
|
|
37
|
+
export interface WxWhitelistUserInfo {
|
|
38
|
+
nickname: string;
|
|
39
|
+
openid: string;
|
|
40
|
+
username: string;
|
|
41
|
+
wx_name: string;
|
|
42
|
+
pic_url: string;
|
|
43
|
+
}
|
|
24
44
|
export type PublishAction = CommonAction<WeixinPublishParams, string>;
|
|
25
45
|
export declare const weixinPublish: PublishAction;
|
|
@@ -20,6 +20,7 @@ export interface XiaohongshuPublishParams extends ActiomCommonParams {
|
|
|
20
20
|
content: string;
|
|
21
21
|
address?: Xiaohongshu.Location;
|
|
22
22
|
selfDeclaration?: SelfDeclaration;
|
|
23
|
+
topic?: string[];
|
|
23
24
|
visibleRange: "public" | "private";
|
|
24
25
|
isImmediatelyPublish?: boolean;
|
|
25
26
|
scheduledPublish?: string;
|