@timardex/cluemart-server-shared 1.0.210 → 1.0.211
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.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.mjs +1 -0
- package/dist/service/index.cjs +2 -0
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.d.mts +11 -4
- package/dist/service/index.d.ts +11 -4
- package/dist/service/index.mjs +1 -0
- package/package.json +1 -1
package/dist/service/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { f as SchemaCreateBulkNotificationInput, O as ObjectId } from '../Chat-DYkhie3G.mjs';
|
|
2
|
-
import { EnumUserLicence, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
|
|
3
|
-
import
|
|
2
|
+
import { EnumUserLicence, DateTimeType, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
import { DateTimeType as DateTimeType$1 } from '@timardex/cluemart-shared/types';
|
|
4
5
|
import { S as SchemaRelationType } from '../Relation-BjYghDE9.mjs';
|
|
5
6
|
import 'mongoose';
|
|
6
7
|
import 'express';
|
|
@@ -38,6 +39,12 @@ declare function updateVendorBasedOnUserLicense(userId: ObjectId, licenceType: E
|
|
|
38
39
|
*/
|
|
39
40
|
declare function convertObjectIdsToStrings(obj: any): any;
|
|
40
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Updates the dateStatus field for a single DateTimeType object based on the current date/time
|
|
44
|
+
* @param dateTime The date-time object to update
|
|
45
|
+
* @returns A new object with updated dateStatus value
|
|
46
|
+
*/
|
|
47
|
+
declare function updateSingleDateTimeStatus<T extends DateTimeType>(dateTime: T, now?: dayjs.Dayjs): T;
|
|
41
48
|
/**
|
|
42
49
|
* Recomputes dateStatus for every dateTime slot on events and google imported markets.
|
|
43
50
|
*/
|
|
@@ -54,7 +61,7 @@ type EventOrMarket = Pick<EventListItemType, "_id" | "name"> | null;
|
|
|
54
61
|
*/
|
|
55
62
|
declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
|
|
56
63
|
|
|
57
|
-
type EventDateSlot = Pick<DateTimeType, "startDate" | "startTime">;
|
|
64
|
+
type EventDateSlot = Pick<DateTimeType$1, "startDate" | "startTime">;
|
|
58
65
|
/**
|
|
59
66
|
* Returns true when at least one startDate/startTime slot from the previous
|
|
60
67
|
* schedule is absent from the next schedule (i.e. a date was removed).
|
|
@@ -66,4 +73,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
|
|
|
66
73
|
*/
|
|
67
74
|
declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
68
75
|
|
|
69
|
-
export { connectToDatabase, convertObjectIdsToStrings, didRemoveAnyEventDates, findEventOrImportedMarketById, saveNotificationsInDb, sendPushNotifications, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateVendorBasedOnUserLicense };
|
|
76
|
+
export { connectToDatabase, convertObjectIdsToStrings, didRemoveAnyEventDates, findEventOrImportedMarketById, saveNotificationsInDb, sendPushNotifications, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense };
|
package/dist/service/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { f as SchemaCreateBulkNotificationInput, O as ObjectId } from '../Chat-DYkhie3G.js';
|
|
2
|
-
import { EnumUserLicence, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
|
|
3
|
-
import
|
|
2
|
+
import { EnumUserLicence, DateTimeType, EventListItemType, DateTimeWithPriceType } from '@timardex/cluemart-shared';
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
import { DateTimeType as DateTimeType$1 } from '@timardex/cluemart-shared/types';
|
|
4
5
|
import { S as SchemaRelationType } from '../Relation-6t3Gn4pM.js';
|
|
5
6
|
import 'mongoose';
|
|
6
7
|
import 'express';
|
|
@@ -38,6 +39,12 @@ declare function updateVendorBasedOnUserLicense(userId: ObjectId, licenceType: E
|
|
|
38
39
|
*/
|
|
39
40
|
declare function convertObjectIdsToStrings(obj: any): any;
|
|
40
41
|
|
|
42
|
+
/**
|
|
43
|
+
* Updates the dateStatus field for a single DateTimeType object based on the current date/time
|
|
44
|
+
* @param dateTime The date-time object to update
|
|
45
|
+
* @returns A new object with updated dateStatus value
|
|
46
|
+
*/
|
|
47
|
+
declare function updateSingleDateTimeStatus<T extends DateTimeType>(dateTime: T, now?: dayjs.Dayjs): T;
|
|
41
48
|
/**
|
|
42
49
|
* Recomputes dateStatus for every dateTime slot on events and google imported markets.
|
|
43
50
|
*/
|
|
@@ -54,7 +61,7 @@ type EventOrMarket = Pick<EventListItemType, "_id" | "name"> | null;
|
|
|
54
61
|
*/
|
|
55
62
|
declare function findEventOrImportedMarketById(resourceId: ObjectId | string | null | undefined): Promise<EventOrMarket>;
|
|
56
63
|
|
|
57
|
-
type EventDateSlot = Pick<DateTimeType, "startDate" | "startTime">;
|
|
64
|
+
type EventDateSlot = Pick<DateTimeType$1, "startDate" | "startTime">;
|
|
58
65
|
/**
|
|
59
66
|
* Returns true when at least one startDate/startTime slot from the previous
|
|
60
67
|
* schedule is absent from the next schedule (i.e. a date was removed).
|
|
@@ -66,4 +73,4 @@ declare function didRemoveAnyEventDates(previousDateTime: EventDateSlot[] | unde
|
|
|
66
73
|
*/
|
|
67
74
|
declare function updateRelationDatesToUnavailable(relationDates: SchemaRelationType["relationDates"], eventDateTime: DateTimeWithPriceType[] | undefined): SchemaRelationType["relationDates"];
|
|
68
75
|
|
|
69
|
-
export { connectToDatabase, convertObjectIdsToStrings, didRemoveAnyEventDates, findEventOrImportedMarketById, saveNotificationsInDb, sendPushNotifications, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateVendorBasedOnUserLicense };
|
|
76
|
+
export { connectToDatabase, convertObjectIdsToStrings, didRemoveAnyEventDates, findEventOrImportedMarketById, saveNotificationsInDb, sendPushNotifications, updateAdStatuses, updateAllEventDateTimeStatuses, updateRelationDatesToUnavailable, updateSingleDateTimeStatus, updateVendorBasedOnUserLicense };
|
package/dist/service/index.mjs
CHANGED