@timardex/cluemart-shared 1.5.640 → 1.5.701

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.
Files changed (62) hide show
  1. package/dist/{post-DNAoYkrb.d.ts → auth-Cp3BRIVM.d.ts} +64 -12
  2. package/dist/{post-CnUaLo8U.d.mts → auth-Dvp1IEH_.d.mts} +64 -12
  3. package/dist/{chunk-3NBZGJZM.mjs → chunk-BRJDMHB7.mjs} +4 -3
  4. package/dist/chunk-BRJDMHB7.mjs.map +1 -0
  5. package/dist/{chunk-Q6R4US6G.mjs → chunk-JBHXZ3PH.mjs} +15 -10
  6. package/dist/chunk-JBHXZ3PH.mjs.map +1 -0
  7. package/dist/{chunk-FGRAXDMS.mjs → chunk-NS3JTI3E.mjs} +90 -5
  8. package/dist/chunk-NS3JTI3E.mjs.map +1 -0
  9. package/dist/{chunk-UVOBCEHA.mjs → chunk-QJI4BF4B.mjs} +2 -2
  10. package/dist/{chunk-WVUM6765.mjs → chunk-XGX7SV5N.mjs} +1 -1
  11. package/dist/chunk-XGX7SV5N.mjs.map +1 -0
  12. package/dist/contactUs-B6lQQq-x.d.mts +11 -0
  13. package/dist/contactUs-DA3p41Uq.d.ts +11 -0
  14. package/dist/formFields/index.cjs.map +1 -1
  15. package/dist/formFields/index.d.mts +1 -1
  16. package/dist/formFields/index.d.ts +1 -1
  17. package/dist/formFields/index.mjs +2 -3
  18. package/dist/{global-C0oWABvh.d.ts → global-585slmSH.d.ts} +11 -6
  19. package/dist/{global-DkXf399E.d.mts → global-BEUzBSyY.d.mts} +11 -6
  20. package/dist/graphql/index.cjs +14 -9
  21. package/dist/graphql/index.cjs.map +1 -1
  22. package/dist/graphql/index.d.mts +30 -18
  23. package/dist/graphql/index.d.ts +30 -18
  24. package/dist/graphql/index.mjs +1 -1
  25. package/dist/hooks/index.cjs +47 -41
  26. package/dist/hooks/index.cjs.map +1 -1
  27. package/dist/hooks/index.d.mts +4 -4
  28. package/dist/hooks/index.d.ts +4 -4
  29. package/dist/hooks/index.mjs +35 -39
  30. package/dist/hooks/index.mjs.map +1 -1
  31. package/dist/index.cjs +53 -44
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.mts +191 -150
  34. package/dist/index.d.ts +191 -150
  35. package/dist/index.mjs +51 -44
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/{resourceActivities-M-23xcpt.d.mts → resourceActivities-CZqXBve8.d.mts} +7 -7
  38. package/dist/{resourceActivities-CpGhukwk.d.ts → resourceActivities-CjJdhVR7.d.ts} +7 -7
  39. package/dist/sharing/index.cjs +184 -1
  40. package/dist/sharing/index.cjs.map +1 -1
  41. package/dist/sharing/index.d.mts +1 -1
  42. package/dist/sharing/index.d.ts +1 -1
  43. package/dist/sharing/index.mjs +4 -2
  44. package/dist/types/index.cjs.map +1 -1
  45. package/dist/types/index.d.mts +17 -8
  46. package/dist/types/index.d.ts +17 -8
  47. package/dist/types/index.mjs +1 -1
  48. package/dist/utils/index.cjs +6 -0
  49. package/dist/utils/index.cjs.map +1 -1
  50. package/dist/utils/index.d.mts +4 -2
  51. package/dist/utils/index.d.ts +4 -2
  52. package/dist/utils/index.mjs +15 -13
  53. package/package.json +1 -1
  54. package/dist/auth-BHqJ27id.d.ts +0 -51
  55. package/dist/auth-BJpF_-cS.d.mts +0 -51
  56. package/dist/chunk-3NBZGJZM.mjs.map +0 -1
  57. package/dist/chunk-FGRAXDMS.mjs.map +0 -1
  58. package/dist/chunk-Q6R4US6G.mjs.map +0 -1
  59. package/dist/chunk-WVUM6765.mjs.map +0 -1
  60. package/dist/chunk-X4VPNOHX.mjs +0 -88
  61. package/dist/chunk-X4VPNOHX.mjs.map +0 -1
  62. /package/dist/{chunk-UVOBCEHA.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-DkXf399E.mjs';
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-BEUzBSyY.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-C0oWABvh.js';
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-585slmSH.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-UVOBCEHA.mjs";
47
- import "../chunk-FGRAXDMS.mjs";
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,20 @@ type RelationDate = {
15
15
  interface RelationType {
16
16
  _id?: string;
17
17
  active: boolean;
18
- apiMessage?: string;
19
- chatId: string | null;
20
- createdAt?: string;
21
- deletedAt?: string | null;
18
+ chatId: string;
19
+ createdAt?: Date;
20
+ deletedAt?: Date | null;
22
21
  eventId: string;
23
22
  lastUpdateBy: EnumResourceType;
24
23
  relationDates: RelationDate[];
25
24
  relationType: EnumRelationResource;
26
- updatedAt?: string;
25
+ updatedAt?: Date;
27
26
  vendorId: string;
28
27
  }
28
+ /** GraphQL RelationInputType — chatId is optional; server assigns it on create. */
29
+ type RelationInputType = Omit<RelationType, "_id" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
30
+ chatId?: string;
31
+ };
29
32
 
30
33
  type StallType = {
31
34
  label: string;
@@ -94,6 +97,7 @@ interface EventType extends BaseResourceType {
94
97
  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
98
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
96
99
  _id: string;
100
+ active?: boolean;
97
101
  };
98
102
 
99
103
  type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
@@ -183,6 +187,7 @@ interface VendorType extends BaseResourceType {
183
187
  }
184
188
  type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
185
189
  _id: string;
190
+ active?: boolean;
186
191
  };
187
192
  interface UnregisteredVendorFormData {
188
193
  categoryIds: string[];
@@ -395,4 +400,4 @@ interface UseGetResourcesByRegionOptions {
395
400
  offset?: number;
396
401
  }
397
402
 
398
- export { type TermsAgreement 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 ResourceContactDetailsType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, type ResourceDetails as W, type ResourceImageType as X, type SocialMediaType as Y, type Subcategory as Z, type SubcategoryItems as _, type FormDateField as a, type UnregisteredVendorInvitationType as a0, type VendorAttributes as a1, type VendorCalendarData as a2, type VendorProductList as a3, 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 };
403
+ 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,20 @@ type RelationDate = {
15
15
  interface RelationType {
16
16
  _id?: string;
17
17
  active: boolean;
18
- apiMessage?: string;
19
- chatId: string | null;
20
- createdAt?: string;
21
- deletedAt?: string | null;
18
+ chatId: string;
19
+ createdAt?: Date;
20
+ deletedAt?: Date | null;
22
21
  eventId: string;
23
22
  lastUpdateBy: EnumResourceType;
24
23
  relationDates: RelationDate[];
25
24
  relationType: EnumRelationResource;
26
- updatedAt?: string;
25
+ updatedAt?: Date;
27
26
  vendorId: string;
28
27
  }
28
+ /** GraphQL RelationInputType — chatId is optional; server assigns it on create. */
29
+ type RelationInputType = Omit<RelationType, "_id" | "chatId" | "createdAt" | "updatedAt" | "deletedAt"> & {
30
+ chatId?: string;
31
+ };
29
32
 
30
33
  type StallType = {
31
34
  label: string;
@@ -94,6 +97,7 @@ interface EventType extends BaseResourceType {
94
97
  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
98
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
96
99
  _id: string;
100
+ active?: boolean;
97
101
  };
98
102
 
99
103
  type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
@@ -183,6 +187,7 @@ interface VendorType extends BaseResourceType {
183
187
  }
184
188
  type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
185
189
  _id: string;
190
+ active?: boolean;
186
191
  };
187
192
  interface UnregisteredVendorFormData {
188
193
  categoryIds: string[];
@@ -395,4 +400,4 @@ interface UseGetResourcesByRegionOptions {
395
400
  offset?: number;
396
401
  }
397
402
 
398
- export { type TermsAgreement 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 ResourceContactDetailsType as T, type UseGetResourcesByRegionOptions as U, type VendorType as V, type ResourceDetails as W, type ResourceImageType as X, type SocialMediaType as Y, type Subcategory as Z, type SubcategoryItems as _, type FormDateField as a, type UnregisteredVendorInvitationType as a0, type VendorAttributes as a1, type VendorCalendarData as a2, type VendorProductList as a3, 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 };
403
+ 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 };
@@ -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($region: String!, $options: EventsByRegionOptions) {
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,$tags: [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($region: String!, $options: EventsByRegionOptions) {
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($region: String!, $options: EventsByRegionOptions) {
1504
+ query getPartnersByRegion(
1505
+ $region: String!
1506
+ $options: ResourcesByRegionOptions
1507
+ ) {
1502
1508
  partnersByRegion(region: $region, options: $options) {
1503
1509
  ...PartnerFields
1504
1510
  }
@@ -2055,7 +2061,6 @@ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
2055
2061
  fragment RelationFields on RelationType {
2056
2062
  _id
2057
2063
  active
2058
- apiMessage
2059
2064
  chatId
2060
2065
  createdAt
2061
2066
  lastUpdateBy