@danielgenarog/shared-contracts 1.1.14 → 1.1.16

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.
@@ -108,4 +108,41 @@ export declare const ResElementSchema: z.ZodObject<{
108
108
  element_id: z.ZodString;
109
109
  }, z.core.$strip>;
110
110
  export type ResElement = z.infer<typeof ResElementSchema>;
111
+ export declare const OptionalElementSchema: z.ZodObject<{
112
+ type: z.ZodEnum<{
113
+ link: "link";
114
+ info: "info";
115
+ }>;
116
+ order: z.ZodNumber;
117
+ visible: z.ZodBoolean;
118
+ data: z.ZodObject<{
119
+ label: z.ZodOptional<z.ZodString>;
120
+ href: z.ZodOptional<z.ZodString>;
121
+ }, z.core.$strip>;
122
+ meta: z.ZodObject<{
123
+ kind: z.ZodOptional<z.ZodEnum<{
124
+ whatsapp: "whatsapp";
125
+ instagram: "instagram";
126
+ menu: "menu";
127
+ maps: "maps";
128
+ website: "website";
129
+ phone: "phone";
130
+ appointments: "appointments";
131
+ reservations: "reservations";
132
+ orders: "orders";
133
+ }>>;
134
+ }, z.core.$strip>;
135
+ options: z.ZodOptional<z.ZodObject<{
136
+ variant: z.ZodOptional<z.ZodEnum<{
137
+ default: "default";
138
+ surface: "surface";
139
+ outline: "outline";
140
+ noborder: "noborder";
141
+ }>>;
142
+ style: z.ZodOptional<z.ZodType<CSS.Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<CSS.Properties<0 | (string & {}), string & {}>, unknown>>>;
143
+ className: z.ZodOptional<z.ZodString>;
144
+ }, z.core.$strip>>;
145
+ element_id: z.ZodOptional<z.ZodString>;
146
+ }, z.core.$strip>;
147
+ export type OptionalElement = z.infer<typeof OptionalElementSchema>;
111
148
  //# sourceMappingURL=elements.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"elements.schema.d.ts","sourceRoot":"","sources":["../../../../src/core/business/elements/elements.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAA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EF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEjE,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAE3D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;iBAE5B,CAAA;AAEF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAG3D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOxB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAEnD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAE3B,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AACzD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAEhC,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,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.ResElementSchema = exports.ElementSchema = exports.ElementMetaSchema = exports.ElementDataSchema = exports.ElementOptionsSchema = exports.ElementTypeSchema = void 0;
6
+ exports.OptionalElementSchema = exports.ResElementSchema = exports.ElementSchema = exports.ElementMetaSchema = exports.ElementDataSchema = exports.ElementOptionsSchema = exports.ElementTypeSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  const variants_schema_1 = require("../variants/variants.schema");
9
9
  const social_kind_schema_1 = require("../social-kind/social-kind.schema");
@@ -34,4 +34,7 @@ exports.ElementSchema = zod_1.default.object({
34
34
  exports.ResElementSchema = exports.ElementSchema.extend({
35
35
  element_id: zod_1.default.string()
36
36
  });
37
+ exports.OptionalElementSchema = exports.ElementSchema.extend({
38
+ element_id: zod_1.default.string().optional()
39
+ });
37
40
  //# sourceMappingURL=elements.schema.js.map
@@ -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,yBAAiB;IACvB,KAAK,EAAE,aAA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,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;AAEW,QAAA,qBAAqB,GAAG,qBAAa,CAAC,MAAM,CAAC;IACtD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAA"}
@@ -64,6 +64,7 @@ export declare const ScalinkyLiPropsSchema: z.ZodObject<{
64
64
  orders: "orders";
65
65
  }>>;
66
66
  }, z.core.$strip>;
67
+ order: z.ZodNumber;
67
68
  visible: z.ZodBoolean;
68
69
  options: z.ZodOptional<z.ZodObject<{
69
70
  variant: z.ZodOptional<z.ZodEnum<{
@@ -75,6 +76,7 @@ export declare const ScalinkyLiPropsSchema: z.ZodObject<{
75
76
  style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
76
77
  className: z.ZodOptional<z.ZodString>;
77
78
  }, z.core.$strip>>;
79
+ element_id: z.ZodOptional<z.ZodString>;
78
80
  type: z.ZodLiteral<"info">;
79
81
  }, z.core.$strip>;
80
82
  export type ScalinkyLiProps = z.infer<typeof ScalinkyLiPropsSchema>;
@@ -99,6 +101,7 @@ export declare const ScalinkyLinkPropsSchema: z.ZodObject<{
99
101
  orders: "orders";
100
102
  }>>;
101
103
  }, z.core.$strip>;
104
+ order: z.ZodNumber;
102
105
  visible: z.ZodBoolean;
103
106
  options: z.ZodOptional<z.ZodObject<{
104
107
  variant: z.ZodOptional<z.ZodEnum<{
@@ -110,14 +113,83 @@ export declare const ScalinkyLinkPropsSchema: z.ZodObject<{
110
113
  style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
111
114
  className: z.ZodOptional<z.ZodString>;
112
115
  }, z.core.$strip>>;
116
+ element_id: z.ZodOptional<z.ZodString>;
113
117
  type: z.ZodLiteral<"link">;
114
118
  }, z.core.$strip>;
115
119
  export type ScalinkyLinkProps = z.infer<typeof ScalinkyLinkPropsSchema>;
116
120
  /** =========================
117
121
  * Social
118
122
  * ========================= */
123
+ export declare const ScalinkyUnionSocialPropsSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
124
+ data: z.ZodObject<{
125
+ label: z.ZodOptional<z.ZodString>;
126
+ href: z.ZodOptional<z.ZodString>;
127
+ }, z.core.$strip>;
128
+ meta: z.ZodObject<{
129
+ kind: z.ZodOptional<z.ZodEnum<{
130
+ whatsapp: "whatsapp";
131
+ instagram: "instagram";
132
+ menu: "menu";
133
+ maps: "maps";
134
+ website: "website";
135
+ phone: "phone";
136
+ appointments: "appointments";
137
+ reservations: "reservations";
138
+ orders: "orders";
139
+ }>>;
140
+ }, z.core.$strip>;
141
+ order: z.ZodNumber;
142
+ visible: z.ZodBoolean;
143
+ options: z.ZodOptional<z.ZodObject<{
144
+ variant: z.ZodOptional<z.ZodEnum<{
145
+ default: "default";
146
+ surface: "surface";
147
+ outline: "outline";
148
+ noborder: "noborder";
149
+ }>>;
150
+ style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
151
+ className: z.ZodOptional<z.ZodString>;
152
+ }, z.core.$strip>>;
153
+ element_id: z.ZodOptional<z.ZodString>;
154
+ type: z.ZodLiteral<"info">;
155
+ disabled: z.ZodOptional<z.ZodBoolean>;
156
+ }, z.core.$strip>, z.ZodObject<{
157
+ data: z.ZodObject<{
158
+ label: z.ZodOptional<z.ZodString>;
159
+ href: z.ZodOptional<z.ZodString>;
160
+ }, z.core.$strip>;
161
+ meta: z.ZodObject<{
162
+ kind: z.ZodOptional<z.ZodEnum<{
163
+ whatsapp: "whatsapp";
164
+ instagram: "instagram";
165
+ menu: "menu";
166
+ maps: "maps";
167
+ website: "website";
168
+ phone: "phone";
169
+ appointments: "appointments";
170
+ reservations: "reservations";
171
+ orders: "orders";
172
+ }>>;
173
+ }, z.core.$strip>;
174
+ order: z.ZodNumber;
175
+ visible: z.ZodBoolean;
176
+ options: z.ZodOptional<z.ZodObject<{
177
+ variant: z.ZodOptional<z.ZodEnum<{
178
+ default: "default";
179
+ surface: "surface";
180
+ outline: "outline";
181
+ noborder: "noborder";
182
+ }>>;
183
+ style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
184
+ className: z.ZodOptional<z.ZodString>;
185
+ }, z.core.$strip>>;
186
+ element_id: z.ZodOptional<z.ZodString>;
187
+ type: z.ZodLiteral<"link">;
188
+ disabled: z.ZodOptional<z.ZodBoolean>;
189
+ }, z.core.$strip>], "type">;
190
+ export type ScalinkyUnionSocialProps = z.infer<typeof ScalinkyUnionSocialPropsSchema>;
119
191
  export declare const ScalinkyElementListPropsSchema: z.ZodObject<{
120
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
192
+ items: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
121
193
  data: z.ZodObject<{
122
194
  label: z.ZodOptional<z.ZodString>;
123
195
  href: z.ZodOptional<z.ZodString>;
@@ -135,6 +207,7 @@ export declare const ScalinkyElementListPropsSchema: z.ZodObject<{
135
207
  orders: "orders";
136
208
  }>>;
137
209
  }, z.core.$strip>;
210
+ order: z.ZodNumber;
138
211
  visible: z.ZodBoolean;
139
212
  options: z.ZodOptional<z.ZodObject<{
140
213
  variant: z.ZodOptional<z.ZodEnum<{
@@ -146,8 +219,8 @@ export declare const ScalinkyElementListPropsSchema: z.ZodObject<{
146
219
  style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
147
220
  className: z.ZodOptional<z.ZodString>;
148
221
  }, z.core.$strip>>;
222
+ element_id: z.ZodOptional<z.ZodString>;
149
223
  type: z.ZodLiteral<"info">;
150
- order: z.ZodNumber;
151
224
  disabled: z.ZodOptional<z.ZodBoolean>;
152
225
  }, z.core.$strip>, z.ZodObject<{
153
226
  data: z.ZodObject<{
@@ -167,6 +240,7 @@ export declare const ScalinkyElementListPropsSchema: z.ZodObject<{
167
240
  orders: "orders";
168
241
  }>>;
169
242
  }, z.core.$strip>;
243
+ order: z.ZodNumber;
170
244
  visible: z.ZodBoolean;
171
245
  options: z.ZodOptional<z.ZodObject<{
172
246
  variant: z.ZodOptional<z.ZodEnum<{
@@ -178,10 +252,10 @@ export declare const ScalinkyElementListPropsSchema: z.ZodObject<{
178
252
  style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
179
253
  className: z.ZodOptional<z.ZodString>;
180
254
  }, z.core.$strip>>;
255
+ element_id: z.ZodOptional<z.ZodString>;
181
256
  type: z.ZodLiteral<"link">;
182
- order: z.ZodNumber;
183
257
  disabled: z.ZodOptional<z.ZodBoolean>;
184
- }, z.core.$strip>], "type">>;
258
+ }, z.core.$strip>], "type">>>;
185
259
  }, z.core.$strip>;
186
260
  export type ScalinkyElementListProps = z.infer<typeof ScalinkyElementListPropsSchema>;
187
261
  export declare const MockupSizeSchema: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"scalinky.schema.d.ts","sourceRoot":"","sources":["../../../../src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AO,8BAA8B,CAAC,CAAA;AACrF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIzC,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"}
@@ -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.ScalinkyPropsSchema = exports.MockupSizeSchema = exports.ScalinkyElementListPropsSchema = exports.ScalinkyLinkPropsSchema = exports.ScalinkyLiPropsSchema = exports.ScalinkyDescriptionPropsSchema = exports.ScalinkyNamePropsSchema = exports.ScalinkyLogoPropsSchema = void 0;
6
+ exports.ScalinkyPropsSchema = exports.MockupSizeSchema = exports.ScalinkyElementListPropsSchema = exports.ScalinkyUnionSocialPropsSchema = exports.ScalinkyLinkPropsSchema = exports.ScalinkyLiPropsSchema = exports.ScalinkyDescriptionPropsSchema = exports.ScalinkyNamePropsSchema = exports.ScalinkyLogoPropsSchema = void 0;
7
7
  const zod_1 = __importDefault(require("zod"));
8
8
  const style_schema_1 = require("../style/style.schema");
9
9
  const elements_schema_1 = require("../elements/elements.schema");
@@ -29,23 +29,24 @@ exports.ScalinkyDescriptionPropsSchema = zod_1.default.object({
29
29
  /** =========================
30
30
  * Li
31
31
  * ========================= */
32
- exports.ScalinkyLiPropsSchema = elements_schema_1.ElementSchema.omit({ type: true, order: true }).extend({
32
+ exports.ScalinkyLiPropsSchema = elements_schema_1.OptionalElementSchema.omit({ type: true }).extend({
33
33
  type: zod_1.default.literal("info"),
34
34
  });
35
35
  /** =========================
36
36
  * Links
37
37
  * ========================= */
38
- exports.ScalinkyLinkPropsSchema = elements_schema_1.ElementSchema.omit({ type: true, order: true }).extend({
38
+ exports.ScalinkyLinkPropsSchema = elements_schema_1.OptionalElementSchema.omit({ type: true }).extend({
39
39
  type: zod_1.default.literal("link")
40
40
  });
41
41
  /** =========================
42
42
  * Social
43
43
  * ========================= */
44
+ exports.ScalinkyUnionSocialPropsSchema = zod_1.default.discriminatedUnion("type", [
45
+ exports.ScalinkyLiPropsSchema.extend({ disabled: zod_1.default.boolean().optional() }),
46
+ exports.ScalinkyLinkPropsSchema.extend({ disabled: zod_1.default.boolean().optional() }),
47
+ ]);
44
48
  exports.ScalinkyElementListPropsSchema = zod_1.default.object({
45
- items: zod_1.default.array(zod_1.default.discriminatedUnion("type", [
46
- exports.ScalinkyLiPropsSchema.extend({ order: zod_1.default.number(), disabled: zod_1.default.boolean().optional() }),
47
- exports.ScalinkyLinkPropsSchema.extend({ order: zod_1.default.number(), disabled: zod_1.default.boolean().optional() }),
48
- ])),
49
+ items: zod_1.default.array(exports.ScalinkyUnionSocialPropsSchema).optional(),
49
50
  });
50
51
  exports.MockupSizeSchema = zod_1.default.enum(["sm", "md", "lg"]);
51
52
  exports.ScalinkyPropsSchema = zod_1.default.object({
@@ -1 +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,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,QAAQ,EAAE;IACzB,KAAK,EAAE,gCAAiB,CAAC,QAAQ,EAAE;IACnC,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,QAAQ,EAAE,aAAC,CAAC,GAAG,EAAE;IACjB,MAAM,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,wBAAgB,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC/B,YAAY,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  export * from "./core/business/business/business.schema";
2
+ export * from "./core/business/scalinky/scalinky.schema";
3
+ export * from "./core/business/elements/elements.schema";
2
4
  export * from "./core/business/modules/modules.constants";
3
5
  export * from "./core/business/modules/modules.schema";
4
6
  export * from "./core/business/social-kind/social-kind.schema";
5
- export * from "./core/business/elements/elements.schema";
6
- export * from "./core/business/scalinky/scalinky.schema";
7
7
  export * from "./core/business/style/style.schema";
8
8
  export * from "./core/business/theme/theme.schema";
9
9
  export * from "./core/business/variants/variants.schema";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,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,0CAA0C,CAAC;AACzD,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;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
package/dist/index.js CHANGED
@@ -15,11 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./core/business/business/business.schema"), exports);
18
+ __exportStar(require("./core/business/scalinky/scalinky.schema"), exports);
19
+ __exportStar(require("./core/business/elements/elements.schema"), exports);
18
20
  __exportStar(require("./core/business/modules/modules.constants"), exports);
19
21
  __exportStar(require("./core/business/modules/modules.schema"), exports);
20
22
  __exportStar(require("./core/business/social-kind/social-kind.schema"), exports);
21
- __exportStar(require("./core/business/elements/elements.schema"), exports);
22
- __exportStar(require("./core/business/scalinky/scalinky.schema"), exports);
23
23
  __exportStar(require("./core/business/style/style.schema"), exports);
24
24
  __exportStar(require("./core/business/theme/theme.schema"), exports);
25
25
  __exportStar(require("./core/business/variants/variants.schema"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2EAAyD;AACzD,4EAA0D;AAC1D,yEAAuD;AACvD,iFAA+D;AAC/D,2EAAyD;AACzD,2EAAyD;AACzD,qEAAmD;AACnD,qEAAmD;AACnD,2EAAyD;AACzD,gEAA8C;AAC9C,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2EAAyD;AACzD,2EAAyD;AACzD,2EAAyD;AACzD,4EAA0D;AAC1D,yEAAuD;AACvD,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.1.14",
3
+ "version": "1.1.16",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",