controlresell 0.0.33 → 0.0.35
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.
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const ItemHistoryTypeSchema: z.ZodEnum<["CREATE", "UPDATE", "DELETE"]>;
|
|
2
|
+
export declare const ItemHistoryTypeSchema: z.ZodEnum<["IMPORT", "CREATE", "UPDATE", "DELETE"]>;
|
|
3
3
|
export type ItemHistoryType = z.infer<typeof ItemHistoryTypeSchema>;
|
|
4
4
|
export declare const ItemHistorySchema: z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
6
6
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
7
|
-
type: z.ZodEnum<["CREATE", "UPDATE", "DELETE"]>;
|
|
7
|
+
type: z.ZodEnum<["IMPORT", "CREATE", "UPDATE", "DELETE"]>;
|
|
8
8
|
data: z.ZodString;
|
|
9
9
|
createdAt: z.ZodDate;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
type: "CREATE" | "UPDATE" | "DELETE";
|
|
11
|
+
type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
|
|
12
12
|
id: string;
|
|
13
13
|
data: string;
|
|
14
14
|
itemId: string | number;
|
|
15
15
|
createdAt: Date;
|
|
16
16
|
}, {
|
|
17
|
-
type: "CREATE" | "UPDATE" | "DELETE";
|
|
17
|
+
type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
|
|
18
18
|
id: string;
|
|
19
19
|
data: string;
|
|
20
20
|
itemId: string | number;
|
|
@@ -22,13 +22,13 @@ export declare const ItemHistorySchema: z.ZodObject<{
|
|
|
22
22
|
}>;
|
|
23
23
|
export type ItemHistory = z.infer<typeof ItemHistorySchema>;
|
|
24
24
|
export declare const CreateItemHistoryPayloadSchema: z.ZodObject<{
|
|
25
|
-
type: z.ZodEnum<["CREATE", "UPDATE", "DELETE"]>;
|
|
25
|
+
type: z.ZodEnum<["IMPORT", "CREATE", "UPDATE", "DELETE"]>;
|
|
26
26
|
data: z.ZodString;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
type: "CREATE" | "UPDATE" | "DELETE";
|
|
28
|
+
type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
|
|
29
29
|
data: string;
|
|
30
30
|
}, {
|
|
31
|
-
type: "CREATE" | "UPDATE" | "DELETE";
|
|
31
|
+
type: "IMPORT" | "CREATE" | "UPDATE" | "DELETE";
|
|
32
32
|
data: string;
|
|
33
33
|
}>;
|
|
34
34
|
export type CreateItemHistoryPayload = z.infer<typeof CreateItemHistoryPayloadSchema>;
|
|
@@ -3,7 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CreateItemHistoryPayloadSchema = exports.ItemHistorySchema = exports.ItemHistoryTypeSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const primitives_1 = require("../primitives");
|
|
6
|
-
exports.ItemHistoryTypeSchema = zod_1.z.enum([
|
|
6
|
+
exports.ItemHistoryTypeSchema = zod_1.z.enum([
|
|
7
|
+
"IMPORT", "CREATE", "UPDATE", "DELETE",
|
|
8
|
+
]);
|
|
7
9
|
exports.ItemHistorySchema = zod_1.z.object({
|
|
8
10
|
id: zod_1.z.string().uuid(),
|
|
9
11
|
itemId: primitives_1.IdSchema,
|
|
@@ -3,24 +3,44 @@ export declare const UserOnPlatformSchema: z.ZodObject<{
|
|
|
3
3
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4
4
|
accountId: z.ZodString;
|
|
5
5
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
6
|
+
name: z.ZodString;
|
|
6
7
|
}, "strip", z.ZodTypeAny, {
|
|
7
8
|
platform: "VINTED" | "SHOPIFY";
|
|
8
9
|
accountId: string;
|
|
9
10
|
userId: string | number;
|
|
11
|
+
name: string;
|
|
10
12
|
}, {
|
|
11
13
|
platform: "VINTED" | "SHOPIFY";
|
|
12
14
|
accountId: string;
|
|
13
15
|
userId: string | number;
|
|
16
|
+
name: string;
|
|
14
17
|
}>;
|
|
15
18
|
export type UserOnPlatform = z.infer<typeof UserOnPlatformSchema>;
|
|
16
19
|
export declare const CreateUserOnPlatformPayloadSchema: z.ZodObject<{
|
|
17
20
|
accountId: z.ZodString;
|
|
18
21
|
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
22
|
+
name: z.ZodString;
|
|
19
23
|
}, "strip", z.ZodTypeAny, {
|
|
20
24
|
platform: "VINTED" | "SHOPIFY";
|
|
21
25
|
accountId: string;
|
|
26
|
+
name: string;
|
|
22
27
|
}, {
|
|
23
28
|
platform: "VINTED" | "SHOPIFY";
|
|
24
29
|
accountId: string;
|
|
30
|
+
name: string;
|
|
25
31
|
}>;
|
|
26
32
|
export type CreateUserOnPlatformPayload = z.infer<typeof CreateUserOnPlatformPayloadSchema>;
|
|
33
|
+
export declare const UserOnPlatformRequestSchema: z.ZodObject<{
|
|
34
|
+
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
35
|
+
credentials: z.ZodString;
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
platform: "VINTED" | "SHOPIFY";
|
|
39
|
+
credentials: string;
|
|
40
|
+
name: string;
|
|
41
|
+
}, {
|
|
42
|
+
platform: "VINTED" | "SHOPIFY";
|
|
43
|
+
credentials: string;
|
|
44
|
+
name: string;
|
|
45
|
+
}>;
|
|
46
|
+
export type UserOnPlatformRequest = z.infer<typeof UserOnPlatformRequestSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateUserOnPlatformPayloadSchema = exports.UserOnPlatformSchema = void 0;
|
|
3
|
+
exports.UserOnPlatformRequestSchema = exports.CreateUserOnPlatformPayloadSchema = exports.UserOnPlatformSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const primitives_1 = require("../primitives");
|
|
6
6
|
const account_1 = require("../connector/account");
|
|
@@ -8,8 +8,15 @@ exports.UserOnPlatformSchema = zod_1.z.object({
|
|
|
8
8
|
userId: primitives_1.IdSchema,
|
|
9
9
|
accountId: zod_1.z.string().uuid(),
|
|
10
10
|
platform: account_1.ConnectorAccountPlatformSchema,
|
|
11
|
+
name: zod_1.z.string(),
|
|
11
12
|
});
|
|
12
13
|
exports.CreateUserOnPlatformPayloadSchema = zod_1.z.object({
|
|
13
14
|
accountId: zod_1.z.string().uuid(),
|
|
14
15
|
platform: account_1.ConnectorAccountPlatformSchema,
|
|
16
|
+
name: zod_1.z.string(),
|
|
17
|
+
});
|
|
18
|
+
exports.UserOnPlatformRequestSchema = zod_1.z.object({
|
|
19
|
+
platform: account_1.ConnectorAccountPlatformSchema,
|
|
20
|
+
credentials: zod_1.z.string(),
|
|
21
|
+
name: zod_1.z.string(),
|
|
15
22
|
});
|