@careflair/common 1.0.54 → 1.0.55

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.
@@ -376,13 +376,19 @@ export declare enum JobApplicationStatus {
376
376
  }
377
377
  export declare enum AccountDeletionReason {
378
378
  NO_LONGER_NEED_SERVICES = "no_longer_need_services",
379
+ NOT_ENOUGH_PROVIDERS = "not_enough_providers",
380
+ NO_LONGER_PROVIDING_SERVICES = "no_longer_providing_services",
381
+ NOT_ENOUGH_JOBS = "not_enough_jobs",
379
382
  FOUND_ANOTHER_PLATFORM = "found_another_platform",
380
383
  PRIVACY_CONCERNS = "privacy_concerns",
381
384
  DIFFICULT_TO_USE = "difficult_to_use",
382
- NOT_ENOUGH_PROVIDERS = "not_enough_providers",
383
385
  OTHER = "other"
384
386
  }
385
387
  export declare const AccountDeletionReasonLabels: Record<AccountDeletionReason, string>;
388
+ /** Reasons shown to hirers (participant, support_person) */
389
+ export declare const ACCOUNT_DELETION_REASONS_FOR_HIRER: AccountDeletionReason[];
390
+ /** Reasons shown to workers (support_worker, provider) */
391
+ export declare const ACCOUNT_DELETION_REASONS_FOR_WORKER: AccountDeletionReason[];
386
392
  export declare enum AccountDeletionStatus {
387
393
  PENDING = "pending",
388
394
  APPROVED = "approved",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PushNotificationType = exports.AccountDeletionStatus = exports.AccountDeletionReasonLabels = exports.AccountDeletionReason = exports.JobApplicationStatus = exports.screeningAndChildrenCheckStatus = exports.veriffStatuses = exports.ContractTypeEnum = exports.OnboardingSteps = exports.DocumentType = exports.JOB_TABS = exports.BOOKING_ACTIVITY_TYPE = exports.JOB_WORKER_TYPE = exports.SupportWorkerService = exports.AltCommunication = exports.NotificationType = exports.JobScheduleFrequencyEnum = exports.FileContentType = exports.MessageStatus = exports.MessageType = exports.PostUpvoteTypes = exports.PostTypes = exports.CommunityMembersStatuses = exports.AttachmentFilesEnum = exports.ProviderInterestEnum = exports.ProviderPreferenceEnum = exports.ParticipantInterestEnum = exports.ParticipantPreferenceEnum = exports.DaysOfWeek = exports.ProfileAllStepsEnum = exports.BusinessClassTypes = exports.BusinessType = exports.OtpType = exports.UserRole = exports.EducationTypeEnum = exports.ComplexNeedsSupportedEnum = exports.AgesSupportedEnum = exports.GenderOfAttendanceEnum = exports.DeliveryEnum = exports.LanguageEnum = exports.StatesEnum = void 0;
3
+ exports.PushNotificationType = exports.AccountDeletionStatus = exports.ACCOUNT_DELETION_REASONS_FOR_WORKER = exports.ACCOUNT_DELETION_REASONS_FOR_HIRER = exports.AccountDeletionReasonLabels = exports.AccountDeletionReason = exports.JobApplicationStatus = exports.screeningAndChildrenCheckStatus = exports.veriffStatuses = exports.ContractTypeEnum = exports.OnboardingSteps = exports.DocumentType = exports.JOB_TABS = exports.BOOKING_ACTIVITY_TYPE = exports.JOB_WORKER_TYPE = exports.SupportWorkerService = exports.AltCommunication = exports.NotificationType = exports.JobScheduleFrequencyEnum = exports.FileContentType = exports.MessageStatus = exports.MessageType = exports.PostUpvoteTypes = exports.PostTypes = exports.CommunityMembersStatuses = exports.AttachmentFilesEnum = exports.ProviderInterestEnum = exports.ProviderPreferenceEnum = exports.ParticipantInterestEnum = exports.ParticipantPreferenceEnum = exports.DaysOfWeek = exports.ProfileAllStepsEnum = exports.BusinessClassTypes = exports.BusinessType = exports.OtpType = exports.UserRole = exports.EducationTypeEnum = exports.ComplexNeedsSupportedEnum = exports.AgesSupportedEnum = exports.GenderOfAttendanceEnum = exports.DeliveryEnum = exports.LanguageEnum = exports.StatesEnum = void 0;
4
4
  var StatesEnum;
5
5
  (function (StatesEnum) {
6
6
  StatesEnum["NEW_SOUTH_WALES_NSW"] = "New South Wales (NSW)";
@@ -446,21 +446,46 @@ var JobApplicationStatus;
446
446
  })(JobApplicationStatus || (exports.JobApplicationStatus = JobApplicationStatus = {}));
447
447
  var AccountDeletionReason;
448
448
  (function (AccountDeletionReason) {
449
+ // Hirer (participant/support person)
449
450
  AccountDeletionReason["NO_LONGER_NEED_SERVICES"] = "no_longer_need_services";
451
+ AccountDeletionReason["NOT_ENOUGH_PROVIDERS"] = "not_enough_providers";
452
+ // Worker (support worker/provider)
453
+ AccountDeletionReason["NO_LONGER_PROVIDING_SERVICES"] = "no_longer_providing_services";
454
+ AccountDeletionReason["NOT_ENOUGH_JOBS"] = "not_enough_jobs";
455
+ // Both
450
456
  AccountDeletionReason["FOUND_ANOTHER_PLATFORM"] = "found_another_platform";
451
457
  AccountDeletionReason["PRIVACY_CONCERNS"] = "privacy_concerns";
452
458
  AccountDeletionReason["DIFFICULT_TO_USE"] = "difficult_to_use";
453
- AccountDeletionReason["NOT_ENOUGH_PROVIDERS"] = "not_enough_providers";
454
459
  AccountDeletionReason["OTHER"] = "other";
455
460
  })(AccountDeletionReason || (exports.AccountDeletionReason = AccountDeletionReason = {}));
456
461
  exports.AccountDeletionReasonLabels = {
457
462
  [AccountDeletionReason.NO_LONGER_NEED_SERVICES]: "No longer need care services",
463
+ [AccountDeletionReason.NOT_ENOUGH_PROVIDERS]: "Not enough service providers in my area",
464
+ [AccountDeletionReason.NO_LONGER_PROVIDING_SERVICES]: "No longer providing care services",
465
+ [AccountDeletionReason.NOT_ENOUGH_JOBS]: "Not enough job opportunities in my area",
458
466
  [AccountDeletionReason.FOUND_ANOTHER_PLATFORM]: "Found another platform",
459
467
  [AccountDeletionReason.PRIVACY_CONCERNS]: "Privacy concerns",
460
468
  [AccountDeletionReason.DIFFICULT_TO_USE]: "Difficult to use",
461
- [AccountDeletionReason.NOT_ENOUGH_PROVIDERS]: "Not enough service providers in my area",
462
469
  [AccountDeletionReason.OTHER]: "Other",
463
470
  };
471
+ /** Reasons shown to hirers (participant, support_person) */
472
+ exports.ACCOUNT_DELETION_REASONS_FOR_HIRER = [
473
+ AccountDeletionReason.NO_LONGER_NEED_SERVICES,
474
+ AccountDeletionReason.NOT_ENOUGH_PROVIDERS,
475
+ AccountDeletionReason.FOUND_ANOTHER_PLATFORM,
476
+ AccountDeletionReason.PRIVACY_CONCERNS,
477
+ AccountDeletionReason.DIFFICULT_TO_USE,
478
+ AccountDeletionReason.OTHER,
479
+ ];
480
+ /** Reasons shown to workers (support_worker, provider) */
481
+ exports.ACCOUNT_DELETION_REASONS_FOR_WORKER = [
482
+ AccountDeletionReason.NO_LONGER_PROVIDING_SERVICES,
483
+ AccountDeletionReason.NOT_ENOUGH_JOBS,
484
+ AccountDeletionReason.FOUND_ANOTHER_PLATFORM,
485
+ AccountDeletionReason.PRIVACY_CONCERNS,
486
+ AccountDeletionReason.DIFFICULT_TO_USE,
487
+ AccountDeletionReason.OTHER,
488
+ ];
464
489
  var AccountDeletionStatus;
465
490
  (function (AccountDeletionStatus) {
466
491
  AccountDeletionStatus["PENDING"] = "pending";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careflair/common",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "Shared assets for CareFlair",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",