@timardex/cluemart-shared 1.7.26 → 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.
- package/dist/{ad-xMotoDzt.d.ts → ad-CQrQILqt.d.ts} +2 -2
- package/dist/{ad-BNumAVY7.d.mts → ad-DaMV_FdN.d.mts} +2 -2
- package/dist/{coupon-CqCTYMW1.d.ts → affiliate-BjNe7vrz.d.ts} +3 -47
- package/dist/{coupon-O__x-VRW.d.mts → affiliate-CRzUWMPv.d.mts} +3 -47
- package/dist/auth/index.cjs +118 -26
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-336EZBSA.mjs → chunk-2KVUR42L.mjs} +9 -85
- package/dist/chunk-2KVUR42L.mjs.map +1 -0
- package/dist/{chunk-4G4OFSBZ.mjs → chunk-PACEDU64.mjs} +11 -6
- package/dist/{chunk-4G4OFSBZ.mjs.map → chunk-PACEDU64.mjs.map} +1 -1
- package/dist/{chunk-WPBHYGXW.mjs → chunk-PFY3LS6P.mjs} +120 -26
- package/dist/chunk-PFY3LS6P.mjs.map +1 -0
- package/dist/{contactUs-BJiiMuGX.d.ts → contactUs-BCkSecPW.d.ts} +1 -1
- package/dist/{contactUs-5t9rb3U4.d.mts → contactUs-ryrB_j4c.d.mts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +1 -1
- package/dist/{global-B6VyEshc.d.ts → global-CF8hwvkc.d.ts} +51 -1
- package/dist/{global-BKGlrm75.d.mts → global-Ch11tfC6.d.mts} +51 -1
- package/dist/graphql/index.cjs +499 -485
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +5 -5
- package/dist/graphql/index.d.ts +5 -5
- package/dist/graphql/index.mjs +2 -2
- package/dist/hooks/index.cjs +353 -339
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +8 -8
- package/dist/hooks/index.d.ts +8 -8
- package/dist/hooks/index.mjs +4 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +510 -491
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +53 -46
- package/dist/index.d.ts +53 -46
- package/dist/index.mjs +326 -307
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-HkorPbJU.d.ts → resourceActivities-2SjrHpuU.d.ts} +1 -1
- package/dist/{resourceActivities-l4Q014eT.d.mts → resourceActivities-isol6rr_.d.mts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/{user-Cg80mIww.d.ts → user-BdvV_3eW.d.ts} +2 -1
- package/dist/{user-go-eqanx.d.mts → user-CFVqH8Xk.d.mts} +2 -1
- package/dist/utils/index.cjs +11 -6
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +5 -5
- package/dist/utils/index.d.ts +5 -5
- package/dist/utils/index.mjs +3 -3
- package/package.json +1 -1
- package/dist/chunk-336EZBSA.mjs.map +0 -1
- package/dist/chunk-WPBHYGXW.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.js';
|
|
2
|
-
import {
|
|
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-
|
|
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 {
|
|
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-
|
|
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 {
|
|
3
|
-
import { U as UserFormData } from './user-
|
|
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
|
|
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 {
|
|
3
|
-
import { U as UserFormData } from './user-
|
|
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
|
|
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 };
|
package/dist/auth/index.cjs
CHANGED
|
@@ -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
|
|
810
|
+
var import_client9 = require("@apollo/client");
|
|
810
811
|
|
|
811
812
|
// src/graphql/queries/user.ts
|
|
812
|
-
var
|
|
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
|
|
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,9 +1214,12 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client6.gql`
|
|
|
1126
1214
|
startTime
|
|
1127
1215
|
}
|
|
1128
1216
|
`;
|
|
1129
|
-
var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT =
|
|
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
1225
|
name
|
|
@@ -1137,8 +1228,9 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client6.gql`
|
|
|
1137
1228
|
productGroups
|
|
1138
1229
|
updatedAt
|
|
1139
1230
|
}
|
|
1231
|
+
${PRODUCT_COUPON_FIELDS_FRAGMENT}
|
|
1140
1232
|
`;
|
|
1141
|
-
var VENDOR =
|
|
1233
|
+
var VENDOR = import_client7.gql`
|
|
1142
1234
|
fragment VendorFields on VendorType {
|
|
1143
1235
|
_id
|
|
1144
1236
|
active
|
|
@@ -1239,13 +1331,13 @@ var VENDOR = import_client6.gql`
|
|
|
1239
1331
|
${RELATED_POST_FIELDS_FRAGMENT}
|
|
1240
1332
|
${SOCIAL_SHARE_RESOURCE_FIELDS_FRAGMENT}
|
|
1241
1333
|
`;
|
|
1242
|
-
var VENDOR_ATTRIBUTES_FRAGMENT =
|
|
1334
|
+
var VENDOR_ATTRIBUTES_FRAGMENT = import_client7.gql`
|
|
1243
1335
|
fragment VendorAttributesFields on VendorAttributesType {
|
|
1244
1336
|
details
|
|
1245
1337
|
isRequired
|
|
1246
1338
|
}
|
|
1247
1339
|
`;
|
|
1248
|
-
var VENDOR_INFO =
|
|
1340
|
+
var VENDOR_INFO = import_client7.gql`
|
|
1249
1341
|
fragment VendorInfoFields on VendorInfoType {
|
|
1250
1342
|
_id
|
|
1251
1343
|
compliance {
|
|
@@ -1286,7 +1378,7 @@ var VENDOR_INFO = import_client6.gql`
|
|
|
1286
1378
|
${VENDOR_ATTRIBUTES_FRAGMENT}
|
|
1287
1379
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
1288
1380
|
`;
|
|
1289
|
-
var UNREGISTERED_VENDOR_INVITATION_FRAGMENT =
|
|
1381
|
+
var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client7.gql`
|
|
1290
1382
|
fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
|
|
1291
1383
|
dateTime {
|
|
1292
1384
|
...DateTimeFields
|
|
@@ -1295,7 +1387,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client6.gql`
|
|
|
1295
1387
|
}
|
|
1296
1388
|
${DATETIME_FIELDS_FRAGMENT}
|
|
1297
1389
|
`;
|
|
1298
|
-
var UNREGISTERED_VENDOR =
|
|
1390
|
+
var UNREGISTERED_VENDOR = import_client7.gql`
|
|
1299
1391
|
fragment UnregisteredVendorFields on UnregisteredVendorType {
|
|
1300
1392
|
_id
|
|
1301
1393
|
active
|
|
@@ -1315,7 +1407,7 @@ var UNREGISTERED_VENDOR = import_client6.gql`
|
|
|
1315
1407
|
}
|
|
1316
1408
|
${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
|
|
1317
1409
|
`;
|
|
1318
|
-
var GET_VENDORS =
|
|
1410
|
+
var GET_VENDORS = import_client7.gql`
|
|
1319
1411
|
query getVendors {
|
|
1320
1412
|
vendors {
|
|
1321
1413
|
...VendorFields
|
|
@@ -1323,7 +1415,7 @@ var GET_VENDORS = import_client6.gql`
|
|
|
1323
1415
|
}
|
|
1324
1416
|
${VENDOR}
|
|
1325
1417
|
`;
|
|
1326
|
-
var GET_VENDOR =
|
|
1418
|
+
var GET_VENDOR = import_client7.gql`
|
|
1327
1419
|
query getVendor($_id: ID!) {
|
|
1328
1420
|
vendor(_id: $_id) {
|
|
1329
1421
|
...VendorFields
|
|
@@ -1331,7 +1423,7 @@ var GET_VENDOR = import_client6.gql`
|
|
|
1331
1423
|
}
|
|
1332
1424
|
${VENDOR}
|
|
1333
1425
|
`;
|
|
1334
|
-
var GET_VENDORS_BY_REGION =
|
|
1426
|
+
var GET_VENDORS_BY_REGION = import_client7.gql`
|
|
1335
1427
|
query getVendorsByRegion(
|
|
1336
1428
|
$region: String!
|
|
1337
1429
|
$options: ResourcesByRegionOptions
|
|
@@ -1342,7 +1434,7 @@ var GET_VENDORS_BY_REGION = import_client6.gql`
|
|
|
1342
1434
|
}
|
|
1343
1435
|
${VENDOR}
|
|
1344
1436
|
`;
|
|
1345
|
-
var SEARCH_VENDORS =
|
|
1437
|
+
var SEARCH_VENDORS = import_client7.gql`
|
|
1346
1438
|
query searchVendors($search: String!, $region: String!) {
|
|
1347
1439
|
vendorSearch(search: $search, region: $region) {
|
|
1348
1440
|
...VendorFields
|
|
@@ -1350,7 +1442,7 @@ var SEARCH_VENDORS = import_client6.gql`
|
|
|
1350
1442
|
}
|
|
1351
1443
|
${VENDOR}
|
|
1352
1444
|
`;
|
|
1353
|
-
var GET_VENDOR_INFO =
|
|
1445
|
+
var GET_VENDOR_INFO = import_client7.gql`
|
|
1354
1446
|
query getVendorInfo($vendorId: ID!) {
|
|
1355
1447
|
vendorInfo(vendorId: $vendorId) {
|
|
1356
1448
|
...VendorInfoFields
|
|
@@ -1358,7 +1450,7 @@ var GET_VENDOR_INFO = import_client6.gql`
|
|
|
1358
1450
|
}
|
|
1359
1451
|
${VENDOR_INFO}
|
|
1360
1452
|
`;
|
|
1361
|
-
var GET_UNREGISTERED_VENDORS =
|
|
1453
|
+
var GET_UNREGISTERED_VENDORS = import_client7.gql`
|
|
1362
1454
|
query getUnregisteredVendors {
|
|
1363
1455
|
unregisteredVendors {
|
|
1364
1456
|
...UnregisteredVendorFields
|
|
@@ -1366,7 +1458,7 @@ var GET_UNREGISTERED_VENDORS = import_client6.gql`
|
|
|
1366
1458
|
}
|
|
1367
1459
|
${UNREGISTERED_VENDOR}
|
|
1368
1460
|
`;
|
|
1369
|
-
var GET_UNREGISTERED_VENDORS_BY_INVITER_ID =
|
|
1461
|
+
var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client7.gql`
|
|
1370
1462
|
query getUnregisteredVendorsByInviterId($inviterId: ID!) {
|
|
1371
1463
|
unregisteredVendorsByInviterId(inviterId: $inviterId) {
|
|
1372
1464
|
...UnregisteredVendorFields
|
|
@@ -1374,7 +1466,7 @@ var GET_UNREGISTERED_VENDORS_BY_INVITER_ID = import_client6.gql`
|
|
|
1374
1466
|
}
|
|
1375
1467
|
${UNREGISTERED_VENDOR}
|
|
1376
1468
|
`;
|
|
1377
|
-
var GET_UNREGISTERED_VENDOR =
|
|
1469
|
+
var GET_UNREGISTERED_VENDOR = import_client7.gql`
|
|
1378
1470
|
query getUnregisteredVendor($_id: ID!) {
|
|
1379
1471
|
unregisteredVendor(_id: $_id) {
|
|
1380
1472
|
...UnregisteredVendorFields
|
|
@@ -1382,7 +1474,7 @@ var GET_UNREGISTERED_VENDOR = import_client6.gql`
|
|
|
1382
1474
|
}
|
|
1383
1475
|
${UNREGISTERED_VENDOR}
|
|
1384
1476
|
`;
|
|
1385
|
-
var MY_PENDING_VENDOR_CLAIM =
|
|
1477
|
+
var MY_PENDING_VENDOR_CLAIM = import_client7.gql`
|
|
1386
1478
|
query myPendingVendorClaim {
|
|
1387
1479
|
myPendingVendorClaim {
|
|
1388
1480
|
_id
|
|
@@ -1393,7 +1485,7 @@ var MY_PENDING_VENDOR_CLAIM = import_client6.gql`
|
|
|
1393
1485
|
`;
|
|
1394
1486
|
|
|
1395
1487
|
// src/graphql/queries/user.ts
|
|
1396
|
-
var GET_USERS =
|
|
1488
|
+
var GET_USERS = import_client8.gql`
|
|
1397
1489
|
query getUsers {
|
|
1398
1490
|
users {
|
|
1399
1491
|
...UserFields
|
|
@@ -1401,7 +1493,7 @@ var GET_USERS = import_client7.gql`
|
|
|
1401
1493
|
}
|
|
1402
1494
|
${USER_FIELDS_FRAGMENT}
|
|
1403
1495
|
`;
|
|
1404
|
-
var GET_USER =
|
|
1496
|
+
var GET_USER = import_client8.gql`
|
|
1405
1497
|
query getUser($_id: ID!) {
|
|
1406
1498
|
user(_id: $_id) {
|
|
1407
1499
|
...UserFields
|
|
@@ -1409,7 +1501,7 @@ var GET_USER = import_client7.gql`
|
|
|
1409
1501
|
}
|
|
1410
1502
|
${USER_FIELDS_FRAGMENT}
|
|
1411
1503
|
`;
|
|
1412
|
-
var GET_USER_EVENTS =
|
|
1504
|
+
var GET_USER_EVENTS = import_client8.gql`
|
|
1413
1505
|
query getUserEvents {
|
|
1414
1506
|
userEvents {
|
|
1415
1507
|
...EventFields
|
|
@@ -1417,7 +1509,7 @@ var GET_USER_EVENTS = import_client7.gql`
|
|
|
1417
1509
|
}
|
|
1418
1510
|
${EVENT}
|
|
1419
1511
|
`;
|
|
1420
|
-
var GET_USER_VENDORS =
|
|
1512
|
+
var GET_USER_VENDORS = import_client8.gql`
|
|
1421
1513
|
query getUserVendors {
|
|
1422
1514
|
userVendors {
|
|
1423
1515
|
...VendorFields
|
|
@@ -1425,7 +1517,7 @@ var GET_USER_VENDORS = import_client7.gql`
|
|
|
1425
1517
|
}
|
|
1426
1518
|
${VENDOR}
|
|
1427
1519
|
`;
|
|
1428
|
-
var GET_USER_PARTNERS =
|
|
1520
|
+
var GET_USER_PARTNERS = import_client8.gql`
|
|
1429
1521
|
query getUserPartners {
|
|
1430
1522
|
userPartners {
|
|
1431
1523
|
...PartnerFields
|
|
@@ -1433,7 +1525,7 @@ var GET_USER_PARTNERS = import_client7.gql`
|
|
|
1433
1525
|
}
|
|
1434
1526
|
${PARTNER}
|
|
1435
1527
|
`;
|
|
1436
|
-
var GET_USER_ACTIVITIES =
|
|
1528
|
+
var GET_USER_ACTIVITIES = import_client8.gql`
|
|
1437
1529
|
query getUserActivities {
|
|
1438
1530
|
userActivities {
|
|
1439
1531
|
favourites {
|
|
@@ -1468,7 +1560,7 @@ var GET_USER_ACTIVITIES = import_client7.gql`
|
|
|
1468
1560
|
${VENDOR}
|
|
1469
1561
|
${PARTNER}
|
|
1470
1562
|
`;
|
|
1471
|
-
var GET_USER_RESOURCES =
|
|
1563
|
+
var GET_USER_RESOURCES = import_client8.gql`
|
|
1472
1564
|
query getUserResources($userId: ID!) {
|
|
1473
1565
|
userResources(userId: $userId) {
|
|
1474
1566
|
resources {
|
|
@@ -1483,7 +1575,7 @@ var GET_USER_RESOURCES = import_client7.gql`
|
|
|
1483
1575
|
|
|
1484
1576
|
// src/graphql/hooks/user/hooksQuery.ts
|
|
1485
1577
|
var useGetUser = (_id) => {
|
|
1486
|
-
const { loading, error, data, refetch } = (0,
|
|
1578
|
+
const { loading, error, data, refetch } = (0, import_client9.useQuery)(
|
|
1487
1579
|
GET_USER,
|
|
1488
1580
|
{
|
|
1489
1581
|
fetchPolicy: "network-only",
|