controlresell 2.0.6 → 2.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "controlresell",
3
- "version": "2.0.6",
3
+ "version": "2.0.7",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -17,7 +17,7 @@
17
17
  "typescript": "^5.8.3"
18
18
  },
19
19
  "dependencies": {
20
- "controlresell-connector": "^0.0.25",
20
+ "controlresell-connector": "^0.0.27",
21
21
  "zod": "^3.24.2",
22
22
  "zodable-idschema": "^1.0.0"
23
23
  }
@@ -514,32 +514,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
514
514
  }>, "many">;
515
515
  currentPage: z.ZodNumber;
516
516
  totalPages: z.ZodNumber;
517
- fields: z.ZodArray<z.ZodObject<{
518
- id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
519
- userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
520
- name: z.ZodString;
521
- type: z.ZodEnum<["TEXT", "SPOT"]>;
522
- config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
523
- defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
524
- section: z.ZodString;
525
- }, "strip", z.ZodTypeAny, {
526
- type: "TEXT" | "SPOT";
527
- id: string | number;
528
- name: string;
529
- userId: string | number;
530
- section: string;
531
- config?: string | null | undefined;
532
- defaultValue?: string | null | undefined;
533
- }, {
534
- type: "TEXT" | "SPOT";
535
- id: string | number;
536
- name: string;
537
- userId: string | number;
538
- section: string;
539
- config?: string | null | undefined;
540
- defaultValue?: string | null | undefined;
541
- }>, "many">;
542
- fieldsData: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodString, "many">>;
543
517
  gettingStartedSteps: z.ZodOptional<z.ZodNullable<z.ZodObject<{
544
518
  isShown: z.ZodBoolean;
545
519
  addFirstItem: z.ZodBoolean;
@@ -560,15 +534,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
560
534
  add10Items: boolean;
561
535
  }>>>;
562
536
  }, "strip", z.ZodTypeAny, {
563
- fields: {
564
- type: "TEXT" | "SPOT";
565
- id: string | number;
566
- name: string;
567
- userId: string | number;
568
- section: string;
569
- config?: string | null | undefined;
570
- defaultValue?: string | null | undefined;
571
- }[];
572
537
  count: number;
573
538
  allItemsCount: number;
574
539
  rows: {
@@ -683,7 +648,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
683
648
  }[];
684
649
  currentPage: number;
685
650
  totalPages: number;
686
- fieldsData: Record<number, string[]>;
687
651
  gettingStartedSteps?: {
688
652
  isShown: boolean;
689
653
  addFirstItem: boolean;
@@ -692,15 +656,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
692
656
  add10Items: boolean;
693
657
  } | null | undefined;
694
658
  }, {
695
- fields: {
696
- type: "TEXT" | "SPOT";
697
- id: string | number;
698
- name: string;
699
- userId: string | number;
700
- section: string;
701
- config?: string | null | undefined;
702
- defaultValue?: string | null | undefined;
703
- }[];
704
659
  count: number;
705
660
  allItemsCount: number;
706
661
  rows: {
@@ -815,7 +770,6 @@ export declare const ItemsWithFiltersSchema: z.ZodObject<{
815
770
  }[];
816
771
  currentPage: number;
817
772
  totalPages: number;
818
- fieldsData: Record<number, string[]>;
819
773
  gettingStartedSteps?: {
820
774
  isShown: boolean;
821
775
  addFirstItem: boolean;
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ItemsWithFiltersSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const Item_1 = require("./Item");
6
- const Field_1 = require("../users/fields/Field");
7
6
  const GettingStartedSteps_1 = require("../users/GettingStartedSteps");
8
7
  exports.ItemsWithFiltersSchema = zod_1.z.object({
9
8
  count: zod_1.z.number(),
@@ -11,7 +10,5 @@ exports.ItemsWithFiltersSchema = zod_1.z.object({
11
10
  rows: zod_1.z.array(Item_1.ItemSchema),
12
11
  currentPage: zod_1.z.number(),
13
12
  totalPages: zod_1.z.number(),
14
- fields: zod_1.z.array(Field_1.FieldSchema),
15
- fieldsData: zod_1.z.record(zod_1.z.coerce.number(), zod_1.z.array(zod_1.z.string())),
16
13
  gettingStartedSteps: GettingStartedSteps_1.GettingStartedStepsSchema.nullish()
17
14
  });
@@ -1,6 +1,5 @@
1
1
  import {z} from "zod"
2
2
  import {ItemSchema} from "./Item"
3
- import {FieldSchema} from "../users/fields/Field"
4
3
  import {GettingStartedStepsSchema} from "../users/GettingStartedSteps"
5
4
 
6
5
  export const ItemsWithFiltersSchema = z.object({
@@ -9,8 +8,6 @@ export const ItemsWithFiltersSchema = z.object({
9
8
  rows: z.array(ItemSchema),
10
9
  currentPage: z.number(),
11
10
  totalPages: z.number(),
12
- fields: z.array(FieldSchema),
13
- fieldsData: z.record(z.coerce.number(), z.array(z.string())),
14
11
  gettingStartedSteps: GettingStartedStepsSchema.nullish()
15
12
  })
16
13
  export type ItemsWithFilters = z.infer<typeof ItemsWithFiltersSchema>
@@ -13,15 +13,15 @@ export declare const FieldSchema: z.ZodObject<{
13
13
  name: string;
14
14
  userId: string | number;
15
15
  section: string;
16
- config?: string | null | undefined;
17
16
  defaultValue?: string | null | undefined;
17
+ config?: string | null | undefined;
18
18
  }, {
19
19
  type: "TEXT" | "SPOT";
20
20
  id: string | number;
21
21
  name: string;
22
22
  userId: string | number;
23
23
  section: string;
24
- config?: string | null | undefined;
25
24
  defaultValue?: string | null | undefined;
25
+ config?: string | null | undefined;
26
26
  }>;
27
27
  export type Field = z.infer<typeof FieldSchema>;
@@ -9,13 +9,13 @@ export declare const FieldPayloadSchema: z.ZodObject<{
9
9
  type: "TEXT" | "SPOT";
10
10
  name: string;
11
11
  section: string;
12
- config?: string | null | undefined;
13
12
  defaultValue?: string | null | undefined;
13
+ config?: string | null | undefined;
14
14
  }, {
15
15
  type: "TEXT" | "SPOT";
16
16
  name: string;
17
17
  section: string;
18
- config?: string | null | undefined;
19
18
  defaultValue?: string | null | undefined;
19
+ config?: string | null | undefined;
20
20
  }>;
21
21
  export type FieldPayload = z.infer<typeof FieldPayloadSchema>;
@@ -0,0 +1,52 @@
1
+ import { z } from "zod";
2
+ export declare const FieldsWithDataSchema: z.ZodObject<{
3
+ fields: z.ZodArray<z.ZodObject<{
4
+ id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
5
+ userId: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
6
+ name: z.ZodString;
7
+ type: z.ZodEnum<["TEXT", "SPOT"]>;
8
+ config: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ defaultValue: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ section: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ type: "TEXT" | "SPOT";
13
+ id: string | number;
14
+ name: string;
15
+ userId: string | number;
16
+ section: string;
17
+ defaultValue?: string | null | undefined;
18
+ config?: string | null | undefined;
19
+ }, {
20
+ type: "TEXT" | "SPOT";
21
+ id: string | number;
22
+ name: string;
23
+ userId: string | number;
24
+ section: string;
25
+ defaultValue?: string | null | undefined;
26
+ config?: string | null | undefined;
27
+ }>, "many">;
28
+ fieldsData: z.ZodRecord<z.ZodNumber, z.ZodArray<z.ZodString, "many">>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ fields: {
31
+ type: "TEXT" | "SPOT";
32
+ id: string | number;
33
+ name: string;
34
+ userId: string | number;
35
+ section: string;
36
+ defaultValue?: string | null | undefined;
37
+ config?: string | null | undefined;
38
+ }[];
39
+ fieldsData: Record<number, string[]>;
40
+ }, {
41
+ fields: {
42
+ type: "TEXT" | "SPOT";
43
+ id: string | number;
44
+ name: string;
45
+ userId: string | number;
46
+ section: string;
47
+ defaultValue?: string | null | undefined;
48
+ config?: string | null | undefined;
49
+ }[];
50
+ fieldsData: Record<number, string[]>;
51
+ }>;
52
+ export type FieldsWithData = z.infer<typeof FieldsWithDataSchema>;
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FieldsWithDataSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const Field_1 = require("./Field");
6
+ exports.FieldsWithDataSchema = zod_1.z.object({
7
+ fields: zod_1.z.array(Field_1.FieldSchema),
8
+ fieldsData: zod_1.z.record(zod_1.z.coerce.number(), zod_1.z.array(zod_1.z.string()))
9
+ });
@@ -0,0 +1,8 @@
1
+ import {z} from "zod"
2
+ import {FieldSchema} from "./Field"
3
+
4
+ export const FieldsWithDataSchema = z.object({
5
+ fields: z.array(FieldSchema),
6
+ fieldsData: z.record(z.coerce.number(), z.array(z.string()))
7
+ })
8
+ export type FieldsWithData = z.infer<typeof FieldsWithDataSchema>
package/src/index.d.ts CHANGED
@@ -82,6 +82,7 @@ export * from "./com/controlresell/models/users/fields/Field";
82
82
  export * from "./com/controlresell/models/users/fields/FieldConfig";
83
83
  export * from "./com/controlresell/models/users/fields/FieldPayload";
84
84
  export * from "./com/controlresell/models/users/fields/FieldType";
85
+ export * from "./com/controlresell/models/users/fields/FieldsWithData";
85
86
  export * from "./com/controlresell/models/users/files/CreateFilePayload";
86
87
  export * from "./com/controlresell/models/users/files/File";
87
88
  export * from "./com/controlresell/models/users/platforms/CreateUserOnPlatformPayload";
package/src/index.js CHANGED
@@ -98,6 +98,7 @@ __exportStar(require("./com/controlresell/models/users/fields/Field"), exports);
98
98
  __exportStar(require("./com/controlresell/models/users/fields/FieldConfig"), exports);
99
99
  __exportStar(require("./com/controlresell/models/users/fields/FieldPayload"), exports);
100
100
  __exportStar(require("./com/controlresell/models/users/fields/FieldType"), exports);
101
+ __exportStar(require("./com/controlresell/models/users/fields/FieldsWithData"), exports);
101
102
  __exportStar(require("./com/controlresell/models/users/files/CreateFilePayload"), exports);
102
103
  __exportStar(require("./com/controlresell/models/users/files/File"), exports);
103
104
  __exportStar(require("./com/controlresell/models/users/platforms/CreateUserOnPlatformPayload"), exports);
package/src/index.ts CHANGED
@@ -82,6 +82,7 @@ export * from "./com/controlresell/models/users/fields/Field"
82
82
  export * from "./com/controlresell/models/users/fields/FieldConfig"
83
83
  export * from "./com/controlresell/models/users/fields/FieldPayload"
84
84
  export * from "./com/controlresell/models/users/fields/FieldType"
85
+ export * from "./com/controlresell/models/users/fields/FieldsWithData"
85
86
  export * from "./com/controlresell/models/users/files/CreateFilePayload"
86
87
  export * from "./com/controlresell/models/users/files/File"
87
88
  export * from "./com/controlresell/models/users/platforms/CreateUserOnPlatformPayload"