@nimee/shared-types 1.0.193 → 1.0.194

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,13 +6,18 @@
6
6
  /// <reference types="mongoose/types/mongooseoptions" />
7
7
  /// <reference types="mongoose/types/schemaoptions" />
8
8
  import mongoose from "mongoose";
9
+ export declare enum EndUserCommentStatus {
10
+ ACTIVE = "active",
11
+ INACTIVE = "inactive"
12
+ }
9
13
  export interface IEndUserCommentModel {
10
14
  _id?: string | mongoose.Types.ObjectId;
11
15
  content: string;
12
16
  author: string | mongoose.Types.ObjectId;
13
- relatedTo?: string | mongoose.Types.ObjectId;
17
+ endUser: string | mongoose.Types.ObjectId;
14
18
  seller: string | mongoose.Types.ObjectId;
15
19
  marketplace: string | mongoose.Types.ObjectId;
16
20
  createdAt?: Date;
17
21
  updatedAt?: Date;
22
+ status?: EndUserCommentStatus;
18
23
  }
@@ -1,3 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EndUserCommentStatus = void 0;
4
+ var EndUserCommentStatus;
5
+ (function (EndUserCommentStatus) {
6
+ EndUserCommentStatus["ACTIVE"] = "active";
7
+ EndUserCommentStatus["INACTIVE"] = "inactive";
8
+ })(EndUserCommentStatus || (exports.EndUserCommentStatus = EndUserCommentStatus = {}));
3
9
  //# sourceMappingURL=endUserComment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"endUserComment.js","sourceRoot":"","sources":["../../src/crm/endUserComment.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"endUserComment.js","sourceRoot":"","sources":["../../src/crm/endUserComment.ts"],"names":[],"mappings":";;;AAEA,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,yCAAiB,CAAA;IACjB,6CAAqB,CAAA;AACvB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimee/shared-types",
3
- "version": "1.0.193",
3
+ "version": "1.0.194",
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,12 +1,18 @@
1
1
  import mongoose from "mongoose";
2
2
 
3
+ export enum EndUserCommentStatus {
4
+ ACTIVE = "active",
5
+ INACTIVE = "inactive",
6
+ }
7
+
3
8
  export interface IEndUserCommentModel {
4
9
  _id?: string | mongoose.Types.ObjectId;
5
10
  content: string;
6
11
  author: string | mongoose.Types.ObjectId; // EndUser who wrote the comment
7
- relatedTo?: string | mongoose.Types.ObjectId;
12
+ endUser: string | mongoose.Types.ObjectId;
8
13
  seller: string | mongoose.Types.ObjectId;
9
14
  marketplace: string | mongoose.Types.ObjectId;
10
15
  createdAt?: Date;
11
16
  updatedAt?: Date;
17
+ status?: EndUserCommentStatus;
12
18
  }