@timardex/cluemart-shared 1.2.55 → 1.2.57

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/index.d.mts CHANGED
@@ -180,6 +180,31 @@ declare enum EnumSubscriptionStatus {
180
180
  PAST_DUE = "past_due"
181
181
  }
182
182
 
183
+ type RelationDate = {
184
+ dateTime: DateTimeType & {
185
+ stallType: StallType | null;
186
+ };
187
+ lastUpdateBy: {
188
+ resourceId: string;
189
+ userEmail: string;
190
+ };
191
+ paymentReference?: string;
192
+ status: EnumInviteStatus;
193
+ };
194
+ interface RelationType {
195
+ _id?: string;
196
+ active: boolean;
197
+ apiMessage?: string;
198
+ createdAt?: string;
199
+ deletedAt?: string | null;
200
+ lastUpdateBy: EnumResourceType;
201
+ eventId: string;
202
+ relationDates: RelationDate[];
203
+ relationType: EnumRelationResource;
204
+ vendorId: string;
205
+ updatedAt?: string;
206
+ }
207
+
183
208
  type StallType = {
184
209
  label: string;
185
210
  price: number;
@@ -233,37 +258,15 @@ interface EventType extends BaseResourceType {
233
258
  provider: string | null;
234
259
  rainOrShine: boolean;
235
260
  tags: string[];
261
+ relations: {
262
+ relationId: string | null;
263
+ relationDates: RelationDate[] | null;
264
+ }[] | null;
236
265
  }
237
266
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
238
267
  _id: string;
239
268
  };
240
269
 
241
- type RelationDate = {
242
- dateTime: DateTimeType & {
243
- stallType: StallType | null;
244
- };
245
- lastUpdateBy: {
246
- resourceId: string;
247
- userEmail: string;
248
- };
249
- paymentReference?: string;
250
- status: EnumInviteStatus;
251
- };
252
- interface RelationType {
253
- _id?: string;
254
- active: boolean;
255
- apiMessage?: string;
256
- chatId?: string;
257
- createdAt?: string;
258
- deletedAt?: string | null;
259
- lastUpdateBy: EnumResourceType;
260
- eventId: string;
261
- relationDates: RelationDate[];
262
- relationType: EnumRelationResource;
263
- vendorId: string;
264
- updatedAt?: string;
265
- }
266
-
267
270
  type VendorLocation = {
268
271
  dateTime: Nullable<DateTimeType> | null;
269
272
  description?: string | null;
@@ -338,6 +341,10 @@ interface VendorType extends BaseResourceType {
338
341
  products: VendorMenuType[] | null;
339
342
  vendorInfoId: string;
340
343
  vendorType: EnumVendorType;
344
+ relations: {
345
+ relationId: string | null;
346
+ relationDates: RelationDate[] | null;
347
+ }[] | null;
341
348
  }
342
349
  type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
343
350
  _id: string;
@@ -411,14 +418,11 @@ type PosterUsageType = {
411
418
  type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner"> & {
412
419
  _id: string;
413
420
  adIds?: string[] | null;
421
+ chatIds?: string[] | null;
414
422
  createdAt: string;
415
423
  deletedAt: string | null;
416
424
  owner: OwnerType;
417
425
  posterUsage?: PosterUsageType | null;
418
- relations: {
419
- relationId: string | null;
420
- relationDates: RelationDate[] | null;
421
- }[] | null;
422
426
  updatedAt: string;
423
427
  };
424
428
  type LocationType = {
@@ -591,8 +595,9 @@ interface ChatType {
591
595
  messages: ChatMessageType[];
592
596
  participants: ParticipantType[];
593
597
  resourceInfo: {
594
- eventId: string;
595
- vendorId: string;
598
+ eventId: string | null;
599
+ partnerId: string | null;
600
+ vendorId: string | null;
596
601
  } | null;
597
602
  updatedAt: string;
598
603
  deletedAt: string | null;
package/dist/index.d.ts CHANGED
@@ -180,6 +180,31 @@ declare enum EnumSubscriptionStatus {
180
180
  PAST_DUE = "past_due"
181
181
  }
182
182
 
183
+ type RelationDate = {
184
+ dateTime: DateTimeType & {
185
+ stallType: StallType | null;
186
+ };
187
+ lastUpdateBy: {
188
+ resourceId: string;
189
+ userEmail: string;
190
+ };
191
+ paymentReference?: string;
192
+ status: EnumInviteStatus;
193
+ };
194
+ interface RelationType {
195
+ _id?: string;
196
+ active: boolean;
197
+ apiMessage?: string;
198
+ createdAt?: string;
199
+ deletedAt?: string | null;
200
+ lastUpdateBy: EnumResourceType;
201
+ eventId: string;
202
+ relationDates: RelationDate[];
203
+ relationType: EnumRelationResource;
204
+ vendorId: string;
205
+ updatedAt?: string;
206
+ }
207
+
183
208
  type StallType = {
184
209
  label: string;
185
210
  price: number;
@@ -233,37 +258,15 @@ interface EventType extends BaseResourceType {
233
258
  provider: string | null;
234
259
  rainOrShine: boolean;
235
260
  tags: string[];
261
+ relations: {
262
+ relationId: string | null;
263
+ relationDates: RelationDate[] | null;
264
+ }[] | null;
236
265
  }
237
266
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
238
267
  _id: string;
239
268
  };
240
269
 
241
- type RelationDate = {
242
- dateTime: DateTimeType & {
243
- stallType: StallType | null;
244
- };
245
- lastUpdateBy: {
246
- resourceId: string;
247
- userEmail: string;
248
- };
249
- paymentReference?: string;
250
- status: EnumInviteStatus;
251
- };
252
- interface RelationType {
253
- _id?: string;
254
- active: boolean;
255
- apiMessage?: string;
256
- chatId?: string;
257
- createdAt?: string;
258
- deletedAt?: string | null;
259
- lastUpdateBy: EnumResourceType;
260
- eventId: string;
261
- relationDates: RelationDate[];
262
- relationType: EnumRelationResource;
263
- vendorId: string;
264
- updatedAt?: string;
265
- }
266
-
267
270
  type VendorLocation = {
268
271
  dateTime: Nullable<DateTimeType> | null;
269
272
  description?: string | null;
@@ -338,6 +341,10 @@ interface VendorType extends BaseResourceType {
338
341
  products: VendorMenuType[] | null;
339
342
  vendorInfoId: string;
340
343
  vendorType: EnumVendorType;
344
+ relations: {
345
+ relationId: string | null;
346
+ relationDates: RelationDate[] | null;
347
+ }[] | null;
341
348
  }
342
349
  type VendorInfoType = Omit<VendorInfoFormData, "_id" | "documentsUpload"> & {
343
350
  _id: string;
@@ -411,14 +418,11 @@ type PosterUsageType = {
411
418
  type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner"> & {
412
419
  _id: string;
413
420
  adIds?: string[] | null;
421
+ chatIds?: string[] | null;
414
422
  createdAt: string;
415
423
  deletedAt: string | null;
416
424
  owner: OwnerType;
417
425
  posterUsage?: PosterUsageType | null;
418
- relations: {
419
- relationId: string | null;
420
- relationDates: RelationDate[] | null;
421
- }[] | null;
422
426
  updatedAt: string;
423
427
  };
424
428
  type LocationType = {
@@ -591,8 +595,9 @@ interface ChatType {
591
595
  messages: ChatMessageType[];
592
596
  participants: ParticipantType[];
593
597
  resourceInfo: {
594
- eventId: string;
595
- vendorId: string;
598
+ eventId: string | null;
599
+ partnerId: string | null;
600
+ vendorId: string | null;
596
601
  } | null;
597
602
  updatedAt: string;
598
603
  deletedAt: string | null;
package/dist/index.mjs CHANGED
@@ -2273,6 +2273,7 @@ var EVENT = gql3`
2273
2273
  contactDetails {
2274
2274
  ...ContactDetailsFields
2275
2275
  }
2276
+ chatIds
2276
2277
  dateTime {
2277
2278
  ...EventDateTimeFields
2278
2279
  }
@@ -2430,6 +2431,7 @@ var VENDOR = gql4`
2430
2431
  cover {
2431
2432
  ...ResourceImageFields
2432
2433
  }
2434
+ chatIds
2433
2435
  createdAt
2434
2436
  description
2435
2437
  deletedAt
@@ -2755,6 +2757,7 @@ var CHAT_FIELDS_FRAGMENT = gql6`
2755
2757
  }
2756
2758
  resourceInfo {
2757
2759
  eventId
2760
+ partnerId
2758
2761
  vendorId
2759
2762
  }
2760
2763
  updatedAt
@@ -2998,6 +3001,7 @@ var PARTNER = gql11`
2998
3001
  contactDetails {
2999
3002
  ...ContactDetailsFields
3000
3003
  }
3004
+ chatIds
3001
3005
  description
3002
3006
  deletedAt
3003
3007
  images {
@@ -3015,6 +3019,9 @@ var PARTNER = gql11`
3015
3019
  ...OwnerFields
3016
3020
  }
3017
3021
  partnerType
3022
+ posterUsage {
3023
+ ...PosterUsageFields
3024
+ }
3018
3025
  region
3019
3026
  socialMedia {
3020
3027
  ...SocialMediaFields
@@ -3026,6 +3033,11 @@ var PARTNER = gql11`
3026
3033
  }
3027
3034
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
3028
3035
  ${LOCATION_FIELDS_FRAGMENT}
3036
+ ${OWNER_FIELDS_FRAGMENT}
3037
+ ${ASSOCIATES_FIELDS_FRAGMENT}
3038
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3039
+ ${POSTER_USAGE_FIELDS_FRAGMENT}
3040
+ ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3029
3041
  `;
3030
3042
  var GET_PARTNERS = gql11`
3031
3043
  query getPartners {
@@ -3549,7 +3561,6 @@ var RELATION_FIELDS_FRAGMENT = gql18`
3549
3561
  _id
3550
3562
  active
3551
3563
  apiMessage
3552
- chatId
3553
3564
  createdAt
3554
3565
  lastUpdateBy
3555
3566
  eventId