@timardex/cluemart-shared 1.0.75 → 1.0.77

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/index.cjs CHANGED
@@ -173,6 +173,7 @@ __export(index_exports, {
173
173
  useSearchMarkets: () => useSearchMarkets,
174
174
  useSearchStallholders: () => useSearchStallholders,
175
175
  useSendChatMessage: () => useSendChatMessage,
176
+ useSetupNotificationToken: () => useSetupNotificationToken,
176
177
  useStallholderForm: () => useStallholderForm,
177
178
  useStallholderInfoForm: () => useStallholderInfoForm,
178
179
  useTestersForm: () => useTestersForm,
@@ -2936,12 +2937,35 @@ var useGetMarketInfo = (marketId) => {
2936
2937
  return { error, loading, marketInfo: marketInfo2, refetch };
2937
2938
  };
2938
2939
 
2939
- // src/graphql/hooks/poster.ts
2940
+ // src/graphql/hooks/notifications.ts
2940
2941
  var import_client19 = require("@apollo/client");
2941
2942
 
2942
- // src/graphql/mutations/poster.ts
2943
+ // src/graphql/mutations/notification.ts
2943
2944
  var import_client18 = require("@apollo/client");
2944
- var CREATE_POSTER_MUTATION = import_client18.gql`
2945
+ var SETUP_NOTIFICATION_TOKEN_MUTATION = import_client18.gql`
2946
+ mutation setupNotificationToken($token: String!) {
2947
+ setupNotificationToken(token: $token)
2948
+ }
2949
+ `;
2950
+
2951
+ // src/graphql/hooks/notifications.ts
2952
+ var useSetupNotificationToken = () => {
2953
+ const [setupNotificationToken, { loading, error }] = (0, import_client19.useMutation)(
2954
+ SETUP_NOTIFICATION_TOKEN_MUTATION
2955
+ );
2956
+ return {
2957
+ error,
2958
+ loading,
2959
+ setupNotificationToken
2960
+ };
2961
+ };
2962
+
2963
+ // src/graphql/hooks/poster.ts
2964
+ var import_client21 = require("@apollo/client");
2965
+
2966
+ // src/graphql/mutations/poster.ts
2967
+ var import_client20 = require("@apollo/client");
2968
+ var CREATE_POSTER_MUTATION = import_client20.gql`
2945
2969
  mutation createPoster($input: PosterInputType!) {
2946
2970
  createPoster(input: $input) {
2947
2971
  message
@@ -2951,21 +2975,21 @@ var CREATE_POSTER_MUTATION = import_client18.gql`
2951
2975
 
2952
2976
  // src/graphql/hooks/poster.ts
2953
2977
  var useCreatePoster = () => {
2954
- const [createPoster, { loading, error }] = (0, import_client19.useMutation)(
2978
+ const [createPoster, { loading, error }] = (0, import_client21.useMutation)(
2955
2979
  CREATE_POSTER_MUTATION
2956
2980
  );
2957
2981
  return { createPoster, error, loading };
2958
2982
  };
2959
2983
 
2960
2984
  // src/graphql/hooks/relation/hooksMutation.ts
2961
- var import_client22 = require("@apollo/client");
2985
+ var import_client24 = require("@apollo/client");
2962
2986
 
2963
2987
  // src/graphql/mutations/relation.ts
2964
- var import_client21 = require("@apollo/client");
2988
+ var import_client23 = require("@apollo/client");
2965
2989
 
2966
2990
  // src/graphql/queries/relation.ts
2967
- var import_client20 = require("@apollo/client");
2968
- var RELATION_DATES_FRAGMENT = import_client20.gql`
2991
+ var import_client22 = require("@apollo/client");
2992
+ var RELATION_DATES_FRAGMENT = import_client22.gql`
2969
2993
  fragment RelationDates on RelationDateType {
2970
2994
  lastUpdateBy
2971
2995
  paymentReference
@@ -2979,7 +3003,7 @@ var RELATION_DATES_FRAGMENT = import_client20.gql`
2979
3003
  status
2980
3004
  }
2981
3005
  `;
2982
- var RELATION_FIELDS_FRAGMENT = import_client20.gql`
3006
+ var RELATION_FIELDS_FRAGMENT = import_client22.gql`
2983
3007
  fragment RelationFields on RelationType {
2984
3008
  _id
2985
3009
  apiMessage
@@ -2996,7 +3020,7 @@ var RELATION_FIELDS_FRAGMENT = import_client20.gql`
2996
3020
  }
2997
3021
  ${RELATION_DATES_FRAGMENT}
2998
3022
  `;
2999
- var GET_RELATION = import_client20.gql`
3023
+ var GET_RELATION = import_client22.gql`
3000
3024
  query getRelation($id: ID!) {
3001
3025
  relation(_id: $id) {
3002
3026
  ...RelationFields
@@ -3004,7 +3028,7 @@ var GET_RELATION = import_client20.gql`
3004
3028
  }
3005
3029
  ${RELATION_FIELDS_FRAGMENT}
3006
3030
  `;
3007
- var GET_RELATION_BY_MARKET_AND_STALLHOLDER = import_client20.gql`
3031
+ var GET_RELATION_BY_MARKET_AND_STALLHOLDER = import_client22.gql`
3008
3032
  query getRelationByMarketAndStallholder($marketId: ID!, $stallholderId: ID!) {
3009
3033
  relationByMarketAndStallholder(
3010
3034
  marketId: $marketId
@@ -3015,7 +3039,7 @@ var GET_RELATION_BY_MARKET_AND_STALLHOLDER = import_client20.gql`
3015
3039
  }
3016
3040
  ${RELATION_FIELDS_FRAGMENT}
3017
3041
  `;
3018
- var GET_MARKET_RELATIONS = import_client20.gql`
3042
+ var GET_MARKET_RELATIONS = import_client22.gql`
3019
3043
  query getMarketRelations($marketId: ID!) {
3020
3044
  marketRelations(marketId: $marketId) {
3021
3045
  ...RelationFields
@@ -3023,7 +3047,7 @@ var GET_MARKET_RELATIONS = import_client20.gql`
3023
3047
  }
3024
3048
  ${RELATION_FIELDS_FRAGMENT}
3025
3049
  `;
3026
- var GET_STALLHOLDER_RELATIONS = import_client20.gql`
3050
+ var GET_STALLHOLDER_RELATIONS = import_client22.gql`
3027
3051
  query getStallholderRelations($stallholderId: ID!) {
3028
3052
  stallholderRelations(stallholderId: $stallholderId) {
3029
3053
  ...RelationFields
@@ -3031,7 +3055,7 @@ var GET_STALLHOLDER_RELATIONS = import_client20.gql`
3031
3055
  }
3032
3056
  ${RELATION_FIELDS_FRAGMENT}
3033
3057
  `;
3034
- var GET_RESOURCE_CONNECTIONS = import_client20.gql`
3058
+ var GET_RESOURCE_CONNECTIONS = import_client22.gql`
3035
3059
  query getResourceConnections(
3036
3060
  $resourceId: ID!
3037
3061
  $resourceType: ResourceTypeEnum!
@@ -3134,7 +3158,7 @@ var GET_RESOURCE_CONNECTIONS = import_client20.gql`
3134
3158
  `;
3135
3159
 
3136
3160
  // src/graphql/mutations/relation.ts
3137
- var CREATE_RELATION_MUTATION = import_client21.gql`
3161
+ var CREATE_RELATION_MUTATION = import_client23.gql`
3138
3162
  mutation createRelation($input: RelationInputType!) {
3139
3163
  createRelation(input: $input) {
3140
3164
  ...RelationFields
@@ -3142,7 +3166,7 @@ var CREATE_RELATION_MUTATION = import_client21.gql`
3142
3166
  }
3143
3167
  ${RELATION_FIELDS_FRAGMENT}
3144
3168
  `;
3145
- var UPDATE_RELATION_MUTATION = import_client21.gql`
3169
+ var UPDATE_RELATION_MUTATION = import_client23.gql`
3146
3170
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
3147
3171
  updateRelation(_id: $_id, input: $input) {
3148
3172
  ...RelationFields
@@ -3150,7 +3174,7 @@ var UPDATE_RELATION_MUTATION = import_client21.gql`
3150
3174
  }
3151
3175
  ${RELATION_FIELDS_FRAGMENT}
3152
3176
  `;
3153
- var DELETE_RELATION_MUTATION = import_client21.gql`
3177
+ var DELETE_RELATION_MUTATION = import_client23.gql`
3154
3178
  mutation deleteRelation($_id: ID!) {
3155
3179
  deleteRelation(_id: $_id) {
3156
3180
  ...RelationFields
@@ -3162,7 +3186,7 @@ var DELETE_RELATION_MUTATION = import_client21.gql`
3162
3186
  // src/graphql/hooks/relation/hooksMutation.ts
3163
3187
  var fetchPolicy = "no-cache";
3164
3188
  var useCreateRelation = () => {
3165
- const [createRelation, { loading, error }] = (0, import_client22.useMutation)(
3189
+ const [createRelation, { loading, error }] = (0, import_client24.useMutation)(
3166
3190
  CREATE_RELATION_MUTATION,
3167
3191
  {
3168
3192
  awaitRefetchQueries: true,
@@ -3214,7 +3238,7 @@ var useCreateRelation = () => {
3214
3238
  return { createRelation, error, loading };
3215
3239
  };
3216
3240
  var useUpdateRelation = () => {
3217
- const [updateRelation, { loading, error }] = (0, import_client22.useMutation)(
3241
+ const [updateRelation, { loading, error }] = (0, import_client24.useMutation)(
3218
3242
  UPDATE_RELATION_MUTATION,
3219
3243
  {
3220
3244
  awaitRefetchQueries: true,
@@ -3262,7 +3286,7 @@ var useUpdateRelation = () => {
3262
3286
  return { error, loading, updateRelation };
3263
3287
  };
3264
3288
  var useDeleteRelation = () => {
3265
- const [deleteRelation, { loading, error }] = (0, import_client22.useMutation)(
3289
+ const [deleteRelation, { loading, error }] = (0, import_client24.useMutation)(
3266
3290
  DELETE_RELATION_MUTATION,
3267
3291
  {
3268
3292
  awaitRefetchQueries: true,
@@ -3310,9 +3334,9 @@ var useDeleteRelation = () => {
3310
3334
  };
3311
3335
 
3312
3336
  // src/graphql/hooks/relation/hooksQuery.ts
3313
- var import_client23 = require("@apollo/client");
3337
+ var import_client25 = require("@apollo/client");
3314
3338
  var useGetRelation = (id) => {
3315
- const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_RELATION, {
3339
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_RELATION, {
3316
3340
  fetchPolicy: "network-only",
3317
3341
  skip: id === "",
3318
3342
  variables: { id }
@@ -3321,7 +3345,7 @@ var useGetRelation = (id) => {
3321
3345
  return { error, loading, refetch, relation };
3322
3346
  };
3323
3347
  var useGetRelationByMarketAndStallholder = (marketId, stallholderId) => {
3324
- const { loading, error, data, refetch } = (0, import_client23.useQuery)(
3348
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(
3325
3349
  GET_RELATION_BY_MARKET_AND_STALLHOLDER,
3326
3350
  {
3327
3351
  fetchPolicy: "network-only",
@@ -3333,7 +3357,7 @@ var useGetRelationByMarketAndStallholder = (marketId, stallholderId) => {
3333
3357
  return { error, loading, refetch, relationByMarketAndStallholder };
3334
3358
  };
3335
3359
  var useGetMarketRelations = (marketId) => {
3336
- const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_MARKET_RELATIONS, {
3360
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_MARKET_RELATIONS, {
3337
3361
  fetchPolicy: "network-only",
3338
3362
  skip: marketId === "",
3339
3363
  variables: { marketId }
@@ -3342,7 +3366,7 @@ var useGetMarketRelations = (marketId) => {
3342
3366
  return { error, loading, marketRelations, refetch };
3343
3367
  };
3344
3368
  var useGetStallholderRelations = (stallholderId) => {
3345
- const { loading, error, data, refetch } = (0, import_client23.useQuery)(
3369
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(
3346
3370
  GET_STALLHOLDER_RELATIONS,
3347
3371
  {
3348
3372
  fetchPolicy: "network-only",
@@ -3354,7 +3378,7 @@ var useGetStallholderRelations = (stallholderId) => {
3354
3378
  return { error, loading, refetch, stallholderRelations };
3355
3379
  };
3356
3380
  var useGetResourceConnections = (resourceId, resourceType) => {
3357
- const { loading, error, data, refetch } = (0, import_client23.useQuery)(GET_RESOURCE_CONNECTIONS, {
3381
+ const { loading, error, data, refetch } = (0, import_client25.useQuery)(GET_RESOURCE_CONNECTIONS, {
3358
3382
  fetchPolicy: "network-only",
3359
3383
  variables: { resourceId, resourceType }
3360
3384
  });
@@ -3363,11 +3387,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
3363
3387
  };
3364
3388
 
3365
3389
  // src/graphql/hooks/stallholder/hooksMutation.ts
3366
- var import_client25 = require("@apollo/client");
3390
+ var import_client27 = require("@apollo/client");
3367
3391
 
3368
3392
  // src/graphql/mutations/stallholder.ts
3369
- var import_client24 = require("@apollo/client");
3370
- var CREATE_STALLHOLDER_MUTATION = import_client24.gql`
3393
+ var import_client26 = require("@apollo/client");
3394
+ var CREATE_STALLHOLDER_MUTATION = import_client26.gql`
3371
3395
  mutation createStallholder($input: StallholderInputType!) {
3372
3396
  createStallholder(input: $input) {
3373
3397
  ...StallholderFields
@@ -3375,7 +3399,7 @@ var CREATE_STALLHOLDER_MUTATION = import_client24.gql`
3375
3399
  }
3376
3400
  ${STALLHOLDER}
3377
3401
  `;
3378
- var UPDATE_STALLHOLDER_MUTATION = import_client24.gql`
3402
+ var UPDATE_STALLHOLDER_MUTATION = import_client26.gql`
3379
3403
  mutation updateStallholder($_id: ID!, $input: StallholderInputType!) {
3380
3404
  updateStallholder(_id: $_id, input: $input) {
3381
3405
  ...StallholderFields
@@ -3383,12 +3407,12 @@ var UPDATE_STALLHOLDER_MUTATION = import_client24.gql`
3383
3407
  }
3384
3408
  ${STALLHOLDER}
3385
3409
  `;
3386
- var DELETE_STALLHOLDER_MUTATION = import_client24.gql`
3410
+ var DELETE_STALLHOLDER_MUTATION = import_client26.gql`
3387
3411
  mutation deleteStallholder($_id: ID!) {
3388
3412
  deleteStallholder(_id: $_id)
3389
3413
  }
3390
3414
  `;
3391
- var CREATE_STALLHOLDER_INFO_MUTATION = import_client24.gql`
3415
+ var CREATE_STALLHOLDER_INFO_MUTATION = import_client26.gql`
3392
3416
  mutation createStallholderInfo($input: StallholderInfoInputType!) {
3393
3417
  createStallholderInfo(input: $input) {
3394
3418
  ...StallholderInfoFields
@@ -3396,7 +3420,7 @@ var CREATE_STALLHOLDER_INFO_MUTATION = import_client24.gql`
3396
3420
  }
3397
3421
  ${STALLHOLDER_INFO}
3398
3422
  `;
3399
- var UPDATE_STALLHOLDER_INFO_MUTATION = import_client24.gql`
3423
+ var UPDATE_STALLHOLDER_INFO_MUTATION = import_client26.gql`
3400
3424
  mutation updateStallholderInfo($_id: ID!, $input: StallholderInfoInputType!) {
3401
3425
  updateStallholderInfo(_id: $_id, input: $input) {
3402
3426
  ...StallholderInfoFields
@@ -3407,7 +3431,7 @@ var UPDATE_STALLHOLDER_INFO_MUTATION = import_client24.gql`
3407
3431
 
3408
3432
  // src/graphql/hooks/stallholder/hooksMutation.ts
3409
3433
  var useCreateStallholder = () => {
3410
- const [createStallholder, { loading, error }] = (0, import_client25.useMutation)(
3434
+ const [createStallholder, { loading, error }] = (0, import_client27.useMutation)(
3411
3435
  CREATE_STALLHOLDER_MUTATION,
3412
3436
  {
3413
3437
  awaitRefetchQueries: true,
@@ -3419,7 +3443,7 @@ var useCreateStallholder = () => {
3419
3443
  return { createStallholder, error, loading };
3420
3444
  };
3421
3445
  var useUpdateStallholder = () => {
3422
- const [updateStallholder, { loading, error }] = (0, import_client25.useMutation)(
3446
+ const [updateStallholder, { loading, error }] = (0, import_client27.useMutation)(
3423
3447
  UPDATE_STALLHOLDER_MUTATION,
3424
3448
  {
3425
3449
  awaitRefetchQueries: true,
@@ -3431,7 +3455,7 @@ var useUpdateStallholder = () => {
3431
3455
  return { error, loading, updateStallholder };
3432
3456
  };
3433
3457
  var useDeleteStallholder = () => {
3434
- const [deleteStallholder, { loading, error }] = (0, import_client25.useMutation)(
3458
+ const [deleteStallholder, { loading, error }] = (0, import_client27.useMutation)(
3435
3459
  DELETE_STALLHOLDER_MUTATION,
3436
3460
  {
3437
3461
  awaitRefetchQueries: true,
@@ -3443,7 +3467,7 @@ var useDeleteStallholder = () => {
3443
3467
  return { deleteStallholder, error, loading };
3444
3468
  };
3445
3469
  var useCreateStallholderInfo = () => {
3446
- const [createStallholderInfo, { loading, error }] = (0, import_client25.useMutation)(
3470
+ const [createStallholderInfo, { loading, error }] = (0, import_client27.useMutation)(
3447
3471
  CREATE_STALLHOLDER_INFO_MUTATION,
3448
3472
  {
3449
3473
  awaitRefetchQueries: true,
@@ -3467,7 +3491,7 @@ var useCreateStallholderInfo = () => {
3467
3491
  return { createStallholderInfo, error, loading };
3468
3492
  };
3469
3493
  var useUpdateStallholderInfo = () => {
3470
- const [updateStallholderInfo, { loading, error }] = (0, import_client25.useMutation)(
3494
+ const [updateStallholderInfo, { loading, error }] = (0, import_client27.useMutation)(
3471
3495
  UPDATE_STALLHOLDER_INFO_MUTATION,
3472
3496
  {
3473
3497
  awaitRefetchQueries: true,
@@ -3488,9 +3512,9 @@ var useUpdateStallholderInfo = () => {
3488
3512
  };
3489
3513
 
3490
3514
  // src/graphql/hooks/stallholder/hooksQuery.ts
3491
- var import_client26 = require("@apollo/client");
3515
+ var import_client28 = require("@apollo/client");
3492
3516
  var useGetStallholders = () => {
3493
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_STALLHOLDERS, {
3517
+ const { loading, error, data, refetch } = (0, import_client28.useQuery)(GET_STALLHOLDERS, {
3494
3518
  fetchPolicy: "network-only"
3495
3519
  });
3496
3520
  const stallholders = data?.stallholders;
@@ -3502,7 +3526,7 @@ var useGetStallholders = () => {
3502
3526
  };
3503
3527
  };
3504
3528
  var useGetStallholder = (_id) => {
3505
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_STALLHOLDER, {
3529
+ const { loading, error, data, refetch } = (0, import_client28.useQuery)(GET_STALLHOLDER, {
3506
3530
  fetchPolicy: "network-only",
3507
3531
  skip: !_id,
3508
3532
  variables: { _id }
@@ -3511,7 +3535,7 @@ var useGetStallholder = (_id) => {
3511
3535
  return { error, loading, refetch, stallholder };
3512
3536
  };
3513
3537
  var useGetStallholdersByRegion = (region) => {
3514
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(
3538
+ const { loading, error, data, refetch } = (0, import_client28.useQuery)(
3515
3539
  GET_STALLHOLDERS_BY_REGION,
3516
3540
  {
3517
3541
  fetchPolicy: "no-cache",
@@ -3523,7 +3547,7 @@ var useGetStallholdersByRegion = (region) => {
3523
3547
  return { error, loading, refetch, stallholdersByRegion };
3524
3548
  };
3525
3549
  var useSearchStallholders = (search, region) => {
3526
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(SEARCH_STALLHOLDERS, {
3550
+ const { loading, error, data, refetch } = (0, import_client28.useQuery)(SEARCH_STALLHOLDERS, {
3527
3551
  fetchPolicy: "network-only",
3528
3552
  skip: search.length < 3,
3529
3553
  variables: { region, search }
@@ -3532,7 +3556,7 @@ var useSearchStallholders = (search, region) => {
3532
3556
  return { error, loading, refetch, stallholderSearch };
3533
3557
  };
3534
3558
  var useGetStallholderInfo = (stallholderId) => {
3535
- const { loading, error, data, refetch } = (0, import_client26.useQuery)(GET_STALLHOLDER_INFO, {
3559
+ const { loading, error, data, refetch } = (0, import_client28.useQuery)(GET_STALLHOLDER_INFO, {
3536
3560
  fetchPolicy: "network-only",
3537
3561
  skip: !stallholderId,
3538
3562
  variables: { stallholderId }
@@ -3547,11 +3571,11 @@ var useGetStallholderInfo = (stallholderId) => {
3547
3571
  };
3548
3572
 
3549
3573
  // src/graphql/hooks/subscriptions.ts
3550
- var import_client29 = require("@apollo/client");
3574
+ var import_client31 = require("@apollo/client");
3551
3575
 
3552
3576
  // src/graphql/subscriptions/chat.ts
3553
- var import_client27 = require("@apollo/client");
3554
- var GET_CHAT_MESSAGE = import_client27.gql`
3577
+ var import_client29 = require("@apollo/client");
3578
+ var GET_CHAT_MESSAGE = import_client29.gql`
3555
3579
  subscription {
3556
3580
  getChatMessage {
3557
3581
  ...ChatFields
@@ -3561,8 +3585,8 @@ var GET_CHAT_MESSAGE = import_client27.gql`
3561
3585
  `;
3562
3586
 
3563
3587
  // src/graphql/subscriptions/notification.ts
3564
- var import_client28 = require("@apollo/client");
3565
- var NOTIFICATION_FIELDS_FRAGMENT = import_client28.gql`
3588
+ var import_client30 = require("@apollo/client");
3589
+ var NOTIFICATION_FIELDS_FRAGMENT = import_client30.gql`
3566
3590
  fragment NotificationFields on NotificationType {
3567
3591
  createdBy
3568
3592
  important
@@ -3572,7 +3596,7 @@ var NOTIFICATION_FIELDS_FRAGMENT = import_client28.gql`
3572
3596
  resourceType
3573
3597
  }
3574
3598
  `;
3575
- var GET_GLOBAL_NOTIFICATION = import_client28.gql`
3599
+ var GET_GLOBAL_NOTIFICATION = import_client30.gql`
3576
3600
  subscription {
3577
3601
  getGlobalNotification {
3578
3602
  ...NotificationFields
@@ -3580,7 +3604,7 @@ var GET_GLOBAL_NOTIFICATION = import_client28.gql`
3580
3604
  }
3581
3605
  ${NOTIFICATION_FIELDS_FRAGMENT}
3582
3606
  `;
3583
- var GET_RELATION_NOTIFICATION = import_client28.gql`
3607
+ var GET_RELATION_NOTIFICATION = import_client30.gql`
3584
3608
  subscription {
3585
3609
  getRelationNotification {
3586
3610
  ...NotificationFields
@@ -3595,32 +3619,32 @@ var useGetNotification = () => {
3595
3619
  data: global,
3596
3620
  loading: loadingGlobal,
3597
3621
  error: errorGlobal
3598
- } = (0, import_client29.useSubscription)(GET_GLOBAL_NOTIFICATION);
3622
+ } = (0, import_client31.useSubscription)(GET_GLOBAL_NOTIFICATION);
3599
3623
  const {
3600
3624
  data: relation,
3601
3625
  loading: loadingImportant,
3602
3626
  error: errorImportant
3603
- } = (0, import_client29.useSubscription)(GET_RELATION_NOTIFICATION);
3627
+ } = (0, import_client31.useSubscription)(GET_RELATION_NOTIFICATION);
3604
3628
  const error = errorGlobal || errorImportant;
3605
3629
  const loading = loadingGlobal || loadingImportant;
3606
3630
  const notification = relation?.getRelationNotification || global?.getGlobalNotification;
3607
3631
  return { error, loading, notification };
3608
3632
  };
3609
3633
  var useGetChatSubscription = () => {
3610
- const { data, loading, error } = (0, import_client29.useSubscription)(GET_CHAT_MESSAGE);
3634
+ const { data, loading, error } = (0, import_client31.useSubscription)(GET_CHAT_MESSAGE);
3611
3635
  const chat = data?.getChat;
3612
3636
  return { chat, error, loading };
3613
3637
  };
3614
3638
 
3615
3639
  // src/graphql/hooks/testers/hooksMutation.ts
3616
- var import_client32 = require("@apollo/client");
3640
+ var import_client34 = require("@apollo/client");
3617
3641
 
3618
3642
  // src/graphql/mutations/testers.ts
3619
- var import_client31 = require("@apollo/client");
3643
+ var import_client33 = require("@apollo/client");
3620
3644
 
3621
3645
  // src/graphql/queries/testers.ts
3622
- var import_client30 = require("@apollo/client");
3623
- var TESTER_FIELDS_FRAGMENT = import_client30.gql`
3646
+ var import_client32 = require("@apollo/client");
3647
+ var TESTER_FIELDS_FRAGMENT = import_client32.gql`
3624
3648
  fragment TesterFields on TesterType {
3625
3649
  _id
3626
3650
  active
@@ -3633,7 +3657,7 @@ var TESTER_FIELDS_FRAGMENT = import_client30.gql`
3633
3657
  updatedAt
3634
3658
  }
3635
3659
  `;
3636
- var GET_TESTERS = import_client30.gql`
3660
+ var GET_TESTERS = import_client32.gql`
3637
3661
  query getTesters {
3638
3662
  testers {
3639
3663
  ...TesterFields
@@ -3641,7 +3665,7 @@ var GET_TESTERS = import_client30.gql`
3641
3665
  }
3642
3666
  ${TESTER_FIELDS_FRAGMENT}
3643
3667
  `;
3644
- var GET_TESTER = import_client30.gql`
3668
+ var GET_TESTER = import_client32.gql`
3645
3669
  query getTester($_id: ID!) {
3646
3670
  tester(_id: $_id) {
3647
3671
  ...TesterFields
@@ -3651,7 +3675,7 @@ var GET_TESTER = import_client30.gql`
3651
3675
  `;
3652
3676
 
3653
3677
  // src/graphql/mutations/testers.ts
3654
- var CREATE_TESTER_MUTATION = import_client31.gql`
3678
+ var CREATE_TESTER_MUTATION = import_client33.gql`
3655
3679
  mutation createTester($input: TesterInputType!) {
3656
3680
  createTester(input: $input) {
3657
3681
  ...TesterFields
@@ -3659,7 +3683,7 @@ var CREATE_TESTER_MUTATION = import_client31.gql`
3659
3683
  }
3660
3684
  ${TESTER_FIELDS_FRAGMENT}
3661
3685
  `;
3662
- var UPDATE_TESTER_MUTATION = import_client31.gql`
3686
+ var UPDATE_TESTER_MUTATION = import_client33.gql`
3663
3687
  mutation updateTester($_id: ID!, $input: TesterInputType!) {
3664
3688
  updateTester(_id: $_id, input: $input) {
3665
3689
  ...TesterFields
@@ -3667,7 +3691,7 @@ var UPDATE_TESTER_MUTATION = import_client31.gql`
3667
3691
  }
3668
3692
  ${TESTER_FIELDS_FRAGMENT}
3669
3693
  `;
3670
- var DELETE_TESTER_MUTATION = import_client31.gql`
3694
+ var DELETE_TESTER_MUTATION = import_client33.gql`
3671
3695
  mutation deleteTester($_id: ID!) {
3672
3696
  deleteTester(_id: $_id)
3673
3697
  }
@@ -3675,7 +3699,7 @@ var DELETE_TESTER_MUTATION = import_client31.gql`
3675
3699
 
3676
3700
  // src/graphql/hooks/testers/hooksMutation.ts
3677
3701
  var useCreateTester = () => {
3678
- const [createTester, { data, loading, error }] = (0, import_client32.useMutation)(
3702
+ const [createTester, { data, loading, error }] = (0, import_client34.useMutation)(
3679
3703
  CREATE_TESTER_MUTATION
3680
3704
  );
3681
3705
  return {
@@ -3686,7 +3710,7 @@ var useCreateTester = () => {
3686
3710
  };
3687
3711
  };
3688
3712
  var useUpdateTester = () => {
3689
- const [updateTester, { data, loading, error }] = (0, import_client32.useMutation)(
3713
+ const [updateTester, { data, loading, error }] = (0, import_client34.useMutation)(
3690
3714
  UPDATE_TESTER_MUTATION
3691
3715
  );
3692
3716
  return {
@@ -3697,16 +3721,16 @@ var useUpdateTester = () => {
3697
3721
  };
3698
3722
  };
3699
3723
  var useDeleteTester = () => {
3700
- const [deleteTester, { loading, error }] = (0, import_client32.useMutation)(
3724
+ const [deleteTester, { loading, error }] = (0, import_client34.useMutation)(
3701
3725
  DELETE_TESTER_MUTATION
3702
3726
  );
3703
3727
  return { deleteTester, error, loading };
3704
3728
  };
3705
3729
 
3706
3730
  // src/graphql/hooks/testers/hooksQuery.ts
3707
- var import_client33 = require("@apollo/client");
3731
+ var import_client35 = require("@apollo/client");
3708
3732
  var useGetTesters = () => {
3709
- const { data, loading, error, refetch } = (0, import_client33.useQuery)(GET_TESTERS);
3733
+ const { data, loading, error, refetch } = (0, import_client35.useQuery)(GET_TESTERS);
3710
3734
  const testers = data?.testers;
3711
3735
  return {
3712
3736
  error,
@@ -3716,7 +3740,7 @@ var useGetTesters = () => {
3716
3740
  };
3717
3741
  };
3718
3742
  var useGetTester = (_id) => {
3719
- const { data, loading, error, refetch } = (0, import_client33.useQuery)(GET_TESTER, {
3743
+ const { data, loading, error, refetch } = (0, import_client35.useQuery)(GET_TESTER, {
3720
3744
  skip: !_id,
3721
3745
  variables: { _id }
3722
3746
  });
@@ -3725,11 +3749,11 @@ var useGetTester = (_id) => {
3725
3749
  };
3726
3750
 
3727
3751
  // src/graphql/hooks/user/hooksMutation.ts
3728
- var import_client35 = require("@apollo/client");
3752
+ var import_client37 = require("@apollo/client");
3729
3753
 
3730
3754
  // src/graphql/mutations/user.ts
3731
- var import_client34 = require("@apollo/client");
3732
- var CREATE_USER_MUTATION = import_client34.gql`
3755
+ var import_client36 = require("@apollo/client");
3756
+ var CREATE_USER_MUTATION = import_client36.gql`
3733
3757
  mutation createUser($input: UserInputType!) {
3734
3758
  createUser(input: $input) {
3735
3759
  ...UserFields
@@ -3737,7 +3761,7 @@ var CREATE_USER_MUTATION = import_client34.gql`
3737
3761
  }
3738
3762
  ${USER_FIELDS_FRAGMENT}
3739
3763
  `;
3740
- var UPDATE_USER_MUTATION = import_client34.gql`
3764
+ var UPDATE_USER_MUTATION = import_client36.gql`
3741
3765
  mutation updateUser($_id: ID!, $input: UserInputType!) {
3742
3766
  updateUser(_id: $_id, input: $input) {
3743
3767
  ...UserFields
@@ -3745,12 +3769,12 @@ var UPDATE_USER_MUTATION = import_client34.gql`
3745
3769
  }
3746
3770
  ${USER_FIELDS_FRAGMENT}
3747
3771
  `;
3748
- var DELETE_USER_MUTATION = import_client34.gql`
3772
+ var DELETE_USER_MUTATION = import_client36.gql`
3749
3773
  mutation deleteUser($_id: ID!) {
3750
3774
  deleteUser(_id: $_id)
3751
3775
  }
3752
3776
  `;
3753
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client34.gql`
3777
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client36.gql`
3754
3778
  mutation addUserFavouriteResource(
3755
3779
  $resourceId: ID!
3756
3780
  $resourceType: ResourceTypeEnum!
@@ -3766,7 +3790,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client34.gql`
3766
3790
  }
3767
3791
  ${USER_FIELDS_FRAGMENT}
3768
3792
  `;
3769
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client34.gql`
3793
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client36.gql`
3770
3794
  mutation removeUserFavouriteResource(
3771
3795
  $resourceId: ID!
3772
3796
  $resourceType: ResourceTypeEnum!
@@ -3785,11 +3809,11 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client34.gql`
3785
3809
 
3786
3810
  // src/graphql/hooks/user/hooksMutation.ts
3787
3811
  var useCreateUser = () => {
3788
- const [createUser, { loading, error }] = (0, import_client35.useMutation)(CREATE_USER_MUTATION);
3812
+ const [createUser, { loading, error }] = (0, import_client37.useMutation)(CREATE_USER_MUTATION);
3789
3813
  return { createUser, error, loading };
3790
3814
  };
3791
3815
  var useUpdateUser = () => {
3792
- const [updateUser, { loading, error }] = (0, import_client35.useMutation)(UPDATE_USER_MUTATION, {
3816
+ const [updateUser, { loading, error }] = (0, import_client37.useMutation)(UPDATE_USER_MUTATION, {
3793
3817
  awaitRefetchQueries: true,
3794
3818
  refetchQueries: (mutationResult) => {
3795
3819
  const userId = mutationResult?.data?.updateUser?._id;
@@ -3800,11 +3824,11 @@ var useUpdateUser = () => {
3800
3824
  return { error, loading, updateUser };
3801
3825
  };
3802
3826
  var useDeleteUser = () => {
3803
- const [deleteUser, { loading, error }] = (0, import_client35.useMutation)(DELETE_USER_MUTATION);
3827
+ const [deleteUser, { loading, error }] = (0, import_client37.useMutation)(DELETE_USER_MUTATION);
3804
3828
  return { deleteUser, error, loading };
3805
3829
  };
3806
3830
  var useAddUserFavouriteResource = () => {
3807
- const [addUserFavouriteResource, { loading, error }] = (0, import_client35.useMutation)(
3831
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client37.useMutation)(
3808
3832
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
3809
3833
  {
3810
3834
  awaitRefetchQueries: true,
@@ -3814,7 +3838,7 @@ var useAddUserFavouriteResource = () => {
3814
3838
  return { addUserFavouriteResource, error, loading };
3815
3839
  };
3816
3840
  var useRemoveUserFavouriteResource = () => {
3817
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client35.useMutation)(
3841
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client37.useMutation)(
3818
3842
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
3819
3843
  {
3820
3844
  awaitRefetchQueries: true,
@@ -3825,37 +3849,37 @@ var useRemoveUserFavouriteResource = () => {
3825
3849
  };
3826
3850
 
3827
3851
  // src/graphql/hooks/user/hooksQuery.ts
3828
- var import_client36 = require("@apollo/client");
3852
+ var import_client38 = require("@apollo/client");
3829
3853
  var useGetUsers = () => {
3830
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USERS, {
3854
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_USERS, {
3831
3855
  fetchPolicy: "network-only"
3832
3856
  });
3833
3857
  const users = data?.users;
3834
3858
  return { error, loading, refetch, users };
3835
3859
  };
3836
3860
  var useGetUser = (_id) => {
3837
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USER, {
3861
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_USER, {
3838
3862
  variables: { _id }
3839
3863
  });
3840
3864
  const user = data?.user;
3841
3865
  return { error, loading, refetch, user };
3842
3866
  };
3843
3867
  var useGetUserMarkets = () => {
3844
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USER_MARKETS, {
3868
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_USER_MARKETS, {
3845
3869
  fetchPolicy: "network-only"
3846
3870
  });
3847
3871
  const userMarkets = data?.userMarkets;
3848
3872
  return { error, loading, refetch, userMarkets };
3849
3873
  };
3850
3874
  var useGetUserStallholder = () => {
3851
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USER_STALLHOLDER, {
3875
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_USER_STALLHOLDER, {
3852
3876
  fetchPolicy: "network-only"
3853
3877
  });
3854
3878
  const userStallholder = data?.userStallholder;
3855
3879
  return { error, loading, refetch, userStallholder };
3856
3880
  };
3857
3881
  var useGetUserFavourites = () => {
3858
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USER_FAVOURITES, {
3882
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_USER_FAVOURITES, {
3859
3883
  fetchPolicy: "network-only"
3860
3884
  });
3861
3885
  const markets = data?.userFavourites.markets;
@@ -3867,7 +3891,7 @@ var useGetUserFavourites = () => {
3867
3891
  return { error, loading, refetch, userFavourites };
3868
3892
  };
3869
3893
  var useGetUserNotifications = () => {
3870
- const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_USER_NOTIFICATIONS, {
3894
+ const { loading, error, data, refetch } = (0, import_client38.useQuery)(GET_USER_NOTIFICATIONS, {
3871
3895
  fetchPolicy: "network-only"
3872
3896
  });
3873
3897
  const userNotifications = data?.userNotifications;
@@ -4245,7 +4269,7 @@ var resetPasswordSchema = yup5.object().shape({
4245
4269
  });
4246
4270
  var validateVerificationTokenSchema = yup5.object().shape({
4247
4271
  email: emailSchema,
4248
- verificationToken: yup5.string().required("Verification code is required").matches(/^\d{5}$/, "Verification code must be exactly 5 digits")
4272
+ verificationToken: yup5.string().required("Verification code is required").matches(/^\d{6}$/, "Verification code must be exactly 6 digits")
4249
4273
  });
4250
4274
 
4251
4275
  // src/yupSchema/testers.ts
@@ -5243,6 +5267,7 @@ var fonts = {
5243
5267
  useSearchMarkets,
5244
5268
  useSearchStallholders,
5245
5269
  useSendChatMessage,
5270
+ useSetupNotificationToken,
5246
5271
  useStallholderForm,
5247
5272
  useStallholderInfoForm,
5248
5273
  useTestersForm,