@careflair/common 1.0.54 → 1.0.57

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.
@@ -269,8 +269,12 @@ export declare enum NotificationType {
269
269
  IDENTITY_VERIFICATION_DECLINED = "identityVerificationDeclined",
270
270
  NDIS_SCREENING_APPROVED = "ndisScreeningApproved",
271
271
  NDIS_SCREENING_DECLINED = "ndisScreeningDeclined",
272
+ NDIS_SCREENING_EXPIRED = "ndisScreeningExpired",
273
+ NDIS_SCREENING_REVOKED = "ndisScreeningRevoked",
272
274
  WORKING_WITH_CHILDREN_APPROVED = "workingWithChildrenApproved",
273
275
  WORKING_WITH_CHILDREN_DECLINED = "workingWithChildrenDeclined",
276
+ WORKING_WITH_CHILDREN_EXPIRED = "workingWithChildrenExpired",
277
+ WORKING_WITH_CHILDREN_REVOKED = "workingWithChildrenRevoked",
274
278
  NEW_JOB_OPPORTUNITY = "newJobOpportunity"
275
279
  }
276
280
  export declare enum AltCommunication {
@@ -364,7 +368,8 @@ export declare enum screeningAndChildrenCheckStatus {
364
368
  PENDING = "pending",
365
369
  APPROVED = "approved",
366
370
  DECLINED = "declined",
367
- EXPIRED = "expired"
371
+ EXPIRED = "expired",
372
+ REVOKED = "revoked"
368
373
  }
369
374
  /** Job application (proposal) status – matches Prisma JobApplication.status */
370
375
  export declare enum JobApplicationStatus {
@@ -376,13 +381,19 @@ export declare enum JobApplicationStatus {
376
381
  }
377
382
  export declare enum AccountDeletionReason {
378
383
  NO_LONGER_NEED_SERVICES = "no_longer_need_services",
384
+ NOT_ENOUGH_PROVIDERS = "not_enough_providers",
385
+ NO_LONGER_PROVIDING_SERVICES = "no_longer_providing_services",
386
+ NOT_ENOUGH_JOBS = "not_enough_jobs",
379
387
  FOUND_ANOTHER_PLATFORM = "found_another_platform",
380
388
  PRIVACY_CONCERNS = "privacy_concerns",
381
389
  DIFFICULT_TO_USE = "difficult_to_use",
382
- NOT_ENOUGH_PROVIDERS = "not_enough_providers",
383
390
  OTHER = "other"
384
391
  }
385
392
  export declare const AccountDeletionReasonLabels: Record<AccountDeletionReason, string>;
393
+ /** Reasons shown to hirers (participant, support_person) */
394
+ export declare const ACCOUNT_DELETION_REASONS_FOR_HIRER: AccountDeletionReason[];
395
+ /** Reasons shown to workers (support_worker, provider) */
396
+ export declare const ACCOUNT_DELETION_REASONS_FOR_WORKER: AccountDeletionReason[];
386
397
  export declare enum AccountDeletionStatus {
387
398
  PENDING = "pending",
388
399
  APPROVED = "approved",
@@ -401,6 +412,8 @@ export declare enum PushNotificationType {
401
412
  ID_VERIFICATION_DECLINED = "id_verification_declined",
402
413
  NDIS_SCREENING_APPROVED = "ndis_screening_approved",
403
414
  NDIS_SCREENING_DECLINED = "ndis_screening_declined",
415
+ NDIS_SCREENING_REVOKED = "ndis_screening_revoked",
404
416
  WWCC_APPROVED = "wwcc_approved",
405
- WWCC_DECLINED = "wwcc_declined"
417
+ WWCC_DECLINED = "wwcc_declined",
418
+ WWCC_REVOKED = "wwcc_revoked"
406
419
  }
@@ -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)";
@@ -307,9 +307,13 @@ var NotificationType;
307
307
  // NDIS Worker Screening Check Notifications
308
308
  NotificationType["NDIS_SCREENING_APPROVED"] = "ndisScreeningApproved";
309
309
  NotificationType["NDIS_SCREENING_DECLINED"] = "ndisScreeningDeclined";
310
+ NotificationType["NDIS_SCREENING_EXPIRED"] = "ndisScreeningExpired";
311
+ NotificationType["NDIS_SCREENING_REVOKED"] = "ndisScreeningRevoked";
310
312
  // Working with Children Check Notifications
311
313
  NotificationType["WORKING_WITH_CHILDREN_APPROVED"] = "workingWithChildrenApproved";
312
314
  NotificationType["WORKING_WITH_CHILDREN_DECLINED"] = "workingWithChildrenDeclined";
315
+ NotificationType["WORKING_WITH_CHILDREN_EXPIRED"] = "workingWithChildrenExpired";
316
+ NotificationType["WORKING_WITH_CHILDREN_REVOKED"] = "workingWithChildrenRevoked";
313
317
  // Job Notifications
314
318
  NotificationType["NEW_JOB_OPPORTUNITY"] = "newJobOpportunity";
315
319
  })(NotificationType || (exports.NotificationType = NotificationType = {}));
@@ -434,6 +438,7 @@ var screeningAndChildrenCheckStatus;
434
438
  screeningAndChildrenCheckStatus["APPROVED"] = "approved";
435
439
  screeningAndChildrenCheckStatus["DECLINED"] = "declined";
436
440
  screeningAndChildrenCheckStatus["EXPIRED"] = "expired";
441
+ screeningAndChildrenCheckStatus["REVOKED"] = "revoked";
437
442
  })(screeningAndChildrenCheckStatus || (exports.screeningAndChildrenCheckStatus = screeningAndChildrenCheckStatus = {}));
438
443
  /** Job application (proposal) status – matches Prisma JobApplication.status */
439
444
  var JobApplicationStatus;
@@ -446,21 +451,46 @@ var JobApplicationStatus;
446
451
  })(JobApplicationStatus || (exports.JobApplicationStatus = JobApplicationStatus = {}));
447
452
  var AccountDeletionReason;
448
453
  (function (AccountDeletionReason) {
454
+ // Hirer (participant/support person)
449
455
  AccountDeletionReason["NO_LONGER_NEED_SERVICES"] = "no_longer_need_services";
456
+ AccountDeletionReason["NOT_ENOUGH_PROVIDERS"] = "not_enough_providers";
457
+ // Worker (support worker/provider)
458
+ AccountDeletionReason["NO_LONGER_PROVIDING_SERVICES"] = "no_longer_providing_services";
459
+ AccountDeletionReason["NOT_ENOUGH_JOBS"] = "not_enough_jobs";
460
+ // Both
450
461
  AccountDeletionReason["FOUND_ANOTHER_PLATFORM"] = "found_another_platform";
451
462
  AccountDeletionReason["PRIVACY_CONCERNS"] = "privacy_concerns";
452
463
  AccountDeletionReason["DIFFICULT_TO_USE"] = "difficult_to_use";
453
- AccountDeletionReason["NOT_ENOUGH_PROVIDERS"] = "not_enough_providers";
454
464
  AccountDeletionReason["OTHER"] = "other";
455
465
  })(AccountDeletionReason || (exports.AccountDeletionReason = AccountDeletionReason = {}));
456
466
  exports.AccountDeletionReasonLabels = {
457
467
  [AccountDeletionReason.NO_LONGER_NEED_SERVICES]: "No longer need care services",
468
+ [AccountDeletionReason.NOT_ENOUGH_PROVIDERS]: "Not enough service providers in my area",
469
+ [AccountDeletionReason.NO_LONGER_PROVIDING_SERVICES]: "No longer providing care services",
470
+ [AccountDeletionReason.NOT_ENOUGH_JOBS]: "Not enough job opportunities in my area",
458
471
  [AccountDeletionReason.FOUND_ANOTHER_PLATFORM]: "Found another platform",
459
472
  [AccountDeletionReason.PRIVACY_CONCERNS]: "Privacy concerns",
460
473
  [AccountDeletionReason.DIFFICULT_TO_USE]: "Difficult to use",
461
- [AccountDeletionReason.NOT_ENOUGH_PROVIDERS]: "Not enough service providers in my area",
462
474
  [AccountDeletionReason.OTHER]: "Other",
463
475
  };
476
+ /** Reasons shown to hirers (participant, support_person) */
477
+ exports.ACCOUNT_DELETION_REASONS_FOR_HIRER = [
478
+ AccountDeletionReason.NO_LONGER_NEED_SERVICES,
479
+ AccountDeletionReason.NOT_ENOUGH_PROVIDERS,
480
+ AccountDeletionReason.FOUND_ANOTHER_PLATFORM,
481
+ AccountDeletionReason.PRIVACY_CONCERNS,
482
+ AccountDeletionReason.DIFFICULT_TO_USE,
483
+ AccountDeletionReason.OTHER,
484
+ ];
485
+ /** Reasons shown to workers (support_worker, provider) */
486
+ exports.ACCOUNT_DELETION_REASONS_FOR_WORKER = [
487
+ AccountDeletionReason.NO_LONGER_PROVIDING_SERVICES,
488
+ AccountDeletionReason.NOT_ENOUGH_JOBS,
489
+ AccountDeletionReason.FOUND_ANOTHER_PLATFORM,
490
+ AccountDeletionReason.PRIVACY_CONCERNS,
491
+ AccountDeletionReason.DIFFICULT_TO_USE,
492
+ AccountDeletionReason.OTHER,
493
+ ];
464
494
  var AccountDeletionStatus;
465
495
  (function (AccountDeletionStatus) {
466
496
  AccountDeletionStatus["PENDING"] = "pending";
@@ -482,6 +512,8 @@ var PushNotificationType;
482
512
  PushNotificationType["ID_VERIFICATION_DECLINED"] = "id_verification_declined";
483
513
  PushNotificationType["NDIS_SCREENING_APPROVED"] = "ndis_screening_approved";
484
514
  PushNotificationType["NDIS_SCREENING_DECLINED"] = "ndis_screening_declined";
515
+ PushNotificationType["NDIS_SCREENING_REVOKED"] = "ndis_screening_revoked";
485
516
  PushNotificationType["WWCC_APPROVED"] = "wwcc_approved";
486
517
  PushNotificationType["WWCC_DECLINED"] = "wwcc_declined";
518
+ PushNotificationType["WWCC_REVOKED"] = "wwcc_revoked";
487
519
  })(PushNotificationType || (exports.PushNotificationType = PushNotificationType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@careflair/common",
3
- "version": "1.0.54",
3
+ "version": "1.0.57",
4
4
  "description": "Shared assets for CareFlair",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",