shuttlepro-shared 1.1.13 → 1.1.14
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/models/GoogleClientInfo.js +17 -0
- package/models/GoogleCredentials.js +22 -0
- package/models.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
const { Schema } = mongoose;
|
|
3
|
+
const GoogleClientSchema = new Schema(
|
|
4
|
+
{
|
|
5
|
+
clientId: { type: String, default: "" },
|
|
6
|
+
clientSecret: { type: String, default: "" },
|
|
7
|
+
businessEmail: { type: String, default: "" },
|
|
8
|
+
mailerPassword: { type: String, default: "" },
|
|
9
|
+
workspaceLogo: { type: String, default: "" },
|
|
10
|
+
projectId: { type: String, default: "" },
|
|
11
|
+
topicName: { type: String, default: "" },
|
|
12
|
+
workspaceId: { type: String, default: "" },
|
|
13
|
+
},
|
|
14
|
+
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
15
|
+
);
|
|
16
|
+
const GoogleClientInfo = mongoose.model("GoogleClientInfo", GoogleClientSchema);
|
|
17
|
+
module.exports = GoogleClientInfo;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const mongoose = require("mongoose");
|
|
2
|
+
const { Schema } = mongoose;
|
|
3
|
+
const GoogleCredentialsSchema = new Schema(
|
|
4
|
+
{
|
|
5
|
+
access_token: { type: String, default: "" },
|
|
6
|
+
refresh_token: { type: String, default: "" },
|
|
7
|
+
scope: [String],
|
|
8
|
+
token_type: { type: String, default: "" },
|
|
9
|
+
expiry_date: { type: String, default: "" },
|
|
10
|
+
name: { type: String, default: "email" },
|
|
11
|
+
workspaceId: { type: String, default: "" },
|
|
12
|
+
topicName: { type: String, default: "" },
|
|
13
|
+
email: { type: String, default: "" },
|
|
14
|
+
isDeleted: { type: Boolean, default: false },
|
|
15
|
+
},
|
|
16
|
+
{ timestamps: true, toJSON: { virtuals: true }, toObject: { virtuals: true } }
|
|
17
|
+
);
|
|
18
|
+
const GoogleCredential = mongoose.model(
|
|
19
|
+
"GoogleCredential",
|
|
20
|
+
GoogleCredentialsSchema
|
|
21
|
+
);
|
|
22
|
+
module.exports = GoogleCredential;
|
package/models.js
CHANGED
|
@@ -2,6 +2,8 @@ const Website = require("./models/Website");
|
|
|
2
2
|
const ProductQueue = require("./models/ProductQueue");
|
|
3
3
|
const ColumnPreference = require("./models/ColumnPreference");
|
|
4
4
|
const UserPermission = require("./models/UserPermission");
|
|
5
|
+
const GoogleClientInfo = require("./models/GoogleClientInfo");
|
|
6
|
+
const GoogleCredentials = require("./models/GoogleCredentials");
|
|
5
7
|
const User = require("./models/User");
|
|
6
8
|
|
|
7
9
|
module.exports = {
|
|
@@ -10,4 +12,6 @@ module.exports = {
|
|
|
10
12
|
ColumnPreference,
|
|
11
13
|
UserPermission,
|
|
12
14
|
User,
|
|
15
|
+
GoogleClientInfo,
|
|
16
|
+
GoogleCredentials,
|
|
13
17
|
};
|