agrs-sequelize-sdk 1.4.28 → 1.4.30

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.
@@ -43,6 +43,10 @@ module.exports = (sequelize, DataTypes) => {
43
43
  type: DataTypes.STRING,
44
44
  allowNull: true,
45
45
  },
46
+ BusinessManagerName: {
47
+ type: DataTypes.STRING,
48
+ allowNull: true,
49
+ },
46
50
  Reporting: {
47
51
  type: DataTypes.BOOLEAN,
48
52
  defaultValue: true,
package/models/Users.js CHANGED
@@ -40,6 +40,16 @@ module.exports = (sequelize, DataTypes) => {
40
40
  allowNull: true,
41
41
  defaultValue: [],
42
42
  },
43
+ // Public API token scope preference. Admin sets it on the User
44
+ // Management screen (Features → API & Docs → Read / Read & Write).
45
+ // The token-issue route reads this when a user mints/regenerates so
46
+ // the new token gets the admin-granted scope, without polluting the
47
+ // Features array.
48
+ api_scope: {
49
+ type: DataTypes.STRING,
50
+ allowNull: false,
51
+ defaultValue: "read",
52
+ },
43
53
  Accounts: {
44
54
  type: DataTypes.ARRAY(DataTypes.STRING), // Array of account IDs
45
55
  allowNull: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agrs-sequelize-sdk",
3
- "version": "1.4.28",
3
+ "version": "1.4.30",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "start": "node index.js",