@pintahub/database-schemas 3.2.6 → 3.2.8

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@pintahub/database-schemas",
3
- "version": "3.2.6",
3
+ "version": "3.2.8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -8,6 +8,8 @@ const KlaviyoObject = require('./types/KlaviyoObject')
8
8
  const FacebookObject = require('./types/FacebookObject')
9
9
  const TopBarSettings = require('./types/TopBarSettings')
10
10
  const BrandSettings = require('./types/BrandSettings')
11
+ const DMCASetting = require('./types/DMCASetting')
12
+ const FooterSetting = require('./types/FooterSetting')
11
13
 
12
14
 
13
15
  const StoreSetting = new Schema({
@@ -73,6 +75,14 @@ const StoreSetting = new Schema({
73
75
  default: false,
74
76
  },
75
77
 
78
+ dmca: {
79
+ type: DMCASetting,
80
+ },
81
+
82
+ footer: {
83
+ type: FooterSetting,
84
+ },
85
+
76
86
  updated_at: {
77
87
  type: Date,
78
88
  default: Date.now
@@ -0,0 +1,18 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const DMCASetting = new Schema({
5
+ _id: false,
6
+
7
+ status: {
8
+ type: String,
9
+ trim: true
10
+ },
11
+
12
+ url: {
13
+ type: String,
14
+ trim: true,
15
+ }
16
+ })
17
+
18
+ module.exports = DMCASetting
@@ -0,0 +1,13 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const FooterSetting = new Schema({
5
+ _id: false,
6
+
7
+ text: {
8
+ type: String,
9
+ trim: true,
10
+ }
11
+ })
12
+
13
+ module.exports = FooterSetting