camstreamerlib 4.0.0-beta.88 → 4.0.0-beta.89
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.
|
@@ -2979,34 +2979,36 @@ export declare const audioFileListSchema: z.ZodArray<z.ZodObject<{
|
|
|
2979
2979
|
storage: "url" | "flash" | "SD0";
|
|
2980
2980
|
}>, "many">;
|
|
2981
2981
|
export type TAudioFileList = z.infer<typeof audioFileListSchema>;
|
|
2982
|
-
export
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
storage: "url" | "flash" | "SD0";
|
|
2992
|
-
}, {
|
|
2993
|
-
path: string;
|
|
2994
|
-
name: string;
|
|
2995
|
-
storage: "url" | "flash" | "SD0";
|
|
2996
|
-
}>, "many">;
|
|
2982
|
+
export type TFileToUpload = {
|
|
2983
|
+
storage: TAudioFileStorageType;
|
|
2984
|
+
name: string;
|
|
2985
|
+
file: File | string | null;
|
|
2986
|
+
};
|
|
2987
|
+
export declare const audioUrlSchema: z.ZodObject<{
|
|
2988
|
+
fileUrl: z.ZodString;
|
|
2989
|
+
name: z.ZodString;
|
|
2990
|
+
storage: z.ZodLiteral<"url">;
|
|
2997
2991
|
}, "strip", z.ZodTypeAny, {
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
name: string;
|
|
3002
|
-
storage: "url" | "flash" | "SD0";
|
|
3003
|
-
}[];
|
|
2992
|
+
name: string;
|
|
2993
|
+
storage: "url";
|
|
2994
|
+
fileUrl: string;
|
|
3004
2995
|
}, {
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
2996
|
+
name: string;
|
|
2997
|
+
storage: "url";
|
|
2998
|
+
fileUrl: string;
|
|
2999
|
+
}>;
|
|
3000
|
+
export type TAudioUrlType = z.infer<typeof audioUrlSchema>;
|
|
3001
|
+
export declare const audioLocalSchema: z.ZodObject<{
|
|
3002
|
+
file: z.ZodType<File, z.ZodTypeDef, File>;
|
|
3003
|
+
name: z.ZodString;
|
|
3004
|
+
storage: z.ZodEnum<["flash", "SD0"]>;
|
|
3005
|
+
}, "strip", z.ZodTypeAny, {
|
|
3006
|
+
name: string;
|
|
3007
|
+
storage: "flash" | "SD0";
|
|
3008
|
+
file: File;
|
|
3009
|
+
}, {
|
|
3010
|
+
name: string;
|
|
3011
|
+
storage: "flash" | "SD0";
|
|
3012
|
+
file: File;
|
|
3011
3013
|
}>;
|
|
3012
|
-
export type
|
|
3014
|
+
export type TAudioLocalType = z.infer<typeof audioLocalSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.audioLocalSchema = exports.audioUrlSchema = exports.audioFileListSchema = exports.audioFileSchema = exports.storageListSchema = exports.audioFileStorageTypeSchema = exports.AudioType = exports.isYouTubeStream = exports.isWindyStream = exports.isSdCardStream = exports.isRtmpStream = exports.isMpegDvbStream = exports.isHlsStream = exports.isFacebookStream = exports.streamListSchema = exports.streamSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const facebookSchema_1 = require("./facebookSchema");
|
|
6
6
|
const hlsSchema_1 = require("./hlsSchema");
|
|
@@ -69,7 +69,13 @@ exports.audioFileSchema = zod_1.z.object({
|
|
|
69
69
|
storage: exports.audioFileStorageTypeSchema,
|
|
70
70
|
});
|
|
71
71
|
exports.audioFileListSchema = zod_1.z.array(exports.audioFileSchema);
|
|
72
|
-
exports.
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
exports.audioUrlSchema = zod_1.z.object({
|
|
73
|
+
fileUrl: zod_1.z.string(),
|
|
74
|
+
name: zod_1.z.string(),
|
|
75
|
+
storage: zod_1.z.literal('url'),
|
|
76
|
+
});
|
|
77
|
+
exports.audioLocalSchema = zod_1.z.object({
|
|
78
|
+
file: zod_1.z.instanceof(File),
|
|
79
|
+
name: zod_1.z.string(),
|
|
80
|
+
storage: zod_1.z.enum(['flash', 'SD0']),
|
|
75
81
|
});
|
|
@@ -59,7 +59,13 @@ export const audioFileSchema = z.object({
|
|
|
59
59
|
storage: audioFileStorageTypeSchema,
|
|
60
60
|
});
|
|
61
61
|
export const audioFileListSchema = z.array(audioFileSchema);
|
|
62
|
-
export const
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
export const audioUrlSchema = z.object({
|
|
63
|
+
fileUrl: z.string(),
|
|
64
|
+
name: z.string(),
|
|
65
|
+
storage: z.literal('url'),
|
|
66
|
+
});
|
|
67
|
+
export const audioLocalSchema = z.object({
|
|
68
|
+
file: z.instanceof(File),
|
|
69
|
+
name: z.string(),
|
|
70
|
+
storage: z.enum(['flash', 'SD0']),
|
|
65
71
|
});
|
package/package.json
CHANGED
|
@@ -2979,34 +2979,36 @@ export declare const audioFileListSchema: z.ZodArray<z.ZodObject<{
|
|
|
2979
2979
|
storage: "url" | "flash" | "SD0";
|
|
2980
2980
|
}>, "many">;
|
|
2981
2981
|
export type TAudioFileList = z.infer<typeof audioFileListSchema>;
|
|
2982
|
-
export
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
storage: "url" | "flash" | "SD0";
|
|
2992
|
-
}, {
|
|
2993
|
-
path: string;
|
|
2994
|
-
name: string;
|
|
2995
|
-
storage: "url" | "flash" | "SD0";
|
|
2996
|
-
}>, "many">;
|
|
2982
|
+
export type TFileToUpload = {
|
|
2983
|
+
storage: TAudioFileStorageType;
|
|
2984
|
+
name: string;
|
|
2985
|
+
file: File | string | null;
|
|
2986
|
+
};
|
|
2987
|
+
export declare const audioUrlSchema: z.ZodObject<{
|
|
2988
|
+
fileUrl: z.ZodString;
|
|
2989
|
+
name: z.ZodString;
|
|
2990
|
+
storage: z.ZodLiteral<"url">;
|
|
2997
2991
|
}, "strip", z.ZodTypeAny, {
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
name: string;
|
|
3002
|
-
storage: "url" | "flash" | "SD0";
|
|
3003
|
-
}[];
|
|
2992
|
+
name: string;
|
|
2993
|
+
storage: "url";
|
|
2994
|
+
fileUrl: string;
|
|
3004
2995
|
}, {
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
2996
|
+
name: string;
|
|
2997
|
+
storage: "url";
|
|
2998
|
+
fileUrl: string;
|
|
2999
|
+
}>;
|
|
3000
|
+
export type TAudioUrlType = z.infer<typeof audioUrlSchema>;
|
|
3001
|
+
export declare const audioLocalSchema: z.ZodObject<{
|
|
3002
|
+
file: z.ZodType<File, z.ZodTypeDef, File>;
|
|
3003
|
+
name: z.ZodString;
|
|
3004
|
+
storage: z.ZodEnum<["flash", "SD0"]>;
|
|
3005
|
+
}, "strip", z.ZodTypeAny, {
|
|
3006
|
+
name: string;
|
|
3007
|
+
storage: "flash" | "SD0";
|
|
3008
|
+
file: File;
|
|
3009
|
+
}, {
|
|
3010
|
+
name: string;
|
|
3011
|
+
storage: "flash" | "SD0";
|
|
3012
|
+
file: File;
|
|
3011
3013
|
}>;
|
|
3012
|
-
export type
|
|
3014
|
+
export type TAudioLocalType = z.infer<typeof audioLocalSchema>;
|