controlresell 0.0.19 → 0.0.20
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.
|
@@ -7,6 +7,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
7
7
|
accountId: z.ZodString;
|
|
8
8
|
platformId: z.ZodString;
|
|
9
9
|
platformUrl: z.ZodString;
|
|
10
|
+
platformPrice: z.ZodNumber;
|
|
10
11
|
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
11
12
|
}, "strip", z.ZodTypeAny, {
|
|
12
13
|
status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
@@ -15,6 +16,7 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
15
16
|
itemId: string | number;
|
|
16
17
|
platformId: string;
|
|
17
18
|
platformUrl: string;
|
|
19
|
+
platformPrice: number;
|
|
18
20
|
}, {
|
|
19
21
|
status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
20
22
|
id: string;
|
|
@@ -22,30 +24,37 @@ export declare const ItemOnPlatformSchema: z.ZodObject<{
|
|
|
22
24
|
itemId: string | number;
|
|
23
25
|
platformId: string;
|
|
24
26
|
platformUrl: string;
|
|
27
|
+
platformPrice: number;
|
|
25
28
|
}>;
|
|
26
29
|
export type ItemOnPlatform = z.infer<typeof ItemOnPlatformSchema>;
|
|
27
30
|
export declare const CreateItemOnPlatformPayloadSchema: z.ZodObject<{
|
|
28
31
|
accountId: z.ZodString;
|
|
29
32
|
platformId: z.ZodString;
|
|
30
33
|
platformUrl: z.ZodString;
|
|
34
|
+
platformPrice: z.ZodNumber;
|
|
31
35
|
status: z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>;
|
|
32
36
|
}, "strip", z.ZodTypeAny, {
|
|
33
37
|
status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
34
38
|
accountId: string;
|
|
35
39
|
platformId: string;
|
|
36
40
|
platformUrl: string;
|
|
41
|
+
platformPrice: number;
|
|
37
42
|
}, {
|
|
38
43
|
status: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE";
|
|
39
44
|
accountId: string;
|
|
40
45
|
platformId: string;
|
|
41
46
|
platformUrl: string;
|
|
47
|
+
platformPrice: number;
|
|
42
48
|
}>;
|
|
43
49
|
export type CreateItemOnPlatformPayload = z.infer<typeof CreateItemOnPlatformPayloadSchema>;
|
|
44
50
|
export declare const UpdateItemOnPlatformPayloadSchema: z.ZodObject<{
|
|
45
51
|
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<["ONLINE", "DRAFT", "DELETED", "SOLD", "HIDDEN", "PENDING", "ERROR", "DISPUTE"]>>>;
|
|
52
|
+
platformPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
46
53
|
}, "strip", z.ZodTypeAny, {
|
|
47
54
|
status?: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
|
|
55
|
+
platformPrice?: number | null | undefined;
|
|
48
56
|
}, {
|
|
49
57
|
status?: "ONLINE" | "DRAFT" | "DELETED" | "SOLD" | "HIDDEN" | "PENDING" | "ERROR" | "DISPUTE" | null | undefined;
|
|
58
|
+
platformPrice?: number | null | undefined;
|
|
50
59
|
}>;
|
|
51
60
|
export type UpdateItemOnPlatformPayload = z.infer<typeof UpdateItemOnPlatformPayloadSchema>;
|
|
@@ -12,14 +12,17 @@ exports.ItemOnPlatformSchema = zod_1.z.object({
|
|
|
12
12
|
accountId: zod_1.z.string().uuid(),
|
|
13
13
|
platformId: zod_1.z.string(),
|
|
14
14
|
platformUrl: zod_1.z.string().url(),
|
|
15
|
+
platformPrice: zod_1.z.number(),
|
|
15
16
|
status: exports.ItemOnPlatformStatusSchema,
|
|
16
17
|
});
|
|
17
18
|
exports.CreateItemOnPlatformPayloadSchema = zod_1.z.object({
|
|
18
19
|
accountId: zod_1.z.string().uuid(),
|
|
19
20
|
platformId: zod_1.z.string(),
|
|
20
21
|
platformUrl: zod_1.z.string().url(),
|
|
22
|
+
platformPrice: zod_1.z.number(),
|
|
21
23
|
status: exports.ItemOnPlatformStatusSchema,
|
|
22
24
|
});
|
|
23
25
|
exports.UpdateItemOnPlatformPayloadSchema = zod_1.z.object({
|
|
24
26
|
status: exports.ItemOnPlatformStatusSchema.nullish(),
|
|
27
|
+
platformPrice: zod_1.z.number().nullish(),
|
|
25
28
|
});
|