controlresell 0.0.39 → 0.0.41

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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/src/com/controlresell/models/fields/SpotConfig.d.ts +15 -0
  3. package/src/com/controlresell/models/fields/SpotConfig.js +9 -0
  4. package/src/com/controlresell/models/fields/SpotConfig.ts +8 -0
  5. package/src/com/controlresell/models/fields/SpotDefaultValue.d.ts +15 -0
  6. package/src/com/controlresell/models/fields/SpotDefaultValue.js +9 -0
  7. package/src/com/controlresell/models/fields/SpotDefaultValue.ts +8 -0
  8. package/src/com/controlresell/models/fields/SpotValue.d.ts +12 -0
  9. package/src/com/controlresell/models/fields/SpotValue.js +8 -0
  10. package/src/com/controlresell/models/fields/SpotValue.ts +7 -0
  11. package/src/com/controlresell/models/items/ImageAnalysisCompletion.d.ts +30 -0
  12. package/src/com/controlresell/models/items/ImageAnalysisCompletion.js +14 -0
  13. package/src/com/controlresell/models/items/ImageAnalysisCompletion.ts +13 -0
  14. package/src/com/controlresell/models/users/UpdateUserPayload.d.ts +45 -0
  15. package/src/com/controlresell/models/users/UpdateUserPayload.js +15 -0
  16. package/src/com/controlresell/models/users/UpdateUserPayload.ts +14 -0
  17. package/src/com/controlresell/models/users/User.d.ts +146 -0
  18. package/src/com/controlresell/models/users/User.js +21 -1
  19. package/src/com/controlresell/models/users/User.ts +21 -1
  20. package/src/com/controlresell/models/users/Wallet.d.ts +15 -0
  21. package/src/com/controlresell/models/users/Wallet.js +9 -0
  22. package/src/com/controlresell/models/users/Wallet.ts +8 -0
  23. package/src/com/controlresell/models/users/fields/FieldConfig.d.ts +12 -0
  24. package/src/com/controlresell/models/users/fields/FieldConfig.js +8 -0
  25. package/src/com/controlresell/models/users/fields/FieldConfig.ts +7 -0
  26. package/src/com/controlresell/models/users/fields/FieldPayload.d.ts +21 -0
  27. package/src/com/controlresell/models/users/fields/FieldPayload.js +12 -0
  28. package/src/com/controlresell/models/users/fields/FieldPayload.ts +11 -0
  29. package/src/index.d.ts +8 -0
  30. package/src/index.js +8 -0
  31. package/src/index.ts +8 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "0.0.39",
3
+ "version": "0.0.41",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ export declare const SpotConfigSchema: 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
+ }>;
15
+ export type SpotConfig = z.infer<typeof SpotConfigSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpotConfigSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.SpotConfigSchema = zod_1.z.object({
6
+ name: zod_1.z.string(),
7
+ start: zod_1.z.number(),
8
+ end: zod_1.z.number()
9
+ });
@@ -0,0 +1,8 @@
1
+ import {z} from "zod"
2
+
3
+ export const SpotConfigSchema = z.object({
4
+ name: z.string(),
5
+ start: z.number(),
6
+ end: z.number()
7
+ })
8
+ export type SpotConfig = z.infer<typeof SpotConfigSchema>
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ export declare const SpotDefaultValueSchema: z.ZodObject<{
3
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
+ fill: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ fill?: boolean | null | undefined;
8
+ name?: string | null | undefined;
9
+ index?: number | null | undefined;
10
+ }, {
11
+ fill?: boolean | null | undefined;
12
+ name?: string | null | undefined;
13
+ index?: number | null | undefined;
14
+ }>;
15
+ export type SpotDefaultValue = z.infer<typeof SpotDefaultValueSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpotDefaultValueSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.SpotDefaultValueSchema = zod_1.z.object({
6
+ name: zod_1.z.string().nullish(),
7
+ index: zod_1.z.number().int().nullish(),
8
+ fill: zod_1.z.boolean().nullish()
9
+ });
@@ -0,0 +1,8 @@
1
+ import {z} from "zod"
2
+
3
+ export const SpotDefaultValueSchema = z.object({
4
+ name: z.string().nullish(),
5
+ index: z.number().int().nullish(),
6
+ fill: z.boolean().nullish()
7
+ })
8
+ export type SpotDefaultValue = z.infer<typeof SpotDefaultValueSchema>
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const SpotValueSchema: z.ZodObject<{
3
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ name?: string | null | undefined;
7
+ index?: number | null | undefined;
8
+ }, {
9
+ name?: string | null | undefined;
10
+ index?: number | null | undefined;
11
+ }>;
12
+ export type SpotValue = z.infer<typeof SpotValueSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SpotValueSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.SpotValueSchema = zod_1.z.object({
6
+ name: zod_1.z.string().nullish(),
7
+ index: zod_1.z.number().int().nullish()
8
+ });
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+
3
+ export const SpotValueSchema = z.object({
4
+ name: z.string().nullish(),
5
+ index: z.number().int().nullish()
6
+ })
7
+ export type SpotValue = z.infer<typeof SpotValueSchema>
@@ -0,0 +1,30 @@
1
+ import { z } from "zod";
2
+ export declare const ImageAnalysisCompletionSchema: z.ZodObject<{
3
+ brand: z.ZodString;
4
+ catalogId: z.ZodNumber;
5
+ description: z.ZodString;
6
+ packageSizeId: z.ZodNumber;
7
+ statusId: z.ZodNumber;
8
+ title: z.ZodString;
9
+ colorIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>>;
10
+ sizeId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ title: string;
13
+ description: string;
14
+ brand: string;
15
+ catalogId: number;
16
+ packageSizeId: number;
17
+ statusId: number;
18
+ colorIds?: number[] | null | undefined;
19
+ sizeId?: number | null | undefined;
20
+ }, {
21
+ title: string;
22
+ description: string;
23
+ brand: string;
24
+ catalogId: number;
25
+ packageSizeId: number;
26
+ statusId: number;
27
+ colorIds?: number[] | null | undefined;
28
+ sizeId?: number | null | undefined;
29
+ }>;
30
+ export type ImageAnalysisCompletion = z.infer<typeof ImageAnalysisCompletionSchema>;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ImageAnalysisCompletionSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.ImageAnalysisCompletionSchema = zod_1.z.object({
6
+ brand: zod_1.z.string(),
7
+ catalogId: zod_1.z.number(),
8
+ description: zod_1.z.string(),
9
+ packageSizeId: zod_1.z.number(),
10
+ statusId: zod_1.z.number(),
11
+ title: zod_1.z.string(),
12
+ colorIds: zod_1.z.array(zod_1.z.number()).nullish(),
13
+ sizeId: zod_1.z.number().nullish()
14
+ });
@@ -0,0 +1,13 @@
1
+ import {z} from "zod"
2
+
3
+ export const ImageAnalysisCompletionSchema = z.object({
4
+ brand: z.string(),
5
+ catalogId: z.number(),
6
+ description: z.string(),
7
+ packageSizeId: z.number(),
8
+ statusId: z.number(),
9
+ title: z.string(),
10
+ colorIds: z.array(z.number()).nullish(),
11
+ sizeId: z.number().nullish()
12
+ })
13
+ export type ImageAnalysisCompletion = z.infer<typeof ImageAnalysisCompletionSchema>
@@ -0,0 +1,45 @@
1
+ import { z } from "zod";
2
+ export declare const UpdateUserPayloadSchema: z.ZodObject<{
3
+ username: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ membership: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ affiliate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ notificationToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ countryDialCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ fieldConfigs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
11
+ id: z.ZodString;
12
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ id: string;
15
+ defaultValue?: string | null | undefined;
16
+ }, {
17
+ id: string;
18
+ defaultValue?: string | null | undefined;
19
+ }>, "many">>>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ firstName?: string | null | undefined;
22
+ username?: string | null | undefined;
23
+ membership?: string | null | undefined;
24
+ affiliate?: string | null | undefined;
25
+ notificationToken?: string | null | undefined;
26
+ phoneNumber?: string | null | undefined;
27
+ countryDialCode?: string | null | undefined;
28
+ fieldConfigs?: {
29
+ id: string;
30
+ defaultValue?: string | null | undefined;
31
+ }[] | null | undefined;
32
+ }, {
33
+ firstName?: string | null | undefined;
34
+ username?: string | null | undefined;
35
+ membership?: string | null | undefined;
36
+ affiliate?: string | null | undefined;
37
+ notificationToken?: string | null | undefined;
38
+ phoneNumber?: string | null | undefined;
39
+ countryDialCode?: string | null | undefined;
40
+ fieldConfigs?: {
41
+ id: string;
42
+ defaultValue?: string | null | undefined;
43
+ }[] | null | undefined;
44
+ }>;
45
+ export type UpdateUserPayload = z.infer<typeof UpdateUserPayloadSchema>;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateUserPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const FieldConfig_1 = require("./fields/FieldConfig");
6
+ exports.UpdateUserPayloadSchema = zod_1.z.object({
7
+ username: zod_1.z.string().nullish(),
8
+ firstName: zod_1.z.string().nullish(),
9
+ membership: zod_1.z.string().nullish(),
10
+ affiliate: zod_1.z.string().nullish(),
11
+ notificationToken: zod_1.z.string().nullish(),
12
+ phoneNumber: zod_1.z.string().nullish(),
13
+ countryDialCode: zod_1.z.string().nullish(),
14
+ fieldConfigs: zod_1.z.array(FieldConfig_1.FieldConfigSchema).nullish()
15
+ });
@@ -0,0 +1,14 @@
1
+ import {z} from "zod"
2
+ import {FieldConfigSchema} from "./fields/FieldConfig"
3
+
4
+ export const UpdateUserPayloadSchema = z.object({
5
+ username: z.string().nullish(),
6
+ firstName: z.string().nullish(),
7
+ membership: z.string().nullish(),
8
+ affiliate: z.string().nullish(),
9
+ notificationToken: z.string().nullish(),
10
+ phoneNumber: z.string().nullish(),
11
+ countryDialCode: z.string().nullish(),
12
+ fieldConfigs: z.array(FieldConfigSchema).nullish()
13
+ })
14
+ export type UpdateUserPayload = z.infer<typeof UpdateUserPayloadSchema>
@@ -1,9 +1,155 @@
1
1
  import { z } from "zod";
2
2
  export declare const UserSchema: z.ZodObject<{
3
3
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
4
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ username: z.ZodString;
6
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ anonymous: z.ZodBoolean;
9
+ membership: z.ZodString;
10
+ affiliate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ notificationToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ phoneNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ countryDialCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
+ wallet: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ profit: z.ZodNumber;
16
+ revenue: z.ZodNumber;
17
+ currentMonthProfit: z.ZodNumber;
18
+ }, "strip", z.ZodTypeAny, {
19
+ profit: number;
20
+ revenue: number;
21
+ currentMonthProfit: number;
22
+ }, {
23
+ profit: number;
24
+ revenue: number;
25
+ currentMonthProfit: number;
26
+ }>>>;
27
+ isPro: z.ZodBoolean;
28
+ isShop: z.ZodBoolean;
29
+ customers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
30
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
31
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
32
+ firstName: z.ZodString;
33
+ lastName: z.ZodString;
34
+ birthDate: z.ZodDate;
35
+ email: z.ZodString;
36
+ idNumber: z.ZodString;
37
+ phone: z.ZodString;
38
+ iban: z.ZodString;
39
+ bic: z.ZodString;
40
+ phoneVerified: z.ZodBoolean;
41
+ }, "strip", z.ZodTypeAny, {
42
+ id: string | number;
43
+ userId: string | number;
44
+ firstName: string;
45
+ lastName: string;
46
+ birthDate: Date;
47
+ email: string;
48
+ idNumber: string;
49
+ phone: string;
50
+ iban: string;
51
+ bic: string;
52
+ phoneVerified: boolean;
53
+ }, {
54
+ id: string | number;
55
+ userId: string | number;
56
+ firstName: string;
57
+ lastName: string;
58
+ birthDate: Date;
59
+ email: string;
60
+ idNumber: string;
61
+ phone: string;
62
+ iban: string;
63
+ bic: string;
64
+ phoneVerified: boolean;
65
+ }>, "many">>>;
66
+ fieldConfigs: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
67
+ id: z.ZodString;
68
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ id: string;
71
+ defaultValue?: string | null | undefined;
72
+ }, {
73
+ id: string;
74
+ defaultValue?: string | null | undefined;
75
+ }>, "many">>>;
76
+ createdAt: z.ZodDate;
77
+ updatedAt: z.ZodDate;
4
78
  }, "strip", z.ZodTypeAny, {
5
79
  id: string | number;
80
+ createdAt: Date;
81
+ updatedAt: Date;
82
+ username: string;
83
+ membership: string;
84
+ anonymous: boolean;
85
+ isPro: boolean;
86
+ isShop: boolean;
87
+ firstName?: string | null | undefined;
88
+ email?: string | null | undefined;
89
+ affiliate?: string | null | undefined;
90
+ notificationToken?: string | null | undefined;
91
+ phoneNumber?: string | null | undefined;
92
+ countryDialCode?: string | null | undefined;
93
+ fieldConfigs?: {
94
+ id: string;
95
+ defaultValue?: string | null | undefined;
96
+ }[] | null | undefined;
97
+ password?: string | null | undefined;
98
+ wallet?: {
99
+ profit: number;
100
+ revenue: number;
101
+ currentMonthProfit: number;
102
+ } | null | undefined;
103
+ customers?: {
104
+ id: string | number;
105
+ userId: string | number;
106
+ firstName: string;
107
+ lastName: string;
108
+ birthDate: Date;
109
+ email: string;
110
+ idNumber: string;
111
+ phone: string;
112
+ iban: string;
113
+ bic: string;
114
+ phoneVerified: boolean;
115
+ }[] | null | undefined;
6
116
  }, {
7
117
  id: string | number;
118
+ createdAt: Date;
119
+ updatedAt: Date;
120
+ username: string;
121
+ membership: string;
122
+ anonymous: boolean;
123
+ isPro: boolean;
124
+ isShop: boolean;
125
+ firstName?: string | null | undefined;
126
+ email?: string | null | undefined;
127
+ affiliate?: string | null | undefined;
128
+ notificationToken?: string | null | undefined;
129
+ phoneNumber?: string | null | undefined;
130
+ countryDialCode?: string | null | undefined;
131
+ fieldConfigs?: {
132
+ id: string;
133
+ defaultValue?: string | null | undefined;
134
+ }[] | null | undefined;
135
+ password?: string | null | undefined;
136
+ wallet?: {
137
+ profit: number;
138
+ revenue: number;
139
+ currentMonthProfit: number;
140
+ } | null | undefined;
141
+ customers?: {
142
+ id: string | number;
143
+ userId: string | number;
144
+ firstName: string;
145
+ lastName: string;
146
+ birthDate: Date;
147
+ email: string;
148
+ idNumber: string;
149
+ phone: string;
150
+ iban: string;
151
+ bic: string;
152
+ phoneVerified: boolean;
153
+ }[] | null | undefined;
8
154
  }>;
9
155
  export type User = z.infer<typeof UserSchema>;
@@ -3,6 +3,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UserSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zodable_idschema_1 = require("zodable-idschema");
6
+ const Wallet_1 = require("./Wallet");
7
+ const Customer_1 = require("../customers/Customer");
8
+ const FieldConfig_1 = require("./fields/FieldConfig");
6
9
  exports.UserSchema = zod_1.z.object({
7
- id: zodable_idschema_1.IdSchema
10
+ id: zodable_idschema_1.IdSchema,
11
+ email: zod_1.z.string().nullish(),
12
+ username: zod_1.z.string(),
13
+ firstName: zod_1.z.string().nullish(),
14
+ password: zod_1.z.string().nullish(),
15
+ anonymous: zod_1.z.boolean(),
16
+ membership: zod_1.z.string(),
17
+ affiliate: zod_1.z.string().nullish(),
18
+ notificationToken: zod_1.z.string().nullish(),
19
+ phoneNumber: zod_1.z.string().nullish(),
20
+ countryDialCode: zod_1.z.string().nullish(),
21
+ wallet: Wallet_1.WalletSchema.nullish(),
22
+ isPro: zod_1.z.boolean(),
23
+ isShop: zod_1.z.boolean(),
24
+ customers: zod_1.z.array(Customer_1.CustomerSchema).nullish(),
25
+ fieldConfigs: zod_1.z.array(FieldConfig_1.FieldConfigSchema).nullish(),
26
+ createdAt: zod_1.z.coerce.date(),
27
+ updatedAt: zod_1.z.coerce.date()
8
28
  });
@@ -1,7 +1,27 @@
1
1
  import {z} from "zod"
2
2
  import {IdSchema} from "zodable-idschema"
3
+ import {WalletSchema} from "./Wallet"
4
+ import {CustomerSchema} from "../customers/Customer"
5
+ import {FieldConfigSchema} from "./fields/FieldConfig"
3
6
 
4
7
  export const UserSchema = z.object({
5
- id: IdSchema
8
+ id: IdSchema,
9
+ email: z.string().nullish(),
10
+ username: z.string(),
11
+ firstName: z.string().nullish(),
12
+ password: z.string().nullish(),
13
+ anonymous: z.boolean(),
14
+ membership: z.string(),
15
+ affiliate: z.string().nullish(),
16
+ notificationToken: z.string().nullish(),
17
+ phoneNumber: z.string().nullish(),
18
+ countryDialCode: z.string().nullish(),
19
+ wallet: WalletSchema.nullish(),
20
+ isPro: z.boolean(),
21
+ isShop: z.boolean(),
22
+ customers: z.array(CustomerSchema).nullish(),
23
+ fieldConfigs: z.array(FieldConfigSchema).nullish(),
24
+ createdAt: z.coerce.date(),
25
+ updatedAt: z.coerce.date()
6
26
  })
7
27
  export type User = z.infer<typeof UserSchema>
@@ -0,0 +1,15 @@
1
+ import { z } from "zod";
2
+ export declare const WalletSchema: z.ZodObject<{
3
+ profit: z.ZodNumber;
4
+ revenue: z.ZodNumber;
5
+ currentMonthProfit: z.ZodNumber;
6
+ }, "strip", z.ZodTypeAny, {
7
+ profit: number;
8
+ revenue: number;
9
+ currentMonthProfit: number;
10
+ }, {
11
+ profit: number;
12
+ revenue: number;
13
+ currentMonthProfit: number;
14
+ }>;
15
+ export type Wallet = z.infer<typeof WalletSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WalletSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.WalletSchema = zod_1.z.object({
6
+ profit: zod_1.z.number(),
7
+ revenue: zod_1.z.number(),
8
+ currentMonthProfit: zod_1.z.number()
9
+ });
@@ -0,0 +1,8 @@
1
+ import {z} from "zod"
2
+
3
+ export const WalletSchema = z.object({
4
+ profit: z.number(),
5
+ revenue: z.number(),
6
+ currentMonthProfit: z.number()
7
+ })
8
+ export type Wallet = z.infer<typeof WalletSchema>
@@ -0,0 +1,12 @@
1
+ import { z } from "zod";
2
+ export declare const FieldConfigSchema: z.ZodObject<{
3
+ id: z.ZodString;
4
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ id: string;
7
+ defaultValue?: string | null | undefined;
8
+ }, {
9
+ id: string;
10
+ defaultValue?: string | null | undefined;
11
+ }>;
12
+ export type FieldConfig = z.infer<typeof FieldConfigSchema>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldConfigSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.FieldConfigSchema = zod_1.z.object({
6
+ id: zod_1.z.string(),
7
+ defaultValue: zod_1.z.string().nullish()
8
+ });
@@ -0,0 +1,7 @@
1
+ import {z} from "zod"
2
+
3
+ export const FieldConfigSchema = z.object({
4
+ id: z.string(),
5
+ defaultValue: z.string().nullish()
6
+ })
7
+ export type FieldConfig = z.infer<typeof FieldConfigSchema>
@@ -0,0 +1,21 @@
1
+ import { z } from "zod";
2
+ export declare const FieldPayloadSchema: z.ZodObject<{
3
+ name: z.ZodString;
4
+ type: z.ZodEnum<["TEXT", "SPOT"]>;
5
+ config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ section: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ type: "TEXT" | "SPOT";
10
+ name: string;
11
+ section: string;
12
+ config?: string | null | undefined;
13
+ defaultValue?: string | null | undefined;
14
+ }, {
15
+ type: "TEXT" | "SPOT";
16
+ name: string;
17
+ section: string;
18
+ config?: string | null | undefined;
19
+ defaultValue?: string | null | undefined;
20
+ }>;
21
+ export type FieldPayload = z.infer<typeof FieldPayloadSchema>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldPayloadSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const FieldType_1 = require("./FieldType");
6
+ exports.FieldPayloadSchema = zod_1.z.object({
7
+ name: zod_1.z.string(),
8
+ type: FieldType_1.FieldTypeSchema,
9
+ config: zod_1.z.string().nullish(),
10
+ defaultValue: zod_1.z.string().nullish(),
11
+ section: zod_1.z.string()
12
+ });
@@ -0,0 +1,11 @@
1
+ import {z} from "zod"
2
+ import {FieldTypeSchema} from "./FieldType"
3
+
4
+ export const FieldPayloadSchema = z.object({
5
+ name: z.string(),
6
+ type: FieldTypeSchema,
7
+ config: z.string().nullish(),
8
+ defaultValue: z.string().nullish(),
9
+ section: z.string()
10
+ })
11
+ export type FieldPayload = z.infer<typeof FieldPayloadSchema>
package/src/index.d.ts CHANGED
@@ -9,7 +9,11 @@ export * from "./com/controlresell/models/connector/UserOnPlatformRequest";
9
9
  export * from "./com/controlresell/models/customers/Customer";
10
10
  export * from "./com/controlresell/models/fees/Fee";
11
11
  export * from "./com/controlresell/models/fees/FeeRecurrence";
12
+ export * from "./com/controlresell/models/fields/SpotConfig";
13
+ export * from "./com/controlresell/models/fields/SpotDefaultValue";
14
+ export * from "./com/controlresell/models/fields/SpotValue";
12
15
  export * from "./com/controlresell/models/items/CreatedItems";
16
+ export * from "./com/controlresell/models/items/ImageAnalysisCompletion";
13
17
  export * from "./com/controlresell/models/items/Item";
14
18
  export * from "./com/controlresell/models/items/ItemFiltersContext";
15
19
  export * from "./com/controlresell/models/items/ItemPayload";
@@ -42,9 +46,13 @@ export * from "./com/controlresell/models/metadata/packageSize/PackageSize";
42
46
  export * from "./com/controlresell/models/metadata/places/Place";
43
47
  export * from "./com/controlresell/models/metadata/sizes/Size";
44
48
  export * from "./com/controlresell/models/users/GettingStartedSteps";
49
+ export * from "./com/controlresell/models/users/UpdateUserPayload";
45
50
  export * from "./com/controlresell/models/users/User";
46
51
  export * from "./com/controlresell/models/users/UserContext";
52
+ export * from "./com/controlresell/models/users/Wallet";
47
53
  export * from "./com/controlresell/models/users/fields/Field";
54
+ export * from "./com/controlresell/models/users/fields/FieldConfig";
55
+ export * from "./com/controlresell/models/users/fields/FieldPayload";
48
56
  export * from "./com/controlresell/models/users/fields/FieldType";
49
57
  export * from "./com/controlresell/models/users/files/CreateFilePayload";
50
58
  export * from "./com/controlresell/models/users/files/File";
package/src/index.js CHANGED
@@ -25,7 +25,11 @@ __exportStar(require("./com/controlresell/models/connector/UserOnPlatformRequest
25
25
  __exportStar(require("./com/controlresell/models/customers/Customer"), exports);
26
26
  __exportStar(require("./com/controlresell/models/fees/Fee"), exports);
27
27
  __exportStar(require("./com/controlresell/models/fees/FeeRecurrence"), exports);
28
+ __exportStar(require("./com/controlresell/models/fields/SpotConfig"), exports);
29
+ __exportStar(require("./com/controlresell/models/fields/SpotDefaultValue"), exports);
30
+ __exportStar(require("./com/controlresell/models/fields/SpotValue"), exports);
28
31
  __exportStar(require("./com/controlresell/models/items/CreatedItems"), exports);
32
+ __exportStar(require("./com/controlresell/models/items/ImageAnalysisCompletion"), exports);
29
33
  __exportStar(require("./com/controlresell/models/items/Item"), exports);
30
34
  __exportStar(require("./com/controlresell/models/items/ItemFiltersContext"), exports);
31
35
  __exportStar(require("./com/controlresell/models/items/ItemPayload"), exports);
@@ -58,9 +62,13 @@ __exportStar(require("./com/controlresell/models/metadata/packageSize/PackageSiz
58
62
  __exportStar(require("./com/controlresell/models/metadata/places/Place"), exports);
59
63
  __exportStar(require("./com/controlresell/models/metadata/sizes/Size"), exports);
60
64
  __exportStar(require("./com/controlresell/models/users/GettingStartedSteps"), exports);
65
+ __exportStar(require("./com/controlresell/models/users/UpdateUserPayload"), exports);
61
66
  __exportStar(require("./com/controlresell/models/users/User"), exports);
62
67
  __exportStar(require("./com/controlresell/models/users/UserContext"), exports);
68
+ __exportStar(require("./com/controlresell/models/users/Wallet"), exports);
63
69
  __exportStar(require("./com/controlresell/models/users/fields/Field"), exports);
70
+ __exportStar(require("./com/controlresell/models/users/fields/FieldConfig"), exports);
71
+ __exportStar(require("./com/controlresell/models/users/fields/FieldPayload"), exports);
64
72
  __exportStar(require("./com/controlresell/models/users/fields/FieldType"), exports);
65
73
  __exportStar(require("./com/controlresell/models/users/files/CreateFilePayload"), exports);
66
74
  __exportStar(require("./com/controlresell/models/users/files/File"), exports);
package/src/index.ts CHANGED
@@ -9,7 +9,11 @@ export * from "./com/controlresell/models/connector/UserOnPlatformRequest"
9
9
  export * from "./com/controlresell/models/customers/Customer"
10
10
  export * from "./com/controlresell/models/fees/Fee"
11
11
  export * from "./com/controlresell/models/fees/FeeRecurrence"
12
+ export * from "./com/controlresell/models/fields/SpotConfig"
13
+ export * from "./com/controlresell/models/fields/SpotDefaultValue"
14
+ export * from "./com/controlresell/models/fields/SpotValue"
12
15
  export * from "./com/controlresell/models/items/CreatedItems"
16
+ export * from "./com/controlresell/models/items/ImageAnalysisCompletion"
13
17
  export * from "./com/controlresell/models/items/Item"
14
18
  export * from "./com/controlresell/models/items/ItemFiltersContext"
15
19
  export * from "./com/controlresell/models/items/ItemPayload"
@@ -42,9 +46,13 @@ export * from "./com/controlresell/models/metadata/packageSize/PackageSize"
42
46
  export * from "./com/controlresell/models/metadata/places/Place"
43
47
  export * from "./com/controlresell/models/metadata/sizes/Size"
44
48
  export * from "./com/controlresell/models/users/GettingStartedSteps"
49
+ export * from "./com/controlresell/models/users/UpdateUserPayload"
45
50
  export * from "./com/controlresell/models/users/User"
46
51
  export * from "./com/controlresell/models/users/UserContext"
52
+ export * from "./com/controlresell/models/users/Wallet"
47
53
  export * from "./com/controlresell/models/users/fields/Field"
54
+ export * from "./com/controlresell/models/users/fields/FieldConfig"
55
+ export * from "./com/controlresell/models/users/fields/FieldPayload"
48
56
  export * from "./com/controlresell/models/users/fields/FieldType"
49
57
  export * from "./com/controlresell/models/users/files/CreateFilePayload"
50
58
  export * from "./com/controlresell/models/users/files/File"