@danielgenarog/shared-contracts 1.1.24 → 1.1.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.
@@ -78,6 +78,86 @@ export declare const ResBusinessSchema: z.ZodObject<{
78
78
  }, z.core.$strip>>;
79
79
  element_id: z.ZodString;
80
80
  }, z.core.$strip>>>;
81
+ modules: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
+ key: z.ZodEnum<{
83
+ menu: "menu";
84
+ appointments: "appointments";
85
+ reservations: "reservations";
86
+ service: "service";
87
+ orders: "orders";
88
+ staff: "staff";
89
+ availability: "availability";
90
+ }>;
91
+ description: z.ZodString;
92
+ name: z.ZodOptional<z.ZodString>;
93
+ businesses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
94
+ as_dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
95
+ isOptional: z.ZodBoolean;
96
+ description: z.ZodOptional<z.ZodString>;
97
+ created_at: z.ZodDate;
98
+ updated_at: z.ZodDate;
99
+ module_dependency_id: z.ZodString;
100
+ module: z.ZodObject<{
101
+ key: z.ZodEnum<{
102
+ menu: "menu";
103
+ appointments: "appointments";
104
+ reservations: "reservations";
105
+ service: "service";
106
+ orders: "orders";
107
+ staff: "staff";
108
+ availability: "availability";
109
+ }>;
110
+ description: z.ZodString;
111
+ name: z.ZodOptional<z.ZodString>;
112
+ }, z.core.$strip>;
113
+ dependency: z.ZodObject<{
114
+ key: z.ZodEnum<{
115
+ menu: "menu";
116
+ appointments: "appointments";
117
+ reservations: "reservations";
118
+ service: "service";
119
+ orders: "orders";
120
+ staff: "staff";
121
+ availability: "availability";
122
+ }>;
123
+ description: z.ZodString;
124
+ name: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$strip>;
126
+ }, z.core.$strip>>>;
127
+ depended_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
128
+ isOptional: z.ZodBoolean;
129
+ description: z.ZodOptional<z.ZodString>;
130
+ created_at: z.ZodDate;
131
+ updated_at: z.ZodDate;
132
+ module_dependency_id: z.ZodString;
133
+ module: z.ZodObject<{
134
+ key: z.ZodEnum<{
135
+ menu: "menu";
136
+ appointments: "appointments";
137
+ reservations: "reservations";
138
+ service: "service";
139
+ orders: "orders";
140
+ staff: "staff";
141
+ availability: "availability";
142
+ }>;
143
+ description: z.ZodString;
144
+ name: z.ZodOptional<z.ZodString>;
145
+ }, z.core.$strip>;
146
+ dependency: z.ZodObject<{
147
+ key: z.ZodEnum<{
148
+ menu: "menu";
149
+ appointments: "appointments";
150
+ reservations: "reservations";
151
+ service: "service";
152
+ orders: "orders";
153
+ staff: "staff";
154
+ availability: "availability";
155
+ }>;
156
+ description: z.ZodString;
157
+ name: z.ZodOptional<z.ZodString>;
158
+ }, z.core.$strip>;
159
+ }, z.core.$strip>>>;
160
+ }, z.core.$strip>>>;
81
161
  style: z.ZodObject<{
82
162
  style: z.ZodObject<{
83
163
  theme: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"business.schema.d.ts","sourceRoot":"","sources":["../../../../src/core/business/business/business.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,kBAAkB;;;;;;;EAO7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBAOzB,CAAA;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAErD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK5B,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE3D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,cAAc,EAAC,MAAM,CAAC,YAAY,EAAC,MAAM,CAOrD,CAAA"}
1
+ {"version":3,"file":"business.schema.d.ts","sourceRoot":"","sources":["../../../../src/core/business/business/business.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,kBAAkB;;;;;;;EAO7B,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;iBAOzB,CAAA;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAA;AAErD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM5B,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE3D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,cAAc,EAAC,MAAM,CAAC,YAAY,EAAC,MAAM,CAOrD,CAAA"}
@@ -4,6 +4,7 @@ exports.DEFAULT_LABELS = exports.CreateBusinessSchema = exports.ResBusinessSchem
4
4
  const zod_1 = require("zod");
5
5
  const elements_schema_1 = require("../elements/elements.schema");
6
6
  const style_schema_1 = require("../style/style.schema");
7
+ const modules_schema_1 = require("../modules/modules.schema");
7
8
  exports.BusinessTypeSchema = zod_1.z.enum([
8
9
  "restaurant",
9
10
  "bar",
@@ -24,6 +25,7 @@ exports.ResBusinessSchema = exports.BusinessSchema.extend({
24
25
  business_id: zod_1.z.string(),
25
26
  slug: zod_1.z.string(),
26
27
  elements: zod_1.z.array(elements_schema_1.ResElementSchema).optional(),
28
+ modules: zod_1.z.array(modules_schema_1.ResModuleEntitieSchema).optional(),
27
29
  style: style_schema_1.ResStyleSchema
28
30
  });
29
31
  exports.CreateBusinessSchema = exports.BusinessSchema.extend({
@@ -1 +1 @@
1
- {"version":3,"file":"business.schema.js","sourceRoot":"","sources":["../../../../src/core/business/business/business.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iEAA+E;AAC/E,wDAAkF;AAErE,QAAA,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC;IACvC,YAAY;IACZ,KAAK;IACL,MAAM;IACN,OAAO;IACP,YAAY;IACZ,KAAK;CACN,CAAC,CAAA;AAIW,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,0BAAkB;IACxB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA;AAGW,QAAA,iBAAiB,GAAG,sBAAc,CAAC,MAAM,CAAC;IACnD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,kCAAgB,CAAC,CAAC,QAAQ,EAAE;IAC9C,KAAK,EAAE,6BAAc;CACxB,CAAC,CAAA;AAGW,QAAA,oBAAoB,GAAG,sBAAc,CAAC,MAAM,CAAC;IACtD,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAa,CAAC,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,2BAAY;CACtB,CAAC,CAAA;AAGW,QAAA,cAAc,GAA+B;IACxD,UAAU,EAAC,aAAa;IACxB,GAAG,EAAC,KAAK;IACT,UAAU,EAAC,YAAY;IACvB,IAAI,EAAC,MAAM;IACX,GAAG,EAAC,UAAU;IACd,KAAK,EAAC,OAAO;CACd,CAAA"}
1
+ {"version":3,"file":"business.schema.js","sourceRoot":"","sources":["../../../../src/core/business/business/business.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iEAA+E;AAC/E,wDAAkF;AAClF,8DAAmE;AAEtD,QAAA,kBAAkB,GAAG,OAAC,CAAC,IAAI,CAAC;IACvC,YAAY;IACZ,KAAK;IACL,MAAM;IACN,OAAO;IACP,YAAY;IACZ,KAAK;CACN,CAAC,CAAA;AAIW,QAAA,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,0BAAkB;IACxB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA;AAGW,QAAA,iBAAiB,GAAG,sBAAc,CAAC,MAAM,CAAC;IACnD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,kCAAgB,CAAC,CAAC,QAAQ,EAAE;IAC9C,OAAO,EAAE,OAAC,CAAC,KAAK,CAAC,uCAAsB,CAAC,CAAC,QAAQ,EAAE;IACnD,KAAK,EAAE,6BAAc;CACxB,CAAC,CAAA;AAGW,QAAA,oBAAoB,GAAG,sBAAc,CAAC,MAAM,CAAC;IACtD,QAAQ,EAAE,OAAC,CAAC,KAAK,CAAC,+BAAa,CAAC,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,2BAAY;CACtB,CAAC,CAAA;AAGW,QAAA,cAAc,GAA+B;IACxD,UAAU,EAAC,aAAa;IACxB,GAAG,EAAC,KAAK;IACT,UAAU,EAAC,YAAY;IACvB,IAAI,EAAC,MAAM;IACX,GAAG,EAAC,UAAU;IACd,KAAK,EAAC,OAAO;CACd,CAAA"}
@@ -9,4 +9,161 @@ export declare const ModuleSchema: z.ZodEnum<{
9
9
  availability: "availability";
10
10
  }>;
11
11
  export type Module = z.infer<typeof ModuleSchema>;
12
+ export declare const CreateModuleEntitieSchema: z.ZodObject<{
13
+ key: z.ZodEnum<{
14
+ menu: "menu";
15
+ appointments: "appointments";
16
+ reservations: "reservations";
17
+ service: "service";
18
+ orders: "orders";
19
+ staff: "staff";
20
+ availability: "availability";
21
+ }>;
22
+ name: z.ZodOptional<z.ZodString>;
23
+ description: z.ZodString;
24
+ }, z.core.$strip>;
25
+ export type CreateModuleEntitie = z.infer<typeof CreateModuleEntitieSchema>;
26
+ export declare const ModuleEntitieSchema: z.ZodObject<{
27
+ key: z.ZodEnum<{
28
+ menu: "menu";
29
+ appointments: "appointments";
30
+ reservations: "reservations";
31
+ service: "service";
32
+ orders: "orders";
33
+ staff: "staff";
34
+ availability: "availability";
35
+ }>;
36
+ description: z.ZodString;
37
+ name: z.ZodOptional<z.ZodString>;
38
+ }, z.core.$strip>;
39
+ export type ModuleEntitie = z.infer<typeof ModuleEntitieSchema>;
40
+ export declare const ModuleDependenciesSchema: z.ZodObject<{
41
+ isOptional: z.ZodBoolean;
42
+ description: z.ZodOptional<z.ZodString>;
43
+ created_at: z.ZodDate;
44
+ updated_at: z.ZodDate;
45
+ }, z.core.$strip>;
46
+ export type ModuleDependencies = z.infer<typeof ModuleDependenciesSchema>;
47
+ export declare const CreateModuleDependenciesSchema: z.ZodObject<{
48
+ isOptional: z.ZodBoolean;
49
+ description: z.ZodOptional<z.ZodString>;
50
+ created_at: z.ZodDate;
51
+ updated_at: z.ZodDate;
52
+ module_id: z.ZodNumber;
53
+ dependency_id: z.ZodNumber;
54
+ }, z.core.$strip>;
55
+ export type CreateModuleDependencies = z.infer<typeof CreateModuleDependenciesSchema>;
56
+ export declare const ResModuleDependenciesSchema: z.ZodObject<{
57
+ isOptional: z.ZodBoolean;
58
+ description: z.ZodOptional<z.ZodString>;
59
+ created_at: z.ZodDate;
60
+ updated_at: z.ZodDate;
61
+ module_dependency_id: z.ZodString;
62
+ module: z.ZodObject<{
63
+ key: z.ZodEnum<{
64
+ menu: "menu";
65
+ appointments: "appointments";
66
+ reservations: "reservations";
67
+ service: "service";
68
+ orders: "orders";
69
+ staff: "staff";
70
+ availability: "availability";
71
+ }>;
72
+ description: z.ZodString;
73
+ name: z.ZodOptional<z.ZodString>;
74
+ }, z.core.$strip>;
75
+ dependency: z.ZodObject<{
76
+ key: z.ZodEnum<{
77
+ menu: "menu";
78
+ appointments: "appointments";
79
+ reservations: "reservations";
80
+ service: "service";
81
+ orders: "orders";
82
+ staff: "staff";
83
+ availability: "availability";
84
+ }>;
85
+ description: z.ZodString;
86
+ name: z.ZodOptional<z.ZodString>;
87
+ }, z.core.$strip>;
88
+ }, z.core.$strip>;
89
+ export declare const ResModuleEntitieSchema: z.ZodObject<{
90
+ key: z.ZodEnum<{
91
+ menu: "menu";
92
+ appointments: "appointments";
93
+ reservations: "reservations";
94
+ service: "service";
95
+ orders: "orders";
96
+ staff: "staff";
97
+ availability: "availability";
98
+ }>;
99
+ description: z.ZodString;
100
+ name: z.ZodOptional<z.ZodString>;
101
+ businesses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
102
+ as_dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ isOptional: z.ZodBoolean;
104
+ description: z.ZodOptional<z.ZodString>;
105
+ created_at: z.ZodDate;
106
+ updated_at: z.ZodDate;
107
+ module_dependency_id: z.ZodString;
108
+ module: z.ZodObject<{
109
+ key: z.ZodEnum<{
110
+ menu: "menu";
111
+ appointments: "appointments";
112
+ reservations: "reservations";
113
+ service: "service";
114
+ orders: "orders";
115
+ staff: "staff";
116
+ availability: "availability";
117
+ }>;
118
+ description: z.ZodString;
119
+ name: z.ZodOptional<z.ZodString>;
120
+ }, z.core.$strip>;
121
+ dependency: z.ZodObject<{
122
+ key: z.ZodEnum<{
123
+ menu: "menu";
124
+ appointments: "appointments";
125
+ reservations: "reservations";
126
+ service: "service";
127
+ orders: "orders";
128
+ staff: "staff";
129
+ availability: "availability";
130
+ }>;
131
+ description: z.ZodString;
132
+ name: z.ZodOptional<z.ZodString>;
133
+ }, z.core.$strip>;
134
+ }, z.core.$strip>>>;
135
+ depended_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
136
+ isOptional: z.ZodBoolean;
137
+ description: z.ZodOptional<z.ZodString>;
138
+ created_at: z.ZodDate;
139
+ updated_at: z.ZodDate;
140
+ module_dependency_id: z.ZodString;
141
+ module: z.ZodObject<{
142
+ key: z.ZodEnum<{
143
+ menu: "menu";
144
+ appointments: "appointments";
145
+ reservations: "reservations";
146
+ service: "service";
147
+ orders: "orders";
148
+ staff: "staff";
149
+ availability: "availability";
150
+ }>;
151
+ description: z.ZodString;
152
+ name: z.ZodOptional<z.ZodString>;
153
+ }, z.core.$strip>;
154
+ dependency: z.ZodObject<{
155
+ key: z.ZodEnum<{
156
+ menu: "menu";
157
+ appointments: "appointments";
158
+ reservations: "reservations";
159
+ service: "service";
160
+ orders: "orders";
161
+ staff: "staff";
162
+ availability: "availability";
163
+ }>;
164
+ description: z.ZodString;
165
+ name: z.ZodOptional<z.ZodString>;
166
+ }, z.core.$strip>;
167
+ }, z.core.$strip>>>;
168
+ }, z.core.$strip>;
12
169
  //# sourceMappingURL=modules.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"modules.schema.d.ts","sourceRoot":"","sources":["../../../../src/core/business/modules/modules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AAEnB,eAAO,MAAM,YAAY;;;;;;;;EAQvB,CAAA;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
1
+ {"version":3,"file":"modules.schema.d.ts","sourceRoot":"","sources":["../../../../src/core/business/modules/modules.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAA;AAEnB,eAAO,MAAM,YAAY;;;;;;;;EAQvB,CAAA;AACF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA;AAGjD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;iBAIpC,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAE3E,eAAO,MAAM,mBAAmB;;;;;;;;;;;;iBAE9B,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE/D,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AACzE,eAAO,MAAM,8BAA8B;;;;;;;iBAGzC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AACrF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAItC,CAAA;AACF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIjC,CAAA"}
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ModuleSchema = void 0;
6
+ exports.ResModuleEntitieSchema = exports.ResModuleDependenciesSchema = exports.CreateModuleDependenciesSchema = exports.ModuleDependenciesSchema = exports.ModuleEntitieSchema = exports.CreateModuleEntitieSchema = exports.ModuleSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  exports.ModuleSchema = zod_1.default.enum([
9
9
  "appointments",
@@ -14,4 +14,32 @@ exports.ModuleSchema = zod_1.default.enum([
14
14
  "availability",
15
15
  "service"
16
16
  ]);
17
+ exports.CreateModuleEntitieSchema = zod_1.default.object({
18
+ key: exports.ModuleSchema,
19
+ name: zod_1.default.string().optional(),
20
+ description: zod_1.default.string(),
21
+ });
22
+ exports.ModuleEntitieSchema = exports.CreateModuleEntitieSchema.extend({
23
+ name: zod_1.default.string().optional(),
24
+ });
25
+ exports.ModuleDependenciesSchema = zod_1.default.object({
26
+ isOptional: zod_1.default.boolean(),
27
+ description: zod_1.default.string().optional(),
28
+ created_at: zod_1.default.date(),
29
+ updated_at: zod_1.default.date()
30
+ });
31
+ exports.CreateModuleDependenciesSchema = exports.ModuleDependenciesSchema.extend({
32
+ module_id: zod_1.default.number(),
33
+ dependency_id: zod_1.default.number()
34
+ });
35
+ exports.ResModuleDependenciesSchema = exports.ModuleDependenciesSchema.extend({
36
+ module_dependency_id: zod_1.default.string(),
37
+ module: exports.ModuleEntitieSchema,
38
+ dependency: exports.ModuleEntitieSchema
39
+ });
40
+ exports.ResModuleEntitieSchema = exports.ModuleEntitieSchema.extend({
41
+ businesses: zod_1.default.array(zod_1.default.number()).optional(),
42
+ as_dependencies: zod_1.default.array(exports.ResModuleDependenciesSchema).optional(),
43
+ depended_by: zod_1.default.array(exports.ResModuleDependenciesSchema).optional()
44
+ });
17
45
  //# sourceMappingURL=modules.schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"modules.schema.js","sourceRoot":"","sources":["../../../../src/core/business/modules/modules.schema.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAmB;AAEN,QAAA,YAAY,GAAG,aAAC,CAAC,IAAI,CAAC;IAC/B,cAAc;IACd,cAAc;IACd,MAAM;IACN,QAAQ;IACR,OAAO;IACP,cAAc;IACd,SAAS;CACZ,CAAC,CAAA"}
1
+ {"version":3,"file":"modules.schema.js","sourceRoot":"","sources":["../../../../src/core/business/modules/modules.schema.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAmB;AAEN,QAAA,YAAY,GAAG,aAAC,CAAC,IAAI,CAAC;IAC/B,cAAc;IACd,cAAc;IACd,MAAM;IACN,QAAQ;IACR,OAAO;IACP,cAAc;IACd,SAAS;CACZ,CAAC,CAAA;AAIW,QAAA,yBAAyB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC9C,GAAG,EAAC,oBAAY;IAChB,IAAI,EAAC,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC1B,WAAW,EAAC,aAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAA;AAGW,QAAA,mBAAmB,GAAG,iCAAyB,CAAC,MAAM,CAAC;IAChE,IAAI,EAAC,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAA;AAIW,QAAA,wBAAwB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC7C,UAAU,EAAC,aAAC,CAAC,OAAO,EAAE;IACtB,WAAW,EAAC,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAC,aAAC,CAAC,IAAI,EAAE;IACnB,UAAU,EAAC,aAAC,CAAC,IAAI,EAAE;CACtB,CAAC,CAAA;AAEW,QAAA,8BAA8B,GAAG,gCAAwB,CAAC,MAAM,CAAC;IAC1E,SAAS,EAAC,aAAC,CAAC,MAAM,EAAE;IACpB,aAAa,EAAC,aAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAA;AAEW,QAAA,2BAA2B,GAAG,gCAAwB,CAAC,MAAM,CAAC;IACvE,oBAAoB,EAAC,aAAC,CAAC,MAAM,EAAE;IAC/B,MAAM,EAAC,2BAAmB;IAC1B,UAAU,EAAC,2BAAmB;CACjC,CAAC,CAAA;AACW,QAAA,sBAAsB,GAAG,2BAAmB,CAAC,MAAM,CAAC;IAC7D,UAAU,EAAC,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACzC,eAAe,EAAC,aAAC,CAAC,KAAK,CAAC,mCAA2B,CAAC,CAAC,QAAQ,EAAE;IAC/D,WAAW,EAAC,aAAC,CAAC,KAAK,CAAC,mCAA2B,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAA"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- export * from "./core/business/elements/elements.schema";
1
+ export * from "./core/users/role/role.schema";
2
+ export * from "./core/users/user/user.schema";
2
3
  export * from "./core/business/business/business.schema";
4
+ export * from "./core/business/elements/elements.schema";
3
5
  export * from "./core/business/modules/modules.constants";
4
6
  export * from "./core/business/modules/modules.schema";
5
7
  export * from "./core/business/scalinky/scalinky.schema";
@@ -7,6 +9,4 @@ export * from "./core/business/social-kind/social-kind.schema";
7
9
  export * from "./core/business/style/style.schema";
8
10
  export * from "./core/business/theme/theme.schema";
9
11
  export * from "./core/business/variants/variants.schema";
10
- export * from "./core/users/role/role.schema";
11
- export * from "./core/users/user/user.schema";
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC"}
package/dist/index.js CHANGED
@@ -14,8 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./core/business/elements/elements.schema"), exports);
17
+ __exportStar(require("./core/users/role/role.schema"), exports);
18
+ __exportStar(require("./core/users/user/user.schema"), exports);
18
19
  __exportStar(require("./core/business/business/business.schema"), exports);
20
+ __exportStar(require("./core/business/elements/elements.schema"), exports);
19
21
  __exportStar(require("./core/business/modules/modules.constants"), exports);
20
22
  __exportStar(require("./core/business/modules/modules.schema"), exports);
21
23
  __exportStar(require("./core/business/scalinky/scalinky.schema"), exports);
@@ -23,6 +25,4 @@ __exportStar(require("./core/business/social-kind/social-kind.schema"), exports)
23
25
  __exportStar(require("./core/business/style/style.schema"), exports);
24
26
  __exportStar(require("./core/business/theme/theme.schema"), exports);
25
27
  __exportStar(require("./core/business/variants/variants.schema"), exports);
26
- __exportStar(require("./core/users/role/role.schema"), exports);
27
- __exportStar(require("./core/users/user/user.schema"), exports);
28
28
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2EAAyD;AACzD,2EAAyD;AACzD,4EAA0D;AAC1D,yEAAuD;AACvD,2EAAyD;AACzD,iFAA+D;AAC/D,qEAAmD;AACnD,qEAAmD;AACnD,2EAAyD;AACzD,gEAA8C;AAC9C,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,gEAA8C;AAC9C,2EAAyD;AACzD,2EAAyD;AACzD,4EAA0D;AAC1D,yEAAuD;AACvD,2EAAyD;AACzD,iFAA+D;AAC/D,qEAAmD;AACnD,qEAAmD;AACnD,2EAAyD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgenarog/shared-contracts",
3
- "version": "1.1.24",
3
+ "version": "1.1.25",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",