@careflair/common 1.0.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.
- package/dist/constants/index.d.ts +192 -0
- package/dist/constants/index.js +610 -0
- package/dist/constants/limits.d.ts +32 -0
- package/dist/constants/limits.js +41 -0
- package/dist/enums/index.d.ts +412 -0
- package/dist/enums/index.js +481 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +21 -0
- package/dist/interfaces/common-fields.input.d.ts +15 -0
- package/dist/interfaces/common-fields.input.js +2 -0
- package/dist/interfaces/common-fields.output.d.ts +26 -0
- package/dist/interfaces/common-fields.output.js +2 -0
- package/dist/schemas/availabilitySchemaValidation.d.ts +56 -0
- package/dist/schemas/availabilitySchemaValidation.js +79 -0
- package/dist/schemas/businessServicesValidation.d.ts +6 -0
- package/dist/schemas/businessServicesValidation.js +23 -0
- package/dist/schemas/educationSchemas.d.ts +38 -0
- package/dist/schemas/educationSchemas.js +29 -0
- package/dist/schemas/hourlyRateSchemaValidation.d.ts +36 -0
- package/dist/schemas/hourlyRateSchemaValidation.js +25 -0
- package/dist/schemas/index.d.ts +6 -0
- package/dist/schemas/index.js +18 -0
- package/dist/schemas/userValiationSchema.d.ts +30 -0
- package/dist/schemas/userValiationSchema.js +38 -0
- package/dist/schemas/workHistorySchema.d.ts +33 -0
- package/dist/schemas/workHistorySchema.js +28 -0
- package/dist/utils/utils.d.ts +6 -0
- package/dist/utils/utils.js +9 -0
- package/dist/utils/videoValidation.d.ts +31 -0
- package/dist/utils/videoValidation.js +119 -0
- package/package.json +25 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
type Option = {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
};
|
|
5
|
+
type NestedOptions = readonly {
|
|
6
|
+
label: string;
|
|
7
|
+
options: readonly Option[];
|
|
8
|
+
}[];
|
|
9
|
+
import { AltCommunication, CategoryEnum, ContractTypeEnum, DocumentType, GenderOfAttendanceEnum, OnboardingSteps, ProfileAllStepsEnum, SupportWorkerService } from "../enums";
|
|
10
|
+
export declare const categoryOptions: NestedOptions;
|
|
11
|
+
export declare const serviceCategoriesMap: {
|
|
12
|
+
readonly Support: readonly [CategoryEnum.SUPPORT_WORKER, CategoryEnum.ACCESSING_THE_COMMUNITY, CategoryEnum.NURSE, CategoryEnum.MENTOR, CategoryEnum.SOCIAL_WORKER];
|
|
13
|
+
readonly "Allied Health (Therapies)": readonly [CategoryEnum.ART_THERAPY, CategoryEnum.COUNSELLING, CategoryEnum.DEVELOPMENTAL_EDUCATOR, CategoryEnum.DIETICIAN, CategoryEnum.KEY_WORKER, CategoryEnum.MUSIC_THERAPY, CategoryEnum.EXERCISE_PHYSIOLOGY, CategoryEnum.OCCUPATIONAL_THERAPY, CategoryEnum.PHYSIOTHERAPY, CategoryEnum.PODIATRY, CategoryEnum.PSYCHOLOGY, CategoryEnum.PSYCHOTHERAPY, CategoryEnum.SOCIAL_WORKER, CategoryEnum.SPEECH_THERAPY, CategoryEnum.THERAPY_ASSISTANT, CategoryEnum.OTHER_SAND_ANIMAL_PLAY];
|
|
14
|
+
readonly "Plan Support": readonly [CategoryEnum.PLAN_MANAGER, CategoryEnum.SUPPORT_COORDINATOR, CategoryEnum.SPECIALIST_SUPPORT_COORDINATOR, CategoryEnum.RECOVERY_COACH_PRS];
|
|
15
|
+
readonly "Skills Development": readonly [CategoryEnum.SUPPORT_IN_EMPLOYMENT, CategoryEnum.LIFE_SKILLS, CategoryEnum.MENTORING, CategoryEnum.TRAVEL_TRAINING];
|
|
16
|
+
readonly "Home Maintenance": readonly [CategoryEnum.CLEANING, CategoryEnum.GARDENING, CategoryEnum.YARD_MAINTENANCE, CategoryEnum.HANDYPERSON_AND_REPAIRS];
|
|
17
|
+
readonly Housing: readonly [CategoryEnum.ILO, CategoryEnum.SPECIALIST_DISABILITY_ACCOMMODATION_SDA, CategoryEnum.MEDIUM_TERM_ACCOMMODATION, CategoryEnum.RESPITE_SHORT_TERM_ACCOMMODATION, CategoryEnum.SUPPORTED_INDEPENDENT_LIVING_SIL];
|
|
18
|
+
readonly "Social, Health and Wellbeing": readonly [CategoryEnum.SOCIAL_PROGRAMS_AND_ACTIVITIES, CategoryEnum.PERSONAL_TRAINING, CategoryEnum.FAMILY_AND_PEER_SUPPORT_GROUPS];
|
|
19
|
+
readonly Children: readonly [CategoryEnum.EARLY_INTERVENTION_AND_CHILDREN];
|
|
20
|
+
readonly Employment: readonly [CategoryEnum.FINDING_AND_KEEPING_A_JOB, CategoryEnum.SLES];
|
|
21
|
+
readonly Equipment: readonly [CategoryEnum.DISABILITY_AIDS];
|
|
22
|
+
};
|
|
23
|
+
export declare const statesOptions: {
|
|
24
|
+
label: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
27
|
+
export declare const languageOptions: {
|
|
28
|
+
label: string;
|
|
29
|
+
value: string;
|
|
30
|
+
}[];
|
|
31
|
+
export declare const deliveryOptions: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[];
|
|
35
|
+
export declare const genderOfAttendanceOptions: {
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[];
|
|
39
|
+
export declare const agesSupportedOptions: {
|
|
40
|
+
label: string;
|
|
41
|
+
value: string;
|
|
42
|
+
}[];
|
|
43
|
+
export declare const complexNeedsSupportedOptions: {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
}[];
|
|
47
|
+
export declare const participantPreferenceOptions: {
|
|
48
|
+
label: string;
|
|
49
|
+
value: string;
|
|
50
|
+
}[];
|
|
51
|
+
export declare const participantInterestOptions: {
|
|
52
|
+
label: string;
|
|
53
|
+
value: string;
|
|
54
|
+
}[];
|
|
55
|
+
export declare const providerPreferenceOptions: {
|
|
56
|
+
label: string;
|
|
57
|
+
value: string;
|
|
58
|
+
}[];
|
|
59
|
+
export declare const providerInterestOptions: {
|
|
60
|
+
label: string;
|
|
61
|
+
value: string;
|
|
62
|
+
}[];
|
|
63
|
+
export declare const educationTypeOptions: {
|
|
64
|
+
label: string;
|
|
65
|
+
value: string;
|
|
66
|
+
}[];
|
|
67
|
+
export declare const ProfileAllSteps: ProfileAllStepsEnum[];
|
|
68
|
+
export declare const StateFullToShort: {
|
|
69
|
+
readonly "New South Wales (NSW)": "NSW";
|
|
70
|
+
readonly "Queensland (QLD)": "QLD";
|
|
71
|
+
readonly "South Australia (SA)": "SA";
|
|
72
|
+
readonly "Tasmania (TAS)": "TAS";
|
|
73
|
+
readonly "Victoria (VIC)": "VIC";
|
|
74
|
+
readonly "Western Australia (WA)": "WA";
|
|
75
|
+
readonly "Australian Capital Territory (ACT)": "ACT";
|
|
76
|
+
readonly "Northern Territory (NT)": "NT";
|
|
77
|
+
};
|
|
78
|
+
export declare const StateShortToFull: {
|
|
79
|
+
readonly NSW: "New South Wales (NSW)";
|
|
80
|
+
readonly QLD: "Queensland (QLD)";
|
|
81
|
+
readonly SA: "South Australia (SA)";
|
|
82
|
+
readonly TAS: "Tasmania (TAS)";
|
|
83
|
+
readonly VIC: "Victoria (VIC)";
|
|
84
|
+
readonly WA: "Western Australia (WA)";
|
|
85
|
+
readonly ACT: "Australian Capital Territory (ACT)";
|
|
86
|
+
readonly NT: "Northern Territory (NT)";
|
|
87
|
+
};
|
|
88
|
+
export declare const SupportWorkerServiceLabels: Record<SupportWorkerService, string>;
|
|
89
|
+
export declare const SUPPORT_WORKER_SERVICES_FILTERS: {
|
|
90
|
+
label: string;
|
|
91
|
+
options: {
|
|
92
|
+
label: string;
|
|
93
|
+
value: SupportWorkerService;
|
|
94
|
+
}[];
|
|
95
|
+
}[];
|
|
96
|
+
export declare const commonLabels: {
|
|
97
|
+
GenderOfAttendanceEnum: typeof GenderOfAttendanceEnum;
|
|
98
|
+
};
|
|
99
|
+
export declare const altCommunicationLabels: {
|
|
100
|
+
auslan: string;
|
|
101
|
+
};
|
|
102
|
+
export declare const altCommunicationOptions: {
|
|
103
|
+
auslan: {
|
|
104
|
+
label: string;
|
|
105
|
+
value: AltCommunication;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
export declare const DocumentTypeLabels: Record<DocumentType, string>;
|
|
109
|
+
export declare const onboardingStepsDetails: readonly [{
|
|
110
|
+
readonly id: OnboardingSteps.ABN_AND_BUSINESS_NAME;
|
|
111
|
+
readonly isRequired: true;
|
|
112
|
+
readonly title: "ABN and Business Name";
|
|
113
|
+
readonly description: "Enter your ABN and business name to get started";
|
|
114
|
+
readonly url: "/onboarding/business-info/abn-and-business-name";
|
|
115
|
+
}, {
|
|
116
|
+
readonly id: OnboardingSteps.SERVICES;
|
|
117
|
+
readonly isRequired: true;
|
|
118
|
+
readonly title: "Services";
|
|
119
|
+
readonly description: "Select the services you offer";
|
|
120
|
+
readonly url: "/onboarding/business-info/services";
|
|
121
|
+
}, {
|
|
122
|
+
readonly id: OnboardingSteps.LOCATIONS;
|
|
123
|
+
readonly isRequired: true;
|
|
124
|
+
readonly title: "Locations";
|
|
125
|
+
readonly description: "Select the locations you offer";
|
|
126
|
+
readonly url: "/onboarding/business-info/locations";
|
|
127
|
+
}, {
|
|
128
|
+
readonly id: OnboardingSteps.SUPPORTED_AGES;
|
|
129
|
+
readonly isRequired: false;
|
|
130
|
+
readonly title: "Supported Ages";
|
|
131
|
+
readonly description: "Select the ages you support";
|
|
132
|
+
readonly url: "/onboarding/business-info/supported-ages";
|
|
133
|
+
}, {
|
|
134
|
+
readonly id: OnboardingSteps.EXPERIENCE;
|
|
135
|
+
readonly isRequired: false;
|
|
136
|
+
readonly title: "Experience";
|
|
137
|
+
readonly description: "Enter your experience";
|
|
138
|
+
readonly url: "/onboarding/personal-info/experience";
|
|
139
|
+
}, {
|
|
140
|
+
readonly id: OnboardingSteps.HOURLY_RATE;
|
|
141
|
+
readonly isRequired: false;
|
|
142
|
+
readonly title: "Hourly Rate";
|
|
143
|
+
readonly description: "Enter your hourly rate";
|
|
144
|
+
readonly url: "/onboarding/personal-info/hourly-rate";
|
|
145
|
+
}, {
|
|
146
|
+
readonly id: OnboardingSteps.GENDER;
|
|
147
|
+
readonly isRequired: true;
|
|
148
|
+
readonly title: "Gender";
|
|
149
|
+
readonly description: "Select your gender";
|
|
150
|
+
readonly url: "/onboarding/personal-info/gender";
|
|
151
|
+
}, {
|
|
152
|
+
readonly id: OnboardingSteps.LANGUAGES;
|
|
153
|
+
readonly isRequired: false;
|
|
154
|
+
readonly title: "Languages";
|
|
155
|
+
readonly description: "Select the languages you speak";
|
|
156
|
+
readonly url: "/onboarding/personal-info/languages";
|
|
157
|
+
}, {
|
|
158
|
+
readonly id: OnboardingSteps.PHONE;
|
|
159
|
+
readonly isRequired: false;
|
|
160
|
+
readonly title: "Phone";
|
|
161
|
+
readonly description: "Provides participants a direct way to reach you for jobs you apply to.";
|
|
162
|
+
readonly url: "/onboarding/personal-info/phone";
|
|
163
|
+
}, {
|
|
164
|
+
readonly id: OnboardingSteps.OVERVIEW;
|
|
165
|
+
readonly isRequired: false;
|
|
166
|
+
readonly title: "Overview";
|
|
167
|
+
readonly description: "Introduce yourself to your potential clients";
|
|
168
|
+
readonly url: "/onboarding/personal-info/overview";
|
|
169
|
+
}, {
|
|
170
|
+
readonly id: OnboardingSteps.PHOTO;
|
|
171
|
+
readonly isRequired: true;
|
|
172
|
+
readonly title: "Photo";
|
|
173
|
+
readonly description: "Upload a photo of yourself";
|
|
174
|
+
readonly url: "/onboarding/personal-info/photo";
|
|
175
|
+
}];
|
|
176
|
+
export declare const contractTypeDetails: readonly [{
|
|
177
|
+
readonly id: ContractTypeEnum.CONTRACT_WORK;
|
|
178
|
+
readonly label: "Contract Work";
|
|
179
|
+
readonly description: "Working directly with independent clients or as a subcontractor for providers";
|
|
180
|
+
readonly tooltip: "Prefers working directly with independent clients or as a subcontractor for providers";
|
|
181
|
+
}, {
|
|
182
|
+
readonly id: ContractTypeEnum.CASUAL_WORK;
|
|
183
|
+
readonly label: "Casual Work";
|
|
184
|
+
readonly description: "Casual employment with flexible hours";
|
|
185
|
+
readonly tooltip: "Open to casual employment with flexible hours";
|
|
186
|
+
}, {
|
|
187
|
+
readonly id: ContractTypeEnum.PERMANENT_WORK;
|
|
188
|
+
readonly label: "Permanent Work";
|
|
189
|
+
readonly description: "Ongoing, stable, full-time or part-time employment with a set schedul";
|
|
190
|
+
readonly tooltip: "Seeking ongoing, stable, full-time or part-time employment with a set schedule";
|
|
191
|
+
}];
|
|
192
|
+
export {};
|