@timardex/cluemart-shared 1.5.755 → 1.5.757

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.
Files changed (36) hide show
  1. package/dist/{chunk-DQVXL6TO.mjs → chunk-3MLTYJMV.mjs} +2 -2
  2. package/dist/{chunk-IMQU3E2F.mjs → chunk-6CRQZK5X.mjs} +2 -2
  3. package/dist/{chunk-WBJDMRUC.mjs → chunk-O3S5IQT3.mjs} +136 -137
  4. package/dist/chunk-O3S5IQT3.mjs.map +1 -0
  5. package/dist/{chunk-KZLKBUMF.mjs → chunk-UK4D5N3O.mjs} +82 -2
  6. package/dist/chunk-UK4D5N3O.mjs.map +1 -0
  7. package/dist/formFields/index.cjs +8 -0
  8. package/dist/formFields/index.cjs.map +1 -1
  9. package/dist/formFields/index.mjs +2 -2
  10. package/dist/graphql/index.cjs +195 -195
  11. package/dist/graphql/index.cjs.map +1 -1
  12. package/dist/graphql/index.d.mts +3 -1
  13. package/dist/graphql/index.d.ts +3 -1
  14. package/dist/graphql/index.mjs +3 -1
  15. package/dist/hooks/index.cjs +167 -161
  16. package/dist/hooks/index.cjs.map +1 -1
  17. package/dist/hooks/index.mjs +4 -4
  18. package/dist/index.cjs +285 -195
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.mts +26 -1
  21. package/dist/index.d.ts +26 -1
  22. package/dist/index.mjs +215 -136
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/sharing/index.cjs +8 -0
  25. package/dist/sharing/index.cjs.map +1 -1
  26. package/dist/sharing/index.mjs +2 -2
  27. package/dist/utils/index.cjs +90 -0
  28. package/dist/utils/index.cjs.map +1 -1
  29. package/dist/utils/index.d.mts +26 -3
  30. package/dist/utils/index.d.ts +26 -3
  31. package/dist/utils/index.mjs +21 -1
  32. package/package.json +1 -1
  33. package/dist/chunk-KZLKBUMF.mjs.map +0 -1
  34. package/dist/chunk-WBJDMRUC.mjs.map +0 -1
  35. /package/dist/{chunk-DQVXL6TO.mjs.map → chunk-3MLTYJMV.mjs.map} +0 -0
  36. /package/dist/{chunk-IMQU3E2F.mjs.map → chunk-6CRQZK5X.mjs.map} +0 -0
@@ -166,7 +166,7 @@ var React = __toESM(require("react"));
166
166
  var import_react_hook_form = require("react-hook-form");
167
167
 
168
168
  // src/yupSchema/global.ts
169
- var import_dayjs2 = __toESM(require("dayjs"));
169
+ var import_dayjs3 = __toESM(require("dayjs"));
170
170
  var import_customParseFormat2 = __toESM(require("dayjs/plugin/customParseFormat.js"));
171
171
  var import_isSameOrAfter2 = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
172
172
  var yup = __toESM(require("yup"));
@@ -546,6 +546,14 @@ var EVENT_DATE_STATUS_PERIOD_MAP = {
546
546
  ]
547
547
  };
548
548
 
549
+ // src/calendar/eventCalendar.ts
550
+ var import_dayjs2 = __toESM(require("dayjs"));
551
+ var KNOWN_EVENT_SCHEDULE_STATUSES = /* @__PURE__ */ new Set([
552
+ "Started" /* STARTED */,
553
+ "Starting_Soon" /* STARTING_SOON */,
554
+ "Ended" /* ENDED */
555
+ ]);
556
+
549
557
  // src/yupSchema/global.ts
550
558
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
551
559
  var nzbnRegex = /^94\d{11}$/;
@@ -586,8 +594,8 @@ var toOptionalNumber = (originalValue) => {
586
594
  }
587
595
  return Number.isNaN(parsed) ? void 0 : parsed;
588
596
  };
589
- import_dayjs2.default.extend(import_isSameOrAfter2.default);
590
- import_dayjs2.default.extend(import_customParseFormat2.default);
597
+ import_dayjs3.default.extend(import_isSameOrAfter2.default);
598
+ import_dayjs3.default.extend(import_customParseFormat2.default);
591
599
  var emailRequiredSchema = yup.string().email("Invalid email address").required("Email is required").label("Email").transform(
592
600
  (value) => typeof value === "string" ? value.trim().toLowerCase() : value
593
601
  );
@@ -618,12 +626,12 @@ var contactDetailsSchema = yup.object({
618
626
  landlinePhone: landlinePhoneSchema
619
627
  }).nullable().default(void 0);
620
628
  var endDateNotInPastTest = yup.string().test("not-in-past", "End date cannot be in the past", (value) => {
621
- const now = (0, import_dayjs2.default)();
622
- return value ? (0, import_dayjs2.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
629
+ const now = (0, import_dayjs3.default)();
630
+ return value ? (0, import_dayjs3.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
623
631
  });
624
632
  var startDateNotInPastTest = yup.string().test("not-in-past", "Start date cannot be in the past", (value) => {
625
- const now = (0, import_dayjs2.default)();
626
- return value ? (0, import_dayjs2.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
633
+ const now = (0, import_dayjs3.default)();
634
+ return value ? (0, import_dayjs3.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
627
635
  });
628
636
  var endDateAfterStartDateTest = yup.string().test(
629
637
  "end-after-start",
@@ -631,8 +639,8 @@ var endDateAfterStartDateTest = yup.string().test(
631
639
  function(value) {
632
640
  const { startDate } = this.parent;
633
641
  if (!startDate || !value) return false;
634
- return (0, import_dayjs2.default)(value, dateFormat, true).isSameOrAfter(
635
- (0, import_dayjs2.default)(startDate, dateFormat, true),
642
+ return (0, import_dayjs3.default)(value, dateFormat, true).isSameOrAfter(
643
+ (0, import_dayjs3.default)(startDate, dateFormat, true),
636
644
  "day"
637
645
  );
638
646
  }
@@ -643,12 +651,12 @@ var endTimeMustBeAfterStartTimeTest = yup.string().test(
643
651
  function(value) {
644
652
  const { startDate, endDate, startTime } = this.parent;
645
653
  if (!startDate || !endDate || !startTime || !value) return false;
646
- const startDateTime = (0, import_dayjs2.default)(
654
+ const startDateTime = (0, import_dayjs3.default)(
647
655
  `${startDate} ${startTime}`,
648
656
  `${dateFormat} ${timeFormat}`,
649
657
  true
650
658
  );
651
- const endDateTime = (0, import_dayjs2.default)(
659
+ const endDateTime = (0, import_dayjs3.default)(
652
660
  `${endDate} ${value}`,
653
661
  `${dateFormat} ${timeFormat}`,
654
662
  true
@@ -660,10 +668,10 @@ var startTimeCannotBeInPastTest = yup.string().test(
660
668
  "valid-start-time",
661
669
  "Start time cannot be in the past",
662
670
  function(value) {
663
- const now = (0, import_dayjs2.default)();
671
+ const now = (0, import_dayjs3.default)();
664
672
  const { startDate } = this.parent;
665
673
  if (!startDate || !value) return false;
666
- const startDateTime = (0, import_dayjs2.default)(
674
+ const startDateTime = (0, import_dayjs3.default)(
667
675
  `${startDate} ${value}`,
668
676
  `${dateFormat} ${timeFormat}`,
669
677
  true
@@ -3361,12 +3369,81 @@ var GET_POSTS_BY_TYPE = import_client7.gql`
3361
3369
  ${POST_FIELDS_FRAGMENT}
3362
3370
  `;
3363
3371
 
3372
+ // src/graphql/queries/relation.ts
3373
+ var import_client8 = require("@apollo/client");
3374
+ var RELATION_FIELDS_FRAGMENT = import_client8.gql`
3375
+ fragment RelationFields on RelationType {
3376
+ _id
3377
+ active
3378
+ chatId
3379
+ createdAt
3380
+ lastUpdateBy
3381
+ eventId
3382
+ relationDates {
3383
+ ...RelationDates
3384
+ }
3385
+ relationType
3386
+ vendorId
3387
+ updatedAt
3388
+ }
3389
+ ${RELATION_DATES_FRAGMENT}
3390
+ `;
3391
+ var GET_RELATION = import_client8.gql`
3392
+ query getRelation($_id: ID!) {
3393
+ relation(_id: $_id) {
3394
+ ...RelationFields
3395
+ }
3396
+ }
3397
+ ${RELATION_FIELDS_FRAGMENT}
3398
+ `;
3399
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client8.gql`
3400
+ query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
3401
+ relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
3402
+ ...RelationFields
3403
+ }
3404
+ }
3405
+ ${RELATION_FIELDS_FRAGMENT}
3406
+ `;
3407
+ var GET_EVENT_RELATIONS = import_client8.gql`
3408
+ query getEventRelations($eventId: ID!) {
3409
+ eventRelations(eventId: $eventId) {
3410
+ ...RelationFields
3411
+ }
3412
+ }
3413
+ ${RELATION_FIELDS_FRAGMENT}
3414
+ `;
3415
+ var GET_VENDOR_RELATIONS = import_client8.gql`
3416
+ query getVendorRelations($vendorId: ID!) {
3417
+ vendorRelations(vendorId: $vendorId) {
3418
+ ...RelationFields
3419
+ }
3420
+ }
3421
+ ${RELATION_FIELDS_FRAGMENT}
3422
+ `;
3423
+ var GET_RESOURCE_CONNECTIONS = import_client8.gql`
3424
+ query getResourceConnections(
3425
+ $resourceId: ID!
3426
+ $resourceType: ResourceTypeEnum!
3427
+ ) {
3428
+ resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
3429
+ events {
3430
+ ...EventListItemFields
3431
+ }
3432
+ vendors {
3433
+ ...VendorFields
3434
+ }
3435
+ }
3436
+ }
3437
+ ${VENDOR}
3438
+ ${EVENT_LIST_ITEM}
3439
+ `;
3440
+
3364
3441
  // src/graphql/hooks/admin/hooksMutation.ts
3365
- var import_client9 = require("@apollo/client");
3442
+ var import_client10 = require("@apollo/client");
3366
3443
 
3367
3444
  // src/graphql/mutations/admin.ts
3368
- var import_client8 = require("@apollo/client");
3369
- var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client8.gql`
3445
+ var import_client9 = require("@apollo/client");
3446
+ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client9.gql`
3370
3447
  mutation adminUpdateResourceType($input: AdminUpdateResourceInputType!) {
3371
3448
  adminUpdateResourceType(input: $input) {
3372
3449
  active
@@ -3375,12 +3452,12 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client8.gql`
3375
3452
  }
3376
3453
  }
3377
3454
  `;
3378
- var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client8.gql`
3455
+ var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client9.gql`
3379
3456
  mutation adminResendUserVerificationEmail($userId: ID!) {
3380
3457
  adminResendUserVerificationEmail(userId: $userId)
3381
3458
  }
3382
3459
  `;
3383
- var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client8.gql`
3460
+ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client9.gql`
3384
3461
  mutation adminPermanentlyDeleteResource(
3385
3462
  $resourceId: ID!
3386
3463
  $resourceType: ResourceTypeEnum!
@@ -3393,11 +3470,11 @@ var ADMIN_PERMANENTLY_DELETE_RESOURCE_MUTATION = import_client8.gql`
3393
3470
  `;
3394
3471
 
3395
3472
  // src/graphql/hooks/auth.ts
3396
- var import_client11 = require("@apollo/client");
3473
+ var import_client12 = require("@apollo/client");
3397
3474
 
3398
3475
  // src/graphql/mutations/auth.ts
3399
- var import_client10 = require("@apollo/client");
3400
- var REGISTER_MUTATION = import_client10.gql`
3476
+ var import_client11 = require("@apollo/client");
3477
+ var REGISTER_MUTATION = import_client11.gql`
3401
3478
  mutation register($input: RegisterInputType!) {
3402
3479
  register(input: $input) {
3403
3480
  message
@@ -3410,7 +3487,7 @@ var REGISTER_MUTATION = import_client10.gql`
3410
3487
  }
3411
3488
  ${USER_FIELDS_FRAGMENT}
3412
3489
  `;
3413
- var LOGIN_MUTATION = import_client10.gql`
3490
+ var LOGIN_MUTATION = import_client11.gql`
3414
3491
  mutation login($input: LoginInputType!) {
3415
3492
  login(input: $input) {
3416
3493
  message
@@ -3423,14 +3500,14 @@ var LOGIN_MUTATION = import_client10.gql`
3423
3500
  }
3424
3501
  ${USER_FIELDS_FRAGMENT}
3425
3502
  `;
3426
- var LOGOUT_MUTATION = import_client10.gql`
3503
+ var LOGOUT_MUTATION = import_client11.gql`
3427
3504
  mutation logout {
3428
3505
  logout {
3429
3506
  message
3430
3507
  }
3431
3508
  }
3432
3509
  `;
3433
- var REFRESH_TOKEN_MUTATION = import_client10.gql`
3510
+ var REFRESH_TOKEN_MUTATION = import_client11.gql`
3434
3511
  mutation refreshToken($input: RefreshTokenInputType!) {
3435
3512
  refreshToken(input: $input) {
3436
3513
  refreshToken
@@ -3438,21 +3515,21 @@ var REFRESH_TOKEN_MUTATION = import_client10.gql`
3438
3515
  }
3439
3516
  }
3440
3517
  `;
3441
- var RESET_PASSWORD_MUTATION = import_client10.gql`
3518
+ var RESET_PASSWORD_MUTATION = import_client11.gql`
3442
3519
  mutation resetPassword($input: ResetPasswordInputType!) {
3443
3520
  resetPassword(input: $input) {
3444
3521
  message
3445
3522
  }
3446
3523
  }
3447
3524
  `;
3448
- var REQUEST_PASSWORD_RESET_MUTATION = import_client10.gql`
3525
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client11.gql`
3449
3526
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
3450
3527
  requestPasswordReset(input: $input) {
3451
3528
  message
3452
3529
  }
3453
3530
  }
3454
3531
  `;
3455
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client10.gql`
3532
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client11.gql`
3456
3533
  mutation validateVerificationToken(
3457
3534
  $input: ValidateVerificationTokenInputType!
3458
3535
  ) {
@@ -3463,14 +3540,14 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client10.gql`
3463
3540
  `;
3464
3541
 
3465
3542
  // src/graphql/hooks/chat/hooksMutation.ts
3466
- var import_client14 = require("@apollo/client");
3543
+ var import_client15 = require("@apollo/client");
3467
3544
 
3468
3545
  // src/graphql/mutations/chat.ts
3469
- var import_client13 = require("@apollo/client");
3546
+ var import_client14 = require("@apollo/client");
3470
3547
 
3471
3548
  // src/graphql/queries/chat.ts
3472
- var import_client12 = require("@apollo/client");
3473
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client12.gql`
3549
+ var import_client13 = require("@apollo/client");
3550
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client13.gql`
3474
3551
  fragment ChatMessageFields on ChatMessageType {
3475
3552
  _id
3476
3553
  content
@@ -3493,7 +3570,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client12.gql`
3493
3570
  updatedAt
3494
3571
  }
3495
3572
  `;
3496
- var CHAT_PARTICIPANT = import_client12.gql`
3573
+ var CHAT_PARTICIPANT = import_client13.gql`
3497
3574
  fragment ChatParticipantFields on ChatParticipantType {
3498
3575
  active
3499
3576
  isAssociate
@@ -3503,7 +3580,7 @@ var CHAT_PARTICIPANT = import_client12.gql`
3503
3580
  userName
3504
3581
  }
3505
3582
  `;
3506
- var CHAT_FIELDS_FRAGMENT = import_client12.gql`
3583
+ var CHAT_FIELDS_FRAGMENT = import_client13.gql`
3507
3584
  fragment ChatFields on ChatType {
3508
3585
  _id
3509
3586
  active
@@ -3524,7 +3601,7 @@ var CHAT_FIELDS_FRAGMENT = import_client12.gql`
3524
3601
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
3525
3602
  ${CHAT_PARTICIPANT}
3526
3603
  `;
3527
- var CHAT = import_client12.gql`
3604
+ var CHAT = import_client13.gql`
3528
3605
  query chat($_id: ID!) {
3529
3606
  chat(_id: $_id) {
3530
3607
  ...ChatFields
@@ -3532,7 +3609,7 @@ var CHAT = import_client12.gql`
3532
3609
  }
3533
3610
  ${CHAT_FIELDS_FRAGMENT}
3534
3611
  `;
3535
- var USER_CHATS = import_client12.gql`
3612
+ var USER_CHATS = import_client13.gql`
3536
3613
  query userChats {
3537
3614
  userChats {
3538
3615
  ...ChatFields
@@ -3540,7 +3617,7 @@ var USER_CHATS = import_client12.gql`
3540
3617
  }
3541
3618
  ${CHAT_FIELDS_FRAGMENT}
3542
3619
  `;
3543
- var GET_CHATS_BY_REGION = import_client12.gql`
3620
+ var GET_CHATS_BY_REGION = import_client13.gql`
3544
3621
  query getChatsByRegion($region: String!) {
3545
3622
  chatsByRegion(region: $region) {
3546
3623
  ...ChatFields
@@ -3548,7 +3625,7 @@ var GET_CHATS_BY_REGION = import_client12.gql`
3548
3625
  }
3549
3626
  ${CHAT_FIELDS_FRAGMENT}
3550
3627
  `;
3551
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client12.gql`
3628
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client13.gql`
3552
3629
  fragment ChatReportFields on ReportChatUserType {
3553
3630
  _id
3554
3631
  chatId
@@ -3563,7 +3640,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client12.gql`
3563
3640
  updatedAt
3564
3641
  }
3565
3642
  `;
3566
- var GET_REPORTED_CHAT_USERS = import_client12.gql`
3643
+ var GET_REPORTED_CHAT_USERS = import_client13.gql`
3567
3644
  query getReportedChatUsers {
3568
3645
  reportedChatUsers {
3569
3646
  ...ChatReportFields
@@ -3573,7 +3650,7 @@ var GET_REPORTED_CHAT_USERS = import_client12.gql`
3573
3650
  `;
3574
3651
 
3575
3652
  // src/graphql/mutations/chat.ts
3576
- var CREATE_PRIVATE_CHAT_MUTATION = import_client13.gql`
3653
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client14.gql`
3577
3654
  mutation createPrivateChat($userId: ID!) {
3578
3655
  createPrivateChat(userId: $userId) {
3579
3656
  ...ChatFields
@@ -3581,7 +3658,7 @@ var CREATE_PRIVATE_CHAT_MUTATION = import_client13.gql`
3581
3658
  }
3582
3659
  ${CHAT_FIELDS_FRAGMENT}
3583
3660
  `;
3584
- var SEND_CHAT_MESSAGE_MUTATION = import_client13.gql`
3661
+ var SEND_CHAT_MESSAGE_MUTATION = import_client14.gql`
3585
3662
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
3586
3663
  sendChatMessage(_id: $_id, input: $input) {
3587
3664
  ...ChatFields
@@ -3589,12 +3666,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client13.gql`
3589
3666
  }
3590
3667
  ${CHAT_FIELDS_FRAGMENT}
3591
3668
  `;
3592
- var DELETE_CHAT_MUTATION = import_client13.gql`
3669
+ var DELETE_CHAT_MUTATION = import_client14.gql`
3593
3670
  mutation deleteChat($_id: ID!) {
3594
3671
  deleteChat(_id: $_id)
3595
3672
  }
3596
3673
  `;
3597
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client13.gql`
3674
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client14.gql`
3598
3675
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
3599
3676
  addParticipantToChat(chatId: $chatId, userId: $userId) {
3600
3677
  ...ChatFields
@@ -3602,7 +3679,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client13.gql`
3602
3679
  }
3603
3680
  ${CHAT_FIELDS_FRAGMENT}
3604
3681
  `;
3605
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client13.gql`
3682
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client14.gql`
3606
3683
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
3607
3684
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
3608
3685
  success
@@ -3610,7 +3687,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client13.gql`
3610
3687
  }
3611
3688
  }
3612
3689
  `;
3613
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client13.gql`
3690
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client14.gql`
3614
3691
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
3615
3692
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
3616
3693
  ...ChatFields
@@ -3618,7 +3695,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client13.gql`
3618
3695
  }
3619
3696
  ${CHAT_FIELDS_FRAGMENT}
3620
3697
  `;
3621
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client13.gql`
3698
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client14.gql`
3622
3699
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
3623
3700
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
3624
3701
  ...ChatFields
@@ -3626,7 +3703,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client13.gql`
3626
3703
  }
3627
3704
  ${CHAT_FIELDS_FRAGMENT}
3628
3705
  `;
3629
- var REPORT_CHAT_USER_MUTATION = import_client13.gql`
3706
+ var REPORT_CHAT_USER_MUTATION = import_client14.gql`
3630
3707
  mutation reportChatUser($input: ReportChatUserInputType!) {
3631
3708
  reportChatUser(input: $input) {
3632
3709
  ...ChatReportFields
@@ -3636,11 +3713,11 @@ var REPORT_CHAT_USER_MUTATION = import_client13.gql`
3636
3713
  `;
3637
3714
 
3638
3715
  // src/graphql/hooks/chat/hooksQuery.ts
3639
- var import_client16 = require("@apollo/client");
3716
+ var import_client17 = require("@apollo/client");
3640
3717
 
3641
3718
  // src/graphql/subscriptions/chat.ts
3642
- var import_client15 = require("@apollo/client");
3643
- var GET_CHAT_MESSAGE = import_client15.gql`
3719
+ var import_client16 = require("@apollo/client");
3720
+ var GET_CHAT_MESSAGE = import_client16.gql`
3644
3721
  subscription {
3645
3722
  getChatMessage {
3646
3723
  ...ChatFields
@@ -3650,11 +3727,11 @@ var GET_CHAT_MESSAGE = import_client15.gql`
3650
3727
  `;
3651
3728
 
3652
3729
  // src/graphql/hooks/contactUs.ts
3653
- var import_client18 = require("@apollo/client");
3730
+ var import_client19 = require("@apollo/client");
3654
3731
 
3655
3732
  // src/graphql/mutations/contactUs.ts
3656
- var import_client17 = require("@apollo/client");
3657
- var CONTACT_US_MUTATION = import_client17.gql`
3733
+ var import_client18 = require("@apollo/client");
3734
+ var CONTACT_US_MUTATION = import_client18.gql`
3658
3735
  mutation contactUs($input: ContactUsInputType!) {
3659
3736
  contactUs(input: $input) {
3660
3737
  message
@@ -3663,11 +3740,11 @@ var CONTACT_US_MUTATION = import_client17.gql`
3663
3740
  `;
3664
3741
 
3665
3742
  // src/graphql/hooks/event/hooksMutation.ts
3666
- var import_client21 = require("@apollo/client");
3743
+ var import_client22 = require("@apollo/client");
3667
3744
 
3668
3745
  // src/graphql/mutations/event.ts
3669
- var import_client19 = require("@apollo/client");
3670
- var CREATE_EVENT_MUTATION = import_client19.gql`
3746
+ var import_client20 = require("@apollo/client");
3747
+ var CREATE_EVENT_MUTATION = import_client20.gql`
3671
3748
  mutation createEvent($input: EventInputType!) {
3672
3749
  createEvent(input: $input) {
3673
3750
  ...EventFields
@@ -3675,7 +3752,7 @@ var CREATE_EVENT_MUTATION = import_client19.gql`
3675
3752
  }
3676
3753
  ${EVENT}
3677
3754
  `;
3678
- var UPDATE_EVENT_MUTATION = import_client19.gql`
3755
+ var UPDATE_EVENT_MUTATION = import_client20.gql`
3679
3756
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
3680
3757
  updateEvent(_id: $_id, input: $input) {
3681
3758
  ...EventFields
@@ -3683,12 +3760,12 @@ var UPDATE_EVENT_MUTATION = import_client19.gql`
3683
3760
  }
3684
3761
  ${EVENT}
3685
3762
  `;
3686
- var DELETE_EVENT_MUTATION = import_client19.gql`
3763
+ var DELETE_EVENT_MUTATION = import_client20.gql`
3687
3764
  mutation deleteEvent($_id: ID!) {
3688
3765
  deleteEvent(_id: $_id)
3689
3766
  }
3690
3767
  `;
3691
- var CREATE_EVENT_INFO_MUTATION = import_client19.gql`
3768
+ var CREATE_EVENT_INFO_MUTATION = import_client20.gql`
3692
3769
  mutation createEventInfo($input: EventInfoInputType!) {
3693
3770
  createEventInfo(input: $input) {
3694
3771
  ...EventInfoFields
@@ -3696,7 +3773,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client19.gql`
3696
3773
  }
3697
3774
  ${EVENT_INFO}
3698
3775
  `;
3699
- var UPDATE_EVENT_INFO_MUTATION = import_client19.gql`
3776
+ var UPDATE_EVENT_INFO_MUTATION = import_client20.gql`
3700
3777
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3701
3778
  updateEventInfo(_id: $_id, input: $input) {
3702
3779
  ...EventInfoFields
@@ -3706,8 +3783,8 @@ var UPDATE_EVENT_INFO_MUTATION = import_client19.gql`
3706
3783
  `;
3707
3784
 
3708
3785
  // src/graphql/queries/user.ts
3709
- var import_client20 = require("@apollo/client");
3710
- var GET_USERS = import_client20.gql`
3786
+ var import_client21 = require("@apollo/client");
3787
+ var GET_USERS = import_client21.gql`
3711
3788
  query getUsers {
3712
3789
  users {
3713
3790
  ...UserFields
@@ -3715,7 +3792,7 @@ var GET_USERS = import_client20.gql`
3715
3792
  }
3716
3793
  ${USER_FIELDS_FRAGMENT}
3717
3794
  `;
3718
- var GET_USER = import_client20.gql`
3795
+ var GET_USER = import_client21.gql`
3719
3796
  query getUser($_id: ID!) {
3720
3797
  user(_id: $_id) {
3721
3798
  ...UserFields
@@ -3723,7 +3800,7 @@ var GET_USER = import_client20.gql`
3723
3800
  }
3724
3801
  ${USER_FIELDS_FRAGMENT}
3725
3802
  `;
3726
- var GET_USER_EVENTS = import_client20.gql`
3803
+ var GET_USER_EVENTS = import_client21.gql`
3727
3804
  query getUserEvents {
3728
3805
  userEvents {
3729
3806
  ...EventFields
@@ -3731,7 +3808,7 @@ var GET_USER_EVENTS = import_client20.gql`
3731
3808
  }
3732
3809
  ${EVENT}
3733
3810
  `;
3734
- var GET_USER_VENDORS = import_client20.gql`
3811
+ var GET_USER_VENDORS = import_client21.gql`
3735
3812
  query getUserVendors {
3736
3813
  userVendors {
3737
3814
  ...VendorFields
@@ -3739,7 +3816,7 @@ var GET_USER_VENDORS = import_client20.gql`
3739
3816
  }
3740
3817
  ${VENDOR}
3741
3818
  `;
3742
- var GET_USER_PARTNERS = import_client20.gql`
3819
+ var GET_USER_PARTNERS = import_client21.gql`
3743
3820
  query getUserPartners {
3744
3821
  userPartners {
3745
3822
  ...PartnerFields
@@ -3747,7 +3824,7 @@ var GET_USER_PARTNERS = import_client20.gql`
3747
3824
  }
3748
3825
  ${PARTNER}
3749
3826
  `;
3750
- var GET_USER_ACTIVITIES = import_client20.gql`
3827
+ var GET_USER_ACTIVITIES = import_client21.gql`
3751
3828
  query getUserActivities {
3752
3829
  userActivities {
3753
3830
  favourites {
@@ -3782,7 +3859,7 @@ var GET_USER_ACTIVITIES = import_client20.gql`
3782
3859
  ${VENDOR}
3783
3860
  ${PARTNER}
3784
3861
  `;
3785
- var GET_USER_RESOURCES = import_client20.gql`
3862
+ var GET_USER_RESOURCES = import_client21.gql`
3786
3863
  query getUserResources($userId: ID!) {
3787
3864
  userResources(userId: $userId) {
3788
3865
  resources {
@@ -3796,17 +3873,17 @@ var GET_USER_RESOURCES = import_client20.gql`
3796
3873
  `;
3797
3874
 
3798
3875
  // src/graphql/hooks/event/hooksQuery.ts
3799
- var import_client22 = require("@apollo/client");
3876
+ var import_client23 = require("@apollo/client");
3800
3877
 
3801
3878
  // src/graphql/hooks/notifications/hooksMutation.ts
3802
- var import_client25 = require("@apollo/client");
3879
+ var import_client26 = require("@apollo/client");
3803
3880
 
3804
3881
  // src/graphql/mutations/notification.ts
3805
- var import_client24 = require("@apollo/client");
3882
+ var import_client25 = require("@apollo/client");
3806
3883
 
3807
3884
  // src/graphql/queries/notification.ts
3808
- var import_client23 = require("@apollo/client");
3809
- var NOTIFICATION_FRAGMENT = import_client23.gql`
3885
+ var import_client24 = require("@apollo/client");
3886
+ var NOTIFICATION_FRAGMENT = import_client24.gql`
3810
3887
  fragment NotificationFields on Notification {
3811
3888
  _id
3812
3889
  userId
@@ -3823,7 +3900,7 @@ var NOTIFICATION_FRAGMENT = import_client23.gql`
3823
3900
  updatedAt
3824
3901
  }
3825
3902
  `;
3826
- var GET_USER_NOTIFICATIONS = import_client23.gql`
3903
+ var GET_USER_NOTIFICATIONS = import_client24.gql`
3827
3904
  query getUserNotifications($limit: Int, $offset: Int) {
3828
3905
  userNotifications(limit: $limit, offset: $offset) {
3829
3906
  ...NotificationFields
@@ -3831,7 +3908,7 @@ var GET_USER_NOTIFICATIONS = import_client23.gql`
3831
3908
  }
3832
3909
  ${NOTIFICATION_FRAGMENT}
3833
3910
  `;
3834
- var GET_NOTIFICATION_COUNT = import_client23.gql`
3911
+ var GET_NOTIFICATION_COUNT = import_client24.gql`
3835
3912
  query getNotificationCount {
3836
3913
  notificationCount {
3837
3914
  total
@@ -3841,7 +3918,7 @@ var GET_NOTIFICATION_COUNT = import_client23.gql`
3841
3918
  `;
3842
3919
 
3843
3920
  // src/graphql/mutations/notification.ts
3844
- var CREATE_BULK_NOTIFICATIONS = import_client24.gql`
3921
+ var CREATE_BULK_NOTIFICATIONS = import_client25.gql`
3845
3922
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
3846
3923
  createBulkNotifications(input: $input) {
3847
3924
  ...NotificationFields
@@ -3849,7 +3926,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client24.gql`
3849
3926
  }
3850
3927
  ${NOTIFICATION_FRAGMENT}
3851
3928
  `;
3852
- var MARK_NOTIFICATION_READ = import_client24.gql`
3929
+ var MARK_NOTIFICATION_READ = import_client25.gql`
3853
3930
  mutation markNotificationRead($_id: ID!) {
3854
3931
  markNotificationRead(_id: $_id) {
3855
3932
  ...NotificationFields
@@ -3857,31 +3934,31 @@ var MARK_NOTIFICATION_READ = import_client24.gql`
3857
3934
  }
3858
3935
  ${NOTIFICATION_FRAGMENT}
3859
3936
  `;
3860
- var MARK_ALL_NOTIFICATIONS_READ = import_client24.gql`
3937
+ var MARK_ALL_NOTIFICATIONS_READ = import_client25.gql`
3861
3938
  mutation markAllNotificationsRead {
3862
3939
  markAllNotificationsRead
3863
3940
  }
3864
3941
  `;
3865
- var DELETE_NOTIFICATION = import_client24.gql`
3942
+ var DELETE_NOTIFICATION = import_client25.gql`
3866
3943
  mutation deleteNotification($_id: ID!) {
3867
3944
  deleteNotification(_id: $_id)
3868
3945
  }
3869
3946
  `;
3870
- var DELETE_ALL_NOTIFICATIONS = import_client24.gql`
3947
+ var DELETE_ALL_NOTIFICATIONS = import_client25.gql`
3871
3948
  mutation deleteAllNotifications {
3872
3949
  deleteAllNotifications
3873
3950
  }
3874
3951
  `;
3875
3952
 
3876
3953
  // src/graphql/hooks/notifications/hooksQuery.ts
3877
- var import_client26 = require("@apollo/client");
3954
+ var import_client27 = require("@apollo/client");
3878
3955
 
3879
3956
  // src/graphql/hooks/notifications/hooksSubscription.ts
3880
- var import_client28 = require("@apollo/client");
3957
+ var import_client29 = require("@apollo/client");
3881
3958
 
3882
3959
  // src/graphql/subscriptions/notification.ts
3883
- var import_client27 = require("@apollo/client");
3884
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client27.gql`
3960
+ var import_client28 = require("@apollo/client");
3961
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client28.gql`
3885
3962
  subscription {
3886
3963
  getUserNotifications {
3887
3964
  ...NotificationFields
@@ -3889,7 +3966,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client27.gql`
3889
3966
  }
3890
3967
  ${NOTIFICATION_FRAGMENT}
3891
3968
  `;
3892
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client27.gql`
3969
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client28.gql`
3893
3970
  subscription {
3894
3971
  getNotificationCount {
3895
3972
  total
@@ -3899,11 +3976,11 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client27.gql`
3899
3976
  `;
3900
3977
 
3901
3978
  // src/graphql/hooks/poster.ts
3902
- var import_client30 = require("@apollo/client");
3979
+ var import_client31 = require("@apollo/client");
3903
3980
 
3904
3981
  // src/graphql/mutations/poster.ts
3905
- var import_client29 = require("@apollo/client");
3906
- var CREATE_POSTER_MUTATION = import_client29.gql`
3982
+ var import_client30 = require("@apollo/client");
3983
+ var CREATE_POSTER_MUTATION = import_client30.gql`
3907
3984
  mutation createPoster($input: PosterInputType!) {
3908
3985
  createPoster(input: $input) {
3909
3986
  message
@@ -3916,11 +3993,11 @@ var CREATE_POSTER_MUTATION = import_client29.gql`
3916
3993
  `;
3917
3994
 
3918
3995
  // src/graphql/hooks/pushToken.ts
3919
- var import_client32 = require("@apollo/client");
3996
+ var import_client33 = require("@apollo/client");
3920
3997
 
3921
3998
  // src/graphql/mutations/pushToken.ts
3922
- var import_client31 = require("@apollo/client");
3923
- var CREATE_PUSH_TOKEN_MUTATION = import_client31.gql`
3999
+ var import_client32 = require("@apollo/client");
4000
+ var CREATE_PUSH_TOKEN_MUTATION = import_client32.gql`
3924
4001
  mutation createPushToken($input: PushTokenInput!) {
3925
4002
  createPushToken(input: $input) {
3926
4003
  success
@@ -3933,77 +4010,6 @@ var import_client35 = require("@apollo/client");
3933
4010
 
3934
4011
  // src/graphql/mutations/relation.ts
3935
4012
  var import_client34 = require("@apollo/client");
3936
-
3937
- // src/graphql/queries/relation.ts
3938
- var import_client33 = require("@apollo/client");
3939
- var RELATION_FIELDS_FRAGMENT = import_client33.gql`
3940
- fragment RelationFields on RelationType {
3941
- _id
3942
- active
3943
- chatId
3944
- createdAt
3945
- lastUpdateBy
3946
- eventId
3947
- relationDates {
3948
- ...RelationDates
3949
- }
3950
- relationType
3951
- vendorId
3952
- updatedAt
3953
- }
3954
- ${RELATION_DATES_FRAGMENT}
3955
- `;
3956
- var GET_RELATION = import_client33.gql`
3957
- query getRelation($_id: ID!) {
3958
- relation(_id: $_id) {
3959
- ...RelationFields
3960
- }
3961
- }
3962
- ${RELATION_FIELDS_FRAGMENT}
3963
- `;
3964
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client33.gql`
3965
- query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
3966
- relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
3967
- ...RelationFields
3968
- }
3969
- }
3970
- ${RELATION_FIELDS_FRAGMENT}
3971
- `;
3972
- var GET_EVENT_RELATIONS = import_client33.gql`
3973
- query getEventRelations($eventId: ID!) {
3974
- eventRelations(eventId: $eventId) {
3975
- ...RelationFields
3976
- }
3977
- }
3978
- ${RELATION_FIELDS_FRAGMENT}
3979
- `;
3980
- var GET_VENDOR_RELATIONS = import_client33.gql`
3981
- query getVendorRelations($vendorId: ID!) {
3982
- vendorRelations(vendorId: $vendorId) {
3983
- ...RelationFields
3984
- }
3985
- }
3986
- ${RELATION_FIELDS_FRAGMENT}
3987
- `;
3988
- var GET_RESOURCE_CONNECTIONS = import_client33.gql`
3989
- query getResourceConnections(
3990
- $resourceId: ID!
3991
- $resourceType: ResourceTypeEnum!
3992
- ) {
3993
- resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
3994
- events {
3995
- ...EventListItemFields
3996
- }
3997
- vendors {
3998
- ...VendorFields
3999
- }
4000
- }
4001
- }
4002
- ${VENDOR}
4003
- ${EVENT_LIST_ITEM}
4004
- `;
4005
-
4006
- // src/graphql/mutations/relation.ts
4007
4013
  var CREATE_RELATION_MUTATION = import_client34.gql`
4008
4014
  mutation createRelation($input: RelationInputType!) {
4009
4015
  createRelation(input: $input) {