@dynamatix/gb-schemas 0.19.1 → 0.20.1
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
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export {default as ProductCatalogueModel} from './product-catalogue.model.js';
|
|
2
2
|
export { default as ProductDefinitionsModel } from './product-definitions.model.js';
|
|
3
|
-
export { default as
|
|
3
|
+
export { default as ProductVariantModel} from './product-variant.model.js'
|
|
@@ -13,5 +13,5 @@ const productVariantSchema = new mongoose.Schema({
|
|
|
13
13
|
});
|
|
14
14
|
|
|
15
15
|
productVariantSchema.plugin(mongooseEncryption);
|
|
16
|
-
const
|
|
17
|
-
export default
|
|
16
|
+
const ProductVariantModel = mongoose.model('ProductVariant', productVariantSchema);
|
|
17
|
+
export default ProductVariantModel;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
|
|
3
|
+
const DocumentTypeSchema = new mongoose.Schema({
|
|
4
|
+
name: { type: String, required: true },
|
|
5
|
+
label: { type: String },
|
|
6
|
+
source : {type : String , default : null },
|
|
7
|
+
parentDocumentTypeId: { type: mongoose.Schema.Types.ObjectId, ref: 'DocumentType', default: null },
|
|
8
|
+
matchRules: { type: mongoose.Schema.Types.Mixed }
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const DocumentTypeModel = mongoose.model('DocumentType', DocumentTypeSchema);
|
|
12
|
+
|
|
13
|
+
export default DocumentTypeModel;
|
package/shared/index.js
CHANGED
|
@@ -9,4 +9,5 @@ export { default as TaskModel} from './task.model.js';
|
|
|
9
9
|
export { default as ApprivoSyncJourneyModel } from './apprivo-sync-journey.model.js';
|
|
10
10
|
export { default as JobRunModel } from './job-run.model.js';
|
|
11
11
|
export { default as TaskDocumentTypeModel} from './task-document.model.js'
|
|
12
|
-
export { default as ErrorLogModel} from './error-log.model.js'
|
|
12
|
+
export { default as ErrorLogModel} from './error-log.model.js'
|
|
13
|
+
export { default as DocumentTypeModel } from './document-type-model.js';
|