@timardex/cluemart-shared 1.2.7 → 1.2.9
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/{auth-Dcif6SZD.d.mts → ad-BdkvVgTG.d.mts} +2 -51
- package/dist/{auth-BS0Z8xN3.d.ts → ad-CaHFwLDq.d.ts} +2 -51
- package/dist/auth-Bdbu0AYI.d.ts +45 -0
- package/dist/auth-DEMvXVbh.d.mts +45 -0
- package/dist/{chunk-JUZHLSQK.mjs → chunk-NLDCBJIQ.mjs} +2 -2
- package/dist/{chunk-4RWXISXJ.mjs → chunk-U6WFPNBJ.mjs} +8 -8
- package/dist/{chunk-4RWXISXJ.mjs.map → chunk-U6WFPNBJ.mjs.map} +1 -1
- package/dist/enums/index.cjs +7 -7
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +7 -7
- package/dist/enums/index.d.ts +7 -7
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/{global-CNiNcYkF.d.mts → global-BT5qyeKd.d.mts} +27 -11
- package/dist/{global-Clh5l5eo.d.ts → global-BvXtqVsE.d.ts} +27 -11
- package/dist/graphql/index.cjs +65 -24
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +66 -25
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +47 -72
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +42 -67
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +112 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +32 -32
- package/dist/index.d.ts +32 -32
- package/dist/index.mjs +112 -96
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/contactUs-BTRh2D7-.d.mts +0 -11
- package/dist/contactUs-OR-5Mkkg.d.ts +0 -11
- /package/dist/{chunk-JUZHLSQK.mjs.map → chunk-NLDCBJIQ.mjs.map} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -35,15 +35,15 @@ declare enum EnumResourceType {
|
|
|
35
35
|
VENDOR = "vendor"
|
|
36
36
|
}
|
|
37
37
|
declare enum EnumEventType {
|
|
38
|
-
EXPO = "
|
|
39
|
-
FAIR = "
|
|
40
|
-
FESTIVAL = "
|
|
41
|
-
MARKET = "
|
|
38
|
+
EXPO = "Expo",
|
|
39
|
+
FAIR = "Fair",
|
|
40
|
+
FESTIVAL = "Festival",
|
|
41
|
+
MARKET = "Market"
|
|
42
42
|
}
|
|
43
43
|
declare enum EnumVendorType {
|
|
44
|
-
STALLHOLDER = "
|
|
45
|
-
SHOP = "
|
|
46
|
-
CHARITY = "
|
|
44
|
+
STALLHOLDER = "Stallholder",
|
|
45
|
+
SHOP = "Shop",
|
|
46
|
+
CHARITY = "Charity"
|
|
47
47
|
}
|
|
48
48
|
declare enum EnumOSPlatform {
|
|
49
49
|
ANDROID = "android",
|
|
@@ -165,7 +165,6 @@ type Requirement = {
|
|
|
165
165
|
interface EventInfoFormData {
|
|
166
166
|
_id?: string;
|
|
167
167
|
applicationDeadlineHours: number;
|
|
168
|
-
contactDetails?: ResourceContactDetailsType | null;
|
|
169
168
|
dateTime: DateTimeWithPriceType[];
|
|
170
169
|
eventId: string;
|
|
171
170
|
packInTime: number;
|
|
@@ -238,7 +237,6 @@ type VendorInfoFormData = {
|
|
|
238
237
|
liabilityInsurance: boolean;
|
|
239
238
|
foodBeverageLicense: boolean;
|
|
240
239
|
};
|
|
241
|
-
contactDetails?: ResourceContactDetailsType | null;
|
|
242
240
|
documents?: ResourceImageType[] | null;
|
|
243
241
|
documentsUpload?: ResourceImageType[] | null;
|
|
244
242
|
product: {
|
|
@@ -287,6 +285,27 @@ interface VendorWithConnectionDatesType extends VendorType {
|
|
|
287
285
|
type Nullable<T> = {
|
|
288
286
|
[K in keyof T]: T[K] | null | undefined;
|
|
289
287
|
};
|
|
288
|
+
type DeviceInfo = {
|
|
289
|
+
appBuildNumber: string;
|
|
290
|
+
appId: string;
|
|
291
|
+
appVersion: string;
|
|
292
|
+
brand: string;
|
|
293
|
+
deviceName: string;
|
|
294
|
+
installationId: string;
|
|
295
|
+
manufacturer: string;
|
|
296
|
+
modelName: string;
|
|
297
|
+
osName: string;
|
|
298
|
+
osVersion: string;
|
|
299
|
+
timestamp: string;
|
|
300
|
+
};
|
|
301
|
+
type TermsAgreement = DeviceInfo & {
|
|
302
|
+
termVersion: string;
|
|
303
|
+
};
|
|
304
|
+
type ResourceContactDetailsType = {
|
|
305
|
+
email?: string | null;
|
|
306
|
+
landlinePhone?: string | null;
|
|
307
|
+
mobilePhone?: string | null;
|
|
308
|
+
};
|
|
290
309
|
type ResourceImageType = {
|
|
291
310
|
source: string;
|
|
292
311
|
title: string;
|
|
@@ -308,6 +327,7 @@ type OwnerType = {
|
|
|
308
327
|
interface BaseResourceTypeFormData {
|
|
309
328
|
_id?: string;
|
|
310
329
|
active: boolean;
|
|
330
|
+
contactDetails?: ResourceContactDetailsType | null;
|
|
311
331
|
cover: ResourceImageType;
|
|
312
332
|
coverUpload?: ResourceImageType | null;
|
|
313
333
|
description: string;
|
|
@@ -316,11 +336,12 @@ interface BaseResourceTypeFormData {
|
|
|
316
336
|
logo?: ResourceImageType | null;
|
|
317
337
|
logoUpload?: ResourceImageType | null;
|
|
318
338
|
name: string;
|
|
339
|
+
owner?: OwnerType | null;
|
|
340
|
+
partners?: PartnerType[] | null;
|
|
319
341
|
promoCodes?: string[] | null;
|
|
320
342
|
region: string;
|
|
321
343
|
socialMedia?: SocialMediaType[] | null;
|
|
322
|
-
|
|
323
|
-
owner?: OwnerType | null;
|
|
344
|
+
termsAgreement?: TermsAgreement | null;
|
|
324
345
|
}
|
|
325
346
|
type PosterUsageType = {
|
|
326
347
|
month: string;
|
|
@@ -422,11 +443,6 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
422
443
|
setValue: UseFormSetValue<T>;
|
|
423
444
|
watch: UseFormWatch<T>;
|
|
424
445
|
}
|
|
425
|
-
type ResourceContactDetailsType = {
|
|
426
|
-
email?: string | null;
|
|
427
|
-
landlinePhone?: string | null;
|
|
428
|
-
mobilePhone?: string | null;
|
|
429
|
-
};
|
|
430
446
|
|
|
431
447
|
declare const vendorBasicInfoFields: FormField[];
|
|
432
448
|
declare const vendorMultiLocation: FormField;
|
|
@@ -451,22 +467,6 @@ interface AdminUpdateResourceType {
|
|
|
451
467
|
resourceType: EnumResourceType;
|
|
452
468
|
}
|
|
453
469
|
|
|
454
|
-
type DeviceInfo = {
|
|
455
|
-
appBuildNumber: string;
|
|
456
|
-
appId: string;
|
|
457
|
-
appVersion: string;
|
|
458
|
-
brand: string;
|
|
459
|
-
deviceName: string;
|
|
460
|
-
installationId: string;
|
|
461
|
-
manufacturer: string;
|
|
462
|
-
modelName: string;
|
|
463
|
-
osName: string;
|
|
464
|
-
osVersion: string;
|
|
465
|
-
timestamp: string;
|
|
466
|
-
};
|
|
467
|
-
type TermsAgreement = DeviceInfo & {
|
|
468
|
-
termVersion: string;
|
|
469
|
-
};
|
|
470
470
|
type LoginFormData = {
|
|
471
471
|
email: string;
|
|
472
472
|
isAdminPage?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -35,15 +35,15 @@ declare enum EnumResourceType {
|
|
|
35
35
|
VENDOR = "vendor"
|
|
36
36
|
}
|
|
37
37
|
declare enum EnumEventType {
|
|
38
|
-
EXPO = "
|
|
39
|
-
FAIR = "
|
|
40
|
-
FESTIVAL = "
|
|
41
|
-
MARKET = "
|
|
38
|
+
EXPO = "Expo",
|
|
39
|
+
FAIR = "Fair",
|
|
40
|
+
FESTIVAL = "Festival",
|
|
41
|
+
MARKET = "Market"
|
|
42
42
|
}
|
|
43
43
|
declare enum EnumVendorType {
|
|
44
|
-
STALLHOLDER = "
|
|
45
|
-
SHOP = "
|
|
46
|
-
CHARITY = "
|
|
44
|
+
STALLHOLDER = "Stallholder",
|
|
45
|
+
SHOP = "Shop",
|
|
46
|
+
CHARITY = "Charity"
|
|
47
47
|
}
|
|
48
48
|
declare enum EnumOSPlatform {
|
|
49
49
|
ANDROID = "android",
|
|
@@ -165,7 +165,6 @@ type Requirement = {
|
|
|
165
165
|
interface EventInfoFormData {
|
|
166
166
|
_id?: string;
|
|
167
167
|
applicationDeadlineHours: number;
|
|
168
|
-
contactDetails?: ResourceContactDetailsType | null;
|
|
169
168
|
dateTime: DateTimeWithPriceType[];
|
|
170
169
|
eventId: string;
|
|
171
170
|
packInTime: number;
|
|
@@ -238,7 +237,6 @@ type VendorInfoFormData = {
|
|
|
238
237
|
liabilityInsurance: boolean;
|
|
239
238
|
foodBeverageLicense: boolean;
|
|
240
239
|
};
|
|
241
|
-
contactDetails?: ResourceContactDetailsType | null;
|
|
242
240
|
documents?: ResourceImageType[] | null;
|
|
243
241
|
documentsUpload?: ResourceImageType[] | null;
|
|
244
242
|
product: {
|
|
@@ -287,6 +285,27 @@ interface VendorWithConnectionDatesType extends VendorType {
|
|
|
287
285
|
type Nullable<T> = {
|
|
288
286
|
[K in keyof T]: T[K] | null | undefined;
|
|
289
287
|
};
|
|
288
|
+
type DeviceInfo = {
|
|
289
|
+
appBuildNumber: string;
|
|
290
|
+
appId: string;
|
|
291
|
+
appVersion: string;
|
|
292
|
+
brand: string;
|
|
293
|
+
deviceName: string;
|
|
294
|
+
installationId: string;
|
|
295
|
+
manufacturer: string;
|
|
296
|
+
modelName: string;
|
|
297
|
+
osName: string;
|
|
298
|
+
osVersion: string;
|
|
299
|
+
timestamp: string;
|
|
300
|
+
};
|
|
301
|
+
type TermsAgreement = DeviceInfo & {
|
|
302
|
+
termVersion: string;
|
|
303
|
+
};
|
|
304
|
+
type ResourceContactDetailsType = {
|
|
305
|
+
email?: string | null;
|
|
306
|
+
landlinePhone?: string | null;
|
|
307
|
+
mobilePhone?: string | null;
|
|
308
|
+
};
|
|
290
309
|
type ResourceImageType = {
|
|
291
310
|
source: string;
|
|
292
311
|
title: string;
|
|
@@ -308,6 +327,7 @@ type OwnerType = {
|
|
|
308
327
|
interface BaseResourceTypeFormData {
|
|
309
328
|
_id?: string;
|
|
310
329
|
active: boolean;
|
|
330
|
+
contactDetails?: ResourceContactDetailsType | null;
|
|
311
331
|
cover: ResourceImageType;
|
|
312
332
|
coverUpload?: ResourceImageType | null;
|
|
313
333
|
description: string;
|
|
@@ -316,11 +336,12 @@ interface BaseResourceTypeFormData {
|
|
|
316
336
|
logo?: ResourceImageType | null;
|
|
317
337
|
logoUpload?: ResourceImageType | null;
|
|
318
338
|
name: string;
|
|
339
|
+
owner?: OwnerType | null;
|
|
340
|
+
partners?: PartnerType[] | null;
|
|
319
341
|
promoCodes?: string[] | null;
|
|
320
342
|
region: string;
|
|
321
343
|
socialMedia?: SocialMediaType[] | null;
|
|
322
|
-
|
|
323
|
-
owner?: OwnerType | null;
|
|
344
|
+
termsAgreement?: TermsAgreement | null;
|
|
324
345
|
}
|
|
325
346
|
type PosterUsageType = {
|
|
326
347
|
month: string;
|
|
@@ -422,11 +443,6 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
422
443
|
setValue: UseFormSetValue<T>;
|
|
423
444
|
watch: UseFormWatch<T>;
|
|
424
445
|
}
|
|
425
|
-
type ResourceContactDetailsType = {
|
|
426
|
-
email?: string | null;
|
|
427
|
-
landlinePhone?: string | null;
|
|
428
|
-
mobilePhone?: string | null;
|
|
429
|
-
};
|
|
430
446
|
|
|
431
447
|
declare const vendorBasicInfoFields: FormField[];
|
|
432
448
|
declare const vendorMultiLocation: FormField;
|
|
@@ -451,22 +467,6 @@ interface AdminUpdateResourceType {
|
|
|
451
467
|
resourceType: EnumResourceType;
|
|
452
468
|
}
|
|
453
469
|
|
|
454
|
-
type DeviceInfo = {
|
|
455
|
-
appBuildNumber: string;
|
|
456
|
-
appId: string;
|
|
457
|
-
appVersion: string;
|
|
458
|
-
brand: string;
|
|
459
|
-
deviceName: string;
|
|
460
|
-
installationId: string;
|
|
461
|
-
manufacturer: string;
|
|
462
|
-
modelName: string;
|
|
463
|
-
osName: string;
|
|
464
|
-
osVersion: string;
|
|
465
|
-
timestamp: string;
|
|
466
|
-
};
|
|
467
|
-
type TermsAgreement = DeviceInfo & {
|
|
468
|
-
termVersion: string;
|
|
469
|
-
};
|
|
470
470
|
type LoginFormData = {
|
|
471
471
|
email: string;
|
|
472
472
|
isAdminPage?: boolean;
|