@iflyrpa/actions 1.2.30-beta.4 → 1.2.30-beta.5

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.
@@ -41,89 +41,9 @@ export declare const BaijiahaoPublishParamsSchema: z.ZodObject<{
41
41
  baijiahaoMultCover: z.ZodArray<z.ZodString>;
42
42
  baijiahaoVerticalCover: z.ZodOptional<z.ZodString>;
43
43
  baijiahaoActivity: z.ZodArray<z.ZodObject<{
44
- keyType: z.ZodString;
45
- valueType: z.ZodAny;
46
- def: z.core.$ZodRecordDef<z.ZodString, z.ZodAny>;
47
- type: "record";
48
- _def: z.core.$ZodRecordDef<z.ZodString, z.ZodAny>;
49
- _output: Record<string, any>;
50
- _input: Record<string, any>;
51
- check: (...checks: (z.core.CheckFn<Record<string, any>> | z.core.$ZodCheck<Record<string, any>>)[]) => z.ZodRecord<z.ZodString, z.ZodAny>;
52
- clone: (def?: z.core.$ZodRecordDef<z.ZodString, z.ZodAny> | undefined, params?: {
53
- parent: boolean;
54
- } | undefined) => z.ZodRecord<z.ZodString, z.ZodAny>;
55
- register: <R extends z.core.$ZodRegistry>(registry: R, ...meta: z.ZodRecord<z.ZodString, z.ZodAny> extends infer T ? T extends z.ZodRecord<z.ZodString, z.ZodAny> ? T extends R["_schema"] ? undefined extends R["_meta"] ? [(z.core.$replace<R["_meta"], R["_schema"] & z.ZodRecord<z.ZodString, z.ZodAny>> | undefined)?] : [z.core.$replace<R["_meta"], R["_schema"] & z.ZodRecord<z.ZodString, z.ZodAny>>] : ["Incompatible schema"] : never : never) => z.ZodRecord<z.ZodString, z.ZodAny>;
56
- brand: <T extends PropertyKey = PropertyKey>(value?: T | undefined) => PropertyKey extends T ? z.ZodRecord<z.ZodString, z.ZodAny> : z.core.$ZodBranded<z.ZodRecord<z.ZodString, z.ZodAny>, T>;
57
- parse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Record<string, any>;
58
- safeParse: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<Record<string, any>>;
59
- parseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<Record<string, any>>;
60
- safeParseAsync: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<Record<string, any>>>;
61
- spa: (data: unknown, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<Record<string, any>>>;
62
- encode: (data: Record<string, any>, params?: z.core.ParseContext<z.core.$ZodIssue>) => Record<string, any>;
63
- decode: (data: Record<string, any>, params?: z.core.ParseContext<z.core.$ZodIssue>) => Record<string, any>;
64
- encodeAsync: (data: Record<string, any>, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<Record<string, any>>;
65
- decodeAsync: (data: Record<string, any>, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<Record<string, any>>;
66
- safeEncode: (data: Record<string, any>, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<Record<string, any>>;
67
- safeDecode: (data: Record<string, any>, params?: z.core.ParseContext<z.core.$ZodIssue>) => z.ZodSafeParseResult<Record<string, any>>;
68
- safeEncodeAsync: (data: Record<string, any>, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<Record<string, any>>>;
69
- safeDecodeAsync: (data: Record<string, any>, params?: z.core.ParseContext<z.core.$ZodIssue>) => Promise<z.ZodSafeParseResult<Record<string, any>>>;
70
- refine: (check: (arg: Record<string, any>) => unknown | Promise<unknown>, params?: string | {
71
- params?: Record<string, any> | undefined;
72
- path?: PropertyKey[] | undefined | undefined;
73
- abort?: boolean | undefined | undefined;
74
- when?: ((payload: z.core.ParsePayload) => boolean) | undefined | undefined;
75
- error?: string | z.core.$ZodErrorMap<NonNullable<z.core.$ZodIssue>> | undefined;
76
- message?: string | undefined | undefined;
77
- } | undefined) => z.ZodRecord<z.ZodString, z.ZodAny>;
78
- superRefine: (refinement: (arg: Record<string, any>, ctx: z.core.$RefinementCtx<Record<string, any>>) => void | Promise<void>) => z.ZodRecord<z.ZodString, z.ZodAny>;
79
- overwrite: (fn: (x: Record<string, any>) => Record<string, any>) => z.ZodRecord<z.ZodString, z.ZodAny>;
80
- optional: () => z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
81
- nonoptional: (params?: string | z.core.$ZodNonOptionalParams) => z.ZodNonOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
82
- nullable: () => z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
83
- nullish: () => z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
84
- default: {
85
- (def: Record<string, any>): z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
86
- (def: () => Record<string, any>): z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
87
- };
88
- prefault: {
89
- (def: () => Record<string, any>): z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
90
- (def: Record<string, any>): z.ZodPrefault<z.ZodRecord<z.ZodString, z.ZodAny>>;
91
- };
92
- array: () => z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>;
93
- or: <T extends z.core.SomeType>(option: T) => z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, T]>;
94
- and: <T extends z.core.SomeType>(incoming: T) => z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, T>;
95
- transform: <NewOut>(transform: (arg: Record<string, any>, ctx: z.core.$RefinementCtx<Record<string, any>>) => NewOut | Promise<NewOut>) => z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodTransform<Awaited<NewOut>, Record<string, any>>>;
96
- catch: {
97
- (def: Record<string, any>): z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodAny>>;
98
- (def: (ctx: z.core.$ZodCatchCtx) => Record<string, any>): z.ZodCatch<z.ZodRecord<z.ZodString, z.ZodAny>>;
99
- };
100
- pipe: <T extends z.core.$ZodType<any, Record<string, any>, z.core.$ZodTypeInternals<any, Record<string, any>>>>(target: T | z.core.$ZodType<any, Record<string, any>, z.core.$ZodTypeInternals<any, Record<string, any>>>) => z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodAny>, T>;
101
- readonly: () => z.ZodReadonly<z.ZodRecord<z.ZodString, z.ZodAny>>;
102
- describe: (description: string) => z.ZodRecord<z.ZodString, z.ZodAny>;
103
- description?: string | undefined;
104
- meta: {
105
- (): {
106
- [x: string]: unknown;
107
- id?: string | undefined | undefined;
108
- title?: string | undefined | undefined;
109
- description?: string | undefined | undefined;
110
- deprecated?: boolean | undefined | undefined;
111
- } | undefined;
112
- (data: {
113
- [x: string]: unknown;
114
- id?: string | undefined | undefined;
115
- title?: string | undefined | undefined;
116
- description?: string | undefined | undefined;
117
- deprecated?: boolean | undefined | undefined;
118
- }): z.ZodRecord<z.ZodString, z.ZodAny>;
119
- };
120
- isOptional: () => boolean;
121
- isNullable: () => boolean;
122
- _zod: z.core.$ZodRecordInternals<z.ZodString, z.ZodAny>;
123
- "~standard": z.core.$ZodStandardSchema<z.ZodRecord<z.ZodString, z.ZodAny>>;
124
44
  id: z.ZodString;
125
45
  task_name: z.ZodString;
126
- }, z.core.$strip>>;
46
+ }, z.core.$catchall<z.ZodAny>>>;
127
47
  baijiahaoPublishConf: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
48
  confName: z.ZodString;
129
49
  isChecked: z.ZodBoolean;
@@ -46,4 +46,3 @@ export interface SearchAccountInfoResponse {
46
46
  message: string;
47
47
  data: ttConfigData | xhsConfigData | wxConfigData | bjhConfigData | null;
48
48
  }
49
- export declare const errorResponse: (message: string, code?: number) => SearchAccountInfoResponse;
package/dist/bundle.js CHANGED
@@ -27158,6 +27158,11 @@ var __webpack_exports__ = {};
27158
27158
  ExecutionState["FAILED"] = "FAILED";
27159
27159
  return ExecutionState;
27160
27160
  }({});
27161
+ const types_errorResponse = (message, code = 500)=>({
27162
+ code,
27163
+ message,
27164
+ data: null
27165
+ });
27161
27166
  const rpa_server_scanRetryMaxCount = 60;
27162
27167
  const rpa_server_waitQrcodeResultMaxTime = 2000 * rpa_server_scanRetryMaxCount;
27163
27168
  const rpaServer = async (task, _params)=>{
@@ -27871,9 +27876,8 @@ var __webpack_exports__ = {};
27871
27876
  baijiahaoVerticalCover: classic_schemas_string().optional(),
27872
27877
  baijiahaoActivity: classic_schemas_array(classic_schemas_object({
27873
27878
  id: classic_schemas_string(),
27874
- task_name: classic_schemas_string(),
27875
- ...record(classic_schemas_string(), any())
27876
- })),
27879
+ task_name: classic_schemas_string()
27880
+ }).catchall(any())),
27877
27881
  baijiahaoPublishConf: classic_schemas_array(classic_schemas_object({
27878
27882
  confName: classic_schemas_string(),
27879
27883
  isChecked: classic_schemas_boolean()
@@ -29564,49 +29568,6 @@ var __webpack_exports__ = {};
29564
29568
  const message = `获取未读消息数${isSuccess ? "成功" : `失败,原因:${res.msg}`}${_task.debug ? ` ${http.proxyInfo}` : ""}`;
29565
29569
  return success(unreadCount, message);
29566
29570
  };
29567
- const ttConfigDataSchema = classic_schemas_object({
29568
- fansNum: classic_schemas_number(),
29569
- fansNumYesterday: classic_schemas_number().nullable(),
29570
- readNum: classic_schemas_number(),
29571
- incomeNum: classic_schemas_number(),
29572
- incomeNumYesterday: classic_schemas_number().nullable(),
29573
- showNumYesterday: classic_schemas_number().nullable(),
29574
- readNumYesterday: classic_schemas_number().nullable(),
29575
- likeNumYesterday: classic_schemas_number().nullable(),
29576
- commentNumYesterday: classic_schemas_number().nullable()
29577
- });
29578
- const xhsConfigDataSchema = classic_schemas_object({
29579
- fansNum: classic_schemas_number(),
29580
- favedNum: classic_schemas_number(),
29581
- watchNumLastWeek: classic_schemas_number(),
29582
- likeNumLastWeek: classic_schemas_number(),
29583
- collectNumLastWeek: classic_schemas_number(),
29584
- commentNumLastWeek: classic_schemas_number(),
29585
- fansNumLastWeek: classic_schemas_number(),
29586
- fansNumYesterday: classic_schemas_number()
29587
- });
29588
- const wxConfigDataSchema = classic_schemas_object({
29589
- fansNum: classic_schemas_number(),
29590
- fansNumYesterday: classic_schemas_number(),
29591
- readNumYesterday: classic_schemas_number(),
29592
- shareNumYesterday: classic_schemas_number()
29593
- });
29594
- const bjhConfigDataSchema = classic_schemas_object({
29595
- fansNum: classic_schemas_number(),
29596
- fansNumYesterday: classic_schemas_number().nullable(),
29597
- readNum: classic_schemas_number(),
29598
- incomeNum: classic_schemas_number(),
29599
- incomeNumYesterday: classic_schemas_number().nullable(),
29600
- recommendNumYesterday: classic_schemas_number().nullable(),
29601
- readNumYesterday: classic_schemas_number().nullable(),
29602
- likeNumYesterday: classic_schemas_number().nullable(),
29603
- commentNumYesterday: classic_schemas_number().nullable()
29604
- });
29605
- const types_errorResponse = (message, code = 500)=>({
29606
- code,
29607
- message,
29608
- data: null
29609
- });
29610
29571
  async function getBaijiahaoData(_task, params) {
29611
29572
  const { token } = params;
29612
29573
  if (!token) return types_errorResponse("缺少token", 414);
@@ -34404,7 +34365,8 @@ var __webpack_exports__ = {};
34404
34365
  retryDelay: 20,
34405
34366
  timeout: 3000
34406
34367
  });
34407
- Object.assign(topic, createTopic.data.topic_infos[0]);
34368
+ if (!createTopic?.data) throw types_errorResponse("话题创建失败,请检查话题字段!", 414);
34369
+ Object.assign(topic, createTopic?.data?.topic_infos[0]);
34408
34370
  }
34409
34371
  }));
34410
34372
  const visibleRangeMap = {
@@ -36090,7 +36052,45 @@ var __webpack_exports__ = {};
36090
36052
  const data = isSuccess ? res.data : {};
36091
36053
  return utils_response(isSuccess ? 0 : 414, message, data);
36092
36054
  };
36093
- var package_namespaceObject = JSON.parse('{"i8":"1.2.30-beta.3"}');
36055
+ var package_namespaceObject = JSON.parse('{"i8":"1.2.30-beta.4"}');
36056
+ const ttConfigDataSchema = classic_schemas_object({
36057
+ fansNum: classic_schemas_number(),
36058
+ fansNumYesterday: classic_schemas_number().nullable(),
36059
+ readNum: classic_schemas_number(),
36060
+ incomeNum: classic_schemas_number(),
36061
+ incomeNumYesterday: classic_schemas_number().nullable(),
36062
+ showNumYesterday: classic_schemas_number().nullable(),
36063
+ readNumYesterday: classic_schemas_number().nullable(),
36064
+ likeNumYesterday: classic_schemas_number().nullable(),
36065
+ commentNumYesterday: classic_schemas_number().nullable()
36066
+ });
36067
+ const xhsConfigDataSchema = classic_schemas_object({
36068
+ fansNum: classic_schemas_number(),
36069
+ favedNum: classic_schemas_number(),
36070
+ watchNumLastWeek: classic_schemas_number(),
36071
+ likeNumLastWeek: classic_schemas_number(),
36072
+ collectNumLastWeek: classic_schemas_number(),
36073
+ commentNumLastWeek: classic_schemas_number(),
36074
+ fansNumLastWeek: classic_schemas_number(),
36075
+ fansNumYesterday: classic_schemas_number()
36076
+ });
36077
+ const wxConfigDataSchema = classic_schemas_object({
36078
+ fansNum: classic_schemas_number(),
36079
+ fansNumYesterday: classic_schemas_number(),
36080
+ readNumYesterday: classic_schemas_number(),
36081
+ shareNumYesterday: classic_schemas_number()
36082
+ });
36083
+ const bjhConfigDataSchema = classic_schemas_object({
36084
+ fansNum: classic_schemas_number(),
36085
+ fansNumYesterday: classic_schemas_number().nullable(),
36086
+ readNum: classic_schemas_number(),
36087
+ incomeNum: classic_schemas_number(),
36088
+ incomeNumYesterday: classic_schemas_number().nullable(),
36089
+ recommendNumYesterday: classic_schemas_number().nullable(),
36090
+ readNumYesterday: classic_schemas_number().nullable(),
36091
+ likeNumYesterday: classic_schemas_number().nullable(),
36092
+ commentNumYesterday: classic_schemas_number().nullable()
36093
+ });
36094
36094
  const BetaFlag = "HuiwenCanary";
36095
36095
  class Action {
36096
36096
  constructor(task){