@timardex/cluemart-shared 1.2.64 → 1.2.66
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-BChCn4Ka.d.ts +82 -0
- package/dist/ad-DC4CQ8Gp.d.mts +82 -0
- package/dist/{auth-DaiySFU6.d.mts → auth-BBzFtZee.d.mts} +1 -1
- package/dist/{auth-BwtjPUgO.d.ts → auth-DqNTAngW.d.ts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-BY8seqWN.d.ts → global-JXYCto5-.d.ts} +89 -5
- package/dist/{global-CKf55A-q.d.mts → global-WNM-jttW.d.mts} +89 -5
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/hooks/index.cjs +6 -19
- 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 +1 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +15 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +87 -87
- package/dist/index.d.ts +87 -87
- package/dist/index.mjs +15 -18
- 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.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ad-3a_BuhYm.d.mts +0 -166
- package/dist/ad-Dmry8CLr.d.ts +0 -166
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { EnumOSPlatform, EnumResourceType, EnumPartnerType } from './enums/index.js';
|
|
2
|
+
import { C as Category, z as CreateFormData, u as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, s as SocialMediaType } from './global-JXYCto5-.js';
|
|
3
|
+
|
|
4
|
+
interface TestersFormData {
|
|
5
|
+
categories?: Category[] | null;
|
|
6
|
+
companyName: string;
|
|
7
|
+
email: string;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
osType: EnumOSPlatform;
|
|
11
|
+
region: string;
|
|
12
|
+
resourceType: EnumResourceType;
|
|
13
|
+
}
|
|
14
|
+
type CreateTestersFormData = CreateFormData<TestersFormData>;
|
|
15
|
+
interface TesterType extends TestersFormData {
|
|
16
|
+
_id: string;
|
|
17
|
+
active: boolean;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
23
|
+
location: LocationType;
|
|
24
|
+
nzbn: string;
|
|
25
|
+
partnerType: EnumPartnerType;
|
|
26
|
+
}
|
|
27
|
+
type CreatePartnerFormData = CreateFormData<PartnerFormData>;
|
|
28
|
+
interface PartnerType extends BaseResourceType {
|
|
29
|
+
location: LocationType;
|
|
30
|
+
nzbn: string;
|
|
31
|
+
partnerType: EnumPartnerType;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare enum EnumAdShowOn {
|
|
35
|
+
EVENTS_PAGE = "Events_page",
|
|
36
|
+
FRONT_PAGE = "Front_page",
|
|
37
|
+
PARTNERS_PAGE = "Partners_page",
|
|
38
|
+
VENDORS_PAGE = "Vendors_page"
|
|
39
|
+
}
|
|
40
|
+
declare enum EnumAdStatus {
|
|
41
|
+
ACTIVE = "Active",
|
|
42
|
+
PAUSED = "Paused",
|
|
43
|
+
EXPIRED = "Expired"
|
|
44
|
+
}
|
|
45
|
+
declare enum EnumAdType {
|
|
46
|
+
SPONSORED = "Sponsored",
|
|
47
|
+
FREE = "Free"
|
|
48
|
+
}
|
|
49
|
+
declare enum EnumAdStyle {
|
|
50
|
+
BLOOM = "Bloom",
|
|
51
|
+
RISE = "Rise"
|
|
52
|
+
}
|
|
53
|
+
interface AdFormData {
|
|
54
|
+
active: boolean;
|
|
55
|
+
adStyle: EnumAdStyle;
|
|
56
|
+
adType: EnumAdType;
|
|
57
|
+
clui?: string | null;
|
|
58
|
+
end: Date;
|
|
59
|
+
resourceCover: string;
|
|
60
|
+
resourceDescription: string;
|
|
61
|
+
resourceId: string;
|
|
62
|
+
resourceLogo?: string | null;
|
|
63
|
+
resourceName: string;
|
|
64
|
+
resourceRegion: string;
|
|
65
|
+
resourceType: EnumResourceType;
|
|
66
|
+
showOn: EnumAdShowOn;
|
|
67
|
+
socialMedia?: SocialMediaType[] | null;
|
|
68
|
+
start?: Date;
|
|
69
|
+
status: EnumAdStatus;
|
|
70
|
+
targetRegion?: string | null;
|
|
71
|
+
}
|
|
72
|
+
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
73
|
+
interface AdType extends AdFormData {
|
|
74
|
+
_id: string;
|
|
75
|
+
clicks?: number;
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
impressions?: number;
|
|
78
|
+
start: Date;
|
|
79
|
+
updatedAt: Date;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export { type AdType as A, type CreateTestersFormData as C, EnumAdStatus as E, type PartnerType as P, type TesterType as T, type PartnerFormData as a, type TestersFormData as b, type AdFormData as c, type CreateAdFormData as d, type CreatePartnerFormData as e, EnumAdShowOn as f, EnumAdType as g, EnumAdStyle as h };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { EnumOSPlatform, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
|
|
2
|
+
import { C as Category, z as CreateFormData, u as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, s as SocialMediaType } from './global-WNM-jttW.mjs';
|
|
3
|
+
|
|
4
|
+
interface TestersFormData {
|
|
5
|
+
categories?: Category[] | null;
|
|
6
|
+
companyName: string;
|
|
7
|
+
email: string;
|
|
8
|
+
firstName: string;
|
|
9
|
+
lastName: string;
|
|
10
|
+
osType: EnumOSPlatform;
|
|
11
|
+
region: string;
|
|
12
|
+
resourceType: EnumResourceType;
|
|
13
|
+
}
|
|
14
|
+
type CreateTestersFormData = CreateFormData<TestersFormData>;
|
|
15
|
+
interface TesterType extends TestersFormData {
|
|
16
|
+
_id: string;
|
|
17
|
+
active: boolean;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
23
|
+
location: LocationType;
|
|
24
|
+
nzbn: string;
|
|
25
|
+
partnerType: EnumPartnerType;
|
|
26
|
+
}
|
|
27
|
+
type CreatePartnerFormData = CreateFormData<PartnerFormData>;
|
|
28
|
+
interface PartnerType extends BaseResourceType {
|
|
29
|
+
location: LocationType;
|
|
30
|
+
nzbn: string;
|
|
31
|
+
partnerType: EnumPartnerType;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare enum EnumAdShowOn {
|
|
35
|
+
EVENTS_PAGE = "Events_page",
|
|
36
|
+
FRONT_PAGE = "Front_page",
|
|
37
|
+
PARTNERS_PAGE = "Partners_page",
|
|
38
|
+
VENDORS_PAGE = "Vendors_page"
|
|
39
|
+
}
|
|
40
|
+
declare enum EnumAdStatus {
|
|
41
|
+
ACTIVE = "Active",
|
|
42
|
+
PAUSED = "Paused",
|
|
43
|
+
EXPIRED = "Expired"
|
|
44
|
+
}
|
|
45
|
+
declare enum EnumAdType {
|
|
46
|
+
SPONSORED = "Sponsored",
|
|
47
|
+
FREE = "Free"
|
|
48
|
+
}
|
|
49
|
+
declare enum EnumAdStyle {
|
|
50
|
+
BLOOM = "Bloom",
|
|
51
|
+
RISE = "Rise"
|
|
52
|
+
}
|
|
53
|
+
interface AdFormData {
|
|
54
|
+
active: boolean;
|
|
55
|
+
adStyle: EnumAdStyle;
|
|
56
|
+
adType: EnumAdType;
|
|
57
|
+
clui?: string | null;
|
|
58
|
+
end: Date;
|
|
59
|
+
resourceCover: string;
|
|
60
|
+
resourceDescription: string;
|
|
61
|
+
resourceId: string;
|
|
62
|
+
resourceLogo?: string | null;
|
|
63
|
+
resourceName: string;
|
|
64
|
+
resourceRegion: string;
|
|
65
|
+
resourceType: EnumResourceType;
|
|
66
|
+
showOn: EnumAdShowOn;
|
|
67
|
+
socialMedia?: SocialMediaType[] | null;
|
|
68
|
+
start?: Date;
|
|
69
|
+
status: EnumAdStatus;
|
|
70
|
+
targetRegion?: string | null;
|
|
71
|
+
}
|
|
72
|
+
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
73
|
+
interface AdType extends AdFormData {
|
|
74
|
+
_id: string;
|
|
75
|
+
clicks?: number;
|
|
76
|
+
createdAt: Date;
|
|
77
|
+
impressions?: number;
|
|
78
|
+
start: Date;
|
|
79
|
+
updatedAt: Date;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export { type AdType as A, type CreateTestersFormData as C, EnumAdStatus as E, type PartnerType as P, type TesterType as T, type PartnerFormData as a, type TestersFormData as b, type AdFormData as c, type CreateAdFormData as d, type CreatePartnerFormData as e, EnumAdShowOn as f, EnumAdType as g, EnumAdStyle as h };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-WNM-jttW.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-JXYCto5-.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -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?: string | null;
|
|
146
|
+
issuedDate?: string | null;
|
|
147
|
+
licenceType: EnumUserLicence;
|
|
148
|
+
};
|
|
149
|
+
interface UserType {
|
|
150
|
+
_id: string;
|
|
151
|
+
active: boolean;
|
|
152
|
+
associates?: AssociateType[] | null;
|
|
153
|
+
avatar: ResourceImageType | null;
|
|
154
|
+
createdAt: string;
|
|
155
|
+
deletedAt: string | 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: string;
|
|
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;
|
|
@@ -208,9 +292,9 @@ type SocialMediaType = {
|
|
|
208
292
|
};
|
|
209
293
|
type AssociateType = {
|
|
210
294
|
email: string;
|
|
211
|
-
resourceId
|
|
212
|
-
resourceType
|
|
213
|
-
licence
|
|
295
|
+
resourceId?: string;
|
|
296
|
+
resourceType?: EnumResourceType;
|
|
297
|
+
licence?: UserLicenceType;
|
|
214
298
|
};
|
|
215
299
|
type OwnerType = {
|
|
216
300
|
email: string;
|
|
@@ -338,4 +422,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
338
422
|
watch: UseFormWatch<T>;
|
|
339
423
|
}
|
|
340
424
|
|
|
341
|
-
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G,
|
|
425
|
+
export type { UserLicenceType as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, RelationDate as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UserType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UserActivityEvent as Y, StripeSubscription as Z, UserActivity as _, FormDateField as a, 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, OwnerType as t, BaseResourceType as u, DateTimeType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
|
|
@@ -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.mjs';
|
|
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?: string | null;
|
|
146
|
+
issuedDate?: string | null;
|
|
147
|
+
licenceType: EnumUserLicence;
|
|
148
|
+
};
|
|
149
|
+
interface UserType {
|
|
150
|
+
_id: string;
|
|
151
|
+
active: boolean;
|
|
152
|
+
associates?: AssociateType[] | null;
|
|
153
|
+
avatar: ResourceImageType | null;
|
|
154
|
+
createdAt: string;
|
|
155
|
+
deletedAt: string | 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: string;
|
|
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;
|
|
@@ -208,9 +292,9 @@ type SocialMediaType = {
|
|
|
208
292
|
};
|
|
209
293
|
type AssociateType = {
|
|
210
294
|
email: string;
|
|
211
|
-
resourceId
|
|
212
|
-
resourceType
|
|
213
|
-
licence
|
|
295
|
+
resourceId?: string;
|
|
296
|
+
resourceType?: EnumResourceType;
|
|
297
|
+
licence?: UserLicenceType;
|
|
214
298
|
};
|
|
215
299
|
type OwnerType = {
|
|
216
300
|
email: string;
|
|
@@ -338,4 +422,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
338
422
|
watch: UseFormWatch<T>;
|
|
339
423
|
}
|
|
340
424
|
|
|
341
|
-
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G,
|
|
425
|
+
export type { UserLicenceType as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, RelationDate as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UserType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UserActivityEvent as Y, StripeSubscription as Z, UserActivity as _, FormDateField as a, 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, OwnerType as t, BaseResourceType as u, DateTimeType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
|
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-DO97TmNs.mjs';
|
|
3
|
-
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-
|
|
3
|
+
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserType, f as SubscriptionStatusData } from '../global-WNM-jttW.mjs';
|
|
4
4
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
5
|
-
import { T as TesterType,
|
|
5
|
+
import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-DC4CQ8Gp.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-BkGGnxjl.js';
|
|
3
|
-
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-
|
|
3
|
+
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserType, f as SubscriptionStatusData } from '../global-JXYCto5-.js';
|
|
4
4
|
import { EnumResourceType } from '../enums/index.js';
|
|
5
|
-
import { T as TesterType,
|
|
5
|
+
import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-BChCn4Ka.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -168,11 +168,11 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor3) => {
|
|
|
168
168
|
EnumFoodFlavor3["SWEET"] = "Sweet";
|
|
169
169
|
return EnumFoodFlavor3;
|
|
170
170
|
})(EnumFoodFlavor || {});
|
|
171
|
-
var EnumResourceType = /* @__PURE__ */ ((
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
return
|
|
171
|
+
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType3) => {
|
|
172
|
+
EnumResourceType3["EVENT"] = "event";
|
|
173
|
+
EnumResourceType3["VENDOR"] = "vendor";
|
|
174
|
+
EnumResourceType3["PARTNER"] = "partner";
|
|
175
|
+
return EnumResourceType3;
|
|
176
176
|
})(EnumResourceType || {});
|
|
177
177
|
var EnumEventType = /* @__PURE__ */ ((EnumEventType2) => {
|
|
178
178
|
EnumEventType2["MARKET"] = "Market";
|
|
@@ -213,16 +213,6 @@ var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
|
|
|
213
213
|
EnumRegions2["Wellington"] = "Wellington";
|
|
214
214
|
return EnumRegions2;
|
|
215
215
|
})(EnumRegions || {});
|
|
216
|
-
var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence2) => {
|
|
217
|
-
EnumUserLicence2["PRO_EVENT"] = "pro_event";
|
|
218
|
-
EnumUserLicence2["PRO_PLUS_EVENT"] = "pro_plus_event";
|
|
219
|
-
EnumUserLicence2["PRO_PLUS_VENDOR"] = "pro_plus_vendor";
|
|
220
|
-
EnumUserLicence2["PRO_VENDOR"] = "pro_vendor";
|
|
221
|
-
EnumUserLicence2["STANDARD_EVENT"] = "standard_event";
|
|
222
|
-
EnumUserLicence2["STANDARD_VENDOR"] = "standard_vendor";
|
|
223
|
-
EnumUserLicence2["STANDARD_PARTNER"] = "standard_partner";
|
|
224
|
-
return EnumUserLicence2;
|
|
225
|
-
})(EnumUserLicence || {});
|
|
226
216
|
var EnumUserRole = /* @__PURE__ */ ((EnumUserRole2) => {
|
|
227
217
|
EnumUserRole2["ADMIN"] = "admin";
|
|
228
218
|
EnumUserRole2["CUSTOMER"] = "customer";
|
|
@@ -458,10 +448,7 @@ var globalResourceSchema = yup.object().shape({
|
|
|
458
448
|
socialMedia: yup.array().of(socialMediaSchema).nullable().optional(),
|
|
459
449
|
associates: yup.array().of(
|
|
460
450
|
yup.object().shape({
|
|
461
|
-
email: emailRequiredSchema
|
|
462
|
-
resourceId: yup.string().required(),
|
|
463
|
-
resourceType: yup.mixed().oneOf(Object.values(EnumResourceType)).required(),
|
|
464
|
-
licence: yup.mixed().oneOf(Object.values(EnumUserLicence)).required()
|
|
451
|
+
email: emailRequiredSchema
|
|
465
452
|
})
|
|
466
453
|
).nullable().optional()
|
|
467
454
|
});
|