@danielgenarog/shared-contracts 1.1.33 → 1.1.35
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/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/appointment/appointment.schema.d.ts +412 -0
- package/dist/modules/appointment/appointment.schema.d.ts.map +1 -0
- package/dist/modules/appointment/appointment.schema.js +33 -0
- package/dist/modules/appointment/appointment.schema.js.map +1 -0
- package/dist/modules/availability/availability.schema.d.ts +209 -0
- package/dist/modules/availability/availability.schema.d.ts.map +1 -0
- package/dist/modules/availability/availability.schema.js +29 -0
- package/dist/modules/availability/availability.schema.js.map +1 -0
- package/dist/modules/service/service.schema.d.ts +1 -1
- package/dist/modules/service/service.schema.js +1 -1
- package/dist/modules/staff/staff.schema.d.ts +597 -0
- package/dist/modules/staff/staff.schema.d.ts.map +1 -0
- package/dist/modules/staff/staff.schema.js +23 -0
- package/dist/modules/staff/staff.schema.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "./core/business/elements/elements.schema";
|
|
2
1
|
export * from "./core/business/business/business.schema";
|
|
2
|
+
export * from "./core/business/elements/elements.schema";
|
|
3
3
|
export * from "./core/business/modules/modules.constants";
|
|
4
4
|
export * from "./core/business/modules/modules.schema";
|
|
5
5
|
export * from "./core/business/scalinky/scalinky.schema";
|
|
@@ -9,5 +9,8 @@ export * from "./core/business/theme/theme.schema";
|
|
|
9
9
|
export * from "./core/business/variants/variants.schema";
|
|
10
10
|
export * from "./core/users/role/role.schema";
|
|
11
11
|
export * from "./core/users/user/user.schema";
|
|
12
|
+
export * from "./modules/appointment/appointment.schema";
|
|
13
|
+
export * from "./modules/availability/availability.schema";
|
|
12
14
|
export * from "./modules/service/service.schema";
|
|
15
|
+
export * from "./modules/staff/staff.schema";
|
|
13
16
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;AAC9C,cAAc,kCAAkC,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;AAC9C,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -14,8 +14,8 @@ 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);
|
|
18
17
|
__exportStar(require("./core/business/business/business.schema"), exports);
|
|
18
|
+
__exportStar(require("./core/business/elements/elements.schema"), exports);
|
|
19
19
|
__exportStar(require("./core/business/modules/modules.constants"), exports);
|
|
20
20
|
__exportStar(require("./core/business/modules/modules.schema"), exports);
|
|
21
21
|
__exportStar(require("./core/business/scalinky/scalinky.schema"), exports);
|
|
@@ -25,5 +25,8 @@ __exportStar(require("./core/business/theme/theme.schema"), exports);
|
|
|
25
25
|
__exportStar(require("./core/business/variants/variants.schema"), exports);
|
|
26
26
|
__exportStar(require("./core/users/role/role.schema"), exports);
|
|
27
27
|
__exportStar(require("./core/users/user/user.schema"), exports);
|
|
28
|
+
__exportStar(require("./modules/appointment/appointment.schema"), exports);
|
|
29
|
+
__exportStar(require("./modules/availability/availability.schema"), exports);
|
|
28
30
|
__exportStar(require("./modules/service/service.schema"), exports);
|
|
31
|
+
__exportStar(require("./modules/staff/staff.schema"), exports);
|
|
29
32
|
//# 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;AAC9C,mEAAiD"}
|
|
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;AAC9C,2EAAyD;AACzD,6EAA2D;AAC3D,mEAAiD;AACjD,+DAA6C"}
|
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
declare const AppointmentSchema: z.ZodObject<{
|
|
3
|
+
startAt: z.ZodString;
|
|
4
|
+
endAt: z.ZodString;
|
|
5
|
+
customerName: z.ZodString;
|
|
6
|
+
customerPhone: z.ZodString;
|
|
7
|
+
status: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
type Appointment = z.infer<typeof AppointmentSchema>;
|
|
10
|
+
declare const CreateAppointmentSchema: z.ZodObject<{
|
|
11
|
+
startAt: z.ZodString;
|
|
12
|
+
endAt: z.ZodString;
|
|
13
|
+
customerName: z.ZodString;
|
|
14
|
+
customerPhone: z.ZodString;
|
|
15
|
+
status: z.ZodString;
|
|
16
|
+
service_id: z.ZodString;
|
|
17
|
+
availabilitiesID: z.ZodArray<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
type CreateAppointment = z.infer<typeof CreateAppointmentSchema>;
|
|
20
|
+
declare const ResAppointmentSchema: z.ZodObject<{
|
|
21
|
+
startAt: z.ZodString;
|
|
22
|
+
endAt: z.ZodString;
|
|
23
|
+
customerName: z.ZodString;
|
|
24
|
+
customerPhone: z.ZodString;
|
|
25
|
+
status: z.ZodString;
|
|
26
|
+
appointment_id: z.ZodString;
|
|
27
|
+
availabilities: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
dayOfWeek: z.ZodNonOptional<z.ZodNumber>;
|
|
29
|
+
startTime: z.ZodString;
|
|
30
|
+
endTime: z.ZodString;
|
|
31
|
+
availability_id: z.ZodString;
|
|
32
|
+
business: z.ZodObject<{
|
|
33
|
+
version: z.ZodNumber;
|
|
34
|
+
type: z.ZodEnum<{
|
|
35
|
+
restaurant: "restaurant";
|
|
36
|
+
bar: "bar";
|
|
37
|
+
cafe: "cafe";
|
|
38
|
+
cloud: "cloud";
|
|
39
|
+
barbershop: "barbershop";
|
|
40
|
+
gym: "gym";
|
|
41
|
+
}>;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
description: z.ZodString;
|
|
44
|
+
cover_image: z.ZodString;
|
|
45
|
+
logo: z.ZodString;
|
|
46
|
+
business_id: z.ZodString;
|
|
47
|
+
slug: z.ZodString;
|
|
48
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
+
type: z.ZodEnum<{
|
|
50
|
+
link: "link";
|
|
51
|
+
info: "info";
|
|
52
|
+
}>;
|
|
53
|
+
order: z.ZodNumber;
|
|
54
|
+
visible: z.ZodBoolean;
|
|
55
|
+
data: z.ZodObject<{
|
|
56
|
+
label: z.ZodOptional<z.ZodString>;
|
|
57
|
+
href: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
meta: z.ZodObject<{
|
|
60
|
+
kind: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
61
|
+
menu: "menu";
|
|
62
|
+
appointments: "appointments";
|
|
63
|
+
reservations: "reservations";
|
|
64
|
+
service: "service";
|
|
65
|
+
}>, z.ZodEnum<{
|
|
66
|
+
menu: "menu";
|
|
67
|
+
whatsapp: "whatsapp";
|
|
68
|
+
instagram: "instagram";
|
|
69
|
+
maps: "maps";
|
|
70
|
+
website: "website";
|
|
71
|
+
phone: "phone";
|
|
72
|
+
}>]>>;
|
|
73
|
+
}, z.core.$strip>;
|
|
74
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
default: "default";
|
|
77
|
+
surface: "surface";
|
|
78
|
+
outline: "outline";
|
|
79
|
+
noborder: "noborder";
|
|
80
|
+
}>>;
|
|
81
|
+
style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
|
|
82
|
+
className: z.ZodOptional<z.ZodString>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
element_id: z.ZodString;
|
|
85
|
+
}, z.core.$strip>>>;
|
|
86
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
87
|
+
business_module_id: z.ZodString;
|
|
88
|
+
created_at: z.ZodDate;
|
|
89
|
+
updated_at: z.ZodDate;
|
|
90
|
+
enabled: z.ZodBoolean;
|
|
91
|
+
module: z.ZodObject<{
|
|
92
|
+
key: z.ZodEnum<{
|
|
93
|
+
menu: "menu";
|
|
94
|
+
appointments: "appointments";
|
|
95
|
+
reservations: "reservations";
|
|
96
|
+
service: "service";
|
|
97
|
+
orders: "orders";
|
|
98
|
+
staff: "staff";
|
|
99
|
+
availability: "availability";
|
|
100
|
+
}>;
|
|
101
|
+
description: z.ZodString;
|
|
102
|
+
name: z.ZodOptional<z.ZodString>;
|
|
103
|
+
module_id: z.ZodNumber;
|
|
104
|
+
businesses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
105
|
+
as_dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
106
|
+
isOptional: z.ZodBoolean;
|
|
107
|
+
description: z.ZodOptional<z.ZodString>;
|
|
108
|
+
created_at: z.ZodDate;
|
|
109
|
+
updated_at: z.ZodDate;
|
|
110
|
+
module_dependency_id: z.ZodString;
|
|
111
|
+
module: z.ZodObject<{
|
|
112
|
+
key: z.ZodEnum<{
|
|
113
|
+
menu: "menu";
|
|
114
|
+
appointments: "appointments";
|
|
115
|
+
reservations: "reservations";
|
|
116
|
+
service: "service";
|
|
117
|
+
orders: "orders";
|
|
118
|
+
staff: "staff";
|
|
119
|
+
availability: "availability";
|
|
120
|
+
}>;
|
|
121
|
+
description: z.ZodString;
|
|
122
|
+
name: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
dependency: z.ZodObject<{
|
|
125
|
+
key: z.ZodEnum<{
|
|
126
|
+
menu: "menu";
|
|
127
|
+
appointments: "appointments";
|
|
128
|
+
reservations: "reservations";
|
|
129
|
+
service: "service";
|
|
130
|
+
orders: "orders";
|
|
131
|
+
staff: "staff";
|
|
132
|
+
availability: "availability";
|
|
133
|
+
}>;
|
|
134
|
+
description: z.ZodString;
|
|
135
|
+
name: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
}, z.core.$strip>>>;
|
|
138
|
+
depended_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
139
|
+
isOptional: z.ZodBoolean;
|
|
140
|
+
description: z.ZodOptional<z.ZodString>;
|
|
141
|
+
created_at: z.ZodDate;
|
|
142
|
+
updated_at: z.ZodDate;
|
|
143
|
+
module_dependency_id: z.ZodString;
|
|
144
|
+
module: z.ZodObject<{
|
|
145
|
+
key: z.ZodEnum<{
|
|
146
|
+
menu: "menu";
|
|
147
|
+
appointments: "appointments";
|
|
148
|
+
reservations: "reservations";
|
|
149
|
+
service: "service";
|
|
150
|
+
orders: "orders";
|
|
151
|
+
staff: "staff";
|
|
152
|
+
availability: "availability";
|
|
153
|
+
}>;
|
|
154
|
+
description: z.ZodString;
|
|
155
|
+
name: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
dependency: z.ZodObject<{
|
|
158
|
+
key: z.ZodEnum<{
|
|
159
|
+
menu: "menu";
|
|
160
|
+
appointments: "appointments";
|
|
161
|
+
reservations: "reservations";
|
|
162
|
+
service: "service";
|
|
163
|
+
orders: "orders";
|
|
164
|
+
staff: "staff";
|
|
165
|
+
availability: "availability";
|
|
166
|
+
}>;
|
|
167
|
+
description: z.ZodString;
|
|
168
|
+
name: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
}, z.core.$strip>>>;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
}, z.core.$strip>>>;
|
|
173
|
+
style: z.ZodObject<{
|
|
174
|
+
style: z.ZodObject<{
|
|
175
|
+
theme: z.ZodEnum<{
|
|
176
|
+
default: "default";
|
|
177
|
+
minimalist: "minimalist";
|
|
178
|
+
borderless: "borderless";
|
|
179
|
+
light: "light";
|
|
180
|
+
dark: "dark";
|
|
181
|
+
}>;
|
|
182
|
+
name: z.ZodObject<{
|
|
183
|
+
color: z.ZodOptional<z.ZodString>;
|
|
184
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
185
|
+
noborder: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
text_position: z.ZodOptional<z.ZodString>;
|
|
187
|
+
className: z.ZodOptional<z.ZodString>;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
description: z.ZodObject<{
|
|
190
|
+
color: z.ZodOptional<z.ZodString>;
|
|
191
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
192
|
+
noborder: z.ZodOptional<z.ZodBoolean>;
|
|
193
|
+
text_position: z.ZodOptional<z.ZodString>;
|
|
194
|
+
className: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
logo: z.ZodObject<{
|
|
197
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
199
|
+
noborder: z.ZodOptional<z.ZodBoolean>;
|
|
200
|
+
centered: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
202
|
+
default: "default";
|
|
203
|
+
surface: "surface";
|
|
204
|
+
outline: "outline";
|
|
205
|
+
noborder: "noborder";
|
|
206
|
+
}>>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
}, z.core.$strip>;
|
|
209
|
+
style_id: z.ZodString;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
staff_id: z.ZodString;
|
|
213
|
+
appointment: z.ZodObject<{}, z.core.$strip>;
|
|
214
|
+
staff: z.ZodObject<{}, z.core.$strip>;
|
|
215
|
+
}, z.core.$strip>>>;
|
|
216
|
+
service_id: z.ZodNumber;
|
|
217
|
+
business_id: z.ZodString;
|
|
218
|
+
service: z.ZodObject<{
|
|
219
|
+
name: z.ZodString;
|
|
220
|
+
description: z.ZodString;
|
|
221
|
+
duration_minutes: z.ZodNumber;
|
|
222
|
+
price: z.ZodNumber;
|
|
223
|
+
active: z.ZodBoolean;
|
|
224
|
+
service_id: z.ZodString;
|
|
225
|
+
business_id: z.ZodString;
|
|
226
|
+
appointments: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$strip>>>;
|
|
227
|
+
key: z.ZodString;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
business: z.ZodObject<{
|
|
230
|
+
version: z.ZodNumber;
|
|
231
|
+
type: z.ZodEnum<{
|
|
232
|
+
restaurant: "restaurant";
|
|
233
|
+
bar: "bar";
|
|
234
|
+
cafe: "cafe";
|
|
235
|
+
cloud: "cloud";
|
|
236
|
+
barbershop: "barbershop";
|
|
237
|
+
gym: "gym";
|
|
238
|
+
}>;
|
|
239
|
+
name: z.ZodString;
|
|
240
|
+
description: z.ZodString;
|
|
241
|
+
cover_image: z.ZodString;
|
|
242
|
+
logo: z.ZodString;
|
|
243
|
+
business_id: z.ZodString;
|
|
244
|
+
slug: z.ZodString;
|
|
245
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
246
|
+
type: z.ZodEnum<{
|
|
247
|
+
link: "link";
|
|
248
|
+
info: "info";
|
|
249
|
+
}>;
|
|
250
|
+
order: z.ZodNumber;
|
|
251
|
+
visible: z.ZodBoolean;
|
|
252
|
+
data: z.ZodObject<{
|
|
253
|
+
label: z.ZodOptional<z.ZodString>;
|
|
254
|
+
href: z.ZodOptional<z.ZodString>;
|
|
255
|
+
}, z.core.$strip>;
|
|
256
|
+
meta: z.ZodObject<{
|
|
257
|
+
kind: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
258
|
+
menu: "menu";
|
|
259
|
+
appointments: "appointments";
|
|
260
|
+
reservations: "reservations";
|
|
261
|
+
service: "service";
|
|
262
|
+
}>, z.ZodEnum<{
|
|
263
|
+
menu: "menu";
|
|
264
|
+
whatsapp: "whatsapp";
|
|
265
|
+
instagram: "instagram";
|
|
266
|
+
maps: "maps";
|
|
267
|
+
website: "website";
|
|
268
|
+
phone: "phone";
|
|
269
|
+
}>]>>;
|
|
270
|
+
}, z.core.$strip>;
|
|
271
|
+
options: z.ZodOptional<z.ZodObject<{
|
|
272
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
273
|
+
default: "default";
|
|
274
|
+
surface: "surface";
|
|
275
|
+
outline: "outline";
|
|
276
|
+
noborder: "noborder";
|
|
277
|
+
}>>;
|
|
278
|
+
style: z.ZodOptional<z.ZodType<import("csstype").Properties<0 | (string & {}), string & {}>, unknown, z.core.$ZodTypeInternals<import("csstype").Properties<0 | (string & {}), string & {}>, unknown>>>;
|
|
279
|
+
className: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, z.core.$strip>>;
|
|
281
|
+
element_id: z.ZodString;
|
|
282
|
+
}, z.core.$strip>>>;
|
|
283
|
+
modules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
284
|
+
business_module_id: z.ZodString;
|
|
285
|
+
created_at: z.ZodDate;
|
|
286
|
+
updated_at: z.ZodDate;
|
|
287
|
+
enabled: z.ZodBoolean;
|
|
288
|
+
module: z.ZodObject<{
|
|
289
|
+
key: z.ZodEnum<{
|
|
290
|
+
menu: "menu";
|
|
291
|
+
appointments: "appointments";
|
|
292
|
+
reservations: "reservations";
|
|
293
|
+
service: "service";
|
|
294
|
+
orders: "orders";
|
|
295
|
+
staff: "staff";
|
|
296
|
+
availability: "availability";
|
|
297
|
+
}>;
|
|
298
|
+
description: z.ZodString;
|
|
299
|
+
name: z.ZodOptional<z.ZodString>;
|
|
300
|
+
module_id: z.ZodNumber;
|
|
301
|
+
businesses: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
302
|
+
as_dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
303
|
+
isOptional: z.ZodBoolean;
|
|
304
|
+
description: z.ZodOptional<z.ZodString>;
|
|
305
|
+
created_at: z.ZodDate;
|
|
306
|
+
updated_at: z.ZodDate;
|
|
307
|
+
module_dependency_id: z.ZodString;
|
|
308
|
+
module: z.ZodObject<{
|
|
309
|
+
key: z.ZodEnum<{
|
|
310
|
+
menu: "menu";
|
|
311
|
+
appointments: "appointments";
|
|
312
|
+
reservations: "reservations";
|
|
313
|
+
service: "service";
|
|
314
|
+
orders: "orders";
|
|
315
|
+
staff: "staff";
|
|
316
|
+
availability: "availability";
|
|
317
|
+
}>;
|
|
318
|
+
description: z.ZodString;
|
|
319
|
+
name: z.ZodOptional<z.ZodString>;
|
|
320
|
+
}, z.core.$strip>;
|
|
321
|
+
dependency: z.ZodObject<{
|
|
322
|
+
key: z.ZodEnum<{
|
|
323
|
+
menu: "menu";
|
|
324
|
+
appointments: "appointments";
|
|
325
|
+
reservations: "reservations";
|
|
326
|
+
service: "service";
|
|
327
|
+
orders: "orders";
|
|
328
|
+
staff: "staff";
|
|
329
|
+
availability: "availability";
|
|
330
|
+
}>;
|
|
331
|
+
description: z.ZodString;
|
|
332
|
+
name: z.ZodOptional<z.ZodString>;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
}, z.core.$strip>>>;
|
|
335
|
+
depended_by: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
336
|
+
isOptional: z.ZodBoolean;
|
|
337
|
+
description: z.ZodOptional<z.ZodString>;
|
|
338
|
+
created_at: z.ZodDate;
|
|
339
|
+
updated_at: z.ZodDate;
|
|
340
|
+
module_dependency_id: z.ZodString;
|
|
341
|
+
module: z.ZodObject<{
|
|
342
|
+
key: z.ZodEnum<{
|
|
343
|
+
menu: "menu";
|
|
344
|
+
appointments: "appointments";
|
|
345
|
+
reservations: "reservations";
|
|
346
|
+
service: "service";
|
|
347
|
+
orders: "orders";
|
|
348
|
+
staff: "staff";
|
|
349
|
+
availability: "availability";
|
|
350
|
+
}>;
|
|
351
|
+
description: z.ZodString;
|
|
352
|
+
name: z.ZodOptional<z.ZodString>;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
dependency: z.ZodObject<{
|
|
355
|
+
key: z.ZodEnum<{
|
|
356
|
+
menu: "menu";
|
|
357
|
+
appointments: "appointments";
|
|
358
|
+
reservations: "reservations";
|
|
359
|
+
service: "service";
|
|
360
|
+
orders: "orders";
|
|
361
|
+
staff: "staff";
|
|
362
|
+
availability: "availability";
|
|
363
|
+
}>;
|
|
364
|
+
description: z.ZodString;
|
|
365
|
+
name: z.ZodOptional<z.ZodString>;
|
|
366
|
+
}, z.core.$strip>;
|
|
367
|
+
}, z.core.$strip>>>;
|
|
368
|
+
}, z.core.$strip>;
|
|
369
|
+
}, z.core.$strip>>>;
|
|
370
|
+
style: z.ZodObject<{
|
|
371
|
+
style: z.ZodObject<{
|
|
372
|
+
theme: z.ZodEnum<{
|
|
373
|
+
default: "default";
|
|
374
|
+
minimalist: "minimalist";
|
|
375
|
+
borderless: "borderless";
|
|
376
|
+
light: "light";
|
|
377
|
+
dark: "dark";
|
|
378
|
+
}>;
|
|
379
|
+
name: z.ZodObject<{
|
|
380
|
+
color: z.ZodOptional<z.ZodString>;
|
|
381
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
382
|
+
noborder: z.ZodOptional<z.ZodBoolean>;
|
|
383
|
+
text_position: z.ZodOptional<z.ZodString>;
|
|
384
|
+
className: z.ZodOptional<z.ZodString>;
|
|
385
|
+
}, z.core.$strip>;
|
|
386
|
+
description: z.ZodObject<{
|
|
387
|
+
color: z.ZodOptional<z.ZodString>;
|
|
388
|
+
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
389
|
+
noborder: z.ZodOptional<z.ZodBoolean>;
|
|
390
|
+
text_position: z.ZodOptional<z.ZodString>;
|
|
391
|
+
className: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
logo: z.ZodObject<{
|
|
394
|
+
width: z.ZodOptional<z.ZodNumber>;
|
|
395
|
+
height: z.ZodOptional<z.ZodNumber>;
|
|
396
|
+
noborder: z.ZodOptional<z.ZodBoolean>;
|
|
397
|
+
centered: z.ZodOptional<z.ZodBoolean>;
|
|
398
|
+
variant: z.ZodOptional<z.ZodEnum<{
|
|
399
|
+
default: "default";
|
|
400
|
+
surface: "surface";
|
|
401
|
+
outline: "outline";
|
|
402
|
+
noborder: "noborder";
|
|
403
|
+
}>>;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
}, z.core.$strip>;
|
|
406
|
+
style_id: z.ZodString;
|
|
407
|
+
}, z.core.$strip>;
|
|
408
|
+
}, z.core.$strip>;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
type ResAppointment = z.infer<typeof ResAppointmentSchema>;
|
|
411
|
+
export { Appointment, CreateAppointment, ResAppointment, ResAppointmentSchema, CreateAppointmentSchema, AppointmentSchema };
|
|
412
|
+
//# sourceMappingURL=appointment.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.schema.d.ts","sourceRoot":"","sources":["../../../src/modules/appointment/appointment.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAKpB,QAAA,MAAM,iBAAiB;;;;;;iBAMrB,CAAA;AACF,KAAK,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEpD,QAAA,MAAM,uBAAuB;;;;;;;;iBAG3B,CAAA;AACF,KAAK,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAChE,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOxB,CAAA;AACF,KAAK,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,CAAA"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.AppointmentSchema = exports.CreateAppointmentSchema = exports.ResAppointmentSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const availability_schema_1 = require("../availability/availability.schema");
|
|
9
|
+
const service_schema_1 = require("../service/service.schema");
|
|
10
|
+
const business_schema_1 = require("../../core/business/business/business.schema");
|
|
11
|
+
const AppointmentSchema = zod_1.default.object({
|
|
12
|
+
startAt: zod_1.default.string().nonempty(),
|
|
13
|
+
endAt: zod_1.default.string().nonempty(),
|
|
14
|
+
customerName: zod_1.default.string().nonempty(),
|
|
15
|
+
customerPhone: zod_1.default.string().nonempty(),
|
|
16
|
+
status: zod_1.default.string().nonempty(),
|
|
17
|
+
});
|
|
18
|
+
exports.AppointmentSchema = AppointmentSchema;
|
|
19
|
+
const CreateAppointmentSchema = AppointmentSchema.extend({
|
|
20
|
+
service_id: zod_1.default.string().nonempty(),
|
|
21
|
+
availabilitiesID: zod_1.default.array(zod_1.default.string().nonempty()).nonempty()
|
|
22
|
+
});
|
|
23
|
+
exports.CreateAppointmentSchema = CreateAppointmentSchema;
|
|
24
|
+
const ResAppointmentSchema = CreateAppointmentSchema.omit({ availabilitiesID: true }).extend({
|
|
25
|
+
appointment_id: zod_1.default.string(),
|
|
26
|
+
availabilities: zod_1.default.array(availability_schema_1.ResAvailabilitySchema).optional(),
|
|
27
|
+
service_id: zod_1.default.number(),
|
|
28
|
+
business_id: zod_1.default.string(),
|
|
29
|
+
service: service_schema_1.ResServiceSchema,
|
|
30
|
+
business: business_schema_1.ResBusinessSchema
|
|
31
|
+
});
|
|
32
|
+
exports.ResAppointmentSchema = ResAppointmentSchema;
|
|
33
|
+
//# sourceMappingURL=appointment.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"appointment.schema.js","sourceRoot":"","sources":["../../../src/modules/appointment/appointment.schema.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAoB;AACpB,6EAA4E;AAC5E,8DAA6D;AAC7D,kFAAiF;AAEjF,MAAM,iBAAiB,GAAG,aAAC,CAAC,MAAM,CAAC;IAC/B,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,YAAY,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,aAAa,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAA;AAiBsG,8CAAiB;AAdzH,MAAM,uBAAuB,GAAG,iBAAiB,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,gBAAgB,EAAE,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAA;AAW6E,0DAAuB;AATtG,MAAM,oBAAoB,GAAG,uBAAuB,CAAC,IAAI,CAAC,EAAC,gBAAgB,EAAC,IAAI,EAAC,CAAC,CAAC,MAAM,CAAC;IACtF,cAAc,EAAE,aAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,aAAC,CAAC,KAAK,CAAC,2CAAqB,CAAC,CAAC,QAAQ,EAAE;IACzD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,aAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAC,iCAAgB;IACxB,QAAQ,EAAC,mCAAiB;CAC7B,CAAC,CAAA;AAEuD,oDAAoB"}
|