cloud-ide-lms-model 1.1.10 → 1.1.12

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.
@@ -23,6 +23,7 @@ declare class MClassProgramTerm extends MTableQueries {
23
23
  acapt_class_program_id_acacpm?: string;
24
24
  acapt_class_prg_branch_acabrn: string;
25
25
  acapt_parent_class_prog_term_acapt?: string | null;
26
+ acacpm_entity_id_syen?: string;
26
27
  constructor(init: MClassProgramTerm);
27
28
  Validate?(): Partial<IClassProgramTermErrorLogger>;
28
29
  }
@@ -23,6 +23,7 @@ declare class MPrgTrmSection extends MTableQueries {
23
23
  acapts_class_program_id_acacpm?: string;
24
24
  acapts_class_program_branch_id_acabrn?: string;
25
25
  acapts_parent_class_prog_term_acapt?: string;
26
+ acapts_entity_id_syen?: string;
26
27
  constructor(init: MPrgTrmSection);
27
28
  Validate?(): Partial<IPrgTrmSectionErrorLogger>;
28
29
  }
@@ -1,5 +1,5 @@
1
1
  import { MTableQueries } from "../../common-types";
2
- import { AuthUserMst, CoreEntityAccessPassManagementBase, CoreEntityMapping, CoreEntityMappingBase } from "../../schema";
2
+ import { AuthUserMst, CoreEntityAccessPassManagementBase, CoreEntityMapping, CoreEntityMappingBase, CoreUserTypeMapping } from "../../schema";
3
3
  import { CoreUserAttributes } from "../../schema/core/core_user_attributes";
4
4
  import { CoreUserContactAddresses, CoreUserContactAddressesBase } from "../../schema/core/core_user_contact_addresses";
5
5
  import { CoreUserDocuments, CoreUserDocumentsBase } from "../../schema/core/core_user_documents";
@@ -17,6 +17,7 @@ type AuthUserMstCreateErrorLogger = {
17
17
  };
18
18
  declare class AuthUserMstListPayload extends MTableQueries {
19
19
  syenm_entity_id_syen?: string;
20
+ syutm_user_type?: string;
20
21
  constructor(init: AuthUserMstListPayload);
21
22
  Validate?(): Partial<AuthUserMstListErrorLogger>;
22
23
  }
@@ -28,8 +29,7 @@ declare class AuthUserMstCreatePayload {
28
29
  core_user_attributes: CoreUserAttributes[];
29
30
  core_entity_mapping?: CoreEntityMapping[];
30
31
  core_user_role_exceptions?: CoreUserRoleExceptions[];
31
- syutm_user_type?: string;
32
- syutm_type_specific_id?: string;
32
+ core_user_type_mapping?: CoreUserTypeMapping;
33
33
  constructor(init?: Partial<AuthUserMstCreatePayload>);
34
34
  Validate?(): Partial<AuthUserMstCreateErrorLogger>;
35
35
  }
@@ -58,6 +58,7 @@ declare class AuthUserMstGetByIdData {
58
58
  core_user_attributes?: CoreUserAttributes[];
59
59
  core_entity_mapping?: AuthUserCoreEntityMapping[];
60
60
  core_user_role_exceptions?: CoreUserRoleExceptionsMapping[];
61
+ core_user_type_mapping?: CoreUserTypeMapping[];
61
62
  }
62
63
  declare class CoreUserRoleExceptionsMapping extends CoreUserRoleExceptionsBase {
63
64
  syusrex_user_id_user?: {
@@ -16,6 +16,10 @@ class AuthUserMstListPayload extends common_types_1.MTableQueries {
16
16
  }
17
17
  Validate() {
18
18
  let errorLogger = {};
19
+ // Validate user type if provided
20
+ if (this.syutm_user_type && !['STUDENT', 'EMPLOYEE', 'TEACHER', 'PARENT', 'GUARDIAN', 'ADMIN', 'STAFF', 'OTHER'].includes(this.syutm_user_type.toUpperCase())) {
21
+ errorLogger.syutm_user_type = 'Invalid user type. Must be one of: STUDENT, EMPLOYEE, TEACHER, PARENT, GUARDIAN, ADMIN, STAFF, OTHER';
22
+ }
19
23
  return errorLogger;
20
24
  }
21
25
  }
@@ -42,6 +46,9 @@ class AuthUserMstCreatePayload {
42
46
  if (init.auth_user_mst) {
43
47
  this.auth_user_mst = Object.assign(Object.assign({}, new schema_1.AuthUserMst()), init.auth_user_mst);
44
48
  }
49
+ if (init.core_user_type_mapping) {
50
+ this.core_user_type_mapping = Object.assign({}, init.core_user_type_mapping);
51
+ }
45
52
  }
46
53
  }
47
54
  Validate() {
@@ -7,8 +7,4 @@ export interface CoreUserTypeMapping {
7
7
  syutm_reference_table?: string;
8
8
  syutm_reference_id?: string;
9
9
  syutm_isactive?: boolean;
10
- syutm_created_date?: Date;
11
- syutm_modified_date?: Date;
12
- syutm_created_by_user?: string;
13
- syutm_modified_by_user?: string;
14
10
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "typescript": "^5.4.2"
6
6
  },
7
7
  "name": "cloud-ide-lms-model",
8
- "version": "1.1.10",
8
+ "version": "1.1.12",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",