controlresell 0.0.21 → 0.0.22
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/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/models/fees/fee.d.ts +78 -0
- package/dist/models/fees/fee.js +22 -0
- package/dist/models/items/item.d.ts +805 -10
- package/dist/models/items/item.js +55 -3
- package/dist/models/items/itemContract.d.ts +15 -0
- package/dist/models/items/itemContract.js +11 -0
- package/dist/models/items/itemLabel.d.ts +82 -0
- package/dist/models/items/itemLabel.js +17 -0
- package/dist/models/metadata/brand.d.ts +38 -0
- package/dist/models/metadata/brand.js +14 -0
- package/dist/models/metadata/packageSize.d.ts +23 -0
- package/dist/models/metadata/packageSize.js +11 -0
- package/dist/models/metadata/place.d.ts +33 -0
- package/dist/models/metadata/place.js +13 -0
- package/dist/models/metadata/size.d.ts +15 -0
- package/dist/models/metadata/size.js +10 -0
- package/dist/models/users/user.d.ts +8 -8
- package/package.json +1 -1
|
@@ -1,8 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ImageAnalysisCompletionSchema = void 0;
|
|
3
|
+
exports.ImageAnalysisCompletionSchema = exports.ItemSchema = void 0;
|
|
4
4
|
const legacy_1 = require("../../helpers/legacy");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
|
+
const primitives_1 = require("../primitives");
|
|
7
|
+
const customer_1 = require("../customers/customer");
|
|
8
|
+
const itemFieldValue_1 = require("./itemFieldValue");
|
|
9
|
+
const brand_1 = require("../metadata/brand");
|
|
10
|
+
const place_1 = require("../metadata/place");
|
|
11
|
+
const packageSize_1 = require("../metadata/packageSize");
|
|
12
|
+
const itemLabel_1 = require("./itemLabel");
|
|
13
|
+
const itemContract_1 = require("./itemContract");
|
|
14
|
+
const size_1 = require("../metadata/size");
|
|
15
|
+
const fee_1 = require("../fees/fee");
|
|
16
|
+
exports.ItemSchema = (0, legacy_1.legacy)(zod_1.z.object({
|
|
17
|
+
id: primitives_1.IdSchema,
|
|
18
|
+
userId: primitives_1.IdSchema,
|
|
19
|
+
name: zod_1.z.string(),
|
|
20
|
+
description: zod_1.z.string().nullish(),
|
|
21
|
+
images: zod_1.z.array(zod_1.z.string()),
|
|
22
|
+
categoryId: zod_1.z.number().nullish(),
|
|
23
|
+
category: zod_1.z.any().nullish(), // Catalog
|
|
24
|
+
brandId: zod_1.z.number().nullish(),
|
|
25
|
+
brand: brand_1.BrandSchema.nullish(),
|
|
26
|
+
state: zod_1.z.number().nullish(),
|
|
27
|
+
sizeId: zod_1.z.number().nullish(),
|
|
28
|
+
size: size_1.SizeSchema.nullish(),
|
|
29
|
+
purchasePrice: zod_1.z.number().nullish(),
|
|
30
|
+
purchaseDate: zod_1.z.coerce.date().nullish(),
|
|
31
|
+
purchasePlaceId: zod_1.z.number().nullish(),
|
|
32
|
+
purchasePlace: place_1.PlaceSchema.nullish(),
|
|
33
|
+
sold: zod_1.z.boolean(),
|
|
34
|
+
sellingPrice: zod_1.z.number().nullish(),
|
|
35
|
+
sellingDate: zod_1.z.coerce.date().nullish(),
|
|
36
|
+
sellingPlaceId: zod_1.z.number().nullish(),
|
|
37
|
+
sellingPlace: place_1.PlaceSchema.nullish(),
|
|
38
|
+
estimatedPrice: zod_1.z.number().nullish(),
|
|
39
|
+
fees: zod_1.z.array(fee_1.FeeSchema).nullish(),
|
|
40
|
+
feesSum: zod_1.z.number().nullish(),
|
|
41
|
+
itemLabels: zod_1.z.array(itemLabel_1.ItemLabelSchema).nullish(),
|
|
42
|
+
colorIds: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
43
|
+
packageSizeId: zod_1.z.number().nullish(),
|
|
44
|
+
packageSize: packageSize_1.PackageSizeSchema.nullish(),
|
|
45
|
+
salePrice: zod_1.z.number().nullish(),
|
|
46
|
+
createdAt: zod_1.z.coerce.date(),
|
|
47
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
48
|
+
customerId: zod_1.z.number().nullish(),
|
|
49
|
+
customer: customer_1.CustomerSchema.nullish(),
|
|
50
|
+
customerType: zod_1.z.enum(["purchase", "deposit"]).nullish(),
|
|
51
|
+
customerPaid: zod_1.z.boolean().nullish(),
|
|
52
|
+
customerPaidDate: zod_1.z.coerce.date().nullish(),
|
|
53
|
+
customerPaidType: zod_1.z.enum(["transfer", "cash"]).nullish(),
|
|
54
|
+
contractId: zod_1.z.number().nullish(),
|
|
55
|
+
contract: itemContract_1.ItemContractSchema.nullish(),
|
|
56
|
+
fieldValues: zod_1.z.array(itemFieldValue_1.ItemFieldValueSchema).nullish(),
|
|
57
|
+
}));
|
|
6
58
|
exports.ImageAnalysisCompletionSchema = (0, legacy_1.legacy)(zod_1.z.object({
|
|
7
59
|
brand: zod_1.z.string(),
|
|
8
60
|
catalogId: zod_1.z.number(),
|
|
@@ -10,6 +62,6 @@ exports.ImageAnalysisCompletionSchema = (0, legacy_1.legacy)(zod_1.z.object({
|
|
|
10
62
|
packageSizeId: zod_1.z.number(),
|
|
11
63
|
statusId: zod_1.z.number(),
|
|
12
64
|
title: zod_1.z.string(),
|
|
13
|
-
colorIds: zod_1.z.array(zod_1.z.number()).
|
|
14
|
-
sizeId: zod_1.z.number().
|
|
65
|
+
colorIds: zod_1.z.array(zod_1.z.number()).nullish(),
|
|
66
|
+
sizeId: zod_1.z.number().nullish(),
|
|
15
67
|
}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ItemContractSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4
|
+
document: z.ZodString;
|
|
5
|
+
date: z.ZodDate;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
date: Date;
|
|
8
|
+
id: string | number;
|
|
9
|
+
document: string;
|
|
10
|
+
}, {
|
|
11
|
+
date: Date;
|
|
12
|
+
id: string | number;
|
|
13
|
+
document: string;
|
|
14
|
+
}>;
|
|
15
|
+
export type ItemContract = z.infer<typeof ItemContractSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemContractSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const primitives_1 = require("../primitives");
|
|
6
|
+
exports.ItemContractSchema = zod_1.z.object({
|
|
7
|
+
id: primitives_1.IdSchema,
|
|
8
|
+
document: zod_1.z.string(),
|
|
9
|
+
date: zod_1.z.coerce.date(),
|
|
10
|
+
//items: z.any(ItemSchema).nullish(),
|
|
11
|
+
});
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const LabelSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
id: string | number;
|
|
8
|
+
name: string;
|
|
9
|
+
userId?: string | number | null | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
id: string | number;
|
|
12
|
+
name: string;
|
|
13
|
+
userId?: string | number | null | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
id: string | number;
|
|
16
|
+
name: string;
|
|
17
|
+
userId?: string | number | null | undefined;
|
|
18
|
+
}, unknown>, {
|
|
19
|
+
id: string | number;
|
|
20
|
+
name: string;
|
|
21
|
+
userId?: string | number | null | undefined;
|
|
22
|
+
}, unknown>;
|
|
23
|
+
export type Label = z.infer<typeof LabelSchema>;
|
|
24
|
+
export declare const ItemLabelSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
25
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
26
|
+
labelId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
27
|
+
itemId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
28
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
29
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
30
|
+
name: z.ZodString;
|
|
31
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
id: string | number;
|
|
34
|
+
name: string;
|
|
35
|
+
userId?: string | number | null | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
id: string | number;
|
|
38
|
+
name: string;
|
|
39
|
+
userId?: string | number | null | undefined;
|
|
40
|
+
}>, {
|
|
41
|
+
id: string | number;
|
|
42
|
+
name: string;
|
|
43
|
+
userId?: string | number | null | undefined;
|
|
44
|
+
}, unknown>, {
|
|
45
|
+
id: string | number;
|
|
46
|
+
name: string;
|
|
47
|
+
userId?: string | number | null | undefined;
|
|
48
|
+
}, unknown>>>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
id: string | number;
|
|
51
|
+
itemId: string | number;
|
|
52
|
+
labelId: string | number;
|
|
53
|
+
label?: {
|
|
54
|
+
id: string | number;
|
|
55
|
+
name: string;
|
|
56
|
+
userId?: string | number | null | undefined;
|
|
57
|
+
} | null | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
id: string | number;
|
|
60
|
+
itemId: string | number;
|
|
61
|
+
labelId: string | number;
|
|
62
|
+
label?: unknown;
|
|
63
|
+
}>, {
|
|
64
|
+
id: string | number;
|
|
65
|
+
itemId: string | number;
|
|
66
|
+
labelId: string | number;
|
|
67
|
+
label?: {
|
|
68
|
+
id: string | number;
|
|
69
|
+
name: string;
|
|
70
|
+
userId?: string | number | null | undefined;
|
|
71
|
+
} | null | undefined;
|
|
72
|
+
}, unknown>, {
|
|
73
|
+
id: string | number;
|
|
74
|
+
itemId: string | number;
|
|
75
|
+
labelId: string | number;
|
|
76
|
+
label?: {
|
|
77
|
+
id: string | number;
|
|
78
|
+
name: string;
|
|
79
|
+
userId?: string | number | null | undefined;
|
|
80
|
+
} | null | undefined;
|
|
81
|
+
}, unknown>;
|
|
82
|
+
export type ItemLabel = z.infer<typeof ItemLabelSchema>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemLabelSchema = exports.LabelSchema = void 0;
|
|
4
|
+
const legacy_1 = require("../../helpers/legacy");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const primitives_1 = require("../primitives");
|
|
7
|
+
exports.LabelSchema = (0, legacy_1.legacy)(zod_1.z.object({
|
|
8
|
+
id: primitives_1.IdSchema,
|
|
9
|
+
name: zod_1.z.string(),
|
|
10
|
+
userId: primitives_1.IdSchema.nullish(),
|
|
11
|
+
}));
|
|
12
|
+
exports.ItemLabelSchema = (0, legacy_1.legacy)(zod_1.z.object({
|
|
13
|
+
id: primitives_1.IdSchema,
|
|
14
|
+
labelId: primitives_1.IdSchema,
|
|
15
|
+
itemId: primitives_1.IdSchema,
|
|
16
|
+
label: exports.LabelSchema.nullish(),
|
|
17
|
+
}));
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const BrandSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
6
|
+
createdAt: z.ZodDate;
|
|
7
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
8
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
id: string | number;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
name: string;
|
|
13
|
+
userId?: string | number | null | undefined;
|
|
14
|
+
updatedAt?: Date | null | undefined;
|
|
15
|
+
itemCount?: number | null | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
id: string | number;
|
|
18
|
+
createdAt: Date;
|
|
19
|
+
name: string;
|
|
20
|
+
userId?: string | number | null | undefined;
|
|
21
|
+
updatedAt?: Date | null | undefined;
|
|
22
|
+
itemCount?: number | null | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
id: string | number;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
name: string;
|
|
27
|
+
userId?: string | number | null | undefined;
|
|
28
|
+
updatedAt?: Date | null | undefined;
|
|
29
|
+
itemCount?: number | null | undefined;
|
|
30
|
+
}, unknown>, {
|
|
31
|
+
id: string | number;
|
|
32
|
+
createdAt: Date;
|
|
33
|
+
name: string;
|
|
34
|
+
userId?: string | number | null | undefined;
|
|
35
|
+
updatedAt?: Date | null | undefined;
|
|
36
|
+
itemCount?: number | null | undefined;
|
|
37
|
+
}, unknown>;
|
|
38
|
+
export type Brand = z.infer<typeof BrandSchema>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BrandSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const primitives_1 = require("../primitives");
|
|
6
|
+
const legacy_1 = require("../../helpers/legacy");
|
|
7
|
+
exports.BrandSchema = (0, legacy_1.legacy)(zod_1.z.object({
|
|
8
|
+
id: primitives_1.IdSchema,
|
|
9
|
+
name: zod_1.z.string(),
|
|
10
|
+
userId: primitives_1.IdSchema.nullish(),
|
|
11
|
+
createdAt: zod_1.z.coerce.date(),
|
|
12
|
+
updatedAt: zod_1.z.coerce.date().nullish(),
|
|
13
|
+
itemCount: zod_1.z.number().nullish(),
|
|
14
|
+
}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PackageSizeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
weightDescription: z.ZodString;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
id: string | number;
|
|
8
|
+
title: string;
|
|
9
|
+
weightDescription: string;
|
|
10
|
+
}, {
|
|
11
|
+
id: string | number;
|
|
12
|
+
title: string;
|
|
13
|
+
weightDescription: string;
|
|
14
|
+
}>, {
|
|
15
|
+
id: string | number;
|
|
16
|
+
title: string;
|
|
17
|
+
weightDescription: string;
|
|
18
|
+
}, unknown>, {
|
|
19
|
+
id: string | number;
|
|
20
|
+
title: string;
|
|
21
|
+
weightDescription: string;
|
|
22
|
+
}, unknown>;
|
|
23
|
+
export type PackageSize = z.infer<typeof PackageSizeSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PackageSizeSchema = void 0;
|
|
4
|
+
const legacy_1 = require("../../helpers/legacy");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
const primitives_1 = require("../primitives");
|
|
7
|
+
exports.PackageSizeSchema = (0, legacy_1.legacy)(zod_1.z.object({
|
|
8
|
+
id: primitives_1.IdSchema,
|
|
9
|
+
title: zod_1.z.string(),
|
|
10
|
+
weightDescription: zod_1.z.string(),
|
|
11
|
+
}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const PlaceSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
3
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
userId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
|
|
6
|
+
createdAt: z.ZodDate;
|
|
7
|
+
updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
id: string | number;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
name: string;
|
|
12
|
+
userId?: string | number | null | undefined;
|
|
13
|
+
updatedAt?: Date | null | undefined;
|
|
14
|
+
}, {
|
|
15
|
+
id: string | number;
|
|
16
|
+
createdAt: Date;
|
|
17
|
+
name: string;
|
|
18
|
+
userId?: string | number | null | undefined;
|
|
19
|
+
updatedAt?: Date | null | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
id: string | number;
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
name: string;
|
|
24
|
+
userId?: string | number | null | undefined;
|
|
25
|
+
updatedAt?: Date | null | undefined;
|
|
26
|
+
}, unknown>, {
|
|
27
|
+
id: string | number;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
name: string;
|
|
30
|
+
userId?: string | number | null | undefined;
|
|
31
|
+
updatedAt?: Date | null | undefined;
|
|
32
|
+
}, unknown>;
|
|
33
|
+
export type Place = z.infer<typeof PlaceSchema>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlaceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const primitives_1 = require("../primitives");
|
|
6
|
+
const legacy_1 = require("../../helpers/legacy");
|
|
7
|
+
exports.PlaceSchema = (0, legacy_1.legacy)(zod_1.z.object({
|
|
8
|
+
id: primitives_1.IdSchema,
|
|
9
|
+
name: zod_1.z.string(),
|
|
10
|
+
userId: primitives_1.IdSchema.nullish(),
|
|
11
|
+
createdAt: zod_1.z.coerce.date(),
|
|
12
|
+
updatedAt: zod_1.z.coerce.date().nullish(),
|
|
13
|
+
}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SizeSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
itemCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
id: string | number;
|
|
8
|
+
title: string;
|
|
9
|
+
itemCount?: number | null | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
id: string | number;
|
|
12
|
+
title: string;
|
|
13
|
+
itemCount?: number | null | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export type Size = z.infer<typeof SizeSchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SizeSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const primitives_1 = require("../primitives");
|
|
6
|
+
exports.SizeSchema = zod_1.z.object({
|
|
7
|
+
id: primitives_1.IdSchema,
|
|
8
|
+
title: zod_1.z.string(),
|
|
9
|
+
itemCount: zod_1.z.number().nullish(),
|
|
10
|
+
});
|
|
@@ -115,9 +115,10 @@ export declare const UserSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
116
|
id: string | number;
|
|
117
117
|
createdAt: Date;
|
|
118
|
+
updatedAt: Date;
|
|
118
119
|
username: string;
|
|
119
120
|
anonymous: boolean;
|
|
120
|
-
membership: "
|
|
121
|
+
membership: "monthly" | "yearly" | "free" | "apprentice_monthly" | "apprentice_yearly" | "confirmed_monthly" | "confirmed_yearly";
|
|
121
122
|
wallet: {
|
|
122
123
|
profit: number;
|
|
123
124
|
revenue: number;
|
|
@@ -125,7 +126,6 @@ export declare const UserSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
125
126
|
};
|
|
126
127
|
isPro: boolean;
|
|
127
128
|
isShop: boolean;
|
|
128
|
-
updatedAt: Date;
|
|
129
129
|
firstName?: string | null | undefined;
|
|
130
130
|
email?: string | null | undefined;
|
|
131
131
|
password?: string | null | undefined;
|
|
@@ -157,9 +157,10 @@ export declare const UserSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
157
157
|
}, {
|
|
158
158
|
id: string | number;
|
|
159
159
|
createdAt: Date;
|
|
160
|
+
updatedAt: Date;
|
|
160
161
|
username: string;
|
|
161
162
|
anonymous: boolean;
|
|
162
|
-
membership: "
|
|
163
|
+
membership: "monthly" | "yearly" | "free" | "apprentice_monthly" | "apprentice_yearly" | "confirmed_monthly" | "confirmed_yearly";
|
|
163
164
|
wallet: {
|
|
164
165
|
profit: number;
|
|
165
166
|
revenue: number;
|
|
@@ -167,7 +168,6 @@ export declare const UserSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
167
168
|
};
|
|
168
169
|
isPro: boolean;
|
|
169
170
|
isShop: boolean;
|
|
170
|
-
updatedAt: Date;
|
|
171
171
|
firstName?: string | null | undefined;
|
|
172
172
|
email?: string | null | undefined;
|
|
173
173
|
password?: string | null | undefined;
|
|
@@ -185,9 +185,10 @@ export declare const UserSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
185
185
|
}>, {
|
|
186
186
|
id: string | number;
|
|
187
187
|
createdAt: Date;
|
|
188
|
+
updatedAt: Date;
|
|
188
189
|
username: string;
|
|
189
190
|
anonymous: boolean;
|
|
190
|
-
membership: "
|
|
191
|
+
membership: "monthly" | "yearly" | "free" | "apprentice_monthly" | "apprentice_yearly" | "confirmed_monthly" | "confirmed_yearly";
|
|
191
192
|
wallet: {
|
|
192
193
|
profit: number;
|
|
193
194
|
revenue: number;
|
|
@@ -195,7 +196,6 @@ export declare const UserSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
195
196
|
};
|
|
196
197
|
isPro: boolean;
|
|
197
198
|
isShop: boolean;
|
|
198
|
-
updatedAt: Date;
|
|
199
199
|
firstName?: string | null | undefined;
|
|
200
200
|
email?: string | null | undefined;
|
|
201
201
|
password?: string | null | undefined;
|
|
@@ -227,9 +227,10 @@ export declare const UserSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
227
227
|
}, unknown>, {
|
|
228
228
|
id: string | number;
|
|
229
229
|
createdAt: Date;
|
|
230
|
+
updatedAt: Date;
|
|
230
231
|
username: string;
|
|
231
232
|
anonymous: boolean;
|
|
232
|
-
membership: "
|
|
233
|
+
membership: "monthly" | "yearly" | "free" | "apprentice_monthly" | "apprentice_yearly" | "confirmed_monthly" | "confirmed_yearly";
|
|
233
234
|
wallet: {
|
|
234
235
|
profit: number;
|
|
235
236
|
revenue: number;
|
|
@@ -237,7 +238,6 @@ export declare const UserSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
|
237
238
|
};
|
|
238
239
|
isPro: boolean;
|
|
239
240
|
isShop: boolean;
|
|
240
|
-
updatedAt: Date;
|
|
241
241
|
firstName?: string | null | undefined;
|
|
242
242
|
email?: string | null | undefined;
|
|
243
243
|
password?: string | null | undefined;
|