@timardex/cluemart-shared 1.7.28 → 1.7.29

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 (57) hide show
  1. package/dist/{ad-B9tX1jAF.d.ts → ad-CQrQILqt.d.ts} +2 -2
  2. package/dist/{ad-C8XVY1Ig.d.mts → ad-DaMV_FdN.d.mts} +2 -2
  3. package/dist/{coupon-BDEw47eR.d.ts → affiliate-BjNe7vrz.d.ts} +3 -47
  4. package/dist/{coupon-C6CyYA96.d.mts → affiliate-CRzUWMPv.d.mts} +3 -47
  5. package/dist/auth/index.cjs +118 -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-2KVUR42L.mjs} +9 -85
  11. package/dist/chunk-2KVUR42L.mjs.map +1 -0
  12. package/dist/{chunk-4G4OFSBZ.mjs → chunk-PACEDU64.mjs} +11 -6
  13. package/dist/{chunk-4G4OFSBZ.mjs.map → chunk-PACEDU64.mjs.map} +1 -1
  14. package/dist/{chunk-LS3KB634.mjs → chunk-PFY3LS6P.mjs} +120 -27
  15. package/dist/chunk-PFY3LS6P.mjs.map +1 -0
  16. package/dist/{contactUs-BZf4DfMe.d.ts → contactUs-BCkSecPW.d.ts} +1 -1
  17. package/dist/{contactUs-C-pVJyZB.d.mts → contactUs-ryrB_j4c.d.mts} +1 -1
  18. package/dist/formFields/index.d.mts +1 -1
  19. package/dist/formFields/index.d.ts +1 -1
  20. package/dist/formFields/index.mjs +1 -1
  21. package/dist/{global-Ch0I5X41.d.ts → global-CF8hwvkc.d.ts} +51 -2
  22. package/dist/{global-BC6YWupC.d.mts → global-Ch11tfC6.d.mts} +51 -2
  23. package/dist/graphql/index.cjs +499 -486
  24. package/dist/graphql/index.cjs.map +1 -1
  25. package/dist/graphql/index.d.mts +5 -5
  26. package/dist/graphql/index.d.ts +5 -5
  27. package/dist/graphql/index.mjs +2 -2
  28. package/dist/hooks/index.cjs +353 -340
  29. package/dist/hooks/index.cjs.map +1 -1
  30. package/dist/hooks/index.d.mts +8 -8
  31. package/dist/hooks/index.d.ts +8 -8
  32. package/dist/hooks/index.mjs +4 -4
  33. package/dist/hooks/index.mjs.map +1 -1
  34. package/dist/index.cjs +510 -492
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.mts +53 -47
  37. package/dist/index.d.ts +53 -47
  38. package/dist/index.mjs +326 -308
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/map/index.d.mts +1 -1
  41. package/dist/map/index.d.ts +1 -1
  42. package/dist/{resourceActivities-C6EjqEG7.d.ts → resourceActivities-2SjrHpuU.d.ts} +1 -1
  43. package/dist/{resourceActivities-Vh5zcV02.d.mts → resourceActivities-isol6rr_.d.mts} +1 -1
  44. package/dist/sharing/index.d.mts +1 -1
  45. package/dist/sharing/index.d.ts +1 -1
  46. package/dist/types/index.d.mts +7 -7
  47. package/dist/types/index.d.ts +7 -7
  48. package/dist/{user-DrA0HITt.d.ts → user-BdvV_3eW.d.ts} +2 -1
  49. package/dist/{user-DWNmVv-L.d.mts → user-CFVqH8Xk.d.mts} +2 -1
  50. package/dist/utils/index.cjs +11 -6
  51. package/dist/utils/index.cjs.map +1 -1
  52. package/dist/utils/index.d.mts +5 -5
  53. package/dist/utils/index.d.ts +5 -5
  54. package/dist/utils/index.mjs +3 -3
  55. package/package.json +1 -1
  56. package/dist/chunk-2G4J6K5K.mjs.map +0 -1
  57. package/dist/chunk-LS3KB634.mjs.map +0 -1
@@ -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, aI as SocialShareResourceType, B as BaseResourceTypeFormData, Z as CreateFormData, aE as ResourceContactDetailsType, aG as ResourceImageType, aH as SocialMediaType, aL as TermsAgreement, ah as OwnerType, av as PromoCodeType, M as MutationResponse } from './global-CF8hwvkc.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-BdvV_3eW.js';
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.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, aI as SocialShareResourceType, B as BaseResourceTypeFormData, Z as CreateFormData, aE as ResourceContactDetailsType, aG as ResourceImageType, aH as SocialMediaType, aL as TermsAgreement, ah as OwnerType, av as PromoCodeType, M as MutationResponse } from './global-Ch11tfC6.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-CFVqH8Xk.mjs';
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 { av as PromoCodeType, L as LocationType, aH as SocialMediaType, ah as OwnerType, Z as CreateFormData } from './global-CF8hwvkc.js';
3
+ import { U as UserFormData } from './user-BdvV_3eW.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 { av as PromoCodeType, L as LocationType, aH as SocialMediaType, ah as OwnerType, Z as CreateFormData } from './global-Ch11tfC6.mjs';
3
+ import { U as UserFormData } from './user-CFVqH8Xk.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,95 @@ 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_DATA_FIELDS_FRAGMENT = import_client6.gql`
1149
+ fragment CouponDataFields on CouponDataType {
1150
+ _id
1151
+ active
1152
+ couponCode {
1153
+ ...CouponCodeFields
1154
+ }
1155
+ couponDescription
1156
+ couponOption
1157
+ createdAt
1158
+ endDate
1159
+ participantProductId
1160
+ participantUsers {
1161
+ ...CouponParticipantUserFields
1162
+ }
1163
+ resourceId
1164
+ resourceType
1165
+ startDate
1166
+ updatedAt
1167
+ }
1168
+ ${COUPON_CODE_FIELDS_FRAGMENT}
1169
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
1170
+ `;
1171
+ var COUPON = import_client6.gql`
1172
+ fragment CouponFields on CouponType {
1173
+ _id
1174
+ active
1175
+ couponData {
1176
+ ...CouponDataFields
1177
+ }
1178
+ createdAt
1179
+ deletedAt
1180
+ owner {
1181
+ ...OwnerFields
1182
+ }
1183
+ updatedAt
1184
+ }
1185
+ ${OWNER_FIELDS_FRAGMENT}
1186
+ ${COUPON_DATA_FIELDS_FRAGMENT}
1187
+ ${COUPON_CODE_FIELDS_FRAGMENT}
1188
+ ${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
1189
+ `;
1190
+ var GET_COUPONS = import_client6.gql`
1191
+ query getCoupons {
1192
+ coupons {
1193
+ ...CouponFields
1194
+ }
1195
+ }
1196
+ ${COUPON}
1197
+ `;
1198
+ var GET_COUPON = import_client6.gql`
1199
+ query getCoupon($_id: ID!) {
1200
+ coupon(_id: $_id) {
1201
+ ...CouponFields
1202
+ }
1203
+ }
1204
+ ${COUPON}
1205
+ `;
1206
+
1207
+ // src/graphql/queries/vendor.ts
1208
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client7.gql`
1121
1209
  fragment VendorDateTimeFields on VendorDateTimeType {
1122
1210
  dateStatus
1123
1211
  endDate
@@ -1126,20 +1214,23 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client6.gql`
1126
1214
  startTime
1127
1215
  }
1128
1216
  `;
1129
- var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client6.gql`
1217
+ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client7.gql`
1130
1218
  fragment VendorProductListFields on VendorProductListType {
1131
1219
  _id
1220
+ coupon {
1221
+ ...ProductCouponFields
1222
+ }
1132
1223
  createdAt
1133
1224
  description
1134
- hasCoupon
1135
1225
  name
1136
1226
  price
1137
1227
  priceUnit
1138
1228
  productGroups
1139
1229
  updatedAt
1140
1230
  }
1231
+ ${PRODUCT_COUPON_FIELDS_FRAGMENT}
1141
1232
  `;
1142
- var VENDOR = import_client6.gql`
1233
+ var VENDOR = import_client7.gql`
1143
1234
  fragment VendorFields on VendorType {
1144
1235
  _id
1145
1236
  active
@@ -1240,13 +1331,13 @@ var VENDOR = import_client6.gql`
1240
1331
  ${RELATED_POST_FIELDS_FRAGMENT}
1241
1332
  ${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
1242
1333
  `;
1243
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client6.gql`
1334
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client7.gql`
1244
1335
  fragment VendorAttributesFields on VendorAttributesType {
1245
1336
  details
1246
1337
  isRequired
1247
1338
  }
1248
1339
  `;
1249
- var VENDOR_INFO = import_client6.gql`
1340
+ var VENDOR_INFO = import_client7.gql`
1250
1341
  fragment VendorInfoFields on VendorInfoType {
1251
1342
  _id
1252
1343
  compliance {
@@ -1287,7 +1378,7 @@ var VENDOR_INFO = import_client6.gql`
1287
1378
  ${VENDOR_ATTRIBUTES_FRAGMENT}
1288
1379
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
1289
1380
  `;
1290
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client6.gql`
1381
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client7.gql`
1291
1382
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
1292
1383
  dateTime {
1293
1384
  ...DateTimeFields
@@ -1296,7 +1387,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client6.gql`
1296
1387
  }
1297
1388
  ${DATETIME_FIELDS_FRAGMENT}
1298
1389
  `;
1299
- var UNREGISTERED_VENDOR = import_client6.gql`
1390
+ var UNREGISTERED_VENDOR = import_client7.gql`
1300
1391
  fragment UnregisteredVendorFields on UnregisteredVendorType {
1301
1392
  _id
1302
1393
  active
@@ -1316,7 +1407,7 @@ var UNREGISTERED_VENDOR = import_client6.gql`
1316
1407
  }
1317
1408
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
1318
1409
  `;
1319
- var GET_VENDORS = import_client6.gql`
1410
+ var GET_VENDORS = import_client7.gql`
1320
1411
  query getVendors {
1321
1412
  vendors {
1322
1413
  ...VendorFields
@@ -1324,7 +1415,7 @@ var GET_VENDORS = import_client6.gql`
1324
1415
  }
1325
1416
  ${VENDOR}
1326
1417
  `;
1327
- var GET_VENDOR = import_client6.gql`
1418
+ var GET_VENDOR = import_client7.gql`
1328
1419
  query getVendor($_id: ID!) {
1329
1420
  vendor(_id: $_id) {
1330
1421
  ...VendorFields
@@ -1332,7 +1423,7 @@ var GET_VENDOR = import_client6.gql`
1332
1423
  }
1333
1424
  ${VENDOR}
1334
1425
  `;
1335
- var GET_VENDORS_BY_REGION = import_client6.gql`
1426
+ var GET_VENDORS_BY_REGION = import_client7.gql`
1336
1427
  query getVendorsByRegion(
1337
1428
  $region: String!
1338
1429
  $options: ResourcesByRegionOptions
@@ -1343,7 +1434,7 @@ var GET_VENDORS_BY_REGION = import_client6.gql`
1343
1434
  }
1344
1435
  ${VENDOR}
1345
1436
  `;
1346
- var SEARCH_VENDORS = import_client6.gql`
1437
+ var SEARCH_VENDORS = import_client7.gql`
1347
1438
  query searchVendors($search: String!, $region: String!) {
1348
1439
  vendorSearch(search: $search, region: $region) {
1349
1440
  ...VendorFields
@@ -1351,7 +1442,7 @@ var SEARCH_VENDORS = import_client6.gql`
1351
1442
  }
1352
1443
  ${VENDOR}
1353
1444
  `;
1354
- var GET_VENDOR_INFO = import_client6.gql`
1445
+ var GET_VENDOR_INFO = import_client7.gql`
1355
1446
  query getVendorInfo($vendorId: ID!) {
1356
1447
  vendorInfo(vendorId: $vendorId) {
1357
1448
  ...VendorInfoFields
@@ -1359,7 +1450,7 @@ var GET_VENDOR_INFO = import_client6.gql`
1359
1450
  }
1360
1451
  ${VENDOR_INFO}
1361
1452
  `;
1362
- var GET_UNREGISTERED_VENDORS = import_client6.gql`
1453
+ var GET_UNREGISTERED_VENDORS = import_client7.gql`
1363
1454
  query getUnregisteredVendors {
1364
1455
  unregisteredVendors {
1365
1456
  ...UnregisteredVendorFields
@@ -1367,7 +1458,7 @@ var GET_UNREGISTERED_VENDORS = import_client6.gql`
1367
1458
  }
1368
1459
  ${UNREGISTERED_VENDOR}
1369
1460
  `;
1370
- var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client6.gql`
1461
+ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client7.gql`
1371
1462
  query getUnregisteredVendorsByInviterId($inviterId: ID!) {
1372
1463
  unregisteredVendorsByInviterId(inviterId: $inviterId) {
1373
1464
  ...UnregisteredVendorFields
@@ -1375,7 +1466,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client6.gql`
1375
1466
  }
1376
1467
  ${UNREGISTERED_VENDOR}
1377
1468
  `;
1378
- var GET_UNREGISTERED_VENDOR = import_client6.gql`
1469
+ var GET_UNREGISTERED_VENDOR = import_client7.gql`
1379
1470
  query getUnregisteredVendor($_id: ID!) {
1380
1471
  unregisteredVendor(_id: $_id) {
1381
1472
  ...UnregisteredVendorFields
@@ -1383,7 +1474,7 @@ var GET_UNREGISTERED_VENDOR = import_client6.gql`
1383
1474
  }
1384
1475
  ${UNREGISTERED_VENDOR}
1385
1476
  `;
1386
- var MY_PENDING_VENDOR_CLAIM = import_client6.gql`
1477
+ var MY_PENDING_VENDOR_CLAIM = import_client7.gql`
1387
1478
  query myPendingVendorClaim {
1388
1479
  myPendingVendorClaim {
1389
1480
  _id
@@ -1394,7 +1485,7 @@ var MY_PENDING_VENDOR_CLAIM = import_client6.gql`
1394
1485
  `;
1395
1486
 
1396
1487
  // src/graphql/queries/user.ts
1397
- var GET_USERS = import_client7.gql`
1488
+ var GET_USERS = import_client8.gql`
1398
1489
  query getUsers {
1399
1490
  users {
1400
1491
  ...UserFields
@@ -1402,7 +1493,7 @@ var GET_USERS = import_client7.gql`
1402
1493
  }
1403
1494
  ${USER_FIELDS_FRAGMENT}
1404
1495
  `;
1405
- var GET_USER = import_client7.gql`
1496
+ var GET_USER = import_client8.gql`
1406
1497
  query getUser($_id: ID!) {
1407
1498
  user(_id: $_id) {
1408
1499
  ...UserFields
@@ -1410,7 +1501,7 @@ var GET_USER = import_client7.gql`
1410
1501
  }
1411
1502
  ${USER_FIELDS_FRAGMENT}
1412
1503
  `;
1413
- var GET_USER_EVENTS = import_client7.gql`
1504
+ var GET_USER_EVENTS = import_client8.gql`
1414
1505
  query getUserEvents {
1415
1506
  userEvents {
1416
1507
  ...EventFields
@@ -1418,7 +1509,7 @@ var GET_USER_EVENTS = import_client7.gql`
1418
1509
  }
1419
1510
  ${EVENT}
1420
1511
  `;
1421
- var GET_USER_VENDORS = import_client7.gql`
1512
+ var GET_USER_VENDORS = import_client8.gql`
1422
1513
  query getUserVendors {
1423
1514
  userVendors {
1424
1515
  ...VendorFields
@@ -1426,7 +1517,7 @@ var GET_USER_VENDORS = import_client7.gql`
1426
1517
  }
1427
1518
  ${VENDOR}
1428
1519
  `;
1429
- var GET_USER_PARTNERS = import_client7.gql`
1520
+ var GET_USER_PARTNERS = import_client8.gql`
1430
1521
  query getUserPartners {
1431
1522
  userPartners {
1432
1523
  ...PartnerFields
@@ -1434,7 +1525,7 @@ var GET_USER_PARTNERS = import_client7.gql`
1434
1525
  }
1435
1526
  ${PARTNER}
1436
1527
  `;
1437
- var GET_USER_ACTIVITIES = import_client7.gql`
1528
+ var GET_USER_ACTIVITIES = import_client8.gql`
1438
1529
  query getUserActivities {
1439
1530
  userActivities {
1440
1531
  favourites {
@@ -1469,7 +1560,7 @@ var GET_USER_ACTIVITIES = import_client7.gql`
1469
1560
  ${VENDOR}
1470
1561
  ${PARTNER}
1471
1562
  `;
1472
- var GET_USER_RESOURCES = import_client7.gql`
1563
+ var GET_USER_RESOURCES = import_client8.gql`
1473
1564
  query getUserResources($userId: ID!) {
1474
1565
  userResources(userId: $userId) {
1475
1566
  resources {
@@ -1484,7 +1575,7 @@ var GET_USER_RESOURCES = import_client7.gql`
1484
1575
 
1485
1576
  // src/graphql/hooks/user/hooksQuery.ts
1486
1577
  var useGetUser = (_id) => {
1487
- const { loading, error, data, refetch } = (0, import_client8.useQuery)(
1578
+ const { loading, error, data, refetch } = (0, import_client9.useQuery)(
1488
1579
  GET_USER,
1489
1580
  {
1490
1581
  fetchPolicy: "network-only",