@timardex/cluemart-shared 1.7.88 → 1.7.90

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 (67) hide show
  1. package/dist/{ad-BwfNEfvN.d.ts → ad-BX_Da-0Q.d.ts} +1 -1
  2. package/dist/{ad-CjiiPTke.d.mts → ad-MA6buSLw.d.mts} +1 -1
  3. package/dist/{affiliate-Ci9YSdAV.d.mts → affiliate-Cb8BLoQc.d.mts} +1 -1
  4. package/dist/{affiliate-B4e50Q65.d.ts → affiliate-DXpSgV4o.d.ts} +1 -1
  5. package/dist/auth/index.d.mts +2 -2
  6. package/dist/auth/index.d.ts +2 -2
  7. package/dist/auth/index.mjs +1 -1
  8. package/dist/billingCatalog-Bca0IZG_.d.mts +54 -0
  9. package/dist/billingCatalog-Rh9yvue3.d.ts +54 -0
  10. package/dist/{chunk-M3R2UY5Z.mjs → chunk-6VTX7IPF.mjs} +189 -137
  11. package/dist/chunk-6VTX7IPF.mjs.map +1 -0
  12. package/dist/{chunk-RCARDOVS.mjs → chunk-D3U4LBOQ.mjs} +88 -4
  13. package/dist/chunk-D3U4LBOQ.mjs.map +1 -0
  14. package/dist/{chunk-4BN6SNMF.mjs → chunk-JAIBL6IU.mjs} +2 -2
  15. package/dist/{chunk-DFAYHIEZ.mjs → chunk-JX7Q5EI4.mjs} +3 -3
  16. package/dist/{chunk-7IB7QPVH.mjs → chunk-P4NLBWEJ.mjs} +3 -3
  17. package/dist/chunk-P4NLBWEJ.mjs.map +1 -0
  18. package/dist/{chunk-364EX22V.mjs → chunk-TD52IH52.mjs} +1 -1
  19. package/dist/chunk-TD52IH52.mjs.map +1 -0
  20. package/dist/{chunk-2UNNIQIK.mjs → chunk-YRO6KEZG.mjs} +2 -2
  21. package/dist/enums/index.cjs +2 -2
  22. package/dist/enums/index.cjs.map +1 -1
  23. package/dist/enums/index.d.mts +3 -3
  24. package/dist/enums/index.d.ts +3 -3
  25. package/dist/enums/index.mjs +1 -1
  26. package/dist/formFields/index.cjs +59 -0
  27. package/dist/formFields/index.cjs.map +1 -1
  28. package/dist/formFields/index.mjs +5 -5
  29. package/dist/graphql/index.cjs +191 -137
  30. package/dist/graphql/index.cjs.map +1 -1
  31. package/dist/graphql/index.d.mts +34 -22
  32. package/dist/graphql/index.d.ts +34 -22
  33. package/dist/graphql/index.mjs +8 -4
  34. package/dist/hooks/index.cjs +189 -92
  35. package/dist/hooks/index.cjs.map +1 -1
  36. package/dist/hooks/index.d.mts +3 -3
  37. package/dist/hooks/index.d.ts +3 -3
  38. package/dist/hooks/index.mjs +7 -7
  39. package/dist/index.cjs +283 -139
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.mts +106 -23
  42. package/dist/index.d.ts +106 -23
  43. package/dist/index.mjs +274 -138
  44. package/dist/index.mjs.map +1 -1
  45. package/dist/{resourceActivities-C14qOL7_.d.ts → resourceActivities-CAr2chXT.d.ts} +1 -1
  46. package/dist/{resourceActivities-BDp-h5yH.d.mts → resourceActivities-e3GkUqTN.d.mts} +1 -1
  47. package/dist/sharing/index.cjs.map +1 -1
  48. package/dist/sharing/index.mjs +3 -3
  49. package/dist/types/index.cjs.map +1 -1
  50. package/dist/types/index.d.mts +5 -4
  51. package/dist/types/index.d.ts +5 -4
  52. package/dist/types/index.mjs +2 -2
  53. package/dist/{user-DzOlyCj5.d.mts → user-BTzwLwJl.d.mts} +0 -1
  54. package/dist/{user-BC4SpAj_.d.ts → user-D6Mt35k0.d.ts} +0 -1
  55. package/dist/utils/index.cjs +90 -0
  56. package/dist/utils/index.cjs.map +1 -1
  57. package/dist/utils/index.d.mts +27 -4
  58. package/dist/utils/index.d.ts +27 -4
  59. package/dist/utils/index.mjs +16 -4
  60. package/package.json +1 -1
  61. package/dist/chunk-364EX22V.mjs.map +0 -1
  62. package/dist/chunk-7IB7QPVH.mjs.map +0 -1
  63. package/dist/chunk-M3R2UY5Z.mjs.map +0 -1
  64. package/dist/chunk-RCARDOVS.mjs.map +0 -1
  65. /package/dist/{chunk-4BN6SNMF.mjs.map → chunk-JAIBL6IU.mjs.map} +0 -0
  66. /package/dist/{chunk-DFAYHIEZ.mjs.map → chunk-JX7Q5EI4.mjs.map} +0 -0
  67. /package/dist/{chunk-2UNNIQIK.mjs.map → chunk-YRO6KEZG.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -122,8 +122,8 @@ var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource2) => {
122
122
  return EnumRelationResource2;
123
123
  })(EnumRelationResource || {});
124
124
  var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceType2) => {
125
- EnumNotificationResourceType2["APPROVED_AFFILIATE"] = "approved_affiliate";
126
125
  EnumNotificationResourceType2["AFFILIATE_REWARD_RECEIVED"] = "affiliate_reward_received";
126
+ EnumNotificationResourceType2["APPROVED_AFFILIATE"] = "approved_affiliate";
127
127
  EnumNotificationResourceType2["APPROVED_EVENT"] = "approved_event";
128
128
  EnumNotificationResourceType2["APPROVED_PARTNER"] = "approved_partner";
129
129
  EnumNotificationResourceType2["APPROVED_SCHOOL"] = "approved_school";
@@ -151,6 +151,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
151
151
  EnumNotificationResourceType2["NEW_POST_CREATED"] = "new_post_created";
152
152
  EnumNotificationResourceType2["REGISTERED_USER_BY_SCHOOL_CODE"] = "registered_user_by_school_code";
153
153
  EnumNotificationResourceType2["SYSTEM_ALERT"] = "system_alert";
154
+ EnumNotificationResourceType2["USER_COUPON_REDEEMED"] = "user_coupon_redeemed";
154
155
  EnumNotificationResourceType2["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event" /* VENDOR_APPLICATION_TO_EVENT */;
155
156
  EnumNotificationResourceType2["VENDOR_UPDATE_RELATION_TO_EVENT"] = "vendor_update_relation_to_event" /* VENDOR_UPDATE_RELATION_TO_EVENT */;
156
157
  return EnumNotificationResourceType2;
@@ -244,7 +245,6 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus2) => {
244
245
  var EnumBillingPeriod = /* @__PURE__ */ ((EnumBillingPeriod2) => {
245
246
  EnumBillingPeriod2["MONTHLY_CANCEL_ANYTIME"] = "monthly_cancel_anytime";
246
247
  EnumBillingPeriod2["YEARLY_ANNUAL_BILLED"] = "yearly_annual_billed";
247
- EnumBillingPeriod2["YEARLY_MONTHLY_BILLED"] = "yearly_monthly_billed";
248
248
  return EnumBillingPeriod2;
249
249
  })(EnumBillingPeriod || {});
250
250
  var EnumReward = /* @__PURE__ */ ((EnumReward2) => {
@@ -2545,6 +2545,84 @@ function isTransientNetworkError(err) {
2545
2545
  return TRANSIENT_NETWORK_PATTERNS.some((pattern) => pattern.test(message));
2546
2546
  }
2547
2547
 
2548
+ // src/utils/billingCatalog/index.ts
2549
+ var BILLING_CATALOG_KEYS = [
2550
+ "pro_vendor_monthly",
2551
+ "pro_vendor_yearly",
2552
+ "pro_plus_vendor_monthly",
2553
+ "pro_plus_vendor_yearly"
2554
+ ];
2555
+ var BILLING_CATALOG_CURRENCY = "nzd";
2556
+ var BILLING_CATALOG_DEFINITIONS = {
2557
+ pro_plus_vendor_monthly: {
2558
+ billingPeriod: "monthly_cancel_anytime" /* MONTHLY_CANCEL_ANYTIME */,
2559
+ licenceType: "pro_plus_vendor" /* PRO_PLUS_VENDOR */
2560
+ },
2561
+ pro_plus_vendor_yearly: {
2562
+ billingPeriod: "yearly_annual_billed" /* YEARLY_ANNUAL_BILLED */,
2563
+ licenceType: "pro_plus_vendor" /* PRO_PLUS_VENDOR */
2564
+ },
2565
+ pro_vendor_monthly: {
2566
+ billingPeriod: "monthly_cancel_anytime" /* MONTHLY_CANCEL_ANYTIME */,
2567
+ licenceType: "pro_vendor" /* PRO_VENDOR */
2568
+ },
2569
+ pro_vendor_yearly: {
2570
+ billingPeriod: "yearly_annual_billed" /* YEARLY_ANNUAL_BILLED */,
2571
+ licenceType: "pro_vendor" /* PRO_VENDOR */
2572
+ }
2573
+ };
2574
+ function getBillingCatalogKeyForSelection(licenceType, billingPeriod) {
2575
+ const match = Object.entries(BILLING_CATALOG_DEFINITIONS).find(
2576
+ ([, definition]) => definition.licenceType === licenceType && definition.billingPeriod === billingPeriod
2577
+ );
2578
+ return match?.[0] ?? null;
2579
+ }
2580
+ var INITIAL_BILLING_CATALOG = [
2581
+ {
2582
+ active: true,
2583
+ billingPeriod: "monthly_cancel_anytime" /* MONTHLY_CANCEL_ANYTIME */,
2584
+ currency: BILLING_CATALOG_CURRENCY,
2585
+ key: "pro_vendor_monthly",
2586
+ licenceType: "pro_vendor" /* PRO_VENDOR */,
2587
+ taxInclusive: true,
2588
+ unitAmount: 3999
2589
+ },
2590
+ {
2591
+ active: true,
2592
+ billingPeriod: "yearly_annual_billed" /* YEARLY_ANNUAL_BILLED */,
2593
+ currency: BILLING_CATALOG_CURRENCY,
2594
+ key: "pro_vendor_yearly",
2595
+ licenceType: "pro_vendor" /* PRO_VENDOR */,
2596
+ taxInclusive: true,
2597
+ unitAmount: 40788
2598
+ },
2599
+ {
2600
+ active: true,
2601
+ billingPeriod: "monthly_cancel_anytime" /* MONTHLY_CANCEL_ANYTIME */,
2602
+ currency: BILLING_CATALOG_CURRENCY,
2603
+ key: "pro_plus_vendor_monthly",
2604
+ licenceType: "pro_plus_vendor" /* PRO_PLUS_VENDOR */,
2605
+ taxInclusive: true,
2606
+ unitAmount: 6499
2607
+ },
2608
+ {
2609
+ active: true,
2610
+ billingPeriod: "yearly_annual_billed" /* YEARLY_ANNUAL_BILLED */,
2611
+ currency: BILLING_CATALOG_CURRENCY,
2612
+ key: "pro_plus_vendor_yearly",
2613
+ licenceType: "pro_plus_vendor" /* PRO_PLUS_VENDOR */,
2614
+ taxInclusive: true,
2615
+ unitAmount: 62388
2616
+ }
2617
+ ];
2618
+ function billingCatalogDefinitionMatches(entry) {
2619
+ const definition = BILLING_CATALOG_DEFINITIONS[entry.key];
2620
+ if (!definition) {
2621
+ return false;
2622
+ }
2623
+ return definition.billingPeriod === entry.billingPeriod && definition.licenceType === entry.licenceType;
2624
+ }
2625
+
2548
2626
  // src/utils/toUserFacingErrorMessage.ts
2549
2627
  var DEFAULT_USER_FACING_ERROR = "Something went wrong. Please try again.";
2550
2628
  var NETWORK_USER_FACING_ERROR = "Unable to connect. Please check your internet connection and try again.";
@@ -6864,11 +6942,8 @@ import { useMutation as useMutation14 } from "@apollo/client";
6864
6942
  // src/graphql/mutations/stripe.ts
6865
6943
  import { gql as gql30 } from "@apollo/client";
6866
6944
  var CREATE_CHECKOUT_SESSION_MUTATION = gql30`
6867
- mutation createCheckoutSession(
6868
- $planId: LicencesEnumType!
6869
- $billingPeriod: BillingPeriodEnumType
6870
- ) {
6871
- createCheckoutSession(planId: $planId, billingPeriod: $billingPeriod) {
6945
+ mutation createCheckoutSession($input: CreateCheckoutSessionInputType!) {
6946
+ createCheckoutSession(input: $input) {
6872
6947
  data {
6873
6948
  sessionId
6874
6949
  checkoutUrl
@@ -6914,29 +6989,6 @@ var CREATE_CUSTOMER_PORTAL = gql30`
6914
6989
  }
6915
6990
  }
6916
6991
  `;
6917
- var SELECT_PACKAGE_MUTATION = gql30`
6918
- mutation selectPackage(
6919
- $billingPeriod: BillingPeriodEnumType
6920
- $selectedLicence: LicencesEnumType!
6921
- $useStripe: Boolean
6922
- ) {
6923
- selectPackage(
6924
- billingPeriod: $billingPeriod
6925
- selectedLicence: $selectedLicence
6926
- useStripe: $useStripe
6927
- ) {
6928
- data {
6929
- checkoutUrl
6930
- licences {
6931
- ...LicenceFields
6932
- }
6933
- userId
6934
- }
6935
- message
6936
- }
6937
- }
6938
- ${LICENCE_FIELDS_FRAGMENT}
6939
- `;
6940
6992
 
6941
6993
  // src/graphql/hooks/stripe/hooksMutation.ts
6942
6994
  var useCreateCheckoutSession = () => {
@@ -6955,21 +7007,6 @@ var useCreateCustomerPortal = () => {
6955
7007
  const [createCustomerPortal, { loading, error }] = useMutation14(CREATE_CUSTOMER_PORTAL);
6956
7008
  return { createCustomerPortal, error, loading };
6957
7009
  };
6958
- var useSelectPackage = () => {
6959
- const [selectPackage, { loading, error }] = useMutation14(SELECT_PACKAGE_MUTATION, {
6960
- awaitRefetchQueries: true,
6961
- refetchQueries: (mutationResult) => {
6962
- const userId = mutationResult?.data?.selectPackage?.data?.userId;
6963
- if (!userId) return [];
6964
- return [
6965
- { query: GET_USER, variables: { _id: userId } },
6966
- { query: GET_USER_EVENTS },
6967
- { query: GET_USER_VENDORS }
6968
- ];
6969
- }
6970
- });
6971
- return { error, loading, selectPackage };
6972
- };
6973
7010
 
6974
7011
  // src/graphql/hooks/stripe/hooksQuery.ts
6975
7012
  import { useQuery as useQuery9 } from "@apollo/client";
@@ -7009,7 +7046,6 @@ var GET_SUBSCRIPTION_PLANS = gql31`
7009
7046
  }
7010
7047
  }
7011
7048
  isNewUser
7012
- isTester
7013
7049
  appliedDiscountType
7014
7050
  }
7015
7051
  }
@@ -7318,15 +7354,107 @@ var useGetAppSettings = () => {
7318
7354
  return { appSettings, error, loading, refetch };
7319
7355
  };
7320
7356
 
7321
- // src/graphql/hooks/game/hooksMutation.ts
7357
+ // src/graphql/hooks/billingCatalog/hooksMutation.ts
7322
7358
  import { useMutation as useMutation18 } from "@apollo/client";
7323
7359
 
7324
- // src/graphql/mutations/game.ts
7360
+ // src/graphql/mutations/billingCatalog.ts
7325
7361
  import { gql as gql37 } from "@apollo/client";
7326
7362
 
7327
- // src/graphql/queries/game/game.ts
7363
+ // src/graphql/queries/billingCatalog.ts
7328
7364
  import { gql as gql36 } from "@apollo/client";
7329
- var GAME_HISTORY_FIELDS_FRAGMENT = gql36`
7365
+ var BILLING_CATALOG_FIELDS_FRAGMENT = gql36`
7366
+ fragment BillingCatalogFields on BillingCatalogEntryType {
7367
+ _id
7368
+ active
7369
+ billingPeriod
7370
+ createdAt
7371
+ currency
7372
+ effectiveFrom
7373
+ key
7374
+ licenceType
7375
+ revision
7376
+ stripePriceId
7377
+ stripeProductId
7378
+ taxInclusive
7379
+ unitAmount
7380
+ updatedAt
7381
+ updatedBy
7382
+ }
7383
+ `;
7384
+ var GET_BILLING_CATALOG = gql36`
7385
+ query getBillingCatalog {
7386
+ billingCatalog {
7387
+ ...BillingCatalogFields
7388
+ }
7389
+ }
7390
+ ${BILLING_CATALOG_FIELDS_FRAGMENT}
7391
+ `;
7392
+
7393
+ // src/graphql/mutations/billingCatalog.ts
7394
+ var UPDATE_BILLING_CATALOG_PRICE_MUTATION = gql37`
7395
+ mutation updateBillingCatalogPrice(
7396
+ $input: UpdateBillingCatalogPriceInputType!
7397
+ ) {
7398
+ updateBillingCatalogPrice(input: $input) {
7399
+ data {
7400
+ ...BillingCatalogFields
7401
+ }
7402
+ message
7403
+ }
7404
+ }
7405
+ ${BILLING_CATALOG_FIELDS_FRAGMENT}
7406
+ `;
7407
+ var SYNC_BILLING_CATALOG_PRICE_MUTATION = gql37`
7408
+ mutation syncBillingCatalogPrice($input: SyncBillingCatalogPriceInputType!) {
7409
+ syncBillingCatalogPrice(input: $input) {
7410
+ data {
7411
+ ...BillingCatalogFields
7412
+ }
7413
+ message
7414
+ }
7415
+ }
7416
+ ${BILLING_CATALOG_FIELDS_FRAGMENT}
7417
+ `;
7418
+
7419
+ // src/graphql/hooks/billingCatalog/hooksMutation.ts
7420
+ var useUpdateBillingCatalogPrice = () => {
7421
+ const [updateBillingCatalogPrice, { error, loading }] = useMutation18(UPDATE_BILLING_CATALOG_PRICE_MUTATION, {
7422
+ awaitRefetchQueries: true,
7423
+ refetchQueries: [{ query: GET_BILLING_CATALOG }]
7424
+ });
7425
+ return { error, loading, updateBillingCatalogPrice };
7426
+ };
7427
+ var useSyncBillingCatalogPrice = () => {
7428
+ const [syncBillingCatalogPrice, { error, loading }] = useMutation18(SYNC_BILLING_CATALOG_PRICE_MUTATION, {
7429
+ awaitRefetchQueries: true,
7430
+ refetchQueries: [{ query: GET_BILLING_CATALOG }]
7431
+ });
7432
+ return { error, loading, syncBillingCatalogPrice };
7433
+ };
7434
+
7435
+ // src/graphql/hooks/billingCatalog/hooksQuery.ts
7436
+ import { useQuery as useQuery13 } from "@apollo/client";
7437
+ var useGetBillingCatalog = () => {
7438
+ const { data, error, loading, refetch } = useQuery13(GET_BILLING_CATALOG, {
7439
+ fetchPolicy: "network-only"
7440
+ });
7441
+ return {
7442
+ billingCatalog: data?.billingCatalog ?? [],
7443
+ error,
7444
+ loading,
7445
+ refetch
7446
+ };
7447
+ };
7448
+
7449
+ // src/graphql/hooks/game/hooksMutation.ts
7450
+ import { useMutation as useMutation19 } from "@apollo/client";
7451
+
7452
+ // src/graphql/mutations/game.ts
7453
+ import { gql as gql39 } from "@apollo/client";
7454
+
7455
+ // src/graphql/queries/game/game.ts
7456
+ import { gql as gql38 } from "@apollo/client";
7457
+ var GAME_HISTORY_FIELDS_FRAGMENT = gql38`
7330
7458
  fragment GameHistoryFields on GameHistoryType {
7331
7459
  createdAt
7332
7460
  gameDate {
@@ -7341,7 +7469,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = gql36`
7341
7469
  }
7342
7470
  ${GAME_DATE_FIELDS_FRAGMENT}
7343
7471
  `;
7344
- var GAME_DATA_FIELDS_FRAGMENT = gql36`
7472
+ var GAME_DATA_FIELDS_FRAGMENT = gql38`
7345
7473
  fragment GameDataFields on GameDataType {
7346
7474
  dailyClue {
7347
7475
  ...DailyClueGameDataFields
@@ -7356,7 +7484,7 @@ var GAME_DATA_FIELDS_FRAGMENT = gql36`
7356
7484
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
7357
7485
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
7358
7486
  `;
7359
- var GAME_FIELDS_FRAGMENT = gql36`
7487
+ var GAME_FIELDS_FRAGMENT = gql38`
7360
7488
  fragment GameFields on GameType {
7361
7489
  _id
7362
7490
  active
@@ -7375,7 +7503,7 @@ var GAME_FIELDS_FRAGMENT = gql36`
7375
7503
  ${GAME_DATA_FIELDS_FRAGMENT}
7376
7504
  ${GAME_HISTORY_FIELDS_FRAGMENT}
7377
7505
  `;
7378
- var GAME_DOC_FIELDS_FRAGMENT = gql36`
7506
+ var GAME_DOC_FIELDS_FRAGMENT = gql38`
7379
7507
  fragment GameDocFields on GameDocType {
7380
7508
  _id
7381
7509
  active
@@ -7393,7 +7521,7 @@ var GAME_DOC_FIELDS_FRAGMENT = gql36`
7393
7521
  ${OWNER_FIELDS_FRAGMENT}
7394
7522
  ${GAME_FIELDS_FRAGMENT}
7395
7523
  `;
7396
- var GET_GAMES = gql36`
7524
+ var GET_GAMES = gql38`
7397
7525
  query getGames {
7398
7526
  games {
7399
7527
  ...GameDocFields
@@ -7401,7 +7529,7 @@ var GET_GAMES = gql36`
7401
7529
  }
7402
7530
  ${GAME_DOC_FIELDS_FRAGMENT}
7403
7531
  `;
7404
- var GET_GAME = gql36`
7532
+ var GET_GAME = gql38`
7405
7533
  query getGame($_id: ID) {
7406
7534
  game(_id: $_id) {
7407
7535
  ...GameDocFields
@@ -7409,7 +7537,7 @@ var GET_GAME = gql36`
7409
7537
  }
7410
7538
  ${GAME_DOC_FIELDS_FRAGMENT}
7411
7539
  `;
7412
- var GET_GAME_LEADERBOARD = gql36`
7540
+ var GET_GAME_LEADERBOARD = gql38`
7413
7541
  query getGameLeaderboard {
7414
7542
  gameLeaderboard {
7415
7543
  gameHistory {
@@ -7424,7 +7552,7 @@ var GET_GAME_LEADERBOARD = gql36`
7424
7552
  `;
7425
7553
 
7426
7554
  // src/graphql/mutations/game.ts
7427
- var START_GAME_MUTATION = gql37`
7555
+ var START_GAME_MUTATION = gql39`
7428
7556
  mutation startGame($input: BaseGameInputType!) {
7429
7557
  startGame(input: $input) {
7430
7558
  data {
@@ -7435,7 +7563,7 @@ var START_GAME_MUTATION = gql37`
7435
7563
  }
7436
7564
  ${GAME_DOC_FIELDS_FRAGMENT}
7437
7565
  `;
7438
- var LEAVE_GAME_MUTATION = gql37`
7566
+ var LEAVE_GAME_MUTATION = gql39`
7439
7567
  mutation leaveGame(
7440
7568
  $_id: ID!
7441
7569
  $gameType: GameTypeEnumType!
@@ -7447,7 +7575,7 @@ var LEAVE_GAME_MUTATION = gql37`
7447
7575
  }
7448
7576
  }
7449
7577
  `;
7450
- var UPDATE_DAILY_CLUE_MUTATION = gql37`
7578
+ var UPDATE_DAILY_CLUE_MUTATION = gql39`
7451
7579
  mutation updateDailyClueGame(
7452
7580
  $_id: ID!
7453
7581
  $foundLetter: String!
@@ -7468,7 +7596,7 @@ var UPDATE_DAILY_CLUE_MUTATION = gql37`
7468
7596
  }
7469
7597
  ${GAME_DOC_FIELDS_FRAGMENT}
7470
7598
  `;
7471
- var UPDATE_PUZZLE_GAME_MUTATION = gql37`
7599
+ var UPDATE_PUZZLE_GAME_MUTATION = gql39`
7472
7600
  mutation updatePuzzleGame(
7473
7601
  $_id: ID!
7474
7602
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -7492,7 +7620,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = gql37`
7492
7620
 
7493
7621
  // src/graphql/hooks/game/hooksMutation.ts
7494
7622
  var useStartGame = () => {
7495
- const [startGame, { loading, error }] = useMutation18(START_GAME_MUTATION, {
7623
+ const [startGame, { loading, error }] = useMutation19(START_GAME_MUTATION, {
7496
7624
  awaitRefetchQueries: true,
7497
7625
  refetchQueries: (mutationResult) => {
7498
7626
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -7515,7 +7643,7 @@ var useStartGame = () => {
7515
7643
  return { error, loading, startGame };
7516
7644
  };
7517
7645
  var useLeaveGame = () => {
7518
- const [leaveGame, { loading, error }] = useMutation18(LEAVE_GAME_MUTATION, {
7646
+ const [leaveGame, { loading, error }] = useMutation19(LEAVE_GAME_MUTATION, {
7519
7647
  awaitRefetchQueries: true,
7520
7648
  refetchQueries: [
7521
7649
  {
@@ -7526,7 +7654,7 @@ var useLeaveGame = () => {
7526
7654
  return { error, leaveGame, loading };
7527
7655
  };
7528
7656
  var useUpdateDailyClueGame = () => {
7529
- const [updateDailyClueGame, { loading, error }] = useMutation18(UPDATE_DAILY_CLUE_MUTATION, {
7657
+ const [updateDailyClueGame, { loading, error }] = useMutation19(UPDATE_DAILY_CLUE_MUTATION, {
7530
7658
  awaitRefetchQueries: true,
7531
7659
  refetchQueries: (mutationResult) => {
7532
7660
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -7543,7 +7671,7 @@ var useUpdateDailyClueGame = () => {
7543
7671
  return { error, loading, updateDailyClueGame };
7544
7672
  };
7545
7673
  var useUpdatePuzzleGame = () => {
7546
- const [updatePuzzleGame, { loading, error }] = useMutation18(UPDATE_PUZZLE_GAME_MUTATION, {
7674
+ const [updatePuzzleGame, { loading, error }] = useMutation19(UPDATE_PUZZLE_GAME_MUTATION, {
7547
7675
  awaitRefetchQueries: true,
7548
7676
  refetchQueries: (mutationResult) => {
7549
7677
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -7561,16 +7689,16 @@ var useUpdatePuzzleGame = () => {
7561
7689
  };
7562
7690
 
7563
7691
  // src/graphql/hooks/game/hooksQuery.ts
7564
- import { useQuery as useQuery13 } from "@apollo/client";
7692
+ import { useQuery as useQuery14 } from "@apollo/client";
7565
7693
  var useGetGames = () => {
7566
- const { loading, error, data, refetch } = useQuery13(GET_GAMES, {
7694
+ const { loading, error, data, refetch } = useQuery14(GET_GAMES, {
7567
7695
  fetchPolicy: "network-only"
7568
7696
  });
7569
7697
  const games = data?.games || [];
7570
7698
  return { error, games, loading, refetch };
7571
7699
  };
7572
7700
  var useGetGame = (_id) => {
7573
- const { loading, error, data, refetch } = useQuery13(GET_GAME, {
7701
+ const { loading, error, data, refetch } = useQuery14(GET_GAME, {
7574
7702
  fetchPolicy: "network-only",
7575
7703
  skip: !_id,
7576
7704
  variables: _id ? { _id } : void 0
@@ -7579,7 +7707,7 @@ var useGetGame = (_id) => {
7579
7707
  return { error, game, loading, refetch };
7580
7708
  };
7581
7709
  var useGetGameLeaderboard = () => {
7582
- const { loading, error, data, refetch } = useQuery13(GET_GAME_LEADERBOARD, {
7710
+ const { loading, error, data, refetch } = useQuery14(GET_GAME_LEADERBOARD, {
7583
7711
  fetchPolicy: "network-only"
7584
7712
  });
7585
7713
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -7587,14 +7715,14 @@ var useGetGameLeaderboard = () => {
7587
7715
  };
7588
7716
 
7589
7717
  // src/graphql/hooks/school/hooksMutation.ts
7590
- import { useMutation as useMutation19 } from "@apollo/client";
7718
+ import { useMutation as useMutation20 } from "@apollo/client";
7591
7719
 
7592
7720
  // src/graphql/mutations/school.ts
7593
- import { gql as gql39 } from "@apollo/client";
7721
+ import { gql as gql41 } from "@apollo/client";
7594
7722
 
7595
7723
  // src/graphql/queries/school.ts
7596
- import { gql as gql38 } from "@apollo/client";
7597
- var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql38`
7724
+ import { gql as gql40 } from "@apollo/client";
7725
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql40`
7598
7726
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
7599
7727
  _id
7600
7728
  active
@@ -7607,14 +7735,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql38`
7607
7735
  }
7608
7736
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
7609
7737
  `;
7610
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = gql38`
7738
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = gql40`
7611
7739
  fragment SchoolCampaignFields on SchoolCampaignType {
7612
7740
  endDate
7613
7741
  name
7614
7742
  startDate
7615
7743
  }
7616
7744
  `;
7617
- var SCHOOL = gql38`
7745
+ var SCHOOL = gql40`
7618
7746
  fragment SchoolFields on SchoolType {
7619
7747
  _id
7620
7748
  active
@@ -7658,7 +7786,7 @@ var SCHOOL = gql38`
7658
7786
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
7659
7787
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
7660
7788
  `;
7661
- var GET_SCHOOL = gql38`
7789
+ var GET_SCHOOL = gql40`
7662
7790
  query getSchool($_id: ID!) {
7663
7791
  school(_id: $_id) {
7664
7792
  school {
@@ -7672,7 +7800,7 @@ var GET_SCHOOL = gql38`
7672
7800
  ${SCHOOL}
7673
7801
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
7674
7802
  `;
7675
- var GET_SCHOOLS = gql38`
7803
+ var GET_SCHOOLS = gql40`
7676
7804
  query getSchools {
7677
7805
  schools {
7678
7806
  ...SchoolFields
@@ -7682,7 +7810,7 @@ var GET_SCHOOLS = gql38`
7682
7810
  `;
7683
7811
 
7684
7812
  // src/graphql/mutations/school.ts
7685
- var CREATE_SCHOOL_MUTATION = gql39`
7813
+ var CREATE_SCHOOL_MUTATION = gql41`
7686
7814
  mutation createSchool($input: SchoolInputType!) {
7687
7815
  createSchool(input: $input) {
7688
7816
  data {
@@ -7693,7 +7821,7 @@ var CREATE_SCHOOL_MUTATION = gql39`
7693
7821
  }
7694
7822
  ${SCHOOL}
7695
7823
  `;
7696
- var UPDATE_SCHOOL_MUTATION = gql39`
7824
+ var UPDATE_SCHOOL_MUTATION = gql41`
7697
7825
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
7698
7826
  updateSchool(_id: $_id, input: $input) {
7699
7827
  data {
@@ -7704,7 +7832,7 @@ var UPDATE_SCHOOL_MUTATION = gql39`
7704
7832
  }
7705
7833
  ${SCHOOL}
7706
7834
  `;
7707
- var DELETE_SCHOOL_MUTATION = gql39`
7835
+ var DELETE_SCHOOL_MUTATION = gql41`
7708
7836
  mutation deleteSchool($_id: ID!) {
7709
7837
  deleteSchool(_id: $_id) {
7710
7838
  data
@@ -7712,7 +7840,7 @@ var DELETE_SCHOOL_MUTATION = gql39`
7712
7840
  }
7713
7841
  }
7714
7842
  `;
7715
- var REQUEST_MARKETING_MATERIAL_MUTATION = gql39`
7843
+ var REQUEST_MARKETING_MATERIAL_MUTATION = gql41`
7716
7844
  mutation requestMarketingMaterial(
7717
7845
  $input: MarketingMaterialRequestInputType!
7718
7846
  ) {
@@ -7725,35 +7853,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = gql39`
7725
7853
 
7726
7854
  // src/graphql/hooks/school/hooksMutation.ts
7727
7855
  var useCreateSchool = () => {
7728
- const [createSchool, { loading, error }] = useMutation19(CREATE_SCHOOL_MUTATION, {
7856
+ const [createSchool, { loading, error }] = useMutation20(CREATE_SCHOOL_MUTATION, {
7729
7857
  awaitRefetchQueries: true,
7730
7858
  refetchQueries: [{ query: GET_SCHOOLS }]
7731
7859
  });
7732
7860
  return { createSchool, error, loading };
7733
7861
  };
7734
7862
  var useUpdateSchool = () => {
7735
- const [updateSchool, { loading, error }] = useMutation19(UPDATE_SCHOOL_MUTATION, {
7863
+ const [updateSchool, { loading, error }] = useMutation20(UPDATE_SCHOOL_MUTATION, {
7736
7864
  awaitRefetchQueries: true,
7737
7865
  refetchQueries: [{ query: GET_SCHOOLS }]
7738
7866
  });
7739
7867
  return { error, loading, updateSchool };
7740
7868
  };
7741
7869
  var useDeleteSchool = () => {
7742
- const [deleteSchool, { loading, error }] = useMutation19(DELETE_SCHOOL_MUTATION, {
7870
+ const [deleteSchool, { loading, error }] = useMutation20(DELETE_SCHOOL_MUTATION, {
7743
7871
  awaitRefetchQueries: true,
7744
7872
  refetchQueries: [{ query: GET_SCHOOLS }]
7745
7873
  });
7746
7874
  return { deleteSchool, error, loading };
7747
7875
  };
7748
7876
  var useRequestMarketingMaterial = () => {
7749
- const [requestMarketingMaterial, { loading, error }] = useMutation19(REQUEST_MARKETING_MATERIAL_MUTATION);
7877
+ const [requestMarketingMaterial, { loading, error }] = useMutation20(REQUEST_MARKETING_MATERIAL_MUTATION);
7750
7878
  return { error, loading, requestMarketingMaterial };
7751
7879
  };
7752
7880
 
7753
7881
  // src/graphql/hooks/school/hooksQuery.ts
7754
- import { useQuery as useQuery14 } from "@apollo/client";
7882
+ import { useQuery as useQuery15 } from "@apollo/client";
7755
7883
  var useGetSchools = () => {
7756
- const { data, loading, error, refetch } = useQuery14(
7884
+ const { data, loading, error, refetch } = useQuery15(
7757
7885
  GET_SCHOOLS,
7758
7886
  {
7759
7887
  fetchPolicy: "network-only"
@@ -7767,7 +7895,7 @@ var useGetSchools = () => {
7767
7895
  };
7768
7896
  };
7769
7897
  var useGetSchool = (_id) => {
7770
- const { data, loading, error, refetch } = useQuery14(GET_SCHOOL, {
7898
+ const { data, loading, error, refetch } = useQuery15(GET_SCHOOL, {
7771
7899
  fetchPolicy: "network-only",
7772
7900
  skip: !_id,
7773
7901
  variables: { _id }
@@ -7781,11 +7909,11 @@ var useGetSchool = (_id) => {
7781
7909
  };
7782
7910
 
7783
7911
  // src/graphql/hooks/affiliate/hooksQuery.ts
7784
- import { useQuery as useQuery15 } from "@apollo/client";
7912
+ import { useQuery as useQuery16 } from "@apollo/client";
7785
7913
 
7786
7914
  // src/graphql/queries/affiliate.ts
7787
- import { gql as gql40 } from "@apollo/client";
7788
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = gql40`
7915
+ import { gql as gql42 } from "@apollo/client";
7916
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = gql42`
7789
7917
  fragment AffiliateRewardFields on AffiliateRewardType {
7790
7918
  createdAt
7791
7919
  redeemedAt
@@ -7794,7 +7922,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = gql40`
7794
7922
  rewardValue
7795
7923
  }
7796
7924
  `;
7797
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql40`
7925
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql42`
7798
7926
  fragment AffiliateResourceFields on AffiliateResourceType {
7799
7927
  resourceActive
7800
7928
  resourceDeletedAt
@@ -7811,13 +7939,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql40`
7811
7939
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
7812
7940
  ${OWNER_FIELDS_FRAGMENT}
7813
7941
  `;
7814
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = gql40`
7942
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = gql42`
7815
7943
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
7816
7944
  accountHolderName
7817
7945
  accountNumber
7818
7946
  }
7819
7947
  `;
7820
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql40`
7948
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql42`
7821
7949
  fragment AffiliateDetailsFields on AffiliateDetailsType {
7822
7950
  bankAccountDetails {
7823
7951
  ...AffiliateBankAccountDetailsFields
@@ -7845,7 +7973,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = gql40`
7845
7973
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
7846
7974
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
7847
7975
  `;
7848
- var AFFILIATE_FIELDS_FRAGMENT = gql40`
7976
+ var AFFILIATE_FIELDS_FRAGMENT = gql42`
7849
7977
  fragment AffiliateFields on AffiliateType {
7850
7978
  _id
7851
7979
  active
@@ -7877,7 +8005,7 @@ var AFFILIATE_FIELDS_FRAGMENT = gql40`
7877
8005
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
7878
8006
  ${OWNER_FIELDS_FRAGMENT}
7879
8007
  `;
7880
- var GET_AFFILIATE = gql40`
8008
+ var GET_AFFILIATE = gql42`
7881
8009
  query getAffiliate($_id: ID!) {
7882
8010
  affiliate(_id: $_id) {
7883
8011
  ...AffiliateFields
@@ -7885,7 +8013,7 @@ var GET_AFFILIATE = gql40`
7885
8013
  }
7886
8014
  ${AFFILIATE_FIELDS_FRAGMENT}
7887
8015
  `;
7888
- var GET_AFFILIATES = gql40`
8016
+ var GET_AFFILIATES = gql42`
7889
8017
  query getAffiliates {
7890
8018
  affiliates {
7891
8019
  ...AffiliateFields
@@ -7896,7 +8024,7 @@ var GET_AFFILIATES = gql40`
7896
8024
 
7897
8025
  // src/graphql/hooks/affiliate/hooksQuery.ts
7898
8026
  var useGetAffiliate = (_id) => {
7899
- const { data, loading, error, refetch } = useQuery15(GET_AFFILIATE, {
8027
+ const { data, loading, error, refetch } = useQuery16(GET_AFFILIATE, {
7900
8028
  fetchPolicy: "network-only",
7901
8029
  skip: !_id || _id === "",
7902
8030
  variables: { _id }
@@ -7910,7 +8038,7 @@ var useGetAffiliate = (_id) => {
7910
8038
  };
7911
8039
  };
7912
8040
  var useGetAffiliates = () => {
7913
- const { data, loading, error, refetch } = useQuery15(GET_AFFILIATES, {
8041
+ const { data, loading, error, refetch } = useQuery16(GET_AFFILIATES, {
7914
8042
  fetchPolicy: "network-only"
7915
8043
  });
7916
8044
  const affiliates = data?.affiliates || [];
@@ -7923,11 +8051,11 @@ var useGetAffiliates = () => {
7923
8051
  };
7924
8052
 
7925
8053
  // src/graphql/hooks/affiliate/hooksMutation.ts
7926
- import { useMutation as useMutation20 } from "@apollo/client";
8054
+ import { useMutation as useMutation21 } from "@apollo/client";
7927
8055
 
7928
8056
  // src/graphql/mutations/affiliate.ts
7929
- import { gql as gql41 } from "@apollo/client";
7930
- var CREATE_AFFILIATE_MUTATION = gql41`
8057
+ import { gql as gql43 } from "@apollo/client";
8058
+ var CREATE_AFFILIATE_MUTATION = gql43`
7931
8059
  mutation createAffiliate($input: AffiliateDetailsInputType!) {
7932
8060
  createAffiliate(input: $input) {
7933
8061
  data {
@@ -7938,7 +8066,7 @@ var CREATE_AFFILIATE_MUTATION = gql41`
7938
8066
  }
7939
8067
  ${AFFILIATE_FIELDS_FRAGMENT}
7940
8068
  `;
7941
- var UPDATE_AFFILIATE_DETAILS_MUTATION = gql41`
8069
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = gql43`
7942
8070
  mutation updateAffiliateDetails(
7943
8071
  $input: AffiliateDetailsInputType!
7944
8072
  $affiliateId: ID!
@@ -7952,7 +8080,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = gql41`
7952
8080
  }
7953
8081
  ${AFFILIATE_FIELDS_FRAGMENT}
7954
8082
  `;
7955
- var DELETE_AFFILIATE_MUTATION = gql41`
8083
+ var DELETE_AFFILIATE_MUTATION = gql43`
7956
8084
  mutation deleteAffiliate($_id: ID!) {
7957
8085
  deleteAffiliate(_id: $_id) {
7958
8086
  data
@@ -7960,7 +8088,7 @@ var DELETE_AFFILIATE_MUTATION = gql41`
7960
8088
  }
7961
8089
  }
7962
8090
  `;
7963
- var REDEEM_AFFILIATE_REWARD_MUTATION = gql41`
8091
+ var REDEEM_AFFILIATE_REWARD_MUTATION = gql43`
7964
8092
  mutation redeemAffiliateReward($affiliateId: ID!) {
7965
8093
  redeemAffiliateReward(affiliateId: $affiliateId) {
7966
8094
  data {
@@ -7971,7 +8099,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = gql41`
7971
8099
  }
7972
8100
  ${AFFILIATE_FIELDS_FRAGMENT}
7973
8101
  `;
7974
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = gql41`
8102
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = gql43`
7975
8103
  mutation assignAffiliateResourceReward(
7976
8104
  $affiliateId: ID!
7977
8105
  $resourceId: ID!
@@ -7992,7 +8120,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = gql41`
7992
8120
  }
7993
8121
  ${AFFILIATE_FIELDS_FRAGMENT}
7994
8122
  `;
7995
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = gql41`
8123
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = gql43`
7996
8124
  mutation assignAffiliateBonusReward(
7997
8125
  $affiliateId: ID!
7998
8126
  $rewardType: AffiliateRewardEnumType!
@@ -8012,7 +8140,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = gql41`
8012
8140
 
8013
8141
  // src/graphql/hooks/affiliate/hooksMutation.ts
8014
8142
  var useCreateAffiliate = () => {
8015
- const [createAffiliate, { loading, error }] = useMutation20(CREATE_AFFILIATE_MUTATION, {
8143
+ const [createAffiliate, { loading, error }] = useMutation21(CREATE_AFFILIATE_MUTATION, {
8016
8144
  awaitRefetchQueries: true,
8017
8145
  refetchQueries: (mutationResult) => {
8018
8146
  const affiliateId = mutationResult?.data?.createAffiliate?.data?._id;
@@ -8023,7 +8151,7 @@ var useCreateAffiliate = () => {
8023
8151
  return { createAffiliate, error, loading };
8024
8152
  };
8025
8153
  var useUpdateAffiliateDetails = () => {
8026
- const [updateAffiliateDetails, { loading, error }] = useMutation20(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8154
+ const [updateAffiliateDetails, { loading, error }] = useMutation21(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8027
8155
  awaitRefetchQueries: true,
8028
8156
  refetchQueries: (mutationResult) => {
8029
8157
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -8034,14 +8162,14 @@ var useUpdateAffiliateDetails = () => {
8034
8162
  return { error, loading, updateAffiliateDetails };
8035
8163
  };
8036
8164
  var useDeleteAffiliate = () => {
8037
- const [deleteAffiliate, { loading, error }] = useMutation20(DELETE_AFFILIATE_MUTATION, {
8165
+ const [deleteAffiliate, { loading, error }] = useMutation21(DELETE_AFFILIATE_MUTATION, {
8038
8166
  awaitRefetchQueries: true,
8039
8167
  refetchQueries: [{ query: GET_AFFILIATES }]
8040
8168
  });
8041
8169
  return { deleteAffiliate, error, loading };
8042
8170
  };
8043
8171
  var useRedeemAffiliateReward = () => {
8044
- const [redeemAffiliateReward, { loading, error }] = useMutation20(REDEEM_AFFILIATE_REWARD_MUTATION, {
8172
+ const [redeemAffiliateReward, { loading, error }] = useMutation21(REDEEM_AFFILIATE_REWARD_MUTATION, {
8045
8173
  awaitRefetchQueries: true,
8046
8174
  refetchQueries: (mutationResult) => {
8047
8175
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -8052,7 +8180,7 @@ var useRedeemAffiliateReward = () => {
8052
8180
  return { error, loading, redeemAffiliateReward };
8053
8181
  };
8054
8182
  var useAssignAffiliateResourceReward = () => {
8055
- const [assignAffiliateResourceReward, { loading, error }] = useMutation20(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8183
+ const [assignAffiliateResourceReward, { loading, error }] = useMutation21(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8056
8184
  awaitRefetchQueries: true,
8057
8185
  refetchQueries: (mutationResult) => {
8058
8186
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -8063,7 +8191,7 @@ var useAssignAffiliateResourceReward = () => {
8063
8191
  return { assignAffiliateResourceReward, error, loading };
8064
8192
  };
8065
8193
  var useAssignAffiliateBonusReward = () => {
8066
- const [assignAffiliateBonusReward, { loading, error }] = useMutation20(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8194
+ const [assignAffiliateBonusReward, { loading, error }] = useMutation21(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8067
8195
  awaitRefetchQueries: true,
8068
8196
  refetchQueries: (mutationResult) => {
8069
8197
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -8075,14 +8203,14 @@ var useAssignAffiliateBonusReward = () => {
8075
8203
  };
8076
8204
 
8077
8205
  // src/graphql/hooks/coupon/hooksMutation.ts
8078
- import { useMutation as useMutation21 } from "@apollo/client";
8206
+ import { useMutation as useMutation22 } from "@apollo/client";
8079
8207
 
8080
8208
  // src/graphql/mutations/coupon.ts
8081
- import { gql as gql43 } from "@apollo/client";
8209
+ import { gql as gql45 } from "@apollo/client";
8082
8210
 
8083
8211
  // src/graphql/queries/coupon.ts
8084
- import { gql as gql42 } from "@apollo/client";
8085
- var COUPON_CODE_FIELDS_FRAGMENT = gql42`
8212
+ import { gql as gql44 } from "@apollo/client";
8213
+ var COUPON_CODE_FIELDS_FRAGMENT = gql44`
8086
8214
  fragment CouponCodeFields on CouponCodeType {
8087
8215
  code
8088
8216
  qrCode {
@@ -8094,7 +8222,7 @@ var COUPON_CODE_FIELDS_FRAGMENT = gql42`
8094
8222
  }
8095
8223
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8096
8224
  `;
8097
- var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = gql42`
8225
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = gql44`
8098
8226
  fragment CouponParticipantUserFields on CouponParticipantUserType {
8099
8227
  couponCollectedCount
8100
8228
  couponRedeemedAt
@@ -8106,7 +8234,7 @@ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = gql42`
8106
8234
  nickName
8107
8235
  }
8108
8236
  `;
8109
- var COUPON_OPTION_FIELDS_FRAGMENT = gql42`
8237
+ var COUPON_OPTION_FIELDS_FRAGMENT = gql44`
8110
8238
  fragment CouponOptionFields on CouponOptionType {
8111
8239
  type
8112
8240
  buy
@@ -8116,7 +8244,7 @@ var COUPON_OPTION_FIELDS_FRAGMENT = gql42`
8116
8244
  maxRewardCount
8117
8245
  }
8118
8246
  `;
8119
- var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = gql42`
8247
+ var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = gql44`
8120
8248
  fragment CouponVendorProductFields on CouponVendorProductType {
8121
8249
  couponId
8122
8250
  vendorId
@@ -8124,7 +8252,7 @@ var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = gql42`
8124
8252
  vendorCouponId
8125
8253
  }
8126
8254
  `;
8127
- var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = gql42`
8255
+ var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = gql44`
8128
8256
  fragment CouponDataProductsFields on CouponDataProductsType {
8129
8257
  active
8130
8258
  couponId
@@ -8140,7 +8268,7 @@ var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = gql42`
8140
8268
  ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
8141
8269
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8142
8270
  `;
8143
- var COUPON_DATA_FIELDS_FRAGMENT = gql42`
8271
+ var COUPON_DATA_FIELDS_FRAGMENT = gql44`
8144
8272
  fragment CouponDataFields on CouponDataType {
8145
8273
  _id
8146
8274
  active
@@ -8174,7 +8302,7 @@ var COUPON_DATA_FIELDS_FRAGMENT = gql42`
8174
8302
  ${COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT}
8175
8303
  ${COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT}
8176
8304
  `;
8177
- var COUPON = gql42`
8305
+ var COUPON = gql44`
8178
8306
  fragment CouponFields on CouponType {
8179
8307
  _id
8180
8308
  active
@@ -8191,7 +8319,7 @@ var COUPON = gql42`
8191
8319
  ${OWNER_FIELDS_FRAGMENT}
8192
8320
  ${COUPON_DATA_FIELDS_FRAGMENT}
8193
8321
  `;
8194
- var GET_COUPONS = gql42`
8322
+ var GET_COUPONS = gql44`
8195
8323
  query getCoupons(
8196
8324
  $region: String
8197
8325
  $category: String
@@ -8226,7 +8354,7 @@ var GET_COUPONS = gql42`
8226
8354
  }
8227
8355
  ${COUPON}
8228
8356
  `;
8229
- var GET_COUPON = gql42`
8357
+ var GET_COUPON = gql44`
8230
8358
  query getCoupon($_id: ID!) {
8231
8359
  coupon(_id: $_id) {
8232
8360
  ...CouponFields
@@ -8236,7 +8364,7 @@ var GET_COUPON = gql42`
8236
8364
  `;
8237
8365
 
8238
8366
  // src/graphql/mutations/coupon.ts
8239
- var CREATE_COUPON_MUTATION = gql43`
8367
+ var CREATE_COUPON_MUTATION = gql45`
8240
8368
  mutation createCoupon($input: CouponInputType!) {
8241
8369
  createCoupon(input: $input) {
8242
8370
  data {
@@ -8247,7 +8375,7 @@ var CREATE_COUPON_MUTATION = gql43`
8247
8375
  }
8248
8376
  ${COUPON}
8249
8377
  `;
8250
- var UPDATE_COUPON_MUTATION = gql43`
8378
+ var UPDATE_COUPON_MUTATION = gql45`
8251
8379
  mutation updateCoupon(
8252
8380
  $couponDocumentId: ID!
8253
8381
  $couponId: ID!
@@ -8266,7 +8394,7 @@ var UPDATE_COUPON_MUTATION = gql43`
8266
8394
  }
8267
8395
  ${COUPON}
8268
8396
  `;
8269
- var DELETE_COUPON_MUTATION = gql43`
8397
+ var DELETE_COUPON_MUTATION = gql45`
8270
8398
  mutation deleteCoupon($input: ProductCouponInputType!) {
8271
8399
  deleteCoupon(input: $input) {
8272
8400
  data
@@ -8274,7 +8402,7 @@ var DELETE_COUPON_MUTATION = gql43`
8274
8402
  }
8275
8403
  }
8276
8404
  `;
8277
- var SCAN_COUPON_MUTATION = gql43`
8405
+ var SCAN_COUPON_MUTATION = gql45`
8278
8406
  mutation scanCoupon($input: ProductCouponInputType!) {
8279
8407
  scanCoupon(input: $input) {
8280
8408
  data
@@ -8282,7 +8410,7 @@ var SCAN_COUPON_MUTATION = gql43`
8282
8410
  }
8283
8411
  }
8284
8412
  `;
8285
- var REWARD_COUPON_MUTATION = gql43`
8413
+ var REWARD_COUPON_MUTATION = gql45`
8286
8414
  mutation rewardCoupon($input: ProductCouponInputType!, $userId: ID!) {
8287
8415
  rewardCoupon(input: $input, userId: $userId) {
8288
8416
  data
@@ -8293,32 +8421,32 @@ var REWARD_COUPON_MUTATION = gql43`
8293
8421
 
8294
8422
  // src/graphql/hooks/coupon/hooksMutation.ts
8295
8423
  var useCreateCoupon = () => {
8296
- const [createCoupon, { loading, error }] = useMutation21(CREATE_COUPON_MUTATION, {
8424
+ const [createCoupon, { loading, error }] = useMutation22(CREATE_COUPON_MUTATION, {
8297
8425
  awaitRefetchQueries: true,
8298
8426
  refetchQueries: [GET_COUPONS]
8299
8427
  });
8300
8428
  return { createCoupon, error, loading };
8301
8429
  };
8302
8430
  var useUpdateCoupon = () => {
8303
- const [updateCoupon, { loading, error }] = useMutation21(UPDATE_COUPON_MUTATION, {
8431
+ const [updateCoupon, { loading, error }] = useMutation22(UPDATE_COUPON_MUTATION, {
8304
8432
  awaitRefetchQueries: true,
8305
8433
  refetchQueries: [GET_COUPONS]
8306
8434
  });
8307
8435
  return { error, loading, updateCoupon };
8308
8436
  };
8309
8437
  var useDeleteCoupon = () => {
8310
- const [deleteCoupon, { loading, error }] = useMutation21(DELETE_COUPON_MUTATION, {
8438
+ const [deleteCoupon, { loading, error }] = useMutation22(DELETE_COUPON_MUTATION, {
8311
8439
  awaitRefetchQueries: true,
8312
8440
  refetchQueries: [GET_COUPONS]
8313
8441
  });
8314
8442
  return { deleteCoupon, error, loading };
8315
8443
  };
8316
8444
  var useScanCoupon = () => {
8317
- const [scanCoupon, { loading, error }] = useMutation21(SCAN_COUPON_MUTATION);
8445
+ const [scanCoupon, { loading, error }] = useMutation22(SCAN_COUPON_MUTATION);
8318
8446
  return { error, loading, scanCoupon };
8319
8447
  };
8320
8448
  var useRewardCoupon = () => {
8321
- const [rewardCoupon, { loading, error }] = useMutation21(REWARD_COUPON_MUTATION, {
8449
+ const [rewardCoupon, { loading, error }] = useMutation22(REWARD_COUPON_MUTATION, {
8322
8450
  awaitRefetchQueries: true,
8323
8451
  refetchQueries: [GET_COUPONS]
8324
8452
  });
@@ -8326,9 +8454,9 @@ var useRewardCoupon = () => {
8326
8454
  };
8327
8455
 
8328
8456
  // src/graphql/hooks/coupon/hooksQuery.ts
8329
- import { useQuery as useQuery16 } from "@apollo/client";
8457
+ import { useQuery as useQuery17 } from "@apollo/client";
8330
8458
  var useGetCoupons = (variables) => {
8331
- const { loading, error, data, refetch } = useQuery16(GET_COUPONS, {
8459
+ const { loading, error, data, refetch } = useQuery17(GET_COUPONS, {
8332
8460
  fetchPolicy: "network-only",
8333
8461
  variables
8334
8462
  });
@@ -8340,7 +8468,7 @@ var useGetCoupons = (variables) => {
8340
8468
  return { coupons, error, loading, refetch };
8341
8469
  };
8342
8470
  var useGetCoupon = (_id) => {
8343
- const { loading, error, data, refetch } = useQuery16(GET_COUPON, {
8471
+ const { loading, error, data, refetch } = useQuery17(GET_COUPON, {
8344
8472
  fetchPolicy: "network-only",
8345
8473
  skip: !_id || _id === "",
8346
8474
  variables: { _id }
@@ -8909,6 +9037,9 @@ export {
8909
9037
  AFFILIATE_PARTICIPANT_TYPE_LABELS,
8910
9038
  AFFILIATE_REWARDS,
8911
9039
  ANDROID_URL,
9040
+ BILLING_CATALOG_CURRENCY,
9041
+ BILLING_CATALOG_DEFINITIONS,
9042
+ BILLING_CATALOG_KEYS,
8912
9043
  CLUEMART_MAIN_DOMAIN_URL,
8913
9044
  CM_AFFILIATE_PROMO_CODE,
8914
9045
  CM_SCHOOL_PROMO_CODE,
@@ -8966,6 +9097,7 @@ export {
8966
9097
  GET_VENDOR_BY_SLUG,
8967
9098
  GET_VENDOR_INFO,
8968
9099
  IMAGE_EXTENSION,
9100
+ INITIAL_BILLING_CATALOG,
8969
9101
  IOS_URL,
8970
9102
  ImageTypeEnum,
8971
9103
  KNOWN_EVENT_SCHEDULE_STATUSES,
@@ -9027,6 +9159,7 @@ export {
9027
9159
  badgeIds,
9028
9160
  badges,
9029
9161
  bankAccountDetailsFields,
9162
+ billingCatalogDefinitionMatches,
9030
9163
  buildApplicationShareDescription,
9031
9164
  buildCalendarSheetContentData,
9032
9165
  buildFacebookShareQuote,
@@ -9095,6 +9228,7 @@ export {
9095
9228
  gameScreenIdentifierList,
9096
9229
  gameTypeToDisplayName,
9097
9230
  getAllowedEventDateStatuses,
9231
+ getBillingCatalogKeyForSelection,
9098
9232
  getCurrentAndFutureDates,
9099
9233
  getDefaultAdminHome,
9100
9234
  getErrorMessage,
@@ -9247,6 +9381,7 @@ export {
9247
9381
  useGetAffiliate,
9248
9382
  useGetAffiliates,
9249
9383
  useGetAppSettings,
9384
+ useGetBillingCatalog,
9250
9385
  useGetChat,
9251
9386
  useGetChatSubscription,
9252
9387
  useGetChatsByRegion,
@@ -9325,15 +9460,16 @@ export {
9325
9460
  useSearchEvents,
9326
9461
  useSearchPartners,
9327
9462
  useSearchVendors,
9328
- useSelectPackage,
9329
9463
  useSelectStandardPackage,
9330
9464
  useSendChatMessage,
9331
9465
  useStartGame,
9466
+ useSyncBillingCatalogPrice,
9332
9467
  useToggleChatMessageLike,
9333
9468
  useUnlinkUnregisteredVendorByInviterId,
9334
9469
  useUpdateAd,
9335
9470
  useUpdateAffiliateDetails,
9336
9471
  useUpdateAppSettings,
9472
+ useUpdateBillingCatalogPrice,
9337
9473
  useUpdateCoupon,
9338
9474
  useUpdateDailyClueGame,
9339
9475
  useUpdateEvent,