@timardex/cluemart-shared 1.3.72 → 1.3.74
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-D80VFGbC.d.mts → auth-Cjyk3-fO.d.mts} +1 -1
- package/dist/{auth-DYuoZZVF.d.ts → auth-WBVoAjlu.d.ts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-CZFlP3JK.d.ts → global-6PS2eYYd.d.ts} +7 -3
- package/dist/{global-BAP95-Jh.d.mts → global-Dzrj3pLv.d.mts} +7 -3
- package/dist/graphql/index.cjs +10 -6
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +12 -12
- package/dist/graphql/index.d.ts +12 -12
- package/dist/graphql/index.mjs +10 -6
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/index.cjs +10 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +15 -11
- package/dist/index.d.ts +15 -11
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/dist/{post-8m11ia1u.d.mts → post-Dj92f3LG.d.mts} +1 -1
- package/dist/{post-U8yX-D4F.d.ts → post-vMgnmZJ-.d.ts} +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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-Dzrj3pLv.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-6PS2eYYd.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
|
-
import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumSocialMedia
|
|
2
|
+
import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumEventDateStatus, EnumUserLicence, EnumSocialMedia } from './enums/index.js';
|
|
3
3
|
|
|
4
4
|
type RelationDate = {
|
|
5
5
|
dateTime: DateTimeType & {
|
|
@@ -103,6 +103,10 @@ interface EventListItemType {
|
|
|
103
103
|
rainOrShine: boolean;
|
|
104
104
|
rating?: number | null;
|
|
105
105
|
region: string;
|
|
106
|
+
relations: {
|
|
107
|
+
relationId: string | null;
|
|
108
|
+
relationDates: RelationDate[] | null;
|
|
109
|
+
}[] | null;
|
|
106
110
|
reviewCount?: number | null;
|
|
107
111
|
updatedAt: Date | null;
|
|
108
112
|
}
|
|
@@ -367,7 +371,7 @@ type ImageObjectType = {
|
|
|
367
371
|
name: string;
|
|
368
372
|
};
|
|
369
373
|
interface ResourceConnectionsType {
|
|
370
|
-
events:
|
|
374
|
+
events: EventListItemType[] | null;
|
|
371
375
|
vendors: VendorType[] | null;
|
|
372
376
|
}
|
|
373
377
|
interface CreateFormData<T extends FieldValues> {
|
|
@@ -380,4 +384,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
380
384
|
watch: UseFormWatch<T>;
|
|
381
385
|
}
|
|
382
386
|
|
|
383
|
-
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D,
|
|
387
|
+
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType 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, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventType as b, EventInfoType as c, RelationType as d, ResourceConnectionsType as e, VendorInfoType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceImageType as q, DeviceInfo as r, ResourceContactDetailsType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
|
|
2
|
-
import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumSocialMedia
|
|
2
|
+
import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumEventDateStatus, EnumUserLicence, EnumSocialMedia } from './enums/index.mjs';
|
|
3
3
|
|
|
4
4
|
type RelationDate = {
|
|
5
5
|
dateTime: DateTimeType & {
|
|
@@ -103,6 +103,10 @@ interface EventListItemType {
|
|
|
103
103
|
rainOrShine: boolean;
|
|
104
104
|
rating?: number | null;
|
|
105
105
|
region: string;
|
|
106
|
+
relations: {
|
|
107
|
+
relationId: string | null;
|
|
108
|
+
relationDates: RelationDate[] | null;
|
|
109
|
+
}[] | null;
|
|
106
110
|
reviewCount?: number | null;
|
|
107
111
|
updatedAt: Date | null;
|
|
108
112
|
}
|
|
@@ -367,7 +371,7 @@ type ImageObjectType = {
|
|
|
367
371
|
name: string;
|
|
368
372
|
};
|
|
369
373
|
interface ResourceConnectionsType {
|
|
370
|
-
events:
|
|
374
|
+
events: EventListItemType[] | null;
|
|
371
375
|
vendors: VendorType[] | null;
|
|
372
376
|
}
|
|
373
377
|
interface CreateFormData<T extends FieldValues> {
|
|
@@ -380,4 +384,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
380
384
|
watch: UseFormWatch<T>;
|
|
381
385
|
}
|
|
382
386
|
|
|
383
|
-
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D,
|
|
387
|
+
export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType 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, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventType as b, EventInfoType as c, RelationType as d, ResourceConnectionsType as e, VendorInfoType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceImageType as q, DeviceInfo as r, ResourceContactDetailsType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -409,12 +409,19 @@ var EVENT_LIST_ITEM = import_client2.gql`
|
|
|
409
409
|
rainOrShine
|
|
410
410
|
rating
|
|
411
411
|
region
|
|
412
|
+
relations {
|
|
413
|
+
relationId
|
|
414
|
+
relationDates {
|
|
415
|
+
...RelationDates
|
|
416
|
+
}
|
|
417
|
+
}
|
|
412
418
|
reviewCount
|
|
413
419
|
updatedAt
|
|
414
420
|
}
|
|
415
421
|
${EVENT_DATETIME_FIELDS_FRAGMENT}
|
|
416
422
|
${LOCATION_FIELDS_FRAGMENT}
|
|
417
423
|
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
424
|
+
${RELATION_DATES_FRAGMENT}
|
|
418
425
|
`;
|
|
419
426
|
|
|
420
427
|
// src/graphql/queries/event.ts
|
|
@@ -1570,12 +1577,9 @@ var useUpdateEventInfo = () => {
|
|
|
1570
1577
|
// src/graphql/hooks/event/hooksQuery.ts
|
|
1571
1578
|
var import_client20 = require("@apollo/client");
|
|
1572
1579
|
var useGetEvents = () => {
|
|
1573
|
-
const { loading, error, data, refetch } = (0, import_client20.useQuery)(
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
fetchPolicy: "network-only"
|
|
1577
|
-
}
|
|
1578
|
-
);
|
|
1580
|
+
const { loading, error, data, refetch } = (0, import_client20.useQuery)(GET_EVENTS, {
|
|
1581
|
+
fetchPolicy: "network-only"
|
|
1582
|
+
});
|
|
1579
1583
|
const events = data?.events || [];
|
|
1580
1584
|
return { error, events, loading, refetch };
|
|
1581
1585
|
};
|