@iflyrpa/actions 4.1.0-beta.6 → 4.1.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/dist/actions/searchAccountInfo/index.d.ts +1 -1
- package/dist/actions/shipinhaoPublishVideo/videoValidator.d.ts +4 -2
- package/dist/bundle.js +116 -105
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +116 -105
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +116 -105
- package/dist/index.mjs.map +1 -1
- package/dist/utils/feishuAlarm.d.ts +4 -1
- package/dist/utils/http.d.ts +16 -0
- package/dist/utils/shipinhao/utils.d.ts +10 -0
- package/package.json +2 -2
|
@@ -38,9 +38,9 @@ export declare const SearchAccountInfoParamsSchema: z.ZodObject<{
|
|
|
38
38
|
token: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
|
|
39
39
|
platform: z.ZodEnum<{
|
|
40
40
|
baijiahao: "baijiahao";
|
|
41
|
+
xiaohongshu: "xiaohongshu";
|
|
41
42
|
douyin: "douyin";
|
|
42
43
|
toutiao: "toutiao";
|
|
43
|
-
xiaohongshu: "xiaohongshu";
|
|
44
44
|
weixin: "weixin";
|
|
45
45
|
shipinhao: "shipinhao";
|
|
46
46
|
}>;
|
|
@@ -13,8 +13,10 @@ export declare const MAX_FILE_SIZE: number;
|
|
|
13
13
|
export declare const ALLOWED_EXTENSIONS: readonly [".mp4"];
|
|
14
14
|
/** 视频轨编码白名单(ISO BMFF sample entry fourcc):H.264 */
|
|
15
15
|
export declare const ALLOWED_CODECS: readonly ["avc1", "avc3"];
|
|
16
|
-
/**
|
|
16
|
+
/** 标题最少字符数(填了才校验) */
|
|
17
17
|
export declare const MIN_TITLE_LENGTH = 6;
|
|
18
|
+
/** 标题最多字符数 */
|
|
19
|
+
export declare const MAX_TITLE_LENGTH = 16;
|
|
18
20
|
/**
|
|
19
21
|
* 校验视频是否满足视频号限制
|
|
20
22
|
*
|
|
@@ -26,7 +28,7 @@ export declare function validateShipinhaoVideo(filePath: string, meta: VideoMeta
|
|
|
26
28
|
/**
|
|
27
29
|
* 校验标题是否满足视频号限制
|
|
28
30
|
*
|
|
29
|
-
*
|
|
31
|
+
* 标题为可选参数:未传或为空白时不校验;填了就必须在 6-16 个字符之间。
|
|
30
32
|
* 按 Unicode 码点计数,避免 emoji 等字符被算成多个。
|
|
31
33
|
*
|
|
32
34
|
* @param title 标题,可为空
|