cloud-ide-lms-model 1.1.11 → 1.1.13

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";
@@ -29,8 +29,7 @@ declare class AuthUserMstCreatePayload {
29
29
  core_user_attributes: CoreUserAttributes[];
30
30
  core_entity_mapping?: CoreEntityMapping[];
31
31
  core_user_role_exceptions?: CoreUserRoleExceptions[];
32
- syutm_user_type?: string;
33
- syutm_type_specific_id?: string;
32
+ core_user_type_mapping?: CoreUserTypeMapping;
34
33
  constructor(init?: Partial<AuthUserMstCreatePayload>);
35
34
  Validate?(): Partial<AuthUserMstCreateErrorLogger>;
36
35
  }
@@ -59,6 +58,7 @@ declare class AuthUserMstGetByIdData {
59
58
  core_user_attributes?: CoreUserAttributes[];
60
59
  core_entity_mapping?: AuthUserCoreEntityMapping[];
61
60
  core_user_role_exceptions?: CoreUserRoleExceptionsMapping[];
61
+ core_user_type_mapping?: CoreUserTypeMapping[];
62
62
  }
63
63
  declare class CoreUserRoleExceptionsMapping extends CoreUserRoleExceptionsBase {
64
64
  syusrex_user_id_user?: {
@@ -46,6 +46,9 @@ class AuthUserMstCreatePayload {
46
46
  if (init.auth_user_mst) {
47
47
  this.auth_user_mst = Object.assign(Object.assign({}, new schema_1.AuthUserMst()), init.auth_user_mst);
48
48
  }
49
+ if (init.core_user_type_mapping) {
50
+ this.core_user_type_mapping = Object.assign({}, init.core_user_type_mapping);
51
+ }
49
52
  }
50
53
  }
51
54
  Validate() {
@@ -0,0 +1,21 @@
1
+ import { CoreSystemEntity, AuthUserMst } from "../../schema";
2
+ import { controllerResponse } from "../../utilities";
3
+ type IEntitySwitchErrorLogger = {
4
+ [key in keyof MEntitySwitch]: string;
5
+ };
6
+ declare class MEntitySwitch {
7
+ syen_id?: string;
8
+ constructor(init: MEntitySwitch);
9
+ Validate(): Partial<IEntitySwitchErrorLogger>;
10
+ }
11
+ interface switchEntityControllerResponse extends controllerResponse {
12
+ data?: Partial<switchEntityResponseData>;
13
+ token?: string;
14
+ }
15
+ interface switchEntityResponseData {
16
+ auth_user_mst: Partial<AuthUserMst>;
17
+ core_system_entity?: CoreSystemEntity;
18
+ }
19
+ export { IEntitySwitchErrorLogger, // interface
20
+ MEntitySwitch, // model
21
+ switchEntityControllerResponse, switchEntityResponseData };
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MEntitySwitch = void 0;
4
+ /* INTERFACE END */
5
+ /* MODEL START */
6
+ class MEntitySwitch {
7
+ constructor(init) {
8
+ Object.assign(this, init);
9
+ }
10
+ Validate() {
11
+ let errorLogger = {};
12
+ if (!this.syen_id) {
13
+ errorLogger.syen_id = "Entity ID is Required";
14
+ }
15
+ return errorLogger;
16
+ }
17
+ }
18
+ exports.MEntitySwitch = MEntitySwitch;
@@ -4,3 +4,4 @@ export * from "./register";
4
4
  export * from "./reset-password";
5
5
  export * from "./auth_user_mst";
6
6
  export * from "./generate-view-only-token";
7
+ export * from "./entity-switch";
@@ -20,3 +20,4 @@ __exportStar(require("./register"), exports);
20
20
  __exportStar(require("./reset-password"), exports);
21
21
  __exportStar(require("./auth_user_mst"), exports);
22
22
  __exportStar(require("./generate-view-only-token"), exports);
23
+ __exportStar(require("./entity-switch"), exports);
@@ -18,5 +18,7 @@ declare const authRoutesUrl: {
18
18
  signOut: string;
19
19
  /** Endpoint to generate view-only token for public APIs */
20
20
  generateViewOnlyToken: string;
21
+ /** Endpoint to switch entity for logged-in user */
22
+ switchEntity: string;
21
23
  };
22
24
  export { authRoutesUrl };
@@ -21,6 +21,8 @@ const authRoutesUrl = {
21
21
  signOut: 'sign-out',
22
22
  /** Endpoint to generate view-only token for public APIs */
23
23
  generateViewOnlyToken: 'generate-view-only-token',
24
+ /** Endpoint to switch entity for logged-in user */
25
+ switchEntity: 'switch-entity',
24
26
  };
25
27
  exports.authRoutesUrl = authRoutesUrl;
26
28
  // Freeze the authRoutesUrl object to prevent modifications
@@ -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.11",
8
+ "version": "1.1.13",
9
9
  "description": "Package for Model management of Cloud IDEsys LMS",
10
10
  "main": "lib/index.js",
11
11
  "types": "lib/index.d.ts",