@careflair/common 1.0.6 → 1.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/dist/constants/index.d.ts +0 -78
- package/dist/constants/index.js +13 -102
- package/dist/index.d.ts +7 -8
- package/dist/index.js +19 -23
- package/dist/interfaces/common-fields.input.d.ts +15 -15
- package/dist/interfaces/common-fields.input.js +2 -2
- package/dist/interfaces/common-fields.output.d.ts +26 -26
- package/dist/interfaces/common-fields.output.js +2 -2
- package/dist/schemas/availabilitySchemaValidation.d.ts +56 -56
- package/dist/schemas/availabilitySchemaValidation.js +79 -79
- package/dist/schemas/businessServicesValidation.d.ts +6 -6
- package/dist/schemas/businessServicesValidation.js +23 -23
- package/dist/schemas/educationSchemas.d.ts +38 -38
- package/dist/schemas/educationSchemas.js +29 -29
- package/dist/schemas/forms.d.ts +8 -8
- package/dist/schemas/hourlyRateSchemaValidation.d.ts +36 -36
- package/dist/schemas/hourlyRateSchemaValidation.js +25 -25
- package/dist/schemas/index.d.ts +6 -2
- package/dist/schemas/index.js +16 -18
- package/dist/schemas/userValiationSchema.d.ts +30 -30
- package/dist/schemas/userValiationSchema.js +38 -38
- package/dist/schemas/workHistorySchema.d.ts +33 -33
- package/dist/schemas/workHistorySchema.js +28 -28
- package/dist/utils/utils.d.ts +6 -6
- package/dist/utils/utils.js +9 -9
- package/dist/utils/videoValidation.d.ts +31 -31
- package/dist/utils/videoValidation.js +119 -119
- package/package.json +81 -81
|
@@ -85,84 +85,6 @@ export declare const StateShortToFull: {
|
|
|
85
85
|
readonly ACT: "Australian Capital Territory (ACT)";
|
|
86
86
|
readonly NT: "Northern Territory (NT)";
|
|
87
87
|
};
|
|
88
|
-
export declare const userRoleMap: {
|
|
89
|
-
readonly provider: "NDIS Provider";
|
|
90
|
-
readonly participant: "NDIS Participant";
|
|
91
|
-
readonly support_person: "Participant Support Person";
|
|
92
|
-
readonly business: "Business";
|
|
93
|
-
};
|
|
94
|
-
export declare const roleDisplayNames: {
|
|
95
|
-
readonly provider: "NDIS Provider";
|
|
96
|
-
readonly participant: "NDIS Participant";
|
|
97
|
-
readonly support_person: "Participant Support Person";
|
|
98
|
-
readonly business: "Business";
|
|
99
|
-
};
|
|
100
|
-
export declare const daysOfWeek: readonly ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];
|
|
101
|
-
export declare enum EducationType {
|
|
102
|
-
Education = "Education",
|
|
103
|
-
Training = "Training"
|
|
104
|
-
}
|
|
105
|
-
export declare const POST_PER_PAGE = 25;
|
|
106
|
-
export declare const COMMENT_PER_PAGE = 50;
|
|
107
|
-
export type PollType = "single" | "multiple";
|
|
108
|
-
export declare const supportWorkerServiceTooltip: {
|
|
109
|
-
readonly showeringToiletingDressing: "Assistance with personal hygiene tasks, including showering, toileting, and dressing";
|
|
110
|
-
readonly continenceAidAssistance: "e.g., changing pads, incontinence management";
|
|
111
|
-
readonly pressureCare: "For bed-bound clients to prevent pressure sores";
|
|
112
|
-
readonly hoistLifting: "For clients requiring mechanical transfer support";
|
|
113
|
-
readonly overnightCare: "Active or inactive overnight support";
|
|
114
|
-
readonly generalEatingSupport: "e.g., cutting food, feeding assistance, mealtime supervision";
|
|
115
|
-
readonly pegFeeding: "Providing support for clients requiring percutaneous endoscopic gastrostomy (PEG) feeding.";
|
|
116
|
-
readonly medicationAssistance: "Including blister packs, PRN medications, and reminders";
|
|
117
|
-
readonly stomaCare: "e.g., emptying or changing colostomy/urostomy bags";
|
|
118
|
-
readonly basicDressingChanges: "For minor, non-infected wounds and simple adhesive dressings, as per care plan";
|
|
119
|
-
readonly cookingMealPrep: "Meal planning, batch cooking, and food storage. Does not include cooking for individuals with swallowing difficulties, texture-modified diets, or medically complex meal plans.";
|
|
120
|
-
readonly householdCleaning: "Vacuuming, dusting, laundry, bathroom cleaning, and general tidying";
|
|
121
|
-
readonly lightGardening: "Weeding, lawn cutting, planting, minor yard upkeep";
|
|
122
|
-
readonly appointmentManagement: "Reminders, calendar management, booking medical appointments, correspondence support";
|
|
123
|
-
readonly paperworkAdminHelp: "Form-filling, organizing personal documents, bill reminders – non-financial advice";
|
|
124
|
-
readonly communityAccess: "Accompanying clients to events, social groups, recreational activities, or appointments";
|
|
125
|
-
readonly standardVehicle: "Driving clients to appointments, social events, or community activities";
|
|
126
|
-
readonly wheelchairAccessibleVehicle: "For participants requiring a vehicle with a ramp or hoist";
|
|
127
|
-
};
|
|
128
|
-
export declare const flagCodeByLanguage: {
|
|
129
|
-
readonly AusLan: "au";
|
|
130
|
-
readonly English: "gb";
|
|
131
|
-
readonly "Mandarin Chinese": "cn";
|
|
132
|
-
readonly Hindi: "in";
|
|
133
|
-
readonly Spanish: "es";
|
|
134
|
-
readonly French: "fr";
|
|
135
|
-
readonly Arabic: "ae";
|
|
136
|
-
readonly Bengali: "bd";
|
|
137
|
-
readonly Russian: "ru";
|
|
138
|
-
readonly Portuguese: "pt";
|
|
139
|
-
readonly Urdu: "pk";
|
|
140
|
-
readonly Indonesian: "id";
|
|
141
|
-
readonly German: "de";
|
|
142
|
-
readonly Japanese: "jp";
|
|
143
|
-
readonly Swahili: "ke";
|
|
144
|
-
readonly Turkish: "tr";
|
|
145
|
-
readonly Tamil: "in";
|
|
146
|
-
readonly Vietnamese: "vn";
|
|
147
|
-
readonly Yoruba: "ng";
|
|
148
|
-
readonly Italian: "it";
|
|
149
|
-
readonly Telugu: "in";
|
|
150
|
-
readonly Thai: "th";
|
|
151
|
-
readonly Javanese: "id";
|
|
152
|
-
readonly Korean: "kr";
|
|
153
|
-
readonly Persian: "ir";
|
|
154
|
-
readonly Malayalam: "in";
|
|
155
|
-
readonly Hausa: "ng";
|
|
156
|
-
readonly Ukrainian: "ua";
|
|
157
|
-
readonly Amharic: "et";
|
|
158
|
-
readonly Farsi: "ir";
|
|
159
|
-
readonly Polish: "pl";
|
|
160
|
-
readonly Malay: "my";
|
|
161
|
-
readonly Xhosa: "za";
|
|
162
|
-
readonly Pashto: "pk";
|
|
163
|
-
readonly Kannada: "in";
|
|
164
|
-
readonly Nepali: "np";
|
|
165
|
-
};
|
|
166
88
|
export declare const SupportWorkerServiceLabels: Record<SupportWorkerService, string>;
|
|
167
89
|
export declare const SUPPORT_WORKER_SERVICES_FILTERS: {
|
|
168
90
|
label: string;
|
package/dist/constants/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.contractTypeDetails = exports.onboardingStepsDetails = exports.DocumentTypeLabels = exports.altCommunicationOptions = exports.altCommunicationLabels = exports.commonLabels = exports.SUPPORT_WORKER_SERVICES_FILTERS = exports.SupportWorkerServiceLabels = exports.
|
|
3
|
+
exports.contractTypeDetails = exports.onboardingStepsDetails = exports.DocumentTypeLabels = exports.altCommunicationOptions = exports.altCommunicationLabels = exports.commonLabels = exports.SUPPORT_WORKER_SERVICES_FILTERS = exports.SupportWorkerServiceLabels = exports.StateShortToFull = exports.StateFullToShort = exports.ProfileAllSteps = exports.educationTypeOptions = exports.providerInterestOptions = exports.providerPreferenceOptions = exports.participantInterestOptions = exports.participantPreferenceOptions = exports.complexNeedsSupportedOptions = exports.agesSupportedOptions = exports.genderOfAttendanceOptions = exports.deliveryOptions = exports.languageOptions = exports.statesOptions = exports.serviceCategoriesMap = exports.categoryOptions = void 0;
|
|
4
4
|
const enums_1 = require("../enums");
|
|
5
|
-
const
|
|
5
|
+
const utils_1 = require("../utils/utils");
|
|
6
6
|
exports.categoryOptions = [
|
|
7
7
|
{
|
|
8
8
|
label: "Support",
|
|
@@ -283,17 +283,17 @@ exports.serviceCategoriesMap = {
|
|
|
283
283
|
Employment: [enums_1.CategoryEnum.FINDING_AND_KEEPING_A_JOB, enums_1.CategoryEnum.SLES],
|
|
284
284
|
Equipment: [enums_1.CategoryEnum.DISABILITY_AIDS],
|
|
285
285
|
};
|
|
286
|
-
exports.statesOptions = (0,
|
|
287
|
-
exports.languageOptions = (0,
|
|
288
|
-
exports.deliveryOptions = (0,
|
|
289
|
-
exports.genderOfAttendanceOptions = (0,
|
|
290
|
-
exports.agesSupportedOptions = (0,
|
|
291
|
-
exports.complexNeedsSupportedOptions = (0,
|
|
292
|
-
exports.participantPreferenceOptions = (0,
|
|
293
|
-
exports.participantInterestOptions = (0,
|
|
294
|
-
exports.providerPreferenceOptions = (0,
|
|
295
|
-
exports.providerInterestOptions = (0,
|
|
296
|
-
exports.educationTypeOptions = (0,
|
|
286
|
+
exports.statesOptions = (0, utils_1.enumToOptions)(enums_1.StatesEnum);
|
|
287
|
+
exports.languageOptions = (0, utils_1.enumToOptions)(enums_1.LanguageEnum);
|
|
288
|
+
exports.deliveryOptions = (0, utils_1.enumToOptions)(enums_1.DeliveryEnum);
|
|
289
|
+
exports.genderOfAttendanceOptions = (0, utils_1.enumToOptions)(enums_1.GenderOfAttendanceEnum);
|
|
290
|
+
exports.agesSupportedOptions = (0, utils_1.enumToOptions)(enums_1.AgesSupportedEnum);
|
|
291
|
+
exports.complexNeedsSupportedOptions = (0, utils_1.enumToOptions)(enums_1.ComplexNeedsSupportedEnum);
|
|
292
|
+
exports.participantPreferenceOptions = (0, utils_1.enumToOptions)(enums_1.ParticipantPreferenceEnum);
|
|
293
|
+
exports.participantInterestOptions = (0, utils_1.enumToOptions)(enums_1.ParticipantInterestEnum);
|
|
294
|
+
exports.providerPreferenceOptions = (0, utils_1.enumToOptions)(enums_1.ProviderPreferenceEnum);
|
|
295
|
+
exports.providerInterestOptions = (0, utils_1.enumToOptions)(enums_1.ProviderInterestEnum);
|
|
296
|
+
exports.educationTypeOptions = (0, utils_1.enumToOptions)(enums_1.EducationTypeEnum);
|
|
297
297
|
exports.ProfileAllSteps = Object.values(enums_1.ProfileAllStepsEnum);
|
|
298
298
|
// Hardcoded mapping for full name to short form and vice versa
|
|
299
299
|
exports.StateFullToShort = {
|
|
@@ -317,95 +317,6 @@ exports.StateShortToFull = {
|
|
|
317
317
|
ACT: "Australian Capital Territory (ACT)",
|
|
318
318
|
NT: "Northern Territory (NT)",
|
|
319
319
|
};
|
|
320
|
-
// App-specific constants
|
|
321
|
-
const enums_2 = require("../enums");
|
|
322
|
-
exports.userRoleMap = {
|
|
323
|
-
[enums_2.UserRole.PROVIDER]: "NDIS Provider",
|
|
324
|
-
[enums_2.UserRole.PARTICIPANT]: "NDIS Participant",
|
|
325
|
-
[enums_2.UserRole.SUPPORT_PERSON]: "Participant Support Person",
|
|
326
|
-
[enums_2.UserRole.BUSINESS]: "Business",
|
|
327
|
-
};
|
|
328
|
-
exports.roleDisplayNames = {
|
|
329
|
-
[enums_2.UserRole.PROVIDER]: "NDIS Provider",
|
|
330
|
-
[enums_2.UserRole.PARTICIPANT]: "NDIS Participant",
|
|
331
|
-
[enums_2.UserRole.SUPPORT_PERSON]: "Participant Support Person",
|
|
332
|
-
[enums_2.UserRole.BUSINESS]: "Business",
|
|
333
|
-
};
|
|
334
|
-
exports.daysOfWeek = [
|
|
335
|
-
"Monday",
|
|
336
|
-
"Tuesday",
|
|
337
|
-
"Wednesday",
|
|
338
|
-
"Thursday",
|
|
339
|
-
"Friday",
|
|
340
|
-
"Saturday",
|
|
341
|
-
"Sunday",
|
|
342
|
-
];
|
|
343
|
-
var EducationType;
|
|
344
|
-
(function (EducationType) {
|
|
345
|
-
EducationType["Education"] = "Education";
|
|
346
|
-
EducationType["Training"] = "Training";
|
|
347
|
-
})(EducationType || (exports.EducationType = EducationType = {}));
|
|
348
|
-
exports.POST_PER_PAGE = 25;
|
|
349
|
-
exports.COMMENT_PER_PAGE = 50;
|
|
350
|
-
exports.supportWorkerServiceTooltip = {
|
|
351
|
-
[enums_1.SupportWorkerService.ShoweringToiletingDressing]: "Assistance with personal hygiene tasks, including showering, toileting, and dressing",
|
|
352
|
-
[enums_1.SupportWorkerService.ContinenceAidAssistance]: "e.g., changing pads, incontinence management",
|
|
353
|
-
[enums_1.SupportWorkerService.PressureCare]: "For bed-bound clients to prevent pressure sores",
|
|
354
|
-
[enums_1.SupportWorkerService.HoistLifting]: "For clients requiring mechanical transfer support",
|
|
355
|
-
[enums_1.SupportWorkerService.OvernightCare]: "Active or inactive overnight support",
|
|
356
|
-
[enums_1.SupportWorkerService.GeneralEatingSupport]: "e.g., cutting food, feeding assistance, mealtime supervision",
|
|
357
|
-
[enums_1.SupportWorkerService.PegFeeding]: "Providing support for clients requiring percutaneous endoscopic gastrostomy (PEG) feeding.",
|
|
358
|
-
[enums_1.SupportWorkerService.MedicationAssistance]: "Including blister packs, PRN medications, and reminders",
|
|
359
|
-
[enums_1.SupportWorkerService.StomaCare]: "e.g., emptying or changing colostomy/urostomy bags",
|
|
360
|
-
[enums_1.SupportWorkerService.BasicDressingChanges]: "For minor, non-infected wounds and simple adhesive dressings, as per care plan",
|
|
361
|
-
[enums_1.SupportWorkerService.CookingMealPrep]: "Meal planning, batch cooking, and food storage. Does not include cooking for individuals with swallowing difficulties, texture-modified diets, or medically complex meal plans.",
|
|
362
|
-
[enums_1.SupportWorkerService.HouseholdCleaning]: "Vacuuming, dusting, laundry, bathroom cleaning, and general tidying",
|
|
363
|
-
[enums_1.SupportWorkerService.LightGardening]: "Weeding, lawn cutting, planting, minor yard upkeep",
|
|
364
|
-
[enums_1.SupportWorkerService.AppointmentManagement]: "Reminders, calendar management, booking medical appointments, correspondence support",
|
|
365
|
-
[enums_1.SupportWorkerService.PaperworkAdminHelp]: "Form-filling, organizing personal documents, bill reminders – non-financial advice",
|
|
366
|
-
[enums_1.SupportWorkerService.CommunityAccess]: "Accompanying clients to events, social groups, recreational activities, or appointments",
|
|
367
|
-
[enums_1.SupportWorkerService.StandardVehicle]: "Driving clients to appointments, social events, or community activities",
|
|
368
|
-
[enums_1.SupportWorkerService.WheelchairAccessibleVehicle]: "For participants requiring a vehicle with a ramp or hoist",
|
|
369
|
-
};
|
|
370
|
-
// Business-specific constants
|
|
371
|
-
exports.flagCodeByLanguage = {
|
|
372
|
-
AusLan: "au",
|
|
373
|
-
English: "gb",
|
|
374
|
-
"Mandarin Chinese": "cn",
|
|
375
|
-
Hindi: "in",
|
|
376
|
-
Spanish: "es",
|
|
377
|
-
French: "fr",
|
|
378
|
-
Arabic: "ae",
|
|
379
|
-
Bengali: "bd",
|
|
380
|
-
Russian: "ru",
|
|
381
|
-
Portuguese: "pt",
|
|
382
|
-
Urdu: "pk",
|
|
383
|
-
Indonesian: "id",
|
|
384
|
-
German: "de",
|
|
385
|
-
Japanese: "jp",
|
|
386
|
-
Swahili: "ke",
|
|
387
|
-
Turkish: "tr",
|
|
388
|
-
Tamil: "in",
|
|
389
|
-
Vietnamese: "vn",
|
|
390
|
-
Yoruba: "ng",
|
|
391
|
-
Italian: "it",
|
|
392
|
-
Telugu: "in",
|
|
393
|
-
Thai: "th",
|
|
394
|
-
Javanese: "id",
|
|
395
|
-
Korean: "kr",
|
|
396
|
-
Persian: "ir",
|
|
397
|
-
Malayalam: "in",
|
|
398
|
-
Hausa: "ng",
|
|
399
|
-
Ukrainian: "ua",
|
|
400
|
-
Amharic: "et",
|
|
401
|
-
Farsi: "ir",
|
|
402
|
-
Polish: "pl",
|
|
403
|
-
Malay: "my",
|
|
404
|
-
Xhosa: "za",
|
|
405
|
-
Pashto: "pk",
|
|
406
|
-
Kannada: "in",
|
|
407
|
-
Nepali: "np",
|
|
408
|
-
};
|
|
409
320
|
exports.SupportWorkerServiceLabels = {
|
|
410
321
|
[enums_1.SupportWorkerService.ShoweringToiletingDressing]: "Showering, toileting, and dressing assistance",
|
|
411
322
|
[enums_1.SupportWorkerService.ContinenceAidAssistance]: "Assistance with continence aids",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export * from "./utils/video";
|
|
1
|
+
export { UserRegistrationInput, UserRegistrationSchema, } from "./schemas/userValiationSchema";
|
|
2
|
+
export { EducationAndTrainingInputValidation, EducationAndTrainingSchema, } from "./schemas/educationSchemas";
|
|
3
|
+
export { WorkHistoryInputValidation, WorkHistorySchema, } from "./schemas/workHistorySchema";
|
|
4
|
+
export { AvailabilitiesSchemaZod, AvailabilityZodInput, } from "./schemas/availabilitySchemaValidation";
|
|
5
|
+
export { HourlyRateInputZod, HourlyRateInputZodType, } from "./schemas/hourlyRateSchemaValidation";
|
|
6
|
+
export { ServicesSchema, validateServices, } from "./schemas/businessServicesValidation";
|
|
7
|
+
export { VideoProvider, VideoValidationResult, detectVideoProvider, isValidCommunityVideoUrl, isValidYouTubeOrVimeoUrl, validateVideoLink, } from "./utils/videoValidation";
|
package/dist/index.js
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
3
|
+
exports.validateVideoLink = exports.isValidYouTubeOrVimeoUrl = exports.isValidCommunityVideoUrl = exports.detectVideoProvider = exports.validateServices = exports.ServicesSchema = exports.HourlyRateInputZod = exports.AvailabilitiesSchemaZod = exports.WorkHistorySchema = exports.EducationAndTrainingSchema = exports.UserRegistrationSchema = void 0;
|
|
4
|
+
var userValiationSchema_1 = require("./schemas/userValiationSchema");
|
|
5
|
+
Object.defineProperty(exports, "UserRegistrationSchema", { enumerable: true, get: function () { return userValiationSchema_1.UserRegistrationSchema; } });
|
|
6
|
+
var educationSchemas_1 = require("./schemas/educationSchemas");
|
|
7
|
+
Object.defineProperty(exports, "EducationAndTrainingSchema", { enumerable: true, get: function () { return educationSchemas_1.EducationAndTrainingSchema; } });
|
|
8
|
+
var workHistorySchema_1 = require("./schemas/workHistorySchema");
|
|
9
|
+
Object.defineProperty(exports, "WorkHistorySchema", { enumerable: true, get: function () { return workHistorySchema_1.WorkHistorySchema; } });
|
|
10
|
+
var availabilitySchemaValidation_1 = require("./schemas/availabilitySchemaValidation");
|
|
11
|
+
Object.defineProperty(exports, "AvailabilitiesSchemaZod", { enumerable: true, get: function () { return availabilitySchemaValidation_1.AvailabilitiesSchemaZod; } });
|
|
12
|
+
var hourlyRateSchemaValidation_1 = require("./schemas/hourlyRateSchemaValidation");
|
|
13
|
+
Object.defineProperty(exports, "HourlyRateInputZod", { enumerable: true, get: function () { return hourlyRateSchemaValidation_1.HourlyRateInputZod; } });
|
|
14
|
+
var businessServicesValidation_1 = require("./schemas/businessServicesValidation");
|
|
15
|
+
Object.defineProperty(exports, "ServicesSchema", { enumerable: true, get: function () { return businessServicesValidation_1.ServicesSchema; } });
|
|
16
|
+
Object.defineProperty(exports, "validateServices", { enumerable: true, get: function () { return businessServicesValidation_1.validateServices; } });
|
|
17
|
+
var videoValidation_1 = require("./utils/videoValidation");
|
|
18
|
+
Object.defineProperty(exports, "detectVideoProvider", { enumerable: true, get: function () { return videoValidation_1.detectVideoProvider; } });
|
|
19
|
+
Object.defineProperty(exports, "isValidCommunityVideoUrl", { enumerable: true, get: function () { return videoValidation_1.isValidCommunityVideoUrl; } });
|
|
20
|
+
Object.defineProperty(exports, "isValidYouTubeOrVimeoUrl", { enumerable: true, get: function () { return videoValidation_1.isValidYouTubeOrVimeoUrl; } });
|
|
21
|
+
Object.defineProperty(exports, "validateVideoLink", { enumerable: true, get: function () { return videoValidation_1.validateVideoLink; } });
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export interface ICommonCategoryFields {
|
|
2
|
-
name: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ICommonCommunityFields {
|
|
6
|
-
name: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
slug?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ICommonPostFields {
|
|
11
|
-
title: string;
|
|
12
|
-
content?: string;
|
|
13
|
-
isPinned?: boolean;
|
|
14
|
-
closeComments?: boolean;
|
|
15
|
-
}
|
|
1
|
+
export interface ICommonCategoryFields {
|
|
2
|
+
name: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ICommonCommunityFields {
|
|
6
|
+
name: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
slug?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICommonPostFields {
|
|
11
|
+
title: string;
|
|
12
|
+
content?: string;
|
|
13
|
+
isPinned?: boolean;
|
|
14
|
+
closeComments?: boolean;
|
|
15
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
export interface ICommonCategoryFields {
|
|
2
|
-
id?: string;
|
|
3
|
-
name: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
created_at: Date;
|
|
6
|
-
modified_at: Date;
|
|
7
|
-
}
|
|
8
|
-
export interface ICommonPostFields {
|
|
9
|
-
id?: string;
|
|
10
|
-
title: string;
|
|
11
|
-
slug?: string;
|
|
12
|
-
content?: string;
|
|
13
|
-
created_at: Date;
|
|
14
|
-
modified_at: Date;
|
|
15
|
-
postType?: string;
|
|
16
|
-
isPinned?: boolean;
|
|
17
|
-
closeComments?: boolean;
|
|
18
|
-
}
|
|
19
|
-
export interface ICommonFileFields {
|
|
20
|
-
id?: string;
|
|
21
|
-
name?: string;
|
|
22
|
-
fileType: string;
|
|
23
|
-
url: string;
|
|
24
|
-
created_at?: Date;
|
|
25
|
-
modified_at?: Date;
|
|
26
|
-
}
|
|
1
|
+
export interface ICommonCategoryFields {
|
|
2
|
+
id?: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
created_at: Date;
|
|
6
|
+
modified_at: Date;
|
|
7
|
+
}
|
|
8
|
+
export interface ICommonPostFields {
|
|
9
|
+
id?: string;
|
|
10
|
+
title: string;
|
|
11
|
+
slug?: string;
|
|
12
|
+
content?: string;
|
|
13
|
+
created_at: Date;
|
|
14
|
+
modified_at: Date;
|
|
15
|
+
postType?: string;
|
|
16
|
+
isPinned?: boolean;
|
|
17
|
+
closeComments?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface ICommonFileFields {
|
|
20
|
+
id?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
fileType: string;
|
|
23
|
+
url: string;
|
|
24
|
+
created_at?: Date;
|
|
25
|
+
modified_at?: Date;
|
|
26
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const AvailabilitiesSchemaZod: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
3
|
-
day: z.ZodString;
|
|
4
|
-
isEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
-
shifts: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
6
|
-
startTime: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
-
endTime: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
endTime: string;
|
|
10
|
-
startTime: string;
|
|
11
|
-
}, {
|
|
12
|
-
endTime: string;
|
|
13
|
-
startTime: string;
|
|
14
|
-
}>, {
|
|
15
|
-
endTime: string;
|
|
16
|
-
startTime: string;
|
|
17
|
-
}, {
|
|
18
|
-
endTime: string;
|
|
19
|
-
startTime: string;
|
|
20
|
-
}>, "many">, {
|
|
21
|
-
endTime: string;
|
|
22
|
-
startTime: string;
|
|
23
|
-
}[], {
|
|
24
|
-
endTime: string;
|
|
25
|
-
startTime: string;
|
|
26
|
-
}[]>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
day: string;
|
|
29
|
-
isEnabled: boolean;
|
|
30
|
-
shifts: {
|
|
31
|
-
endTime: string;
|
|
32
|
-
startTime: string;
|
|
33
|
-
}[];
|
|
34
|
-
}, {
|
|
35
|
-
day: string;
|
|
36
|
-
shifts: {
|
|
37
|
-
endTime: string;
|
|
38
|
-
startTime: string;
|
|
39
|
-
}[];
|
|
40
|
-
isEnabled?: boolean | undefined;
|
|
41
|
-
}>, "many">, {
|
|
42
|
-
day: string;
|
|
43
|
-
isEnabled: boolean;
|
|
44
|
-
shifts: {
|
|
45
|
-
endTime: string;
|
|
46
|
-
startTime: string;
|
|
47
|
-
}[];
|
|
48
|
-
}[], {
|
|
49
|
-
day: string;
|
|
50
|
-
shifts: {
|
|
51
|
-
endTime: string;
|
|
52
|
-
startTime: string;
|
|
53
|
-
}[];
|
|
54
|
-
isEnabled?: boolean | undefined;
|
|
55
|
-
}[]>;
|
|
56
|
-
export type AvailabilityZodInput = z.infer<typeof AvailabilitiesSchemaZod>;
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AvailabilitiesSchemaZod: z.ZodEffects<z.ZodArray<z.ZodObject<{
|
|
3
|
+
day: z.ZodString;
|
|
4
|
+
isEnabled: z.ZodDefault<z.ZodBoolean>;
|
|
5
|
+
shifts: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
6
|
+
startTime: z.ZodEffects<z.ZodString, string, string>;
|
|
7
|
+
endTime: z.ZodEffects<z.ZodString, string, string>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
endTime: string;
|
|
10
|
+
startTime: string;
|
|
11
|
+
}, {
|
|
12
|
+
endTime: string;
|
|
13
|
+
startTime: string;
|
|
14
|
+
}>, {
|
|
15
|
+
endTime: string;
|
|
16
|
+
startTime: string;
|
|
17
|
+
}, {
|
|
18
|
+
endTime: string;
|
|
19
|
+
startTime: string;
|
|
20
|
+
}>, "many">, {
|
|
21
|
+
endTime: string;
|
|
22
|
+
startTime: string;
|
|
23
|
+
}[], {
|
|
24
|
+
endTime: string;
|
|
25
|
+
startTime: string;
|
|
26
|
+
}[]>;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
day: string;
|
|
29
|
+
isEnabled: boolean;
|
|
30
|
+
shifts: {
|
|
31
|
+
endTime: string;
|
|
32
|
+
startTime: string;
|
|
33
|
+
}[];
|
|
34
|
+
}, {
|
|
35
|
+
day: string;
|
|
36
|
+
shifts: {
|
|
37
|
+
endTime: string;
|
|
38
|
+
startTime: string;
|
|
39
|
+
}[];
|
|
40
|
+
isEnabled?: boolean | undefined;
|
|
41
|
+
}>, "many">, {
|
|
42
|
+
day: string;
|
|
43
|
+
isEnabled: boolean;
|
|
44
|
+
shifts: {
|
|
45
|
+
endTime: string;
|
|
46
|
+
startTime: string;
|
|
47
|
+
}[];
|
|
48
|
+
}[], {
|
|
49
|
+
day: string;
|
|
50
|
+
shifts: {
|
|
51
|
+
endTime: string;
|
|
52
|
+
startTime: string;
|
|
53
|
+
}[];
|
|
54
|
+
isEnabled?: boolean | undefined;
|
|
55
|
+
}[]>;
|
|
56
|
+
export type AvailabilityZodInput = z.infer<typeof AvailabilitiesSchemaZod>;
|