controlresell 0.0.23 → 0.0.25

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 CHANGED
@@ -14,7 +14,6 @@ export * from "./models/items/customField";
14
14
  export * from "./models/items/item";
15
15
  export * from "./models/items/itemContract";
16
16
  export * from "./models/items/itemField";
17
- export * from "./models/items/itemFieldValue";
18
17
  export * from "./models/items/itemHistory";
19
18
  export * from "./models/items/itemLabel";
20
19
  export * from "./models/items/itemOnPlatform";
@@ -22,6 +21,7 @@ export * from "./models/metadata/brand";
22
21
  export * from "./models/metadata/packageSize";
23
22
  export * from "./models/metadata/place";
24
23
  export * from "./models/metadata/size";
24
+ export * from "./models/users/field";
25
25
  export * from "./models/users/user";
26
26
  export * from "./models/users/userOnPlatform";
27
27
  export * from "./models/users/wallet";
package/dist/index.js CHANGED
@@ -30,7 +30,6 @@ __exportStar(require("./models/items/customField"), exports);
30
30
  __exportStar(require("./models/items/item"), exports);
31
31
  __exportStar(require("./models/items/itemContract"), exports);
32
32
  __exportStar(require("./models/items/itemField"), exports);
33
- __exportStar(require("./models/items/itemFieldValue"), exports);
34
33
  __exportStar(require("./models/items/itemHistory"), exports);
35
34
  __exportStar(require("./models/items/itemLabel"), exports);
36
35
  __exportStar(require("./models/items/itemOnPlatform"), exports);
@@ -38,6 +37,7 @@ __exportStar(require("./models/metadata/brand"), exports);
38
37
  __exportStar(require("./models/metadata/packageSize"), exports);
39
38
  __exportStar(require("./models/metadata/place"), exports);
40
39
  __exportStar(require("./models/metadata/size"), exports);
40
+ __exportStar(require("./models/users/field"), exports);
41
41
  __exportStar(require("./models/users/user"), exports);
42
42
  __exportStar(require("./models/users/userOnPlatform"), exports);
43
43
  __exportStar(require("./models/users/wallet"), exports);
@@ -1,27 +1,28 @@
1
1
  import { z } from "zod";
2
2
  export declare const FeeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
3
3
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
4
- type: z.ZodString;
4
+ type: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodNumber, z.ZodString]>]>;
5
5
  value: z.ZodNumber;
6
6
  name: z.ZodString;
7
7
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- recurrence: z.ZodEnum<["unique", "monthly", "yearly"]>;
8
+ recurrence: z.ZodEnum<["unique", "monthly", "yearly", "UNIQUE", "MONTHLY", "YEARLY"]>;
9
9
  startDate: z.ZodDate;
10
10
  endDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11
11
  active: z.ZodBoolean;
12
12
  userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
13
13
  itemId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
14
14
  parentId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
15
+ parentFeeId: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>>;
15
16
  createdAt: z.ZodDate;
16
17
  updatedAt: z.ZodDate;
17
18
  }, "strip", z.ZodTypeAny, {
18
19
  value: number;
19
- type: string;
20
+ type: string | number;
20
21
  id: string | number;
21
22
  userId: string | number;
22
23
  createdAt: Date;
23
24
  name: string;
24
- recurrence: "unique" | "monthly" | "yearly";
25
+ recurrence: "unique" | "monthly" | "yearly" | "UNIQUE" | "MONTHLY" | "YEARLY";
25
26
  startDate: Date;
26
27
  active: boolean;
27
28
  updatedAt: Date;
@@ -29,14 +30,15 @@ export declare const FeeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
29
30
  itemId?: string | number | null | undefined;
30
31
  endDate?: Date | null | undefined;
31
32
  parentId?: string | number | null | undefined;
33
+ parentFeeId?: string | number | null | undefined;
32
34
  }, {
33
35
  value: number;
34
- type: string;
36
+ type: string | number;
35
37
  id: string | number;
36
38
  userId: string | number;
37
39
  createdAt: Date;
38
40
  name: string;
39
- recurrence: "unique" | "monthly" | "yearly";
41
+ recurrence: "unique" | "monthly" | "yearly" | "UNIQUE" | "MONTHLY" | "YEARLY";
40
42
  startDate: Date;
41
43
  active: boolean;
42
44
  updatedAt: Date;
@@ -44,14 +46,15 @@ export declare const FeeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
44
46
  itemId?: string | number | null | undefined;
45
47
  endDate?: Date | null | undefined;
46
48
  parentId?: string | number | null | undefined;
49
+ parentFeeId?: string | number | null | undefined;
47
50
  }>, {
48
51
  value: number;
49
- type: string;
52
+ type: string | number;
50
53
  id: string | number;
51
54
  userId: string | number;
52
55
  createdAt: Date;
53
56
  name: string;
54
- recurrence: "unique" | "monthly" | "yearly";
57
+ recurrence: "unique" | "monthly" | "yearly" | "UNIQUE" | "MONTHLY" | "YEARLY";
55
58
  startDate: Date;
56
59
  active: boolean;
57
60
  updatedAt: Date;
@@ -59,14 +62,15 @@ export declare const FeeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
59
62
  itemId?: string | number | null | undefined;
60
63
  endDate?: Date | null | undefined;
61
64
  parentId?: string | number | null | undefined;
65
+ parentFeeId?: string | number | null | undefined;
62
66
  }, unknown>, {
63
67
  value: number;
64
- type: string;
68
+ type: string | number;
65
69
  id: string | number;
66
70
  userId: string | number;
67
71
  createdAt: Date;
68
72
  name: string;
69
- recurrence: "unique" | "monthly" | "yearly";
73
+ recurrence: "unique" | "monthly" | "yearly" | "UNIQUE" | "MONTHLY" | "YEARLY";
70
74
  startDate: Date;
71
75
  active: boolean;
72
76
  updatedAt: Date;
@@ -74,5 +78,6 @@ export declare const FeeSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
74
78
  itemId?: string | number | null | undefined;
75
79
  endDate?: Date | null | undefined;
76
80
  parentId?: string | number | null | undefined;
81
+ parentFeeId?: string | number | null | undefined;
77
82
  }, unknown>;
78
83
  export type Fee = z.infer<typeof FeeSchema>;
@@ -6,17 +6,18 @@ const zod_1 = require("zod");
6
6
  const primitives_1 = require("../primitives");
7
7
  exports.FeeSchema = (0, legacy_1.legacy)(zod_1.z.object({
8
8
  id: primitives_1.IdSchema,
9
- type: zod_1.z.string(),
9
+ type: zod_1.z.union([zod_1.z.string(), primitives_1.IdSchema]), // TODO: Add FeeTypeSchema and create a typeId for id
10
10
  value: zod_1.z.number(),
11
11
  name: zod_1.z.string(),
12
12
  description: zod_1.z.string().nullish(),
13
- recurrence: zod_1.z.enum(["unique", "monthly", "yearly"]),
13
+ recurrence: zod_1.z.enum(["unique", "monthly", "yearly", "UNIQUE", "MONTHLY", "YEARLY"]),
14
14
  startDate: zod_1.z.coerce.date(),
15
15
  endDate: zod_1.z.coerce.date().nullish(),
16
16
  active: zod_1.z.boolean(),
17
17
  userId: primitives_1.IdSchema,
18
18
  itemId: primitives_1.IdSchema.nullish(),
19
- parentId: primitives_1.IdSchema.nullish(),
19
+ parentId: primitives_1.IdSchema.nullish(), // Deprecated
20
+ parentFeeId: primitives_1.IdSchema.nullish(),
20
21
  createdAt: zod_1.z.coerce.date(),
21
22
  updatedAt: zod_1.z.coerce.date(),
22
23
  }));