@timardex/cluemart-shared 1.5.639 → 1.5.700
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/{post-CnUaLo8U.d.mts → auth-Dz2MAssU.d.mts} +64 -12
- package/dist/{post-DNAoYkrb.d.ts → auth-UPb1_jVK.d.ts} +64 -12
- package/dist/{chunk-3NBZGJZM.mjs → chunk-BRJDMHB7.mjs} +4 -3
- package/dist/chunk-BRJDMHB7.mjs.map +1 -0
- package/dist/{chunk-5O7KUBUD.mjs → chunk-NS3JTI3E.mjs} +92 -5
- package/dist/chunk-NS3JTI3E.mjs.map +1 -0
- package/dist/{chunk-HQF7VI3U.mjs → chunk-QJI4BF4B.mjs} +2 -2
- package/dist/{chunk-Q6R4US6G.mjs → chunk-SHKKKI2H.mjs} +15 -9
- package/dist/chunk-SHKKKI2H.mjs.map +1 -0
- package/dist/{chunk-WVUM6765.mjs → chunk-XGX7SV5N.mjs} +1 -1
- package/dist/chunk-XGX7SV5N.mjs.map +1 -0
- package/dist/contactUs-Bj_OPrzH.d.ts +11 -0
- package/dist/contactUs-OVbcfAJw.d.mts +11 -0
- 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 -3
- package/dist/{global-C0oWABvh.d.ts → global-BDCEwnuZ.d.ts} +12 -6
- package/dist/{global-DkXf399E.d.mts → global-Oy5CuI_n.d.mts} +12 -6
- package/dist/graphql/index.cjs +14 -8
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +30 -18
- package/dist/graphql/index.d.ts +30 -18
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +47 -40
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -4
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.mjs +35 -39
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +56 -43
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +193 -150
- package/dist/index.d.ts +193 -150
- package/dist/index.mjs +53 -43
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-M-23xcpt.d.mts → resourceActivities-CheTdj4a.d.mts} +7 -7
- package/dist/{resourceActivities-CpGhukwk.d.ts → resourceActivities-Du-3z7E1.d.ts} +7 -7
- package/dist/sharing/index.cjs +184 -1
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +4 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +17 -8
- package/dist/types/index.d.ts +17 -8
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +9 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +5 -2
- package/dist/utils/index.d.ts +5 -2
- package/dist/utils/index.mjs +17 -13
- package/package.json +1 -1
- package/dist/auth-BHqJ27id.d.ts +0 -51
- package/dist/auth-BJpF_-cS.d.mts +0 -51
- package/dist/chunk-3NBZGJZM.mjs.map +0 -1
- package/dist/chunk-5O7KUBUD.mjs.map +0 -1
- package/dist/chunk-Q6R4US6G.mjs.map +0 -1
- package/dist/chunk-WVUM6765.mjs.map +0 -1
- package/dist/chunk-X4VPNOHX.mjs +0 -88
- package/dist/chunk-X4VPNOHX.mjs.map +0 -1
- /package/dist/{chunk-HQF7VI3U.mjs.map → chunk-QJI4BF4B.mjs.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-Oy5CuI_n.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-BDCEwnuZ.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -43,11 +43,10 @@ import {
|
|
|
43
43
|
vendorStallSize,
|
|
44
44
|
vendorStartDateFields,
|
|
45
45
|
vendorTable
|
|
46
|
-
} from "../chunk-
|
|
47
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-QJI4BF4B.mjs";
|
|
47
|
+
import "../chunk-NS3JTI3E.mjs";
|
|
48
48
|
import "../chunk-HV5AID7P.mjs";
|
|
49
49
|
import "../chunk-JMOGW4IX.mjs";
|
|
50
|
-
import "../chunk-X4VPNOHX.mjs";
|
|
51
50
|
export {
|
|
52
51
|
availableCategories,
|
|
53
52
|
availableTagTypes,
|
|
@@ -15,17 +15,21 @@ type RelationDate = {
|
|
|
15
15
|
interface RelationType {
|
|
16
16
|
_id?: string;
|
|
17
17
|
active: boolean;
|
|
18
|
-
apiMessage?: string;
|
|
19
|
-
chatId: string
|
|
20
|
-
createdAt?:
|
|
21
|
-
deletedAt?:
|
|
18
|
+
apiMessage?: string | null;
|
|
19
|
+
chatId: string;
|
|
20
|
+
createdAt?: Date;
|
|
21
|
+
deletedAt?: Date | null;
|
|
22
22
|
eventId: string;
|
|
23
23
|
lastUpdateBy: EnumResourceType;
|
|
24
24
|
relationDates: RelationDate[];
|
|
25
25
|
relationType: EnumRelationResource;
|
|
26
|
-
updatedAt?:
|
|
26
|
+
updatedAt?: Date;
|
|
27
27
|
vendorId: string;
|
|
28
28
|
}
|
|
29
|
+
/** GraphQL RelationInputType — chatId is optional; server assigns it on create. */
|
|
30
|
+
type RelationInputType = Omit<RelationType, "_id" | "apiMessage" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
|
|
31
|
+
chatId?: string;
|
|
32
|
+
};
|
|
29
33
|
|
|
30
34
|
type StallType = {
|
|
31
35
|
label: string;
|
|
@@ -94,6 +98,7 @@ interface EventType extends BaseResourceType {
|
|
|
94
98
|
type EventListItemType = Pick<EventType, "_id" | "active" | "claimed" | "cover" | "createdAt" | "dateTime" | "deletedAt" | "description" | "eventType" | "googlePlaceId" | "images" | "location" | "logo" | "name" | "rainOrShine" | "rating" | "region" | "relations" | "reviewCount" | "updatedAt">;
|
|
95
99
|
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
96
100
|
_id: string;
|
|
101
|
+
active?: boolean;
|
|
97
102
|
};
|
|
98
103
|
|
|
99
104
|
type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
@@ -183,6 +188,7 @@ interface VendorType extends BaseResourceType {
|
|
|
183
188
|
}
|
|
184
189
|
type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
|
|
185
190
|
_id: string;
|
|
191
|
+
active?: boolean;
|
|
186
192
|
};
|
|
187
193
|
interface UnregisteredVendorFormData {
|
|
188
194
|
categoryIds: string[];
|
|
@@ -395,4 +401,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
395
401
|
offset?: number;
|
|
396
402
|
}
|
|
397
403
|
|
|
398
|
-
export { type
|
|
404
|
+
export { type SubcategoryItems as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type DateTimeType as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type PaymentInfoType as H, type ImageObjectType as I, type PosterUsageType as J, type PromoCodeType as K, type LocationType as L, type Region as M, type Nullable as N, type OptionItem as O, PROMO_CODE_PREFIX as P, type RelationDate as Q, type RefundPolicy as R, type StallType as S, type RelationInputType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, type ResourceContactDetailsType as W, type ResourceDetails as X, type ResourceImageType as Y, type SocialMediaType as Z, type Subcategory as _, type FormDateField as a, type TermsAgreement as a0, type UnregisteredVendorInvitationType as a1, type VendorAttributes as a2, type VendorCalendarData as a3, type VendorProductList as a4, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, type VendorFormData as j, type CreateVendorFormData as k, type VendorInfoFormData as l, type CreateVendorInfoFormData as m, type UnregisteredVendorFormData as n, type CreateUnregisteredVendorFormData as o, type EventFormData as p, type CreateEventFormData as q, type EventInfoFormData as r, type CreateEventInfoFormData as s, type BaseResourceType as t, type CreateFormData as u, type DateTimeWithPriceType as v, type DeviceInfo as w, type EventStatusType as x, type LocationGeoType as y, type OwnerType as z };
|
|
@@ -15,17 +15,21 @@ type RelationDate = {
|
|
|
15
15
|
interface RelationType {
|
|
16
16
|
_id?: string;
|
|
17
17
|
active: boolean;
|
|
18
|
-
apiMessage?: string;
|
|
19
|
-
chatId: string
|
|
20
|
-
createdAt?:
|
|
21
|
-
deletedAt?:
|
|
18
|
+
apiMessage?: string | null;
|
|
19
|
+
chatId: string;
|
|
20
|
+
createdAt?: Date;
|
|
21
|
+
deletedAt?: Date | null;
|
|
22
22
|
eventId: string;
|
|
23
23
|
lastUpdateBy: EnumResourceType;
|
|
24
24
|
relationDates: RelationDate[];
|
|
25
25
|
relationType: EnumRelationResource;
|
|
26
|
-
updatedAt?:
|
|
26
|
+
updatedAt?: Date;
|
|
27
27
|
vendorId: string;
|
|
28
28
|
}
|
|
29
|
+
/** GraphQL RelationInputType — chatId is optional; server assigns it on create. */
|
|
30
|
+
type RelationInputType = Omit<RelationType, "_id" | "apiMessage" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
|
|
31
|
+
chatId?: string;
|
|
32
|
+
};
|
|
29
33
|
|
|
30
34
|
type StallType = {
|
|
31
35
|
label: string;
|
|
@@ -94,6 +98,7 @@ interface EventType extends BaseResourceType {
|
|
|
94
98
|
type EventListItemType = Pick<EventType, "_id" | "active" | "claimed" | "cover" | "createdAt" | "dateTime" | "deletedAt" | "description" | "eventType" | "googlePlaceId" | "images" | "location" | "logo" | "name" | "rainOrShine" | "rating" | "region" | "relations" | "reviewCount" | "updatedAt">;
|
|
95
99
|
type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
96
100
|
_id: string;
|
|
101
|
+
active?: boolean;
|
|
97
102
|
};
|
|
98
103
|
|
|
99
104
|
type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
@@ -183,6 +188,7 @@ interface VendorType extends BaseResourceType {
|
|
|
183
188
|
}
|
|
184
189
|
type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
|
|
185
190
|
_id: string;
|
|
191
|
+
active?: boolean;
|
|
186
192
|
};
|
|
187
193
|
interface UnregisteredVendorFormData {
|
|
188
194
|
categoryIds: string[];
|
|
@@ -395,4 +401,4 @@ interface UseGetResourcesByRegionOptions {
|
|
|
395
401
|
offset?: number;
|
|
396
402
|
}
|
|
397
403
|
|
|
398
|
-
export { type
|
|
404
|
+
export { type SubcategoryItems as $, type AssociateType as A, type BaseResourceTypeFormData as B, type Category as C, type DateTimeType as D, type EventType as E, type FormField as F, type GeocodeLocation as G, type PaymentInfoType as H, type ImageObjectType as I, type PosterUsageType as J, type PromoCodeType as K, type LocationType as L, type Region as M, type Nullable as N, type OptionItem as O, PROMO_CODE_PREFIX as P, type RelationDate as Q, type RefundPolicy as R, type StallType as S, type RelationInputType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, type ResourceContactDetailsType as W, type ResourceDetails as X, type ResourceImageType as Y, type SocialMediaType as Z, type Subcategory as _, type FormDateField as a, type TermsAgreement as a0, type UnregisteredVendorInvitationType as a1, type VendorAttributes as a2, type VendorCalendarData as a3, type VendorProductList as a4, type Requirement as b, type EventListItemType as c, type EventInfoType as d, type RelationType as e, type ResourceConnectionsType as f, type UnregisteredVendorType as g, type VendorInfoType as h, type UserLicenceType as i, type VendorFormData as j, type CreateVendorFormData as k, type VendorInfoFormData as l, type CreateVendorInfoFormData as m, type UnregisteredVendorFormData as n, type CreateUnregisteredVendorFormData as o, type EventFormData as p, type CreateEventFormData as q, type EventInfoFormData as r, type CreateEventInfoFormData as s, type BaseResourceType as t, type CreateFormData as u, type DateTimeWithPriceType as v, type DeviceInfo as w, type EventStatusType as x, type LocationGeoType as y, type OwnerType as z };
|
package/dist/graphql/index.cjs
CHANGED
|
@@ -338,7 +338,6 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
|
|
|
338
338
|
platform
|
|
339
339
|
preferredRegion
|
|
340
340
|
promoCodes
|
|
341
|
-
refreshToken
|
|
342
341
|
role
|
|
343
342
|
school
|
|
344
343
|
termsAgreement {
|
|
@@ -590,7 +589,10 @@ var GET_EVENT_BY_PLACE_ID = import_client3.gql`
|
|
|
590
589
|
${EVENT_LIST_ITEM}
|
|
591
590
|
`;
|
|
592
591
|
var GET_EVENTS_BY_REGION = import_client3.gql`
|
|
593
|
-
query getEventsByRegion(
|
|
592
|
+
query getEventsByRegion(
|
|
593
|
+
$region: String!
|
|
594
|
+
$options: ResourcesByRegionOptions
|
|
595
|
+
) {
|
|
594
596
|
eventsByRegion(region: $region, options: $options) {
|
|
595
597
|
...EventListItemFields
|
|
596
598
|
}
|
|
@@ -598,7 +600,7 @@ var GET_EVENTS_BY_REGION = import_client3.gql`
|
|
|
598
600
|
${EVENT_LIST_ITEM}
|
|
599
601
|
`;
|
|
600
602
|
var SEARCH_EVENTS = import_client3.gql`
|
|
601
|
-
query searchEvents($region: String, $search: String
|
|
603
|
+
query searchEvents($region: String, $search: String, $tags: [String]) {
|
|
602
604
|
eventsSearch(region: $region, search: $search, tags: $tags) {
|
|
603
605
|
...EventListItemFields
|
|
604
606
|
}
|
|
@@ -825,7 +827,10 @@ var GET_VENDOR = import_client4.gql`
|
|
|
825
827
|
${VENDOR}
|
|
826
828
|
`;
|
|
827
829
|
var GET_VENDORS_BY_REGION = import_client4.gql`
|
|
828
|
-
query getVendorsByRegion(
|
|
830
|
+
query getVendorsByRegion(
|
|
831
|
+
$region: String!
|
|
832
|
+
$options: ResourcesByRegionOptions
|
|
833
|
+
) {
|
|
829
834
|
vendorsByRegion(region: $region, options: $options) {
|
|
830
835
|
...VendorFields
|
|
831
836
|
}
|
|
@@ -1002,9 +1007,7 @@ var useLogout = () => {
|
|
|
1002
1007
|
return { error, loading, logout };
|
|
1003
1008
|
};
|
|
1004
1009
|
var useRefreshToken = () => {
|
|
1005
|
-
const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(
|
|
1006
|
-
REFRESH_TOKEN_MUTATION
|
|
1007
|
-
);
|
|
1010
|
+
const [refreshToken, { loading, error }] = (0, import_client7.useMutation)(REFRESH_TOKEN_MUTATION);
|
|
1008
1011
|
return { error, loading, refreshToken };
|
|
1009
1012
|
};
|
|
1010
1013
|
var useRequestPasswordReset = () => {
|
|
@@ -1498,7 +1501,10 @@ var GET_PARTNER = import_client16.gql`
|
|
|
1498
1501
|
${PARTNER}
|
|
1499
1502
|
`;
|
|
1500
1503
|
var GET_PARTNERS_BY_REGION = import_client16.gql`
|
|
1501
|
-
query getPartnersByRegion(
|
|
1504
|
+
query getPartnersByRegion(
|
|
1505
|
+
$region: String!
|
|
1506
|
+
$options: ResourcesByRegionOptions
|
|
1507
|
+
) {
|
|
1502
1508
|
partnersByRegion(region: $region, options: $options) {
|
|
1503
1509
|
...PartnerFields
|
|
1504
1510
|
}
|