controlresell 0.0.10 → 0.0.12
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/helpers/legacy.d.ts +1 -1
- package/dist/models/customers/customer.d.ts +30 -2
- package/dist/models/items/itemField.d.ts +18 -2
- package/dist/models/items/itemFieldValue.d.ts +18 -4
- package/dist/models/users/user.d.ts +90 -34
- package/package.json +1 -1
- package/dist/items/item.d.ts +0 -1
- package/dist/items/item.js +0 -2
- package/dist/items/itemField.d.ts +0 -40
- package/dist/items/itemField.js +0 -18
- package/dist/models/connector/accounts.d.ts +0 -48
- package/dist/models/connector/accounts.js +0 -22
- package/dist/models/connector/jobs.d.ts +0 -125
- package/dist/models/connector/jobs.js +0 -15
- package/dist/users/user.d.ts +0 -1
- package/dist/users/user.js +0 -2
package/dist/helpers/legacy.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const legacy: <T extends z.
|
|
2
|
+
export declare const legacy: <A, B extends z.ZodTypeDef, C, T extends z.ZodType<A, B, C>>(schema: T) => z.ZodEffects<z.ZodEffects<T>, A, C>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const CustomerSchema: z.ZodObject<{
|
|
2
|
+
export declare const CustomerSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
3
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4
4
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5
5
|
firstName: z.ZodString;
|
|
@@ -41,5 +41,33 @@ export declare const CustomerSchema: z.ZodObject<{
|
|
|
41
41
|
phoneVerified: boolean;
|
|
42
42
|
items?: any[] | null | undefined;
|
|
43
43
|
createdAt?: Date | null | undefined;
|
|
44
|
-
}
|
|
44
|
+
}>, {
|
|
45
|
+
id: string | number;
|
|
46
|
+
userId: string | number;
|
|
47
|
+
firstName: string;
|
|
48
|
+
lastName: string;
|
|
49
|
+
birthDate: Date;
|
|
50
|
+
idNumber: string;
|
|
51
|
+
email: string;
|
|
52
|
+
phone: string;
|
|
53
|
+
iban: string;
|
|
54
|
+
bic: string;
|
|
55
|
+
phoneVerified: boolean;
|
|
56
|
+
items?: any[] | null | undefined;
|
|
57
|
+
createdAt?: Date | null | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
id: string | number;
|
|
60
|
+
userId: string | number;
|
|
61
|
+
firstName: string;
|
|
62
|
+
lastName: string;
|
|
63
|
+
birthDate: Date;
|
|
64
|
+
idNumber: string;
|
|
65
|
+
email: string;
|
|
66
|
+
phone: string;
|
|
67
|
+
iban: string;
|
|
68
|
+
bic: string;
|
|
69
|
+
phoneVerified: boolean;
|
|
70
|
+
items?: any[] | null | undefined;
|
|
71
|
+
createdAt?: Date | null | undefined;
|
|
72
|
+
}>, unknown, unknown>;
|
|
45
73
|
export type Customer = z.infer<typeof CustomerSchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const ItemFieldTypeSchema: z.ZodEnum<["text", "spot"]>;
|
|
3
3
|
export type ItemFieldType = z.infer<typeof ItemFieldTypeSchema>;
|
|
4
|
-
export declare const ItemFieldSchema: z.ZodObject<{
|
|
4
|
+
export declare const ItemFieldSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
5
5
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
6
6
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
7
7
|
name: z.ZodString;
|
|
@@ -25,7 +25,23 @@ export declare const ItemFieldSchema: z.ZodObject<{
|
|
|
25
25
|
section: string;
|
|
26
26
|
defaultValue?: string | null | undefined;
|
|
27
27
|
config?: string | null | undefined;
|
|
28
|
-
}
|
|
28
|
+
}>, {
|
|
29
|
+
type: "text" | "spot";
|
|
30
|
+
id: string | number;
|
|
31
|
+
userId: string | number;
|
|
32
|
+
name: string;
|
|
33
|
+
section: string;
|
|
34
|
+
defaultValue?: string | null | undefined;
|
|
35
|
+
config?: string | null | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
type: "text" | "spot";
|
|
38
|
+
id: string | number;
|
|
39
|
+
userId: string | number;
|
|
40
|
+
name: string;
|
|
41
|
+
section: string;
|
|
42
|
+
defaultValue?: string | null | undefined;
|
|
43
|
+
config?: string | null | undefined;
|
|
44
|
+
}>, unknown, unknown>;
|
|
29
45
|
export type ItemField = z.infer<typeof ItemFieldSchema>;
|
|
30
46
|
export declare const ItemFieldPayloadSchema: z.ZodObject<{
|
|
31
47
|
name: z.ZodString;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const ItemFieldValueSchema: z.ZodObject<{
|
|
2
|
+
export declare const ItemFieldValueSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
3
|
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4
4
|
fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5
5
|
value: z.ZodString;
|
|
@@ -11,9 +11,17 @@ export declare const ItemFieldValueSchema: z.ZodObject<{
|
|
|
11
11
|
value: string;
|
|
12
12
|
itemId: string | number;
|
|
13
13
|
fieldId: string | number;
|
|
14
|
-
}
|
|
14
|
+
}>, {
|
|
15
|
+
value: string;
|
|
16
|
+
itemId: string | number;
|
|
17
|
+
fieldId: string | number;
|
|
18
|
+
}, {
|
|
19
|
+
value: string;
|
|
20
|
+
itemId: string | number;
|
|
21
|
+
fieldId: string | number;
|
|
22
|
+
}>, unknown, unknown>;
|
|
15
23
|
export type ItemFieldValue = z.infer<typeof ItemFieldValueSchema>;
|
|
16
|
-
export declare const ItemFieldValuePayloadSchema: z.ZodObject<{
|
|
24
|
+
export declare const ItemFieldValuePayloadSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
17
25
|
fieldId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
18
26
|
value: z.ZodString;
|
|
19
27
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -22,5 +30,11 @@ export declare const ItemFieldValuePayloadSchema: z.ZodObject<{
|
|
|
22
30
|
}, {
|
|
23
31
|
value: string;
|
|
24
32
|
fieldId: string | number;
|
|
25
|
-
}
|
|
33
|
+
}>, {
|
|
34
|
+
value: string;
|
|
35
|
+
fieldId: string | number;
|
|
36
|
+
}, {
|
|
37
|
+
value: string;
|
|
38
|
+
fieldId: string | number;
|
|
39
|
+
}>, unknown, unknown>;
|
|
26
40
|
export type ItemFieldValuePayload = z.infer<typeof ItemFieldValuePayloadSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const UserMembershipSchema: z.ZodEnum<["free", "monthly", "yearly", "apprentice_monthly", "apprentice_yearly", "confirmed_monthly", "confirmed_yearly"]>;
|
|
3
|
-
export declare const UserSchema: z.ZodObject<{
|
|
3
|
+
export declare const UserSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
4
4
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
5
5
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6
6
|
username: z.ZodString;
|
|
@@ -29,7 +29,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
29
29
|
}>;
|
|
30
30
|
isPro: z.ZodBoolean;
|
|
31
31
|
isShop: z.ZodBoolean;
|
|
32
|
-
customers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
32
|
+
customers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
33
33
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
34
34
|
userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
35
35
|
firstName: z.ZodString;
|
|
@@ -71,7 +71,35 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
71
71
|
phoneVerified: boolean;
|
|
72
72
|
items?: any[] | null | undefined;
|
|
73
73
|
createdAt?: Date | null | undefined;
|
|
74
|
-
}>,
|
|
74
|
+
}>, {
|
|
75
|
+
id: string | number;
|
|
76
|
+
userId: string | number;
|
|
77
|
+
firstName: string;
|
|
78
|
+
lastName: string;
|
|
79
|
+
birthDate: Date;
|
|
80
|
+
idNumber: string;
|
|
81
|
+
email: string;
|
|
82
|
+
phone: string;
|
|
83
|
+
iban: string;
|
|
84
|
+
bic: string;
|
|
85
|
+
phoneVerified: boolean;
|
|
86
|
+
items?: any[] | null | undefined;
|
|
87
|
+
createdAt?: Date | null | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
id: string | number;
|
|
90
|
+
userId: string | number;
|
|
91
|
+
firstName: string;
|
|
92
|
+
lastName: string;
|
|
93
|
+
birthDate: Date;
|
|
94
|
+
idNumber: string;
|
|
95
|
+
email: string;
|
|
96
|
+
phone: string;
|
|
97
|
+
iban: string;
|
|
98
|
+
bic: string;
|
|
99
|
+
phoneVerified: boolean;
|
|
100
|
+
items?: any[] | null | undefined;
|
|
101
|
+
createdAt?: Date | null | undefined;
|
|
102
|
+
}>, unknown, unknown>, "many">>>;
|
|
75
103
|
fields: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodObject<{
|
|
76
104
|
name: z.ZodString;
|
|
77
105
|
defaultValue: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
@@ -107,21 +135,7 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
107
135
|
prevId?: string | number | null | undefined;
|
|
108
136
|
phoneNumber?: string | null | undefined;
|
|
109
137
|
countryDialCode?: string | null | undefined;
|
|
110
|
-
customers?:
|
|
111
|
-
id: string | number;
|
|
112
|
-
userId: string | number;
|
|
113
|
-
firstName: string;
|
|
114
|
-
lastName: string;
|
|
115
|
-
birthDate: Date;
|
|
116
|
-
idNumber: string;
|
|
117
|
-
email: string;
|
|
118
|
-
phone: string;
|
|
119
|
-
iban: string;
|
|
120
|
-
bic: string;
|
|
121
|
-
phoneVerified: boolean;
|
|
122
|
-
items?: any[] | null | undefined;
|
|
123
|
-
createdAt?: Date | null | undefined;
|
|
124
|
-
}[] | null | undefined;
|
|
138
|
+
customers?: unknown[] | null | undefined;
|
|
125
139
|
fields?: (string | number | {
|
|
126
140
|
name: string;
|
|
127
141
|
defaultValue: string | number;
|
|
@@ -149,24 +163,66 @@ export declare const UserSchema: z.ZodObject<{
|
|
|
149
163
|
prevId?: string | number | null | undefined;
|
|
150
164
|
phoneNumber?: string | null | undefined;
|
|
151
165
|
countryDialCode?: string | null | undefined;
|
|
152
|
-
customers?:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
customers?: unknown[] | null | undefined;
|
|
167
|
+
fields?: (string | number | {
|
|
168
|
+
name: string;
|
|
169
|
+
defaultValue: string | number;
|
|
170
|
+
})[] | null | undefined;
|
|
171
|
+
}>, {
|
|
172
|
+
id: string | number;
|
|
173
|
+
createdAt: Date;
|
|
174
|
+
username: string;
|
|
175
|
+
anonymous: boolean;
|
|
176
|
+
membership: string;
|
|
177
|
+
affiliate: string;
|
|
178
|
+
wallet: {
|
|
179
|
+
profit: number;
|
|
180
|
+
revenue: number;
|
|
181
|
+
currentMonthProfit: number;
|
|
182
|
+
};
|
|
183
|
+
isPro: boolean;
|
|
184
|
+
isShop: boolean;
|
|
185
|
+
updatedAt: Date;
|
|
186
|
+
firstName?: string | null | undefined;
|
|
187
|
+
email?: string | null | undefined;
|
|
188
|
+
password?: string | null | undefined;
|
|
189
|
+
notificationToken?: string | null | undefined;
|
|
190
|
+
token?: string | null | undefined;
|
|
191
|
+
prevId?: string | number | null | undefined;
|
|
192
|
+
phoneNumber?: string | null | undefined;
|
|
193
|
+
countryDialCode?: string | null | undefined;
|
|
194
|
+
customers?: unknown[] | null | undefined;
|
|
195
|
+
fields?: (string | number | {
|
|
196
|
+
name: string;
|
|
197
|
+
defaultValue: string | number;
|
|
198
|
+
})[] | null | undefined;
|
|
199
|
+
}, {
|
|
200
|
+
id: string | number;
|
|
201
|
+
createdAt: Date;
|
|
202
|
+
username: string;
|
|
203
|
+
anonymous: boolean;
|
|
204
|
+
membership: string;
|
|
205
|
+
affiliate: string;
|
|
206
|
+
wallet: {
|
|
207
|
+
profit: number;
|
|
208
|
+
revenue: number;
|
|
209
|
+
currentMonthProfit: number;
|
|
210
|
+
};
|
|
211
|
+
isPro: boolean;
|
|
212
|
+
isShop: boolean;
|
|
213
|
+
updatedAt: Date;
|
|
214
|
+
firstName?: string | null | undefined;
|
|
215
|
+
email?: string | null | undefined;
|
|
216
|
+
password?: string | null | undefined;
|
|
217
|
+
notificationToken?: string | null | undefined;
|
|
218
|
+
token?: string | null | undefined;
|
|
219
|
+
prevId?: string | number | null | undefined;
|
|
220
|
+
phoneNumber?: string | null | undefined;
|
|
221
|
+
countryDialCode?: string | null | undefined;
|
|
222
|
+
customers?: unknown[] | null | undefined;
|
|
167
223
|
fields?: (string | number | {
|
|
168
224
|
name: string;
|
|
169
225
|
defaultValue: string | number;
|
|
170
226
|
})[] | null | undefined;
|
|
171
|
-
}>;
|
|
227
|
+
}>, unknown, unknown>;
|
|
172
228
|
export type User = z.infer<typeof UserSchema>;
|
package/package.json
CHANGED
package/dist/items/item.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/items/item.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const SpotConfigSchema: z.ZodArray<z.ZodObject<{
|
|
3
|
-
name: z.ZodString;
|
|
4
|
-
start: z.ZodNumber;
|
|
5
|
-
end: z.ZodNumber;
|
|
6
|
-
}, "strip", z.ZodTypeAny, {
|
|
7
|
-
name: string;
|
|
8
|
-
start: number;
|
|
9
|
-
end: number;
|
|
10
|
-
}, {
|
|
11
|
-
name: string;
|
|
12
|
-
start: number;
|
|
13
|
-
end: number;
|
|
14
|
-
}>, "many">;
|
|
15
|
-
export type SpotConfig = z.infer<typeof SpotConfigSchema>;
|
|
16
|
-
export declare const SpotValueSchema: z.ZodObject<{
|
|
17
|
-
name: z.ZodOptional<z.ZodString>;
|
|
18
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
name?: string | undefined;
|
|
21
|
-
index?: number | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
name?: string | undefined;
|
|
24
|
-
index?: number | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
export type SpotValue = z.infer<typeof SpotValueSchema>;
|
|
27
|
-
export declare const SpotDefaultValueSchema: z.ZodObject<{
|
|
28
|
-
name: z.ZodOptional<z.ZodString>;
|
|
29
|
-
index: z.ZodOptional<z.ZodNumber>;
|
|
30
|
-
fill: z.ZodDefault<z.ZodBoolean>;
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
fill: boolean;
|
|
33
|
-
name?: string | undefined;
|
|
34
|
-
index?: number | undefined;
|
|
35
|
-
}, {
|
|
36
|
-
fill?: boolean | undefined;
|
|
37
|
-
name?: string | undefined;
|
|
38
|
-
index?: number | undefined;
|
|
39
|
-
}>;
|
|
40
|
-
export type SpotDefaultValue = z.infer<typeof SpotDefaultValueSchema>;
|
package/dist/items/itemField.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SpotDefaultValueSchema = exports.SpotValueSchema = exports.SpotConfigSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.SpotConfigSchema = zod_1.z.array(zod_1.z.object({
|
|
6
|
-
name: zod_1.z.string(),
|
|
7
|
-
start: zod_1.z.number(),
|
|
8
|
-
end: zod_1.z.number(),
|
|
9
|
-
}));
|
|
10
|
-
exports.SpotValueSchema = zod_1.z.object({
|
|
11
|
-
name: zod_1.z.string().optional(),
|
|
12
|
-
index: zod_1.z.number().optional(),
|
|
13
|
-
});
|
|
14
|
-
exports.SpotDefaultValueSchema = zod_1.z.object({
|
|
15
|
-
name: zod_1.z.string().optional(),
|
|
16
|
-
index: zod_1.z.number().optional(),
|
|
17
|
-
fill: zod_1.z.boolean().default(false),
|
|
18
|
-
});
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const ConnectorAccountPlatformSchema: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
3
|
-
export type ConnectorAccountPlatform = z.infer<typeof ConnectorAccountPlatformSchema>;
|
|
4
|
-
export declare const ConnectorAccountSchema: z.ZodObject<{
|
|
5
|
-
id: z.ZodString;
|
|
6
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
7
|
-
ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
8
|
-
credentials: z.ZodOptional<z.ZodString>;
|
|
9
|
-
data: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
id: string;
|
|
12
|
-
platform: "VINTED" | "SHOPIFY";
|
|
13
|
-
ownerId: string | number;
|
|
14
|
-
credentials?: string | undefined;
|
|
15
|
-
data?: string | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
id: string;
|
|
18
|
-
platform: "VINTED" | "SHOPIFY";
|
|
19
|
-
ownerId: string | number;
|
|
20
|
-
credentials?: string | undefined;
|
|
21
|
-
data?: string | undefined;
|
|
22
|
-
}>;
|
|
23
|
-
export type ConnectorAccount = z.infer<typeof ConnectorAccountSchema>;
|
|
24
|
-
export declare const CreateConnectorAccountPayloadSchema: z.ZodObject<{
|
|
25
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
26
|
-
ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
27
|
-
credentials: z.ZodString;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
platform: "VINTED" | "SHOPIFY";
|
|
30
|
-
ownerId: string | number;
|
|
31
|
-
credentials: string;
|
|
32
|
-
}, {
|
|
33
|
-
platform: "VINTED" | "SHOPIFY";
|
|
34
|
-
ownerId: string | number;
|
|
35
|
-
credentials: string;
|
|
36
|
-
}>;
|
|
37
|
-
export type CreateConnectorAccountPayload = z.infer<typeof CreateConnectorAccountPayloadSchema>;
|
|
38
|
-
export declare const UpdateConnectorAccountPayloadSchema: z.ZodObject<{
|
|
39
|
-
credentials: z.ZodOptional<z.ZodString>;
|
|
40
|
-
data: z.ZodOptional<z.ZodString>;
|
|
41
|
-
}, "strip", z.ZodTypeAny, {
|
|
42
|
-
credentials?: string | undefined;
|
|
43
|
-
data?: string | undefined;
|
|
44
|
-
}, {
|
|
45
|
-
credentials?: string | undefined;
|
|
46
|
-
data?: string | undefined;
|
|
47
|
-
}>;
|
|
48
|
-
export type UpdateConnectorAccountPayload = z.infer<typeof UpdateConnectorAccountPayloadSchema>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateConnectorAccountPayloadSchema = exports.CreateConnectorAccountPayloadSchema = exports.ConnectorAccountSchema = exports.ConnectorAccountPlatformSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const primitives_1 = require("../primitives");
|
|
6
|
-
exports.ConnectorAccountPlatformSchema = zod_1.z.enum(["VINTED", "SHOPIFY"]);
|
|
7
|
-
exports.ConnectorAccountSchema = zod_1.z.object({
|
|
8
|
-
id: zod_1.z.string().uuid(),
|
|
9
|
-
platform: exports.ConnectorAccountPlatformSchema,
|
|
10
|
-
ownerId: primitives_1.IdSchema,
|
|
11
|
-
credentials: zod_1.z.string().optional(),
|
|
12
|
-
data: zod_1.z.string().optional(),
|
|
13
|
-
});
|
|
14
|
-
exports.CreateConnectorAccountPayloadSchema = zod_1.z.object({
|
|
15
|
-
platform: exports.ConnectorAccountPlatformSchema,
|
|
16
|
-
ownerId: primitives_1.IdSchema,
|
|
17
|
-
credentials: zod_1.z.string(),
|
|
18
|
-
});
|
|
19
|
-
exports.UpdateConnectorAccountPayloadSchema = zod_1.z.object({
|
|
20
|
-
credentials: zod_1.z.string().optional(),
|
|
21
|
-
data: zod_1.z.string().optional(),
|
|
22
|
-
});
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const JobRequestSchema: <Payload extends z.ZodTypeAny>(payload: Payload) => z.ZodObject<{
|
|
3
|
-
account: z.ZodObject<{
|
|
4
|
-
id: z.ZodString;
|
|
5
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
6
|
-
ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
7
|
-
credentials: z.ZodOptional<z.ZodString>;
|
|
8
|
-
data: z.ZodOptional<z.ZodString>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
id: string;
|
|
11
|
-
platform: "VINTED" | "SHOPIFY";
|
|
12
|
-
ownerId: string | number;
|
|
13
|
-
credentials?: string | undefined;
|
|
14
|
-
data?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
id: string;
|
|
17
|
-
platform: "VINTED" | "SHOPIFY";
|
|
18
|
-
ownerId: string | number;
|
|
19
|
-
credentials?: string | undefined;
|
|
20
|
-
data?: string | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
payload: Payload;
|
|
23
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
24
|
-
account: z.ZodObject<{
|
|
25
|
-
id: z.ZodString;
|
|
26
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
27
|
-
ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
28
|
-
credentials: z.ZodOptional<z.ZodString>;
|
|
29
|
-
data: z.ZodOptional<z.ZodString>;
|
|
30
|
-
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
id: string;
|
|
32
|
-
platform: "VINTED" | "SHOPIFY";
|
|
33
|
-
ownerId: string | number;
|
|
34
|
-
credentials?: string | undefined;
|
|
35
|
-
data?: string | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
id: string;
|
|
38
|
-
platform: "VINTED" | "SHOPIFY";
|
|
39
|
-
ownerId: string | number;
|
|
40
|
-
credentials?: string | undefined;
|
|
41
|
-
data?: string | undefined;
|
|
42
|
-
}>;
|
|
43
|
-
payload: Payload;
|
|
44
|
-
}>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
45
|
-
account: z.ZodObject<{
|
|
46
|
-
id: z.ZodString;
|
|
47
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
48
|
-
ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
49
|
-
credentials: z.ZodOptional<z.ZodString>;
|
|
50
|
-
data: z.ZodOptional<z.ZodString>;
|
|
51
|
-
}, "strip", z.ZodTypeAny, {
|
|
52
|
-
id: string;
|
|
53
|
-
platform: "VINTED" | "SHOPIFY";
|
|
54
|
-
ownerId: string | number;
|
|
55
|
-
credentials?: string | undefined;
|
|
56
|
-
data?: string | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
id: string;
|
|
59
|
-
platform: "VINTED" | "SHOPIFY";
|
|
60
|
-
ownerId: string | number;
|
|
61
|
-
credentials?: string | undefined;
|
|
62
|
-
data?: string | undefined;
|
|
63
|
-
}>;
|
|
64
|
-
payload: Payload;
|
|
65
|
-
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
66
|
-
account: z.ZodObject<{
|
|
67
|
-
id: z.ZodString;
|
|
68
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
69
|
-
ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
70
|
-
credentials: z.ZodOptional<z.ZodString>;
|
|
71
|
-
data: z.ZodOptional<z.ZodString>;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
id: string;
|
|
74
|
-
platform: "VINTED" | "SHOPIFY";
|
|
75
|
-
ownerId: string | number;
|
|
76
|
-
credentials?: string | undefined;
|
|
77
|
-
data?: string | undefined;
|
|
78
|
-
}, {
|
|
79
|
-
id: string;
|
|
80
|
-
platform: "VINTED" | "SHOPIFY";
|
|
81
|
-
ownerId: string | number;
|
|
82
|
-
credentials?: string | undefined;
|
|
83
|
-
data?: string | undefined;
|
|
84
|
-
}>;
|
|
85
|
-
payload: Payload;
|
|
86
|
-
}> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{
|
|
87
|
-
account: z.ZodObject<{
|
|
88
|
-
id: z.ZodString;
|
|
89
|
-
platform: z.ZodEnum<["VINTED", "SHOPIFY"]>;
|
|
90
|
-
ownerId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
91
|
-
credentials: z.ZodOptional<z.ZodString>;
|
|
92
|
-
data: z.ZodOptional<z.ZodString>;
|
|
93
|
-
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
id: string;
|
|
95
|
-
platform: "VINTED" | "SHOPIFY";
|
|
96
|
-
ownerId: string | number;
|
|
97
|
-
credentials?: string | undefined;
|
|
98
|
-
data?: string | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
id: string;
|
|
101
|
-
platform: "VINTED" | "SHOPIFY";
|
|
102
|
-
ownerId: string | number;
|
|
103
|
-
credentials?: string | undefined;
|
|
104
|
-
data?: string | undefined;
|
|
105
|
-
}>;
|
|
106
|
-
payload: Payload;
|
|
107
|
-
}>[k_1]; } : never>;
|
|
108
|
-
export type JobRequest<Payload extends z.ZodTypeAny> = z.infer<ReturnType<typeof JobRequestSchema<Payload>>>;
|
|
109
|
-
export declare const JobResponseWebhookSchema: <Response extends z.ZodTypeAny>(response: Response) => z.ZodObject<{
|
|
110
|
-
accountId: z.ZodString;
|
|
111
|
-
response: Response;
|
|
112
|
-
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
113
|
-
accountId: z.ZodString;
|
|
114
|
-
response: Response;
|
|
115
|
-
}>, any> extends infer T ? { [k in keyof T]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
116
|
-
accountId: z.ZodString;
|
|
117
|
-
response: Response;
|
|
118
|
-
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
119
|
-
accountId: z.ZodString;
|
|
120
|
-
response: Response;
|
|
121
|
-
}> extends infer T_1 ? { [k_1 in keyof T_1]: z.baseObjectInputType<{
|
|
122
|
-
accountId: z.ZodString;
|
|
123
|
-
response: Response;
|
|
124
|
-
}>[k_1]; } : never>;
|
|
125
|
-
export type JobResponseWebhook<Response extends z.ZodTypeAny> = z.infer<ReturnType<typeof JobResponseWebhookSchema<Response>>>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JobResponseWebhookSchema = exports.JobRequestSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const accounts_1 = require("./accounts");
|
|
6
|
-
const JobRequestSchema = (payload) => zod_1.z.object({
|
|
7
|
-
account: accounts_1.ConnectorAccountSchema,
|
|
8
|
-
payload: payload,
|
|
9
|
-
});
|
|
10
|
-
exports.JobRequestSchema = JobRequestSchema;
|
|
11
|
-
const JobResponseWebhookSchema = (response) => zod_1.z.object({
|
|
12
|
-
accountId: zod_1.z.string().uuid(),
|
|
13
|
-
response: response,
|
|
14
|
-
});
|
|
15
|
-
exports.JobResponseWebhookSchema = JobResponseWebhookSchema;
|
package/dist/users/user.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/users/user.js
DELETED