tango-api-schema 2.1.59 → 2.1.60
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/index.js
CHANGED
|
@@ -62,6 +62,7 @@ import appVersionModel from "./schema/appVersion.js";
|
|
|
62
62
|
import lenskartEmployeeMappingModel from "./schema/lenskartEmployeeMapping.model.js";
|
|
63
63
|
import locusOrderModel from "./schema/locusOrder.model.js";
|
|
64
64
|
import locusOrderUserModel from "./schema/locusOrderUser.model.js";
|
|
65
|
+
import controleCenterTemplateListModel from "./schema/controlCenterTemplateList.model.js";
|
|
65
66
|
|
|
66
67
|
|
|
67
68
|
export default {
|
|
@@ -129,4 +130,5 @@ export default {
|
|
|
129
130
|
lenskartEmployeeMappingModel,
|
|
130
131
|
locusOrderModel,
|
|
131
132
|
locusOrderUserModel,
|
|
133
|
+
controleCenterTemplateListModel
|
|
132
134
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @name api_control_center
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// NPM Modules
|
|
6
|
+
import mongoose from 'mongoose';
|
|
7
|
+
|
|
8
|
+
// Schema
|
|
9
|
+
const controlCenterTemplateList = new mongoose.Schema( {
|
|
10
|
+
|
|
11
|
+
clientId: {
|
|
12
|
+
type: String,
|
|
13
|
+
require: true
|
|
14
|
+
},
|
|
15
|
+
templateName: {
|
|
16
|
+
type:String
|
|
17
|
+
},
|
|
18
|
+
templateType: {
|
|
19
|
+
type: String,
|
|
20
|
+
},
|
|
21
|
+
list: {
|
|
22
|
+
type: Array,
|
|
23
|
+
},
|
|
24
|
+
isActive: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: true,
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
timestamps: true,
|
|
31
|
+
strict: true,
|
|
32
|
+
versionKey: false,
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
controlCenterTemplateList.index({ clientId:1,templateName: 1});
|
|
38
|
+
|
|
39
|
+
export default mongoose.model( 'controlCenterTemplateList', controlCenterTemplateList, 'controlCenterTemplateList' );
|