namirasoft-access 1.4.13 → 1.4.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/dist/NamirasoftAccessServerBase.js +1 -1
- package/dist/command/PermissionCreateCommand.js +10 -10
- package/dist/command/PermissionCreateCommand.js.map +1 -1
- package/dist/command/PermissionUpdateCommand.js +10 -10
- package/dist/command/PermissionUpdateCommand.js.map +1 -1
- package/dist/command/RoleCreateCommand.js +5 -5
- package/dist/command/RoleCreateCommand.js.map +1 -1
- package/dist/command/RoleUpdateCommand.js +5 -5
- package/dist/command/RoleUpdateCommand.js.map +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/index.js.map +1 -1
- package/dist/row/PermissionInputRow.d.ts +2 -4
- package/dist/row/RoleInputRow.d.ts +1 -2
- package/package.json +1 -1
- package/src/NamirasoftAccessServerBase.ts +1 -1
- package/src/command/PermissionCreateCommand.ts +10 -10
- package/src/command/PermissionUpdateCommand.ts +10 -10
- package/src/command/RoleCreateCommand.ts +5 -5
- package/src/command/RoleUpdateCommand.ts +5 -5
- package/src/index.ts +0 -3
- package/src/row/PermissionInputRow.ts +2 -5
- package/src/row/RoleInputRow.ts +1 -3
- package/dist/row/PermissionPolicyInputRow.d.ts +0 -3
- package/dist/row/PermissionPolicyInputRow.js +0 -3
- package/dist/row/PermissionPolicyInputRow.js.map +0 -1
- package/dist/row/PermissionRoleInputRow.d.ts +0 -3
- package/dist/row/PermissionRoleInputRow.js +0 -3
- package/dist/row/PermissionRoleInputRow.js.map +0 -1
- package/dist/row/RolePolicyInputRow.d.ts +0 -3
- package/dist/row/RolePolicyInputRow.js +0 -3
- package/dist/row/RolePolicyInputRow.js.map +0 -1
- package/src/row/PermissionPolicyInputRow.ts +0 -24
- package/src/row/PermissionRoleInputRow.ts +0 -24
- package/src/row/RolePolicyInputRow.ts +0 -24
|
@@ -4,7 +4,7 @@ exports.NamirasoftAccessServerBase = void 0;
|
|
|
4
4
|
const namirasoft_account_1 = require("namirasoft-account");
|
|
5
5
|
class NamirasoftAccessServerBase extends namirasoft_account_1.NamirasoftServerBase {
|
|
6
6
|
constructor(base_url, manager, onError) {
|
|
7
|
-
super(base_url, `1.4.
|
|
7
|
+
super(base_url, `1.4.14`, manager, onError);
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.NamirasoftAccessServerBase = NamirasoftAccessServerBase;
|
|
@@ -42,19 +42,19 @@ class PermissionCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
42
42
|
defaults: [""]
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
name: "
|
|
45
|
+
name: "policies",
|
|
46
46
|
short: "",
|
|
47
|
-
description: "Provides the value of '
|
|
48
|
-
optional:
|
|
49
|
-
args: ["
|
|
47
|
+
description: "Provides the value of 'policies' in body",
|
|
48
|
+
optional: false,
|
|
49
|
+
args: ["policies"],
|
|
50
50
|
defaults: [""]
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
name: "
|
|
53
|
+
name: "roles",
|
|
54
54
|
short: "",
|
|
55
|
-
description: "Provides the value of '
|
|
56
|
-
optional:
|
|
57
|
-
args: ["
|
|
55
|
+
description: "Provides the value of 'roles' in body",
|
|
56
|
+
optional: false,
|
|
57
|
+
args: ["roles"],
|
|
58
58
|
defaults: [""]
|
|
59
59
|
}
|
|
60
60
|
]);
|
|
@@ -73,8 +73,8 @@ class PermissionCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
73
73
|
firstName: this.option_values.firstName,
|
|
74
74
|
lastName: this.option_values.lastName,
|
|
75
75
|
email: this.option_values.email,
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
policies: this.option_values.policies,
|
|
77
|
+
roles: this.option_values.roles
|
|
78
78
|
});
|
|
79
79
|
this.app.logger.success(JSON.stringify(ans));
|
|
80
80
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionCreateCommand.js","sourceRoot":"","sources":["../../src/command/PermissionCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,sEAAmE;AACnE,2DAAkD;AAElD,MAAa,uBAAwB,SAAQ,sCAAgB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,2CAA2C;gBACxD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,WAAW,CAAC;gBACnB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,UAAU,CAAC;gBAClB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,OAAO,CAAC;gBACf,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"PermissionCreateCommand.js","sourceRoot":"","sources":["../../src/command/PermissionCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,sEAAmE;AACnE,2DAAkD;AAElD,MAAa,uBAAwB,SAAQ,sCAAgB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,2CAA2C;gBACxD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,WAAW,CAAC;gBACn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AAC,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;YAC3D,IAAI,MAAM,GAAG,IAAI,+CAAsB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC7F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC;gBACrC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,SAAS;gBACvC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACrC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;gBAC/B,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACrC,KAAK,EAAE,IAAI,CAAC,aAAa,CAAC,KAAK;aAClC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAlED,0DAkEC;AAAA,CAAC"}
|
|
@@ -42,19 +42,19 @@ class PermissionUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
42
42
|
defaults: [""]
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
name: "
|
|
45
|
+
name: "policies",
|
|
46
46
|
short: "",
|
|
47
|
-
description: "Provides the value of '
|
|
48
|
-
optional:
|
|
49
|
-
args: ["
|
|
47
|
+
description: "Provides the value of 'policies' in body",
|
|
48
|
+
optional: false,
|
|
49
|
+
args: ["policies"],
|
|
50
50
|
defaults: [""]
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
|
-
name: "
|
|
53
|
+
name: "roles",
|
|
54
54
|
short: "",
|
|
55
|
-
description: "Provides the value of '
|
|
56
|
-
optional:
|
|
57
|
-
args: ["
|
|
55
|
+
description: "Provides the value of 'roles' in body",
|
|
56
|
+
optional: false,
|
|
57
|
+
args: ["roles"],
|
|
58
58
|
defaults: [""]
|
|
59
59
|
}
|
|
60
60
|
]);
|
|
@@ -73,8 +73,8 @@ class PermissionUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
73
73
|
firstName: this.option_values.firstName,
|
|
74
74
|
lastName: this.option_values.lastName,
|
|
75
75
|
email: this.option_values.email,
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
policies: this.option_values.policies,
|
|
77
|
+
roles: this.option_values.roles
|
|
78
78
|
});
|
|
79
79
|
this.app.logger.success(JSON.stringify(ans));
|
|
80
80
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionUpdateCommand.js","sourceRoot":"","sources":["../../src/command/PermissionUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,sEAAmE;AACnE,2DAAkD;AAElD,MAAa,uBAAwB,SAAQ,sCAAgB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,2CAA2C;gBACxD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,WAAW,CAAC;gBACnB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,UAAU,CAAC;gBAClB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,OAAO,CAAC;gBACf,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"PermissionUpdateCommand.js","sourceRoot":"","sources":["../../src/command/PermissionUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,sEAAmE;AACnE,2DAAkD;AAElD,MAAa,uBAAwB,SAAQ,sCAAgB;IAEzD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,2CAA2C;gBACxD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,WAAW,CAAC;gBACnB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,UAAU,CAAC;gBAClB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,OAAO,CAAC;gBACf,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,0CAA0C;gBACvD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,UAAU,CAAC;gBAClB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,uCAAuC;gBACpD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,OAAO,CAAC;gBACf,QAA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,CAAC"}
|
|
@@ -34,11 +34,11 @@ class RoleCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
34
34
|
defaults: [""]
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
name: "
|
|
37
|
+
name: "policies",
|
|
38
38
|
short: "",
|
|
39
|
-
description: "Provides the value of '
|
|
40
|
-
optional:
|
|
41
|
-
args: ["
|
|
39
|
+
description: "Provides the value of 'policies' in body",
|
|
40
|
+
optional: false,
|
|
41
|
+
args: ["policies"],
|
|
42
42
|
defaults: [""]
|
|
43
43
|
}
|
|
44
44
|
]);
|
|
@@ -56,7 +56,7 @@ class RoleCreateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
56
56
|
let ans = yield server.role.Create({
|
|
57
57
|
name: this.option_values.name,
|
|
58
58
|
description: this.option_values.description,
|
|
59
|
-
|
|
59
|
+
policies: this.option_values.policies
|
|
60
60
|
});
|
|
61
61
|
this.app.logger.success(JSON.stringify(ans));
|
|
62
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleCreateCommand.js","sourceRoot":"","sources":["../../src/command/RoleCreateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,sEAAmE;AACnE,2DAAkD;AAElD,MAAa,iBAAkB,SAAQ,sCAAgB;IAEnD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,EAAE,EAAE;YACZ;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,MAAM,CAAC;gBACd,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,6CAA6C;gBAC1D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,a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C,CAAC,CAAC;YACnD,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YAC/B,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;YAC3D,IAAI,MAAM,GAAG,IAAI,+CAAsB,CAAC,GAAG,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC7F,IAAI,GAAG,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;gBAC/B,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;gBAC7B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;aACxC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAhDD,8CAgDC;AAAA,CAAC"}
|
|
@@ -34,11 +34,11 @@ class RoleUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
34
34
|
defaults: [""]
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
name: "
|
|
37
|
+
name: "policies",
|
|
38
38
|
short: "",
|
|
39
|
-
description: "Provides the value of '
|
|
40
|
-
optional:
|
|
41
|
-
args: ["
|
|
39
|
+
description: "Provides the value of 'policies' in body",
|
|
40
|
+
optional: false,
|
|
41
|
+
args: ["policies"],
|
|
42
42
|
defaults: [""]
|
|
43
43
|
}
|
|
44
44
|
]);
|
|
@@ -56,7 +56,7 @@ class RoleUpdateCommand extends namirasoft_node_cli_1.BaseFinalCommand {
|
|
|
56
56
|
let ans = yield server.role.Update(this.arg_values[0], {
|
|
57
57
|
name: this.option_values.name,
|
|
58
58
|
description: this.option_values.description,
|
|
59
|
-
|
|
59
|
+
policies: this.option_values.policies
|
|
60
60
|
});
|
|
61
61
|
this.app.logger.success(JSON.stringify(ans));
|
|
62
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoleUpdateCommand.js","sourceRoot":"","sources":["../../src/command/RoleUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,sEAAmE;AACnE,2DAAkD;AAElD,MAAa,iBAAkB,SAAQ,sCAAgB;IAEnD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,MAAM,CAAC;gBACd,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,aAAa;gBACnB,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,6CAA6C;gBAC1D,QAAQ,EAAE,KAAK;gBACf,IAAI,EAAE,CAAC,aAAa,CAAC;gBACrB,QAAQ,EAAE,CAAC,EAAE,CAAC;aACjB;YACD;gBACI,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"RoleUpdateCommand.js","sourceRoot":"","sources":["../../src/command/RoleUpdateCommand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAoBA,6DAAuD;AACvD,qDAAiD;AACjD,sEAAmE;AACnE,2DAAkD;AAElD,MAAa,iBAAkB,SAAQ,sCAAgB;IAEnD,YAAY,IAAc;QAEtB,KAAK,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE;YAChB;gBACI,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,EAAE;gBACT,WAAW,EAAE,sCAAsC;gBACnD,QAAQ,EAAE,KAAK;gBACf,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;gBACnD,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI;gBAC7B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC,WAAW;gBAC3C,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;aACxC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;QACjD,CAAC;KAAA;CACJ;AAhDD,8CAgDC;AAAA,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -128,8 +128,6 @@ export * from "./row/EntityTagInputRow";
|
|
|
128
128
|
export * from "./row/PermissionCategoryRow";
|
|
129
129
|
export * from "./row/PermissionFieldRow";
|
|
130
130
|
export * from "./row/PermissionInputRow";
|
|
131
|
-
export * from "./row/PermissionPolicyInputRow";
|
|
132
|
-
export * from "./row/PermissionRoleInputRow";
|
|
133
131
|
export * from "./row/PermissionRow";
|
|
134
132
|
export * from "./row/PermissionTagRow";
|
|
135
133
|
export * from "./row/PolicyCategoryRow";
|
|
@@ -141,6 +139,5 @@ export * from "./row/ProductRow";
|
|
|
141
139
|
export * from "./row/RoleCategoryRow";
|
|
142
140
|
export * from "./row/RoleFieldRow";
|
|
143
141
|
export * from "./row/RoleInputRow";
|
|
144
|
-
export * from "./row/RolePolicyInputRow";
|
|
145
142
|
export * from "./row/RoleRow";
|
|
146
143
|
export * from "./row/RoleTagRow";
|
package/dist/index.js
CHANGED
|
@@ -144,8 +144,6 @@ __exportStar(require("./row/EntityTagInputRow"), exports);
|
|
|
144
144
|
__exportStar(require("./row/PermissionCategoryRow"), exports);
|
|
145
145
|
__exportStar(require("./row/PermissionFieldRow"), exports);
|
|
146
146
|
__exportStar(require("./row/PermissionInputRow"), exports);
|
|
147
|
-
__exportStar(require("./row/PermissionPolicyInputRow"), exports);
|
|
148
|
-
__exportStar(require("./row/PermissionRoleInputRow"), exports);
|
|
149
147
|
__exportStar(require("./row/PermissionRow"), exports);
|
|
150
148
|
__exportStar(require("./row/PermissionTagRow"), exports);
|
|
151
149
|
__exportStar(require("./row/PolicyCategoryRow"), exports);
|
|
@@ -157,7 +155,6 @@ __exportStar(require("./row/ProductRow"), exports);
|
|
|
157
155
|
__exportStar(require("./row/RoleCategoryRow"), exports);
|
|
158
156
|
__exportStar(require("./row/RoleFieldRow"), exports);
|
|
159
157
|
__exportStar(require("./row/RoleInputRow"), exports);
|
|
160
|
-
__exportStar(require("./row/RolePolicyInputRow"), exports);
|
|
161
158
|
__exportStar(require("./row/RoleRow"), exports);
|
|
162
159
|
__exportStar(require("./row/RoleTagRow"), exports);
|
|
163
160
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,kDAAgC;AAChC,2DAAyC;AACzC,iEAA+C;AAC/C,+DAA6C;AAC7C,kEAAgD;AAChD,qEAAmD;AACnD,6EAA2D;AAC3D,0EAAwD;AACxD,wEAAsD;AACtD,iEAA+C;AAC/C,yEAAuD;AACvD,sEAAoD;AACpD,oEAAkD;AAClD,kEAAgD;AAChD,+DAA6C;AAC7C,uEAAqD;AACrD,oEAAkD;AAClD,kEAAgD;AAChD,mEAAiD;AACjD,gEAA8C;AAC9C,0DAAwC;AACxC,6DAA2C;AAC3C,kEAAgD;AAChD,2DAAyC;AACzC,8DAA4C;AAC5C,sEAAoD;AACpD,4EAA0D;AAC1D,4EAA0D;AAC1D,yEAAuD;AACvD,0EAAwD;AACxD,8DAA4C;AAC5C,oEAAkD;AAClD,oEAAkD;AAClD,mEAAiD;AACjD,yEAAuD;AACvD,yEAAuD;AACvD,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,iEAA+C;AAC/C,yEAAuD;AACvD,yEAAuD;AACvD,kEAAgD;AAChD,0EAAwD;AACxD,0EAAwD;AACxD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DAA4C;AAC5C,2DAAyC;AACzC,2DAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAoBA,kDAAgC;AAChC,2DAAyC;AACzC,iEAA+C;AAC/C,+DAA6C;AAC7C,kEAAgD;AAChD,qEAAmD;AACnD,6EAA2D;AAC3D,0EAAwD;AACxD,wEAAsD;AACtD,iEAA+C;AAC/C,yEAAuD;AACvD,sEAAoD;AACpD,oEAAkD;AAClD,kEAAgD;AAChD,+DAA6C;AAC7C,uEAAqD;AACrD,oEAAkD;AAClD,kEAAgD;AAChD,mEAAiD;AACjD,gEAA8C;AAC9C,0DAAwC;AACxC,6DAA2C;AAC3C,kEAAgD;AAChD,2DAAyC;AACzC,8DAA4C;AAC5C,sEAAoD;AACpD,4EAA0D;AAC1D,4EAA0D;AAC1D,yEAAuD;AACvD,0EAAwD;AACxD,8DAA4C;AAC5C,oEAAkD;AAClD,oEAAkD;AAClD,mEAAiD;AACjD,yEAAuD;AACvD,yEAAuD;AACvD,sEAAoD;AACpD,uEAAqD;AACrD,yEAAuD;AACvD,iEAA+C;AAC/C,yEAAuD;AACvD,yEAAuD;AACvD,kEAAgD;AAChD,0EAAwD;AACxD,0EAAwD;AACxD,iEAA+C;AAC/C,uEAAqD;AACrD,uEAAqD;AACrD,oEAAkD;AAClD,qEAAmD;AACnD,uEAAqD;AACrD,oEAAkD;AAClD,kEAAgD;AAChD,wEAAsD;AACtD,wEAAsD;AACtD,qEAAmD;AACnD,sEAAoD;AACpD,0DAAwC;AACxC,gEAA8C;AAC9C,gEAA8C;AAC9C,+DAA6C;AAC7C,qEAAmD;AACnD,qEAAmD;AACnD,kEAAgD;AAChD,mEAAiD;AACjD,qEAAmD;AACnD,6DAA2C;AAC3C,qEAAmD;AACnD,8DAA4C;AAC5C,sEAAoD;AACpD,6DAA2C;AAC3C,mEAAiD;AACjD,mEAAiD;AACjD,gEAA8C;AAC9C,iEAA+C;AAC/C,mEAAiD;AACjD,gEAA8C;AAC9C,2DAAyC;AACzC,8DAA4C;AAC5C,+DAA6C;AAC7C,8DAA4C;AAC5C,gEAA8C;AAC9C,sEAAoD;AACpD,sEAAoD;AACpD,mEAAiD;AACjD,oEAAkD;AAClD,wDAAsC;AACtC,8DAA4C;AAC5C,8DAA4C;AAC5C,6DAA2C;AAC3C,mEAAiD;AACjD,mEAAiD;AACjD,gEAA8C;AAC9C,iEAA+C;AAC/C,mEAAiD;AACjD,2DAAyC;AACzC,mEAAiD;AACjD,4DAA0C;AAC1C,oEAAkD;AAClD,2DAAyC;AACzC,iEAA+C;AAC/C,iEAA+C;AAC/C,8DAA4C;AAC5C,+DAA6C;AAC7C,iEAA+C;AAC/C,8DAA4C;AAC5C,4DAA0C;AAC1C,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,sDAAoC;AACpC,qEAAmD;AACnD,kEAAgD;AAChD,6DAA2C;AAC3C,gEAA8C;AAC9C,iEAA+C;AAC/C,8DAA4C;AAC5C,yDAAuC;AACvC,4DAA0C;AAC1C,+DAA6C;AAC7C,4DAA0C;AAC1C,uDAAqC;AACrC,0DAAwC;AACxC,kDAAgC;AAChC,+DAA6C;AAC7C,4DAA0C;AAC1C,0DAAwC;AACxC,8DAA4C;AAC5C,2DAAyC;AACzC,2DAAyC;AACzC,sDAAoC;AACpC,yDAAuC;AACvC,0DAAwC;AACxC,uDAAqC;AACrC,uDAAqC;AACrC,kDAAgC;AAChC,qDAAmC;AACnC,mDAAiC;AACjC,wDAAsC;AACtC,qDAAmC;AACnC,qDAAmC;AACnC,gDAA8B;AAC9B,mDAAiC"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { PermissionPolicyInputRow } from "./PermissionPolicyInputRow";
|
|
2
|
-
import { PermissionRoleInputRow } from "./PermissionRoleInputRow";
|
|
3
1
|
export type PermissionInputRow = {
|
|
4
2
|
firstName: string;
|
|
5
3
|
lastName: string;
|
|
6
4
|
email: string;
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
policies: (string | null)[];
|
|
6
|
+
roles: (string | null)[];
|
|
9
7
|
};
|
package/package.json
CHANGED
|
@@ -25,6 +25,6 @@ export class NamirasoftAccessServerBase extends NamirasoftServerBase
|
|
|
25
25
|
{
|
|
26
26
|
constructor(base_url: string, manager: TokenManager, onError: (error: Error) => void)
|
|
27
27
|
{
|
|
28
|
-
super(base_url, `1.4.
|
|
28
|
+
super(base_url, `1.4.14`, manager, onError);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
@@ -53,19 +53,19 @@ export class PermissionCreateCommand extends BaseFinalCommand
|
|
|
53
53
|
defaults: [""]
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
name: "
|
|
56
|
+
name: "policies",
|
|
57
57
|
short: "",
|
|
58
|
-
description: "Provides the value of '
|
|
59
|
-
optional:
|
|
60
|
-
args: ["
|
|
58
|
+
description: "Provides the value of 'policies' in body",
|
|
59
|
+
optional: false,
|
|
60
|
+
args: ["policies"],
|
|
61
61
|
defaults: [""]
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
name: "
|
|
64
|
+
name: "roles",
|
|
65
65
|
short: "",
|
|
66
|
-
description: "Provides the value of '
|
|
67
|
-
optional:
|
|
68
|
-
args: ["
|
|
66
|
+
description: "Provides the value of 'roles' in body",
|
|
67
|
+
optional: false,
|
|
68
|
+
args: ["roles"],
|
|
69
69
|
defaults: [""]
|
|
70
70
|
}
|
|
71
71
|
]);
|
|
@@ -84,8 +84,8 @@ export class PermissionCreateCommand extends BaseFinalCommand
|
|
|
84
84
|
firstName: this.option_values.firstName,
|
|
85
85
|
lastName: this.option_values.lastName,
|
|
86
86
|
email: this.option_values.email,
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
policies: this.option_values.policies,
|
|
88
|
+
roles: this.option_values.roles
|
|
89
89
|
});
|
|
90
90
|
this.app.logger.success(JSON.stringify(ans));
|
|
91
91
|
}
|
|
@@ -53,19 +53,19 @@ export class PermissionUpdateCommand extends BaseFinalCommand
|
|
|
53
53
|
defaults: [""]
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
name: "
|
|
56
|
+
name: "policies",
|
|
57
57
|
short: "",
|
|
58
|
-
description: "Provides the value of '
|
|
59
|
-
optional:
|
|
60
|
-
args: ["
|
|
58
|
+
description: "Provides the value of 'policies' in body",
|
|
59
|
+
optional: false,
|
|
60
|
+
args: ["policies"],
|
|
61
61
|
defaults: [""]
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
name: "
|
|
64
|
+
name: "roles",
|
|
65
65
|
short: "",
|
|
66
|
-
description: "Provides the value of '
|
|
67
|
-
optional:
|
|
68
|
-
args: ["
|
|
66
|
+
description: "Provides the value of 'roles' in body",
|
|
67
|
+
optional: false,
|
|
68
|
+
args: ["roles"],
|
|
69
69
|
defaults: [""]
|
|
70
70
|
}
|
|
71
71
|
]);
|
|
@@ -84,8 +84,8 @@ export class PermissionUpdateCommand extends BaseFinalCommand
|
|
|
84
84
|
firstName: this.option_values.firstName,
|
|
85
85
|
lastName: this.option_values.lastName,
|
|
86
86
|
email: this.option_values.email,
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
policies: this.option_values.policies,
|
|
88
|
+
roles: this.option_values.roles
|
|
89
89
|
});
|
|
90
90
|
this.app.logger.success(JSON.stringify(ans));
|
|
91
91
|
}
|
|
@@ -45,11 +45,11 @@ export class RoleCreateCommand extends BaseFinalCommand
|
|
|
45
45
|
defaults: [""]
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
name: "
|
|
48
|
+
name: "policies",
|
|
49
49
|
short: "",
|
|
50
|
-
description: "Provides the value of '
|
|
51
|
-
optional:
|
|
52
|
-
args: ["
|
|
50
|
+
description: "Provides the value of 'policies' in body",
|
|
51
|
+
optional: false,
|
|
52
|
+
args: ["policies"],
|
|
53
53
|
defaults: [""]
|
|
54
54
|
}
|
|
55
55
|
]);
|
|
@@ -67,7 +67,7 @@ export class RoleCreateCommand extends BaseFinalCommand
|
|
|
67
67
|
let ans = await server.role.Create({
|
|
68
68
|
name: this.option_values.name,
|
|
69
69
|
description: this.option_values.description,
|
|
70
|
-
|
|
70
|
+
policies: this.option_values.policies
|
|
71
71
|
});
|
|
72
72
|
this.app.logger.success(JSON.stringify(ans));
|
|
73
73
|
}
|
|
@@ -45,11 +45,11 @@ export class RoleUpdateCommand extends BaseFinalCommand
|
|
|
45
45
|
defaults: [""]
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
name: "
|
|
48
|
+
name: "policies",
|
|
49
49
|
short: "",
|
|
50
|
-
description: "Provides the value of '
|
|
51
|
-
optional:
|
|
52
|
-
args: ["
|
|
50
|
+
description: "Provides the value of 'policies' in body",
|
|
51
|
+
optional: false,
|
|
52
|
+
args: ["policies"],
|
|
53
53
|
defaults: [""]
|
|
54
54
|
}
|
|
55
55
|
]);
|
|
@@ -67,7 +67,7 @@ export class RoleUpdateCommand extends BaseFinalCommand
|
|
|
67
67
|
let ans = await server.role.Update(this.arg_values[0], {
|
|
68
68
|
name: this.option_values.name,
|
|
69
69
|
description: this.option_values.description,
|
|
70
|
-
|
|
70
|
+
policies: this.option_values.policies
|
|
71
71
|
});
|
|
72
72
|
this.app.logger.success(JSON.stringify(ans));
|
|
73
73
|
}
|
package/src/index.ts
CHANGED
|
@@ -148,8 +148,6 @@ export * from "./row/EntityTagInputRow";
|
|
|
148
148
|
export * from "./row/PermissionCategoryRow";
|
|
149
149
|
export * from "./row/PermissionFieldRow";
|
|
150
150
|
export * from "./row/PermissionInputRow";
|
|
151
|
-
export * from "./row/PermissionPolicyInputRow";
|
|
152
|
-
export * from "./row/PermissionRoleInputRow";
|
|
153
151
|
export * from "./row/PermissionRow";
|
|
154
152
|
export * from "./row/PermissionTagRow";
|
|
155
153
|
export * from "./row/PolicyCategoryRow";
|
|
@@ -161,6 +159,5 @@ export * from "./row/ProductRow";
|
|
|
161
159
|
export * from "./row/RoleCategoryRow";
|
|
162
160
|
export * from "./row/RoleFieldRow";
|
|
163
161
|
export * from "./row/RoleInputRow";
|
|
164
|
-
export * from "./row/RolePolicyInputRow";
|
|
165
162
|
export * from "./row/RoleRow";
|
|
166
163
|
export * from "./row/RoleTagRow";
|
|
@@ -18,14 +18,11 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import { PermissionPolicyInputRow } from "./PermissionPolicyInputRow";
|
|
22
|
-
import { PermissionRoleInputRow } from "./PermissionRoleInputRow";
|
|
23
|
-
|
|
24
21
|
export type PermissionInputRow =
|
|
25
22
|
{
|
|
26
23
|
firstName: string;
|
|
27
24
|
lastName: string;
|
|
28
25
|
email: string;
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
policies: (string | null)[];
|
|
27
|
+
roles: (string | null)[];
|
|
31
28
|
}
|
package/src/row/RoleInputRow.ts
CHANGED
|
@@ -18,11 +18,9 @@
|
|
|
18
18
|
/* */
|
|
19
19
|
/****************************************************************/
|
|
20
20
|
|
|
21
|
-
import { RolePolicyInputRow } from "./RolePolicyInputRow";
|
|
22
|
-
|
|
23
21
|
export type RoleInputRow =
|
|
24
22
|
{
|
|
25
23
|
name: string;
|
|
26
24
|
description: string;
|
|
27
|
-
|
|
25
|
+
policies: (string | null)[];
|
|
28
26
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionPolicyInputRow.js","sourceRoot":"","sources":["../../src/row/PermissionPolicyInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PermissionRoleInputRow.js","sourceRoot":"","sources":["../../src/row/PermissionRoleInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RolePolicyInputRow.js","sourceRoot":"","sources":["../../src/row/RolePolicyInputRow.ts"],"names":[],"mappings":""}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export type PermissionPolicyInputRow =
|
|
22
|
-
{
|
|
23
|
-
policy_id: (string | null);
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export type PermissionRoleInputRow =
|
|
22
|
-
{
|
|
23
|
-
role_id: (string | null);
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/****************************************************************/
|
|
2
|
-
/* */
|
|
3
|
-
/* This is an Auto-Generated File */
|
|
4
|
-
/* Made By */
|
|
5
|
-
/* Namirasoft SDK Generator NPM Package */
|
|
6
|
-
/* */
|
|
7
|
-
/****************************************************************/
|
|
8
|
-
/****************************************************************/
|
|
9
|
-
/* */
|
|
10
|
-
/* Please do not make any change to this file */
|
|
11
|
-
/* If any changed is reqired, ns-sdkg command must be used */
|
|
12
|
-
/* */
|
|
13
|
-
/****************************************************************/
|
|
14
|
-
/****************************************************************/
|
|
15
|
-
/* */
|
|
16
|
-
/* Namira Software Corporation */
|
|
17
|
-
/* https://namirasoft.com */
|
|
18
|
-
/* */
|
|
19
|
-
/****************************************************************/
|
|
20
|
-
|
|
21
|
-
export type RolePolicyInputRow =
|
|
22
|
-
{
|
|
23
|
-
policy_id: (string | null);
|
|
24
|
-
}
|