@nimee/shared-types 1.0.182 → 1.0.184
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/index.d.ts +1 -0
- package/dist/crm/index.js +1 -0
- package/dist/crm/index.js.map +1 -1
- package/dist/crm/visit.d.ts +19 -0
- package/dist/crm/visit.js +3 -0
- package/dist/crm/visit.js.map +1 -0
- package/dist/payment/endUserSeasonTicket.d.ts +1 -0
- package/dist/payment/endUserSeasonTicket.js.map +1 -1
- package/package.json +1 -1
- package/src/crm/index.ts +1 -0
- package/src/crm/visit.ts +13 -0
- package/src/payment/endUserSeasonTicket.ts +1 -0
package/dist/crm/index.d.ts
CHANGED
package/dist/crm/index.js
CHANGED
|
@@ -21,4 +21,5 @@ __exportStar(require("./automation"), exports);
|
|
|
21
21
|
__exportStar(require("./calendarEvent"), exports);
|
|
22
22
|
__exportStar(require("./generalComment"), exports);
|
|
23
23
|
__exportStar(require("./endUserComment"), exports);
|
|
24
|
+
__exportStar(require("./visit"), exports);
|
|
24
25
|
//# 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;AAC7B,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/crm/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,uDAAqC;AACrC,wDAAsC;AACtC,+CAA6B;AAC7B,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC;AACjC,0CAAwB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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 interface IVisitModel {
|
|
10
|
+
_id?: string | mongoose.Types.ObjectId;
|
|
11
|
+
endUser: string | mongoose.Types.ObjectId;
|
|
12
|
+
guests: number;
|
|
13
|
+
exit: boolean;
|
|
14
|
+
exitDate?: Date;
|
|
15
|
+
seller: string | mongoose.Types.ObjectId;
|
|
16
|
+
marketplace: string | mongoose.Types.ObjectId;
|
|
17
|
+
createdAt?: Date;
|
|
18
|
+
updatedAt?: Date;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visit.js","sourceRoot":"","sources":["../../src/crm/visit.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endUserSeasonTicket.js","sourceRoot":"","sources":["../../src/payment/endUserSeasonTicket.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"endUserSeasonTicket.js","sourceRoot":"","sources":["../../src/payment/endUserSeasonTicket.ts"],"names":[],"mappings":";;;AA8DA,IAAY,uBAUX;AAVD,WAAY,uBAAuB;IACjC,4CAAiB,CAAA;IACjB,8CAAmB,CAAA;IACnB,kDAAuB,CAAA;IACvB,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;IACvB,8CAAmB,CAAA;IACnB,4CAAiB,CAAA;IACjB,0EAA+C,CAAA;IAC/C,0EAA+C,CAAA;AACjD,CAAC,EAVW,uBAAuB,uCAAvB,uBAAuB,QAUlC"}
|
package/package.json
CHANGED
package/src/crm/index.ts
CHANGED
package/src/crm/visit.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
|
|
3
|
+
export interface IVisitModel {
|
|
4
|
+
_id?: string | mongoose.Types.ObjectId;
|
|
5
|
+
endUser: string | mongoose.Types.ObjectId;
|
|
6
|
+
guests: number;
|
|
7
|
+
exit: boolean;
|
|
8
|
+
exitDate?: Date;
|
|
9
|
+
seller: string | mongoose.Types.ObjectId;
|
|
10
|
+
marketplace: string | mongoose.Types.ObjectId;
|
|
11
|
+
createdAt?: Date;
|
|
12
|
+
updatedAt?: Date;
|
|
13
|
+
}
|
|
@@ -31,6 +31,7 @@ export interface IEndUserSeasonTicketModel {
|
|
|
31
31
|
startDate?: Date; // the start date of the season ticket - if the seller wants one purchase to be valid for a certain period
|
|
32
32
|
endDate?: Date; // the end date of the season ticket - if the seller wants one purchase to be valid for a certain period
|
|
33
33
|
// so when the end date is over the season ticket is no longer valid and the status should be expired
|
|
34
|
+
cancelDate?: Date; // the date when the season ticket was cancelled
|
|
34
35
|
token?: string; // the token generated when created this object and use to call createSubscription on the payment service
|
|
35
36
|
externalSubStatus?: number; // the status of the subscription in the payment service
|
|
36
37
|
currency?: string;
|