@timardex/cluemart-shared 2.0.7 → 2.0.8

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 (48) hide show
  1. package/dist/{ad-Cq1luH63.d.mts → ad-BFOGqBel.d.mts} +77 -2
  2. package/dist/{ad-C7_aLSAO.d.ts → ad-DEIR7iSl.d.ts} +77 -2
  3. package/dist/{affiliate-DKe3AD5n.d.mts → affiliate-BQ62c6SE.d.mts} +1 -1
  4. package/dist/{affiliate-zbXziTPJ.d.ts → affiliate-D7kf9GSr.d.ts} +1 -1
  5. package/dist/auth/index.cjs +3 -0
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +2 -2
  8. package/dist/auth/index.d.ts +2 -2
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-5KOHAP3V.mjs → chunk-5VWHW2EM.mjs} +268 -91
  11. package/dist/chunk-5VWHW2EM.mjs.map +1 -0
  12. package/dist/{chunk-LMFBXRR7.mjs → chunk-ACCOACCV.mjs} +2 -2
  13. package/dist/{chunk-OUWKLNHZ.mjs → chunk-JOA6W4SP.mjs} +4 -1
  14. package/dist/chunk-JOA6W4SP.mjs.map +1 -0
  15. package/dist/{chunk-UUIAJ2D6.mjs → chunk-L45XTF3X.mjs} +41 -1
  16. package/dist/chunk-L45XTF3X.mjs.map +1 -0
  17. package/dist/formFields/index.mjs +2 -2
  18. package/dist/graphql/index.cjs +357 -164
  19. package/dist/graphql/index.cjs.map +1 -1
  20. package/dist/graphql/index.d.mts +19 -4
  21. package/dist/graphql/index.d.ts +19 -4
  22. package/dist/graphql/index.mjs +28 -2
  23. package/dist/hooks/index.cjs +278 -110
  24. package/dist/hooks/index.cjs.map +1 -1
  25. package/dist/hooks/index.d.mts +3 -3
  26. package/dist/hooks/index.d.ts +3 -3
  27. package/dist/hooks/index.mjs +4 -4
  28. package/dist/index.cjs +402 -164
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.mts +97 -1
  31. package/dist/index.d.ts +97 -1
  32. package/dist/index.mjs +309 -89
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/types/index.cjs +45 -0
  35. package/dist/types/index.cjs.map +1 -1
  36. package/dist/types/index.d.mts +3 -3
  37. package/dist/types/index.d.ts +3 -3
  38. package/dist/types/index.mjs +11 -1
  39. package/dist/{user-NPmlt_Zx.d.mts → user-CqrqqKv2.d.mts} +6 -0
  40. package/dist/{user-B6YLX1c5.d.ts → user-zrMQ2GDX.d.ts} +6 -0
  41. package/dist/utils/index.d.mts +2 -2
  42. package/dist/utils/index.d.ts +2 -2
  43. package/dist/utils/index.mjs +2 -2
  44. package/package.json +1 -1
  45. package/dist/chunk-5KOHAP3V.mjs.map +0 -1
  46. package/dist/chunk-OUWKLNHZ.mjs.map +0 -1
  47. package/dist/chunk-UUIAJ2D6.mjs.map +0 -1
  48. /package/dist/{chunk-LMFBXRR7.mjs.map → chunk-ACCOACCV.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -33,15 +33,19 @@ __export(index_exports, {
33
33
  ACTIVATE_VENDOR_CLAIM_MUTATION: () => ACTIVATE_VENDOR_CLAIM_MUTATION,
34
34
  ADMIN_APP_ROLES: () => ADMIN_APP_ROLES,
35
35
  ADMIN_DASHBOARD_CONTEXTS: () => ADMIN_DASHBOARD_CONTEXTS,
36
+ AD_BOOKING_FIELDS_FRAGMENT: () => AD_BOOKING_FIELDS_FRAGMENT,
36
37
  AFFILIATE_PARTICIPANT_TYPE_LABELS: () => AFFILIATE_PARTICIPANT_TYPE_LABELS,
37
38
  AFFILIATE_REWARDS: () => AFFILIATE_REWARDS,
38
39
  ANDROID_URL: () => ANDROID_URL,
40
+ APPROVE_AD_BOOKING_MUTATION: () => APPROVE_AD_BOOKING_MUTATION,
39
41
  BILLING_CATALOG_CURRENCY: () => BILLING_CATALOG_CURRENCY,
40
42
  BILLING_CATALOG_DEFINITIONS: () => BILLING_CATALOG_DEFINITIONS,
41
43
  BILLING_CATALOG_KEYS: () => BILLING_CATALOG_KEYS,
44
+ CLAIM_RESERVED_AD_DAY_MUTATION: () => CLAIM_RESERVED_AD_DAY_MUTATION,
42
45
  CLUEMART_MAIN_DOMAIN_URL: () => CLUEMART_MAIN_DOMAIN_URL,
43
46
  CM_AFFILIATE_PROMO_CODE: () => CM_AFFILIATE_PROMO_CODE,
44
47
  CM_SCHOOL_PROMO_CODE: () => CM_SCHOOL_PROMO_CODE,
48
+ CREATE_AD_CHECKOUT_MUTATION: () => CREATE_AD_CHECKOUT_MUTATION,
45
49
  DEFAULT_PAGE_SIZE: () => DEFAULT_PAGE_SIZE,
46
50
  DEFAULT_RESOURCES_RETURN_LIMIT: () => DEFAULT_RESOURCES_RETURN_LIMIT,
47
51
  DEFAULT_RESOURCES_RETURN_OFFSET: () => DEFAULT_RESOURCES_RETURN_OFFSET,
@@ -49,6 +53,11 @@ __export(index_exports, {
49
53
  DEFAULT_USER_FACING_ERROR: () => DEFAULT_USER_FACING_ERROR,
50
54
  EVENT_DATE_STATUS_PERIOD_MAP: () => EVENT_DATE_STATUS_PERIOD_MAP,
51
55
  EnumActivity: () => EnumActivity,
56
+ EnumAdApprovalStatus: () => EnumAdApprovalStatus,
57
+ EnumAdBookingSlotKind: () => EnumAdBookingSlotKind,
58
+ EnumAdBookingState: () => EnumAdBookingState,
59
+ EnumAdEntitlementSource: () => EnumAdEntitlementSource,
60
+ EnumAdPaymentStatus: () => EnumAdPaymentStatus,
52
61
  EnumAdShowOn: () => EnumAdShowOn,
53
62
  EnumAdStatus: () => EnumAdStatus,
54
63
  EnumAdStyle: () => EnumAdStyle,
@@ -84,14 +93,20 @@ __export(index_exports, {
84
93
  EnumUserRole: () => EnumUserRole,
85
94
  EnumVendorType: () => EnumVendorType,
86
95
  EnumVerificationType: () => EnumVerificationType,
96
+ GET_AD_BOOKING: () => GET_AD_BOOKING,
97
+ GET_AD_DAILY_PRICES: () => GET_AD_DAILY_PRICES,
98
+ GET_AD_DAY_AVAILABILITY: () => GET_AD_DAY_AVAILABILITY,
99
+ GET_AD_SETTINGS: () => GET_AD_SETTINGS,
87
100
  GET_EVENT: () => GET_EVENT,
88
101
  GET_EVENTS: () => GET_EVENTS,
89
102
  GET_EVENT_BY_SLUG: () => GET_EVENT_BY_SLUG,
90
103
  GET_EVENT_INFO: () => GET_EVENT_INFO,
104
+ GET_MY_AD_BOOKINGS: () => GET_MY_AD_BOOKINGS,
91
105
  GET_OWNED_EVENT: () => GET_OWNED_EVENT,
92
106
  GET_PARTNER: () => GET_PARTNER,
93
107
  GET_PARTNERS: () => GET_PARTNERS,
94
108
  GET_PARTNER_BY_SLUG: () => GET_PARTNER_BY_SLUG,
109
+ GET_PENDING_AD_BOOKINGS: () => GET_PENDING_AD_BOOKINGS,
95
110
  GET_POST: () => GET_POST,
96
111
  GET_POSTS: () => GET_POSTS,
97
112
  GET_POSTS_BY_TYPE: () => GET_POSTS_BY_TYPE,
@@ -115,6 +130,7 @@ __export(index_exports, {
115
130
  PROMO_CODE_PREFIX: () => PROMO_CODE_PREFIX,
116
131
  PUBLIC_SHARE_PATH_TYPES: () => PUBLIC_SHARE_PATH_TYPES,
117
132
  PostTypeLabels: () => PostTypeLabels,
133
+ RECORD_AD_IMPRESSION_MUTATION: () => RECORD_AD_IMPRESSION_MUTATION,
118
134
  RELATION_OVERLAY_LAYOUT_VERSION: () => RELATION_OVERLAY_LAYOUT_VERSION,
119
135
  RELATION_SHARE_APPLICATION: () => RELATION_SHARE_APPLICATION,
120
136
  RELATION_SHARE_INVITATION: () => RELATION_SHARE_INVITATION,
@@ -154,6 +170,8 @@ __export(index_exports, {
154
170
  TIERS_BY_PRIORITY: () => TIERS_BY_PRIORITY,
155
171
  TIER_DISPLAY_LABELS: () => TIER_DISPLAY_LABELS,
156
172
  TIER_FROM_LICENCE: () => TIER_FROM_LICENCE,
173
+ UPDATE_AD_DAILY_PRICE_MUTATION: () => UPDATE_AD_DAILY_PRICE_MUTATION,
174
+ UPDATE_AD_SETTINGS_MUTATION: () => UPDATE_AD_SETTINGS_MUTATION,
157
175
  USER_STORAGE_KEY: () => USER_STORAGE_KEY,
158
176
  WILDCARD_PERMISSION: () => WILDCARD_PERMISSION,
159
177
  accumulateItems: () => accumulateItems,
@@ -1446,6 +1464,7 @@ var PROMO_CODE_PREFIX = "CM-";
1446
1464
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
1447
1465
  EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
1448
1466
  EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
1467
+ EnumAdShowOn2["MARKET_SEARCH"] = "Market_search";
1449
1468
  EnumAdShowOn2["PARTNERS_PAGE"] = "Partners_page";
1450
1469
  EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
1451
1470
  return EnumAdShowOn2;
@@ -1466,6 +1485,40 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
1466
1485
  EnumAdStyle2["RISE"] = "Rise";
1467
1486
  return EnumAdStyle2;
1468
1487
  })(EnumAdStyle || {});
1488
+ var EnumAdBookingSlotKind = /* @__PURE__ */ ((EnumAdBookingSlotKind2) => {
1489
+ EnumAdBookingSlotKind2["PAID"] = "paid";
1490
+ EnumAdBookingSlotKind2["RESERVED"] = "reserved";
1491
+ return EnumAdBookingSlotKind2;
1492
+ })(EnumAdBookingSlotKind || {});
1493
+ var EnumAdBookingState = /* @__PURE__ */ ((EnumAdBookingState2) => {
1494
+ EnumAdBookingState2["HELD"] = "held";
1495
+ EnumAdBookingState2["PENDING_APPROVAL"] = "pending_approval";
1496
+ EnumAdBookingState2["APPROVED"] = "approved";
1497
+ EnumAdBookingState2["FAILED"] = "failed";
1498
+ EnumAdBookingState2["CANCELLED"] = "cancelled";
1499
+ EnumAdBookingState2["REJECTED"] = "rejected";
1500
+ return EnumAdBookingState2;
1501
+ })(EnumAdBookingState || {});
1502
+ var EnumAdPaymentStatus = /* @__PURE__ */ ((EnumAdPaymentStatus2) => {
1503
+ EnumAdPaymentStatus2["PENDING"] = "pending";
1504
+ EnumAdPaymentStatus2["PAID"] = "paid";
1505
+ EnumAdPaymentStatus2["FAILED"] = "failed";
1506
+ EnumAdPaymentStatus2["CANCELLED"] = "cancelled";
1507
+ return EnumAdPaymentStatus2;
1508
+ })(EnumAdPaymentStatus || {});
1509
+ var EnumAdEntitlementSource = /* @__PURE__ */ ((EnumAdEntitlementSource2) => {
1510
+ EnumAdEntitlementSource2["PRO_PLUS"] = "pro_plus";
1511
+ EnumAdEntitlementSource2["ADMIN"] = "admin";
1512
+ EnumAdEntitlementSource2["ORGANIZER"] = "organizer";
1513
+ EnumAdEntitlementSource2["PARTNER"] = "partner";
1514
+ return EnumAdEntitlementSource2;
1515
+ })(EnumAdEntitlementSource || {});
1516
+ var EnumAdApprovalStatus = /* @__PURE__ */ ((EnumAdApprovalStatus2) => {
1517
+ EnumAdApprovalStatus2["PENDING"] = "pending";
1518
+ EnumAdApprovalStatus2["APPROVED"] = "approved";
1519
+ EnumAdApprovalStatus2["REJECTED"] = "rejected";
1520
+ return EnumAdApprovalStatus2;
1521
+ })(EnumAdApprovalStatus || {});
1469
1522
 
1470
1523
  // src/types/resourceActivities.ts
1471
1524
  var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
@@ -4086,6 +4139,8 @@ var STRIPE_FIELDS_FRAGMENT = import_client.gql`
4086
4139
  currentPlan
4087
4140
  startDate
4088
4141
  endDate
4142
+ paymentFailedAt
4143
+ paymentGracePeriodEndsAt
4089
4144
  pendingPlan
4090
4145
  pendingBillingPeriod
4091
4146
  pendingChangeEffectiveAt
@@ -5247,6 +5302,7 @@ var GET_USER_RESOURCES = import_client9.gql`
5247
5302
  _id
5248
5303
  logo
5249
5304
  name
5305
+ region
5250
5306
  resourceType
5251
5307
  }
5252
5308
  }
@@ -7395,12 +7451,174 @@ var useGetAdsByRegion = (region, status) => {
7395
7451
  };
7396
7452
  };
7397
7453
 
7398
- // src/graphql/hooks/resourceActivities/hooksMutation.ts
7454
+ // src/graphql/queries/adBooking.ts
7455
+ var import_client48 = require("@apollo/client");
7456
+ var AD_BOOKING_FIELDS_FRAGMENT = import_client48.gql`
7457
+ fragment AdBookingFields on AdBookingGraphQLType {
7458
+ _id
7459
+ adId
7460
+ approvalStatus
7461
+ dayKey
7462
+ placement
7463
+ region
7464
+ resource {
7465
+ adDescription
7466
+ adImage
7467
+ adStyle
7468
+ adTitle
7469
+ adType
7470
+ resourceId
7471
+ resourceName
7472
+ resourceRegion
7473
+ resourceSlug
7474
+ resourceType
7475
+ }
7476
+ slotKind
7477
+ state
7478
+ stripeCheckoutSessionId
7479
+ unitAmount
7480
+ }
7481
+ `;
7482
+ var GET_AD_DAY_AVAILABILITY = import_client48.gql`
7483
+ query getAdDayAvailability(
7484
+ $region: String!
7485
+ $dayKey: String!
7486
+ $placement: AdShowOnEnum!
7487
+ ) {
7488
+ adDayAvailability(region: $region, dayKey: $dayKey, placement: $placement) {
7489
+ currency
7490
+ paidAvailable
7491
+ reservedAvailable
7492
+ unitAmount
7493
+ }
7494
+ }
7495
+ `;
7496
+ var GET_MY_AD_BOOKINGS = import_client48.gql`
7497
+ query getMyAdBookings {
7498
+ myAdBookings {
7499
+ ...AdBookingFields
7500
+ }
7501
+ }
7502
+ ${AD_BOOKING_FIELDS_FRAGMENT}
7503
+ `;
7504
+ var GET_AD_BOOKING = import_client48.gql`
7505
+ query getAdBooking($id: ID!) {
7506
+ adBooking(id: $id) {
7507
+ ...AdBookingFields
7508
+ }
7509
+ }
7510
+ ${AD_BOOKING_FIELDS_FRAGMENT}
7511
+ `;
7512
+ var GET_PENDING_AD_BOOKINGS = import_client48.gql`
7513
+ query getPendingAdBookings {
7514
+ pendingAdBookings {
7515
+ ...AdBookingFields
7516
+ }
7517
+ }
7518
+ ${AD_BOOKING_FIELDS_FRAGMENT}
7519
+ `;
7520
+ var GET_AD_DAILY_PRICES = import_client48.gql`
7521
+ query getAdDailyPrices {
7522
+ adDailyPrices {
7523
+ active
7524
+ currency
7525
+ key
7526
+ revision
7527
+ unitAmount
7528
+ }
7529
+ }
7530
+ `;
7531
+ var GET_AD_SETTINGS = import_client48.gql`
7532
+ query getAdSettings {
7533
+ adSettings {
7534
+ approvalRequired
7535
+ minAppearancesPerHour
7536
+ paidSlotsPerPlacement
7537
+ reservedSlotsPerPlacement
7538
+ rotationSeconds
7539
+ }
7540
+ }
7541
+ `;
7542
+
7543
+ // src/graphql/mutations/adBooking.ts
7399
7544
  var import_client49 = require("@apollo/client");
7545
+ var CREATE_AD_CHECKOUT_MUTATION = import_client49.gql`
7546
+ mutation createAdCheckout($input: CreateAdCheckoutInputGraphQLType!) {
7547
+ createAdCheckout(input: $input) {
7548
+ data {
7549
+ bookingId
7550
+ checkoutUrl
7551
+ sessionId
7552
+ }
7553
+ message
7554
+ }
7555
+ }
7556
+ `;
7557
+ var CLAIM_RESERVED_AD_DAY_MUTATION = import_client49.gql`
7558
+ mutation claimReservedAdDay($input: ClaimReservedAdDayInputType!) {
7559
+ claimReservedAdDay(input: $input) {
7560
+ data {
7561
+ ...AdBookingFields
7562
+ }
7563
+ message
7564
+ }
7565
+ }
7566
+ ${AD_BOOKING_FIELDS_FRAGMENT}
7567
+ `;
7568
+ var APPROVE_AD_BOOKING_MUTATION = import_client49.gql`
7569
+ mutation approveAdBooking($bookingId: ID!, $approved: Boolean!) {
7570
+ approveAdBooking(bookingId: $bookingId, approved: $approved) {
7571
+ data {
7572
+ ...AdBookingFields
7573
+ }
7574
+ message
7575
+ }
7576
+ }
7577
+ ${AD_BOOKING_FIELDS_FRAGMENT}
7578
+ `;
7579
+ var UPDATE_AD_DAILY_PRICE_MUTATION = import_client49.gql`
7580
+ mutation updateAdDailyPrice($input: UpdateAdDailyPriceInputGraphQLType!) {
7581
+ updateAdDailyPrice(input: $input) {
7582
+ data {
7583
+ active
7584
+ currency
7585
+ key
7586
+ revision
7587
+ unitAmount
7588
+ }
7589
+ message
7590
+ }
7591
+ }
7592
+ `;
7593
+ var UPDATE_AD_SETTINGS_MUTATION = import_client49.gql`
7594
+ mutation updateAdSettings($input: UpdateAdSettingsInputGraphQLType!) {
7595
+ updateAdSettings(input: $input) {
7596
+ data {
7597
+ approvalRequired
7598
+ minAppearancesPerHour
7599
+ paidSlotsPerPlacement
7600
+ reservedSlotsPerPlacement
7601
+ rotationSeconds
7602
+ }
7603
+ message
7604
+ }
7605
+ }
7606
+ `;
7607
+ var RECORD_AD_IMPRESSION_MUTATION = import_client49.gql`
7608
+ mutation recordAdImpression($input: RecordAdImpressionInputGraphQLType!) {
7609
+ recordAdImpression(input: $input) {
7610
+ data
7611
+ message
7612
+ }
7613
+ }
7614
+ `;
7615
+
7616
+ // src/graphql/hooks/resourceActivities/hooksMutation.ts
7617
+ var import_client51 = require("@apollo/client");
7400
7618
 
7401
7619
  // src/graphql/mutations/resourceActivities.ts
7402
- var import_client48 = require("@apollo/client");
7403
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
7620
+ var import_client50 = require("@apollo/client");
7621
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client50.gql`
7404
7622
  mutation createResourceActivity($input: ResourceActivityInputType!) {
7405
7623
  createResourceActivity(input: $input) {
7406
7624
  data
@@ -7411,16 +7629,16 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
7411
7629
 
7412
7630
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
7413
7631
  var useCreateResourceActivity = () => {
7414
- const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
7632
+ const [createResourceActivity, { loading, error }] = (0, import_client51.useMutation)(CREATE_RESOURCE_ACTIVITY_MUTATION);
7415
7633
  return { createResourceActivity, error, loading };
7416
7634
  };
7417
7635
 
7418
7636
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
7419
- var import_client51 = require("@apollo/client");
7637
+ var import_client53 = require("@apollo/client");
7420
7638
 
7421
7639
  // src/graphql/queries/resourceActivities.ts
7422
- var import_client50 = require("@apollo/client");
7423
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
7640
+ var import_client52 = require("@apollo/client");
7641
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client52.gql`
7424
7642
  fragment ResourceActivityFields on ResourceActivityType {
7425
7643
  resourceId
7426
7644
  resourceType
@@ -7439,7 +7657,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
7439
7657
  }
7440
7658
  ${LOCATION_GEO_FIELDS_FRAGMENT}
7441
7659
  `;
7442
- var GET_RESOURCE_ACTIVITY = import_client50.gql`
7660
+ var GET_RESOURCE_ACTIVITY = import_client52.gql`
7443
7661
  query getResourceActivity(
7444
7662
  $resourceType: ResourceTypeEnum!
7445
7663
  $resourceId: ID!
@@ -7453,7 +7671,7 @@ var GET_RESOURCE_ACTIVITY = import_client50.gql`
7453
7671
 
7454
7672
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
7455
7673
  var useGetResourceActivity = (resourceId, resourceType) => {
7456
- const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITY, {
7674
+ const { data, loading, error, refetch } = (0, import_client53.useQuery)(GET_RESOURCE_ACTIVITY, {
7457
7675
  fetchPolicy: "network-only",
7458
7676
  variables: { resourceId, resourceType }
7459
7677
  });
@@ -7466,11 +7684,11 @@ var useGetResourceActivity = (resourceId, resourceType) => {
7466
7684
  };
7467
7685
 
7468
7686
  // src/graphql/hooks/stripe/hooksMutation.ts
7469
- var import_client53 = require("@apollo/client");
7687
+ var import_client55 = require("@apollo/client");
7470
7688
 
7471
7689
  // src/graphql/mutations/stripe.ts
7472
- var import_client52 = require("@apollo/client");
7473
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
7690
+ var import_client54 = require("@apollo/client");
7691
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client54.gql`
7474
7692
  mutation createCheckoutSession($input: CreateCheckoutSessionInputType!) {
7475
7693
  createCheckoutSession(input: $input) {
7476
7694
  data {
@@ -7481,7 +7699,7 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
7481
7699
  }
7482
7700
  }
7483
7701
  `;
7484
- var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
7702
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client54.gql`
7485
7703
  mutation cancelSubscription {
7486
7704
  cancelSubscription {
7487
7705
  data {
@@ -7501,7 +7719,7 @@ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
7501
7719
  }
7502
7720
  }
7503
7721
  `;
7504
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
7722
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client54.gql`
7505
7723
  mutation updateSubscriptionPlan($input: UpdateSubscriptionPlanInputType!) {
7506
7724
  updateSubscriptionPlan(input: $input) {
7507
7725
  data {
@@ -7521,7 +7739,7 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
7521
7739
  }
7522
7740
  }
7523
7741
  `;
7524
- var CREATE_CUSTOMER_PORTAL = import_client52.gql`
7742
+ var CREATE_CUSTOMER_PORTAL = import_client54.gql`
7525
7743
  mutation createCustomerPortal($returnUrl: String) {
7526
7744
  createCustomerPortal(returnUrl: $returnUrl) {
7527
7745
  data {
@@ -7534,34 +7752,36 @@ var CREATE_CUSTOMER_PORTAL = import_client52.gql`
7534
7752
 
7535
7753
  // src/graphql/hooks/stripe/hooksMutation.ts
7536
7754
  var useCreateCheckoutSession = () => {
7537
- const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
7755
+ const [createCheckoutSession, { loading, error }] = (0, import_client55.useMutation)(CREATE_CHECKOUT_SESSION_MUTATION);
7538
7756
  return { createCheckoutSession, error, loading };
7539
7757
  };
7540
7758
  var useCancelSubscription = () => {
7541
- const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
7759
+ const [cancelSubscription, { loading, error }] = (0, import_client55.useMutation)(CANCEL_SUBSCRIPTION_MUTATION);
7542
7760
  return { cancelSubscription, error, loading };
7543
7761
  };
7544
7762
  var useUpdateSubscriptionPlan = () => {
7545
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
7763
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client55.useMutation)(UPDATE_SUBSCRIPTION_PLAN_MUTATION);
7546
7764
  return { error, loading, updateSubscriptionPlan };
7547
7765
  };
7548
7766
  var useCreateCustomerPortal = () => {
7549
- const [createCustomerPortal, { loading, error }] = (0, import_client53.useMutation)(CREATE_CUSTOMER_PORTAL);
7767
+ const [createCustomerPortal, { loading, error }] = (0, import_client55.useMutation)(CREATE_CUSTOMER_PORTAL);
7550
7768
  return { createCustomerPortal, error, loading };
7551
7769
  };
7552
7770
 
7553
7771
  // src/graphql/hooks/stripe/hooksQuery.ts
7554
- var import_client55 = require("@apollo/client");
7772
+ var import_client57 = require("@apollo/client");
7555
7773
 
7556
7774
  // src/graphql/queries/stripe.ts
7557
- var import_client54 = require("@apollo/client");
7558
- var GET_SUBSCRIPTION_STATUS = import_client54.gql`
7775
+ var import_client56 = require("@apollo/client");
7776
+ var GET_SUBSCRIPTION_STATUS = import_client56.gql`
7559
7777
  query getSubscriptionStatus {
7560
7778
  getSubscriptionStatus {
7561
7779
  billingPeriod
7562
7780
  cancelAtPeriodEnd
7563
7781
  currentPlan
7564
7782
  endDate
7783
+ paymentFailedAt
7784
+ paymentGracePeriodEndsAt
7565
7785
  pendingBillingPeriod
7566
7786
  pendingChangeEffectiveAt
7567
7787
  pendingPlan
@@ -7572,7 +7792,7 @@ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
7572
7792
  }
7573
7793
  }
7574
7794
  `;
7575
- var GET_SUBSCRIPTION_PLANS = import_client54.gql`
7795
+ var GET_SUBSCRIPTION_PLANS = import_client56.gql`
7576
7796
  query getSubscriptionPlans {
7577
7797
  getSubscriptionPlans {
7578
7798
  plans {
@@ -7602,7 +7822,7 @@ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
7602
7822
 
7603
7823
  // src/graphql/hooks/stripe/hooksQuery.ts
7604
7824
  var useGetSubscriptionStatus = () => {
7605
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
7825
+ const { data, loading, error, refetch } = (0, import_client57.useQuery)(GET_SUBSCRIPTION_STATUS);
7606
7826
  return {
7607
7827
  data: data?.getSubscriptionStatus,
7608
7828
  error,
@@ -7611,7 +7831,7 @@ var useGetSubscriptionStatus = () => {
7611
7831
  };
7612
7832
  };
7613
7833
  var useGetSubscriptionPlans = () => {
7614
- const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_PLANS);
7834
+ const { data, loading, error, refetch } = (0, import_client57.useQuery)(GET_SUBSCRIPTION_PLANS);
7615
7835
  return {
7616
7836
  data: data?.getSubscriptionPlans,
7617
7837
  error,
@@ -7621,11 +7841,11 @@ var useGetSubscriptionPlans = () => {
7621
7841
  };
7622
7842
 
7623
7843
  // src/graphql/hooks/partner/hooksMutation.ts
7624
- var import_client57 = require("@apollo/client");
7844
+ var import_client59 = require("@apollo/client");
7625
7845
 
7626
7846
  // src/graphql/mutations/partner.ts
7627
- var import_client56 = require("@apollo/client");
7628
- var CREATE_PARTNER_MUTATION = import_client56.gql`
7847
+ var import_client58 = require("@apollo/client");
7848
+ var CREATE_PARTNER_MUTATION = import_client58.gql`
7629
7849
  mutation createPartner($input: PartnerInputType!) {
7630
7850
  createPartner(input: $input) {
7631
7851
  data {
@@ -7636,7 +7856,7 @@ var CREATE_PARTNER_MUTATION = import_client56.gql`
7636
7856
  }
7637
7857
  ${PARTNER}
7638
7858
  `;
7639
- var UPDATE_PARTNER_MUTATION = import_client56.gql`
7859
+ var UPDATE_PARTNER_MUTATION = import_client58.gql`
7640
7860
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
7641
7861
  updatePartner(_id: $_id, input: $input) {
7642
7862
  data {
@@ -7647,7 +7867,7 @@ var UPDATE_PARTNER_MUTATION = import_client56.gql`
7647
7867
  }
7648
7868
  ${PARTNER}
7649
7869
  `;
7650
- var DELETE_PARTNER_MUTATION = import_client56.gql`
7870
+ var DELETE_PARTNER_MUTATION = import_client58.gql`
7651
7871
  mutation deletePartner($_id: ID!) {
7652
7872
  deletePartner(_id: $_id) {
7653
7873
  data
@@ -7658,14 +7878,14 @@ var DELETE_PARTNER_MUTATION = import_client56.gql`
7658
7878
 
7659
7879
  // src/graphql/hooks/partner/hooksMutation.ts
7660
7880
  var useCreatePartner = () => {
7661
- const [createPartner, { loading, error }] = (0, import_client57.useMutation)(CREATE_PARTNER_MUTATION, {
7881
+ const [createPartner, { loading, error }] = (0, import_client59.useMutation)(CREATE_PARTNER_MUTATION, {
7662
7882
  awaitRefetchQueries: true,
7663
7883
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7664
7884
  });
7665
7885
  return { createPartner, error, loading };
7666
7886
  };
7667
7887
  var useUpdatePartner = () => {
7668
- const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(UPDATE_PARTNER_MUTATION, {
7888
+ const [updatePartner, { loading, error }] = (0, import_client59.useMutation)(UPDATE_PARTNER_MUTATION, {
7669
7889
  awaitRefetchQueries: true,
7670
7890
  refetchQueries: (mutationResult) => {
7671
7891
  const partnerId = mutationResult?.data?.updatePartner?.data?._id;
@@ -7679,7 +7899,7 @@ var useUpdatePartner = () => {
7679
7899
  return { error, loading, updatePartner };
7680
7900
  };
7681
7901
  var useDeletePartner = () => {
7682
- const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(DELETE_PARTNER_MUTATION, {
7902
+ const [deletePartner, { loading, error }] = (0, import_client59.useMutation)(DELETE_PARTNER_MUTATION, {
7683
7903
  awaitRefetchQueries: true,
7684
7904
  refetchQueries: [{ query: GET_USER_PARTNERS }]
7685
7905
  });
@@ -7687,9 +7907,9 @@ var useDeletePartner = () => {
7687
7907
  };
7688
7908
 
7689
7909
  // src/graphql/hooks/partner/hooksQuery.ts
7690
- var import_client58 = require("@apollo/client");
7910
+ var import_client60 = require("@apollo/client");
7691
7911
  var useGetPartner = (_id) => {
7692
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(
7912
+ const { loading, error, data, refetch } = (0, import_client60.useQuery)(
7693
7913
  GET_PARTNER,
7694
7914
  {
7695
7915
  fetchPolicy: "network-only",
@@ -7707,7 +7927,7 @@ var useGetPartnersByRegion = (region, options) => {
7707
7927
  ...hasOptions ? { options: queryOptions } : {},
7708
7928
  region
7709
7929
  };
7710
- const { loading, error, data, refetch, fetchMore } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
7930
+ const { loading, error, data, refetch, fetchMore } = (0, import_client60.useQuery)(GET_PARTNERS_BY_REGION, {
7711
7931
  fetchPolicy: "network-only",
7712
7932
  skip,
7713
7933
  variables
@@ -7723,7 +7943,7 @@ var useGetPartnersByRegion = (region, options) => {
7723
7943
  };
7724
7944
  var useSearchPartners = (search, region) => {
7725
7945
  const normalizedSearch = search.trim();
7726
- const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
7946
+ const { loading, error, data, refetch } = (0, import_client60.useQuery)(SEARCH_PARTNERS, {
7727
7947
  fetchPolicy: "network-only",
7728
7948
  skip: normalizedSearch.length < 3,
7729
7949
  variables: { region, search: normalizedSearch }
@@ -7733,11 +7953,11 @@ var useSearchPartners = (search, region) => {
7733
7953
  };
7734
7954
 
7735
7955
  // src/graphql/hooks/post/hooksMutation.ts
7736
- var import_client60 = require("@apollo/client");
7956
+ var import_client62 = require("@apollo/client");
7737
7957
 
7738
7958
  // src/graphql/mutations/post.ts
7739
- var import_client59 = require("@apollo/client");
7740
- var CREATE_POST_MUTATION = import_client59.gql`
7959
+ var import_client61 = require("@apollo/client");
7960
+ var CREATE_POST_MUTATION = import_client61.gql`
7741
7961
  mutation createPost($input: PostInputType!) {
7742
7962
  createPost(input: $input) {
7743
7963
  data {
@@ -7748,7 +7968,7 @@ var CREATE_POST_MUTATION = import_client59.gql`
7748
7968
  }
7749
7969
  ${POST_FIELDS_FRAGMENT}
7750
7970
  `;
7751
- var UPDATE_POST_MUTATION = import_client59.gql`
7971
+ var UPDATE_POST_MUTATION = import_client61.gql`
7752
7972
  mutation updatePost($_id: ID!, $input: PostInputType!) {
7753
7973
  updatePost(_id: $_id, input: $input) {
7754
7974
  data {
@@ -7759,7 +7979,7 @@ var UPDATE_POST_MUTATION = import_client59.gql`
7759
7979
  }
7760
7980
  ${POST_FIELDS_FRAGMENT}
7761
7981
  `;
7762
- var DELETE_POST_MUTATION = import_client59.gql`
7982
+ var DELETE_POST_MUTATION = import_client61.gql`
7763
7983
  mutation deletePost($_id: ID!) {
7764
7984
  deletePost(_id: $_id) {
7765
7985
  data
@@ -7770,21 +7990,21 @@ var DELETE_POST_MUTATION = import_client59.gql`
7770
7990
 
7771
7991
  // src/graphql/hooks/post/hooksMutation.ts
7772
7992
  var useCreatePost = () => {
7773
- const [createPost, { loading, error }] = (0, import_client60.useMutation)(CREATE_POST_MUTATION, {
7993
+ const [createPost, { loading, error }] = (0, import_client62.useMutation)(CREATE_POST_MUTATION, {
7774
7994
  awaitRefetchQueries: true,
7775
7995
  refetchQueries: [{ query: GET_POSTS }]
7776
7996
  });
7777
7997
  return { createPost, error, loading };
7778
7998
  };
7779
7999
  var useUpdatePost = () => {
7780
- const [updatePost, { loading, error }] = (0, import_client60.useMutation)(UPDATE_POST_MUTATION, {
8000
+ const [updatePost, { loading, error }] = (0, import_client62.useMutation)(UPDATE_POST_MUTATION, {
7781
8001
  awaitRefetchQueries: true,
7782
8002
  refetchQueries: [{ query: GET_POSTS }]
7783
8003
  });
7784
8004
  return { error, loading, updatePost };
7785
8005
  };
7786
8006
  var useDeletePost = () => {
7787
- const [deletePost, { loading, error }] = (0, import_client60.useMutation)(DELETE_POST_MUTATION, {
8007
+ const [deletePost, { loading, error }] = (0, import_client62.useMutation)(DELETE_POST_MUTATION, {
7788
8008
  awaitRefetchQueries: true,
7789
8009
  refetchQueries: [{ query: GET_POSTS }]
7790
8010
  });
@@ -7792,9 +8012,9 @@ var useDeletePost = () => {
7792
8012
  };
7793
8013
 
7794
8014
  // src/graphql/hooks/post/hooksQuery.ts
7795
- var import_client61 = require("@apollo/client");
8015
+ var import_client63 = require("@apollo/client");
7796
8016
  var useGetPost = (_id) => {
7797
- const { data, loading, error, refetch } = (0, import_client61.useQuery)(GET_POST, {
8017
+ const { data, loading, error, refetch } = (0, import_client63.useQuery)(GET_POST, {
7798
8018
  fetchPolicy: "network-only",
7799
8019
  skip: !_id || _id === "",
7800
8020
  variables: { _id }
@@ -7803,11 +8023,11 @@ var useGetPost = (_id) => {
7803
8023
  };
7804
8024
 
7805
8025
  // src/graphql/hooks/appSettings/hooksMutation.ts
7806
- var import_client64 = require("@apollo/client");
8026
+ var import_client66 = require("@apollo/client");
7807
8027
 
7808
8028
  // src/graphql/mutations/appSettings.ts
7809
- var import_client62 = require("@apollo/client");
7810
- var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
8029
+ var import_client64 = require("@apollo/client");
8030
+ var UPDATE_APP_SETTINGS_MUTATION = import_client64.gql`
7811
8031
  mutation updateAppSettings($input: AppSettingsInputType!) {
7812
8032
  updateAppSettings(input: $input) {
7813
8033
  data
@@ -7815,7 +8035,7 @@ var UPDATE_APP_SETTINGS_MUTATION = import_client62.gql`
7815
8035
  }
7816
8036
  }
7817
8037
  `;
7818
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
8038
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client64.gql`
7819
8039
  mutation crawlGoogleMarkets {
7820
8040
  crawlGoogleMarkets {
7821
8041
  data
@@ -7823,7 +8043,7 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client62.gql`
7823
8043
  }
7824
8044
  }
7825
8045
  `;
7826
- var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
8046
+ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client64.gql`
7827
8047
  mutation updateGoogleImportedMarkets {
7828
8048
  updateGoogleImportedMarkets {
7829
8049
  data
@@ -7833,8 +8053,8 @@ var UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION = import_client62.gql`
7833
8053
  `;
7834
8054
 
7835
8055
  // src/graphql/queries/appSettings.ts
7836
- var import_client63 = require("@apollo/client");
7837
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
8056
+ var import_client65 = require("@apollo/client");
8057
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client65.gql`
7838
8058
  fragment AppSettingsFields on AppSettingsType {
7839
8059
  _id
7840
8060
  appVersion
@@ -7845,7 +8065,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client63.gql`
7845
8065
  updatedAt
7846
8066
  }
7847
8067
  `;
7848
- var GET_APP_SETTINGS = import_client63.gql`
8068
+ var GET_APP_SETTINGS = import_client65.gql`
7849
8069
  query getAppSettings {
7850
8070
  appSettings {
7851
8071
  ...AppSettingsFields
@@ -7856,25 +8076,25 @@ var GET_APP_SETTINGS = import_client63.gql`
7856
8076
 
7857
8077
  // src/graphql/hooks/appSettings/hooksMutation.ts
7858
8078
  var useUpdateAppSettings = () => {
7859
- const [updateAppSettings, { loading, error }] = (0, import_client64.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
8079
+ const [updateAppSettings, { loading, error }] = (0, import_client66.useMutation)(UPDATE_APP_SETTINGS_MUTATION, {
7860
8080
  awaitRefetchQueries: true,
7861
8081
  refetchQueries: [{ query: GET_APP_SETTINGS }]
7862
8082
  });
7863
8083
  return { error, loading, updateAppSettings };
7864
8084
  };
7865
8085
  var useCrawlGoogleMarkets = () => {
7866
- const [crawlGoogleMarkets, { loading, error }] = (0, import_client64.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
8086
+ const [crawlGoogleMarkets, { loading, error }] = (0, import_client66.useMutation)(CRAWL_GOOGLE_MARKETS_MUTATION);
7867
8087
  return { crawlGoogleMarkets, error, loading };
7868
8088
  };
7869
8089
  var useUpdateGoogleImportedMarkets = () => {
7870
- const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client64.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
8090
+ const [updateGoogleImportedMarkets, { loading, error }] = (0, import_client66.useMutation)(UPDATE_GOOGLE_IMPORTED_MARKET_MUTATION);
7871
8091
  return { error, loading, updateGoogleImportedMarkets };
7872
8092
  };
7873
8093
 
7874
8094
  // src/graphql/hooks/appSettings/hooksQuery.ts
7875
- var import_client65 = require("@apollo/client");
8095
+ var import_client67 = require("@apollo/client");
7876
8096
  var useGetAppSettings = () => {
7877
- const { loading, error, data, refetch } = (0, import_client65.useQuery)(GET_APP_SETTINGS, {
8097
+ const { loading, error, data, refetch } = (0, import_client67.useQuery)(GET_APP_SETTINGS, {
7878
8098
  fetchPolicy: "network-only"
7879
8099
  });
7880
8100
  const appSettings = data?.appSettings || null;
@@ -7882,14 +8102,14 @@ var useGetAppSettings = () => {
7882
8102
  };
7883
8103
 
7884
8104
  // src/graphql/hooks/billingCatalog/hooksMutation.ts
7885
- var import_client68 = require("@apollo/client");
8105
+ var import_client70 = require("@apollo/client");
7886
8106
 
7887
8107
  // src/graphql/mutations/billingCatalog.ts
7888
- var import_client67 = require("@apollo/client");
8108
+ var import_client69 = require("@apollo/client");
7889
8109
 
7890
8110
  // src/graphql/queries/billingCatalog.ts
7891
- var import_client66 = require("@apollo/client");
7892
- var BILLING_CATALOG_FIELDS_FRAGMENT = import_client66.gql`
8111
+ var import_client68 = require("@apollo/client");
8112
+ var BILLING_CATALOG_FIELDS_FRAGMENT = import_client68.gql`
7893
8113
  fragment BillingCatalogFields on BillingCatalogEntryType {
7894
8114
  _id
7895
8115
  active
@@ -7908,7 +8128,7 @@ var BILLING_CATALOG_FIELDS_FRAGMENT = import_client66.gql`
7908
8128
  updatedBy
7909
8129
  }
7910
8130
  `;
7911
- var GET_BILLING_CATALOG = import_client66.gql`
8131
+ var GET_BILLING_CATALOG = import_client68.gql`
7912
8132
  query getBillingCatalog {
7913
8133
  billingCatalog {
7914
8134
  ...BillingCatalogFields
@@ -7918,7 +8138,7 @@ var GET_BILLING_CATALOG = import_client66.gql`
7918
8138
  `;
7919
8139
 
7920
8140
  // src/graphql/mutations/billingCatalog.ts
7921
- var UPDATE_BILLING_CATALOG_PRICE_MUTATION = import_client67.gql`
8141
+ var UPDATE_BILLING_CATALOG_PRICE_MUTATION = import_client69.gql`
7922
8142
  mutation updateBillingCatalogPrice(
7923
8143
  $input: UpdateBillingCatalogPriceInputType!
7924
8144
  ) {
@@ -7931,7 +8151,7 @@ var UPDATE_BILLING_CATALOG_PRICE_MUTATION = import_client67.gql`
7931
8151
  }
7932
8152
  ${BILLING_CATALOG_FIELDS_FRAGMENT}
7933
8153
  `;
7934
- var SYNC_BILLING_CATALOG_PRICE_MUTATION = import_client67.gql`
8154
+ var SYNC_BILLING_CATALOG_PRICE_MUTATION = import_client69.gql`
7935
8155
  mutation syncBillingCatalogPrice($input: SyncBillingCatalogPriceInputType!) {
7936
8156
  syncBillingCatalogPrice(input: $input) {
7937
8157
  data {
@@ -7945,14 +8165,14 @@ var SYNC_BILLING_CATALOG_PRICE_MUTATION = import_client67.gql`
7945
8165
 
7946
8166
  // src/graphql/hooks/billingCatalog/hooksMutation.ts
7947
8167
  var useUpdateBillingCatalogPrice = () => {
7948
- const [updateBillingCatalogPrice, { error, loading }] = (0, import_client68.useMutation)(UPDATE_BILLING_CATALOG_PRICE_MUTATION, {
8168
+ const [updateBillingCatalogPrice, { error, loading }] = (0, import_client70.useMutation)(UPDATE_BILLING_CATALOG_PRICE_MUTATION, {
7949
8169
  awaitRefetchQueries: true,
7950
8170
  refetchQueries: [{ query: GET_BILLING_CATALOG }]
7951
8171
  });
7952
8172
  return { error, loading, updateBillingCatalogPrice };
7953
8173
  };
7954
8174
  var useSyncBillingCatalogPrice = () => {
7955
- const [syncBillingCatalogPrice, { error, loading }] = (0, import_client68.useMutation)(SYNC_BILLING_CATALOG_PRICE_MUTATION, {
8175
+ const [syncBillingCatalogPrice, { error, loading }] = (0, import_client70.useMutation)(SYNC_BILLING_CATALOG_PRICE_MUTATION, {
7956
8176
  awaitRefetchQueries: true,
7957
8177
  refetchQueries: [{ query: GET_BILLING_CATALOG }]
7958
8178
  });
@@ -7960,9 +8180,9 @@ var useSyncBillingCatalogPrice = () => {
7960
8180
  };
7961
8181
 
7962
8182
  // src/graphql/hooks/billingCatalog/hooksQuery.ts
7963
- var import_client69 = require("@apollo/client");
8183
+ var import_client71 = require("@apollo/client");
7964
8184
  var useGetBillingCatalog = () => {
7965
- const { data, error, loading, refetch } = (0, import_client69.useQuery)(GET_BILLING_CATALOG, {
8185
+ const { data, error, loading, refetch } = (0, import_client71.useQuery)(GET_BILLING_CATALOG, {
7966
8186
  fetchPolicy: "network-only"
7967
8187
  });
7968
8188
  return {
@@ -7974,14 +8194,14 @@ var useGetBillingCatalog = () => {
7974
8194
  };
7975
8195
 
7976
8196
  // src/graphql/hooks/game/hooksMutation.ts
7977
- var import_client72 = require("@apollo/client");
8197
+ var import_client74 = require("@apollo/client");
7978
8198
 
7979
8199
  // src/graphql/mutations/game.ts
7980
- var import_client71 = require("@apollo/client");
8200
+ var import_client73 = require("@apollo/client");
7981
8201
 
7982
8202
  // src/graphql/queries/game/game.ts
7983
- var import_client70 = require("@apollo/client");
7984
- var GAME_HISTORY_FIELDS_FRAGMENT = import_client70.gql`
8203
+ var import_client72 = require("@apollo/client");
8204
+ var GAME_HISTORY_FIELDS_FRAGMENT = import_client72.gql`
7985
8205
  fragment GameHistoryFields on GameHistoryType {
7986
8206
  createdAt
7987
8207
  gameDate {
@@ -7996,7 +8216,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client70.gql`
7996
8216
  }
7997
8217
  ${GAME_DATE_FIELDS_FRAGMENT}
7998
8218
  `;
7999
- var GAME_DATA_FIELDS_FRAGMENT = import_client70.gql`
8219
+ var GAME_DATA_FIELDS_FRAGMENT = import_client72.gql`
8000
8220
  fragment GameDataFields on GameDataType {
8001
8221
  dailyClue {
8002
8222
  ...DailyClueGameDataFields
@@ -8011,7 +8231,7 @@ var GAME_DATA_FIELDS_FRAGMENT = import_client70.gql`
8011
8231
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
8012
8232
  ${PUZZLE_GAME_DATA_FIELDS_FRAGMENT}
8013
8233
  `;
8014
- var GAME_FIELDS_FRAGMENT = import_client70.gql`
8234
+ var GAME_FIELDS_FRAGMENT = import_client72.gql`
8015
8235
  fragment GameFields on GameType {
8016
8236
  _id
8017
8237
  active
@@ -8030,7 +8250,7 @@ var GAME_FIELDS_FRAGMENT = import_client70.gql`
8030
8250
  ${GAME_DATA_FIELDS_FRAGMENT}
8031
8251
  ${GAME_HISTORY_FIELDS_FRAGMENT}
8032
8252
  `;
8033
- var GAME_DOC_FIELDS_FRAGMENT = import_client70.gql`
8253
+ var GAME_DOC_FIELDS_FRAGMENT = import_client72.gql`
8034
8254
  fragment GameDocFields on GameDocType {
8035
8255
  _id
8036
8256
  active
@@ -8048,7 +8268,7 @@ var GAME_DOC_FIELDS_FRAGMENT = import_client70.gql`
8048
8268
  ${OWNER_FIELDS_FRAGMENT}
8049
8269
  ${GAME_FIELDS_FRAGMENT}
8050
8270
  `;
8051
- var GET_GAMES = import_client70.gql`
8271
+ var GET_GAMES = import_client72.gql`
8052
8272
  query getGames {
8053
8273
  games {
8054
8274
  ...GameDocFields
@@ -8056,7 +8276,7 @@ var GET_GAMES = import_client70.gql`
8056
8276
  }
8057
8277
  ${GAME_DOC_FIELDS_FRAGMENT}
8058
8278
  `;
8059
- var GET_GAME = import_client70.gql`
8279
+ var GET_GAME = import_client72.gql`
8060
8280
  query getGame($_id: ID) {
8061
8281
  game(_id: $_id) {
8062
8282
  ...GameDocFields
@@ -8064,7 +8284,7 @@ var GET_GAME = import_client70.gql`
8064
8284
  }
8065
8285
  ${GAME_DOC_FIELDS_FRAGMENT}
8066
8286
  `;
8067
- var GET_GAME_LEADERBOARD = import_client70.gql`
8287
+ var GET_GAME_LEADERBOARD = import_client72.gql`
8068
8288
  query getGameLeaderboard {
8069
8289
  gameLeaderboard {
8070
8290
  gameHistory {
@@ -8079,7 +8299,7 @@ var GET_GAME_LEADERBOARD = import_client70.gql`
8079
8299
  `;
8080
8300
 
8081
8301
  // src/graphql/mutations/game.ts
8082
- var START_GAME_MUTATION = import_client71.gql`
8302
+ var START_GAME_MUTATION = import_client73.gql`
8083
8303
  mutation startGame($input: BaseGameInputType!) {
8084
8304
  startGame(input: $input) {
8085
8305
  data {
@@ -8090,7 +8310,7 @@ var START_GAME_MUTATION = import_client71.gql`
8090
8310
  }
8091
8311
  ${GAME_DOC_FIELDS_FRAGMENT}
8092
8312
  `;
8093
- var LEAVE_GAME_MUTATION = import_client71.gql`
8313
+ var LEAVE_GAME_MUTATION = import_client73.gql`
8094
8314
  mutation leaveGame(
8095
8315
  $_id: ID!
8096
8316
  $gameType: GameTypeEnumType!
@@ -8102,7 +8322,7 @@ var LEAVE_GAME_MUTATION = import_client71.gql`
8102
8322
  }
8103
8323
  }
8104
8324
  `;
8105
- var UPDATE_DAILY_CLUE_MUTATION = import_client71.gql`
8325
+ var UPDATE_DAILY_CLUE_MUTATION = import_client73.gql`
8106
8326
  mutation updateDailyClueGame(
8107
8327
  $_id: ID!
8108
8328
  $foundLetter: String!
@@ -8123,7 +8343,7 @@ var UPDATE_DAILY_CLUE_MUTATION = import_client71.gql`
8123
8343
  }
8124
8344
  ${GAME_DOC_FIELDS_FRAGMENT}
8125
8345
  `;
8126
- var UPDATE_PUZZLE_GAME_MUTATION = import_client71.gql`
8346
+ var UPDATE_PUZZLE_GAME_MUTATION = import_client73.gql`
8127
8347
  mutation updatePuzzleGame(
8128
8348
  $_id: ID!
8129
8349
  $answeredQuestions: [PuzzleAnsweredQuestionInputType!]!
@@ -8147,7 +8367,7 @@ var UPDATE_PUZZLE_GAME_MUTATION = import_client71.gql`
8147
8367
 
8148
8368
  // src/graphql/hooks/game/hooksMutation.ts
8149
8369
  var useStartGame = () => {
8150
- const [startGame, { loading, error }] = (0, import_client72.useMutation)(START_GAME_MUTATION, {
8370
+ const [startGame, { loading, error }] = (0, import_client74.useMutation)(START_GAME_MUTATION, {
8151
8371
  awaitRefetchQueries: true,
8152
8372
  refetchQueries: (mutationResult) => {
8153
8373
  const gameId = mutationResult?.data?.startGame?.data?._id;
@@ -8170,7 +8390,7 @@ var useStartGame = () => {
8170
8390
  return { error, loading, startGame };
8171
8391
  };
8172
8392
  var useLeaveGame = () => {
8173
- const [leaveGame, { loading, error }] = (0, import_client72.useMutation)(LEAVE_GAME_MUTATION, {
8393
+ const [leaveGame, { loading, error }] = (0, import_client74.useMutation)(LEAVE_GAME_MUTATION, {
8174
8394
  awaitRefetchQueries: true,
8175
8395
  refetchQueries: [
8176
8396
  {
@@ -8181,7 +8401,7 @@ var useLeaveGame = () => {
8181
8401
  return { error, leaveGame, loading };
8182
8402
  };
8183
8403
  var useUpdateDailyClueGame = () => {
8184
- const [updateDailyClueGame, { loading, error }] = (0, import_client72.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
8404
+ const [updateDailyClueGame, { loading, error }] = (0, import_client74.useMutation)(UPDATE_DAILY_CLUE_MUTATION, {
8185
8405
  awaitRefetchQueries: true,
8186
8406
  refetchQueries: (mutationResult) => {
8187
8407
  const gameId = mutationResult?.data?.updateDailyClueGame?.data?._id;
@@ -8198,7 +8418,7 @@ var useUpdateDailyClueGame = () => {
8198
8418
  return { error, loading, updateDailyClueGame };
8199
8419
  };
8200
8420
  var useUpdatePuzzleGame = () => {
8201
- const [updatePuzzleGame, { loading, error }] = (0, import_client72.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
8421
+ const [updatePuzzleGame, { loading, error }] = (0, import_client74.useMutation)(UPDATE_PUZZLE_GAME_MUTATION, {
8202
8422
  awaitRefetchQueries: true,
8203
8423
  refetchQueries: (mutationResult) => {
8204
8424
  const gameId = mutationResult?.data?.updatePuzzleGame?.data?._id;
@@ -8216,16 +8436,16 @@ var useUpdatePuzzleGame = () => {
8216
8436
  };
8217
8437
 
8218
8438
  // src/graphql/hooks/game/hooksQuery.ts
8219
- var import_client73 = require("@apollo/client");
8439
+ var import_client75 = require("@apollo/client");
8220
8440
  var useGetGames = () => {
8221
- const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAMES, {
8441
+ const { loading, error, data, refetch } = (0, import_client75.useQuery)(GET_GAMES, {
8222
8442
  fetchPolicy: "network-only"
8223
8443
  });
8224
8444
  const games = data?.games || [];
8225
8445
  return { error, games, loading, refetch };
8226
8446
  };
8227
8447
  var useGetGame = (_id) => {
8228
- const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAME, {
8448
+ const { loading, error, data, refetch } = (0, import_client75.useQuery)(GET_GAME, {
8229
8449
  fetchPolicy: "network-only",
8230
8450
  skip: !_id,
8231
8451
  variables: _id ? { _id } : void 0
@@ -8234,7 +8454,7 @@ var useGetGame = (_id) => {
8234
8454
  return { error, game, loading, refetch };
8235
8455
  };
8236
8456
  var useGetGameLeaderboard = () => {
8237
- const { loading, error, data, refetch } = (0, import_client73.useQuery)(GET_GAME_LEADERBOARD, {
8457
+ const { loading, error, data, refetch } = (0, import_client75.useQuery)(GET_GAME_LEADERBOARD, {
8238
8458
  fetchPolicy: "network-only"
8239
8459
  });
8240
8460
  const gameLeaderboard = data?.gameLeaderboard || [];
@@ -8242,14 +8462,14 @@ var useGetGameLeaderboard = () => {
8242
8462
  };
8243
8463
 
8244
8464
  // src/graphql/hooks/school/hooksMutation.ts
8245
- var import_client76 = require("@apollo/client");
8465
+ var import_client78 = require("@apollo/client");
8246
8466
 
8247
8467
  // src/graphql/mutations/school.ts
8248
- var import_client75 = require("@apollo/client");
8468
+ var import_client77 = require("@apollo/client");
8249
8469
 
8250
8470
  // src/graphql/queries/school.ts
8251
- var import_client74 = require("@apollo/client");
8252
- var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client74.gql`
8471
+ var import_client76 = require("@apollo/client");
8472
+ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client76.gql`
8253
8473
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
8254
8474
  _id
8255
8475
  active
@@ -8262,14 +8482,14 @@ var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = import_client74.gql`
8262
8482
  }
8263
8483
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8264
8484
  `;
8265
- var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client74.gql`
8485
+ var SCHOOL_CAMPAIGN_FIELDS_FRAGMENT = import_client76.gql`
8266
8486
  fragment SchoolCampaignFields on SchoolCampaignType {
8267
8487
  endDate
8268
8488
  name
8269
8489
  startDate
8270
8490
  }
8271
8491
  `;
8272
- var SCHOOL = import_client74.gql`
8492
+ var SCHOOL = import_client76.gql`
8273
8493
  fragment SchoolFields on SchoolType {
8274
8494
  _id
8275
8495
  active
@@ -8313,7 +8533,7 @@ var SCHOOL = import_client74.gql`
8313
8533
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8314
8534
  ${SCHOOL_CAMPAIGN_FIELDS_FRAGMENT}
8315
8535
  `;
8316
- var GET_SCHOOL = import_client74.gql`
8536
+ var GET_SCHOOL = import_client76.gql`
8317
8537
  query getSchool($_id: ID!) {
8318
8538
  school(_id: $_id) {
8319
8539
  school {
@@ -8327,7 +8547,7 @@ var GET_SCHOOL = import_client74.gql`
8327
8547
  ${SCHOOL}
8328
8548
  ${SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT}
8329
8549
  `;
8330
- var GET_SCHOOLS = import_client74.gql`
8550
+ var GET_SCHOOLS = import_client76.gql`
8331
8551
  query getSchools {
8332
8552
  schools {
8333
8553
  ...SchoolFields
@@ -8337,7 +8557,7 @@ var GET_SCHOOLS = import_client74.gql`
8337
8557
  `;
8338
8558
 
8339
8559
  // src/graphql/mutations/school.ts
8340
- var CREATE_SCHOOL_MUTATION = import_client75.gql`
8560
+ var CREATE_SCHOOL_MUTATION = import_client77.gql`
8341
8561
  mutation createSchool($input: SchoolInputType!) {
8342
8562
  createSchool(input: $input) {
8343
8563
  data {
@@ -8348,7 +8568,7 @@ var CREATE_SCHOOL_MUTATION = import_client75.gql`
8348
8568
  }
8349
8569
  ${SCHOOL}
8350
8570
  `;
8351
- var UPDATE_SCHOOL_MUTATION = import_client75.gql`
8571
+ var UPDATE_SCHOOL_MUTATION = import_client77.gql`
8352
8572
  mutation updateSchool($_id: ID!, $input: SchoolInputType!) {
8353
8573
  updateSchool(_id: $_id, input: $input) {
8354
8574
  data {
@@ -8359,7 +8579,7 @@ var UPDATE_SCHOOL_MUTATION = import_client75.gql`
8359
8579
  }
8360
8580
  ${SCHOOL}
8361
8581
  `;
8362
- var DELETE_SCHOOL_MUTATION = import_client75.gql`
8582
+ var DELETE_SCHOOL_MUTATION = import_client77.gql`
8363
8583
  mutation deleteSchool($_id: ID!) {
8364
8584
  deleteSchool(_id: $_id) {
8365
8585
  data
@@ -8367,7 +8587,7 @@ var DELETE_SCHOOL_MUTATION = import_client75.gql`
8367
8587
  }
8368
8588
  }
8369
8589
  `;
8370
- var REQUEST_MARKETING_MATERIAL_MUTATION = import_client75.gql`
8590
+ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client77.gql`
8371
8591
  mutation requestMarketingMaterial(
8372
8592
  $input: MarketingMaterialRequestInputType!
8373
8593
  ) {
@@ -8380,35 +8600,35 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client75.gql`
8380
8600
 
8381
8601
  // src/graphql/hooks/school/hooksMutation.ts
8382
8602
  var useCreateSchool = () => {
8383
- const [createSchool, { loading, error }] = (0, import_client76.useMutation)(CREATE_SCHOOL_MUTATION, {
8603
+ const [createSchool, { loading, error }] = (0, import_client78.useMutation)(CREATE_SCHOOL_MUTATION, {
8384
8604
  awaitRefetchQueries: true,
8385
8605
  refetchQueries: [{ query: GET_SCHOOLS }]
8386
8606
  });
8387
8607
  return { createSchool, error, loading };
8388
8608
  };
8389
8609
  var useUpdateSchool = () => {
8390
- const [updateSchool, { loading, error }] = (0, import_client76.useMutation)(UPDATE_SCHOOL_MUTATION, {
8610
+ const [updateSchool, { loading, error }] = (0, import_client78.useMutation)(UPDATE_SCHOOL_MUTATION, {
8391
8611
  awaitRefetchQueries: true,
8392
8612
  refetchQueries: [{ query: GET_SCHOOLS }]
8393
8613
  });
8394
8614
  return { error, loading, updateSchool };
8395
8615
  };
8396
8616
  var useDeleteSchool = () => {
8397
- const [deleteSchool, { loading, error }] = (0, import_client76.useMutation)(DELETE_SCHOOL_MUTATION, {
8617
+ const [deleteSchool, { loading, error }] = (0, import_client78.useMutation)(DELETE_SCHOOL_MUTATION, {
8398
8618
  awaitRefetchQueries: true,
8399
8619
  refetchQueries: [{ query: GET_SCHOOLS }]
8400
8620
  });
8401
8621
  return { deleteSchool, error, loading };
8402
8622
  };
8403
8623
  var useRequestMarketingMaterial = () => {
8404
- const [requestMarketingMaterial, { loading, error }] = (0, import_client76.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
8624
+ const [requestMarketingMaterial, { loading, error }] = (0, import_client78.useMutation)(REQUEST_MARKETING_MATERIAL_MUTATION);
8405
8625
  return { error, loading, requestMarketingMaterial };
8406
8626
  };
8407
8627
 
8408
8628
  // src/graphql/hooks/school/hooksQuery.ts
8409
- var import_client77 = require("@apollo/client");
8629
+ var import_client79 = require("@apollo/client");
8410
8630
  var useGetSchools = () => {
8411
- const { data, loading, error, refetch } = (0, import_client77.useQuery)(
8631
+ const { data, loading, error, refetch } = (0, import_client79.useQuery)(
8412
8632
  GET_SCHOOLS,
8413
8633
  {
8414
8634
  fetchPolicy: "network-only"
@@ -8422,7 +8642,7 @@ var useGetSchools = () => {
8422
8642
  };
8423
8643
  };
8424
8644
  var useGetSchool = (_id) => {
8425
- const { data, loading, error, refetch } = (0, import_client77.useQuery)(GET_SCHOOL, {
8645
+ const { data, loading, error, refetch } = (0, import_client79.useQuery)(GET_SCHOOL, {
8426
8646
  fetchPolicy: "network-only",
8427
8647
  skip: !_id,
8428
8648
  variables: { _id }
@@ -8436,11 +8656,11 @@ var useGetSchool = (_id) => {
8436
8656
  };
8437
8657
 
8438
8658
  // src/graphql/hooks/affiliate/hooksQuery.ts
8439
- var import_client79 = require("@apollo/client");
8659
+ var import_client81 = require("@apollo/client");
8440
8660
 
8441
8661
  // src/graphql/queries/affiliate.ts
8442
- var import_client78 = require("@apollo/client");
8443
- var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client78.gql`
8662
+ var import_client80 = require("@apollo/client");
8663
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client80.gql`
8444
8664
  fragment AffiliateRewardFields on AffiliateRewardType {
8445
8665
  createdAt
8446
8666
  redeemedAt
@@ -8449,7 +8669,7 @@ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client78.gql`
8449
8669
  rewardValue
8450
8670
  }
8451
8671
  `;
8452
- var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client78.gql`
8672
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client80.gql`
8453
8673
  fragment AffiliateResourceFields on AffiliateResourceType {
8454
8674
  resourceActive
8455
8675
  resourceDeletedAt
@@ -8466,13 +8686,13 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client78.gql`
8466
8686
  ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
8467
8687
  ${OWNER_FIELDS_FRAGMENT}
8468
8688
  `;
8469
- var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client78.gql`
8689
+ var AFFILIATE_BANK_ACCOUNT_DETAILS_FIELDS_FRAGMENT = import_client80.gql`
8470
8690
  fragment AffiliateBankAccountDetailsFields on AffiliateBankAccountDetailsType {
8471
8691
  accountHolderName
8472
8692
  accountNumber
8473
8693
  }
8474
8694
  `;
8475
- var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client78.gql`
8695
+ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client80.gql`
8476
8696
  fragment AffiliateDetailsFields on AffiliateDetailsType {
8477
8697
  bankAccountDetails {
8478
8698
  ...AffiliateBankAccountDetailsFields
@@ -8500,7 +8720,7 @@ var AFFILIATE_DETAILS_FIELDS_FRAGMENT = import_client78.gql`
8500
8720
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
8501
8721
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
8502
8722
  `;
8503
- var AFFILIATE_FIELDS_FRAGMENT = import_client78.gql`
8723
+ var AFFILIATE_FIELDS_FRAGMENT = import_client80.gql`
8504
8724
  fragment AffiliateFields on AffiliateType {
8505
8725
  _id
8506
8726
  active
@@ -8532,7 +8752,7 @@ var AFFILIATE_FIELDS_FRAGMENT = import_client78.gql`
8532
8752
  ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
8533
8753
  ${OWNER_FIELDS_FRAGMENT}
8534
8754
  `;
8535
- var GET_AFFILIATE = import_client78.gql`
8755
+ var GET_AFFILIATE = import_client80.gql`
8536
8756
  query getAffiliate($_id: ID!) {
8537
8757
  affiliate(_id: $_id) {
8538
8758
  ...AffiliateFields
@@ -8540,7 +8760,7 @@ var GET_AFFILIATE = import_client78.gql`
8540
8760
  }
8541
8761
  ${AFFILIATE_FIELDS_FRAGMENT}
8542
8762
  `;
8543
- var GET_AFFILIATES = import_client78.gql`
8763
+ var GET_AFFILIATES = import_client80.gql`
8544
8764
  query getAffiliates {
8545
8765
  affiliates {
8546
8766
  ...AffiliateFields
@@ -8551,7 +8771,7 @@ var GET_AFFILIATES = import_client78.gql`
8551
8771
 
8552
8772
  // src/graphql/hooks/affiliate/hooksQuery.ts
8553
8773
  var useGetAffiliate = (_id) => {
8554
- const { data, loading, error, refetch } = (0, import_client79.useQuery)(GET_AFFILIATE, {
8774
+ const { data, loading, error, refetch } = (0, import_client81.useQuery)(GET_AFFILIATE, {
8555
8775
  fetchPolicy: "network-only",
8556
8776
  skip: !_id || _id === "",
8557
8777
  variables: { _id }
@@ -8565,7 +8785,7 @@ var useGetAffiliate = (_id) => {
8565
8785
  };
8566
8786
  };
8567
8787
  var useGetAffiliates = () => {
8568
- const { data, loading, error, refetch } = (0, import_client79.useQuery)(GET_AFFILIATES, {
8788
+ const { data, loading, error, refetch } = (0, import_client81.useQuery)(GET_AFFILIATES, {
8569
8789
  fetchPolicy: "network-only"
8570
8790
  });
8571
8791
  const affiliates = data?.affiliates || [];
@@ -8578,11 +8798,11 @@ var useGetAffiliates = () => {
8578
8798
  };
8579
8799
 
8580
8800
  // src/graphql/hooks/affiliate/hooksMutation.ts
8581
- var import_client81 = require("@apollo/client");
8801
+ var import_client83 = require("@apollo/client");
8582
8802
 
8583
8803
  // src/graphql/mutations/affiliate.ts
8584
- var import_client80 = require("@apollo/client");
8585
- var CREATE_AFFILIATE_MUTATION = import_client80.gql`
8804
+ var import_client82 = require("@apollo/client");
8805
+ var CREATE_AFFILIATE_MUTATION = import_client82.gql`
8586
8806
  mutation createAffiliate($input: AffiliateDetailsInputType!) {
8587
8807
  createAffiliate(input: $input) {
8588
8808
  data {
@@ -8593,7 +8813,7 @@ var CREATE_AFFILIATE_MUTATION = import_client80.gql`
8593
8813
  }
8594
8814
  ${AFFILIATE_FIELDS_FRAGMENT}
8595
8815
  `;
8596
- var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client80.gql`
8816
+ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client82.gql`
8597
8817
  mutation updateAffiliateDetails(
8598
8818
  $input: AffiliateDetailsInputType!
8599
8819
  $affiliateId: ID!
@@ -8607,7 +8827,7 @@ var UPDATE_AFFILIATE_DETAILS_MUTATION = import_client80.gql`
8607
8827
  }
8608
8828
  ${AFFILIATE_FIELDS_FRAGMENT}
8609
8829
  `;
8610
- var DELETE_AFFILIATE_MUTATION = import_client80.gql`
8830
+ var DELETE_AFFILIATE_MUTATION = import_client82.gql`
8611
8831
  mutation deleteAffiliate($_id: ID!) {
8612
8832
  deleteAffiliate(_id: $_id) {
8613
8833
  data
@@ -8615,7 +8835,7 @@ var DELETE_AFFILIATE_MUTATION = import_client80.gql`
8615
8835
  }
8616
8836
  }
8617
8837
  `;
8618
- var REDEEM_AFFILIATE_REWARD_MUTATION = import_client80.gql`
8838
+ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client82.gql`
8619
8839
  mutation redeemAffiliateReward($affiliateId: ID!) {
8620
8840
  redeemAffiliateReward(affiliateId: $affiliateId) {
8621
8841
  data {
@@ -8626,7 +8846,7 @@ var REDEEM_AFFILIATE_REWARD_MUTATION = import_client80.gql`
8626
8846
  }
8627
8847
  ${AFFILIATE_FIELDS_FRAGMENT}
8628
8848
  `;
8629
- var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client80.gql`
8849
+ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client82.gql`
8630
8850
  mutation assignAffiliateResourceReward(
8631
8851
  $affiliateId: ID!
8632
8852
  $resourceId: ID!
@@ -8647,7 +8867,7 @@ var ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION = import_client80.gql`
8647
8867
  }
8648
8868
  ${AFFILIATE_FIELDS_FRAGMENT}
8649
8869
  `;
8650
- var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client80.gql`
8870
+ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client82.gql`
8651
8871
  mutation assignAffiliateBonusReward(
8652
8872
  $affiliateId: ID!
8653
8873
  $rewardType: AffiliateRewardEnumType!
@@ -8667,7 +8887,7 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client80.gql`
8667
8887
 
8668
8888
  // src/graphql/hooks/affiliate/hooksMutation.ts
8669
8889
  var useCreateAffiliate = () => {
8670
- const [createAffiliate, { loading, error }] = (0, import_client81.useMutation)(CREATE_AFFILIATE_MUTATION, {
8890
+ const [createAffiliate, { loading, error }] = (0, import_client83.useMutation)(CREATE_AFFILIATE_MUTATION, {
8671
8891
  awaitRefetchQueries: true,
8672
8892
  refetchQueries: (mutationResult) => {
8673
8893
  const affiliateId = mutationResult?.data?.createAffiliate?.data?._id;
@@ -8678,7 +8898,7 @@ var useCreateAffiliate = () => {
8678
8898
  return { createAffiliate, error, loading };
8679
8899
  };
8680
8900
  var useUpdateAffiliateDetails = () => {
8681
- const [updateAffiliateDetails, { loading, error }] = (0, import_client81.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8901
+ const [updateAffiliateDetails, { loading, error }] = (0, import_client83.useMutation)(UPDATE_AFFILIATE_DETAILS_MUTATION, {
8682
8902
  awaitRefetchQueries: true,
8683
8903
  refetchQueries: (mutationResult) => {
8684
8904
  const affiliateId = mutationResult?.data?.updateAffiliateDetails?.data?._id;
@@ -8689,14 +8909,14 @@ var useUpdateAffiliateDetails = () => {
8689
8909
  return { error, loading, updateAffiliateDetails };
8690
8910
  };
8691
8911
  var useDeleteAffiliate = () => {
8692
- const [deleteAffiliate, { loading, error }] = (0, import_client81.useMutation)(DELETE_AFFILIATE_MUTATION, {
8912
+ const [deleteAffiliate, { loading, error }] = (0, import_client83.useMutation)(DELETE_AFFILIATE_MUTATION, {
8693
8913
  awaitRefetchQueries: true,
8694
8914
  refetchQueries: [{ query: GET_AFFILIATES }]
8695
8915
  });
8696
8916
  return { deleteAffiliate, error, loading };
8697
8917
  };
8698
8918
  var useRedeemAffiliateReward = () => {
8699
- const [redeemAffiliateReward, { loading, error }] = (0, import_client81.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
8919
+ const [redeemAffiliateReward, { loading, error }] = (0, import_client83.useMutation)(REDEEM_AFFILIATE_REWARD_MUTATION, {
8700
8920
  awaitRefetchQueries: true,
8701
8921
  refetchQueries: (mutationResult) => {
8702
8922
  const affiliateId = mutationResult?.data?.redeemAffiliateReward?.data?._id;
@@ -8707,7 +8927,7 @@ var useRedeemAffiliateReward = () => {
8707
8927
  return { error, loading, redeemAffiliateReward };
8708
8928
  };
8709
8929
  var useAssignAffiliateResourceReward = () => {
8710
- const [assignAffiliateResourceReward, { loading, error }] = (0, import_client81.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8930
+ const [assignAffiliateResourceReward, { loading, error }] = (0, import_client83.useMutation)(ASSIGN_AFFILIATE_RESOURCE_REWARD_MUTATION, {
8711
8931
  awaitRefetchQueries: true,
8712
8932
  refetchQueries: (mutationResult) => {
8713
8933
  const affiliateId = mutationResult?.data?.assignAffiliateResourceReward?.data?._id;
@@ -8718,7 +8938,7 @@ var useAssignAffiliateResourceReward = () => {
8718
8938
  return { assignAffiliateResourceReward, error, loading };
8719
8939
  };
8720
8940
  var useAssignAffiliateBonusReward = () => {
8721
- const [assignAffiliateBonusReward, { loading, error }] = (0, import_client81.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8941
+ const [assignAffiliateBonusReward, { loading, error }] = (0, import_client83.useMutation)(ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION, {
8722
8942
  awaitRefetchQueries: true,
8723
8943
  refetchQueries: (mutationResult) => {
8724
8944
  const affiliateId = mutationResult?.data?.assignAffiliateBonusReward?.data?._id;
@@ -8730,14 +8950,14 @@ var useAssignAffiliateBonusReward = () => {
8730
8950
  };
8731
8951
 
8732
8952
  // src/graphql/hooks/coupon/hooksMutation.ts
8733
- var import_client84 = require("@apollo/client");
8953
+ var import_client86 = require("@apollo/client");
8734
8954
 
8735
8955
  // src/graphql/mutations/coupon.ts
8736
- var import_client83 = require("@apollo/client");
8956
+ var import_client85 = require("@apollo/client");
8737
8957
 
8738
8958
  // src/graphql/queries/coupon.ts
8739
- var import_client82 = require("@apollo/client");
8740
- var COUPON_CODE_FIELDS_FRAGMENT = import_client82.gql`
8959
+ var import_client84 = require("@apollo/client");
8960
+ var COUPON_CODE_FIELDS_FRAGMENT = import_client84.gql`
8741
8961
  fragment CouponCodeFields on CouponCodeType {
8742
8962
  code
8743
8963
  qrCode {
@@ -8749,7 +8969,7 @@ var COUPON_CODE_FIELDS_FRAGMENT = import_client82.gql`
8749
8969
  }
8750
8970
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8751
8971
  `;
8752
- var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client82.gql`
8972
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client84.gql`
8753
8973
  fragment CouponParticipantUserFields on CouponParticipantUserType {
8754
8974
  couponCollectedCount
8755
8975
  couponRedeemedAt
@@ -8761,7 +8981,7 @@ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client82.gql`
8761
8981
  nickName
8762
8982
  }
8763
8983
  `;
8764
- var COUPON_OPTION_FIELDS_FRAGMENT = import_client82.gql`
8984
+ var COUPON_OPTION_FIELDS_FRAGMENT = import_client84.gql`
8765
8985
  fragment CouponOptionFields on CouponOptionType {
8766
8986
  type
8767
8987
  buy
@@ -8771,7 +8991,7 @@ var COUPON_OPTION_FIELDS_FRAGMENT = import_client82.gql`
8771
8991
  maxRewardCount
8772
8992
  }
8773
8993
  `;
8774
- var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client82.gql`
8994
+ var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client84.gql`
8775
8995
  fragment CouponVendorProductFields on CouponVendorProductType {
8776
8996
  couponId
8777
8997
  vendorId
@@ -8779,7 +8999,7 @@ var COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client82.gql`
8779
8999
  vendorCouponId
8780
9000
  }
8781
9001
  `;
8782
- var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client82.gql`
9002
+ var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client84.gql`
8783
9003
  fragment CouponDataProductsFields on CouponDataProductsType {
8784
9004
  active
8785
9005
  couponId
@@ -8795,7 +9015,7 @@ var COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT = import_client82.gql`
8795
9015
  ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
8796
9016
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
8797
9017
  `;
8798
- var COUPON_DATA_FIELDS_FRAGMENT = import_client82.gql`
9018
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client84.gql`
8799
9019
  fragment CouponDataFields on CouponDataType {
8800
9020
  _id
8801
9021
  active
@@ -8829,7 +9049,7 @@ var COUPON_DATA_FIELDS_FRAGMENT = import_client82.gql`
8829
9049
  ${COUPON_VENDOR_PRODUCT_FIELDS_FRAGMENT}
8830
9050
  ${COUPON_DATA_PRODUCTS_FIELDS_FRAGMENT}
8831
9051
  `;
8832
- var COUPON = import_client82.gql`
9052
+ var COUPON = import_client84.gql`
8833
9053
  fragment CouponFields on CouponType {
8834
9054
  _id
8835
9055
  active
@@ -8846,7 +9066,7 @@ var COUPON = import_client82.gql`
8846
9066
  ${OWNER_FIELDS_FRAGMENT}
8847
9067
  ${COUPON_DATA_FIELDS_FRAGMENT}
8848
9068
  `;
8849
- var GET_COUPONS = import_client82.gql`
9069
+ var GET_COUPONS = import_client84.gql`
8850
9070
  query getCoupons(
8851
9071
  $region: String
8852
9072
  $category: String
@@ -8881,7 +9101,7 @@ var GET_COUPONS = import_client82.gql`
8881
9101
  }
8882
9102
  ${COUPON}
8883
9103
  `;
8884
- var GET_COUPON = import_client82.gql`
9104
+ var GET_COUPON = import_client84.gql`
8885
9105
  query getCoupon($_id: ID!) {
8886
9106
  coupon(_id: $_id) {
8887
9107
  ...CouponFields
@@ -8891,7 +9111,7 @@ var GET_COUPON = import_client82.gql`
8891
9111
  `;
8892
9112
 
8893
9113
  // src/graphql/mutations/coupon.ts
8894
- var CREATE_COUPON_MUTATION = import_client83.gql`
9114
+ var CREATE_COUPON_MUTATION = import_client85.gql`
8895
9115
  mutation createCoupon($input: CouponInputType!) {
8896
9116
  createCoupon(input: $input) {
8897
9117
  data {
@@ -8902,7 +9122,7 @@ var CREATE_COUPON_MUTATION = import_client83.gql`
8902
9122
  }
8903
9123
  ${COUPON}
8904
9124
  `;
8905
- var UPDATE_COUPON_MUTATION = import_client83.gql`
9125
+ var UPDATE_COUPON_MUTATION = import_client85.gql`
8906
9126
  mutation updateCoupon(
8907
9127
  $couponDocumentId: ID!
8908
9128
  $couponId: ID!
@@ -8921,7 +9141,7 @@ var UPDATE_COUPON_MUTATION = import_client83.gql`
8921
9141
  }
8922
9142
  ${COUPON}
8923
9143
  `;
8924
- var DELETE_COUPON_MUTATION = import_client83.gql`
9144
+ var DELETE_COUPON_MUTATION = import_client85.gql`
8925
9145
  mutation deleteCoupon($input: ProductCouponInputType!) {
8926
9146
  deleteCoupon(input: $input) {
8927
9147
  data
@@ -8929,7 +9149,7 @@ var DELETE_COUPON_MUTATION = import_client83.gql`
8929
9149
  }
8930
9150
  }
8931
9151
  `;
8932
- var SCAN_COUPON_MUTATION = import_client83.gql`
9152
+ var SCAN_COUPON_MUTATION = import_client85.gql`
8933
9153
  mutation scanCoupon($input: ProductCouponInputType!) {
8934
9154
  scanCoupon(input: $input) {
8935
9155
  data
@@ -8937,7 +9157,7 @@ var SCAN_COUPON_MUTATION = import_client83.gql`
8937
9157
  }
8938
9158
  }
8939
9159
  `;
8940
- var REWARD_COUPON_MUTATION = import_client83.gql`
9160
+ var REWARD_COUPON_MUTATION = import_client85.gql`
8941
9161
  mutation rewardCoupon($input: ProductCouponInputType!, $userId: ID!) {
8942
9162
  rewardCoupon(input: $input, userId: $userId) {
8943
9163
  data
@@ -8948,32 +9168,32 @@ var REWARD_COUPON_MUTATION = import_client83.gql`
8948
9168
 
8949
9169
  // src/graphql/hooks/coupon/hooksMutation.ts
8950
9170
  var useCreateCoupon = () => {
8951
- const [createCoupon, { loading, error }] = (0, import_client84.useMutation)(CREATE_COUPON_MUTATION, {
9171
+ const [createCoupon, { loading, error }] = (0, import_client86.useMutation)(CREATE_COUPON_MUTATION, {
8952
9172
  awaitRefetchQueries: true,
8953
9173
  refetchQueries: [GET_COUPONS]
8954
9174
  });
8955
9175
  return { createCoupon, error, loading };
8956
9176
  };
8957
9177
  var useUpdateCoupon = () => {
8958
- const [updateCoupon, { loading, error }] = (0, import_client84.useMutation)(UPDATE_COUPON_MUTATION, {
9178
+ const [updateCoupon, { loading, error }] = (0, import_client86.useMutation)(UPDATE_COUPON_MUTATION, {
8959
9179
  awaitRefetchQueries: true,
8960
9180
  refetchQueries: [GET_COUPONS]
8961
9181
  });
8962
9182
  return { error, loading, updateCoupon };
8963
9183
  };
8964
9184
  var useDeleteCoupon = () => {
8965
- const [deleteCoupon, { loading, error }] = (0, import_client84.useMutation)(DELETE_COUPON_MUTATION, {
9185
+ const [deleteCoupon, { loading, error }] = (0, import_client86.useMutation)(DELETE_COUPON_MUTATION, {
8966
9186
  awaitRefetchQueries: true,
8967
9187
  refetchQueries: [GET_COUPONS]
8968
9188
  });
8969
9189
  return { deleteCoupon, error, loading };
8970
9190
  };
8971
9191
  var useScanCoupon = () => {
8972
- const [scanCoupon, { loading, error }] = (0, import_client84.useMutation)(SCAN_COUPON_MUTATION);
9192
+ const [scanCoupon, { loading, error }] = (0, import_client86.useMutation)(SCAN_COUPON_MUTATION);
8973
9193
  return { error, loading, scanCoupon };
8974
9194
  };
8975
9195
  var useRewardCoupon = () => {
8976
- const [rewardCoupon, { loading, error }] = (0, import_client84.useMutation)(REWARD_COUPON_MUTATION, {
9196
+ const [rewardCoupon, { loading, error }] = (0, import_client86.useMutation)(REWARD_COUPON_MUTATION, {
8977
9197
  awaitRefetchQueries: true,
8978
9198
  refetchQueries: [GET_COUPONS]
8979
9199
  });
@@ -8981,9 +9201,9 @@ var useRewardCoupon = () => {
8981
9201
  };
8982
9202
 
8983
9203
  // src/graphql/hooks/coupon/hooksQuery.ts
8984
- var import_client85 = require("@apollo/client");
9204
+ var import_client87 = require("@apollo/client");
8985
9205
  var useGetCoupons = (variables) => {
8986
- const { loading, error, data, refetch } = (0, import_client85.useQuery)(GET_COUPONS, {
9206
+ const { loading, error, data, refetch } = (0, import_client87.useQuery)(GET_COUPONS, {
8987
9207
  fetchPolicy: "network-only",
8988
9208
  variables
8989
9209
  });
@@ -8995,7 +9215,7 @@ var useGetCoupons = (variables) => {
8995
9215
  return { coupons, error, loading, refetch };
8996
9216
  };
8997
9217
  var useGetCoupon = (_id) => {
8998
- const { loading, error, data, refetch } = (0, import_client85.useQuery)(GET_COUPON, {
9218
+ const { loading, error, data, refetch } = (0, import_client87.useQuery)(GET_COUPON, {
8999
9219
  fetchPolicy: "network-only",
9000
9220
  skip: !_id || _id === "",
9001
9221
  variables: { _id }
@@ -9005,7 +9225,7 @@ var useGetCoupon = (_id) => {
9005
9225
  };
9006
9226
 
9007
9227
  // src/graphql/hooks/usePaginatedList.ts
9008
- var import_client86 = require("@apollo/client");
9228
+ var import_client88 = require("@apollo/client");
9009
9229
  var import_react = require("react");
9010
9230
  function usePaginatedList({
9011
9231
  document,
@@ -9031,7 +9251,7 @@ function usePaginatedList({
9031
9251
  setHasSettled(false);
9032
9252
  setOffset(0);
9033
9253
  }, [variablesKey, pageSize, skip]);
9034
- const { data, loading, error, refetch } = (0, import_client86.useQuery)(document, {
9254
+ const { data, loading, error, refetch } = (0, import_client88.useQuery)(document, {
9035
9255
  fetchPolicy: "network-only",
9036
9256
  skip,
9037
9257
  variables: { ...variables, options: { limit: pageSize + 1, offset } }
@@ -9657,15 +9877,19 @@ function canAccessAdminPath(roles, pathname) {
9657
9877
  ACTIVATE_VENDOR_CLAIM_MUTATION,
9658
9878
  ADMIN_APP_ROLES,
9659
9879
  ADMIN_DASHBOARD_CONTEXTS,
9880
+ AD_BOOKING_FIELDS_FRAGMENT,
9660
9881
  AFFILIATE_PARTICIPANT_TYPE_LABELS,
9661
9882
  AFFILIATE_REWARDS,
9662
9883
  ANDROID_URL,
9884
+ APPROVE_AD_BOOKING_MUTATION,
9663
9885
  BILLING_CATALOG_CURRENCY,
9664
9886
  BILLING_CATALOG_DEFINITIONS,
9665
9887
  BILLING_CATALOG_KEYS,
9888
+ CLAIM_RESERVED_AD_DAY_MUTATION,
9666
9889
  CLUEMART_MAIN_DOMAIN_URL,
9667
9890
  CM_AFFILIATE_PROMO_CODE,
9668
9891
  CM_SCHOOL_PROMO_CODE,
9892
+ CREATE_AD_CHECKOUT_MUTATION,
9669
9893
  DEFAULT_PAGE_SIZE,
9670
9894
  DEFAULT_RESOURCES_RETURN_LIMIT,
9671
9895
  DEFAULT_RESOURCES_RETURN_OFFSET,
@@ -9673,6 +9897,11 @@ function canAccessAdminPath(roles, pathname) {
9673
9897
  DEFAULT_USER_FACING_ERROR,
9674
9898
  EVENT_DATE_STATUS_PERIOD_MAP,
9675
9899
  EnumActivity,
9900
+ EnumAdApprovalStatus,
9901
+ EnumAdBookingSlotKind,
9902
+ EnumAdBookingState,
9903
+ EnumAdEntitlementSource,
9904
+ EnumAdPaymentStatus,
9676
9905
  EnumAdShowOn,
9677
9906
  EnumAdStatus,
9678
9907
  EnumAdStyle,
@@ -9708,14 +9937,20 @@ function canAccessAdminPath(roles, pathname) {
9708
9937
  EnumUserRole,
9709
9938
  EnumVendorType,
9710
9939
  EnumVerificationType,
9940
+ GET_AD_BOOKING,
9941
+ GET_AD_DAILY_PRICES,
9942
+ GET_AD_DAY_AVAILABILITY,
9943
+ GET_AD_SETTINGS,
9711
9944
  GET_EVENT,
9712
9945
  GET_EVENTS,
9713
9946
  GET_EVENT_BY_SLUG,
9714
9947
  GET_EVENT_INFO,
9948
+ GET_MY_AD_BOOKINGS,
9715
9949
  GET_OWNED_EVENT,
9716
9950
  GET_PARTNER,
9717
9951
  GET_PARTNERS,
9718
9952
  GET_PARTNER_BY_SLUG,
9953
+ GET_PENDING_AD_BOOKINGS,
9719
9954
  GET_POST,
9720
9955
  GET_POSTS,
9721
9956
  GET_POSTS_BY_TYPE,
@@ -9739,6 +9974,7 @@ function canAccessAdminPath(roles, pathname) {
9739
9974
  PROMO_CODE_PREFIX,
9740
9975
  PUBLIC_SHARE_PATH_TYPES,
9741
9976
  PostTypeLabels,
9977
+ RECORD_AD_IMPRESSION_MUTATION,
9742
9978
  RELATION_OVERLAY_LAYOUT_VERSION,
9743
9979
  RELATION_SHARE_APPLICATION,
9744
9980
  RELATION_SHARE_INVITATION,
@@ -9778,6 +10014,8 @@ function canAccessAdminPath(roles, pathname) {
9778
10014
  TIERS_BY_PRIORITY,
9779
10015
  TIER_DISPLAY_LABELS,
9780
10016
  TIER_FROM_LICENCE,
10017
+ UPDATE_AD_DAILY_PRICE_MUTATION,
10018
+ UPDATE_AD_SETTINGS_MUTATION,
9781
10019
  USER_STORAGE_KEY,
9782
10020
  WILDCARD_PERMISSION,
9783
10021
  accumulateItems,