@nimee/shared-types 1.0.160 → 1.0.162
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/crm/calendarEvent.d.ts +70 -0
- package/dist/crm/calendarEvent.js +28 -0
- package/dist/crm/calendarEvent.js.map +1 -0
- package/dist/crm/index.d.ts +1 -0
- package/dist/crm/index.js +1 -0
- package/dist/crm/index.js.map +1 -1
- package/package.json +1 -1
- package/src/crm/calendarEvent.ts +68 -0
- package/src/crm/index.ts +1 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
2
|
+
/// <reference types="mongoose/types/connection" />
|
|
3
|
+
/// <reference types="mongoose/types/cursor" />
|
|
4
|
+
/// <reference types="mongoose/types/document" />
|
|
5
|
+
/// <reference types="mongoose/types/error" />
|
|
6
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
7
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
8
|
+
import mongoose from "mongoose";
|
|
9
|
+
export declare enum ICalendarEventType {
|
|
10
|
+
TABLE_RESERVATION = "TABLE_RESERVATION",
|
|
11
|
+
TOUR = "TOUR",
|
|
12
|
+
TASK = "TASK"
|
|
13
|
+
}
|
|
14
|
+
export declare enum TaskStatus {
|
|
15
|
+
PENDING = "pending",
|
|
16
|
+
IN_PROGRESS = "in_progress",
|
|
17
|
+
COMPLETED = "completed"
|
|
18
|
+
}
|
|
19
|
+
export declare enum RecurrenceType {
|
|
20
|
+
DAILY = "daily",
|
|
21
|
+
WEEKLY = "weekly",
|
|
22
|
+
MONTHLY = "monthly"
|
|
23
|
+
}
|
|
24
|
+
export declare enum ICalendarEventStatus {
|
|
25
|
+
SCHEDULED = "scheduled",
|
|
26
|
+
COMPLETED = "completed",
|
|
27
|
+
CANCELLED = "cancelled"
|
|
28
|
+
}
|
|
29
|
+
export interface ICalendarEventModel {
|
|
30
|
+
_id?: string | mongoose.Types.ObjectId;
|
|
31
|
+
title: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
startDate: Date;
|
|
34
|
+
endDate: Date;
|
|
35
|
+
endUser: string | mongoose.Types.ObjectId;
|
|
36
|
+
seller: string | mongoose.Types.ObjectId;
|
|
37
|
+
marketplace: string | mongoose.Types.ObjectId;
|
|
38
|
+
status?: "scheduled" | "completed" | "cancelled";
|
|
39
|
+
location?: string;
|
|
40
|
+
eventType: ICalendarEventType;
|
|
41
|
+
tableReservation?: {
|
|
42
|
+
guestCount: number;
|
|
43
|
+
specialRequests?: string;
|
|
44
|
+
};
|
|
45
|
+
tour?: {
|
|
46
|
+
prospect?: {
|
|
47
|
+
firstName: string;
|
|
48
|
+
lastName: string;
|
|
49
|
+
phone: string;
|
|
50
|
+
};
|
|
51
|
+
tourGuide?: string;
|
|
52
|
+
notes?: string;
|
|
53
|
+
};
|
|
54
|
+
task?: {
|
|
55
|
+
createdBy: string;
|
|
56
|
+
assignedTo?: string;
|
|
57
|
+
taskStatus?: TaskStatus;
|
|
58
|
+
recurrence?: {
|
|
59
|
+
type?: RecurrenceType;
|
|
60
|
+
interval?: number;
|
|
61
|
+
};
|
|
62
|
+
comments?: {
|
|
63
|
+
text: string;
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
}[];
|
|
66
|
+
};
|
|
67
|
+
metadata?: Record<string, any>;
|
|
68
|
+
createdAt?: Date;
|
|
69
|
+
updatedAt?: Date;
|
|
70
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ICalendarEventStatus = exports.RecurrenceType = exports.TaskStatus = exports.ICalendarEventType = void 0;
|
|
4
|
+
var ICalendarEventType;
|
|
5
|
+
(function (ICalendarEventType) {
|
|
6
|
+
ICalendarEventType["TABLE_RESERVATION"] = "TABLE_RESERVATION";
|
|
7
|
+
ICalendarEventType["TOUR"] = "TOUR";
|
|
8
|
+
ICalendarEventType["TASK"] = "TASK";
|
|
9
|
+
})(ICalendarEventType || (exports.ICalendarEventType = ICalendarEventType = {}));
|
|
10
|
+
var TaskStatus;
|
|
11
|
+
(function (TaskStatus) {
|
|
12
|
+
TaskStatus["PENDING"] = "pending";
|
|
13
|
+
TaskStatus["IN_PROGRESS"] = "in_progress";
|
|
14
|
+
TaskStatus["COMPLETED"] = "completed";
|
|
15
|
+
})(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
|
|
16
|
+
var RecurrenceType;
|
|
17
|
+
(function (RecurrenceType) {
|
|
18
|
+
RecurrenceType["DAILY"] = "daily";
|
|
19
|
+
RecurrenceType["WEEKLY"] = "weekly";
|
|
20
|
+
RecurrenceType["MONTHLY"] = "monthly";
|
|
21
|
+
})(RecurrenceType || (exports.RecurrenceType = RecurrenceType = {}));
|
|
22
|
+
var ICalendarEventStatus;
|
|
23
|
+
(function (ICalendarEventStatus) {
|
|
24
|
+
ICalendarEventStatus["SCHEDULED"] = "scheduled";
|
|
25
|
+
ICalendarEventStatus["COMPLETED"] = "completed";
|
|
26
|
+
ICalendarEventStatus["CANCELLED"] = "cancelled";
|
|
27
|
+
})(ICalendarEventStatus || (exports.ICalendarEventStatus = ICalendarEventStatus = {}));
|
|
28
|
+
//# sourceMappingURL=calendarEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calendarEvent.js","sourceRoot":"","sources":["../../src/crm/calendarEvent.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,6DAAuC,CAAA;IACvC,mCAAa,CAAA;IACb,mCAAa,CAAA;AACf,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,yCAA2B,CAAA;IAC3B,qCAAuB,CAAA;AACzB,CAAC,EAJW,UAAU,0BAAV,UAAU,QAIrB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,qCAAmB,CAAA;AACrB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,+CAAuB,CAAA;IACvB,+CAAuB,CAAA;IACvB,+CAAuB,CAAA;AACzB,CAAC,EAJW,oBAAoB,oCAApB,oBAAoB,QAI/B"}
|
package/dist/crm/index.d.ts
CHANGED
package/dist/crm/index.js
CHANGED
|
@@ -18,4 +18,5 @@ __exportStar(require("./endUserCRMEvent"), exports);
|
|
|
18
18
|
__exportStar(require("./deviceNotification"), exports);
|
|
19
19
|
__exportStar(require("./endUserNotification"), exports);
|
|
20
20
|
__exportStar(require("./automation"), exports);
|
|
21
|
+
__exportStar(require("./calendarEvent"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
package/dist/crm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/crm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wDAAsC;AACtC,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/crm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wDAAsC;AACtC,+CAA6B;AAC7B,kDAAgC"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
|
|
3
|
+
export enum ICalendarEventType {
|
|
4
|
+
TABLE_RESERVATION = "TABLE_RESERVATION",
|
|
5
|
+
TOUR = "TOUR",
|
|
6
|
+
TASK = "TASK",
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum TaskStatus {
|
|
10
|
+
PENDING = "pending",
|
|
11
|
+
IN_PROGRESS = "in_progress",
|
|
12
|
+
COMPLETED = "completed",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum RecurrenceType {
|
|
16
|
+
DAILY = "daily",
|
|
17
|
+
WEEKLY = "weekly",
|
|
18
|
+
MONTHLY = "monthly",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum ICalendarEventStatus {
|
|
22
|
+
SCHEDULED = "scheduled",
|
|
23
|
+
COMPLETED = "completed",
|
|
24
|
+
CANCELLED = "cancelled",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface ICalendarEventModel {
|
|
28
|
+
_id?: string | mongoose.Types.ObjectId;
|
|
29
|
+
title: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
startDate: Date;
|
|
32
|
+
endDate: Date;
|
|
33
|
+
endUser: string | mongoose.Types.ObjectId;
|
|
34
|
+
seller: string | mongoose.Types.ObjectId;
|
|
35
|
+
marketplace: string | mongoose.Types.ObjectId;
|
|
36
|
+
status?: "scheduled" | "completed" | "cancelled";
|
|
37
|
+
location?: string;
|
|
38
|
+
eventType: ICalendarEventType;
|
|
39
|
+
tableReservation?: {
|
|
40
|
+
guestCount: number;
|
|
41
|
+
specialRequests?: string;
|
|
42
|
+
};
|
|
43
|
+
tour?: {
|
|
44
|
+
prospect?: {
|
|
45
|
+
firstName: string;
|
|
46
|
+
lastName: string;
|
|
47
|
+
phone: string;
|
|
48
|
+
};
|
|
49
|
+
tourGuide?: string;
|
|
50
|
+
notes?: string;
|
|
51
|
+
};
|
|
52
|
+
task?: {
|
|
53
|
+
createdBy: string;
|
|
54
|
+
assignedTo?: string;
|
|
55
|
+
taskStatus?: TaskStatus;
|
|
56
|
+
recurrence?: {
|
|
57
|
+
type?: RecurrenceType;
|
|
58
|
+
interval?: number;
|
|
59
|
+
};
|
|
60
|
+
comments?: {
|
|
61
|
+
text: string;
|
|
62
|
+
createdAt: Date;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
metadata?: Record<string, any>;
|
|
66
|
+
createdAt?: Date;
|
|
67
|
+
updatedAt?: Date;
|
|
68
|
+
}
|
package/src/crm/index.ts
CHANGED