@careflair/common 1.0.17 → 1.0.19

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.
@@ -142,25 +142,25 @@ export declare const onboardingStepsDetails: readonly [{
142
142
  readonly id: OnboardingSteps.LOCATIONS;
143
143
  readonly isRequired: true;
144
144
  readonly title: "Locations";
145
- readonly description: "Select the locations you offer";
145
+ readonly description: "Select your service locations";
146
146
  readonly url: "/onboarding/business-info/locations";
147
147
  }, {
148
148
  readonly id: OnboardingSteps.SUPPORTED_AGES;
149
149
  readonly isRequired: false;
150
150
  readonly title: "Supported Ages";
151
- readonly description: "Select the ages you support";
151
+ readonly description: "Select the participant ages you support";
152
152
  readonly url: "/onboarding/business-info/supported-ages";
153
153
  }, {
154
154
  readonly id: OnboardingSteps.EXPERIENCE;
155
155
  readonly isRequired: false;
156
156
  readonly title: "Experience";
157
- readonly description: "Enter your experience";
157
+ readonly description: "Your work experience as a support worker/provider";
158
158
  readonly url: "/onboarding/personal-info/experience";
159
159
  }, {
160
160
  readonly id: OnboardingSteps.HOURLY_RATE;
161
161
  readonly isRequired: false;
162
162
  readonly title: "Hourly Rate";
163
- readonly description: "Enter your hourly rate";
163
+ readonly description: "Your base hourly rate";
164
164
  readonly url: "/onboarding/personal-info/hourly-rate";
165
165
  }, {
166
166
  readonly id: OnboardingSteps.GENDER;
@@ -528,7 +528,7 @@ exports.onboardingStepsDetails = [
528
528
  id: enums_1.OnboardingSteps.LOCATIONS,
529
529
  isRequired: true,
530
530
  title: "Locations",
531
- description: "Select the locations you offer",
531
+ description: "Select your service locations",
532
532
  url: "/onboarding/business-info/locations",
533
533
  },
534
534
  // {
@@ -542,21 +542,21 @@ exports.onboardingStepsDetails = [
542
542
  id: enums_1.OnboardingSteps.SUPPORTED_AGES,
543
543
  isRequired: false,
544
544
  title: "Supported Ages",
545
- description: "Select the ages you support",
545
+ description: "Select the participant ages you support",
546
546
  url: "/onboarding/business-info/supported-ages",
547
547
  },
548
548
  {
549
549
  id: enums_1.OnboardingSteps.EXPERIENCE,
550
550
  isRequired: false,
551
551
  title: "Experience",
552
- description: "Enter your experience",
552
+ description: "Your work experience as a support worker/provider",
553
553
  url: "/onboarding/personal-info/experience",
554
554
  },
555
555
  {
556
556
  id: enums_1.OnboardingSteps.HOURLY_RATE,
557
557
  isRequired: false,
558
558
  title: "Hourly Rate",
559
- description: "Enter your hourly rate",
559
+ description: "Your base hourly rate",
560
560
  url: "/onboarding/personal-info/hourly-rate",
561
561
  },
562
562
  {
@@ -7,7 +7,7 @@ export declare const registrationFormSchema: z.ZodEffects<z.ZodObject<{
7
7
  lastName: z.ZodString;
8
8
  email: z.ZodString;
9
9
  username: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
10
- role: z.ZodEffects<z.ZodString, string, string>;
10
+ role: z.ZodString;
11
11
  password: z.ZodString;
12
12
  confirmPassword: z.ZodString;
13
13
  fingerPrint: z.ZodOptional<z.ZodString>;
@@ -4,7 +4,6 @@ exports.WorkHistoryFormSchema = exports.EducationAndTrainingFormSchema = exports
4
4
  const libphonenumber_js_1 = require("libphonenumber-js");
5
5
  const zod_1 = require("zod");
6
6
  const limits_1 = require("../constants/limits");
7
- const enums_1 = require("../enums");
8
7
  const validation_1 = require("./validation");
9
8
  /**
10
9
  * Registration form schema
@@ -31,12 +30,7 @@ exports.registrationFormSchema = zod_1.z
31
30
  .refine((value) => !value.startsWith("_"), "Username cannot start with an underscore")
32
31
  .refine((value) => !value.endsWith("_"), "Username cannot end with an underscore")
33
32
  .refine((value) => !value.includes("__"), "Username cannot contain consecutive underscores"),
34
- role: zod_1.z
35
- .string()
36
- .min(1, "Please select your role")
37
- .refine((val) => Object.values(enums_1.UserRole).includes(val), {
38
- message: "Please select a valid role",
39
- }),
33
+ role: zod_1.z.string().min(1, "Please select your role"),
40
34
  password: validation_1.passwordSchema,
41
35
  confirmPassword: zod_1.z.string().min(1, "Confirm password is required"),
42
36
  fingerPrint: zod_1.z.string().optional(),
@@ -91,11 +85,7 @@ exports.ContactDetailsFormSchema = zod_1.z.object({
91
85
  })
92
86
  .optional()
93
87
  .or(zod_1.z.literal("")),
94
- email: zod_1.z
95
- .string()
96
- .email("Invalid email address")
97
- .optional()
98
- .or(zod_1.z.literal("")),
88
+ email: zod_1.z.string().email("Invalid email address").optional().or(zod_1.z.literal("")),
99
89
  website: zod_1.z
100
90
  .string()
101
91
  .regex(/^(?:https?:\/\/)?[\w-]+(\.[\w-]+)+([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])?$/, "Invalid URL")
@@ -15,25 +15,25 @@ export declare const getCurrentOnboardingStep: (completedSteps: OnboardingSteps[
15
15
  readonly id: OnboardingSteps.LOCATIONS;
16
16
  readonly isRequired: true;
17
17
  readonly title: "Locations";
18
- readonly description: "Select the locations you offer";
18
+ readonly description: "Select your service locations";
19
19
  readonly url: "/onboarding/business-info/locations";
20
20
  } | {
21
21
  readonly id: OnboardingSteps.SUPPORTED_AGES;
22
22
  readonly isRequired: false;
23
23
  readonly title: "Supported Ages";
24
- readonly description: "Select the ages you support";
24
+ readonly description: "Select the participant ages you support";
25
25
  readonly url: "/onboarding/business-info/supported-ages";
26
26
  } | {
27
27
  readonly id: OnboardingSteps.EXPERIENCE;
28
28
  readonly isRequired: false;
29
29
  readonly title: "Experience";
30
- readonly description: "Enter your experience";
30
+ readonly description: "Your work experience as a support worker/provider";
31
31
  readonly url: "/onboarding/personal-info/experience";
32
32
  } | {
33
33
  readonly id: OnboardingSteps.HOURLY_RATE;
34
34
  readonly isRequired: false;
35
35
  readonly title: "Hourly Rate";
36
- readonly description: "Enter your hourly rate";
36
+ readonly description: "Your base hourly rate";
37
37
  readonly url: "/onboarding/personal-info/hourly-rate";
38
38
  } | {
39
39
  readonly id: OnboardingSteps.GENDER;
@@ -84,25 +84,25 @@ export declare const getNextOnboardingStep: (currentStep: OnboardingSteps) => {
84
84
  readonly id: OnboardingSteps.LOCATIONS;
85
85
  readonly isRequired: true;
86
86
  readonly title: "Locations";
87
- readonly description: "Select the locations you offer";
87
+ readonly description: "Select your service locations";
88
88
  readonly url: "/onboarding/business-info/locations";
89
89
  } | {
90
90
  readonly id: OnboardingSteps.SUPPORTED_AGES;
91
91
  readonly isRequired: false;
92
92
  readonly title: "Supported Ages";
93
- readonly description: "Select the ages you support";
93
+ readonly description: "Select the participant ages you support";
94
94
  readonly url: "/onboarding/business-info/supported-ages";
95
95
  } | {
96
96
  readonly id: OnboardingSteps.EXPERIENCE;
97
97
  readonly isRequired: false;
98
98
  readonly title: "Experience";
99
- readonly description: "Enter your experience";
99
+ readonly description: "Your work experience as a support worker/provider";
100
100
  readonly url: "/onboarding/personal-info/experience";
101
101
  } | {
102
102
  readonly id: OnboardingSteps.HOURLY_RATE;
103
103
  readonly isRequired: false;
104
104
  readonly title: "Hourly Rate";
105
- readonly description: "Enter your hourly rate";
105
+ readonly description: "Your base hourly rate";
106
106
  readonly url: "/onboarding/personal-info/hourly-rate";
107
107
  } | {
108
108
  readonly id: OnboardingSteps.GENDER;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careflair/common",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Shared assets for CareFlair",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",