cloud-ide-lms-model 1.0.214 → 1.0.215
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.
|
@@ -1,17 +1,52 @@
|
|
|
1
1
|
import { MTableQueries } from "../../common-types";
|
|
2
2
|
import { AuthUserMst } from "../../schema";
|
|
3
|
+
import { CoreUserAttributes } from "../../schema/core/core_user_attributes";
|
|
4
|
+
import { CoreUserContactAddresses } from "../../schema/core/core_user_contact_addresses";
|
|
5
|
+
import { CoreUserDocuments } from "../../schema/core/core_user_documents";
|
|
6
|
+
import { CoreUserFamilyDetails } from "../../schema/core/core_user_family_details";
|
|
3
7
|
import { controllerResponse } from "../../utilities";
|
|
4
8
|
type AuthUserMstListErrorLogger = {
|
|
5
9
|
[key in keyof AuthUserMstListPayload]: string;
|
|
6
10
|
};
|
|
11
|
+
type AuthUserMstGetByIdErrorLogger = {
|
|
12
|
+
[key in keyof AuthUserMstGetByIdPayload]: string;
|
|
13
|
+
};
|
|
14
|
+
type AuthUserMstCreateErrorLogger = {
|
|
15
|
+
[key in keyof AuthUserMstCreatePayload]: string;
|
|
16
|
+
};
|
|
7
17
|
declare class AuthUserMstListPayload extends MTableQueries {
|
|
8
18
|
syenm_entity_id_syen?: string;
|
|
9
19
|
constructor(init: AuthUserMstListPayload);
|
|
10
20
|
Validate?(): Partial<AuthUserMstListErrorLogger>;
|
|
11
21
|
}
|
|
22
|
+
declare class AuthUserMstCreatePayload {
|
|
23
|
+
auth_user_mst: AuthUserMst;
|
|
24
|
+
core_user_contact_addresses: CoreUserContactAddresses[];
|
|
25
|
+
core_user_documents: CoreUserDocuments[];
|
|
26
|
+
core_user_family_details: CoreUserFamilyDetails[];
|
|
27
|
+
core_user_attributes: CoreUserAttributes[];
|
|
28
|
+
entity_mappings?: any[];
|
|
29
|
+
menu_rights?: {
|
|
30
|
+
[mappingIndex: string]: any[];
|
|
31
|
+
};
|
|
32
|
+
constructor(init?: Partial<AuthUserMstCreatePayload>);
|
|
33
|
+
Validate?(): Partial<AuthUserMstCreateErrorLogger>;
|
|
34
|
+
}
|
|
35
|
+
declare class AuthUserMstGetByIdPayload {
|
|
36
|
+
user_id: string;
|
|
37
|
+
syenm_entity_id_syen?: string;
|
|
38
|
+
constructor(init?: Partial<AuthUserMstGetByIdPayload>);
|
|
39
|
+
Validate?(): Partial<AuthUserMstGetByIdErrorLogger>;
|
|
40
|
+
}
|
|
12
41
|
interface authUserMstListControllerResponse extends controllerResponse {
|
|
13
42
|
data?: AuthUserMst[];
|
|
14
43
|
}
|
|
44
|
+
interface authUserMstCreateControllerResponse extends controllerResponse {
|
|
45
|
+
data?: AuthUserMst;
|
|
46
|
+
}
|
|
47
|
+
interface authUserMstGetByIdControllerResponse extends controllerResponse {
|
|
48
|
+
data?: AuthUserMstGetByIdPayload;
|
|
49
|
+
}
|
|
15
50
|
export { AuthUserMstListErrorLogger, //interface
|
|
16
51
|
AuthUserMstListPayload, // model
|
|
17
|
-
authUserMstListControllerResponse };
|
|
52
|
+
authUserMstListControllerResponse, AuthUserMstCreatePayload, authUserMstCreateControllerResponse, AuthUserMstGetByIdPayload, authUserMstGetByIdControllerResponse, AuthUserMstGetByIdErrorLogger, AuthUserMstCreateErrorLogger };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthUserMstListPayload = void 0;
|
|
3
|
+
exports.AuthUserMstGetByIdPayload = exports.AuthUserMstCreatePayload = exports.AuthUserMstListPayload = void 0;
|
|
4
4
|
const common_types_1 = require("../../common-types");
|
|
5
|
+
const schema_1 = require("../../schema");
|
|
5
6
|
/* INTERFACE END */
|
|
6
7
|
/* MODEL START */
|
|
7
8
|
class AuthUserMstListPayload extends common_types_1.MTableQueries {
|
|
@@ -15,3 +16,54 @@ class AuthUserMstListPayload extends common_types_1.MTableQueries {
|
|
|
15
16
|
}
|
|
16
17
|
}
|
|
17
18
|
exports.AuthUserMstListPayload = AuthUserMstListPayload;
|
|
19
|
+
class AuthUserMstCreatePayload {
|
|
20
|
+
constructor(init) {
|
|
21
|
+
this.auth_user_mst = new schema_1.AuthUserMst();
|
|
22
|
+
this.core_user_contact_addresses = [];
|
|
23
|
+
this.core_user_documents = [];
|
|
24
|
+
this.core_user_family_details = [];
|
|
25
|
+
this.core_user_attributes = [];
|
|
26
|
+
this.entity_mappings = [];
|
|
27
|
+
this.menu_rights = {};
|
|
28
|
+
if (init) {
|
|
29
|
+
Object.assign(this, init);
|
|
30
|
+
// Ensure arrays are properly initialized
|
|
31
|
+
this.core_user_contact_addresses = init.core_user_contact_addresses || [];
|
|
32
|
+
this.core_user_documents = init.core_user_documents || [];
|
|
33
|
+
this.core_user_family_details = init.core_user_family_details || [];
|
|
34
|
+
this.core_user_attributes = init.core_user_attributes || [];
|
|
35
|
+
this.entity_mappings = init.entity_mappings || [];
|
|
36
|
+
this.menu_rights = init.menu_rights || {};
|
|
37
|
+
// Initialize auth_user_mst if provided
|
|
38
|
+
if (init.auth_user_mst) {
|
|
39
|
+
this.auth_user_mst = Object.assign(Object.assign({}, new schema_1.AuthUserMst()), init.auth_user_mst);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
Validate() {
|
|
44
|
+
let errorLogger = {};
|
|
45
|
+
return errorLogger;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.AuthUserMstCreatePayload = AuthUserMstCreatePayload;
|
|
49
|
+
class AuthUserMstGetByIdPayload {
|
|
50
|
+
constructor(init) {
|
|
51
|
+
this.user_id = '';
|
|
52
|
+
if (init) {
|
|
53
|
+
Object.assign(this, init);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
Validate() {
|
|
57
|
+
var _a, _b;
|
|
58
|
+
let errorLogger = {};
|
|
59
|
+
// Validate that auth_user_mst has required ID for get operation
|
|
60
|
+
if (!((_a = this.user_id) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
61
|
+
errorLogger.user_id = 'User ID is required for get operation';
|
|
62
|
+
}
|
|
63
|
+
if (!((_b = this.syenm_entity_id_syen) === null || _b === void 0 ? void 0 : _b.trim())) {
|
|
64
|
+
errorLogger.syenm_entity_id_syen = 'Entity ID is required for get operation';
|
|
65
|
+
}
|
|
66
|
+
return errorLogger;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.AuthUserMstGetByIdPayload = AuthUserMstGetByIdPayload;
|