@nimee/shared-types 1.0.159 → 1.0.161

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.
@@ -0,0 +1,65 @@
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 CalendarEventType {
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 interface ICalendarEventModel {
25
+ _id?: string | mongoose.Types.ObjectId;
26
+ title: string;
27
+ description?: string;
28
+ startDate: Date;
29
+ endDate: Date;
30
+ endUser: string | mongoose.Types.ObjectId;
31
+ seller: string | mongoose.Types.ObjectId;
32
+ marketplace: string | mongoose.Types.ObjectId;
33
+ status?: "scheduled" | "completed" | "cancelled";
34
+ location?: string;
35
+ eventType: CalendarEventType;
36
+ tableReservation?: {
37
+ guestCount: number;
38
+ specialRequests?: string;
39
+ };
40
+ tour?: {
41
+ prospect?: {
42
+ firstName: string;
43
+ lastName: string;
44
+ phone: string;
45
+ };
46
+ tourGuide?: string;
47
+ notes?: string;
48
+ };
49
+ task?: {
50
+ createdBy: string;
51
+ assignedTo?: string;
52
+ taskStatus?: TaskStatus;
53
+ recurrence?: {
54
+ type?: RecurrenceType;
55
+ interval?: number;
56
+ };
57
+ comments?: {
58
+ text: string;
59
+ createdAt: Date;
60
+ }[];
61
+ };
62
+ metadata?: Record<string, any>;
63
+ createdAt?: Date;
64
+ updatedAt?: Date;
65
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RecurrenceType = exports.TaskStatus = exports.CalendarEventType = void 0;
4
+ var CalendarEventType;
5
+ (function (CalendarEventType) {
6
+ CalendarEventType["TABLE_RESERVATION"] = "TABLE_RESERVATION";
7
+ CalendarEventType["TOUR"] = "TOUR";
8
+ CalendarEventType["TASK"] = "TASK";
9
+ })(CalendarEventType || (exports.CalendarEventType = CalendarEventType = {}));
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
+ //# sourceMappingURL=calendarEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendarEvent.js","sourceRoot":"","sources":["../../src/crm/calendarEvent.ts"],"names":[],"mappings":";;;AAEA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,4DAAuC,CAAA;IACvC,kCAAa,CAAA;IACb,kCAAa,CAAA;AACf,CAAC,EAJW,iBAAiB,iCAAjB,iBAAiB,QAI5B;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"}
@@ -2,3 +2,4 @@ export * from "./endUserCRMEvent";
2
2
  export * from "./deviceNotification";
3
3
  export * from "./endUserNotification";
4
4
  export * from "./automation";
5
+ export * from "./calendarEvent";
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
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.159",
3
+ "version": "1.0.161",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -0,0 +1,62 @@
1
+ import mongoose from "mongoose";
2
+
3
+ export enum CalendarEventType {
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 interface ICalendarEventModel {
22
+ _id?: string | mongoose.Types.ObjectId;
23
+ title: string;
24
+ description?: string;
25
+ startDate: Date;
26
+ endDate: Date;
27
+ endUser: string | mongoose.Types.ObjectId;
28
+ seller: string | mongoose.Types.ObjectId;
29
+ marketplace: string | mongoose.Types.ObjectId;
30
+ status?: "scheduled" | "completed" | "cancelled";
31
+ location?: string;
32
+ eventType: CalendarEventType;
33
+ tableReservation?: {
34
+ guestCount: number;
35
+ specialRequests?: string;
36
+ };
37
+ tour?: {
38
+ prospect?: {
39
+ firstName: string;
40
+ lastName: string;
41
+ phone: string;
42
+ };
43
+ tourGuide?: string;
44
+ notes?: string;
45
+ };
46
+ task?: {
47
+ createdBy: string;
48
+ assignedTo?: string;
49
+ taskStatus?: TaskStatus;
50
+ recurrence?: {
51
+ type?: RecurrenceType;
52
+ interval?: number;
53
+ };
54
+ comments?: {
55
+ text: string;
56
+ createdAt: Date;
57
+ }[];
58
+ };
59
+ metadata?: Record<string, any>;
60
+ createdAt?: Date;
61
+ updatedAt?: Date;
62
+ }
package/src/crm/index.ts CHANGED
@@ -2,3 +2,4 @@ export * from "./endUserCRMEvent";
2
2
  export * from "./deviceNotification";
3
3
  export * from "./endUserNotification";
4
4
  export * from "./automation";
5
+ export * from "./calendarEvent";