@danielgenarog/shared-contracts 1.0.9 → 1.1.0

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.
@@ -47,11 +47,11 @@ export declare const ResBusinessSchema: z.ZodObject<{
47
47
  }>;
48
48
  order: z.ZodNumber;
49
49
  visible: z.ZodBoolean;
50
- data: z.ZodOptional<z.ZodObject<{
50
+ data: z.ZodObject<{
51
51
  label: z.ZodOptional<z.ZodString>;
52
52
  href: z.ZodOptional<z.ZodString>;
53
- }, z.core.$strip>>;
54
- meta: z.ZodOptional<z.ZodObject<{
53
+ }, z.core.$strip>;
54
+ meta: z.ZodObject<{
55
55
  kind: z.ZodOptional<z.ZodEnum<{
56
56
  whatsapp: "whatsapp";
57
57
  instagram: "instagram";
@@ -63,7 +63,7 @@ export declare const ResBusinessSchema: z.ZodObject<{
63
63
  reservations: "reservations";
64
64
  orders: "orders";
65
65
  }>>;
66
- }, z.core.$strip>>;
66
+ }, z.core.$strip>;
67
67
  options: z.ZodOptional<z.ZodObject<{
68
68
  variant: z.ZodOptional<z.ZodEnum<{
69
69
  default: "default";
@@ -143,11 +143,11 @@ export declare const CreateBusinessSchema: z.ZodObject<{
143
143
  }>;
144
144
  order: z.ZodNumber;
145
145
  visible: z.ZodBoolean;
146
- data: z.ZodOptional<z.ZodObject<{
146
+ data: z.ZodObject<{
147
147
  label: z.ZodOptional<z.ZodString>;
148
148
  href: z.ZodOptional<z.ZodString>;
149
- }, z.core.$strip>>;
150
- meta: z.ZodOptional<z.ZodObject<{
149
+ }, z.core.$strip>;
150
+ meta: z.ZodObject<{
151
151
  kind: z.ZodOptional<z.ZodEnum<{
152
152
  whatsapp: "whatsapp";
153
153
  instagram: "instagram";
@@ -159,7 +159,7 @@ export declare const CreateBusinessSchema: z.ZodObject<{
159
159
  reservations: "reservations";
160
160
  orders: "orders";
161
161
  }>>;
162
- }, z.core.$strip>>;
162
+ }, z.core.$strip>;
163
163
  options: z.ZodOptional<z.ZodObject<{
164
164
  variant: z.ZodOptional<z.ZodEnum<{
165
165
  default: "default";
@@ -42,11 +42,11 @@ export declare const ElementSchema: z.ZodObject<{
42
42
  }>;
43
43
  order: z.ZodNumber;
44
44
  visible: z.ZodBoolean;
45
- data: z.ZodOptional<z.ZodObject<{
45
+ data: z.ZodObject<{
46
46
  label: z.ZodOptional<z.ZodString>;
47
47
  href: z.ZodOptional<z.ZodString>;
48
- }, z.core.$strip>>;
49
- meta: z.ZodOptional<z.ZodObject<{
48
+ }, z.core.$strip>;
49
+ meta: z.ZodObject<{
50
50
  kind: z.ZodOptional<z.ZodEnum<{
51
51
  whatsapp: "whatsapp";
52
52
  instagram: "instagram";
@@ -58,7 +58,7 @@ export declare const ElementSchema: z.ZodObject<{
58
58
  reservations: "reservations";
59
59
  orders: "orders";
60
60
  }>>;
61
- }, z.core.$strip>>;
61
+ }, z.core.$strip>;
62
62
  options: z.ZodOptional<z.ZodObject<{
63
63
  variant: z.ZodOptional<z.ZodEnum<{
64
64
  default: "default";
@@ -78,11 +78,11 @@ export declare const ResElementSchema: z.ZodObject<{
78
78
  }>;
79
79
  order: z.ZodNumber;
80
80
  visible: z.ZodBoolean;
81
- data: z.ZodOptional<z.ZodObject<{
81
+ data: z.ZodObject<{
82
82
  label: z.ZodOptional<z.ZodString>;
83
83
  href: z.ZodOptional<z.ZodString>;
84
- }, z.core.$strip>>;
85
- meta: z.ZodOptional<z.ZodObject<{
84
+ }, z.core.$strip>;
85
+ meta: z.ZodObject<{
86
86
  kind: z.ZodOptional<z.ZodEnum<{
87
87
  whatsapp: "whatsapp";
88
88
  instagram: "instagram";
@@ -94,7 +94,7 @@ export declare const ResElementSchema: z.ZodObject<{
94
94
  reservations: "reservations";
95
95
  orders: "orders";
96
96
  }>>;
97
- }, z.core.$strip>>;
97
+ }, z.core.$strip>;
98
98
  options: z.ZodOptional<z.ZodObject<{
99
99
  variant: z.ZodOptional<z.ZodEnum<{
100
100
  default: "default";
@@ -27,8 +27,8 @@ exports.ElementSchema = zod_1.default.object({
27
27
  type: exports.ElementTypeSchema,
28
28
  order: zod_1.default.number(),
29
29
  visible: zod_1.default.boolean(),
30
- data: exports.ElementDataSchema.optional(),
31
- meta: exports.ElementMetaSchema.optional(),
30
+ data: exports.ElementDataSchema,
31
+ meta: exports.ElementMetaSchema,
32
32
  options: exports.ElementOptionsSchema.optional(),
33
33
  });
34
34
  exports.ResElementSchema = exports.ElementSchema.extend({
@@ -1 +1 @@
1
- {"version":3,"file":"elements.schema.js","sourceRoot":"","sources":["../../../../src/core/business/elements/elements.schema.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAmB;AAEnB,iEAAsD;AACtD,0EAA+D;AAElD,QAAA,iBAAiB,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;AAIzD,MAAM,WAAW,GAA8B,aAAC;KAC7C,MAAM,CAAC,EAAE,CAAC;KACV,QAAQ,CAAC,aAAC,CAAC,GAAG,EAAE,CAAC,CAAC;AAGR,QAAA,oBAAoB,GAAG,aAAC,CAAC,MAAM,CAAC;IACzC,OAAO,EAAE,yBAAO,CAAC,QAAQ,EAAE;IAC3B,KAAK,EAAE,WAAW,CAAC,QAAQ,EAAE;IAC7B,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAA;AAIW,QAAA,iBAAiB,GAAG,aAAC,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAA;AAIW,QAAA,iBAAiB,GAAG,aAAC,CAAC,MAAM,CAAC;IACtC,IAAI,EAAE,+BAAU,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAA;AAKW,QAAA,aAAa,GAAG,aAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,yB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;AAKW,QAAA,aAAa,GAAG,aAAC,CAAC,MAAM,CAAC;IAClC,IAAI,EAAE,yBAAiB;IACvB,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,aAAC,CAAC,OAAO,EAAE;IACpB,IAAI,EAAE,yBAAiB;IACvB,IAAI,EAAE,yBAAiB;IACvB,OAAO,EAAE,4BAAoB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAA;AAIW,QAAA,gBAAgB,GAAG,qBAAa,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;CACzB,CAAC,CAAA"}
@@ -0,0 +1,196 @@
1
+ import z from "zod";
2
+ export declare const ScalinkyLogoPropsSchema: z.ZodObject<{
3
+ logo: z.ZodString;
4
+ styles: z.ZodObject<{
5
+ width: z.ZodOptional<z.ZodNumber>;
6
+ height: z.ZodOptional<z.ZodNumber>;
7
+ noborder: z.ZodOptional<z.ZodBoolean>;
8
+ centered: z.ZodOptional<z.ZodBoolean>;
9
+ variant: z.ZodOptional<z.ZodEnum<{
10
+ default: "default";
11
+ surface: "surface";
12
+ outline: "outline";
13
+ noborder: "noborder";
14
+ }>>;
15
+ }, z.core.$strip>;
16
+ }, z.core.$strip>;
17
+ export type ScalinkyLogoProps = z.infer<typeof ScalinkyLogoPropsSchema>;
18
+ /** =========================
19
+ * Name
20
+ * ========================= */
21
+ export declare const ScalinkyNamePropsSchema: z.ZodObject<{
22
+ name: z.ZodString;
23
+ style: z.ZodObject<{
24
+ color: z.ZodOptional<z.ZodString>;
25
+ backgroundColor: z.ZodOptional<z.ZodString>;
26
+ noborder: z.ZodOptional<z.ZodBoolean>;
27
+ text_position: z.ZodOptional<z.ZodString>;
28
+ className: z.ZodOptional<z.ZodString>;
29
+ }, z.core.$strip>;
30
+ }, z.core.$strip>;
31
+ export type ScalinkyNameProps = z.infer<typeof ScalinkyNamePropsSchema>;
32
+ /** =========================
33
+ * Description
34
+ * ========================= */
35
+ export declare const ScalinkyDescriptionPropsSchema: z.ZodObject<{
36
+ description: z.ZodString;
37
+ style: z.ZodObject<{
38
+ color: z.ZodOptional<z.ZodString>;
39
+ backgroundColor: z.ZodOptional<z.ZodString>;
40
+ noborder: z.ZodOptional<z.ZodBoolean>;
41
+ text_position: z.ZodOptional<z.ZodString>;
42
+ className: z.ZodOptional<z.ZodString>;
43
+ }, z.core.$strip>;
44
+ }, z.core.$strip>;
45
+ export type ScalinkyDescriptionProps = z.infer<typeof ScalinkyDescriptionPropsSchema>;
46
+ /** =========================
47
+ * Li
48
+ * ========================= */
49
+ export declare const ScalinkyLiPropsSchema: z.ZodObject<{
50
+ type: z.ZodEnum<{
51
+ link: "link";
52
+ info: "info";
53
+ }>;
54
+ order: z.ZodNumber;
55
+ visible: z.ZodBoolean;
56
+ meta: z.ZodObject<{
57
+ kind: z.ZodOptional<z.ZodEnum<{
58
+ whatsapp: "whatsapp";
59
+ instagram: "instagram";
60
+ menu: "menu";
61
+ maps: "maps";
62
+ website: "website";
63
+ phone: "phone";
64
+ appointments: "appointments";
65
+ reservations: "reservations";
66
+ orders: "orders";
67
+ }>>;
68
+ }, z.core.$strip>;
69
+ options: z.ZodOptional<z.ZodObject<{
70
+ variant: z.ZodOptional<z.ZodEnum<{
71
+ default: "default";
72
+ surface: "surface";
73
+ outline: "outline";
74
+ noborder: "noborder";
75
+ }>>;
76
+ style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
77
+ className: z.ZodOptional<z.ZodString>;
78
+ }, z.core.$strip>>;
79
+ data: z.ZodObject<{
80
+ label: z.ZodOptional<z.ZodString>;
81
+ }, z.core.$strip>;
82
+ }, z.core.$strip>;
83
+ export type ScalinkyLiProps = z.infer<typeof ScalinkyLiPropsSchema>;
84
+ /** =========================
85
+ * Links
86
+ * ========================= */
87
+ export declare const ScalinkyLinkPropsSchema: z.ZodObject<{
88
+ type: z.ZodEnum<{
89
+ link: "link";
90
+ info: "info";
91
+ }>;
92
+ order: z.ZodNumber;
93
+ visible: z.ZodBoolean;
94
+ data: z.ZodObject<{
95
+ label: z.ZodOptional<z.ZodString>;
96
+ href: z.ZodOptional<z.ZodString>;
97
+ }, z.core.$strip>;
98
+ meta: z.ZodObject<{
99
+ kind: z.ZodOptional<z.ZodEnum<{
100
+ whatsapp: "whatsapp";
101
+ instagram: "instagram";
102
+ menu: "menu";
103
+ maps: "maps";
104
+ website: "website";
105
+ phone: "phone";
106
+ appointments: "appointments";
107
+ reservations: "reservations";
108
+ orders: "orders";
109
+ }>>;
110
+ }, z.core.$strip>;
111
+ options: z.ZodOptional<z.ZodObject<{
112
+ variant: z.ZodOptional<z.ZodEnum<{
113
+ default: "default";
114
+ surface: "surface";
115
+ outline: "outline";
116
+ noborder: "noborder";
117
+ }>>;
118
+ style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
119
+ className: z.ZodOptional<z.ZodString>;
120
+ }, z.core.$strip>>;
121
+ disabled: z.ZodBoolean;
122
+ }, z.core.$strip>;
123
+ export type ScalinkyLinkProps = z.infer<typeof ScalinkyLinkPropsSchema>;
124
+ /** =========================
125
+ * Social
126
+ * ========================= */
127
+ export declare const ScalinkyElementListPropsSchema: z.ZodObject<{
128
+ items: z.ZodArray<z.ZodObject<{
129
+ type: z.ZodEnum<{
130
+ link: "link";
131
+ info: "info";
132
+ }>;
133
+ order: z.ZodNumber;
134
+ visible: z.ZodBoolean;
135
+ data: z.ZodObject<{
136
+ label: z.ZodOptional<z.ZodString>;
137
+ href: z.ZodOptional<z.ZodString>;
138
+ }, z.core.$strip>;
139
+ meta: z.ZodObject<{
140
+ kind: z.ZodOptional<z.ZodEnum<{
141
+ whatsapp: "whatsapp";
142
+ instagram: "instagram";
143
+ menu: "menu";
144
+ maps: "maps";
145
+ website: "website";
146
+ phone: "phone";
147
+ appointments: "appointments";
148
+ reservations: "reservations";
149
+ orders: "orders";
150
+ }>>;
151
+ }, z.core.$strip>;
152
+ options: z.ZodOptional<z.ZodObject<{
153
+ variant: z.ZodOptional<z.ZodEnum<{
154
+ default: "default";
155
+ surface: "surface";
156
+ outline: "outline";
157
+ noborder: "noborder";
158
+ }>>;
159
+ style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
160
+ className: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strip>>;
162
+ disabled: z.ZodBoolean;
163
+ }, z.core.$strip>>;
164
+ }, z.core.$strip>;
165
+ export type ScalinkyElementListProps = z.infer<typeof ScalinkyElementListPropsSchema>;
166
+ export declare const MockupSizeSchema: z.ZodEnum<{
167
+ sm: "sm";
168
+ md: "md";
169
+ lg: "lg";
170
+ }>;
171
+ export type MockupSize = z.infer<typeof MockupSizeSchema>;
172
+ export declare const ScalinkyPropsSchema: z.ZodObject<{
173
+ id: z.ZodOptional<z.ZodString>;
174
+ theme: z.ZodOptional<z.ZodEnum<{
175
+ default: "default";
176
+ minimalist: "minimalist";
177
+ borderless: "borderless";
178
+ light: "light";
179
+ dark: "dark";
180
+ }>>;
181
+ className: z.ZodOptional<z.ZodString>;
182
+ children: z.ZodAny;
183
+ mockup: z.ZodOptional<z.ZodBoolean>;
184
+ mockupSize: z.ZodOptional<z.ZodEnum<{
185
+ sm: "sm";
186
+ md: "md";
187
+ lg: "lg";
188
+ }>>;
189
+ imageUrl: z.ZodOptional<z.ZodString>;
190
+ imageOverlay: z.ZodOptional<z.ZodBoolean>;
191
+ imageOpacity: z.ZodOptional<z.ZodNumber>;
192
+ imageCover: z.ZodOptional<z.ZodBoolean>;
193
+ imagePosition: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strip>;
195
+ export type ScalinkyProps = z.infer<typeof ScalinkyPropsSchema>;
196
+ //# sourceMappingURL=scalinky.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalinky.schema.d.ts","sourceRoot":"","sources":["../../../../src/core/business/scalinky/scalinky.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBAGlC,CAAA;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACvE;;gCAEgC;AAEhC,eAAO,MAAM,uBAAuB;;;;;;;;;iBAGlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAEvE;;gCAEgC;AAChC,eAAO,MAAM,8BAA8B;;;;;;;;;iBAGzC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAKrF;;gCAEgC;AAChC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE;;gCAEgC;AAChC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAElC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAGvE;;gCAEgC;AAChC,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMzC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAA;AAErF,eAAO,MAAM,gBAAgB;;;;EAA6B,CAAC;AAC3D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACzD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;iBAY9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.ScalinkyPropsSchema = exports.MockupSizeSchema = exports.ScalinkyElementListPropsSchema = exports.ScalinkyLinkPropsSchema = exports.ScalinkyLiPropsSchema = exports.ScalinkyDescriptionPropsSchema = exports.ScalinkyNamePropsSchema = exports.ScalinkyLogoPropsSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const style_schema_1 = require("../style/style.schema");
9
+ const elements_schema_1 = require("../elements/elements.schema");
10
+ const theme_schema_1 = require("../theme/theme.schema");
11
+ exports.ScalinkyLogoPropsSchema = zod_1.default.object({
12
+ logo: zod_1.default.string(),
13
+ styles: style_schema_1.StyleLogoSchema,
14
+ });
15
+ /** =========================
16
+ * Name
17
+ * ========================= */
18
+ exports.ScalinkyNamePropsSchema = zod_1.default.object({
19
+ name: zod_1.default.string(),
20
+ style: style_schema_1.textOptionsSchema,
21
+ });
22
+ /** =========================
23
+ * Description
24
+ * ========================= */
25
+ exports.ScalinkyDescriptionPropsSchema = zod_1.default.object({
26
+ description: zod_1.default.string(),
27
+ style: style_schema_1.textOptionsSchema,
28
+ });
29
+ /** =========================
30
+ * Li
31
+ * ========================= */
32
+ exports.ScalinkyLiPropsSchema = elements_schema_1.ElementSchema.extend({
33
+ data: elements_schema_1.ElementDataSchema.omit({ href: true }),
34
+ });
35
+ /** =========================
36
+ * Links
37
+ * ========================= */
38
+ exports.ScalinkyLinkPropsSchema = elements_schema_1.ElementSchema.extend({
39
+ disabled: zod_1.default.boolean(),
40
+ });
41
+ /** =========================
42
+ * Social
43
+ * ========================= */
44
+ exports.ScalinkyElementListPropsSchema = zod_1.default.object({
45
+ items: zod_1.default.array(elements_schema_1.ElementSchema.extend({
46
+ disabled: zod_1.default.boolean(),
47
+ })),
48
+ });
49
+ exports.MockupSizeSchema = zod_1.default.enum(["sm", "md", "lg"]);
50
+ exports.ScalinkyPropsSchema = zod_1.default.object({
51
+ id: zod_1.default.string().optional(),
52
+ theme: theme_schema_1.ThemeOptionSchema.optional(),
53
+ className: zod_1.default.string().optional(),
54
+ children: zod_1.default.any(),
55
+ mockup: zod_1.default.boolean().optional(),
56
+ mockupSize: exports.MockupSizeSchema.optional(),
57
+ imageUrl: zod_1.default.string().optional(),
58
+ imageOverlay: zod_1.default.boolean().optional(),
59
+ imageOpacity: zod_1.default.number().optional(),
60
+ imageCover: zod_1.default.boolean().optional(),
61
+ imagePosition: zod_1.default.string().optional(),
62
+ });
63
+ //# sourceMappingURL=scalinky.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalinky.schema.js","sourceRoot":"","sources":["../../../../src/core/business/scalinky/scalinky.schema.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,wDAAwF;AACxF,iEAA+E;AAC/E,wDAA0D;AAE7C,QAAA,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,MAAM,EAAE,8BAAe;CACxB,CAAC,CAAA;AAGF;;gCAEgC;AAEnB,QAAA,uBAAuB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC9C,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,gCAAiB;CACzB,CAAC,CAAA;AAGF;;gCAEgC;AACnB,QAAA,8BAA8B,GAAG,aAAC,CAAC,MAAM,CAAC;IACrD,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,gCAAiB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,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
- export * from "./core/users/user/user.schema";
2
- export * from "./core/users/role/role.schema";
3
- export * from "./core/business/business/business.schema";
4
1
  export * from "./core/business/elements/elements.schema";
2
+ export * from "./core/business/business/business.schema";
5
3
  export * from "./core/business/modules/modules.constants";
6
4
  export * from "./core/business/modules/modules.schema";
5
+ export * from "./core/business/scalinky/scalinky.schema";
7
6
  export * from "./core/business/social-kind/social-kind.schema";
8
7
  export * from "./core/business/style/style.schema";
9
8
  export * from "./core/business/theme/theme.schema";
10
9
  export * from "./core/business/variants/variants.schema";
10
+ export * from "./core/users/role/role.schema";
11
+ export * from "./core/users/user/user.schema";
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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,gDAAgD,CAAC;AAC/D,cAAc,oCAAoC,CAAC;AACnD,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC"}
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"}
package/dist/index.js CHANGED
@@ -14,14 +14,15 @@ 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/users/user/user.schema"), exports);
18
- __exportStar(require("./core/users/role/role.schema"), exports);
19
- __exportStar(require("./core/business/business/business.schema"), exports);
20
17
  __exportStar(require("./core/business/elements/elements.schema"), exports);
18
+ __exportStar(require("./core/business/business/business.schema"), exports);
21
19
  __exportStar(require("./core/business/modules/modules.constants"), exports);
22
20
  __exportStar(require("./core/business/modules/modules.schema"), exports);
21
+ __exportStar(require("./core/business/scalinky/scalinky.schema"), exports);
23
22
  __exportStar(require("./core/business/social-kind/social-kind.schema"), exports);
24
23
  __exportStar(require("./core/business/style/style.schema"), exports);
25
24
  __exportStar(require("./core/business/theme/theme.schema"), exports);
26
25
  __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);
27
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,gEAA8C;AAC9C,gEAA8C;AAC9C,2EAAyD;AACzD,2EAAyD;AACzD,4EAA0D;AAC1D,yEAAuD;AACvD,iFAA+D;AAC/D,qEAAmD;AACnD,qEAAmD;AACnD,2EAAyD"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielgenarog/shared-contracts",
3
- "version": "1.0.9",
3
+ "version": "1.1.0",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",