@dhyasama/totem-models 12.23.0 → 12.24.0

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/lib/Account.js CHANGED
@@ -77,6 +77,14 @@ module.exports = function(mongoose, config) {
77
77
  sendSystemEmails: { type: Boolean, default: false },
78
78
  },
79
79
 
80
+ // Granola native REST API integration. Keys are per-user, so they live on
81
+ // the account: when active, webhooks polls this user's Granola notes using
82
+ // apiKey (see webhooks/src/granola). Opt-in — only synced when a key is set.
83
+ granola: {
84
+ active: { type: Boolean, default: false },
85
+ apiKey: { type: String, trim: true, default: '' }
86
+ },
87
+
80
88
  summary: {
81
89
  active: { type: Boolean, default: false }
82
90
  }
@@ -225,13 +225,6 @@ module.exports = function(mongoose, config) {
225
225
  active: { type: Boolean, default: false }
226
226
  },
227
227
 
228
- // Granola native REST API integration. When active, webhooks polls this
229
- // customer's Granola notes using apiKey (see webhooks/src/granola).
230
- granola: {
231
- active: { type: Boolean, default: false },
232
- apiKey: { type: String, trim: true }
233
- },
234
-
235
228
  sheet: {
236
229
  id: { type: String, trim: true, unique: true, partialFilterExpression : { type :"string" } },
237
230
  format: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhyasama/totem-models",
3
- "version": "12.23.0",
3
+ "version": "12.24.0",
4
4
  "author": "Jason Reynolds",
5
5
  "license": "UNLICENSED",
6
6
  "description": "Models for Totem platform",