@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.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,
@@ -621,8 +629,8 @@ var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource2) => {
621
629
  return EnumRelationResource2;
622
630
  })(EnumRelationResource || {});
623
631
  var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceType2) => {
624
- EnumNotificationResourceType2["APPROVED_AFFILIATE"] = "approved_affiliate";
625
632
  EnumNotificationResourceType2["AFFILIATE_REWARD_RECEIVED"] = "affiliate_reward_received";
633
+ EnumNotificationResourceType2["APPROVED_AFFILIATE"] = "approved_affiliate";
626
634
  EnumNotificationResourceType2["APPROVED_EVENT"] = "approved_event";
627
635
  EnumNotificationResourceType2["APPROVED_PARTNER"] = "approved_partner";
628
636
  EnumNotificationResourceType2["APPROVED_SCHOOL"] = "approved_school";
@@ -650,6 +658,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
650
658
  EnumNotificationResourceType2["NEW_POST_CREATED"] = "new_post_created";
651
659
  EnumNotificationResourceType2["REGISTERED_USER_BY_SCHOOL_CODE"] = "registered_user_by_school_code";
652
660
  EnumNotificationResourceType2["SYSTEM_ALERT"] = "system_alert";
661
+ EnumNotificationResourceType2["USER_COUPON_REDEEMED"] = "user_coupon_redeemed";
653
662
  EnumNotificationResourceType2["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event" /* VENDOR_APPLICATION_TO_EVENT */;
654
663
  EnumNotificationResourceType2["VENDOR_UPDATE_RELATION_TO_EVENT"] = "vendor_update_relation_to_event" /* VENDOR_UPDATE_RELATION_TO_EVENT */;
655
664
  return EnumNotificationResourceType2;
@@ -743,7 +752,6 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus2) => {
743
752
  var EnumBillingPeriod = /* @__PURE__ */ ((EnumBillingPeriod2) => {
744
753
  EnumBillingPeriod2["MONTHLY_CANCEL_ANYTIME"] = "monthly_cancel_anytime";
745
754
  EnumBillingPeriod2["YEARLY_ANNUAL_BILLED"] = "yearly_annual_billed";
746
- EnumBillingPeriod2["YEARLY_MONTHLY_BILLED"] = "yearly_monthly_billed";
747
755
  return EnumBillingPeriod2;
748
756
  })(EnumBillingPeriod || {});
749
757
  var EnumReward = /* @__PURE__ */ ((EnumReward2) => {
@@ -3044,6 +3052,84 @@ function isTransientNetworkError(err) {
3044
3052
  return TRANSIENT_NETWORK_PATTERNS.some((pattern) => pattern.test(message));
3045
3053
  }
3046
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
+
3047
3133
  // src/utils/toUserFacingErrorMessage.ts
3048
3134
  var DEFAULT_USER_FACING_ERROR = "Something went wrong. Please try again.";
3049
3135
  var NETWORK_USER_FACING_ERROR = "Unable to connect. Please check your internet connection and try again.";
@@ -7363,11 +7449,8 @@ var import_client53 = require("@apollo/client");
7363
7449
  // src/graphql/mutations/stripe.ts
7364
7450
  var import_client52 = require("@apollo/client");
7365
7451
  var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
7366
- mutation createCheckoutSession(
7367
- $planId: LicencesEnumType!
7368
- $billingPeriod: BillingPeriodEnumType
7369
- ) {
7370
- createCheckoutSession(planId: $planId, billingPeriod: $billingPeriod) {
7452
+ mutation createCheckoutSession($input: CreateCheckoutSessionInputType!) {
7453
+ createCheckoutSession(input: $input) {
7371
7454
  data {
7372
7455
  sessionId
7373
7456
  checkoutUrl
@@ -7413,29 +7496,6 @@ var CREATE_CUSTOMER_PORTAL = import_client52.gql`
7413
7496
  }
7414
7497
  }
7415
7498
  `;
7416
- var SELECT_PACKAGE_MUTATION = import_client52.gql`
7417
- mutation selectPackage(
7418
- $billingPeriod: BillingPeriodEnumType
7419
- $selectedLicence: LicencesEnumType!
7420
- $useStripe: Boolean
7421
- ) {
7422
- selectPackage(
7423
- billingPeriod: $billingPeriod
7424
- selectedLicence: $selectedLicence
7425
- useStripe: $useStripe
7426
- ) {
7427
- data {
7428
- checkoutUrl
7429
- licences {
7430
- ...LicenceFields
7431
- }
7432
- userId
7433
- }
7434
- message
7435
- }
7436
- }
7437
- ${LICENCE_FIELDS_FRAGMENT}
7438
- `;
7439
7499
 
7440
7500
  // src/graphql/hooks/stripe/hooksMutation.ts
7441
7501
  var useCreateCheckoutSession = () => {
@@ -7454,21 +7514,6 @@ var useCreateCustomerPortal = () => {
7454
7514
  const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(CREATE_CUSTOMER_PORTAL);
7455
7515
  return { createCustomerPortal, error, loading };
7456
7516
  };
7457
- var useSelectPackage = () => {
7458
- const [selectPackage, { loading, error }] = (0, import_client53.useMutation)(SELECT_PACKAGE_MUTATION, {
7459
- awaitRefetchQueries: true,
7460
- refetchQueries: (mutationResult) => {
7461
- const userId = mutationResult?.data?.selectPackage?.data?.userId;
7462
- if (!userId) return [];
7463
- return [
7464
- { query: GET_USER, variables: { _id: userId } },
7465
- { query: GET_USER_EVENTS },
7466
- { query: GET_USER_VENDORS }
7467
- ];
7468
- }
7469
- });
7470
- return { error, loading, selectPackage };
7471
- };
7472
7517
 
7473
7518
  // src/graphql/hooks/stripe/hooksQuery.ts
7474
7519
  var import_client55 = require("@apollo/client");
@@ -7508,7 +7553,6 @@ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
7508
7553
  }
7509
7554
  }
7510
7555
  isNewUser
7511
- isTester
7512
7556
  appliedDiscountType
7513
7557
  }
7514
7558
  }
@@ -7817,15 +7861,107 @@ var useGetAppSettings = () => {
7817
7861
  return { appSettings, error, loading, refetch };
7818
7862
  };
7819
7863
 
7820
- // src/graphql/hooks/game/hooksMutation.ts
7864
+ // src/graphql/hooks/billingCatalog/hooksMutation.ts
7821
7865
  var import_client68 = require("@apollo/client");
7822
7866
 
7823
- // src/graphql/mutations/game.ts
7867
+ // src/graphql/mutations/billingCatalog.ts
7824
7868
  var import_client67 = require("@apollo/client");
7825
7869
 
7826
- // src/graphql/queries/game/game.ts
7870
+ // src/graphql/queries/billingCatalog.ts
7827
7871
  var import_client66 = require("@apollo/client");
7828
- 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`
7829
7965
  fragment GameHistoryFields on GameHistoryType {
7830
7966
  createdAt
7831
7967
  gameDate {
@@ -7840,7 +7976,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client66.gql`
7840
7976
  }
7841
7977
  ${GAME_DATE_FIELDS_FRAGMENT}
7842
7978
  `;
7843
- var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
7979
+ var GAME_DATA_FIELDS_FRAGMENT = import_client70.gql`
7844
7980
  fragment GameDataFields on GameDataType {
7845
7981
  dailyClue {
7846
7982
  ...DailyClueGameDataFields
@@ -7855,7 +7991,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client66.gql`
7855
7991
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
7856
7992
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
7857
7993
  `;
7858
- var GAME_FIELDS_FRAGMENT = import_client66.gql`
7994
+ var GAME_FIELDS_FRAGMENT = import_client70.gql`
7859
7995
  fragment GameFields on GameType {
7860
7996
  _id
7861
7997
  active
@@ -7874,7 +8010,7 @@ var GAME_FIELDS_FRAGMENT = import_client66.gql`
7874
8010
  ${GAME_DATA_FIELDS_FRAGMENT}
7875
8011
  ${GAME_HISTORY_FIELDS_FRAGMENT}
7876
8012
  `;
7877
- var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
8013
+ var GAME_DOC_FIELDS_FRAGMENT = import_client70.gql`
7878
8014
  fragment GameDocFields on GameDocType {
7879
8015
  _id
7880
8016
  active
@@ -7892,7 +8028,7 @@ var GAME_DOC_FIELDS_FRAGMENT = import_client66.gql`
7892
8028
  ${OWNER_FIELDS_FRAGMENT}
7893
8029
  ${GAME_FIELDS_FRAGMENT}
7894
8030
  `;
7895
- var GET_GAMES = import_client66.gql`
8031
+ var GET_GAMES = import_client70.gql`
7896
8032
  query getGames {
7897
8033
  games {
7898
8034
  ...GameDocFields
@@ -7900,7 +8036,7 @@ var GET_GAMES = import_client66.gql`
7900
8036
  }
7901
8037
  ${GAME_DOC_FIELDS_FRAGMENT}
7902
8038
  `;
7903
- var GET_GAME = import_client66.gql`
8039
+ var GET_GAME = import_client70.gql`
7904
8040
  query getGame($_id: ID) {
7905
8041
  game(_id: $_id) {
7906
8042
  ...GameDocFields
@@ -7908,7 +8044,7 @@ var GET_GAME = import_client66.gql`
7908
8044
  }
7909
8045
  ${GAME_DOC_FIELDS_FRAGMENT}
7910
8046
  `;
7911
- var GET_GAME_LEADERBOARD = import_client66.gql`
8047
+ var GET_GAME_LEADERBOARD = import_client70.gql`
7912
8048
  query getGameLeaderboard {
7913
8049
  gameLeaderboard {
7914
8050
  gameHistory {
@@ -7923,7 +8059,7 @@ var GET_GAME_LEADERBOARD = import_client66.gql`
7923
8059
  `;
7924
8060
 
7925
8061
  // src/graphql/mutations/game.ts
7926
- var START_GAME_MUTATION = import_client67.gql`
8062
+ var START_GAME_MUTATION = import_client71.gql`
7927
8063
  mutation startGame($input: BaseGameInputType!) {
7928
8064
  startGame(input: $input) {
7929
8065
  data {
@@ -7934,7 +8070,7 @@ var START_GAME_MUTATION = import_client67.gql`
7934
8070
  }
7935
8071
  ${GAME_DOC_FIELDS_FRAGMENT}
7936
8072
  `;
7937
- var LEAVE_GAME_MUTATION = import_client67.gql`
8073
+ var LEAVE_GAME_MUTATION = import_client71.gql`
7938
8074
  mutation leaveGame(
7939
8075
  $_id: ID!
7940
8076
  $gameType: GameTypeEnumType!
@@ -7946,7 +8082,7 @@ var LEAVE_GAME_MUTATION = import_client67.gql`
7946
8082
  }
7947
8083
  }
7948
8084
  `;
7949
- var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
8085
+ var UPDATE_DAILY_CLUE_MUTATION = import_client71.gql`
7950
8086
  mutation updateDailyClueGame(
7951
8087
  $_id: ID!
7952
8088
  $foundLetter: String!
@@ -7967,7 +8103,7 @@ var UPDATE_DAILY_CLUE_MUTATION = import_client67.gql`
7967
8103
  }
7968
8104
  ${GAME_DOC_FIELDS_FRAGMENT}
7969
8105
  `;
7970
- var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
8106
+ var UPDATE_PUZZLE_GAME_MUTATION = import_client71.gql`
7971
8107
  mutation updatePuzzleGame(
7972
8108
  $_id: ID!
7973
8109
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -7991,7 +8127,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = import_client67.gql`
7991
8127
 
7992
8128
  // src/graphql/hooks/game/hooksMutation.ts
7993
8129
  var useStartGame = () => {
7994
- const [startGame, { loading, error }] = (0, import_client68.useMutation)(START_GAME_MUTATION, {
8130
+ const [startGame, { loading, error }] = (0, import_client72.useMutation)(START_GAME_MUTATION, {
7995
8131
  awaitRefetchQueries: true,
7996
8132
  refetchQueries: (mutationResult) => {
7997
8133
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -8014,7 +8150,7 @@ var useStartGame = () => {
8014
8150
  return { error, loading, startGame };
8015
8151
  };
8016
8152
  var useLeaveGame = () => {
8017
- const [leaveGame, { loading, error }] = (0, import_client68.useMutation)(LEAVE_GAME_MUTATION, {
8153
+ const [leaveGame, { loading, error }] = (0, import_client72.useMutation)(LEAVE_GAME_MUTATION, {
8018
8154
  awaitRefetchQueries: true,
8019
8155
  refetchQueries: [
8020
8156
  {
@@ -8025,7 +8161,7 @@ var useLeaveGame = () => {
8025
8161
  return { error, leaveGame, loading };
8026
8162
  };
8027
8163
  var useUpdateDailyClueGame = () => {
8028
- 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, {
8029
8165
  awaitRefetchQueries: true,
8030
8166
  refetchQueries: (mutationResult) => {
8031
8167
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -8042,7 +8178,7 @@ var useUpdateDailyClueGame = () => {
8042
8178
  return { error, loading, updateDailyClueGame };
8043
8179
  };
8044
8180
  var useUpdatePuzzleGame = () => {
8045
- 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, {
8046
8182
  awaitRefetchQueries: true,
8047
8183
  refetchQueries: (mutationResult) => {
8048
8184
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -8060,16 +8196,16 @@ var useUpdatePuzzleGame = () => {
8060
8196
  };
8061
8197
 
8062
8198
  // src/graphql/hooks/game/hooksQuery.ts
8063
- var import_client69 = require("@apollo/client");
8199
+ var import_client73 = require("@apollo/client");
8064
8200
  var useGetGames = () => {
8065
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAMES, {
8201
+ const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAMES, {
8066
8202
  fetchPolicy: "network-only"
8067
8203
  });
8068
8204
  const games = data?.games || [];
8069
8205
  return { error, games, loading, refetch };
8070
8206
  };
8071
8207
  var useGetGame = (_id) => {
8072
- const { loading, error, data, refetch } = (0, import_client69.useQuery)(GET_GAME, {
8208
+ const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAME, {
8073
8209
  fetchPolicy: "network-only",
8074
8210
  skip: !_id,
8075
8211
  variables: _id ? { _id } : void 0
@@ -8078,7 +8214,7 @@ var useGetGame = (_id) => {
8078
8214
  return { error, game, loading, refetch };
8079
8215
  };
8080
8216
  var useGetGameLeaderboard = () => {
8081
- 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, {
8082
8218
  fetchPolicy: "network-only"
8083
8219
  });
8084
8220
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -8086,14 +8222,14 @@ var useGetGameLeaderboard = () => {
8086
8222
  };
8087
8223
 
8088
8224
  // src/graphql/hooks/school/hooksMutation.ts
8089
- var import_client72 = require("@apollo/client");
8225
+ var import_client76 = require("@apollo/client");
8090
8226
 
8091
8227
  // src/graphql/mutations/school.ts
8092
- var import_client71 = require("@apollo/client");
8228
+ var import_client75 = require("@apollo/client");
8093
8229
 
8094
8230
  // src/graphql/queries/school.ts
8095
- var import_client70 = require("@apollo/client");
8096
- 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`
8097
8233
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
8098
8234
  _id
8099
8235
  active
@@ -8106,14 +8242,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client70.gql`
8106
8242
  }
8107
8243
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8108
8244
  `;
8109
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client70.gql`
8245
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client74.gql`
8110
8246
  fragment SchoolCampaignFields on SchoolCampaignType {
8111
8247
  endDate
8112
8248
  name
8113
8249
  startDate
8114
8250
  }
8115
8251
  `;
8116
- var SCHOOL = import_client70.gql`
8252
+ var SCHOOL = import_client74.gql`
8117
8253
  fragment SchoolFields on SchoolType {
8118
8254
  _id
8119
8255
  active
@@ -8157,7 +8293,7 @@ var SCHOOL = import_client70.gql`
8157
8293
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8158
8294
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
8159
8295
  `;
8160
- var GET_SCHOOL = import_client70.gql`
8296
+ var GET_SCHOOL = import_client74.gql`
8161
8297
  query getSchool($_id: ID!) {
8162
8298
  school(_id: $_id) {
8163
8299
  school {
@@ -8171,7 +8307,7 @@ var GET_SCHOOL = import_client70.gql`
8171
8307
  ${SCHOOL}
8172
8308
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
8173
8309
  `;
8174
- var GET_SCHOOLS = import_client70.gql`
8310
+ var GET_SCHOOLS = import_client74.gql`
8175
8311
  query getSchools {
8176
8312
  schools {
8177
8313
  ...SchoolFields
@@ -8181,7 +8317,7 @@ var GET_SCHOOLS = import_client70.gql`
8181
8317
  `;
8182
8318
 
8183
8319
  // src/graphql/mutations/school.ts
8184
- var CREATE_SCHOOL_MUTATION = import_client71.gql`
8320
+ var CREATE_SCHOOL_MUTATION = import_client75.gql`
8185
8321
  mutation createSchool($input: SchoolInputType!) {
8186
8322
  createSchool(input: $input) {
8187
8323
  data {
@@ -8192,7 +8328,7 @@ var CREATE_SCHOOL_MUTATION = import_client71.gql`
8192
8328
  }
8193
8329
  ${SCHOOL}
8194
8330
  `;
8195
- var UPDATE_SCHOOL_MUTATION = import_client71.gql`
8331
+ var UPDATE_SCHOOL_MUTATION = import_client75.gql`
8196
8332
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
8197
8333
  updateSchool(_id: $_id, input: $input) {
8198
8334
  data {
@@ -8203,7 +8339,7 @@ var UPDATE_SCHOOL_MUTATION = import_client71.gql`
8203
8339
  }
8204
8340
  ${SCHOOL}
8205
8341
  `;
8206
- var DELETE_SCHOOL_MUTATION = import_client71.gql`
8342
+ var DELETE_SCHOOL_MUTATION = import_client75.gql`
8207
8343
  mutation deleteSchool($_id: ID!) {
8208
8344
  deleteSchool(_id: $_id) {
8209
8345
  data
@@ -8211,7 +8347,7 @@ var DELETE_SCHOOL_MUTATION = import_client71.gql`
8211
8347
  }
8212
8348
  }
8213
8349
  `;
8214
- var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
8350
+ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client75.gql`
8215
8351
  mutation requestMarketingMaterial(
8216
8352
  $input: MarketingMaterialRequestInputType!
8217
8353
  ) {
@@ -8224,35 +8360,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
8224
8360
 
8225
8361
  // src/graphql/hooks/school/hooksMutation.ts
8226
8362
  var useCreateSchool = () => {
8227
- const [createSchool, { loading, error }] = (0, import_client72.useMutation)(CREATE_SCHOOL_MUTATION, {
8363
+ const [createSchool, { loading, error }] = (0, import_client76.useMutation)(CREATE_SCHOOL_MUTATION, {
8228
8364
  awaitRefetchQueries: true,
8229
8365
  refetchQueries: [{ query: GET_SCHOOLS }]
8230
8366
  });
8231
8367
  return { createSchool, error, loading };
8232
8368
  };
8233
8369
  var useUpdateSchool = () => {
8234
- const [updateSchool, { loading, error }] = (0, import_client72.useMutation)(UPDATE_SCHOOL_MUTATION, {
8370
+ const [updateSchool, { loading, error }] = (0, import_client76.useMutation)(UPDATE_SCHOOL_MUTATION, {
8235
8371
  awaitRefetchQueries: true,
8236
8372
  refetchQueries: [{ query: GET_SCHOOLS }]
8237
8373
  });
8238
8374
  return { error, loading, updateSchool };
8239
8375
  };
8240
8376
  var useDeleteSchool = () => {
8241
- const [deleteSchool, { loading, error }] = (0, import_client72.useMutation)(DELETE_SCHOOL_MUTATION, {
8377
+ const [deleteSchool, { loading, error }] = (0, import_client76.useMutation)(DELETE_SCHOOL_MUTATION, {
8242
8378
  awaitRefetchQueries: true,
8243
8379
  refetchQueries: [{ query: GET_SCHOOLS }]
8244
8380
  });
8245
8381
  return { deleteSchool, error, loading };
8246
8382
  };
8247
8383
  var useRequestMarketingMaterial = () => {
8248
- 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);
8249
8385
  return { error, loading, requestMarketingMaterial };
8250
8386
  };
8251
8387
 
8252
8388
  // src/graphql/hooks/school/hooksQuery.ts
8253
- var import_client73 = require("@apollo/client");
8389
+ var import_client77 = require("@apollo/client");
8254
8390
  var useGetSchools = () => {
8255
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(
8391
+ const { data, loading, error, refetch } = (0, import_client77.useQuery)(
8256
8392
  GET_SCHOOLS,
8257
8393
  {
8258
8394
  fetchPolicy: "network-only"
@@ -8266,7 +8402,7 @@ var useGetSchools = () => {
8266
8402
  };
8267
8403
  };
8268
8404
  var useGetSchool = (_id) => {
8269
- const { data, loading, error, refetch } = (0, import_client73.useQuery)(GET_SCHOOL, {
8405
+ const { data, loading, error, refetch } = (0, import_client77.useQuery)(GET_SCHOOL, {
8270
8406
  fetchPolicy: "network-only",
8271
8407
  skip: !_id,
8272
8408
  variables: { _id }
@@ -8280,11 +8416,11 @@ var useGetSchool = (_id) => {
8280
8416
  };
8281
8417
 
8282
8418
  // src/graphql/hooks/affiliate/hooksQuery.ts
8283
- var import_client75 = require("@apollo/client");
8419
+ var import_client79 = require("@apollo/client");
8284
8420
 
8285
8421
  // src/graphql/queries/affiliate.ts
8286
- var import_client74 = require("@apollo/client");
8287
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
8422
+ var import_client78 = require("@apollo/client");
8423
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client78.gql`
8288
8424
  fragment AffiliateRewardFields on AffiliateRewardType {
8289
8425
  createdAt
8290
8426
  redeemedAt
@@ -8293,7 +8429,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
8293
8429
  rewardValue
8294
8430
  }
8295
8431
  `;
8296
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
8432
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client78.gql`
8297
8433
  fragment AffiliateResourceFields on AffiliateResourceType {
8298
8434
  resourceActive
8299
8435
  resourceDeletedAt
@@ -8310,13 +8446,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
8310
8446
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
8311
8447
  ${OWNER_FIELDS_FRAGMENT}
8312
8448
  `;
8313
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8449
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client78.gql`
8314
8450
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
8315
8451
  accountHolderName
8316
8452
  accountNumber
8317
8453
  }
8318
8454
  `;
8319
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8455
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client78.gql`
8320
8456
  fragment AffiliateDetailsFields on AffiliateDetailsType {
8321
8457
  bankAccountDetails {
8322
8458
  ...AffiliateBankAccountDetailsFields
@@ -8344,7 +8480,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client74.gql`
8344
8480
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8345
8481
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8346
8482
  `;
8347
- var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
8483
+ var AFFILIATE_FIELDS_FRAGMENT = import_client78.gql`
8348
8484
  fragment AffiliateFields on AffiliateType {
8349
8485
  _id
8350
8486
  active
@@ -8376,7 +8512,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
8376
8512
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
8377
8513
  ${OWNER_FIELDS_FRAGMENT}
8378
8514
  `;
8379
- var GET_AFFILIATE = import_client74.gql`
8515
+ var GET_AFFILIATE = import_client78.gql`
8380
8516
  query getAffiliate($_id: ID!) {
8381
8517
  affiliate(_id: $_id) {
8382
8518
  ...AffiliateFields
@@ -8384,7 +8520,7 @@ var GET_AFFILIATE = import_client74.gql`
8384
8520
  }
8385
8521
  ${AFFILIATE_FIELDS_FRAGMENT}
8386
8522
  `;
8387
- var GET_AFFILIATES = import_client74.gql`
8523
+ var GET_AFFILIATES = import_client78.gql`
8388
8524
  query getAffiliates {
8389
8525
  affiliates {
8390
8526
  ...AffiliateFields
@@ -8395,7 +8531,7 @@ var GET_AFFILIATES = import_client74.gql`
8395
8531
 
8396
8532
  // src/graphql/hooks/affiliate/hooksQuery.ts
8397
8533
  var useGetAffiliate = (_id) => {
8398
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATE, {
8534
+ const { data, loading, error, refetch } = (0, import_client79.useQuery)(GET_AFFILIATE, {
8399
8535
  fetchPolicy: "network-only",
8400
8536
  skip: !_id || _id === "",
8401
8537
  variables: { _id }
@@ -8409,7 +8545,7 @@ var useGetAffiliate = (_id) => {
8409
8545
  };
8410
8546
  };
8411
8547
  var useGetAffiliates = () => {
8412
- const { data, loading, error, refetch } = (0, import_client75.useQuery)(GET_AFFILIATES, {
8548
+ const { data, loading, error, refetch } = (0, import_client79.useQuery)(GET_AFFILIATES, {
8413
8549
  fetchPolicy: "network-only"
8414
8550
  });
8415
8551
  const affiliates = data?.affiliates || [];
@@ -8422,11 +8558,11 @@ var useGetAffiliates = () => {
8422
8558
  };
8423
8559
 
8424
8560
  // src/graphql/hooks/affiliate/hooksMutation.ts
8425
- var import_client77 = require("@apollo/client");
8561
+ var import_client81 = require("@apollo/client");
8426
8562
 
8427
8563
  // src/graphql/mutations/affiliate.ts
8428
- var import_client76 = require("@apollo/client");
8429
- var CREATE_AFFILIATE_MUTATION = import_client76.gql`
8564
+ var import_client80 = require("@apollo/client");
8565
+ var CREATE_AFFILIATE_MUTATION = import_client80.gql`
8430
8566
  mutation createAffiliate($input: AffiliateDetailsInputType!) {
8431
8567
  createAffiliate(input: $input) {
8432
8568
  data {
@@ -8437,7 +8573,7 @@ var CREATE_AFFILIATE_MUTATION = import_client76.gql`
8437
8573
  }
8438
8574
  ${AFFILIATE_FIELDS_FRAGMENT}
8439
8575
  `;
8440
- var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
8576
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client80.gql`
8441
8577
  mutation updateAffiliateDetails(
8442
8578
  $input: AffiliateDetailsInputType!
8443
8579
  $affiliateId: ID!
@@ -8451,7 +8587,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client76.gql`
8451
8587
  }
8452
8588
  ${AFFILIATE_FIELDS_FRAGMENT}
8453
8589
  `;
8454
- var DELETE_AFFILIATE_MUTATION = import_client76.gql`
8590
+ var DELETE_AFFILIATE_MUTATION = import_client80.gql`
8455
8591
  mutation deleteAffiliate($_id: ID!) {
8456
8592
  deleteAffiliate(_id: $_id) {
8457
8593
  data
@@ -8459,7 +8595,7 @@ var DELETE_AFFILIATE_MUTATION = import_client76.gql`
8459
8595
  }
8460
8596
  }
8461
8597
  `;
8462
- var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
8598
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client80.gql`
8463
8599
  mutation redeemAffiliateReward($affiliateId: ID!) {
8464
8600
  redeemAffiliateReward(affiliateId: $affiliateId) {
8465
8601
  data {
@@ -8470,7 +8606,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client76.gql`
8470
8606
  }
8471
8607
  ${AFFILIATE_FIELDS_FRAGMENT}
8472
8608
  `;
8473
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
8609
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client80.gql`
8474
8610
  mutation assignAffiliateResourceReward(
8475
8611
  $affiliateId: ID!
8476
8612
  $resourceId: ID!
@@ -8491,7 +8627,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client76.gql`
8491
8627
  }
8492
8628
  ${AFFILIATE_FIELDS_FRAGMENT}
8493
8629
  `;
8494
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
8630
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client80.gql`
8495
8631
  mutation assignAffiliateBonusReward(
8496
8632
  $affiliateId: ID!
8497
8633
  $rewardType: AffiliateRewardEnumType!
@@ -8511,7 +8647,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
8511
8647
 
8512
8648
  // src/graphql/hooks/affiliate/hooksMutation.ts
8513
8649
  var useCreateAffiliate = () => {
8514
- const [createAffiliate, { loading, error }] = (0, import_client77.useMutation)(CREATE_AFFILIATE_MUTATION, {
8650
+ const [createAffiliate, { loading, error }] = (0, import_client81.useMutation)(CREATE_AFFILIATE_MUTATION, {
8515
8651
  awaitRefetchQueries: true,
8516
8652
  refetchQueries: (mutationResult) => {
8517
8653
  const affiliateId = mutationResult?.data?.createAffiliate?.data?._id;
@@ -8522,7 +8658,7 @@ var useCreateAffiliate = () => {
8522
8658
  return { createAffiliate, error, loading };
8523
8659
  };
8524
8660
  var useUpdateAffiliateDetails = () => {
8525
- 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, {
8526
8662
  awaitRefetchQueries: true,
8527
8663
  refetchQueries: (mutationResult) => {
8528
8664
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -8533,14 +8669,14 @@ var useUpdateAffiliateDetails = () => {
8533
8669
  return { error, loading, updateAffiliateDetails };
8534
8670
  };
8535
8671
  var useDeleteAffiliate = () => {
8536
- const [deleteAffiliate, { loading, error }] = (0, import_client77.useMutation)(DELETE_AFFILIATE_MUTATION, {
8672
+ const [deleteAffiliate, { loading, error }] = (0, import_client81.useMutation)(DELETE_AFFILIATE_MUTATION, {
8537
8673
  awaitRefetchQueries: true,
8538
8674
  refetchQueries: [{ query: GET_AFFILIATES }]
8539
8675
  });
8540
8676
  return { deleteAffiliate, error, loading };
8541
8677
  };
8542
8678
  var useRedeemAffiliateReward = () => {
8543
- 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, {
8544
8680
  awaitRefetchQueries: true,
8545
8681
  refetchQueries: (mutationResult) => {
8546
8682
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -8551,7 +8687,7 @@ var useRedeemAffiliateReward = () => {
8551
8687
  return { error, loading, redeemAffiliateReward };
8552
8688
  };
8553
8689
  var useAssignAffiliateResourceReward = () => {
8554
- 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, {
8555
8691
  awaitRefetchQueries: true,
8556
8692
  refetchQueries: (mutationResult) => {
8557
8693
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -8562,7 +8698,7 @@ var useAssignAffiliateResourceReward = () => {
8562
8698
  return { assignAffiliateResourceReward, error, loading };
8563
8699
  };
8564
8700
  var useAssignAffiliateBonusReward = () => {
8565
- 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, {
8566
8702
  awaitRefetchQueries: true,
8567
8703
  refetchQueries: (mutationResult) => {
8568
8704
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -8574,14 +8710,14 @@ var useAssignAffiliateBonusReward = () => {
8574
8710
  };
8575
8711
 
8576
8712
  // src/graphql/hooks/coupon/hooksMutation.ts
8577
- var import_client80 = require("@apollo/client");
8713
+ var import_client84 = require("@apollo/client");
8578
8714
 
8579
8715
  // src/graphql/mutations/coupon.ts
8580
- var import_client79 = require("@apollo/client");
8716
+ var import_client83 = require("@apollo/client");
8581
8717
 
8582
8718
  // src/graphql/queries/coupon.ts
8583
- var import_client78 = require("@apollo/client");
8584
- var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
8719
+ var import_client82 = require("@apollo/client");
8720
+ var COUPON_CODE_FIELDS_FRAGMENT = import_client82.gql`
8585
8721
  fragment CouponCodeFields on CouponCodeType {
8586
8722
  code
8587
8723
  qrCode {
@@ -8593,7 +8729,7 @@ var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
8593
8729
  }
8594
8730
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8595
8731
  `;
8596
- var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client78.gql`
8732
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client82.gql`
8597
8733
  fragment CouponParticipantUserFields on CouponParticipantUserType {
8598
8734
  couponCollectedCount
8599
8735
  couponRedeemedAt
@@ -8605,7 +8741,7 @@ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client78.gql`
8605
8741
  nickName
8606
8742
  }
8607
8743
  `;
8608
- var COUPON_OPTION_FIELDS_FRAGMENT = import_client78.gql`
8744
+ var COUPON_OPTION_FIELDS_FRAGMENT = import_client82.gql`
8609
8745
  fragment CouponOptionFields on CouponOptionType {
8610
8746
  type
8611
8747
  buy
@@ -8615,7 +8751,7 @@ var COUPON_OPTION_FIELDS_FRAGMENT = import_client78.gql`
8615
8751
  maxRewardCount
8616
8752
  }
8617
8753
  `;
8618
- var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client78.gql`
8754
+ var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client82.gql`
8619
8755
  fragment CouponVendorProductFields on CouponVendorProductType {
8620
8756
  couponId
8621
8757
  vendorId
@@ -8623,7 +8759,7 @@ var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client78.gql`
8623
8759
  vendorCouponId
8624
8760
  }
8625
8761
  `;
8626
- var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client78.gql`
8762
+ var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client82.gql`
8627
8763
  fragment CouponDataProductsFields on CouponDataProductsType {
8628
8764
  active
8629
8765
  couponId
@@ -8639,7 +8775,7 @@ var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client78.gql`
8639
8775
  ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
8640
8776
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8641
8777
  `;
8642
- var COUPON_DATA_FIELDS_FRAGMENT = import_client78.gql`
8778
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client82.gql`
8643
8779
  fragment CouponDataFields on CouponDataType {
8644
8780
  _id
8645
8781
  active
@@ -8673,7 +8809,7 @@ var COUPON_DATA_FIELDS_FRAGMENT = import_client78.gql`
8673
8809
  ${COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT}
8674
8810
  ${COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT}
8675
8811
  `;
8676
- var COUPON = import_client78.gql`
8812
+ var COUPON = import_client82.gql`
8677
8813
  fragment CouponFields on CouponType {
8678
8814
  _id
8679
8815
  active
@@ -8690,7 +8826,7 @@ var COUPON = import_client78.gql`
8690
8826
  ${OWNER_FIELDS_FRAGMENT}
8691
8827
  ${COUPON_DATA_FIELDS_FRAGMENT}
8692
8828
  `;
8693
- var GET_COUPONS = import_client78.gql`
8829
+ var GET_COUPONS = import_client82.gql`
8694
8830
  query getCoupons(
8695
8831
  $region: String
8696
8832
  $category: String
@@ -8725,7 +8861,7 @@ var GET_COUPONS = import_client78.gql`
8725
8861
  }
8726
8862
  ${COUPON}
8727
8863
  `;
8728
- var GET_COUPON = import_client78.gql`
8864
+ var GET_COUPON = import_client82.gql`
8729
8865
  query getCoupon($_id: ID!) {
8730
8866
  coupon(_id: $_id) {
8731
8867
  ...CouponFields
@@ -8735,7 +8871,7 @@ var GET_COUPON = import_client78.gql`
8735
8871
  `;
8736
8872
 
8737
8873
  // src/graphql/mutations/coupon.ts
8738
- var CREATE_COUPON_MUTATION = import_client79.gql`
8874
+ var CREATE_COUPON_MUTATION = import_client83.gql`
8739
8875
  mutation createCoupon($input: CouponInputType!) {
8740
8876
  createCoupon(input: $input) {
8741
8877
  data {
@@ -8746,7 +8882,7 @@ var CREATE_COUPON_MUTATION = import_client79.gql`
8746
8882
  }
8747
8883
  ${COUPON}
8748
8884
  `;
8749
- var UPDATE_COUPON_MUTATION = import_client79.gql`
8885
+ var UPDATE_COUPON_MUTATION = import_client83.gql`
8750
8886
  mutation updateCoupon(
8751
8887
  $couponDocumentId: ID!
8752
8888
  $couponId: ID!
@@ -8765,7 +8901,7 @@ var UPDATE_COUPON_MUTATION = import_client79.gql`
8765
8901
  }
8766
8902
  ${COUPON}
8767
8903
  `;
8768
- var DELETE_COUPON_MUTATION = import_client79.gql`
8904
+ var DELETE_COUPON_MUTATION = import_client83.gql`
8769
8905
  mutation deleteCoupon($input: ProductCouponInputType!) {
8770
8906
  deleteCoupon(input: $input) {
8771
8907
  data
@@ -8773,7 +8909,7 @@ var DELETE_COUPON_MUTATION = import_client79.gql`
8773
8909
  }
8774
8910
  }
8775
8911
  `;
8776
- var SCAN_COUPON_MUTATION = import_client79.gql`
8912
+ var SCAN_COUPON_MUTATION = import_client83.gql`
8777
8913
  mutation scanCoupon($input: ProductCouponInputType!) {
8778
8914
  scanCoupon(input: $input) {
8779
8915
  data
@@ -8781,7 +8917,7 @@ var SCAN_COUPON_MUTATION = import_client79.gql`
8781
8917
  }
8782
8918
  }
8783
8919
  `;
8784
- var REWARD_COUPON_MUTATION = import_client79.gql`
8920
+ var REWARD_COUPON_MUTATION = import_client83.gql`
8785
8921
  mutation rewardCoupon($input: ProductCouponInputType!, $userId: ID!) {
8786
8922
  rewardCoupon(input: $input, userId: $userId) {
8787
8923
  data
@@ -8792,32 +8928,32 @@ var REWARD_COUPON_MUTATION = import_client79.gql`
8792
8928
 
8793
8929
  // src/graphql/hooks/coupon/hooksMutation.ts
8794
8930
  var useCreateCoupon = () => {
8795
- const [createCoupon, { loading, error }] = (0, import_client80.useMutation)(CREATE_COUPON_MUTATION, {
8931
+ const [createCoupon, { loading, error }] = (0, import_client84.useMutation)(CREATE_COUPON_MUTATION, {
8796
8932
  awaitRefetchQueries: true,
8797
8933
  refetchQueries: [GET_COUPONS]
8798
8934
  });
8799
8935
  return { createCoupon, error, loading };
8800
8936
  };
8801
8937
  var useUpdateCoupon = () => {
8802
- const [updateCoupon, { loading, error }] = (0, import_client80.useMutation)(UPDATE_COUPON_MUTATION, {
8938
+ const [updateCoupon, { loading, error }] = (0, import_client84.useMutation)(UPDATE_COUPON_MUTATION, {
8803
8939
  awaitRefetchQueries: true,
8804
8940
  refetchQueries: [GET_COUPONS]
8805
8941
  });
8806
8942
  return { error, loading, updateCoupon };
8807
8943
  };
8808
8944
  var useDeleteCoupon = () => {
8809
- const [deleteCoupon, { loading, error }] = (0, import_client80.useMutation)(DELETE_COUPON_MUTATION, {
8945
+ const [deleteCoupon, { loading, error }] = (0, import_client84.useMutation)(DELETE_COUPON_MUTATION, {
8810
8946
  awaitRefetchQueries: true,
8811
8947
  refetchQueries: [GET_COUPONS]
8812
8948
  });
8813
8949
  return { deleteCoupon, error, loading };
8814
8950
  };
8815
8951
  var useScanCoupon = () => {
8816
- const [scanCoupon, { loading, error }] = (0, import_client80.useMutation)(SCAN_COUPON_MUTATION);
8952
+ const [scanCoupon, { loading, error }] = (0, import_client84.useMutation)(SCAN_COUPON_MUTATION);
8817
8953
  return { error, loading, scanCoupon };
8818
8954
  };
8819
8955
  var useRewardCoupon = () => {
8820
- const [rewardCoupon, { loading, error }] = (0, import_client80.useMutation)(REWARD_COUPON_MUTATION, {
8956
+ const [rewardCoupon, { loading, error }] = (0, import_client84.useMutation)(REWARD_COUPON_MUTATION, {
8821
8957
  awaitRefetchQueries: true,
8822
8958
  refetchQueries: [GET_COUPONS]
8823
8959
  });
@@ -8825,9 +8961,9 @@ var useRewardCoupon = () => {
8825
8961
  };
8826
8962
 
8827
8963
  // src/graphql/hooks/coupon/hooksQuery.ts
8828
- var import_client81 = require("@apollo/client");
8964
+ var import_client85 = require("@apollo/client");
8829
8965
  var useGetCoupons = (variables) => {
8830
- const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_COUPONS, {
8966
+ const { loading, error, data, refetch } = (0, import_client85.useQuery)(GET_COUPONS, {
8831
8967
  fetchPolicy: "network-only",
8832
8968
  variables
8833
8969
  });
@@ -8839,7 +8975,7 @@ var useGetCoupons = (variables) => {
8839
8975
  return { coupons, error, loading, refetch };
8840
8976
  };
8841
8977
  var useGetCoupon = (_id) => {
8842
- const { loading, error, data, refetch } = (0, import_client81.useQuery)(GET_COUPON, {
8978
+ const { loading, error, data, refetch } = (0, import_client85.useQuery)(GET_COUPON, {
8843
8979
  fetchPolicy: "network-only",
8844
8980
  skip: !_id || _id === "",
8845
8981
  variables: { _id }
@@ -9409,6 +9545,9 @@ function canAccessAdminPath(roles, pathname) {
9409
9545
  AFFILIATE_PARTICIPANT_TYPE_LABELS,
9410
9546
  AFFILIATE_REWARDS,
9411
9547
  ANDROID_URL,
9548
+ BILLING_CATALOG_CURRENCY,
9549
+ BILLING_CATALOG_DEFINITIONS,
9550
+ BILLING_CATALOG_KEYS,
9412
9551
  CLUEMART_MAIN_DOMAIN_URL,
9413
9552
  CM_AFFILIATE_PROMO_CODE,
9414
9553
  CM_SCHOOL_PROMO_CODE,
@@ -9466,6 +9605,7 @@ function canAccessAdminPath(roles, pathname) {
9466
9605
  GET_VENDOR_BY_SLUG,
9467
9606
  GET_VENDOR_INFO,
9468
9607
  IMAGE_EXTENSION,
9608
+ INITIAL_BILLING_CATALOG,
9469
9609
  IOS_URL,
9470
9610
  ImageTypeEnum,
9471
9611
  KNOWN_EVENT_SCHEDULE_STATUSES,
@@ -9527,6 +9667,7 @@ function canAccessAdminPath(roles, pathname) {
9527
9667
  badgeIds,
9528
9668
  badges,
9529
9669
  bankAccountDetailsFields,
9670
+ billingCatalogDefinitionMatches,
9530
9671
  buildApplicationShareDescription,
9531
9672
  buildCalendarSheetContentData,
9532
9673
  buildFacebookShareQuote,
@@ -9595,6 +9736,7 @@ function canAccessAdminPath(roles, pathname) {
9595
9736
  gameScreenIdentifierList,
9596
9737
  gameTypeToDisplayName,
9597
9738
  getAllowedEventDateStatuses,
9739
+ getBillingCatalogKeyForSelection,
9598
9740
  getCurrentAndFutureDates,
9599
9741
  getDefaultAdminHome,
9600
9742
  getErrorMessage,
@@ -9747,6 +9889,7 @@ function canAccessAdminPath(roles, pathname) {
9747
9889
  useGetAffiliate,
9748
9890
  useGetAffiliates,
9749
9891
  useGetAppSettings,
9892
+ useGetBillingCatalog,
9750
9893
  useGetChat,
9751
9894
  useGetChatSubscription,
9752
9895
  useGetChatsByRegion,
@@ -9825,15 +9968,16 @@ function canAccessAdminPath(roles, pathname) {
9825
9968
  useSearchEvents,
9826
9969
  useSearchPartners,
9827
9970
  useSearchVendors,
9828
- useSelectPackage,
9829
9971
  useSelectStandardPackage,
9830
9972
  useSendChatMessage,
9831
9973
  useStartGame,
9974
+ useSyncBillingCatalogPrice,
9832
9975
  useToggleChatMessageLike,
9833
9976
  useUnlinkUnregisteredVendorByInviterId,
9834
9977
  useUpdateAd,
9835
9978
  useUpdateAffiliateDetails,
9836
9979
  useUpdateAppSettings,
9980
+ useUpdateBillingCatalogPrice,
9837
9981
  useUpdateCoupon,
9838
9982
  useUpdateDailyClueGame,
9839
9983
  useUpdateEvent,