@timardex/cluemart-shared 1.5.510 → 1.5.512

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 (38) hide show
  1. package/dist/{chunk-WYYQSPAX.mjs → chunk-TZBKOYFM.mjs} +1 -1
  2. package/dist/{chunk-WYYQSPAX.mjs.map → chunk-TZBKOYFM.mjs.map} +1 -1
  3. package/dist/{chunk-RY7AILFK.mjs → chunk-U3RFZUPB.mjs} +2 -2
  4. package/dist/{chunk-RQDZX76B.mjs → chunk-YHE6M5DD.mjs} +34 -17
  5. package/dist/{chunk-RQDZX76B.mjs.map → chunk-YHE6M5DD.mjs.map} +1 -1
  6. package/dist/{chunk-3SFKWCTZ.mjs → chunk-Z6YIR3MO.mjs} +2 -2
  7. package/dist/formFields/index.mjs +3 -3
  8. package/dist/{game-MJqjbMLC.d.ts → game-BkJDVMMI.d.ts} +16 -9
  9. package/dist/{game-DuJpk6t2.d.mts → game-BunlgBR3.d.mts} +16 -9
  10. package/dist/graphql/index.cjs +33 -16
  11. package/dist/graphql/index.cjs.map +1 -1
  12. package/dist/graphql/index.d.mts +10 -10
  13. package/dist/graphql/index.d.ts +10 -10
  14. package/dist/graphql/index.mjs +1 -1
  15. package/dist/hooks/index.cjs +33 -16
  16. package/dist/hooks/index.cjs.map +1 -1
  17. package/dist/hooks/index.d.mts +2 -2
  18. package/dist/hooks/index.d.ts +2 -2
  19. package/dist/hooks/index.mjs +4 -4
  20. package/dist/index.cjs +33 -16
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.mts +24 -17
  23. package/dist/index.d.ts +24 -17
  24. package/dist/index.mjs +33 -16
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/{post-CZ1sHnKx.d.ts → post-CdBp2FwH.d.ts} +1 -1
  27. package/dist/{post-D3uHp75N.d.mts → post-DHlHtpG9.d.mts} +1 -1
  28. package/dist/types/index.cjs.map +1 -1
  29. package/dist/types/index.d.mts +2 -2
  30. package/dist/types/index.d.ts +2 -2
  31. package/dist/types/index.mjs +1 -1
  32. package/dist/utils/index.cjs.map +1 -1
  33. package/dist/utils/index.d.mts +1 -1
  34. package/dist/utils/index.d.ts +1 -1
  35. package/dist/utils/index.mjs +2 -2
  36. package/package.json +1 -1
  37. /package/dist/{chunk-RY7AILFK.mjs.map → chunk-U3RFZUPB.mjs.map} +0 -0
  38. /package/dist/{chunk-3SFKWCTZ.mjs.map → chunk-Z6YIR3MO.mjs.map} +0 -0
@@ -2,8 +2,8 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
3
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CqrscA5x.mjs';
4
4
  import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-MMBYi34A.mjs';
5
- import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-D3uHp75N.mjs';
6
- import { G as GameType, a as GameLeaderboard } from '../game-DuJpk6t2.mjs';
5
+ import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-DHlHtpG9.mjs';
6
+ import { G as GameDocType, a as GameLeaderboard } from '../game-BunlgBR3.mjs';
7
7
  import 'react-hook-form';
8
8
 
9
9
  declare const useAdminUpdateResourceType: () => {
@@ -990,9 +990,9 @@ declare const useStartGame: () => {
990
990
  error: _apollo_client.ApolloError | undefined;
991
991
  loading: boolean;
992
992
  startGame: (options?: _apollo_client.MutationFunctionOptions<{
993
- startGame: GameType;
993
+ startGame: GameDocType;
994
994
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
995
- startGame: GameType;
995
+ startGame: GameDocType;
996
996
  }>>;
997
997
  };
998
998
  declare const useLeaveGame: () => {
@@ -1004,26 +1004,26 @@ declare const useUpdateDailyClueGame: () => {
1004
1004
  error: _apollo_client.ApolloError | undefined;
1005
1005
  loading: boolean;
1006
1006
  updateDailyClueGame: (options?: _apollo_client.MutationFunctionOptions<{
1007
- updateDailyClueGame: GameType;
1007
+ updateDailyClueGame: GameDocType;
1008
1008
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
1009
- updateDailyClueGame: GameType;
1009
+ updateDailyClueGame: GameDocType;
1010
1010
  }>>;
1011
1011
  };
1012
1012
 
1013
1013
  declare const useGetGames: () => {
1014
1014
  error: _apollo_client.ApolloError | undefined;
1015
- games: GameType[];
1015
+ games: GameDocType[];
1016
1016
  loading: boolean;
1017
1017
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
1018
- games: GameType[];
1018
+ games: GameDocType[];
1019
1019
  }>>;
1020
1020
  };
1021
1021
  declare const useGetGame: (_id: string) => {
1022
1022
  error: _apollo_client.ApolloError | undefined;
1023
- game: GameType | null;
1023
+ game: GameDocType | null;
1024
1024
  loading: boolean;
1025
1025
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
1026
- game: GameType | null;
1026
+ game: GameDocType | null;
1027
1027
  }>>;
1028
1028
  };
1029
1029
  declare const useGetGameLeaderboard: () => {
@@ -2,8 +2,8 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
3
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-2FaGRW-i.js';
4
4
  import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-B0WdAD-8.js';
5
- import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-CZ1sHnKx.js';
6
- import { G as GameType, a as GameLeaderboard } from '../game-MJqjbMLC.js';
5
+ import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-CdBp2FwH.js';
6
+ import { G as GameDocType, a as GameLeaderboard } from '../game-BkJDVMMI.js';
7
7
  import 'react-hook-form';
8
8
 
9
9
  declare const useAdminUpdateResourceType: () => {
@@ -990,9 +990,9 @@ declare const useStartGame: () => {
990
990
  error: _apollo_client.ApolloError | undefined;
991
991
  loading: boolean;
992
992
  startGame: (options?: _apollo_client.MutationFunctionOptions<{
993
- startGame: GameType;
993
+ startGame: GameDocType;
994
994
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
995
- startGame: GameType;
995
+ startGame: GameDocType;
996
996
  }>>;
997
997
  };
998
998
  declare const useLeaveGame: () => {
@@ -1004,26 +1004,26 @@ declare const useUpdateDailyClueGame: () => {
1004
1004
  error: _apollo_client.ApolloError | undefined;
1005
1005
  loading: boolean;
1006
1006
  updateDailyClueGame: (options?: _apollo_client.MutationFunctionOptions<{
1007
- updateDailyClueGame: GameType;
1007
+ updateDailyClueGame: GameDocType;
1008
1008
  }, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
1009
- updateDailyClueGame: GameType;
1009
+ updateDailyClueGame: GameDocType;
1010
1010
  }>>;
1011
1011
  };
1012
1012
 
1013
1013
  declare const useGetGames: () => {
1014
1014
  error: _apollo_client.ApolloError | undefined;
1015
- games: GameType[];
1015
+ games: GameDocType[];
1016
1016
  loading: boolean;
1017
1017
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
1018
- games: GameType[];
1018
+ games: GameDocType[];
1019
1019
  }>>;
1020
1020
  };
1021
1021
  declare const useGetGame: (_id: string) => {
1022
1022
  error: _apollo_client.ApolloError | undefined;
1023
- game: GameType | null;
1023
+ game: GameDocType | null;
1024
1024
  loading: boolean;
1025
1025
  refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
1026
- game: GameType | null;
1026
+ game: GameDocType | null;
1027
1027
  }>>;
1028
1028
  };
1029
1029
  declare const useGetGameLeaderboard: () => {
@@ -126,7 +126,7 @@ import {
126
126
  useUpdateVendor,
127
127
  useUpdateVendorInfo,
128
128
  useValidateVerificationToken
129
- } from "../chunk-RQDZX76B.mjs";
129
+ } from "../chunk-YHE6M5DD.mjs";
130
130
  import "../chunk-534WN2SR.mjs";
131
131
  export {
132
132
  useAddParticipantToChat,
@@ -4096,46 +4096,63 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client55.gql`
4096
4096
  }
4097
4097
  ${GAME_DATE_FIELDS_FRAGMENT}
4098
4098
  `;
4099
+ var GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
4100
+ fragment GameDataFields on GameDataType {
4101
+ dailyClue {
4102
+ ...DailyClueGameDataFields
4103
+ }
4104
+ }
4105
+ ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
4106
+ `;
4099
4107
  var GAME_FIELDS_FRAGMENT = import_client55.gql`
4100
4108
  fragment GameFields on GameType {
4101
- _id
4102
4109
  active
4103
4110
  createdAt
4104
- deletedAt
4105
4111
  gameData {
4106
- dailyClue {
4107
- ...DailyClueGameDataFields
4108
- }
4112
+ ...GameDataFields
4109
4113
  }
4110
4114
  gameHistory {
4111
4115
  ...GameHistoryFields
4112
4116
  }
4117
+ gameType
4113
4118
  updatedAt
4119
+ }
4120
+ ${GAME_DATA_FIELDS_FRAGMENT}
4121
+ ${GAME_HISTORY_FIELDS_FRAGMENT}
4122
+ `;
4123
+ var GAME_DOC_FIELDS_FRAGMENT = import_client55.gql`
4124
+ fragment GameDocFields on GameDocType {
4125
+ _id
4126
+ active
4127
+ createdAt
4128
+ deletedAt
4129
+ games {
4130
+ ...GameFields
4131
+ }
4114
4132
  owner {
4115
4133
  ...OwnerFields
4116
4134
  }
4117
4135
  points
4136
+ updatedAt
4118
4137
  }
4119
- ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
4120
4138
  ${OWNER_FIELDS_FRAGMENT}
4121
- ${GAME_DATE_FIELDS_FRAGMENT}
4122
- ${GAME_HISTORY_FIELDS_FRAGMENT}
4139
+ ${GAME_FIELDS_FRAGMENT}
4123
4140
  `;
4124
4141
  var GET_GAMES = import_client55.gql`
4125
4142
  query getGames {
4126
4143
  games {
4127
- ...GameFields
4144
+ ...GameDocFields
4128
4145
  }
4129
4146
  }
4130
- ${GAME_FIELDS_FRAGMENT}
4147
+ ${GAME_DOC_FIELDS_FRAGMENT}
4131
4148
  `;
4132
4149
  var GET_GAME = import_client55.gql`
4133
4150
  query getGame($_id: ID!) {
4134
4151
  game(_id: $_id) {
4135
- ...GameFields
4152
+ ...GameDocFields
4136
4153
  }
4137
4154
  }
4138
- ${GAME_FIELDS_FRAGMENT}
4155
+ ${GAME_DOC_FIELDS_FRAGMENT}
4139
4156
  `;
4140
4157
  var GET_GAME_LEADERBOARD = import_client55.gql`
4141
4158
  query getGameLeaderboard {
@@ -4323,10 +4340,10 @@ var import_client64 = require("@apollo/client");
4323
4340
  var START_GAME_MUTATION = import_client64.gql`
4324
4341
  mutation startGame($input: BaseGameInputType!) {
4325
4342
  startGame(input: $input) {
4326
- ...GameFields
4343
+ ...GameDocFields
4327
4344
  }
4328
4345
  }
4329
- ${GAME_FIELDS_FRAGMENT}
4346
+ ${GAME_DOC_FIELDS_FRAGMENT}
4330
4347
  `;
4331
4348
  var LEAVE_GAME_MUTATION = import_client64.gql`
4332
4349
  mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
@@ -4336,10 +4353,10 @@ var LEAVE_GAME_MUTATION = import_client64.gql`
4336
4353
  var UPDATE_DAILY_CLUE_MUTATION = import_client64.gql`
4337
4354
  mutation updateDailyClueGame($_id: ID!, $foundLetter: String!) {
4338
4355
  updateDailyClueGame(_id: $_id, foundLetter: $foundLetter) {
4339
- ...GameFields
4356
+ ...GameDocFields
4340
4357
  }
4341
4358
  }
4342
- ${GAME_FIELDS_FRAGMENT}
4359
+ ${GAME_DOC_FIELDS_FRAGMENT}
4343
4360
  `;
4344
4361
 
4345
4362
  // src/graphql/hooks/game/hooksQuery.ts