@bash-app/bash-common 27.3.2 → 27.4.0
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/package.json +1 -1
- package/src/definitions.ts +9 -2
- package/src/extendedSchemas.ts +7 -0
package/package.json
CHANGED
package/src/definitions.ts
CHANGED
|
@@ -91,7 +91,7 @@ export type ContactOrUser = Contact | PublicUser;
|
|
|
91
91
|
export type UnionFromArray<T extends ReadonlyArray<any>> = T[number];
|
|
92
92
|
export type ValueOf<T> = T[keyof T];
|
|
93
93
|
|
|
94
|
-
export type ValueOfServiceType =
|
|
94
|
+
export type ValueOfServiceType = typeof ServiceTypes[keyof typeof ServiceTypes];
|
|
95
95
|
|
|
96
96
|
export const ServiceTypes = {
|
|
97
97
|
'EventServices': 'eventServices',
|
|
@@ -101,7 +101,14 @@ export const ServiceTypes = {
|
|
|
101
101
|
'Sponsors': 'sponsors',
|
|
102
102
|
'Exhibitors': 'exhibitors',
|
|
103
103
|
'EntertainmentServices': 'entertainmentServices',
|
|
104
|
-
}
|
|
104
|
+
} as const;
|
|
105
|
+
|
|
106
|
+
export type ValueOfServiceStatus = typeof ServiceStatus[keyof typeof ServiceStatus];
|
|
107
|
+
|
|
108
|
+
export const ServiceStatus = {
|
|
109
|
+
'Draft': 'draft',
|
|
110
|
+
'Created': 'created',
|
|
111
|
+
} as const;
|
|
105
112
|
|
|
106
113
|
export type FilterFields = {
|
|
107
114
|
price: string[];
|
package/src/extendedSchemas.ts
CHANGED
|
@@ -157,6 +157,7 @@ export interface EventServiceExt extends EventService {
|
|
|
157
157
|
links: ServiceLinkExt[];
|
|
158
158
|
crowdSize?: AmountOfGuests;
|
|
159
159
|
media?: Media[];
|
|
160
|
+
serviceType: ServiceTypes;
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
export interface EntertainmentServiceExt extends EntertainmentService {
|
|
@@ -167,6 +168,7 @@ export interface EntertainmentServiceExt extends EntertainmentService {
|
|
|
167
168
|
crowdSize?: AmountOfGuests;
|
|
168
169
|
media?: Media[];
|
|
169
170
|
status: ServiceStatus;
|
|
171
|
+
serviceType: ServiceTypes;
|
|
170
172
|
}
|
|
171
173
|
|
|
172
174
|
export interface ExhibitorExt extends Exhibitor {
|
|
@@ -177,6 +179,7 @@ export interface ExhibitorExt extends Exhibitor {
|
|
|
177
179
|
crowdSize?: AmountOfGuests;
|
|
178
180
|
media?: Media[];
|
|
179
181
|
status: ServiceStatus;
|
|
182
|
+
serviceType: ServiceTypes;
|
|
180
183
|
}
|
|
181
184
|
|
|
182
185
|
export interface SponsorExt extends Sponsor {
|
|
@@ -187,6 +190,7 @@ export interface SponsorExt extends Sponsor {
|
|
|
187
190
|
crowdSize?: AmountOfGuests;
|
|
188
191
|
media?: Media[];
|
|
189
192
|
status: ServiceStatus;
|
|
193
|
+
serviceType: ServiceTypes;
|
|
190
194
|
}
|
|
191
195
|
|
|
192
196
|
export interface VendorExt extends Vendor {
|
|
@@ -197,6 +201,7 @@ export interface VendorExt extends Vendor {
|
|
|
197
201
|
crowdSize?: AmountOfGuests;
|
|
198
202
|
media?: Media[];
|
|
199
203
|
status: ServiceStatus;
|
|
204
|
+
serviceType: ServiceTypes;
|
|
200
205
|
}
|
|
201
206
|
|
|
202
207
|
export interface VenueExt extends Venue {
|
|
@@ -209,6 +214,7 @@ export interface VenueExt extends Venue {
|
|
|
209
214
|
media?: Media[];
|
|
210
215
|
amountOfGuests?: AmountOfGuests | null;
|
|
211
216
|
status: ServiceStatus;
|
|
217
|
+
serviceType: ServiceTypes;
|
|
212
218
|
}
|
|
213
219
|
|
|
214
220
|
export interface OrganizationExt extends Organization {
|
|
@@ -219,6 +225,7 @@ export interface OrganizationExt extends Organization {
|
|
|
219
225
|
crowdSize?: AmountOfGuests;
|
|
220
226
|
media?: Media[];
|
|
221
227
|
status: ServiceStatus;
|
|
228
|
+
serviceType: ServiceTypes;
|
|
222
229
|
}
|
|
223
230
|
|
|
224
231
|
export interface VolunteerServiceExt extends VolunteerService {
|