@pintahub/database-schemas 2.7.7 → 2.7.9

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": "2.7.7",
3
+ "version": "2.7.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -84,6 +84,11 @@ const ProductFeature = new Schema({
84
84
  trim: true,
85
85
  },
86
86
 
87
+ google_product_category: {
88
+ type: String,
89
+ trim: true,
90
+ },
91
+
87
92
  reviews_count: {
88
93
  type: Number,
89
94
  default: 0,
@@ -1,79 +1,11 @@
1
1
  const {Schema} = require('mongoose')
2
2
  const ImageObject = require('./ImageObject')
3
+ const TrustpilotObject= require('./types/TrustpilotObject')
4
+ const SocialsObject= require('./types/SocialsObject')
5
+ const MerchizeSettings= require('./types/MerchizeSettings')
6
+ const GoogleAnalytics= require('./types/GoogleAnalytics')
3
7
 
4
8
 
5
- const TrustpilotObject = new Schema({
6
- _id: false,
7
-
8
- business_unit_id: {
9
- type: String,
10
- trim: true,
11
- },
12
-
13
- template_id: {
14
- type: String,
15
- trim: true,
16
- },
17
-
18
- url: {
19
- type: String,
20
- trim: true,
21
- },
22
- })
23
-
24
- const SocialsObject = new Schema({
25
- _id: false,
26
-
27
- facebook: {
28
- type: String,
29
- trim: true,
30
- },
31
-
32
- twitter: {
33
- type: String,
34
- trim: true,
35
- },
36
-
37
- instagram: {
38
- type: String,
39
- trim: true,
40
- },
41
-
42
- pinterest: {
43
- type: String,
44
- trim: true,
45
- },
46
-
47
- youtube: {
48
- type: String,
49
- trim: true,
50
- },
51
-
52
- linkedin: {
53
- type: String,
54
- trim: true,
55
- },
56
-
57
- tiktok: {
58
- type: String,
59
- trim: true,
60
- },
61
- })
62
-
63
- const MerchizeSettings = new Schema({
64
- _id: false,
65
-
66
- base_url: {
67
- type: String,
68
- trim: true,
69
- },
70
-
71
- access_token: {
72
- type: String,
73
- trim: true,
74
- },
75
- })
76
-
77
9
  const StoreSetting = new Schema({
78
10
  store: {
79
11
  type: Schema.Types.ObjectId,
@@ -107,6 +39,10 @@ const StoreSetting = new Schema({
107
39
  type: MerchizeSettings,
108
40
  },
109
41
 
42
+ google_analytics: {
43
+ type: GoogleAnalytics,
44
+ },
45
+
110
46
  updated_at: {
111
47
  type: Date,
112
48
  default: Date.now
@@ -0,0 +1,13 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const GoogleAnalytics = new Schema({
5
+ _id: false,
6
+
7
+ measurement_id: {
8
+ type: String,
9
+ trim: true,
10
+ },
11
+ })
12
+
13
+ module.exports = GoogleAnalytics
@@ -0,0 +1,18 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const MerchizeSettings = new Schema({
5
+ _id: false,
6
+
7
+ base_url: {
8
+ type: String,
9
+ trim: true,
10
+ },
11
+
12
+ access_token: {
13
+ type: String,
14
+ trim: true,
15
+ },
16
+ })
17
+
18
+ module.exports = MerchizeSettings
@@ -0,0 +1,43 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const SocialsObject = new Schema({
5
+ _id: false,
6
+
7
+ facebook: {
8
+ type: String,
9
+ trim: true,
10
+ },
11
+
12
+ twitter: {
13
+ type: String,
14
+ trim: true,
15
+ },
16
+
17
+ instagram: {
18
+ type: String,
19
+ trim: true,
20
+ },
21
+
22
+ pinterest: {
23
+ type: String,
24
+ trim: true,
25
+ },
26
+
27
+ youtube: {
28
+ type: String,
29
+ trim: true,
30
+ },
31
+
32
+ linkedin: {
33
+ type: String,
34
+ trim: true,
35
+ },
36
+
37
+ tiktok: {
38
+ type: String,
39
+ trim: true,
40
+ },
41
+ })
42
+
43
+ module.exports = SocialsObject
@@ -0,0 +1,23 @@
1
+ const {Schema} = require('mongoose')
2
+
3
+
4
+ const TrustpilotObject = new Schema({
5
+ _id: false,
6
+
7
+ business_unit_id: {
8
+ type: String,
9
+ trim: true,
10
+ },
11
+
12
+ template_id: {
13
+ type: String,
14
+ trim: true,
15
+ },
16
+
17
+ url: {
18
+ type: String,
19
+ trim: true,
20
+ },
21
+ })
22
+
23
+ module.exports = TrustpilotObject