tango-api-schema 2.2.59 → 2.2.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 +4 -1
- package/package.json +1 -1
- package/schema/planoQrConversionRequest.model.js +55 -0
package/index.js
CHANGED
|
@@ -81,6 +81,8 @@ import storeFixtureModel from './schema/storeFixture.model.js';
|
|
|
81
81
|
import fixtureConfigModel from './schema/fixtureConfig.model.js';
|
|
82
82
|
import fixtureShelfModel from './schema/fixtureShelf.model.js';
|
|
83
83
|
import planoTaskCompliance from './schema/planoTaskCompliance.model.js';
|
|
84
|
+
import planoQrConversionRequest from './schema/planoQrConversionRequest.model.js';
|
|
85
|
+
|
|
84
86
|
|
|
85
87
|
|
|
86
88
|
export default {
|
|
@@ -166,5 +168,6 @@ export default {
|
|
|
166
168
|
storeFixtureModel,
|
|
167
169
|
fixtureConfigModel,
|
|
168
170
|
fixtureShelfModel,
|
|
169
|
-
planoTaskCompliance
|
|
171
|
+
planoTaskCompliance,
|
|
172
|
+
planoQrConversionRequest
|
|
170
173
|
};
|
package/package.json
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
|
|
3
|
+
const planoQrConversionRequest = new mongoose.Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: {
|
|
6
|
+
type: String,
|
|
7
|
+
},
|
|
8
|
+
storeName: {
|
|
9
|
+
type: String,
|
|
10
|
+
},
|
|
11
|
+
storeId: {
|
|
12
|
+
type: String,
|
|
13
|
+
},
|
|
14
|
+
planoId: {
|
|
15
|
+
type: mongoose.Types.ObjectId,
|
|
16
|
+
},
|
|
17
|
+
floorId: {
|
|
18
|
+
type: mongoose.Types.ObjectId,
|
|
19
|
+
},
|
|
20
|
+
fixtureId: {
|
|
21
|
+
type: mongoose.Types.ObjectId,
|
|
22
|
+
},
|
|
23
|
+
status: {
|
|
24
|
+
type: String,
|
|
25
|
+
enum: [ 'initiated', 'data-received' ],
|
|
26
|
+
},
|
|
27
|
+
date:{
|
|
28
|
+
type:Date,
|
|
29
|
+
required:true
|
|
30
|
+
},
|
|
31
|
+
fixtureImage: {
|
|
32
|
+
filePath: {
|
|
33
|
+
type: String,
|
|
34
|
+
},
|
|
35
|
+
comment: {
|
|
36
|
+
type: String,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
fixtureVideo: {
|
|
40
|
+
filePath: {
|
|
41
|
+
type: String,
|
|
42
|
+
},
|
|
43
|
+
comment: {
|
|
44
|
+
type: String,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
strict: true,
|
|
50
|
+
versionKey: false,
|
|
51
|
+
timestamps: true,
|
|
52
|
+
},
|
|
53
|
+
);
|
|
54
|
+
|
|
55
|
+
export default mongoose.model( 'planoQrConversionRequest', planoQrConversionRequest );
|