@timardex/cluemart-shared 1.7.89 → 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 (66) 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-VMBAS4XH.mjs → chunk-D3U4LBOQ.mjs} +88 -4
  13. package/dist/chunk-D3U4LBOQ.mjs.map +1 -0
  14. package/dist/{chunk-JECW5GUI.mjs → chunk-JAIBL6IU.mjs} +2 -2
  15. package/dist/{chunk-F6O72A6T.mjs → chunk-JX7Q5EI4.mjs} +3 -3
  16. package/dist/{chunk-N2YXGFSZ.mjs → chunk-P4NLBWEJ.mjs} +1 -2
  17. package/dist/{chunk-N2YXGFSZ.mjs.map → chunk-P4NLBWEJ.mjs.map} +1 -1
  18. package/dist/{chunk-364EX22V.mjs → chunk-TD52IH52.mjs} +1 -1
  19. package/dist/chunk-TD52IH52.mjs.map +1 -0
  20. package/dist/{chunk-MOVX7LKH.mjs → chunk-YRO6KEZG.mjs} +2 -2
  21. package/dist/enums/index.cjs +0 -1
  22. package/dist/enums/index.cjs.map +1 -1
  23. package/dist/enums/index.d.mts +1 -2
  24. package/dist/enums/index.d.ts +1 -2
  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 +281 -138
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.mts +104 -22
  42. package/dist/index.d.ts +104 -22
  43. package/dist/index.mjs +272 -137
  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-M3R2UY5Z.mjs.map +0 -1
  63. package/dist/chunk-VMBAS4XH.mjs.map +0 -1
  64. /package/dist/{chunk-JECW5GUI.mjs.map → chunk-JAIBL6IU.mjs.map} +0 -0
  65. /package/dist/{chunk-F6O72A6T.mjs.map → chunk-JX7Q5EI4.mjs.map} +0 -0
  66. /package/dist/{chunk-MOVX7LKH.mjs.map → chunk-YRO6KEZG.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -36,6 +36,9 @@ __export(index_exports, {
36
36
  AFFILIATE_PARTICIPANT_TYPE_LABELS: () => AFFILIATE_PARTICIPANT_TYPE_LABELS,
37
37
  AFFILIATE_REWARDS: () => AFFILIATE_REWARDS,
38
38
  ANDROID_URL: () => ANDROID_URL,
39
+ BILLING_CATALOG_CURRENCY: () => BILLING_CATALOG_CURRENCY,
40
+ BILLING_CATALOG_DEFINITIONS: () => BILLING_CATALOG_DEFINITIONS,
41
+ BILLING_CATALOG_KEYS: () => BILLING_CATALOG_KEYS,
39
42
  CLUEMART_MAIN_DOMAIN_URL: () => CLUEMART_MAIN_DOMAIN_URL,
40
43
  CM_AFFILIATE_PROMO_CODE: () => CM_AFFILIATE_PROMO_CODE,
41
44
  CM_SCHOOL_PROMO_CODE: () => CM_SCHOOL_PROMO_CODE,
@@ -93,6 +96,7 @@ __export(index_exports, {
93
96
  GET_VENDOR_BY_SLUG: () => GET_VENDOR_BY_SLUG,
94
97
  GET_VENDOR_INFO: () => GET_VENDOR_INFO,
95
98
  IMAGE_EXTENSION: () => IMAGE_EXTENSION,
99
+ INITIAL_BILLING_CATALOG: () => INITIAL_BILLING_CATALOG,
96
100
  IOS_URL: () => IOS_URL,
97
101
  ImageTypeEnum: () => ImageTypeEnum,
98
102
  KNOWN_EVENT_SCHEDULE_STATUSES: () => KNOWN_EVENT_SCHEDULE_STATUSES,
@@ -154,6 +158,7 @@ __export(index_exports, {
154
158
  badgeIds: () => badgeIds,
155
159
  badges: () => badges,
156
160
  bankAccountDetailsFields: () => bankAccountDetailsFields,
161
+ billingCatalogDefinitionMatches: () => billingCatalogDefinitionMatches,
157
162
  buildApplicationShareDescription: () => buildApplicationShareDescription,
158
163
  buildCalendarSheetContentData: () => buildCalendarSheetContentData,
159
164
  buildFacebookShareQuote: () => buildFacebookShareQuote,
@@ -222,6 +227,7 @@ __export(index_exports, {
222
227
  gameScreenIdentifierList: () => gameScreenIdentifierList,
223
228
  gameTypeToDisplayName: () => gameTypeToDisplayName,
224
229
  getAllowedEventDateStatuses: () => getAllowedEventDateStatuses,
230
+ getBillingCatalogKeyForSelection: () => getBillingCatalogKeyForSelection,
225
231
  getCurrentAndFutureDates: () => getCurrentAndFutureDates,
226
232
  getDefaultAdminHome: () => getDefaultAdminHome,
227
233
  getErrorMessage: () => getErrorMessage,
@@ -374,6 +380,7 @@ __export(index_exports, {
374
380
  useGetAffiliate: () => useGetAffiliate,
375
381
  useGetAffiliates: () => useGetAffiliates,
376
382
  useGetAppSettings: () => useGetAppSettings,
383
+ useGetBillingCatalog: () => useGetBillingCatalog,
377
384
  useGetChat: () => useGetChat,
378
385
  useGetChatSubscription: () => useGetChatSubscription,
379
386
  useGetChatsByRegion: () => useGetChatsByRegion,
@@ -452,15 +459,16 @@ __export(index_exports, {
452
459
  useSearchEvents: () => useSearchEvents,
453
460
  useSearchPartners: () => useSearchPartners,
454
461
  useSearchVendors: () => useSearchVendors,
455
- useSelectPackage: () => useSelectPackage,
456
462
  useSelectStandardPackage: () => useSelectStandardPackage,
457
463
  useSendChatMessage: () => useSendChatMessage,
458
464
  useStartGame: () => useStartGame,
465
+ useSyncBillingCatalogPrice: () => useSyncBillingCatalogPrice,
459
466
  useToggleChatMessageLike: () => useToggleChatMessageLike,
460
467
  useUnlinkUnregisteredVendorByInviterId: () => useUnlinkUnregisteredVendorByInviterId,
461
468
  useUpdateAd: () => useUpdateAd,
462
469
  useUpdateAffiliateDetails: () => useUpdateAffiliateDetails,
463
470
  useUpdateAppSettings: () => useUpdateAppSettings,
471
+ useUpdateBillingCatalogPrice: () => useUpdateBillingCatalogPrice,
464
472
  useUpdateCoupon: () => useUpdateCoupon,
465
473
  useUpdateDailyClueGame: () => useUpdateDailyClueGame,
466
474
  useUpdateEvent: () => useUpdateEvent,
@@ -744,7 +752,6 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus2) => {
744
752
  var EnumBillingPeriod = /* @__PURE__ */ ((EnumBillingPeriod2) => {
745
753
  EnumBillingPeriod2["MONTHLY_CANCEL_ANYTIME"] = "monthly_cancel_anytime";
746
754
  EnumBillingPeriod2["YEARLY_ANNUAL_BILLED"] = "yearly_annual_billed";
747
- EnumBillingPeriod2["YEARLY_MONTHLY_BILLED"] = "yearly_monthly_billed";
748
755
  return EnumBillingPeriod2;
749
756
  })(EnumBillingPeriod || {});
750
757
  var EnumReward = /* @__PURE__ */ ((EnumReward2) => {
@@ -3045,6 +3052,84 @@ function isTransientNetworkError(err) {
3045
3052
  return TRANSIENT_NETWORK_PATTERNS.some((pattern) => pattern.test(message));
3046
3053
  }
3047
3054
 
3055
+ // src/utils/billingCatalog/index.ts
3056
+ var BILLING_CATALOG_KEYS = [
3057
+ "pro_vendor_monthly",
3058
+ "pro_vendor_yearly",
3059
+ "pro_plus_vendor_monthly",
3060
+ "pro_plus_vendor_yearly"
3061
+ ];
3062
+ var BILLING_CATALOG_CURRENCY = "nzd";
3063
+ var BILLING_CATALOG_DEFINITIONS = {
3064
+ pro_plus_vendor_monthly: {
3065
+ billingPeriod: "monthly_cancel_anytime" /* MONTHLY_CANCEL_ANYTIME */,
3066
+ licenceType: "pro_plus_vendor" /* PRO_PLUS_VENDOR */
3067
+ },
3068
+ pro_plus_vendor_yearly: {
3069
+ billingPeriod: "yearly_annual_billed" /* YEARLY_ANNUAL_BILLED */,
3070
+ licenceType: "pro_plus_vendor" /* PRO_PLUS_VENDOR */
3071
+ },
3072
+ pro_vendor_monthly: {
3073
+ billingPeriod: "monthly_cancel_anytime" /* MONTHLY_CANCEL_ANYTIME */,
3074
+ licenceType: "pro_vendor" /* PRO_VENDOR */
3075
+ },
3076
+ pro_vendor_yearly: {
3077
+ billingPeriod: "yearly_annual_billed" /* YEARLY_ANNUAL_BILLED */,
3078
+ licenceType: "pro_vendor" /* PRO_VENDOR */
3079
+ }
3080
+ };
3081
+ function getBillingCatalogKeyForSelection(licenceType, billingPeriod) {
3082
+ const match = Object.entries(BILLING_CATALOG_DEFINITIONS).find(
3083
+ ([, definition]) => definition.licenceType === licenceType && definition.billingPeriod === billingPeriod
3084
+ );
3085
+ return match?.[0] ?? null;
3086
+ }
3087
+ var INITIAL_BILLING_CATALOG = [
3088
+ {
3089
+ active: true,
3090
+ billingPeriod: "monthly_cancel_anytime" /* MONTHLY_CANCEL_ANYTIME */,
3091
+ currency: BILLING_CATALOG_CURRENCY,
3092
+ key: "pro_vendor_monthly",
3093
+ licenceType: "pro_vendor" /* PRO_VENDOR */,
3094
+ taxInclusive: true,
3095
+ unitAmount: 3999
3096
+ },
3097
+ {
3098
+ active: true,
3099
+ billingPeriod: "yearly_annual_billed" /* YEARLY_ANNUAL_BILLED */,
3100
+ currency: BILLING_CATALOG_CURRENCY,
3101
+ key: "pro_vendor_yearly",
3102
+ licenceType: "pro_vendor" /* PRO_VENDOR */,
3103
+ taxInclusive: true,
3104
+ unitAmount: 40788
3105
+ },
3106
+ {
3107
+ active: true,
3108
+ billingPeriod: "monthly_cancel_anytime" /* MONTHLY_CANCEL_ANYTIME */,
3109
+ currency: BILLING_CATALOG_CURRENCY,
3110
+ key: "pro_plus_vendor_monthly",
3111
+ licenceType: "pro_plus_vendor" /* PRO_PLUS_VENDOR */,
3112
+ taxInclusive: true,
3113
+ unitAmount: 6499
3114
+ },
3115
+ {
3116
+ active: true,
3117
+ billingPeriod: "yearly_annual_billed" /* YEARLY_ANNUAL_BILLED */,
3118
+ currency: BILLING_CATALOG_CURRENCY,
3119
+ key: "pro_plus_vendor_yearly",
3120
+ licenceType: "pro_plus_vendor" /* PRO_PLUS_VENDOR */,
3121
+ taxInclusive: true,
3122
+ unitAmount: 62388
3123
+ }
3124
+ ];
3125
+ function billingCatalogDefinitionMatches(entry) {
3126
+ const definition = BILLING_CATALOG_DEFINITIONS[entry.key];
3127
+ if (!definition) {
3128
+ return false;
3129
+ }
3130
+ return definition.billingPeriod === entry.billingPeriod && definition.licenceType === entry.licenceType;
3131
+ }
3132
+
3048
3133
  // src/utils/toUserFacingErrorMessage.ts
3049
3134
  var DEFAULT_USER_FACING_ERROR = "Something went wrong. Please try again.";
3050
3135
  var NETWORK_USER_FACING_ERROR = "Unable to connect. Please check your internet connection and try again.";
@@ -7364,11 +7449,8 @@ var import_client53 = require("@apollo/client");
7364
7449
  // src/graphql/mutations/stripe.ts
7365
7450
  var import_client52 = require("@apollo/client");
7366
7451
  var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
7367
- mutation createCheckoutSession(
7368
- $planId: LicencesEnumType!
7369
- $billingPeriod: BillingPeriodEnumType
7370
- ) {
7371
- createCheckoutSession(planId: $planId, billingPeriod: $billingPeriod) {
7452
+ mutation createCheckoutSession($input: CreateCheckoutSessionInputType!) {
7453
+ createCheckoutSession(input: $input) {
7372
7454
  data {
7373
7455
  sessionId
7374
7456
  checkoutUrl
@@ -7414,29 +7496,6 @@ var CREATE_CUSTOMER_PORTAL = import_client52.gql`
7414
7496
  }
7415
7497
  }
7416
7498
  `;
7417
- var SELECT_PACKAGE_MUTATION = import_client52.gql`
7418
- mutation selectPackage(
7419
- $billingPeriod: BillingPeriodEnumType
7420
- $selectedLicence: LicencesEnumType!
7421
- $useStripe: Boolean
7422
- ) {
7423
- selectPackage(
7424
- billingPeriod: $billingPeriod
7425
- selectedLicence: $selectedLicence
7426
- useStripe: $useStripe
7427
- ) {
7428
- data {
7429
- checkoutUrl
7430
- licences {
7431
- ...LicenceFields
7432
- }
7433
- userId
7434
- }
7435
- message
7436
- }
7437
- }
7438
- ${LICENCE_FIELDS_FRAGMENT}
7439
- `;
7440
7499
 
7441
7500
  // src/graphql/hooks/stripe/hooksMutation.ts
7442
7501
  var useCreateCheckoutSession = () => {
@@ -7455,21 +7514,6 @@ var useCreateCustomerPortal = () => {
7455
7514
  const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(CREATE_CUSTOMER_PORTAL);
7456
7515
  return { createCustomerPortal, error, loading };
7457
7516
  };
7458
- var useSelectPackage = () => {
7459
- const [selectPackage, { loading, error }] = (0, import_client53.useMutation)(SELECT_PACKAGE_MUTATION, {
7460
- awaitRefetchQueries: true,
7461
- refetchQueries: (mutationResult) => {
7462
- const userId = mutationResult?.data?.selectPackage?.data?.userId;
7463
- if (!userId) return [];
7464
- return [
7465
- { query: GET_USER, variables: { _id: userId } },
7466
- { query: GET_USER_EVENTS },
7467
- { query: GET_USER_VENDORS }
7468
- ];
7469
- }
7470
- });
7471
- return { error, loading, selectPackage };
7472
- };
7473
7517
 
7474
7518
  // src/graphql/hooks/stripe/hooksQuery.ts
7475
7519
  var import_client55 = require("@apollo/client");
@@ -7509,7 +7553,6 @@ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
7509
7553
  }
7510
7554
  }
7511
7555
  isNewUser
7512
- isTester
7513
7556
  appliedDiscountType
7514
7557
  }
7515
7558
  }
@@ -7818,15 +7861,107 @@ var useGetAppSettings = () => {
7818
7861
  return { appSettings, error, loading, refetch };
7819
7862
  };
7820
7863
 
7821
- // src/graphql/hooks/game/hooksMutation.ts
7864
+ // src/graphql/hooks/billingCatalog/hooksMutation.ts
7822
7865
  var import_client68 = require("@apollo/client");
7823
7866
 
7824
- // src/graphql/mutations/game.ts
7867
+ // src/graphql/mutations/billingCatalog.ts
7825
7868
  var import_client67 = require("@apollo/client");
7826
7869
 
7827
- // src/graphql/queries/game/game.ts
7870
+ // src/graphql/queries/billingCatalog.ts
7828
7871
  var import_client66 = require("@apollo/client");
7829
- var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
7872
+ var BILLING_CATALOG_FIELDS_FRAGMENT = import_client66.gql`
7873
+ fragment BillingCatalogFields on BillingCatalogEntryType {
7874
+ _id
7875
+ active
7876
+ billingPeriod
7877
+ createdAt
7878
+ currency
7879
+ effectiveFrom
7880
+ key
7881
+ licenceType
7882
+ revision
7883
+ stripePriceId
7884
+ stripeProductId
7885
+ taxInclusive
7886
+ unitAmount
7887
+ updatedAt
7888
+ updatedBy
7889
+ }
7890
+ `;
7891
+ var GET_BILLING_CATALOG = import_client66.gql`
7892
+ query getBillingCatalog {
7893
+ billingCatalog {
7894
+ ...BillingCatalogFields
7895
+ }
7896
+ }
7897
+ ${BILLING_CATALOG_FIELDS_FRAGMENT}
7898
+ `;
7899
+
7900
+ // src/graphql/mutations/billingCatalog.ts
7901
+ var UPDATE_BILLING_CATALOG_PRICE_MUTATION = import_client67.gql`
7902
+ mutation updateBillingCatalogPrice(
7903
+ $input: UpdateBillingCatalogPriceInputType!
7904
+ ) {
7905
+ updateBillingCatalogPrice(input: $input) {
7906
+ data {
7907
+ ...BillingCatalogFields
7908
+ }
7909
+ message
7910
+ }
7911
+ }
7912
+ ${BILLING_CATALOG_FIELDS_FRAGMENT}
7913
+ `;
7914
+ var SYNC_BILLING_CATALOG_PRICE_MUTATION = import_client67.gql`
7915
+ mutation syncBillingCatalogPrice($input: SyncBillingCatalogPriceInputType!) {
7916
+ syncBillingCatalogPrice(input: $input) {
7917
+ data {
7918
+ ...BillingCatalogFields
7919
+ }
7920
+ message
7921
+ }
7922
+ }
7923
+ ${BILLING_CATALOG_FIELDS_FRAGMENT}
7924
+ `;
7925
+
7926
+ // src/graphql/hooks/billingCatalog/hooksMutation.ts
7927
+ var useUpdateBillingCatalogPrice = () => {
7928
+ const [updateBillingCatalogPrice, { error, loading }] = (0, import_client68.useMutation)(UPDATE_BILLING_CATALOG_PRICE_MUTATION, {
7929
+ awaitRefetchQueries: true,
7930
+ refetchQueries: [{ query: GET_BILLING_CATALOG }]
7931
+ });
7932
+ return { error, loading, updateBillingCatalogPrice };
7933
+ };
7934
+ var useSyncBillingCatalogPrice = () => {
7935
+ const [syncBillingCatalogPrice, { error, loading }] = (0, import_client68.useMutation)(SYNC_BILLING_CATALOG_PRICE_MUTATION, {
7936
+ awaitRefetchQueries: true,
7937
+ refetchQueries: [{ query: GET_BILLING_CATALOG }]
7938
+ });
7939
+ return { error, loading, syncBillingCatalogPrice };
7940
+ };
7941
+
7942
+ // src/graphql/hooks/billingCatalog/hooksQuery.ts
7943
+ var import_client69 = require("@apollo/client");
7944
+ var useGetBillingCatalog = () => {
7945
+ const { data, error, loading, refetch } = (0, import_client69.useQuery)(GET_BILLING_CATALOG, {
7946
+ fetchPolicy: "network-only"
7947
+ });
7948
+ return {
7949
+ billingCatalog: data?.billingCatalog ?? [],
7950
+ error,
7951
+ loading,
7952
+ refetch
7953
+ };
7954
+ };
7955
+
7956
+ // src/graphql/hooks/game/hooksMutation.ts
7957
+ var import_client72 = require("@apollo/client");
7958
+
7959
+ // src/graphql/mutations/game.ts
7960
+ var import_client71 = require("@apollo/client");
7961
+
7962
+ // src/graphql/queries/game/game.ts
7963
+ var import_client70 = require("@apollo/client");
7964
+ var GAME_HISTORY_FIELDS_FRAGMENT = import_client70.gql`
7830
7965
  fragment GameHistoryFields on GameHistoryType {
7831
7966
  createdAt
7832
7967
  gameDate {
@@ -7841,7 +7976,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
7841
7976
  }
7842
7977
  ${GAME_DATE_FIELDS_FRAGMENT}
7843
7978
  `;
7844
- var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
7979
+ var GAME_DATA_FIELDS_FRAGMENT = import_client70.gql`
7845
7980
  fragment GameDataFields on GameDataType {
7846
7981
  dailyClue {
7847
7982
  ...DailyClueGameDataFields
@@ -7856,7 +7991,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
7856
7991
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
7857
7992
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
7858
7993
  `;
7859
- var GAME_FIELDS_FRAGMENT = import_client66.gql`
7994
+ var GAME_FIELDS_FRAGMENT = import_client70.gql`
7860
7995
  fragment GameFields on GameType {
7861
7996
  _id
7862
7997
  active
@@ -7875,7 +8010,7 @@ var GAME_FIELDS_FRAGMENT = import_client66.gql`
7875
8010
  ${GAME_DATA_FIELDS_FRAGMENT}
7876
8011
  ${GAME_HISTORY_FIELDS_FRAGMENT}
7877
8012
  `;
7878
- var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
8013
+ var GAME_DOC_FIELDS_FRAGMENT = import_client70.gql`
7879
8014
  fragment GameDocFields on GameDocType {
7880
8015
  _id
7881
8016
  active
@@ -7893,7 +8028,7 @@ var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
7893
8028
  ${OWNER_FIELDS_FRAGMENT}
7894
8029
  ${GAME_FIELDS_FRAGMENT}
7895
8030
  `;
7896
- var GET_GAMES = import_client66.gql`
8031
+ var GET_GAMES = import_client70.gql`
7897
8032
  query getGames {
7898
8033
  games {
7899
8034
  ...GameDocFields
@@ -7901,7 +8036,7 @@ var GET_GAMES = import_client66.gql`
7901
8036
  }
7902
8037
  ${GAME_DOC_FIELDS_FRAGMENT}
7903
8038
  `;
7904
- var GET_GAME = import_client66.gql`
8039
+ var GET_GAME = import_client70.gql`
7905
8040
  query getGame($_id: ID) {
7906
8041
  game(_id: $_id) {
7907
8042
  ...GameDocFields
@@ -7909,7 +8044,7 @@ var GET_GAME = import_client66.gql`
7909
8044
  }
7910
8045
  ${GAME_DOC_FIELDS_FRAGMENT}
7911
8046
  `;
7912
- var GET_GAME_LEADERBOARD = import_client66.gql`
8047
+ var GET_GAME_LEADERBOARD = import_client70.gql`
7913
8048
  query getGameLeaderboard {
7914
8049
  gameLeaderboard {
7915
8050
  gameHistory {
@@ -7924,7 +8059,7 @@ var GET_GAME_LEADERBOARD = import_client66.gql`
7924
8059
  `;
7925
8060
 
7926
8061
  // src/graphql/mutations/game.ts
7927
- var START_GAME_MUTATION = import_client67.gql`
8062
+ var START_GAME_MUTATION = import_client71.gql`
7928
8063
  mutation startGame($input: BaseGameInputType!) {
7929
8064
  startGame(input: $input) {
7930
8065
  data {
@@ -7935,7 +8070,7 @@ var START_GAME_MUTATION = import_client67.gql`
7935
8070
  }
7936
8071
  ${GAME_DOC_FIELDS_FRAGMENT}
7937
8072
  `;
7938
- var LEAVE_GAME_MUTATION = import_client67.gql`
8073
+ var LEAVE_GAME_MUTATION = import_client71.gql`
7939
8074
  mutation leaveGame(
7940
8075
  $_id: ID!
7941
8076
  $gameType: GameTypeEnumType!
@@ -7947,7 +8082,7 @@ var LEAVE_GAME_MUTATION = import_client67.gql`
7947
8082
  }
7948
8083
  }
7949
8084
  `;
7950
- var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
8085
+ var UPDATE_DAILY_CLUE_MUTATION = import_client71.gql`
7951
8086
  mutation updateDailyClueGame(
7952
8087
  $_id: ID!
7953
8088
  $foundLetter: String!
@@ -7968,7 +8103,7 @@ var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
7968
8103
  }
7969
8104
  ${GAME_DOC_FIELDS_FRAGMENT}
7970
8105
  `;
7971
- var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
8106
+ var UPDATE_PUZZLE_GAME_MUTATION = import_client71.gql`
7972
8107
  mutation updatePuzzleGame(
7973
8108
  $_id: ID!
7974
8109
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -7992,7 +8127,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
7992
8127
 
7993
8128
  // src/graphql/hooks/game/hooksMutation.ts
7994
8129
  var useStartGame = () => {
7995
- const [startGame, { loading, error }] = (0, import_client68.useMutation)(START_GAME_MUTATION, {
8130
+ const [startGame, { loading, error }] = (0, import_client72.useMutation)(START_GAME_MUTATION, {
7996
8131
  awaitRefetchQueries: true,
7997
8132
  refetchQueries: (mutationResult) => {
7998
8133
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -8015,7 +8150,7 @@ var useStartGame = () => {
8015
8150
  return { error, loading, startGame };
8016
8151
  };
8017
8152
  var useLeaveGame = () => {
8018
- const [leaveGame, { loading, error }] = (0, import_client68.useMutation)(LEAVE_GAME_MUTATION, {
8153
+ const [leaveGame, { loading, error }] = (0, import_client72.useMutation)(LEAVE_GAME_MUTATION, {
8019
8154
  awaitRefetchQueries: true,
8020
8155
  refetchQueries: [
8021
8156
  {
@@ -8026,7 +8161,7 @@ var useLeaveGame = () => {
8026
8161
  return { error, leaveGame, loading };
8027
8162
  };
8028
8163
  var useUpdateDailyClueGame = () => {
8029
- const [updateDailyClueGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
8164
+ const [updateDailyClueGame, { loading, error }] = (0, import_client72.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
8030
8165
  awaitRefetchQueries: true,
8031
8166
  refetchQueries: (mutationResult) => {
8032
8167
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -8043,7 +8178,7 @@ var useUpdateDailyClueGame = () => {
8043
8178
  return { error, loading, updateDailyClueGame };
8044
8179
  };
8045
8180
  var useUpdatePuzzleGame = () => {
8046
- const [updatePuzzleGame, { loading, error }] = (0, import_client68.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
8181
+ const [updatePuzzleGame, { loading, error }] = (0, import_client72.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
8047
8182
  awaitRefetchQueries: true,
8048
8183
  refetchQueries: (mutationResult) => {
8049
8184
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -8061,16 +8196,16 @@ var useUpdatePuzzleGame = () => {
8061
8196
  };
8062
8197
 
8063
8198
  // src/graphql/hooks/game/hooksQuery.ts
8064
- var import_client69 = require("@apollo/client");
8199
+ var import_client73 = require("@apollo/client");
8065
8200
  var useGetGames = () => {
8066
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAMES, {
8201
+ const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAMES, {
8067
8202
  fetchPolicy: "network-only"
8068
8203
  });
8069
8204
  const games = data?.games || [];
8070
8205
  return { error, games, loading, refetch };
8071
8206
  };
8072
8207
  var useGetGame = (_id) => {
8073
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME, {
8208
+ const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAME, {
8074
8209
  fetchPolicy: "network-only",
8075
8210
  skip: !_id,
8076
8211
  variables: _id ? { _id } : void 0
@@ -8079,7 +8214,7 @@ var useGetGame = (_id) => {
8079
8214
  return { error, game, loading, refetch };
8080
8215
  };
8081
8216
  var useGetGameLeaderboard = () => {
8082
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME_LEADERBOARD, {
8217
+ const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAME_LEADERBOARD, {
8083
8218
  fetchPolicy: "network-only"
8084
8219
  });
8085
8220
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -8087,14 +8222,14 @@ var useGetGameLeaderboard = () => {
8087
8222
  };
8088
8223
 
8089
8224
  // src/graphql/hooks/school/hooksMutation.ts
8090
- var import_client72 = require("@apollo/client");
8225
+ var import_client76 = require("@apollo/client");
8091
8226
 
8092
8227
  // src/graphql/mutations/school.ts
8093
- var import_client71 = require("@apollo/client");
8228
+ var import_client75 = require("@apollo/client");
8094
8229
 
8095
8230
  // src/graphql/queries/school.ts
8096
- var import_client70 = require("@apollo/client");
8097
- var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
8231
+ var import_client74 = require("@apollo/client");
8232
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client74.gql`
8098
8233
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
8099
8234
  _id
8100
8235
  active
@@ -8107,14 +8242,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
8107
8242
  }
8108
8243
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8109
8244
  `;
8110
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client70.gql`
8245
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client74.gql`
8111
8246
  fragment SchoolCampaignFields on SchoolCampaignType {
8112
8247
  endDate
8113
8248
  name
8114
8249
  startDate
8115
8250
  }
8116
8251
  `;
8117
- var SCHOOL = import_client70.gql`
8252
+ var SCHOOL = import_client74.gql`
8118
8253
  fragment SchoolFields on SchoolType {
8119
8254
  _id
8120
8255
  active
@@ -8158,7 +8293,7 @@ var SCHOOL = import_client70.gql`
8158
8293
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8159
8294
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
8160
8295
  `;
8161
- var GET_SCHOOL = import_client70.gql`
8296
+ var GET_SCHOOL = import_client74.gql`
8162
8297
  query getSchool($_id: ID!) {
8163
8298
  school(_id: $_id) {
8164
8299
  school {
@@ -8172,7 +8307,7 @@ var GET_SCHOOL = import_client70.gql`
8172
8307
  ${SCHOOL}
8173
8308
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
8174
8309
  `;
8175
- var GET_SCHOOLS = import_client70.gql`
8310
+ var GET_SCHOOLS = import_client74.gql`
8176
8311
  query getSchools {
8177
8312
  schools {
8178
8313
  ...SchoolFields
@@ -8182,7 +8317,7 @@ var GET_SCHOOLS = import_client70.gql`
8182
8317
  `;
8183
8318
 
8184
8319
  // src/graphql/mutations/school.ts
8185
- var CREATE_SCHOOL_MUTATION = import_client71.gql`
8320
+ var CREATE_SCHOOL_MUTATION = import_client75.gql`
8186
8321
  mutation createSchool($input: SchoolInputType!) {
8187
8322
  createSchool(input: $input) {
8188
8323
  data {
@@ -8193,7 +8328,7 @@ var CREATE_SCHOOL_MUTATION = import_client71.gql`
8193
8328
  }
8194
8329
  ${SCHOOL}
8195
8330
  `;
8196
- var UPDATE_SCHOOL_MUTATION = import_client71.gql`
8331
+ var UPDATE_SCHOOL_MUTATION = import_client75.gql`
8197
8332
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
8198
8333
  updateSchool(_id: $_id, input: $input) {
8199
8334
  data {
@@ -8204,7 +8339,7 @@ var UPDATE_SCHOOL_MUTATION = import_client71.gql`
8204
8339
  }
8205
8340
  ${SCHOOL}
8206
8341
  `;
8207
- var DELETE_SCHOOL_MUTATION = import_client71.gql`
8342
+ var DELETE_SCHOOL_MUTATION = import_client75.gql`
8208
8343
  mutation deleteSchool($_id: ID!) {
8209
8344
  deleteSchool(_id: $_id) {
8210
8345
  data
@@ -8212,7 +8347,7 @@ var DELETE_SCHOOL_MUTATION = import_client71.gql`
8212
8347
  }
8213
8348
  }
8214
8349
  `;
8215
- var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
8350
+ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client75.gql`
8216
8351
  mutation requestMarketingMaterial(
8217
8352
  $input: MarketingMaterialRequestInputType!
8218
8353
  ) {
@@ -8225,35 +8360,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
8225
8360
 
8226
8361
  // src/graphql/hooks/school/hooksMutation.ts
8227
8362
  var useCreateSchool = () => {
8228
- const [createSchool, { loading, error }] = (0, import_client72.useMutation)(CREATE_SCHOOL_MUTATION, {
8363
+ const [createSchool, { loading, error }] = (0, import_client76.useMutation)(CREATE_SCHOOL_MUTATION, {
8229
8364
  awaitRefetchQueries: true,
8230
8365
  refetchQueries: [{ query: GET_SCHOOLS }]
8231
8366
  });
8232
8367
  return { createSchool, error, loading };
8233
8368
  };
8234
8369
  var useUpdateSchool = () => {
8235
- const [updateSchool, { loading, error }] = (0, import_client72.useMutation)(UPDATE_SCHOOL_MUTATION, {
8370
+ const [updateSchool, { loading, error }] = (0, import_client76.useMutation)(UPDATE_SCHOOL_MUTATION, {
8236
8371
  awaitRefetchQueries: true,
8237
8372
  refetchQueries: [{ query: GET_SCHOOLS }]
8238
8373
  });
8239
8374
  return { error, loading, updateSchool };
8240
8375
  };
8241
8376
  var useDeleteSchool = () => {
8242
- const [deleteSchool, { loading, error }] = (0, import_client72.useMutation)(DELETE_SCHOOL_MUTATION, {
8377
+ const [deleteSchool, { loading, error }] = (0, import_client76.useMutation)(DELETE_SCHOOL_MUTATION, {
8243
8378
  awaitRefetchQueries: true,
8244
8379
  refetchQueries: [{ query: GET_SCHOOLS }]
8245
8380
  });
8246
8381
  return { deleteSchool, error, loading };
8247
8382
  };
8248
8383
  var useRequestMarketingMaterial = () => {
8249
- const [requestMarketingMaterial, { loading, error }] = (0, import_client72.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
8384
+ const [requestMarketingMaterial, { loading, error }] = (0, import_client76.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
8250
8385
  return { error, loading, requestMarketingMaterial };
8251
8386
  };
8252
8387
 
8253
8388
  // src/graphql/hooks/school/hooksQuery.ts
8254
- var import_client73 = require("@apollo/client");
8389
+ var import_client77 = require("@apollo/client");
8255
8390
  var useGetSchools = () => {
8256
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(
8391
+ const { data, loading, error, refetch } = (0, import_client77.useQuery)(
8257
8392
  GET_SCHOOLS,
8258
8393
  {
8259
8394
  fetchPolicy: "network-only"
@@ -8267,7 +8402,7 @@ var useGetSchools = () => {
8267
8402
  };
8268
8403
  };
8269
8404
  var useGetSchool = (_id) => {
8270
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(GET_SCHOOL, {
8405
+ const { data, loading, error, refetch } = (0, import_client77.useQuery)(GET_SCHOOL, {
8271
8406
  fetchPolicy: "network-only",
8272
8407
  skip: !_id,
8273
8408
  variables: { _id }
@@ -8281,11 +8416,11 @@ var useGetSchool = (_id) => {
8281
8416
  };
8282
8417
 
8283
8418
  // src/graphql/hooks/affiliate/hooksQuery.ts
8284
- var import_client75 = require("@apollo/client");
8419
+ var import_client79 = require("@apollo/client");
8285
8420
 
8286
8421
  // src/graphql/queries/affiliate.ts
8287
- var import_client74 = require("@apollo/client");
8288
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
8422
+ var import_client78 = require("@apollo/client");
8423
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client78.gql`
8289
8424
  fragment AffiliateRewardFields on AffiliateRewardType {
8290
8425
  createdAt
8291
8426
  redeemedAt
@@ -8294,7 +8429,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
8294
8429
  rewardValue
8295
8430
  }
8296
8431
  `;
8297
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
8432
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client78.gql`
8298
8433
  fragment AffiliateResourceFields on AffiliateResourceType {
8299
8434
  resourceActive
8300
8435
  resourceDeletedAt
@@ -8311,13 +8446,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
8311
8446
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
8312
8447
  ${OWNER_FIELDS_FRAGMENT}
8313
8448
  `;
8314
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8449
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client78.gql`
8315
8450
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
8316
8451
  accountHolderName
8317
8452
  accountNumber
8318
8453
  }
8319
8454
  `;
8320
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8455
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client78.gql`
8321
8456
  fragment AffiliateDetailsFields on AffiliateDetailsType {
8322
8457
  bankAccountDetails {
8323
8458
  ...AffiliateBankAccountDetailsFields
@@ -8345,7 +8480,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8345
8480
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8346
8481
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8347
8482
  `;
8348
- var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
8483
+ var AFFILIATE_FIELDS_FRAGMENT = import_client78.gql`
8349
8484
  fragment AffiliateFields on AffiliateType {
8350
8485
  _id
8351
8486
  active
@@ -8377,7 +8512,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
8377
8512
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
8378
8513
  ${OWNER_FIELDS_FRAGMENT}
8379
8514
  `;
8380
- var GET_AFFILIATE = import_client74.gql`
8515
+ var GET_AFFILIATE = import_client78.gql`
8381
8516
  query getAffiliate($_id: ID!) {
8382
8517
  affiliate(_id: $_id) {
8383
8518
  ...AffiliateFields
@@ -8385,7 +8520,7 @@ var GET_AFFILIATE = import_client74.gql`
8385
8520
  }
8386
8521
  ${AFFILIATE_FIELDS_FRAGMENT}
8387
8522
  `;
8388
- var GET_AFFILIATES = import_client74.gql`
8523
+ var GET_AFFILIATES = import_client78.gql`
8389
8524
  query getAffiliates {
8390
8525
  affiliates {
8391
8526
  ...AffiliateFields
@@ -8396,7 +8531,7 @@ var GET_AFFILIATES = import_client74.gql`
8396
8531
 
8397
8532
  // src/graphql/hooks/affiliate/hooksQuery.ts
8398
8533
  var useGetAffiliate = (_id) => {
8399
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATE, {
8534
+ const { data, loading, error, refetch } = (0, import_client79.useQuery)(GET_AFFILIATE, {
8400
8535
  fetchPolicy: "network-only",
8401
8536
  skip: !_id || _id === "",
8402
8537
  variables: { _id }
@@ -8410,7 +8545,7 @@ var useGetAffiliate = (_id) => {
8410
8545
  };
8411
8546
  };
8412
8547
  var useGetAffiliates = () => {
8413
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATES, {
8548
+ const { data, loading, error, refetch } = (0, import_client79.useQuery)(GET_AFFILIATES, {
8414
8549
  fetchPolicy: "network-only"
8415
8550
  });
8416
8551
  const affiliates = data?.affiliates || [];
@@ -8423,11 +8558,11 @@ var useGetAffiliates = () => {
8423
8558
  };
8424
8559
 
8425
8560
  // src/graphql/hooks/affiliate/hooksMutation.ts
8426
- var import_client77 = require("@apollo/client");
8561
+ var import_client81 = require("@apollo/client");
8427
8562
 
8428
8563
  // src/graphql/mutations/affiliate.ts
8429
- var import_client76 = require("@apollo/client");
8430
- var CREATE_AFFILIATE_MUTATION = import_client76.gql`
8564
+ var import_client80 = require("@apollo/client");
8565
+ var CREATE_AFFILIATE_MUTATION = import_client80.gql`
8431
8566
  mutation createAffiliate($input: AffiliateDetailsInputType!) {
8432
8567
  createAffiliate(input: $input) {
8433
8568
  data {
@@ -8438,7 +8573,7 @@ var CREATE_AFFILIATE_MUTATION = import_client76.gql`
8438
8573
  }
8439
8574
  ${AFFILIATE_FIELDS_FRAGMENT}
8440
8575
  `;
8441
- var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
8576
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client80.gql`
8442
8577
  mutation updateAffiliateDetails(
8443
8578
  $input: AffiliateDetailsInputType!
8444
8579
  $affiliateId: ID!
@@ -8452,7 +8587,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
8452
8587
  }
8453
8588
  ${AFFILIATE_FIELDS_FRAGMENT}
8454
8589
  `;
8455
- var DELETE_AFFILIATE_MUTATION = import_client76.gql`
8590
+ var DELETE_AFFILIATE_MUTATION = import_client80.gql`
8456
8591
  mutation deleteAffiliate($_id: ID!) {
8457
8592
  deleteAffiliate(_id: $_id) {
8458
8593
  data
@@ -8460,7 +8595,7 @@ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
8460
8595
  }
8461
8596
  }
8462
8597
  `;
8463
- var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
8598
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client80.gql`
8464
8599
  mutation redeemAffiliateReward($affiliateId: ID!) {
8465
8600
  redeemAffiliateReward(affiliateId: $affiliateId) {
8466
8601
  data {
@@ -8471,7 +8606,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
8471
8606
  }
8472
8607
  ${AFFILIATE_FIELDS_FRAGMENT}
8473
8608
  `;
8474
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
8609
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client80.gql`
8475
8610
  mutation assignAffiliateResourceReward(
8476
8611
  $affiliateId: ID!
8477
8612
  $resourceId: ID!
@@ -8492,7 +8627,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
8492
8627
  }
8493
8628
  ${AFFILIATE_FIELDS_FRAGMENT}
8494
8629
  `;
8495
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
8630
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client80.gql`
8496
8631
  mutation assignAffiliateBonusReward(
8497
8632
  $affiliateId: ID!
8498
8633
  $rewardType: AffiliateRewardEnumType!
@@ -8512,7 +8647,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
8512
8647
 
8513
8648
  // src/graphql/hooks/affiliate/hooksMutation.ts
8514
8649
  var useCreateAffiliate = () => {
8515
- const [createAffiliate, { loading, error }] = (0, import_client77.useMutation)(CREATE_AFFILIATE_MUTATION, {
8650
+ const [createAffiliate, { loading, error }] = (0, import_client81.useMutation)(CREATE_AFFILIATE_MUTATION, {
8516
8651
  awaitRefetchQueries: true,
8517
8652
  refetchQueries: (mutationResult) => {
8518
8653
  const affiliateId = mutationResult?.data?.createAffiliate?.data?._id;
@@ -8523,7 +8658,7 @@ var useCreateAffiliate = () => {
8523
8658
  return { createAffiliate, error, loading };
8524
8659
  };
8525
8660
  var useUpdateAffiliateDetails = () => {
8526
- const [updateAffiliateDetails, { loading, error }] = (0, import_client77.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8661
+ const [updateAffiliateDetails, { loading, error }] = (0, import_client81.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8527
8662
  awaitRefetchQueries: true,
8528
8663
  refetchQueries: (mutationResult) => {
8529
8664
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -8534,14 +8669,14 @@ var useUpdateAffiliateDetails = () => {
8534
8669
  return { error, loading, updateAffiliateDetails };
8535
8670
  };
8536
8671
  var useDeleteAffiliate = () => {
8537
- const [deleteAffiliate, { loading, error }] = (0, import_client77.useMutation)(DELETE_AFFILIATE_MUTATION, {
8672
+ const [deleteAffiliate, { loading, error }] = (0, import_client81.useMutation)(DELETE_AFFILIATE_MUTATION, {
8538
8673
  awaitRefetchQueries: true,
8539
8674
  refetchQueries: [{ query: GET_AFFILIATES }]
8540
8675
  });
8541
8676
  return { deleteAffiliate, error, loading };
8542
8677
  };
8543
8678
  var useRedeemAffiliateReward = () => {
8544
- const [redeemAffiliateReward, { loading, error }] = (0, import_client77.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
8679
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client81.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
8545
8680
  awaitRefetchQueries: true,
8546
8681
  refetchQueries: (mutationResult) => {
8547
8682
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -8552,7 +8687,7 @@ var useRedeemAffiliateReward = () => {
8552
8687
  return { error, loading, redeemAffiliateReward };
8553
8688
  };
8554
8689
  var useAssignAffiliateResourceReward = () => {
8555
- const [assignAffiliateResourceReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8690
+ const [assignAffiliateResourceReward, { loading, error }] = (0, import_client81.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8556
8691
  awaitRefetchQueries: true,
8557
8692
  refetchQueries: (mutationResult) => {
8558
8693
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -8563,7 +8698,7 @@ var useAssignAffiliateResourceReward = () => {
8563
8698
  return { assignAffiliateResourceReward, error, loading };
8564
8699
  };
8565
8700
  var useAssignAffiliateBonusReward = () => {
8566
- const [assignAffiliateBonusReward, { loading, error }] = (0, import_client77.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8701
+ const [assignAffiliateBonusReward, { loading, error }] = (0, import_client81.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8567
8702
  awaitRefetchQueries: true,
8568
8703
  refetchQueries: (mutationResult) => {
8569
8704
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -8575,14 +8710,14 @@ var useAssignAffiliateBonusReward = () => {
8575
8710
  };
8576
8711
 
8577
8712
  // src/graphql/hooks/coupon/hooksMutation.ts
8578
- var import_client80 = require("@apollo/client");
8713
+ var import_client84 = require("@apollo/client");
8579
8714
 
8580
8715
  // src/graphql/mutations/coupon.ts
8581
- var import_client79 = require("@apollo/client");
8716
+ var import_client83 = require("@apollo/client");
8582
8717
 
8583
8718
  // src/graphql/queries/coupon.ts
8584
- var import_client78 = require("@apollo/client");
8585
- var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
8719
+ var import_client82 = require("@apollo/client");
8720
+ var COUPON_CODE_FIELDS_FRAGMENT = import_client82.gql`
8586
8721
  fragment CouponCodeFields on CouponCodeType {
8587
8722
  code
8588
8723
  qrCode {
@@ -8594,7 +8729,7 @@ var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
8594
8729
  }
8595
8730
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8596
8731
  `;
8597
- var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client78.gql`
8732
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client82.gql`
8598
8733
  fragment CouponParticipantUserFields on CouponParticipantUserType {
8599
8734
  couponCollectedCount
8600
8735
  couponRedeemedAt
@@ -8606,7 +8741,7 @@ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client78.gql`
8606
8741
  nickName
8607
8742
  }
8608
8743
  `;
8609
- var COUPON_OPTION_FIELDS_FRAGMENT = import_client78.gql`
8744
+ var COUPON_OPTION_FIELDS_FRAGMENT = import_client82.gql`
8610
8745
  fragment CouponOptionFields on CouponOptionType {
8611
8746
  type
8612
8747
  buy
@@ -8616,7 +8751,7 @@ var COUPON_OPTION_FIELDS_FRAGMENT = import_client78.gql`
8616
8751
  maxRewardCount
8617
8752
  }
8618
8753
  `;
8619
- var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client78.gql`
8754
+ var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client82.gql`
8620
8755
  fragment CouponVendorProductFields on CouponVendorProductType {
8621
8756
  couponId
8622
8757
  vendorId
@@ -8624,7 +8759,7 @@ var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client78.gql`
8624
8759
  vendorCouponId
8625
8760
  }
8626
8761
  `;
8627
- var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client78.gql`
8762
+ var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client82.gql`
8628
8763
  fragment CouponDataProductsFields on CouponDataProductsType {
8629
8764
  active
8630
8765
  couponId
@@ -8640,7 +8775,7 @@ var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client78.gql`
8640
8775
  ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
8641
8776
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8642
8777
  `;
8643
- var COUPON_DATA_FIELDS_FRAGMENT = import_client78.gql`
8778
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client82.gql`
8644
8779
  fragment CouponDataFields on CouponDataType {
8645
8780
  _id
8646
8781
  active
@@ -8674,7 +8809,7 @@ var COUPON_DATA_FIELDS_FRAGMENT = import_client78.gql`
8674
8809
  ${COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT}
8675
8810
  ${COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT}
8676
8811
  `;
8677
- var COUPON = import_client78.gql`
8812
+ var COUPON = import_client82.gql`
8678
8813
  fragment CouponFields on CouponType {
8679
8814
  _id
8680
8815
  active
@@ -8691,7 +8826,7 @@ var COUPON = import_client78.gql`
8691
8826
  ${OWNER_FIELDS_FRAGMENT}
8692
8827
  ${COUPON_DATA_FIELDS_FRAGMENT}
8693
8828
  `;
8694
- var GET_COUPONS = import_client78.gql`
8829
+ var GET_COUPONS = import_client82.gql`
8695
8830
  query getCoupons(
8696
8831
  $region: String
8697
8832
  $category: String
@@ -8726,7 +8861,7 @@ var GET_COUPONS = import_client78.gql`
8726
8861
  }
8727
8862
  ${COUPON}
8728
8863
  `;
8729
- var GET_COUPON = import_client78.gql`
8864
+ var GET_COUPON = import_client82.gql`
8730
8865
  query getCoupon($_id: ID!) {
8731
8866
  coupon(_id: $_id) {
8732
8867
  ...CouponFields
@@ -8736,7 +8871,7 @@ var GET_COUPON = import_client78.gql`
8736
8871
  `;
8737
8872
 
8738
8873
  // src/graphql/mutations/coupon.ts
8739
- var CREATE_COUPON_MUTATION = import_client79.gql`
8874
+ var CREATE_COUPON_MUTATION = import_client83.gql`
8740
8875
  mutation createCoupon($input: CouponInputType!) {
8741
8876
  createCoupon(input: $input) {
8742
8877
  data {
@@ -8747,7 +8882,7 @@ var CREATE_COUPON_MUTATION = import_client79.gql`
8747
8882
  }
8748
8883
  ${COUPON}
8749
8884
  `;
8750
- var UPDATE_COUPON_MUTATION = import_client79.gql`
8885
+ var UPDATE_COUPON_MUTATION = import_client83.gql`
8751
8886
  mutation updateCoupon(
8752
8887
  $couponDocumentId: ID!
8753
8888
  $couponId: ID!
@@ -8766,7 +8901,7 @@ var UPDATE_COUPON_MUTATION = import_client79.gql`
8766
8901
  }
8767
8902
  ${COUPON}
8768
8903
  `;
8769
- var DELETE_COUPON_MUTATION = import_client79.gql`
8904
+ var DELETE_COUPON_MUTATION = import_client83.gql`
8770
8905
  mutation deleteCoupon($input: ProductCouponInputType!) {
8771
8906
  deleteCoupon(input: $input) {
8772
8907
  data
@@ -8774,7 +8909,7 @@ var DELETE_COUPON_MUTATION = import_client79.gql`
8774
8909
  }
8775
8910
  }
8776
8911
  `;
8777
- var SCAN_COUPON_MUTATION = import_client79.gql`
8912
+ var SCAN_COUPON_MUTATION = import_client83.gql`
8778
8913
  mutation scanCoupon($input: ProductCouponInputType!) {
8779
8914
  scanCoupon(input: $input) {
8780
8915
  data
@@ -8782,7 +8917,7 @@ var SCAN_COUPON_MUTATION = import_client79.gql`
8782
8917
  }
8783
8918
  }
8784
8919
  `;
8785
- var REWARD_COUPON_MUTATION = import_client79.gql`
8920
+ var REWARD_COUPON_MUTATION = import_client83.gql`
8786
8921
  mutation rewardCoupon($input: ProductCouponInputType!, $userId: ID!) {
8787
8922
  rewardCoupon(input: $input, userId: $userId) {
8788
8923
  data
@@ -8793,32 +8928,32 @@ var REWARD_COUPON_MUTATION = import_client79.gql`
8793
8928
 
8794
8929
  // src/graphql/hooks/coupon/hooksMutation.ts
8795
8930
  var useCreateCoupon = () => {
8796
- const [createCoupon, { loading, error }] = (0, import_client80.useMutation)(CREATE_COUPON_MUTATION, {
8931
+ const [createCoupon, { loading, error }] = (0, import_client84.useMutation)(CREATE_COUPON_MUTATION, {
8797
8932
  awaitRefetchQueries: true,
8798
8933
  refetchQueries: [GET_COUPONS]
8799
8934
  });
8800
8935
  return { createCoupon, error, loading };
8801
8936
  };
8802
8937
  var useUpdateCoupon = () => {
8803
- const [updateCoupon, { loading, error }] = (0, import_client80.useMutation)(UPDATE_COUPON_MUTATION, {
8938
+ const [updateCoupon, { loading, error }] = (0, import_client84.useMutation)(UPDATE_COUPON_MUTATION, {
8804
8939
  awaitRefetchQueries: true,
8805
8940
  refetchQueries: [GET_COUPONS]
8806
8941
  });
8807
8942
  return { error, loading, updateCoupon };
8808
8943
  };
8809
8944
  var useDeleteCoupon = () => {
8810
- const [deleteCoupon, { loading, error }] = (0, import_client80.useMutation)(DELETE_COUPON_MUTATION, {
8945
+ const [deleteCoupon, { loading, error }] = (0, import_client84.useMutation)(DELETE_COUPON_MUTATION, {
8811
8946
  awaitRefetchQueries: true,
8812
8947
  refetchQueries: [GET_COUPONS]
8813
8948
  });
8814
8949
  return { deleteCoupon, error, loading };
8815
8950
  };
8816
8951
  var useScanCoupon = () => {
8817
- const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION);
8952
+ const [scanCoupon, { loading, error }] = (0, import_client84.useMutation)(SCAN_COUPON_MUTATION);
8818
8953
  return { error, loading, scanCoupon };
8819
8954
  };
8820
8955
  var useRewardCoupon = () => {
8821
- const [rewardCoupon, { loading, error }] = (0, import_client80.useMutation)(REWARD_COUPON_MUTATION, {
8956
+ const [rewardCoupon, { loading, error }] = (0, import_client84.useMutation)(REWARD_COUPON_MUTATION, {
8822
8957
  awaitRefetchQueries: true,
8823
8958
  refetchQueries: [GET_COUPONS]
8824
8959
  });
@@ -8826,9 +8961,9 @@ var useRewardCoupon = () => {
8826
8961
  };
8827
8962
 
8828
8963
  // src/graphql/hooks/coupon/hooksQuery.ts
8829
- var import_client81 = require("@apollo/client");
8964
+ var import_client85 = require("@apollo/client");
8830
8965
  var useGetCoupons = (variables) => {
8831
- const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_COUPONS, {
8966
+ const { loading, error, data, refetch } = (0, import_client85.useQuery)(GET_COUPONS, {
8832
8967
  fetchPolicy: "network-only",
8833
8968
  variables
8834
8969
  });
@@ -8840,7 +8975,7 @@ var useGetCoupons = (variables) => {
8840
8975
  return { coupons, error, loading, refetch };
8841
8976
  };
8842
8977
  var useGetCoupon = (_id) => {
8843
- const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_COUPON, {
8978
+ const { loading, error, data, refetch } = (0, import_client85.useQuery)(GET_COUPON, {
8844
8979
  fetchPolicy: "network-only",
8845
8980
  skip: !_id || _id === "",
8846
8981
  variables: { _id }
@@ -9410,6 +9545,9 @@ function canAccessAdminPath(roles, pathname) {
9410
9545
  AFFILIATE_PARTICIPANT_TYPE_LABELS,
9411
9546
  AFFILIATE_REWARDS,
9412
9547
  ANDROID_URL,
9548
+ BILLING_CATALOG_CURRENCY,
9549
+ BILLING_CATALOG_DEFINITIONS,
9550
+ BILLING_CATALOG_KEYS,
9413
9551
  CLUEMART_MAIN_DOMAIN_URL,
9414
9552
  CM_AFFILIATE_PROMO_CODE,
9415
9553
  CM_SCHOOL_PROMO_CODE,
@@ -9467,6 +9605,7 @@ function canAccessAdminPath(roles, pathname) {
9467
9605
  GET_VENDOR_BY_SLUG,
9468
9606
  GET_VENDOR_INFO,
9469
9607
  IMAGE_EXTENSION,
9608
+ INITIAL_BILLING_CATALOG,
9470
9609
  IOS_URL,
9471
9610
  ImageTypeEnum,
9472
9611
  KNOWN_EVENT_SCHEDULE_STATUSES,
@@ -9528,6 +9667,7 @@ function canAccessAdminPath(roles, pathname) {
9528
9667
  badgeIds,
9529
9668
  badges,
9530
9669
  bankAccountDetailsFields,
9670
+ billingCatalogDefinitionMatches,
9531
9671
  buildApplicationShareDescription,
9532
9672
  buildCalendarSheetContentData,
9533
9673
  buildFacebookShareQuote,
@@ -9596,6 +9736,7 @@ function canAccessAdminPath(roles, pathname) {
9596
9736
  gameScreenIdentifierList,
9597
9737
  gameTypeToDisplayName,
9598
9738
  getAllowedEventDateStatuses,
9739
+ getBillingCatalogKeyForSelection,
9599
9740
  getCurrentAndFutureDates,
9600
9741
  getDefaultAdminHome,
9601
9742
  getErrorMessage,
@@ -9748,6 +9889,7 @@ function canAccessAdminPath(roles, pathname) {
9748
9889
  useGetAffiliate,
9749
9890
  useGetAffiliates,
9750
9891
  useGetAppSettings,
9892
+ useGetBillingCatalog,
9751
9893
  useGetChat,
9752
9894
  useGetChatSubscription,
9753
9895
  useGetChatsByRegion,
@@ -9826,15 +9968,16 @@ function canAccessAdminPath(roles, pathname) {
9826
9968
  useSearchEvents,
9827
9969
  useSearchPartners,
9828
9970
  useSearchVendors,
9829
- useSelectPackage,
9830
9971
  useSelectStandardPackage,
9831
9972
  useSendChatMessage,
9832
9973
  useStartGame,
9974
+ useSyncBillingCatalogPrice,
9833
9975
  useToggleChatMessageLike,
9834
9976
  useUnlinkUnregisteredVendorByInviterId,
9835
9977
  useUpdateAd,
9836
9978
  useUpdateAffiliateDetails,
9837
9979
  useUpdateAppSettings,
9980
+ useUpdateBillingCatalogPrice,
9838
9981
  useUpdateCoupon,
9839
9982
  useUpdateDailyClueGame,
9840
9983
  useUpdateEvent,