@nimee/shared-types 1.0.161 → 1.0.163

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.
@@ -6,7 +6,7 @@
6
6
  /// <reference types="mongoose/types/mongooseoptions" />
7
7
  /// <reference types="mongoose/types/schemaoptions" />
8
8
  import mongoose from "mongoose";
9
- export declare enum CalendarEventType {
9
+ export declare enum ICalendarEventType {
10
10
  TABLE_RESERVATION = "TABLE_RESERVATION",
11
11
  TOUR = "TOUR",
12
12
  TASK = "TASK"
@@ -21,6 +21,11 @@ export declare enum RecurrenceType {
21
21
  WEEKLY = "weekly",
22
22
  MONTHLY = "monthly"
23
23
  }
24
+ export declare enum ICalendarEventStatus {
25
+ SCHEDULED = "scheduled",
26
+ COMPLETED = "completed",
27
+ CANCELLED = "cancelled"
28
+ }
24
29
  export interface ICalendarEventModel {
25
30
  _id?: string | mongoose.Types.ObjectId;
26
31
  title: string;
@@ -32,7 +37,7 @@ export interface ICalendarEventModel {
32
37
  marketplace: string | mongoose.Types.ObjectId;
33
38
  status?: "scheduled" | "completed" | "cancelled";
34
39
  location?: string;
35
- eventType: CalendarEventType;
40
+ eventType: ICalendarEventType;
36
41
  tableReservation?: {
37
42
  guestCount: number;
38
43
  specialRequests?: string;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
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 = {}));
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
10
  var TaskStatus;
11
11
  (function (TaskStatus) {
12
12
  TaskStatus["PENDING"] = "pending";
@@ -19,4 +19,10 @@ var RecurrenceType;
19
19
  RecurrenceType["WEEKLY"] = "weekly";
20
20
  RecurrenceType["MONTHLY"] = "monthly";
21
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 = {}));
22
28
  //# sourceMappingURL=calendarEvent.js.map
@@ -1 +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"}
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"}
@@ -6,6 +6,7 @@
6
6
  /// <reference types="mongoose/types/mongooseoptions" />
7
7
  /// <reference types="mongoose/types/schemaoptions" />
8
8
  import mongoose from "mongoose";
9
+ import { ISeasonTicketStatusType } from "../payment/endUserSeasonTicket";
9
10
  export declare enum ISegmentType {
10
11
  USER_CREATED = "user-created",
11
12
  EVENT = "event",
@@ -24,6 +25,7 @@ export interface ISegmentModel {
24
25
  seasonTicket?: string | mongoose.Types.ObjectId;
25
26
  event?: string | mongoose.Types.ObjectId;
26
27
  activityName?: string;
28
+ seasonTicketStatus?: ISeasonTicketStatusType;
27
29
  }
28
30
  export interface ISegmentEndUserModel {
29
31
  _id?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/user/segment.ts"],"names":[],"mappings":";;;AACA,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,+BAAe,CAAA;IACf,qEAAqD,CAAA;IACrD,+CAA+B,CAAA;IAC/B,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB"}
1
+ {"version":3,"file":"segment.js","sourceRoot":"","sources":["../../src/user/segment.ts"],"names":[],"mappings":";;;AAGA,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,6CAA6B,CAAA;IAC7B,+BAAe,CAAA;IACf,qEAAqD,CAAA;IACrD,+CAA+B,CAAA;IAC/B,qCAAqB,CAAA;AACvB,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.161",
3
+ "version": "1.0.163",
4
4
  "description": "Types and interfaces that any service can access if needed",
5
5
  "main": "dist/index.js",
6
6
  "author": "dan goldberg",
@@ -1,6 +1,6 @@
1
1
  import mongoose from "mongoose";
2
2
 
3
- export enum CalendarEventType {
3
+ export enum ICalendarEventType {
4
4
  TABLE_RESERVATION = "TABLE_RESERVATION",
5
5
  TOUR = "TOUR",
6
6
  TASK = "TASK",
@@ -18,6 +18,12 @@ export enum RecurrenceType {
18
18
  MONTHLY = "monthly",
19
19
  }
20
20
 
21
+ export enum ICalendarEventStatus {
22
+ SCHEDULED = "scheduled",
23
+ COMPLETED = "completed",
24
+ CANCELLED = "cancelled",
25
+ }
26
+
21
27
  export interface ICalendarEventModel {
22
28
  _id?: string | mongoose.Types.ObjectId;
23
29
  title: string;
@@ -29,7 +35,7 @@ export interface ICalendarEventModel {
29
35
  marketplace: string | mongoose.Types.ObjectId;
30
36
  status?: "scheduled" | "completed" | "cancelled";
31
37
  location?: string;
32
- eventType: CalendarEventType;
38
+ eventType: ICalendarEventType;
33
39
  tableReservation?: {
34
40
  guestCount: number;
35
41
  specialRequests?: string;
@@ -1,4 +1,6 @@
1
1
  import mongoose from "mongoose";
2
+ import { ISeasonTicketStatusType } from "../payment/endUserSeasonTicket";
3
+
2
4
  export enum ISegmentType {
3
5
  USER_CREATED = "user-created",
4
6
  EVENT = "event",
@@ -17,6 +19,7 @@ export interface ISegmentModel {
17
19
  seasonTicket?: string | mongoose.Types.ObjectId;
18
20
  event?: string | mongoose.Types.ObjectId;
19
21
  activityName?: string;
22
+ seasonTicketStatus?: ISeasonTicketStatusType;
20
23
  }
21
24
 
22
25
  export interface ISegmentEndUserModel {