@timardex/cluemart-shared 1.5.511 → 1.5.513

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 (50) hide show
  1. package/dist/{auth-B5tprOIL.d.ts → auth-BzjaiJG-.d.ts} +1 -1
  2. package/dist/{auth-DtPfNKc4.d.mts → auth-iD4Rqluw.d.mts} +1 -1
  3. package/dist/{chunk-2GSMGPKT.mjs → chunk-3WSV6DBG.mjs} +174 -20
  4. package/dist/chunk-3WSV6DBG.mjs.map +1 -0
  5. package/dist/{chunk-LJJCZVW4.mjs → chunk-TZBKOYFM.mjs} +1 -1
  6. package/dist/{chunk-LJJCZVW4.mjs.map → chunk-TZBKOYFM.mjs.map} +1 -1
  7. package/dist/{chunk-FTEZFZZW.mjs → chunk-U3RFZUPB.mjs} +2 -2
  8. package/dist/{chunk-OMXMDHJ3.mjs → chunk-Z6YIR3MO.mjs} +2 -2
  9. package/dist/formFields/index.d.mts +1 -1
  10. package/dist/formFields/index.d.ts +1 -1
  11. package/dist/formFields/index.mjs +3 -3
  12. package/dist/{game-PMt_jT_7.d.ts → game-BuDAQ4pZ.d.ts} +7 -7
  13. package/dist/{game-65XFYqKi.d.mts → game-muZlkRTN.d.mts} +7 -7
  14. package/dist/{global-B0WdAD-8.d.ts → global-BJxtnZgG.d.ts} +1 -1
  15. package/dist/{global-MMBYi34A.d.mts → global-D2HhYM-3.d.mts} +1 -1
  16. package/dist/graphql/index.cjs +176 -17
  17. package/dist/graphql/index.cjs.map +1 -1
  18. package/dist/graphql/index.d.mts +47 -13
  19. package/dist/graphql/index.d.ts +47 -13
  20. package/dist/graphql/index.mjs +11 -1
  21. package/dist/hooks/index.cjs +203 -19
  22. package/dist/hooks/index.cjs.map +1 -1
  23. package/dist/hooks/index.d.mts +9 -5
  24. package/dist/hooks/index.d.ts +9 -5
  25. package/dist/hooks/index.mjs +98 -6
  26. package/dist/hooks/index.mjs.map +1 -1
  27. package/dist/index.cjs +272 -19
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.d.mts +72 -15
  30. package/dist/index.d.ts +72 -15
  31. package/dist/index.mjs +265 -19
  32. package/dist/index.mjs.map +1 -1
  33. package/dist/{post-BJHPePwy.d.mts → post-B0FkNm0l.d.mts} +4 -3
  34. package/dist/{post-fnGzMU9c.d.ts → post-CW_37mY1.d.ts} +4 -3
  35. package/dist/{resourceActivities-2FaGRW-i.d.ts → resourceActivities-DtaqfyQY.d.ts} +1 -1
  36. package/dist/{resourceActivities-CqrscA5x.d.mts → resourceActivities-bapPPaIm.d.mts} +1 -1
  37. package/dist/school-B3Hl7Orr.d.ts +23 -0
  38. package/dist/school-CaKcVP6m.d.mts +23 -0
  39. package/dist/types/index.cjs.map +1 -1
  40. package/dist/types/index.d.mts +6 -6
  41. package/dist/types/index.d.ts +6 -6
  42. package/dist/types/index.mjs +1 -1
  43. package/dist/utils/index.cjs.map +1 -1
  44. package/dist/utils/index.d.mts +2 -2
  45. package/dist/utils/index.d.ts +2 -2
  46. package/dist/utils/index.mjs +2 -2
  47. package/package.json +1 -1
  48. package/dist/chunk-2GSMGPKT.mjs.map +0 -1
  49. /package/dist/{chunk-FTEZFZZW.mjs.map → chunk-U3RFZUPB.mjs.map} +0 -0
  50. /package/dist/{chunk-OMXMDHJ3.mjs.map → chunk-Z6YIR3MO.mjs.map} +0 -0
@@ -381,4 +381,4 @@ interface CreateFormData<T extends FieldValues> {
381
381
  watch: UseFormWatch<T>;
382
382
  }
383
383
 
384
- export type { VendorCalendarData as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, Region as H, ImageObjectType as I, RelationDate as J, ResourceContactDetailsType as K, LocationType as L, ResourceDetails as M, Nullable as N, OptionItem as O, PaymentInfoType as P, ResourceImageType as Q, RefundPolicy as R, StallType as S, SocialMediaType as T, UnregisteredVendorType as U, VendorType as V, Subcategory as W, SubcategoryItems as X, TermsAgreement as Y, UnregisteredVendorInvitationType as Z, VendorAttributes as _, FormDateField as a, VendorProductList as a0, Requirement as b, EventListItemType as c, EventInfoType as d, RelationType as e, ResourceConnectionsType as f, VendorInfoType as g, UserLicenceType as h, VendorFormData as i, CreateVendorFormData as j, VendorInfoFormData as k, CreateVendorInfoFormData as l, EventFormData as m, CreateEventFormData as n, EventInfoFormData as o, CreateEventInfoFormData as p, UnregisteredVendorFormData as q, BaseResourceType as r, CreateFormData as s, CreateUnregisteredVendorFormData as t, DateTimeWithPriceType as u, DeviceInfo as v, EventStatusType as w, LocationGeoType as x, OwnerType as y, PosterUsageType as z };
384
+ export type { VendorCalendarData as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, LocationGeoType as H, ImageObjectType as I, PosterUsageType as J, Region as K, LocationType as L, RelationDate as M, Nullable as N, OptionItem as O, PaymentInfoType as P, ResourceDetails as Q, RefundPolicy as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, SocialMediaType as W, Subcategory as X, SubcategoryItems as Y, UnregisteredVendorInvitationType as Z, VendorAttributes as _, FormDateField as a, VendorProductList as a0, Requirement as b, EventListItemType as c, EventInfoType as d, RelationType as e, ResourceConnectionsType as f, VendorInfoType as g, UserLicenceType as h, VendorFormData as i, CreateVendorFormData as j, VendorInfoFormData as k, CreateVendorInfoFormData as l, EventFormData as m, CreateEventFormData as n, EventInfoFormData as o, CreateEventInfoFormData as p, UnregisteredVendorFormData as q, ResourceContactDetailsType as r, ResourceImageType as s, OwnerType as t, CreateFormData as u, BaseResourceType as v, CreateUnregisteredVendorFormData as w, DateTimeWithPriceType as x, DeviceInfo as y, EventStatusType as z };
@@ -44,6 +44,7 @@ __export(graphql_exports, {
44
44
  useCreatePushToken: () => useCreatePushToken,
45
45
  useCreateRelation: () => useCreateRelation,
46
46
  useCreateResourceActivity: () => useCreateResourceActivity,
47
+ useCreateSchool: () => useCreateSchool,
47
48
  useCreateUnregisteredVendor: () => useCreateUnregisteredVendor,
48
49
  useCreateUser: () => useCreateUser,
49
50
  useCreateVendor: () => useCreateVendor,
@@ -56,6 +57,7 @@ __export(graphql_exports, {
56
57
  useDeletePartner: () => useDeletePartner,
57
58
  useDeletePost: () => useDeletePost,
58
59
  useDeleteRelation: () => useDeleteRelation,
60
+ useDeleteSchool: () => useDeleteSchool,
59
61
  useDeleteUnregisteredVendor: () => useDeleteUnregisteredVendor,
60
62
  useDeleteUser: () => useDeleteUser,
61
63
  useDeleteVendor: () => useDeleteVendor,
@@ -89,6 +91,8 @@ __export(graphql_exports, {
89
91
  useGetReportedChatUsers: () => useGetReportedChatUsers,
90
92
  useGetResourceActivity: () => useGetResourceActivity,
91
93
  useGetResourceConnections: () => useGetResourceConnections,
94
+ useGetSchool: () => useGetSchool,
95
+ useGetSchools: () => useGetSchools,
92
96
  useGetSubscriptionPlans: () => useGetSubscriptionPlans,
93
97
  useGetSubscriptionStatus: () => useGetSubscriptionStatus,
94
98
  useGetUnregisteredVendor: () => useGetUnregisteredVendor,
@@ -141,6 +145,7 @@ __export(graphql_exports, {
141
145
  useUpdatePartner: () => useUpdatePartner,
142
146
  useUpdatePost: () => useUpdatePost,
143
147
  useUpdateRelation: () => useUpdateRelation,
148
+ useUpdateSchool: () => useUpdateSchool,
144
149
  useUpdateSubscriptionPlan: () => useUpdateSubscriptionPlan,
145
150
  useUpdateUnregisteredVendor: () => useUpdateUnregisteredVendor,
146
151
  useUpdateUser: () => useUpdateUser,
@@ -331,6 +336,7 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
331
336
  promoCodes
332
337
  refreshToken
333
338
  role
339
+ school
334
340
  termsAgreement {
335
341
  ...TermsAgreementFields
336
342
  }
@@ -3393,12 +3399,18 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client55.gql`
3393
3399
  `;
3394
3400
  var GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
3395
3401
  fragment GameDataFields on GameDataType {
3402
+ dailyClue {
3403
+ ...DailyClueGameDataFields
3404
+ }
3405
+ }
3406
+ ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
3407
+ `;
3408
+ var GAME_FIELDS_FRAGMENT = import_client55.gql`
3409
+ fragment GameFields on GameType {
3396
3410
  active
3397
3411
  createdAt
3398
3412
  gameData {
3399
- dailyClue {
3400
- ...DailyClueGameDataFields
3401
- }
3413
+ ...GameDataFields
3402
3414
  }
3403
3415
  gameHistory {
3404
3416
  ...GameHistoryFields
@@ -3406,17 +3418,17 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
3406
3418
  gameType
3407
3419
  updatedAt
3408
3420
  }
3409
- ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
3421
+ ${GAME_DATA_FIELDS_FRAGMENT}
3410
3422
  ${GAME_HISTORY_FIELDS_FRAGMENT}
3411
3423
  `;
3412
- var GAME_FIELDS_FRAGMENT = import_client55.gql`
3413
- fragment GameFields on GameType {
3424
+ var GAME_DOC_FIELDS_FRAGMENT = import_client55.gql`
3425
+ fragment GameDocFields on GameDocType {
3414
3426
  _id
3415
3427
  active
3416
3428
  createdAt
3417
3429
  deletedAt
3418
- game {
3419
- ...GameDataFields
3430
+ games {
3431
+ ...GameFields
3420
3432
  }
3421
3433
  owner {
3422
3434
  ...OwnerFields
@@ -3425,23 +3437,23 @@ var GAME_FIELDS_FRAGMENT = import_client55.gql`
3425
3437
  updatedAt
3426
3438
  }
3427
3439
  ${OWNER_FIELDS_FRAGMENT}
3428
- ${GAME_DATA_FIELDS_FRAGMENT}
3440
+ ${GAME_FIELDS_FRAGMENT}
3429
3441
  `;
3430
3442
  var GET_GAMES = import_client55.gql`
3431
3443
  query getGames {
3432
3444
  games {
3433
- ...GameFields
3445
+ ...GameDocFields
3434
3446
  }
3435
3447
  }
3436
- ${GAME_FIELDS_FRAGMENT}
3448
+ ${GAME_DOC_FIELDS_FRAGMENT}
3437
3449
  `;
3438
3450
  var GET_GAME = import_client55.gql`
3439
3451
  query getGame($_id: ID!) {
3440
3452
  game(_id: $_id) {
3441
- ...GameFields
3453
+ ...GameDocFields
3442
3454
  }
3443
3455
  }
3444
- ${GAME_FIELDS_FRAGMENT}
3456
+ ${GAME_DOC_FIELDS_FRAGMENT}
3445
3457
  `;
3446
3458
  var GET_GAME_LEADERBOARD = import_client55.gql`
3447
3459
  query getGameLeaderboard {
@@ -3701,10 +3713,10 @@ var import_client64 = require("@apollo/client");
3701
3713
  var START_GAME_MUTATION = import_client64.gql`
3702
3714
  mutation startGame($input: BaseGameInputType!) {
3703
3715
  startGame(input: $input) {
3704
- ...GameFields
3716
+ ...GameDocFields
3705
3717
  }
3706
3718
  }
3707
- ${GAME_FIELDS_FRAGMENT}
3719
+ ${GAME_DOC_FIELDS_FRAGMENT}
3708
3720
  `;
3709
3721
  var LEAVE_GAME_MUTATION = import_client64.gql`
3710
3722
  mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
@@ -3714,10 +3726,10 @@ var LEAVE_GAME_MUTATION = import_client64.gql`
3714
3726
  var UPDATE_DAILY_CLUE_MUTATION = import_client64.gql`
3715
3727
  mutation updateDailyClueGame($_id: ID!, $foundLetter: String!) {
3716
3728
  updateDailyClueGame(_id: $_id, foundLetter: $foundLetter) {
3717
- ...GameFields
3729
+ ...GameDocFields
3718
3730
  }
3719
3731
  }
3720
- ${GAME_FIELDS_FRAGMENT}
3732
+ ${GAME_DOC_FIELDS_FRAGMENT}
3721
3733
  `;
3722
3734
 
3723
3735
  // src/graphql/hooks/game/hooksMutation.ts
@@ -3798,6 +3810,148 @@ var useGetGameLeaderboard = () => {
3798
3810
  const gameLeaderboard = data?.gameLeaderboard || [];
3799
3811
  return { error, gameLeaderboard, loading, refetch };
3800
3812
  };
3813
+
3814
+ // src/graphql/hooks/school/hooksMutation.ts
3815
+ var import_client69 = require("@apollo/client");
3816
+
3817
+ // src/graphql/mutations/school.ts
3818
+ var import_client68 = require("@apollo/client");
3819
+
3820
+ // src/graphql/queries/school.ts
3821
+ var import_client67 = require("@apollo/client");
3822
+ var SCHOOL = import_client67.gql`
3823
+ fragment SchoolFields on SchoolType {
3824
+ _id
3825
+ active
3826
+ contactDetails {
3827
+ ...ContactDetailsFields
3828
+ }
3829
+ location {
3830
+ ...LocationFields
3831
+ }
3832
+ createdAt
3833
+ deletedAt
3834
+ logo {
3835
+ ...ResourceImageFields
3836
+ }
3837
+ name
3838
+ owner {
3839
+ ...OwnerFields
3840
+ }
3841
+ region
3842
+ studentCount
3843
+ termsAgreement {
3844
+ ...TermsAgreementFields
3845
+ }
3846
+ updatedAt
3847
+ }
3848
+ ${OWNER_FIELDS_FRAGMENT}
3849
+ ${LOCATION_FIELDS_FRAGMENT}
3850
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3851
+ ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3852
+ ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
3853
+ `;
3854
+ var GET_SCHOOL = import_client67.gql`
3855
+ query getSchool($_id: ID!) {
3856
+ school(_id: $_id) {
3857
+ ...SchoolFields
3858
+ }
3859
+ }
3860
+ ${SCHOOL}
3861
+ `;
3862
+ var GET_SCHOOLS = import_client67.gql`
3863
+ query getSchools {
3864
+ schools {
3865
+ ...SchoolFields
3866
+ }
3867
+ }
3868
+ ${SCHOOL}
3869
+ `;
3870
+
3871
+ // src/graphql/mutations/school.ts
3872
+ var CREATE_SCHOOL_MUTATION = import_client68.gql`
3873
+ mutation createSchool($input: SchoolInputType!) {
3874
+ createSchool(input: $input) {
3875
+ ...SchoolFields
3876
+ }
3877
+ }
3878
+ ${SCHOOL}
3879
+ `;
3880
+ var UPDATE_SCHOOL_MUTATION = import_client68.gql`
3881
+ mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
3882
+ updateSchool(_id: $_id, input: $input) {
3883
+ ...SchoolFields
3884
+ }
3885
+ }
3886
+ ${SCHOOL}
3887
+ `;
3888
+ var DELETE_SCHOOL_MUTATION = import_client68.gql`
3889
+ mutation deleteSchool($_id: ID!) {
3890
+ deleteSchool(_id: $_id)
3891
+ }
3892
+ `;
3893
+
3894
+ // src/graphql/hooks/school/hooksMutation.ts
3895
+ var useCreateSchool = () => {
3896
+ const [createSchool, { loading, error }] = (0, import_client69.useMutation)(
3897
+ CREATE_SCHOOL_MUTATION,
3898
+ {
3899
+ awaitRefetchQueries: true,
3900
+ refetchQueries: [{ query: GET_SCHOOLS }]
3901
+ }
3902
+ );
3903
+ return { createSchool, error, loading };
3904
+ };
3905
+ var useUpdateSchool = () => {
3906
+ const [updateSchool, { loading, error }] = (0, import_client69.useMutation)(
3907
+ UPDATE_SCHOOL_MUTATION,
3908
+ {
3909
+ awaitRefetchQueries: true,
3910
+ refetchQueries: [{ query: GET_SCHOOLS }]
3911
+ }
3912
+ );
3913
+ return { error, loading, updateSchool };
3914
+ };
3915
+ var useDeleteSchool = () => {
3916
+ const [deleteSchool, { loading, error }] = (0, import_client69.useMutation)(
3917
+ DELETE_SCHOOL_MUTATION,
3918
+ {
3919
+ awaitRefetchQueries: true,
3920
+ refetchQueries: [{ query: GET_SCHOOLS }]
3921
+ }
3922
+ );
3923
+ return { deleteSchool, error, loading };
3924
+ };
3925
+
3926
+ // src/graphql/hooks/school/hooksQuery.ts
3927
+ var import_client70 = require("@apollo/client");
3928
+ var useGetSchools = () => {
3929
+ const { data, loading, error, refetch } = (0, import_client70.useQuery)(
3930
+ GET_SCHOOLS,
3931
+ {
3932
+ fetchPolicy: "network-only"
3933
+ }
3934
+ );
3935
+ return {
3936
+ error,
3937
+ loading,
3938
+ refetch,
3939
+ schools: data?.schools || []
3940
+ };
3941
+ };
3942
+ var useGetSchool = (_id) => {
3943
+ const { data, loading, error, refetch } = (0, import_client70.useQuery)(GET_SCHOOL, {
3944
+ fetchPolicy: "network-only",
3945
+ skip: !_id,
3946
+ variables: { _id }
3947
+ });
3948
+ return {
3949
+ error,
3950
+ loading,
3951
+ refetch,
3952
+ school: data?.school || null
3953
+ };
3954
+ };
3801
3955
  // Annotate the CommonJS export names for ESM import in node:
3802
3956
  0 && (module.exports = {
3803
3957
  useAddParticipantToChat,
@@ -3824,6 +3978,7 @@ var useGetGameLeaderboard = () => {
3824
3978
  useCreatePushToken,
3825
3979
  useCreateRelation,
3826
3980
  useCreateResourceActivity,
3981
+ useCreateSchool,
3827
3982
  useCreateUnregisteredVendor,
3828
3983
  useCreateUser,
3829
3984
  useCreateVendor,
@@ -3836,6 +3991,7 @@ var useGetGameLeaderboard = () => {
3836
3991
  useDeletePartner,
3837
3992
  useDeletePost,
3838
3993
  useDeleteRelation,
3994
+ useDeleteSchool,
3839
3995
  useDeleteUnregisteredVendor,
3840
3996
  useDeleteUser,
3841
3997
  useDeleteVendor,
@@ -3869,6 +4025,8 @@ var useGetGameLeaderboard = () => {
3869
4025
  useGetReportedChatUsers,
3870
4026
  useGetResourceActivity,
3871
4027
  useGetResourceConnections,
4028
+ useGetSchool,
4029
+ useGetSchools,
3872
4030
  useGetSubscriptionPlans,
3873
4031
  useGetSubscriptionStatus,
3874
4032
  useGetUnregisteredVendor,
@@ -3921,6 +4079,7 @@ var useGetGameLeaderboard = () => {
3921
4079
  useUpdatePartner,
3922
4080
  useUpdatePost,
3923
4081
  useUpdateRelation,
4082
+ useUpdateSchool,
3924
4083
  useUpdateSubscriptionPlan,
3925
4084
  useUpdateUnregisteredVendor,
3926
4085
  useUpdateUser,