@careflair/common 1.0.48 → 1.0.51
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 +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/enums/index.d.ts +2 -2
- package/dist/enums/index.js +2 -2
- package/dist/index.d.ts +8 -9
- package/dist/index.js +1 -4
- package/dist/utils/onboarding.d.ts +2 -2
- package/package.json +1 -6
|
@@ -161,7 +161,7 @@ export declare const onboardingStepsDetails: readonly [{
|
|
|
161
161
|
readonly url: "/onboarding/business-info/locations";
|
|
162
162
|
}, {
|
|
163
163
|
readonly id: OnboardingSteps.SUPPORTED_AGES;
|
|
164
|
-
readonly isRequired:
|
|
164
|
+
readonly isRequired: true;
|
|
165
165
|
readonly title: "Supported Ages";
|
|
166
166
|
readonly description: "Select the participant ages you support";
|
|
167
167
|
readonly url: "/onboarding/business-info/supported-ages";
|
package/dist/constants/index.js
CHANGED
|
@@ -278,7 +278,7 @@ exports.onboardingStepsDetails = [
|
|
|
278
278
|
// },
|
|
279
279
|
{
|
|
280
280
|
id: enums_1.OnboardingSteps.SUPPORTED_AGES,
|
|
281
|
-
isRequired:
|
|
281
|
+
isRequired: true,
|
|
282
282
|
title: "Supported Ages",
|
|
283
283
|
description: "Select the participant ages you support",
|
|
284
284
|
url: "/onboarding/business-info/supported-ages",
|
package/dist/enums/index.d.ts
CHANGED
|
@@ -298,8 +298,8 @@ export declare enum SupportWorkerService {
|
|
|
298
298
|
SupportedIndependentLivingSIL = "supportedIndependentLivingSIL"
|
|
299
299
|
}
|
|
300
300
|
export declare enum JOB_WORKER_TYPE {
|
|
301
|
-
SUPPORT_WORKER = "
|
|
302
|
-
|
|
301
|
+
SUPPORT_WORKER = "support_worker",
|
|
302
|
+
PROVIDER = "provider"
|
|
303
303
|
}
|
|
304
304
|
export declare enum BOOKING_ACTIVITY_TYPE {
|
|
305
305
|
BOOKING_CREATED = "booking_created",
|
package/dist/enums/index.js
CHANGED
|
@@ -350,8 +350,8 @@ var SupportWorkerService;
|
|
|
350
350
|
})(SupportWorkerService || (exports.SupportWorkerService = SupportWorkerService = {}));
|
|
351
351
|
var JOB_WORKER_TYPE;
|
|
352
352
|
(function (JOB_WORKER_TYPE) {
|
|
353
|
-
JOB_WORKER_TYPE["SUPPORT_WORKER"] = "
|
|
354
|
-
JOB_WORKER_TYPE["
|
|
353
|
+
JOB_WORKER_TYPE["SUPPORT_WORKER"] = "support_worker";
|
|
354
|
+
JOB_WORKER_TYPE["PROVIDER"] = "provider";
|
|
355
355
|
})(JOB_WORKER_TYPE || (exports.JOB_WORKER_TYPE = JOB_WORKER_TYPE = {}));
|
|
356
356
|
// booking activity
|
|
357
357
|
var BOOKING_ACTIVITY_TYPE;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
export { UserRegistrationInput, UserRegistrationSchema
|
|
2
|
-
export { EducationAndTrainingInputValidation, EducationAndTrainingSchema
|
|
3
|
-
export { WorkHistoryInputValidation, WorkHistorySchema
|
|
4
|
-
export { AvailabilitiesSchemaZod, AvailabilityZodInput
|
|
5
|
-
export { HourlyRateInputZod, HourlyRateInputZodType
|
|
6
|
-
export { SupportWorkerServicesSchema, validateSupportWorkerServices
|
|
7
|
-
export { detectVideoProvider, extractYouTubeVideoId, isValidCommunityVideoUrl, isValidYouTubeOrVimeoUrl, normalizeYouTubeUrl, validateVideoLink
|
|
8
|
-
export { ApplicationFormValues, applicationSchema, isValidVideoUrl
|
|
9
|
-
export { defineAbilitiesFor, type Actions, type AppAbility, type Subjects, type UserForAbility, } from "./abilities";
|
|
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 { SupportWorkerServicesSchema, validateSupportWorkerServices } from "./schemas/businessServicesValidation";
|
|
7
|
+
export { VideoProvider, VideoValidationResult, detectVideoProvider, extractYouTubeVideoId, isValidCommunityVideoUrl, isValidYouTubeOrVimeoUrl, normalizeYouTubeUrl, validateVideoLink } from "./utils/videoValidation";
|
|
8
|
+
export { ApplicationFormValues, applicationSchema, isValidVideoUrl } from "./schemas/applicationSchema";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.isValidVideoUrl = exports.applicationSchema = exports.validateVideoLink = exports.normalizeYouTubeUrl = exports.isValidYouTubeOrVimeoUrl = exports.isValidCommunityVideoUrl = exports.extractYouTubeVideoId = exports.detectVideoProvider = exports.validateSupportWorkerServices = exports.SupportWorkerServicesSchema = exports.HourlyRateInputZod = exports.AvailabilitiesSchemaZod = exports.WorkHistorySchema = exports.EducationAndTrainingSchema = exports.UserRegistrationSchema = void 0;
|
|
4
4
|
var userValiationSchema_1 = require("./schemas/userValiationSchema");
|
|
5
5
|
Object.defineProperty(exports, "UserRegistrationSchema", { enumerable: true, get: function () { return userValiationSchema_1.UserRegistrationSchema; } });
|
|
6
6
|
var educationSchemas_1 = require("./schemas/educationSchemas");
|
|
@@ -24,6 +24,3 @@ Object.defineProperty(exports, "validateVideoLink", { enumerable: true, get: fun
|
|
|
24
24
|
var applicationSchema_1 = require("./schemas/applicationSchema");
|
|
25
25
|
Object.defineProperty(exports, "applicationSchema", { enumerable: true, get: function () { return applicationSchema_1.applicationSchema; } });
|
|
26
26
|
Object.defineProperty(exports, "isValidVideoUrl", { enumerable: true, get: function () { return applicationSchema_1.isValidVideoUrl; } });
|
|
27
|
-
// CASL Abilities
|
|
28
|
-
var abilities_1 = require("./abilities");
|
|
29
|
-
Object.defineProperty(exports, "defineAbilitiesFor", { enumerable: true, get: function () { return abilities_1.defineAbilitiesFor; } });
|
|
@@ -19,7 +19,7 @@ export declare const getCurrentOnboardingStep: (completedSteps: OnboardingSteps[
|
|
|
19
19
|
readonly url: "/onboarding/business-info/locations";
|
|
20
20
|
} | {
|
|
21
21
|
readonly id: OnboardingSteps.SUPPORTED_AGES;
|
|
22
|
-
readonly isRequired:
|
|
22
|
+
readonly isRequired: true;
|
|
23
23
|
readonly title: "Supported Ages";
|
|
24
24
|
readonly description: "Select the participant ages you support";
|
|
25
25
|
readonly url: "/onboarding/business-info/supported-ages";
|
|
@@ -88,7 +88,7 @@ export declare const getNextOnboardingStep: (currentStep: OnboardingSteps) => {
|
|
|
88
88
|
readonly url: "/onboarding/business-info/locations";
|
|
89
89
|
} | {
|
|
90
90
|
readonly id: OnboardingSteps.SUPPORTED_AGES;
|
|
91
|
-
readonly isRequired:
|
|
91
|
+
readonly isRequired: true;
|
|
92
92
|
readonly title: "Supported Ages";
|
|
93
93
|
readonly description: "Select the participant ages you support";
|
|
94
94
|
readonly url: "/onboarding/business-info/supported-ages";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@careflair/common",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.51",
|
|
4
4
|
"description": "Shared assets for CareFlair",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"author": "Farhan Hossain",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@casl/ability": "^6.7.5",
|
|
22
21
|
"date-fns": "^4.1.0",
|
|
23
22
|
"libphonenumber-js": "^1.12.25"
|
|
24
23
|
},
|
|
@@ -72,10 +71,6 @@
|
|
|
72
71
|
"./interfaces/*": {
|
|
73
72
|
"types": "./dist/interfaces/*.d.ts",
|
|
74
73
|
"default": "./dist/interfaces/*.js"
|
|
75
|
-
},
|
|
76
|
-
"./abilities": {
|
|
77
|
-
"types": "./dist/abilities/index.d.ts",
|
|
78
|
-
"default": "./dist/abilities/index.js"
|
|
79
74
|
}
|
|
80
75
|
},
|
|
81
76
|
"typesVersions": {
|