@timardex/cluemart-shared 1.7.28 → 1.7.30

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 (63) hide show
  1. package/dist/{ad-C8XVY1Ig.d.mts → ad-BDx9eYoO.d.mts} +2 -2
  2. package/dist/{ad-B9tX1jAF.d.ts → ad-BYbSba4V.d.ts} +2 -2
  3. package/dist/{coupon-BDEw47eR.d.ts → affiliate-Cxdq9Q2k.d.ts} +3 -47
  4. package/dist/{coupon-C6CyYA96.d.mts → affiliate-kBWfF_ZN.d.mts} +3 -47
  5. package/dist/auth/index.cjs +139 -27
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-2G4J6K5K.mjs → chunk-24JSCOFX.mjs} +9 -85
  11. package/dist/chunk-24JSCOFX.mjs.map +1 -0
  12. package/dist/{chunk-4G4OFSBZ.mjs → chunk-3UYXNSNB.mjs} +12 -7
  13. package/dist/{chunk-4G4OFSBZ.mjs.map → chunk-3UYXNSNB.mjs.map} +1 -1
  14. package/dist/{chunk-LS3KB634.mjs → chunk-GZYTDNBQ.mjs} +141 -27
  15. package/dist/chunk-GZYTDNBQ.mjs.map +1 -0
  16. package/dist/{chunk-7TL4ZSUO.mjs → chunk-UV5GH6NI.mjs} +10 -2
  17. package/dist/chunk-UV5GH6NI.mjs.map +1 -0
  18. package/dist/{contactUs-C-pVJyZB.d.mts → contactUs-BXjzZEI1.d.mts} +1 -1
  19. package/dist/{contactUs-BZf4DfMe.d.ts → contactUs-Dk8zBwW9.d.ts} +1 -1
  20. package/dist/formFields/index.d.mts +1 -1
  21. package/dist/formFields/index.d.ts +1 -1
  22. package/dist/formFields/index.mjs +2 -2
  23. package/dist/{global-BC6YWupC.d.mts → global-D1ZvBNbG.d.mts} +67 -2
  24. package/dist/{global-Ch0I5X41.d.ts → global-Dot3RjVJ.d.ts} +67 -2
  25. package/dist/graphql/index.cjs +520 -486
  26. package/dist/graphql/index.cjs.map +1 -1
  27. package/dist/graphql/index.d.mts +5 -5
  28. package/dist/graphql/index.d.ts +5 -5
  29. package/dist/graphql/index.mjs +2 -2
  30. package/dist/hooks/index.cjs +402 -352
  31. package/dist/hooks/index.cjs.map +1 -1
  32. package/dist/hooks/index.d.mts +8 -8
  33. package/dist/hooks/index.d.ts +8 -8
  34. package/dist/hooks/index.mjs +33 -17
  35. package/dist/hooks/index.mjs.map +1 -1
  36. package/dist/index.cjs +540 -492
  37. package/dist/index.cjs.map +1 -1
  38. package/dist/index.d.mts +69 -47
  39. package/dist/index.d.ts +69 -47
  40. package/dist/index.mjs +355 -308
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/map/index.d.mts +1 -1
  43. package/dist/map/index.d.ts +1 -1
  44. package/dist/{resourceActivities-C6EjqEG7.d.ts → resourceActivities-E-7429jp.d.ts} +1 -1
  45. package/dist/{resourceActivities-Vh5zcV02.d.mts → resourceActivities-kGzOHndG.d.mts} +1 -1
  46. package/dist/sharing/index.d.mts +1 -1
  47. package/dist/sharing/index.d.ts +1 -1
  48. package/dist/types/index.cjs +9 -0
  49. package/dist/types/index.cjs.map +1 -1
  50. package/dist/types/index.d.mts +7 -7
  51. package/dist/types/index.d.ts +7 -7
  52. package/dist/types/index.mjs +3 -1
  53. package/dist/{user-DrA0HITt.d.ts → user-Ca0QNirI.d.ts} +2 -1
  54. package/dist/{user-DWNmVv-L.d.mts → user-JCkXYAQS.d.mts} +2 -1
  55. package/dist/utils/index.cjs +11 -6
  56. package/dist/utils/index.cjs.map +1 -1
  57. package/dist/utils/index.d.mts +5 -5
  58. package/dist/utils/index.d.ts +5 -5
  59. package/dist/utils/index.mjs +4 -4
  60. package/package.json +1 -1
  61. package/dist/chunk-2G4J6K5K.mjs.map +0 -1
  62. package/dist/chunk-7TL4ZSUO.mjs.map +0 -1
  63. package/dist/chunk-LS3KB634.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.mjs';
2
- import { I as BaseResourceType, L as LocationType, az as SocialShareResourceType, B as BaseResourceTypeFormData, J as CreateFormData, av as ResourceContactDetailsType, ax as ResourceImageType, ay as SocialMediaType, aC as TermsAgreement, a9 as OwnerType, am as PromoCodeType, M as MutationResponse } from './global-BC6YWupC.mjs';
2
+ import { N as BaseResourceType, L as LocationType, aM as SocialShareResourceType, B as BaseResourceTypeFormData, a0 as CreateFormData, aI as ResourceContactDetailsType, aK as ResourceImageType, aL as SocialMediaType, aP as TermsAgreement, al as OwnerType, az as PromoCodeType, M as MutationResponse } from './global-D1ZvBNbG.mjs';
3
3
  import { PosterAssetId } from './images/index.mjs';
4
- import { S as SafeUserType } from './user-DWNmVv-L.mjs';
4
+ import { S as SafeUserType } from './user-JCkXYAQS.mjs';
5
5
 
6
6
  interface PartnerFormData extends BaseResourceTypeFormData {
7
7
  location: LocationType;
@@ -1,7 +1,7 @@
1
1
  import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.js';
2
- import { I as BaseResourceType, L as LocationType, az as SocialShareResourceType, B as BaseResourceTypeFormData, J as CreateFormData, av as ResourceContactDetailsType, ax as ResourceImageType, ay as SocialMediaType, aC as TermsAgreement, a9 as OwnerType, am as PromoCodeType, M as MutationResponse } from './global-Ch0I5X41.js';
2
+ import { N as BaseResourceType, L as LocationType, aM as SocialShareResourceType, B as BaseResourceTypeFormData, a0 as CreateFormData, aI as ResourceContactDetailsType, aK as ResourceImageType, aL as SocialMediaType, aP as TermsAgreement, al as OwnerType, az as PromoCodeType, M as MutationResponse } from './global-Dot3RjVJ.js';
3
3
  import { PosterAssetId } from './images/index.js';
4
- import { S as SafeUserType } from './user-DrA0HITt.js';
4
+ import { S as SafeUserType } from './user-Ca0QNirI.js';
5
5
 
6
6
  interface PartnerFormData extends BaseResourceTypeFormData {
7
7
  location: LocationType;
@@ -1,6 +1,6 @@
1
1
  import { EnumResourceType } from './enums/index.js';
2
- import { am as PromoCodeType, L as LocationType, ay as SocialMediaType, a9 as OwnerType, J as CreateFormData, ax as ResourceImageType, aG as VendorProductList } from './global-Ch0I5X41.js';
3
- import { U as UserFormData } from './user-DrA0HITt.js';
2
+ import { az as PromoCodeType, L as LocationType, aL as SocialMediaType, al as OwnerType, a0 as CreateFormData } from './global-Dot3RjVJ.js';
3
+ import { U as UserFormData } from './user-Ca0QNirI.js';
4
4
 
5
5
  declare enum EnumAffiliateParticipantType {
6
6
  INDIVIDUAL = "INDIVIDUAL",
@@ -70,48 +70,4 @@ interface AffiliateType {
70
70
  type AffiliateFormData = Omit<AffiliateDetailsType, "email" | "firstName" | "lastName">;
71
71
  type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
72
72
 
73
- type CouponTypeOption = {
74
- buy: number;
75
- get: number;
76
- unit: string;
77
- };
78
- type ProductCouponFormData = {
79
- couponDescription: string;
80
- couponOption: CouponTypeOption;
81
- endDate: Date;
82
- participantProductId: string;
83
- startDate: Date;
84
- };
85
- type CreateProductCouponFormData = CreateFormData<ProductCouponFormData>;
86
- type CouponParticipantUserType = {
87
- couponCount: number;
88
- couponRedeemedAt: Date | null;
89
- createdAt: Date;
90
- updatedAt: Date | null;
91
- userId: string;
92
- };
93
- type CouponCodeType = {
94
- code: string;
95
- qrCode: ResourceImageType;
96
- };
97
- type ProductCouponType = Omit<ProductCouponFormData, "participantProductId"> & {
98
- _id: string;
99
- active: boolean;
100
- couponCode: CouponCodeType;
101
- createdAt: Date;
102
- participantProduct: VendorProductList;
103
- participantUsers: CouponParticipantUserType[] | null;
104
- updatedAt: Date | null;
105
- };
106
- type CouponTypeOptionWithType = Omit<ProductCouponType, "_id" | "participantUsers">;
107
- type CreateCouponTypeOptionParams = Pick<ProductCouponType, "couponCode" | "couponDescription" | "couponOption" | "createdAt" | "endDate" | "participantProduct" | "startDate">;
108
- interface CouponType {
109
- _id: string;
110
- active: boolean;
111
- createdAt: Date;
112
- deletedAt: Date | null;
113
- productCoupons: ProductCouponType[];
114
- updatedAt: Date | null;
115
- }
116
-
117
- export { type AffiliateType as A, type CouponType as C, EnumAffiliateParticipantType as E, type ProductCouponFormData as P, type RedeemHistoryType as R, type AffiliateFormData as a, type CreateAffiliateFormData as b, type CreateProductCouponFormData as c, type AffiliateBankAccountDetailsType as d, type AffiliateContactDetails as e, type AffiliateDetailsType as f, type AffiliateResourceType as g, type AffiliateRewardType as h, type AffiliateUserDefaultFields as i, type CouponCodeType as j, type CouponParticipantUserType as k, type CouponTypeOption as l, type CouponTypeOptionWithType as m, type CreateCouponTypeOptionParams as n, EnumAffiliateRewardType as o, type ProductCouponType as p };
73
+ export { type AffiliateType as A, type CreateAffiliateFormData as C, EnumAffiliateParticipantType as E, type RedeemHistoryType as R, type AffiliateFormData as a, type AffiliateBankAccountDetailsType as b, type AffiliateContactDetails as c, type AffiliateDetailsType as d, type AffiliateResourceType as e, type AffiliateRewardType as f, type AffiliateUserDefaultFields as g, EnumAffiliateRewardType as h };
@@ -1,6 +1,6 @@
1
1
  import { EnumResourceType } from './enums/index.mjs';
2
- import { am as PromoCodeType, L as LocationType, ay as SocialMediaType, a9 as OwnerType, J as CreateFormData, ax as ResourceImageType, aG as VendorProductList } from './global-BC6YWupC.mjs';
3
- import { U as UserFormData } from './user-DWNmVv-L.mjs';
2
+ import { az as PromoCodeType, L as LocationType, aL as SocialMediaType, al as OwnerType, a0 as CreateFormData } from './global-D1ZvBNbG.mjs';
3
+ import { U as UserFormData } from './user-JCkXYAQS.mjs';
4
4
 
5
5
  declare enum EnumAffiliateParticipantType {
6
6
  INDIVIDUAL = "INDIVIDUAL",
@@ -70,48 +70,4 @@ interface AffiliateType {
70
70
  type AffiliateFormData = Omit<AffiliateDetailsType, "email" | "firstName" | "lastName">;
71
71
  type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
72
72
 
73
- type CouponTypeOption = {
74
- buy: number;
75
- get: number;
76
- unit: string;
77
- };
78
- type ProductCouponFormData = {
79
- couponDescription: string;
80
- couponOption: CouponTypeOption;
81
- endDate: Date;
82
- participantProductId: string;
83
- startDate: Date;
84
- };
85
- type CreateProductCouponFormData = CreateFormData<ProductCouponFormData>;
86
- type CouponParticipantUserType = {
87
- couponCount: number;
88
- couponRedeemedAt: Date | null;
89
- createdAt: Date;
90
- updatedAt: Date | null;
91
- userId: string;
92
- };
93
- type CouponCodeType = {
94
- code: string;
95
- qrCode: ResourceImageType;
96
- };
97
- type ProductCouponType = Omit<ProductCouponFormData, "participantProductId"> & {
98
- _id: string;
99
- active: boolean;
100
- couponCode: CouponCodeType;
101
- createdAt: Date;
102
- participantProduct: VendorProductList;
103
- participantUsers: CouponParticipantUserType[] | null;
104
- updatedAt: Date | null;
105
- };
106
- type CouponTypeOptionWithType = Omit<ProductCouponType, "_id" | "participantUsers">;
107
- type CreateCouponTypeOptionParams = Pick<ProductCouponType, "couponCode" | "couponDescription" | "couponOption" | "createdAt" | "endDate" | "participantProduct" | "startDate">;
108
- interface CouponType {
109
- _id: string;
110
- active: boolean;
111
- createdAt: Date;
112
- deletedAt: Date | null;
113
- productCoupons: ProductCouponType[];
114
- updatedAt: Date | null;
115
- }
116
-
117
- export { type AffiliateType as A, type CouponType as C, EnumAffiliateParticipantType as E, type ProductCouponFormData as P, type RedeemHistoryType as R, type AffiliateFormData as a, type CreateAffiliateFormData as b, type CreateProductCouponFormData as c, type AffiliateBankAccountDetailsType as d, type AffiliateContactDetails as e, type AffiliateDetailsType as f, type AffiliateResourceType as g, type AffiliateRewardType as h, type AffiliateUserDefaultFields as i, type CouponCodeType as j, type CouponParticipantUserType as k, type CouponTypeOption as l, type CouponTypeOptionWithType as m, type CreateCouponTypeOptionParams as n, EnumAffiliateRewardType as o, type ProductCouponType as p };
73
+ export { type AffiliateType as A, type CreateAffiliateFormData as C, EnumAffiliateParticipantType as E, type RedeemHistoryType as R, type AffiliateFormData as a, type AffiliateBankAccountDetailsType as b, type AffiliateContactDetails as c, type AffiliateDetailsType as d, type AffiliateResourceType as e, type AffiliateRewardType as f, type AffiliateUserDefaultFields as g, EnumAffiliateRewardType as h };
@@ -577,6 +577,7 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
577
577
  avatar {
578
578
  ...ResourceImageFields
579
579
  }
580
+ coupon
580
581
  createdAt
581
582
  deletedAt
582
583
  email
@@ -806,10 +807,10 @@ var useLogout = () => {
806
807
  };
807
808
 
808
809
  // src/graphql/hooks/user/hooksQuery.ts
809
- var import_client8 = require("@apollo/client");
810
+ var import_client9 = require("@apollo/client");
810
811
 
811
812
  // src/graphql/queries/user.ts
812
- var import_client7 = require("@apollo/client");
813
+ var import_client8 = require("@apollo/client");
813
814
 
814
815
  // src/graphql/queries/event.ts
815
816
  var import_client4 = require("@apollo/client");
@@ -1116,8 +1117,116 @@ var SEARCH_PARTNERS = import_client5.gql`
1116
1117
  `;
1117
1118
 
1118
1119
  // src/graphql/queries/vendor.ts
1120
+ var import_client7 = require("@apollo/client");
1121
+
1122
+ // src/graphql/queries/coupon.ts
1119
1123
  var import_client6 = require("@apollo/client");
1120
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client6.gql`
1124
+ var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client6.gql`
1125
+ fragment ProductCouponFields on ProductCouponType {
1126
+ couponDocumentId
1127
+ couponId
1128
+ }
1129
+ `;
1130
+ var COUPON_CODE_FIELDS_FRAGMENT = import_client6.gql`
1131
+ fragment CouponCodeFields on CouponCodeType {
1132
+ code
1133
+ qrCode {
1134
+ ...ResourceImageFields
1135
+ }
1136
+ }
1137
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1138
+ `;
1139
+ var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client6.gql`
1140
+ fragment CouponParticipantUserFields on CouponParticipantUserType {
1141
+ couponCollectedCount
1142
+ couponRedeemedAt
1143
+ createdAt
1144
+ updatedAt
1145
+ userId
1146
+ }
1147
+ `;
1148
+ var COUPON_OPTION_FIELDS_FRAGMENT = import_client6.gql`
1149
+ fragment CouponOptionFields on CouponOptionType {
1150
+ type
1151
+ buy
1152
+ get
1153
+ unit
1154
+ visits
1155
+ }
1156
+ `;
1157
+ var COUPON_REWARD_FIELDS_FRAGMENT = import_client6.gql`
1158
+ fragment CouponRewardFields on CouponRewardType {
1159
+ vendorId
1160
+ productId
1161
+ quantity
1162
+ unit
1163
+ }
1164
+ `;
1165
+ var COUPON_DATA_FIELDS_FRAGMENT = import_client6.gql`
1166
+ fragment CouponDataFields on CouponDataType {
1167
+ _id
1168
+ active
1169
+ couponCode {
1170
+ ...CouponCodeFields
1171
+ }
1172
+ couponDescription
1173
+ couponOption {
1174
+ ...CouponOptionFields
1175
+ }
1176
+ couponRewards {
1177
+ ...CouponRewardFields
1178
+ }
1179
+ createdAt
1180
+ endDate
1181
+ participantUsers {
1182
+ ...CouponParticipantUserFields
1183
+ }
1184
+ resourceId
1185
+ resourceType
1186
+ startDate
1187
+ updatedAt
1188
+ }
1189
+ ${COUPON_CODE_FIELDS_FRAGMENT}
1190
+ ${COUPON_OPTION_FIELDS_FRAGMENT}
1191
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
1192
+ ${COUPON_REWARD_FIELDS_FRAGMENT}
1193
+ `;
1194
+ var COUPON = import_client6.gql`
1195
+ fragment CouponFields on CouponType {
1196
+ _id
1197
+ active
1198
+ couponData {
1199
+ ...CouponDataFields
1200
+ }
1201
+ createdAt
1202
+ deletedAt
1203
+ owner {
1204
+ ...OwnerFields
1205
+ }
1206
+ updatedAt
1207
+ }
1208
+ ${OWNER_FIELDS_FRAGMENT}
1209
+ ${COUPON_DATA_FIELDS_FRAGMENT}
1210
+ `;
1211
+ var GET_COUPONS = import_client6.gql`
1212
+ query getCoupons {
1213
+ coupons {
1214
+ ...CouponFields
1215
+ }
1216
+ }
1217
+ ${COUPON}
1218
+ `;
1219
+ var GET_COUPON = import_client6.gql`
1220
+ query getCoupon($_id: ID!) {
1221
+ coupon(_id: $_id) {
1222
+ ...CouponFields
1223
+ }
1224
+ }
1225
+ ${COUPON}
1226
+ `;
1227
+
1228
+ // src/graphql/queries/vendor.ts
1229
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client7.gql`
1121
1230
  fragment VendorDateTimeFields on VendorDateTimeType {
1122
1231
  dateStatus
1123
1232
  endDate
@@ -1126,20 +1235,23 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client6.gql`
1126
1235
  startTime
1127
1236
  }
1128
1237
  `;
1129
- var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client6.gql`
1238
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client7.gql`
1130
1239
  fragment VendorProductListFields on VendorProductListType {
1131
1240
  _id
1241
+ coupon {
1242
+ ...ProductCouponFields
1243
+ }
1132
1244
  createdAt
1133
1245
  description
1134
- hasCoupon
1135
1246
  name
1136
1247
  price
1137
1248
  priceUnit
1138
1249
  productGroups
1139
1250
  updatedAt
1140
1251
  }
1252
+ ${PRODUCT_COUPON_FIELDS_FRAGMENT}
1141
1253
  `;
1142
- var VENDOR = import_client6.gql`
1254
+ var VENDOR = import_client7.gql`
1143
1255
  fragment VendorFields on VendorType {
1144
1256
  _id
1145
1257
  active
@@ -1240,13 +1352,13 @@ var VENDOR = import_client6.gql`
1240
1352
  ${RELATED_POST_FIELDS_FRAGMENT}
1241
1353
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1242
1354
  `;
1243
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client6.gql`
1355
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client7.gql`
1244
1356
  fragment VendorAttributesFields on VendorAttributesType {
1245
1357
  details
1246
1358
  isRequired
1247
1359
  }
1248
1360
  `;
1249
- var VENDOR_INFO = import_client6.gql`
1361
+ var VENDOR_INFO = import_client7.gql`
1250
1362
  fragment VendorInfoFields on VendorInfoType {
1251
1363
  _id
1252
1364
  compliance {
@@ -1287,7 +1399,7 @@ var VENDOR_INFO = import_client6.gql`
1287
1399
  ${VENDOR_ATTRIBUTES_FRAGMENT}
1288
1400
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1289
1401
  `;
1290
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client6.gql`
1402
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client7.gql`
1291
1403
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
1292
1404
  dateTime {
1293
1405
  ...DateTimeFields
@@ -1296,7 +1408,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client6.gql`
1296
1408
  }
1297
1409
  ${DATETIME_FIELDS_FRAGMENT}
1298
1410
  `;
1299
- var UNREGISTERED_VENDOR = import_client6.gql`
1411
+ var UNREGISTERED_VENDOR = import_client7.gql`
1300
1412
  fragment UnregisteredVendorFields on UnregisteredVendorType {
1301
1413
  _id
1302
1414
  active
@@ -1316,7 +1428,7 @@ var UNREGISTERED_VENDOR = import_client6.gql`
1316
1428
  }
1317
1429
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
1318
1430
  `;
1319
- var GET_VENDORS = import_client6.gql`
1431
+ var GET_VENDORS = import_client7.gql`
1320
1432
  query getVendors {
1321
1433
  vendors {
1322
1434
  ...VendorFields
@@ -1324,7 +1436,7 @@ var GET_VENDORS = import_client6.gql`
1324
1436
  }
1325
1437
  ${VENDOR}
1326
1438
  `;
1327
- var GET_VENDOR = import_client6.gql`
1439
+ var GET_VENDOR = import_client7.gql`
1328
1440
  query getVendor($_id: ID!) {
1329
1441
  vendor(_id: $_id) {
1330
1442
  ...VendorFields
@@ -1332,7 +1444,7 @@ var GET_VENDOR = import_client6.gql`
1332
1444
  }
1333
1445
  ${VENDOR}
1334
1446
  `;
1335
- var GET_VENDORS_BY_REGION = import_client6.gql`
1447
+ var GET_VENDORS_BY_REGION = import_client7.gql`
1336
1448
  query getVendorsByRegion(
1337
1449
  $region: String!
1338
1450
  $options: ResourcesByRegionOptions
@@ -1343,7 +1455,7 @@ var GET_VENDORS_BY_REGION = import_client6.gql`
1343
1455
  }
1344
1456
  ${VENDOR}
1345
1457
  `;
1346
- var SEARCH_VENDORS = import_client6.gql`
1458
+ var SEARCH_VENDORS = import_client7.gql`
1347
1459
  query searchVendors($search: String!, $region: String!) {
1348
1460
  vendorSearch(search: $search, region: $region) {
1349
1461
  ...VendorFields
@@ -1351,7 +1463,7 @@ var SEARCH_VENDORS = import_client6.gql`
1351
1463
  }
1352
1464
  ${VENDOR}
1353
1465
  `;
1354
- var GET_VENDOR_INFO = import_client6.gql`
1466
+ var GET_VENDOR_INFO = import_client7.gql`
1355
1467
  query getVendorInfo($vendorId: ID!) {
1356
1468
  vendorInfo(vendorId: $vendorId) {
1357
1469
  ...VendorInfoFields
@@ -1359,7 +1471,7 @@ var GET_VENDOR_INFO = import_client6.gql`
1359
1471
  }
1360
1472
  ${VENDOR_INFO}
1361
1473
  `;
1362
- var GET_UNREGISTERED_VENDORS = import_client6.gql`
1474
+ var GET_UNREGISTERED_VENDORS = import_client7.gql`
1363
1475
  query getUnregisteredVendors {
1364
1476
  unregisteredVendors {
1365
1477
  ...UnregisteredVendorFields
@@ -1367,7 +1479,7 @@ var GET_UNREGISTERED_VENDORS = import_client6.gql`
1367
1479
  }
1368
1480
  ${UNREGISTERED_VENDOR}
1369
1481
  `;
1370
- var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client6.gql`
1482
+ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client7.gql`
1371
1483
  query getUnregisteredVendorsByInviterId($inviterId: ID!) {
1372
1484
  unregisteredVendorsByInviterId(inviterId: $inviterId) {
1373
1485
  ...UnregisteredVendorFields
@@ -1375,7 +1487,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client6.gql`
1375
1487
  }
1376
1488
  ${UNREGISTERED_VENDOR}
1377
1489
  `;
1378
- var GET_UNREGISTERED_VENDOR = import_client6.gql`
1490
+ var GET_UNREGISTERED_VENDOR = import_client7.gql`
1379
1491
  query getUnregisteredVendor($_id: ID!) {
1380
1492
  unregisteredVendor(_id: $_id) {
1381
1493
  ...UnregisteredVendorFields
@@ -1383,7 +1495,7 @@ var GET_UNREGISTERED_VENDOR = import_client6.gql`
1383
1495
  }
1384
1496
  ${UNREGISTERED_VENDOR}
1385
1497
  `;
1386
- var MY_PENDING_VENDOR_CLAIM = import_client6.gql`
1498
+ var MY_PENDING_VENDOR_CLAIM = import_client7.gql`
1387
1499
  query myPendingVendorClaim {
1388
1500
  myPendingVendorClaim {
1389
1501
  _id
@@ -1394,7 +1506,7 @@ var MY_PENDING_VENDOR_CLAIM = import_client6.gql`
1394
1506
  `;
1395
1507
 
1396
1508
  // src/graphql/queries/user.ts
1397
- var GET_USERS = import_client7.gql`
1509
+ var GET_USERS = import_client8.gql`
1398
1510
  query getUsers {
1399
1511
  users {
1400
1512
  ...UserFields
@@ -1402,7 +1514,7 @@ var GET_USERS = import_client7.gql`
1402
1514
  }
1403
1515
  ${USER_FIELDS_FRAGMENT}
1404
1516
  `;
1405
- var GET_USER = import_client7.gql`
1517
+ var GET_USER = import_client8.gql`
1406
1518
  query getUser($_id: ID!) {
1407
1519
  user(_id: $_id) {
1408
1520
  ...UserFields
@@ -1410,7 +1522,7 @@ var GET_USER = import_client7.gql`
1410
1522
  }
1411
1523
  ${USER_FIELDS_FRAGMENT}
1412
1524
  `;
1413
- var GET_USER_EVENTS = import_client7.gql`
1525
+ var GET_USER_EVENTS = import_client8.gql`
1414
1526
  query getUserEvents {
1415
1527
  userEvents {
1416
1528
  ...EventFields
@@ -1418,7 +1530,7 @@ var GET_USER_EVENTS = import_client7.gql`
1418
1530
  }
1419
1531
  ${EVENT}
1420
1532
  `;
1421
- var GET_USER_VENDORS = import_client7.gql`
1533
+ var GET_USER_VENDORS = import_client8.gql`
1422
1534
  query getUserVendors {
1423
1535
  userVendors {
1424
1536
  ...VendorFields
@@ -1426,7 +1538,7 @@ var GET_USER_VENDORS = import_client7.gql`
1426
1538
  }
1427
1539
  ${VENDOR}
1428
1540
  `;
1429
- var GET_USER_PARTNERS = import_client7.gql`
1541
+ var GET_USER_PARTNERS = import_client8.gql`
1430
1542
  query getUserPartners {
1431
1543
  userPartners {
1432
1544
  ...PartnerFields
@@ -1434,7 +1546,7 @@ var GET_USER_PARTNERS = import_client7.gql`
1434
1546
  }
1435
1547
  ${PARTNER}
1436
1548
  `;
1437
- var GET_USER_ACTIVITIES = import_client7.gql`
1549
+ var GET_USER_ACTIVITIES = import_client8.gql`
1438
1550
  query getUserActivities {
1439
1551
  userActivities {
1440
1552
  favourites {
@@ -1469,7 +1581,7 @@ var GET_USER_ACTIVITIES = import_client7.gql`
1469
1581
  ${VENDOR}
1470
1582
  ${PARTNER}
1471
1583
  `;
1472
- var GET_USER_RESOURCES = import_client7.gql`
1584
+ var GET_USER_RESOURCES = import_client8.gql`
1473
1585
  query getUserResources($userId: ID!) {
1474
1586
  userResources(userId: $userId) {
1475
1587
  resources {
@@ -1484,7 +1596,7 @@ var GET_USER_RESOURCES = import_client7.gql`
1484
1596
 
1485
1597
  // src/graphql/hooks/user/hooksQuery.ts
1486
1598
  var useGetUser = (_id) => {
1487
- const { loading, error, data, refetch } = (0, import_client8.useQuery)(
1599
+ const { loading, error, data, refetch } = (0, import_client9.useQuery)(
1488
1600
  GET_USER,
1489
1601
  {
1490
1602
  fetchPolicy: "network-only",