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.
- package/models/AdAccount.js +4 -0
- package/models/Users.js +10 -0
- package/package.json +1 -1
package/models/AdAccount.js
CHANGED
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,
|