@iflyrpa/actions 2.0.1 → 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.
Files changed (34) hide show
  1. package/dist/actions/baijiahaoPublish/index.d.ts +1 -0
  2. package/dist/actions/common/sessionCheck/index.d.ts +1 -0
  3. package/dist/actions/douyinCreateCommentReply/schema.d.ts +1 -0
  4. package/dist/actions/douyinGetCollection/schema.d.ts +1 -0
  5. package/dist/actions/douyinGetCommentList/schema.d.ts +1 -0
  6. package/dist/actions/douyinGetCommentReplyList/schema.d.ts +1 -0
  7. package/dist/actions/douyinGetHot/schema.d.ts +1 -0
  8. package/dist/actions/douyinGetLocation/schema.d.ts +1 -0
  9. package/dist/actions/douyinGetMusic/schema.d.ts +1 -0
  10. package/dist/actions/douyinGetMusicByCategory/schema.d.ts +1 -0
  11. package/dist/actions/douyinGetMusicCategory/index.d.ts +1 -0
  12. package/dist/actions/douyinGetMusicCategory/schema.d.ts +1 -0
  13. package/dist/actions/douyinGetTopics/schema.d.ts +1 -0
  14. package/dist/actions/douyinGetWorkList/schema.d.ts +1 -0
  15. package/dist/actions/douyinPublish/index.d.ts +1 -0
  16. package/dist/actions/searchAccountInfo/index.d.ts +2 -1
  17. package/dist/actions/searchPublishInfo/index.d.ts +1 -0
  18. package/dist/actions/shipinhaoCheckLinkValidate/schema.d.ts +1 -0
  19. package/dist/actions/shipinhaoGetLocation/schema.d.ts +1 -0
  20. package/dist/actions/shipinhaoPublish/index.d.ts +1 -0
  21. package/dist/actions/shipinhaoPublish/uploader.d.ts +5 -4
  22. package/dist/actions/toutiaoPublish/index.d.ts +1 -0
  23. package/dist/actions/weixinPublish/index.d.ts +1 -0
  24. package/dist/actions/xiaohongshuPublish/index.d.ts +1 -0
  25. package/dist/actions/xiaohongshuWebSearch/index.d.ts +1 -0
  26. package/dist/bundle.js +868 -3047
  27. package/dist/bundle.js.map +1 -1
  28. package/dist/index.js +2416 -4596
  29. package/dist/index.js.map +1 -1
  30. package/dist/index.mjs +2428 -4608
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/types.d.ts +1 -0
  33. package/dist/utils/reportLogger.d.ts +14 -0
  34. 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 = [
@@ -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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iflyrpa/actions",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",