cloud-ide-lms-model 1.0.286 → 1.0.287
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/model/core/core_entity_access_pass_management.d.ts +51 -43
- package/lib/model/core/core_entity_access_pass_management.js +57 -8
- package/lib/schema/core/core_entity_access_pass_management.d.ts +14 -0
- package/lib/schema/core/core_entity_access_pass_management.js +9 -0
- package/package.json +1 -1
|
@@ -1,45 +1,53 @@
|
|
|
1
|
+
import { CoreEntityAccessPassManagement } from "../../schema/core/core_entity_access_pass_management";
|
|
1
2
|
import { controllerResponse } from "../../utilities";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export declare class MEntityAccessPassManagement {
|
|
19
|
-
_id?: string;
|
|
20
|
-
syepm_user_id_user?: string;
|
|
21
|
-
syepm_entity_id_syen?: string;
|
|
22
|
-
syepm_access_passs_to?: string;
|
|
23
|
-
syepm_ownership_status?: string;
|
|
24
|
-
syepm_isactive?: boolean;
|
|
25
|
-
syepm_actions_allowed?: {
|
|
26
|
-
can_edit: {
|
|
27
|
-
status: boolean;
|
|
28
|
-
};
|
|
29
|
-
can_view: {
|
|
30
|
-
status: boolean;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
constructor(init: IEntityAccessPassManagement);
|
|
34
|
-
Validate?(): Partial<Record<keyof IEntityAccessPassManagement, string>>;
|
|
35
|
-
}
|
|
36
|
-
export interface EntityAccessControllerResponse extends controllerResponse {
|
|
37
|
-
data?: {
|
|
38
|
-
entity_access: IEntityAccessPassManagement[];
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
export interface EntityAccessSingleControllerResponse extends controllerResponse {
|
|
42
|
-
data?: {
|
|
43
|
-
entity_access: IEntityAccessPassManagement;
|
|
44
|
-
};
|
|
3
|
+
type IMCoreEntityAccessPassManagementInsertUpdateErrorLogger = {
|
|
4
|
+
[key in keyof MCoreEntityAccessPassManagementInsertUpdate]: string;
|
|
5
|
+
};
|
|
6
|
+
type ICoreEntityAccessPassManagementGetByIdErrorLogger = {
|
|
7
|
+
[key in keyof MCoreEntityAccessPassManagementGetByIdPayload]: string;
|
|
8
|
+
};
|
|
9
|
+
type ICoreEntityAccessPassManagementDeleteErrorLogger = {
|
|
10
|
+
[key in keyof MCoreEntityAccessPassManagementDeletePayload]: string;
|
|
11
|
+
};
|
|
12
|
+
type ICoreEntityAccessPassManagementToggleStatusErrorLogger = {
|
|
13
|
+
[key in keyof MCoreEntityAccessPassManagementToggleStatusPayload]: string;
|
|
14
|
+
};
|
|
15
|
+
declare class MCoreEntityAccessPassManagementInsertUpdate extends CoreEntityAccessPassManagement {
|
|
16
|
+
core_entity_access_pass_management?: string;
|
|
17
|
+
constructor(init: MCoreEntityAccessPassManagementInsertUpdate);
|
|
18
|
+
Validate?(): Partial<IMCoreEntityAccessPassManagementInsertUpdateErrorLogger>;
|
|
45
19
|
}
|
|
20
|
+
declare class MCoreEntityAccessPassManagementGetByIdPayload {
|
|
21
|
+
syepm_id?: string;
|
|
22
|
+
core_entity_access_pass_management?: string;
|
|
23
|
+
constructor(init: MCoreEntityAccessPassManagementGetByIdPayload);
|
|
24
|
+
Validate?(): Partial<ICoreEntityAccessPassManagementGetByIdErrorLogger>;
|
|
25
|
+
}
|
|
26
|
+
declare class MCoreEntityAccessPassManagementDeletePayload {
|
|
27
|
+
syepm_id?: string;
|
|
28
|
+
core_entity_access_pass_management?: string;
|
|
29
|
+
constructor(init: MCoreEntityAccessPassManagementDeletePayload);
|
|
30
|
+
Validate?(): Partial<ICoreEntityAccessPassManagementDeleteErrorLogger>;
|
|
31
|
+
}
|
|
32
|
+
declare class MCoreEntityAccessPassManagementToggleStatusPayload {
|
|
33
|
+
syepm_id?: string;
|
|
34
|
+
core_entity_access_pass_management?: string;
|
|
35
|
+
constructor(init: MCoreEntityAccessPassManagementToggleStatusPayload);
|
|
36
|
+
Validate?(): Partial<ICoreEntityAccessPassManagementToggleStatusErrorLogger>;
|
|
37
|
+
}
|
|
38
|
+
interface CoreEntityAccessPassManagementControllerResponse extends controllerResponse {
|
|
39
|
+
data?: CoreEntityAccessPassManagement[];
|
|
40
|
+
}
|
|
41
|
+
interface CoreEntityAccessPassManagementByIdControllerResponse extends controllerResponse {
|
|
42
|
+
data?: CoreEntityAccessPassManagement;
|
|
43
|
+
}
|
|
44
|
+
interface CoreEntityAccessPassManagementInsertUpdateControllerResponse extends controllerResponse {
|
|
45
|
+
data?: CoreEntityAccessPassManagement;
|
|
46
|
+
}
|
|
47
|
+
interface CoreEntityAccessPassManagementDeleteControllerResponse extends controllerResponse {
|
|
48
|
+
data?: boolean;
|
|
49
|
+
}
|
|
50
|
+
interface CoreEntityAccessPassManagementToggleStatusControllerResponse extends controllerResponse {
|
|
51
|
+
data?: boolean;
|
|
52
|
+
}
|
|
53
|
+
export { ICoreEntityAccessPassManagementGetByIdErrorLogger, ICoreEntityAccessPassManagementDeleteErrorLogger, IMCoreEntityAccessPassManagementInsertUpdateErrorLogger, ICoreEntityAccessPassManagementToggleStatusErrorLogger, MCoreEntityAccessPassManagementGetByIdPayload, MCoreEntityAccessPassManagementDeletePayload, MCoreEntityAccessPassManagementInsertUpdate, CoreEntityAccessPassManagementControllerResponse, CoreEntityAccessPassManagementByIdControllerResponse, CoreEntityAccessPassManagementInsertUpdateControllerResponse, CoreEntityAccessPassManagementDeleteControllerResponse, CoreEntityAccessPassManagementToggleStatusControllerResponse, MCoreEntityAccessPassManagementToggleStatusPayload };
|
|
@@ -1,22 +1,71 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.MCoreEntityAccessPassManagementToggleStatusPayload = exports.MCoreEntityAccessPassManagementInsertUpdate = exports.MCoreEntityAccessPassManagementDeletePayload = exports.MCoreEntityAccessPassManagementGetByIdPayload = void 0;
|
|
4
|
+
const core_entity_access_pass_management_1 = require("../../schema/core/core_entity_access_pass_management");
|
|
4
5
|
/* INTERFACE END */
|
|
5
6
|
/* MODEL START */
|
|
6
|
-
//
|
|
7
|
-
class
|
|
7
|
+
// Save Update Payload
|
|
8
|
+
class MCoreEntityAccessPassManagementInsertUpdate extends core_entity_access_pass_management_1.CoreEntityAccessPassManagement {
|
|
8
9
|
constructor(init) {
|
|
10
|
+
super();
|
|
9
11
|
Object.assign(this, init);
|
|
10
12
|
}
|
|
11
13
|
Validate() {
|
|
12
14
|
let errorLogger = {};
|
|
13
|
-
if (!this.
|
|
14
|
-
errorLogger.
|
|
15
|
+
if (!this.core_entity_access_pass_management) {
|
|
16
|
+
errorLogger.core_entity_access_pass_management = "Table Name Required!";
|
|
15
17
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
return errorLogger;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.MCoreEntityAccessPassManagementInsertUpdate = MCoreEntityAccessPassManagementInsertUpdate;
|
|
22
|
+
// Get by id payload
|
|
23
|
+
class MCoreEntityAccessPassManagementGetByIdPayload {
|
|
24
|
+
constructor(init) {
|
|
25
|
+
Object.assign(this, init);
|
|
26
|
+
}
|
|
27
|
+
Validate() {
|
|
28
|
+
let errorLogger = {};
|
|
29
|
+
if (!this.syepm_id) {
|
|
30
|
+
errorLogger.syepm_id = "ID is Required!";
|
|
31
|
+
}
|
|
32
|
+
if (!this.core_entity_access_pass_management) {
|
|
33
|
+
errorLogger.core_entity_access_pass_management = "Table Name Required!";
|
|
34
|
+
}
|
|
35
|
+
return errorLogger;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.MCoreEntityAccessPassManagementGetByIdPayload = MCoreEntityAccessPassManagementGetByIdPayload;
|
|
39
|
+
// Delete Payload
|
|
40
|
+
class MCoreEntityAccessPassManagementDeletePayload {
|
|
41
|
+
constructor(init) {
|
|
42
|
+
Object.assign(this, init);
|
|
43
|
+
}
|
|
44
|
+
Validate() {
|
|
45
|
+
let errorLogger = {};
|
|
46
|
+
if (!this.syepm_id) {
|
|
47
|
+
errorLogger.syepm_id = "ID is Required!";
|
|
48
|
+
}
|
|
49
|
+
if (!this.core_entity_access_pass_management) {
|
|
50
|
+
errorLogger.core_entity_access_pass_management = "Table Name Required!";
|
|
51
|
+
}
|
|
52
|
+
return errorLogger;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.MCoreEntityAccessPassManagementDeletePayload = MCoreEntityAccessPassManagementDeletePayload;
|
|
56
|
+
class MCoreEntityAccessPassManagementToggleStatusPayload {
|
|
57
|
+
constructor(init) {
|
|
58
|
+
Object.assign(this, init);
|
|
59
|
+
}
|
|
60
|
+
Validate() {
|
|
61
|
+
let errorLogger = {};
|
|
62
|
+
if (!this.syepm_id) {
|
|
63
|
+
errorLogger.syepm_id = "ID is Required!";
|
|
64
|
+
}
|
|
65
|
+
if (!this.core_entity_access_pass_management) {
|
|
66
|
+
errorLogger.core_entity_access_pass_management = "Table Name Required!";
|
|
18
67
|
}
|
|
19
68
|
return errorLogger;
|
|
20
69
|
}
|
|
21
70
|
}
|
|
22
|
-
exports.
|
|
71
|
+
exports.MCoreEntityAccessPassManagementToggleStatusPayload = MCoreEntityAccessPassManagementToggleStatusPayload;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare class CoreEntityAccessPassManagementBase {
|
|
2
|
+
_id?: string;
|
|
3
|
+
syepm_is_owner?: boolean;
|
|
4
|
+
syepm_can_edit?: boolean;
|
|
5
|
+
syepm_can_view?: boolean;
|
|
6
|
+
syepm_isactive?: boolean;
|
|
7
|
+
syepm_actions_allowed?: any;
|
|
8
|
+
}
|
|
9
|
+
declare class CoreEntityAccessPassManagement extends CoreEntityAccessPassManagementBase {
|
|
10
|
+
syepm_user_id_user?: string;
|
|
11
|
+
syepm_entity_id_syen?: string;
|
|
12
|
+
syepm_access_passs_to_sycad?: string;
|
|
13
|
+
}
|
|
14
|
+
export { CoreEntityAccessPassManagementBase, CoreEntityAccessPassManagement, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CoreEntityAccessPassManagement = exports.CoreEntityAccessPassManagementBase = void 0;
|
|
4
|
+
class CoreEntityAccessPassManagementBase {
|
|
5
|
+
}
|
|
6
|
+
exports.CoreEntityAccessPassManagementBase = CoreEntityAccessPassManagementBase;
|
|
7
|
+
class CoreEntityAccessPassManagement extends CoreEntityAccessPassManagementBase {
|
|
8
|
+
}
|
|
9
|
+
exports.CoreEntityAccessPassManagement = CoreEntityAccessPassManagement;
|