gemcap-be-common 1.3.83 → 1.3.84

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.
@@ -23,7 +23,7 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import mongoose, { Document, Model } from 'mongoose';
26
- declare enum SharepointSyncStatus {
26
+ export declare enum ESharepointSyncStatus {
27
27
  pending = "pending",
28
28
  synced = "synced",
29
29
  failed = "failed"
@@ -35,7 +35,7 @@ export interface IProspectSharepoint {
35
35
  folderName: string;
36
36
  webUrl: string;
37
37
  driveId: string;
38
- syncStatus: SharepointSyncStatus;
38
+ syncStatus: ESharepointSyncStatus;
39
39
  parentId: string;
40
40
  }
41
41
  export type TProspectSharepointModel = Model<IProspectSharepoint>;
@@ -45,4 +45,3 @@ export declare const ProspectSharepointSchema: mongoose.Schema<IProspectSharepoi
45
45
  _id: mongoose.Types.ObjectId;
46
46
  }>;
47
47
  export declare const ProspectSharepoint: TProspectSharepointModel;
48
- export {};
@@ -3,15 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ProspectSharepoint = exports.ProspectSharepointSchema = void 0;
6
+ exports.ProspectSharepoint = exports.ProspectSharepointSchema = exports.ESharepointSyncStatus = void 0;
7
7
  const mongoose_1 = __importDefault(require("mongoose"));
8
8
  const _models_1 = require("./_models");
9
- var SharepointSyncStatus;
10
- (function (SharepointSyncStatus) {
11
- SharepointSyncStatus["pending"] = "pending";
12
- SharepointSyncStatus["synced"] = "synced";
13
- SharepointSyncStatus["failed"] = "failed";
14
- })(SharepointSyncStatus || (SharepointSyncStatus = {}));
9
+ var ESharepointSyncStatus;
10
+ (function (ESharepointSyncStatus) {
11
+ ESharepointSyncStatus["pending"] = "pending";
12
+ ESharepointSyncStatus["synced"] = "synced";
13
+ ESharepointSyncStatus["failed"] = "failed";
14
+ })(ESharepointSyncStatus || (exports.ESharepointSyncStatus = ESharepointSyncStatus = {}));
15
15
  exports.ProspectSharepointSchema = new mongoose_1.default.Schema({
16
16
  isActive: {
17
17
  type: Boolean,
@@ -41,7 +41,7 @@ exports.ProspectSharepointSchema = new mongoose_1.default.Schema({
41
41
  },
42
42
  syncStatus: {
43
43
  type: String,
44
- enum: Object.values(SharepointSyncStatus),
44
+ enum: Object.values(ESharepointSyncStatus),
45
45
  required: true,
46
46
  },
47
47
  parentId: {
@@ -2,7 +2,7 @@ import mongoose, { Document, Model } from 'mongoose';
2
2
 
3
3
  import { MODEL_NAMES } from './_models';
4
4
 
5
- enum SharepointSyncStatus {
5
+ export enum ESharepointSyncStatus {
6
6
  pending = 'pending',
7
7
  synced = 'synced',
8
8
  failed = 'failed',
@@ -15,7 +15,7 @@ export interface IProspectSharepoint {
15
15
  folderName: string;
16
16
  webUrl: string;
17
17
  driveId: string;
18
- syncStatus: SharepointSyncStatus;
18
+ syncStatus: ESharepointSyncStatus;
19
19
  parentId: string;
20
20
  }
21
21
 
@@ -54,7 +54,7 @@ export const ProspectSharepointSchema = new mongoose.Schema<IProspectSharepoint,
54
54
  },
55
55
  syncStatus: {
56
56
  type: String,
57
- enum: Object.values(SharepointSyncStatus),
57
+ enum: Object.values(ESharepointSyncStatus),
58
58
  required: true,
59
59
  },
60
60
  parentId: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemcap-be-common",
3
- "version": "1.3.83",
3
+ "version": "1.3.84",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {