@timardex/cluemart-shared 1.2.65 → 1.2.68
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--4RgHfBN.d.ts +83 -0
- package/dist/ad-ByXz9Km3.d.mts +83 -0
- package/dist/{auth-BwtjPUgO.d.ts → auth-ChIm_Rn9.d.ts} +1 -1
- package/dist/{auth-DaiySFU6.d.mts → auth-gyDaskvq.d.mts} +1 -1
- package/dist/{chunk-N625BZKR.mjs → chunk-ILRVLTWY.mjs} +1 -1
- package/dist/{chunk-N625BZKR.mjs.map → chunk-ILRVLTWY.mjs.map} +1 -1
- package/dist/formFields/index.cjs +2 -0
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -2
- package/dist/formFields/index.d.ts +3 -2
- package/dist/formFields/index.mjs +1 -0
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-CKf55A-q.d.mts → global-Q8FB4ZfD.d.mts} +97 -7
- package/dist/{global-BY8seqWN.d.ts → global-X7Gs8dR2.d.ts} +97 -7
- package/dist/graphql/index.cjs +8 -7
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +8 -7
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +15 -10
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +15 -10
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +25 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +108 -100
- package/dist/index.d.ts +108 -100
- package/dist/index.mjs +23 -16
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-DO97TmNs.d.mts → resourceActivities-DB-fx51l.d.mts} +3 -3
- package/dist/{resourceActivities-BkGGnxjl.d.ts → resourceActivities-Ezt7CDPH.d.ts} +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ad-CogBHjto.d.ts +0 -166
- package/dist/ad-VhDIYwfz.d.mts +0 -166
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
|
-
import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod,
|
|
2
|
+
import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumUserLicence, EnumOSPlatform, EnumUserRole, EnumSubscriptionStatus, EnumEventDateStatus, EnumVendorType, EnumFoodFlavor, EnumSocialMedia } from './enums/index.js';
|
|
3
3
|
|
|
4
4
|
type RelationDate = {
|
|
5
5
|
dateTime: DateTimeType & {
|
|
@@ -88,6 +88,90 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
|
88
88
|
_id: string;
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
+
type UserFormData = {
|
|
92
|
+
_id?: string;
|
|
93
|
+
active: boolean;
|
|
94
|
+
avatar?: ResourceImageType | null;
|
|
95
|
+
avatarUpload?: ResourceImageType | null;
|
|
96
|
+
confirmPassword?: string | null;
|
|
97
|
+
email: string;
|
|
98
|
+
firstName: string;
|
|
99
|
+
isTester: boolean;
|
|
100
|
+
lastName: string;
|
|
101
|
+
password?: string | null;
|
|
102
|
+
platform?: EnumOSPlatform;
|
|
103
|
+
preferredRegion: string;
|
|
104
|
+
role: EnumUserRole;
|
|
105
|
+
termsAgreement?: TermsAgreement | null;
|
|
106
|
+
};
|
|
107
|
+
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
108
|
+
type UserActivityEvent = {
|
|
109
|
+
dateStatus: EnumEventDateStatus;
|
|
110
|
+
resourceId: string;
|
|
111
|
+
startDate: string;
|
|
112
|
+
startTime: string;
|
|
113
|
+
};
|
|
114
|
+
type StripeSubscription = {
|
|
115
|
+
customerId?: string;
|
|
116
|
+
subscriptionId?: string;
|
|
117
|
+
status?: EnumSubscriptionStatus;
|
|
118
|
+
currentPlan?: EnumUserLicence;
|
|
119
|
+
startDate?: string;
|
|
120
|
+
endDate?: string;
|
|
121
|
+
};
|
|
122
|
+
type SubscriptionStatusData = {
|
|
123
|
+
subscriptionId: string | null;
|
|
124
|
+
status: EnumSubscriptionStatus;
|
|
125
|
+
priceId: string | null;
|
|
126
|
+
currentPlan: EnumUserLicence | null;
|
|
127
|
+
};
|
|
128
|
+
type UserActivity = {
|
|
129
|
+
favourites: {
|
|
130
|
+
events: string[];
|
|
131
|
+
vendors: string[];
|
|
132
|
+
partners: string[];
|
|
133
|
+
};
|
|
134
|
+
going: {
|
|
135
|
+
events: UserActivityEvent[];
|
|
136
|
+
};
|
|
137
|
+
interested: {
|
|
138
|
+
events: UserActivityEvent[];
|
|
139
|
+
};
|
|
140
|
+
present: {
|
|
141
|
+
events: UserActivityEvent[];
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
type UserLicenceType = {
|
|
145
|
+
expiryDate: Date | null;
|
|
146
|
+
issuedDate: Date | null;
|
|
147
|
+
licenceType: EnumUserLicence;
|
|
148
|
+
};
|
|
149
|
+
interface UserType {
|
|
150
|
+
_id: string;
|
|
151
|
+
active: boolean;
|
|
152
|
+
associates?: AssociateType[] | null;
|
|
153
|
+
avatar: ResourceImageType | null;
|
|
154
|
+
createdAt: Date;
|
|
155
|
+
deletedAt: Date | null;
|
|
156
|
+
email: string;
|
|
157
|
+
events: string[] | null;
|
|
158
|
+
firstName: string;
|
|
159
|
+
isTester: boolean;
|
|
160
|
+
lastName: string;
|
|
161
|
+
licences: UserLicenceType[] | null;
|
|
162
|
+
partner: string | null;
|
|
163
|
+
password: string;
|
|
164
|
+
platform: EnumOSPlatform | null;
|
|
165
|
+
preferredRegion: string;
|
|
166
|
+
refreshToken: string | null;
|
|
167
|
+
role: EnumUserRole;
|
|
168
|
+
stripe?: StripeSubscription;
|
|
169
|
+
termsAgreement?: TermsAgreement | null;
|
|
170
|
+
updatedAt: Date | null;
|
|
171
|
+
userActivity: UserActivity | null;
|
|
172
|
+
vendor: string | null;
|
|
173
|
+
}
|
|
174
|
+
|
|
91
175
|
type VendorLocation = {
|
|
92
176
|
dateTime: Nullable<DateTimeType> | null;
|
|
93
177
|
description?: string | null;
|
|
@@ -210,7 +294,13 @@ type AssociateType = {
|
|
|
210
294
|
email: string;
|
|
211
295
|
resourceId: string;
|
|
212
296
|
resourceType: EnumResourceType;
|
|
213
|
-
licence:
|
|
297
|
+
licence: UserLicenceType;
|
|
298
|
+
};
|
|
299
|
+
type AssociateTypeFormData = {
|
|
300
|
+
email: string;
|
|
301
|
+
resourceId: string;
|
|
302
|
+
resourceType: EnumResourceType;
|
|
303
|
+
licenceType: EnumUserLicence;
|
|
214
304
|
};
|
|
215
305
|
type OwnerType = {
|
|
216
306
|
email: string;
|
|
@@ -219,7 +309,7 @@ type OwnerType = {
|
|
|
219
309
|
interface BaseResourceTypeFormData {
|
|
220
310
|
_id?: string;
|
|
221
311
|
active: boolean;
|
|
222
|
-
associates?:
|
|
312
|
+
associates?: AssociateTypeFormData[] | null;
|
|
223
313
|
contactDetails?: ResourceContactDetailsType | null;
|
|
224
314
|
cover: ResourceImageType;
|
|
225
315
|
coverUpload?: ResourceImageType | null;
|
|
@@ -243,11 +333,11 @@ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "
|
|
|
243
333
|
_id: string;
|
|
244
334
|
adIds?: string[] | null;
|
|
245
335
|
chatIds?: string[] | null;
|
|
246
|
-
createdAt:
|
|
247
|
-
deletedAt:
|
|
336
|
+
createdAt: Date;
|
|
337
|
+
deletedAt: Date | null;
|
|
248
338
|
owner: OwnerType;
|
|
249
339
|
posterUsage?: PosterUsageType | null;
|
|
250
|
-
updatedAt:
|
|
340
|
+
updatedAt: Date | null;
|
|
251
341
|
};
|
|
252
342
|
type LocationType = {
|
|
253
343
|
city: string;
|
|
@@ -338,4 +428,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
338
428
|
watch: UseFormWatch<T>;
|
|
339
429
|
}
|
|
340
430
|
|
|
341
|
-
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G,
|
|
431
|
+
export type { UserActivity as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, CreateFormData as H, ImageObjectType as I, DateTimeWithPriceType as J, PaymentInfoType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, RelationDate as Q, Requirement as R, StallType as S, TermsAgreement as T, UserType as U, VendorType as V, VendorLocation as W, VendorMenuType as X, VendorAttributes as Y, UserActivityEvent as Z, StripeSubscription as _, FormDateField as a, UserLicenceType as a0, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, SubscriptionStatusData as f, VendorFormData as g, CreateVendorFormData as h, VendorInfoFormData as i, CreateVendorInfoFormData as j, EventFormData as k, CreateEventFormData as l, EventInfoFormData as m, CreateEventInfoFormData as n, UserFormData as o, CreateUserFormData as p, ResourceContactDetailsType as q, ResourceImageType as r, SocialMediaType as s, AssociateTypeFormData as t, OwnerType as u, BaseResourceType as v, DateTimeType as w, Region as x, SubcategoryItems as y, Subcategory as z };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -2108,21 +2108,22 @@ var useGetVendorInfo = (vendorId) => {
|
|
|
2108
2108
|
};
|
|
2109
2109
|
};
|
|
2110
2110
|
|
|
2111
|
-
// src/graphql/hooks/
|
|
2111
|
+
// src/graphql/hooks/tester/hooksMutation.ts
|
|
2112
2112
|
var import_client39 = require("@apollo/client");
|
|
2113
2113
|
|
|
2114
|
-
// src/graphql/mutations/
|
|
2114
|
+
// src/graphql/mutations/tester.ts
|
|
2115
2115
|
var import_client38 = require("@apollo/client");
|
|
2116
2116
|
|
|
2117
|
-
// src/graphql/queries/
|
|
2117
|
+
// src/graphql/queries/tester.ts
|
|
2118
2118
|
var import_client37 = require("@apollo/client");
|
|
2119
2119
|
var TESTER_FIELDS_FRAGMENT = import_client37.gql`
|
|
2120
2120
|
fragment TesterFields on TesterType {
|
|
2121
2121
|
_id
|
|
2122
|
+
active
|
|
2123
|
+
approved
|
|
2122
2124
|
categories {
|
|
2123
2125
|
...CategoryFields
|
|
2124
2126
|
}
|
|
2125
|
-
active
|
|
2126
2127
|
companyName
|
|
2127
2128
|
createdAt
|
|
2128
2129
|
email
|
|
@@ -2152,7 +2153,7 @@ var GET_TESTER = import_client37.gql`
|
|
|
2152
2153
|
${TESTER_FIELDS_FRAGMENT}
|
|
2153
2154
|
`;
|
|
2154
2155
|
|
|
2155
|
-
// src/graphql/mutations/
|
|
2156
|
+
// src/graphql/mutations/tester.ts
|
|
2156
2157
|
var CREATE_TESTER_MUTATION = import_client38.gql`
|
|
2157
2158
|
mutation createTester($input: TesterInputType!) {
|
|
2158
2159
|
createTester(input: $input) {
|
|
@@ -2175,7 +2176,7 @@ var DELETE_TESTER_MUTATION = import_client38.gql`
|
|
|
2175
2176
|
}
|
|
2176
2177
|
`;
|
|
2177
2178
|
|
|
2178
|
-
// src/graphql/hooks/
|
|
2179
|
+
// src/graphql/hooks/tester/hooksMutation.ts
|
|
2179
2180
|
var useCreateTester = () => {
|
|
2180
2181
|
const [createTester, { data, loading, error }] = (0, import_client39.useMutation)(
|
|
2181
2182
|
CREATE_TESTER_MUTATION
|
|
@@ -2205,7 +2206,7 @@ var useDeleteTester = () => {
|
|
|
2205
2206
|
return { deleteTester, error, loading };
|
|
2206
2207
|
};
|
|
2207
2208
|
|
|
2208
|
-
// src/graphql/hooks/
|
|
2209
|
+
// src/graphql/hooks/tester/hooksQuery.ts
|
|
2209
2210
|
var import_client40 = require("@apollo/client");
|
|
2210
2211
|
var useGetTesters = () => {
|
|
2211
2212
|
const { data, loading, error, refetch } = (0, import_client40.useQuery)(GET_TESTERS);
|