@iflyrpa/actions 2.0.0 → 2.0.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/actions/baijiahaoPublish/index.d.ts +1 -0
- package/dist/actions/common/sessionCheck/index.d.ts +1 -0
- package/dist/actions/douyinCreateCommentReply/schema.d.ts +1 -0
- package/dist/actions/douyinGetCollection/schema.d.ts +1 -0
- package/dist/actions/douyinGetCommentList/schema.d.ts +1 -0
- package/dist/actions/douyinGetCommentReplyList/schema.d.ts +1 -0
- package/dist/actions/douyinGetHot/schema.d.ts +1 -0
- package/dist/actions/douyinGetLocation/schema.d.ts +1 -0
- package/dist/actions/douyinGetMusic/schema.d.ts +1 -0
- package/dist/actions/douyinGetMusicByCategory/schema.d.ts +1 -0
- package/dist/actions/douyinGetMusicCategory/index.d.ts +1 -0
- package/dist/actions/douyinGetMusicCategory/schema.d.ts +1 -0
- package/dist/actions/douyinGetTopics/schema.d.ts +1 -0
- package/dist/actions/douyinGetWorkList/schema.d.ts +1 -0
- package/dist/actions/douyinPublish/index.d.ts +1 -0
- package/dist/actions/searchAccountInfo/index.d.ts +2 -1
- package/dist/actions/searchPublishInfo/index.d.ts +1 -0
- package/dist/actions/shipinhaoCheckLinkValidate/schema.d.ts +1 -0
- package/dist/actions/shipinhaoGetLocation/schema.d.ts +1 -0
- package/dist/actions/shipinhaoPublish/index.d.ts +1 -0
- package/dist/actions/shipinhaoPublish/uploader.d.ts +5 -4
- package/dist/actions/toutiaoPublish/index.d.ts +1 -0
- package/dist/actions/weixinPublish/index.d.ts +1 -0
- package/dist/actions/xiaohongshuPublish/index.d.ts +1 -0
- package/dist/actions/xiaohongshuWebSearch/index.d.ts +1 -0
- package/dist/bundle.js +948 -3096
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +2461 -4610
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2473 -4622
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +2 -1
- package/dist/utils/reportLogger.d.ts +14 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export declare const ActionCommonParamsSchema: z.ZodObject<{
|
|
|
44
44
|
huiwenToken: z.ZodOptional<z.ZodString>;
|
|
45
45
|
articleId: z.ZodOptional<z.ZodString>;
|
|
46
46
|
saveType: z.ZodOptional<z.ZodString>;
|
|
47
|
+
uid: z.ZodOptional<z.ZodString>;
|
|
47
48
|
}, z.core.$strip>;
|
|
48
49
|
export type ActiomCommonParams = z.infer<typeof ActionCommonParamsSchema>;
|
|
49
50
|
export type AxiosProxyParams = [
|
|
@@ -154,4 +155,4 @@ export declare namespace Xiaohongshu {
|
|
|
154
155
|
}
|
|
155
156
|
}
|
|
156
157
|
export declare const errorResponse: (message: string, code?: number) => SearchAccountInfoResponse;
|
|
157
|
-
export declare const MockPublish =
|
|
158
|
+
export declare const MockPublish = false;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 服务端日志记录参数接口
|
|
3
|
+
*/
|
|
4
|
+
export interface ServerLogParams {
|
|
5
|
+
token: string;
|
|
6
|
+
enverionment: "development" | "production";
|
|
7
|
+
[key: string]: unknown;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 调用服务端接口记录日志
|
|
11
|
+
* @param params 请求参数,必须包含 token 字段
|
|
12
|
+
* @returns Promise<void> 不影响主流程,错误会被捕获
|
|
13
|
+
*/
|
|
14
|
+
export declare function reportLogger(params: ServerLogParams): Promise<void>;
|