tango-api-schema 2.6.39 → 2.6.41
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/package.json
CHANGED
|
@@ -51,6 +51,8 @@ const auditStoreData = new mongoose.Schema( {
|
|
|
51
51
|
versionKey: false,
|
|
52
52
|
} );
|
|
53
53
|
|
|
54
|
-
auditStoreData.index({
|
|
54
|
+
auditStoreData.index({ moduleType:1,clientId:1,fileDateISO:1});
|
|
55
|
+
|
|
56
|
+
auditStoreData.index({ storeId: 1,moduleType:1, fileDate:1});
|
|
55
57
|
|
|
56
58
|
export default mongoose.model( 'auditStoreData', auditStoreData, 'auditStoreData' );
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import mongoose from 'mongoose';
|
|
2
|
-
import { randomUUID } from 'crypto';
|
|
3
|
-
|
|
4
|
-
// schema
|
|
5
|
-
const collection = new mongoose.Schema({
|
|
6
|
-
apiKey: {
|
|
7
|
-
type: String,
|
|
8
|
-
required: true,
|
|
9
|
-
unique: true,
|
|
10
|
-
default: () => randomUUID()
|
|
11
|
-
},
|
|
12
|
-
countryName: {
|
|
13
|
-
type: String,
|
|
14
|
-
},
|
|
15
|
-
countryCode: {
|
|
16
|
-
type: String,
|
|
17
|
-
},
|
|
18
|
-
clientId: {
|
|
19
|
-
type: String,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
timestamps: true,
|
|
24
|
-
strict: true,
|
|
25
|
-
versionKey: false,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
collection.index({ apiKey: 1 });
|
|
30
|
-
|
|
31
|
-
export default mongoose.model('regionKey', collection, 'regionKey');
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
import { randomUUID } from 'crypto';
|
|
3
|
+
|
|
4
|
+
// schema
|
|
5
|
+
const collection = new mongoose.Schema({
|
|
6
|
+
apiKey: {
|
|
7
|
+
type: String,
|
|
8
|
+
required: true,
|
|
9
|
+
unique: true,
|
|
10
|
+
default: () => randomUUID()
|
|
11
|
+
},
|
|
12
|
+
countryName: {
|
|
13
|
+
type: String,
|
|
14
|
+
},
|
|
15
|
+
countryCode: {
|
|
16
|
+
type: String,
|
|
17
|
+
},
|
|
18
|
+
clientId: {
|
|
19
|
+
type: String,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
timestamps: true,
|
|
24
|
+
strict: true,
|
|
25
|
+
versionKey: false,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
collection.index({ apiKey: 1 });
|
|
30
|
+
|
|
31
|
+
export default mongoose.model('regionKey', collection, 'regionKey');
|
|
@@ -87,6 +87,14 @@ const storeLayoutSchema = new mongoose.Schema( {
|
|
|
87
87
|
isPlanoApproved:{
|
|
88
88
|
type:Boolean
|
|
89
89
|
},
|
|
90
|
+
// Source CAD/DXF files this floor was generated (and re-generated) from.
|
|
91
|
+
// Ordered oldest→newest; the last entry is the latest source. Loose Array
|
|
92
|
+
// to match layoutPolygon's style. Entry shape:
|
|
93
|
+
// { key, fileName, uploadedAt, inferred }
|
|
94
|
+
cadFiles:{
|
|
95
|
+
type: Array,
|
|
96
|
+
default: [],
|
|
97
|
+
},
|
|
90
98
|
},
|
|
91
99
|
{
|
|
92
100
|
strict: true,
|