@timardex/cluemart-shared 1.5.768 → 1.5.770

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 (46) hide show
  1. package/dist/{ad-DZGYiwY-.d.ts → ad-6PrFQe2t.d.ts} +7 -2
  2. package/dist/{ad-8BNpjEcM.d.mts → ad-B8ZWiTsv.d.mts} +7 -2
  3. package/dist/{chunk-AKX2AGMA.mjs → chunk-CXXQBRXS.mjs} +3 -3
  4. package/dist/{chunk-VQRZ4OJY.mjs → chunk-HCOZUNCK.mjs} +2 -2
  5. package/dist/{chunk-4SNW63TJ.mjs → chunk-KZTOISPA.mjs} +2 -1
  6. package/dist/chunk-KZTOISPA.mjs.map +1 -0
  7. package/dist/{chunk-HPPIA4EM.mjs → chunk-UJ7L64JJ.mjs} +2 -2
  8. package/dist/{chunk-KBWSWLL4.mjs → chunk-VO2WRHJV.mjs} +14 -4
  9. package/dist/chunk-VO2WRHJV.mjs.map +1 -0
  10. package/dist/enums/index.cjs +1 -0
  11. package/dist/enums/index.cjs.map +1 -1
  12. package/dist/enums/index.d.mts +2 -1
  13. package/dist/enums/index.d.ts +2 -1
  14. package/dist/enums/index.mjs +1 -1
  15. package/dist/formFields/index.cjs.map +1 -1
  16. package/dist/formFields/index.mjs +3 -3
  17. package/dist/graphql/index.cjs +13 -3
  18. package/dist/graphql/index.cjs.map +1 -1
  19. package/dist/graphql/index.d.mts +1 -1
  20. package/dist/graphql/index.d.ts +1 -1
  21. package/dist/graphql/index.mjs +2 -2
  22. package/dist/hooks/index.cjs +17 -6
  23. package/dist/hooks/index.cjs.map +1 -1
  24. package/dist/hooks/index.d.mts +1 -1
  25. package/dist/hooks/index.d.ts +1 -1
  26. package/dist/hooks/index.mjs +8 -8
  27. package/dist/hooks/index.mjs.map +1 -1
  28. package/dist/index.cjs +14 -3
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.mts +8 -2
  31. package/dist/index.d.ts +8 -2
  32. package/dist/index.mjs +14 -3
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/sharing/index.cjs.map +1 -1
  35. package/dist/sharing/index.mjs +3 -3
  36. package/dist/types/index.d.mts +1 -1
  37. package/dist/types/index.d.ts +1 -1
  38. package/dist/types/index.mjs +1 -1
  39. package/dist/utils/index.cjs.map +1 -1
  40. package/dist/utils/index.mjs +2 -2
  41. package/package.json +1 -1
  42. package/dist/chunk-4SNW63TJ.mjs.map +0 -1
  43. package/dist/chunk-KBWSWLL4.mjs.map +0 -1
  44. /package/dist/{chunk-AKX2AGMA.mjs.map → chunk-CXXQBRXS.mjs.map} +0 -0
  45. /package/dist/{chunk-VQRZ4OJY.mjs.map → chunk-HCOZUNCK.mjs.map} +0 -0
  46. /package/dist/{chunk-HPPIA4EM.mjs.map → chunk-UJ7L64JJ.mjs.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import { EnumResourceType, EnumEventDateStatus } from '../enums/index.mjs';
4
- import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-8BNpjEcM.mjs';
4
+ import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-B8ZWiTsv.mjs';
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-zczOntNk.mjs';
6
6
  import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-BUUfmCo7.mjs';
7
7
  import '../images/index.mjs';
@@ -1,7 +1,7 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import { EnumResourceType, EnumEventDateStatus } from '../enums/index.js';
4
- import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-DZGYiwY-.js';
4
+ import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-6PrFQe2t.js';
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BL_12IAo.js';
6
6
  import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-fKbMmluy.js';
7
7
  import '../images/index.js';
@@ -148,8 +148,8 @@ import {
148
148
  useUpdateVendor,
149
149
  useUpdateVendorInfo,
150
150
  useValidateVerificationToken
151
- } from "../chunk-KBWSWLL4.mjs";
152
- import "../chunk-4SNW63TJ.mjs";
151
+ } from "../chunk-VO2WRHJV.mjs";
152
+ import "../chunk-KZTOISPA.mjs";
153
153
  export {
154
154
  GET_EVENT,
155
155
  GET_EVENT_BY_SLUG,
@@ -254,6 +254,7 @@ var EnumUserRole = /* @__PURE__ */ ((EnumUserRole2) => {
254
254
  EnumUserRole2["MARKETING"] = "marketing";
255
255
  EnumUserRole2["MODERATOR"] = "moderator";
256
256
  EnumUserRole2["SUPPORT"] = "support";
257
+ EnumUserRole2["AFFILIATE"] = "affiliate";
257
258
  return EnumUserRole2;
258
259
  })(EnumUserRole || {});
259
260
  var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
@@ -2488,6 +2489,12 @@ var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client.gql`
2488
2489
  redeemedAt
2489
2490
  }
2490
2491
  `;
2492
+ var AFFILIATE_FIELDS_FRAGMENT = import_client.gql`
2493
+ fragment AffiliateFields on AffiliateType {
2494
+ affiliateCode
2495
+ pointsAvailable
2496
+ }
2497
+ `;
2491
2498
  var USER_FIELDS_FRAGMENT = import_client.gql`
2492
2499
  fragment UserFields on UserType {
2493
2500
  _id
@@ -2495,6 +2502,9 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
2495
2502
  associates {
2496
2503
  ...AssociatesFields
2497
2504
  }
2505
+ affiliate {
2506
+ ...AffiliateFields
2507
+ }
2498
2508
  avatar {
2499
2509
  ...ResourceImageFields
2500
2510
  }
@@ -2538,6 +2548,7 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
2538
2548
  ${LICENCE_FIELDS_FRAGMENT}
2539
2549
  ${LOCATION_FIELDS_FRAGMENT}
2540
2550
  ${REDEEMED_REWARD_FIELDS_FRAGMENT}
2551
+ ${AFFILIATE_FIELDS_FRAGMENT}
2541
2552
  `;
2542
2553
  var STALL_TYPE_FIELDS_FRAGMENT = import_client.gql`
2543
2554
  fragment StallTypeFields on StallTypeType {
@@ -2801,7 +2812,7 @@ var GET_EVENTS_BY_REGION = import_client2.gql`
2801
2812
  `;
2802
2813
  var SEARCH_EVENTS = import_client2.gql`
2803
2814
  query searchEvents(
2804
- $region: String
2815
+ $region: String!
2805
2816
  $search: String
2806
2817
  $tags: [String]
2807
2818
  $dateStatus: EventDateStatusEnumType
@@ -3070,7 +3081,7 @@ var GET_VENDORS_BY_REGION = import_client3.gql`
3070
3081
  ${VENDOR}
3071
3082
  `;
3072
3083
  var SEARCH_VENDORS = import_client3.gql`
3073
- query searchVendors($search: String!, $region: String) {
3084
+ query searchVendors($search: String!, $region: String!) {
3074
3085
  vendorSearch(search: $search, region: $region) {
3075
3086
  ...VendorFields
3076
3087
  }
@@ -3204,7 +3215,7 @@ var GET_PARTNERS_BY_REGION = import_client4.gql`
3204
3215
  ${PARTNER}
3205
3216
  `;
3206
3217
  var SEARCH_PARTNERS = import_client4.gql`
3207
- query searchPartners($search: String!, $region: String) {
3218
+ query searchPartners($search: String!, $region: String!) {
3208
3219
  partnersSearch(search: $search, region: $region) {
3209
3220
  ...PartnerFields
3210
3221
  }
@@ -5256,12 +5267,12 @@ function mapBaseResourceTypeToFormData(data) {
5256
5267
  associates: data.associates,
5257
5268
  contactDetails: data.contactDetails,
5258
5269
  cover: data.cover,
5259
- coverUpload: data.coverUpload,
5270
+ coverUpload: data.coverUpload ?? null,
5260
5271
  description: data.description,
5261
5272
  images: data.images,
5262
- imagesUpload: data.imagesUpload,
5273
+ imagesUpload: data.imagesUpload ?? null,
5263
5274
  logo: data.logo,
5264
- logoUpload: data.logoUpload,
5275
+ logoUpload: data.logoUpload ?? null,
5265
5276
  name: data.name,
5266
5277
  owner: data.owner,
5267
5278
  promoCodes: data.promoCodes,