cloud-ide-model-schema 1.0.16 → 1.0.17

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,11 +1,4 @@
1
1
  export * from "./common";
2
- export * from "./coreControllerResponse";
3
- export * from "./designConfigControllerResponse";
4
2
  export * from "./emailServiceConfig";
5
- export * from "./entityControllerResponse";
6
- export * from "./forgotPasswordControllerResponse";
7
3
  export * from "./jwtPayload";
8
- export * from "./loginControllerResponse";
9
- export * from "./menuControllerResponse";
10
- export * from "./resetPasswordControllerResponse";
11
4
  export * from "./userPermissions";
@@ -15,13 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./common"), exports);
18
- __exportStar(require("./coreControllerResponse"), exports);
19
- __exportStar(require("./designConfigControllerResponse"), exports);
20
18
  __exportStar(require("./emailServiceConfig"), exports);
21
- __exportStar(require("./entityControllerResponse"), exports);
22
- __exportStar(require("./forgotPasswordControllerResponse"), exports);
23
19
  __exportStar(require("./jwtPayload"), exports);
24
- __exportStar(require("./loginControllerResponse"), exports);
25
- __exportStar(require("./menuControllerResponse"), exports);
26
- __exportStar(require("./resetPasswordControllerResponse"), exports);
27
20
  __exportStar(require("./userPermissions"), exports);
@@ -1,3 +1,4 @@
1
+ import { resetPasswordSylog } from "../model";
1
2
  import { ICoreSyen } from "../schema/core";
2
3
  export interface jwtPayload {
3
4
  sylog_id_user?: string;
@@ -6,11 +7,3 @@ export interface jwtPayload {
6
7
  sylog_config_data?: resetPasswordSylog;
7
8
  core_system_entity?: ICoreSyen;
8
9
  }
9
- export interface resetPasswordJwtPayload {
10
- user_password?: string;
11
- }
12
- export interface resetPasswordSylog {
13
- reset_password_link?: string;
14
- reset_password_secret?: string;
15
- request_timestamp?: Date;
16
- }
@@ -1,3 +1,6 @@
1
+ import { SendMailInfo } from "../../common-types";
2
+ import { IUser } from "../../schema";
3
+ import { controllerResponse } from "../../utilities";
1
4
  import { forgotPasswordMethod } from "../../utilities/helpers/type.hepler";
2
5
  type IForgotPasswordErrorLogger = {
3
6
  [key in keyof MForgotPassword]: string;
@@ -10,5 +13,16 @@ declare class MForgotPassword {
10
13
  constructor(init: MForgotPassword);
11
14
  Validate?(): Partial<IForgotPasswordErrorLogger>;
12
15
  }
16
+ interface ForgotPasswordControllerResponse extends controllerResponse {
17
+ data?: Partial<ForgotPasswordResponseData>;
18
+ }
19
+ interface ForgotPasswordResponseData {
20
+ user: Partial<IUser>;
21
+ reset_password_link: string;
22
+ }
23
+ interface ForgotPasswordSendMailInfo extends SendMailInfo {
24
+ data: Partial<ForgotPasswordResponseData>;
25
+ }
13
26
  export { IForgotPasswordErrorLogger, //interface
14
- MForgotPassword };
27
+ MForgotPassword, // model
28
+ ForgotPasswordControllerResponse, ForgotPasswordResponseData, ForgotPasswordSendMailInfo };
@@ -1,3 +1,6 @@
1
+ import { SendMailInfo } from "../../common-types";
2
+ import { IUser } from "../../schema";
3
+ import { controllerResponse } from "../../utilities";
1
4
  import { loginMethod } from "../../utilities/helpers/type.hepler";
2
5
  type ILoginErrorLogger = {
3
6
  [key in keyof MLogin]: string;
@@ -10,6 +13,16 @@ declare class MLogin {
10
13
  constructor(init: MLogin);
11
14
  Validate(): Partial<ILoginErrorLogger>;
12
15
  }
16
+ interface loginControllerResponse extends controllerResponse {
17
+ data?: Partial<loginResponseData>;
18
+ token?: string;
19
+ }
20
+ interface loginResponseData {
21
+ user: Partial<IUser>;
22
+ }
23
+ interface LoginSendMailInfo extends SendMailInfo {
24
+ data: Partial<loginResponseData>;
25
+ }
13
26
  type IReLoginErrorLogger = {
14
27
  [key in keyof MReLogin]: string;
15
28
  };
@@ -21,6 +34,11 @@ declare class MReLogin {
21
34
  constructor(init: MReLogin);
22
35
  Validate?(): Partial<IReLoginErrorLogger>;
23
36
  }
37
+ interface reLoginControllerResponse extends controllerResponse {
38
+ data?: Partial<loginResponseData>;
39
+ token?: string;
40
+ }
24
41
  export { ILoginErrorLogger, //interface,
25
42
  IReLoginErrorLogger, MLogin, // model
26
- MReLogin };
43
+ MReLogin, // model
44
+ loginControllerResponse, reLoginControllerResponse, loginResponseData, LoginSendMailInfo };
@@ -1,4 +1,6 @@
1
- import { resetPasswordSylog } from "../../common-types/jwtPayload";
1
+ import { SendMailInfo } from "../../common-types";
2
+ import { IUser } from "../../schema";
3
+ import { controllerResponse } from "../../utilities";
2
4
  type IResetPasswordErrorLogger = {
3
5
  [key in keyof MResetPassword]: string;
4
6
  };
@@ -9,5 +11,26 @@ declare class MResetPassword {
9
11
  constructor(init: MResetPassword);
10
12
  Validate?(): Partial<IResetPasswordErrorLogger>;
11
13
  }
14
+ interface resetPasswordJwtPayload {
15
+ user_password?: string;
16
+ }
17
+ interface resetPasswordSylog {
18
+ reset_password_link?: string;
19
+ reset_password_secret?: string;
20
+ request_timestamp?: Date;
21
+ }
22
+ interface ResetPasswordControllerResponse extends controllerResponse {
23
+ data?: Partial<ResetPasswordResponseData>;
24
+ }
25
+ interface SignOutControllerResponse extends controllerResponse {
26
+ }
27
+ interface ResetPasswordResponseData {
28
+ user: Partial<IUser>;
29
+ reset_password_link: string;
30
+ }
31
+ interface ResetPasswordSendMailInfo extends SendMailInfo {
32
+ data: Partial<ResetPasswordResponseData>;
33
+ }
12
34
  export { IResetPasswordErrorLogger, //interface
13
- MResetPassword };
35
+ MResetPassword, // model
36
+ resetPasswordJwtPayload, resetPasswordSylog, ResetPasswordControllerResponse, ResetPasswordResponseData, ResetPasswordSendMailInfo, SignOutControllerResponse };
@@ -1,3 +1,5 @@
1
+ import { ICoreSypc, ICoreSypg, ICoreSypgr, ICoreSyptb, ICoreSytm, ITabs } from "../../schema";
2
+ import { controllerResponse } from "../../utilities";
1
3
  type IDesignConfigErrorLogger = {
2
4
  [key in keyof MDesignConfig]: string;
3
5
  };
@@ -6,5 +8,27 @@ declare class MDesignConfig {
6
8
  constructor(init: MDesignConfig);
7
9
  Validate?(): Partial<IDesignConfigErrorLogger>;
8
10
  }
11
+ interface designConfigControllerResponse extends controllerResponse {
12
+ data?: designConfigResponseData;
13
+ }
14
+ interface designConfigResponseData {
15
+ page?: Partial<ICoreSypg>;
16
+ theme?: Partial<ICoreSytm>;
17
+ grid?: {
18
+ [key: string]: ICoreSypgr;
19
+ };
20
+ controls?: {
21
+ [key: string]: ICoreSypc;
22
+ };
23
+ tab?: {
24
+ [key: string]: ICoreTabs;
25
+ };
26
+ }
27
+ interface ICoreTabs extends ICoreSyptb {
28
+ syptb_tabs_select: {
29
+ [key: string]: ITabs;
30
+ };
31
+ }
9
32
  export { IDesignConfigErrorLogger, //interface
10
- MDesignConfig };
33
+ MDesignConfig, // model
34
+ designConfigControllerResponse, designConfigResponseData };
@@ -1,4 +1,5 @@
1
1
  import { MTableQueries } from "../../common-types/common";
2
+ import { controllerResponse } from "../../utilities";
2
3
  type IEntityErrorLogger = {
3
4
  [key in keyof MEntity]: string;
4
5
  };
@@ -7,5 +8,40 @@ declare class MEntity extends MTableQueries {
7
8
  constructor(init: MEntity);
8
9
  Validate?(): Partial<IEntityErrorLogger>;
9
10
  }
11
+ interface entityControllerResponse extends controllerResponse {
12
+ data?: entityResponseData[];
13
+ }
14
+ interface entityResponseData {
15
+ _id?: string;
16
+ syen_id_syen?: string;
17
+ syen_print_name?: string;
18
+ syen_entity_type_gmst?: string;
19
+ syen_name?: string;
20
+ syen_entity_code?: string;
21
+ syen_corporate_address?: string;
22
+ syen_corporate_pin_sypc?: string;
23
+ syen_corporate_pincode_sypc?: string;
24
+ syen_corporate_contact_person_user?: string;
25
+ syen_corporate_phone?: number;
26
+ syen_corporate_phone_alt?: number;
27
+ syen_corporate_fax?: string;
28
+ syen_corporate_email?: string;
29
+ syen_corporate_email_alt?: string;
30
+ syen_website?: string;
31
+ syen_currency_sycr?: string;
32
+ syen_registered_address?: string;
33
+ syen_registered_pin_sypc?: string;
34
+ syen_registered_pincode_sypc?: string;
35
+ syen_registered_phone?: number;
36
+ syen_registered_email?: string;
37
+ syen_registered_fax?: string;
38
+ syen_registered_contact_person_user?: string;
39
+ syen_udise_no?: string;
40
+ syen_affiliation_no?: string;
41
+ syen_photo_id_fm?: string;
42
+ syen_isactive?: boolean;
43
+ children: entityResponseData[];
44
+ }
10
45
  export { IEntityErrorLogger, //interface
11
- MEntity };
46
+ MEntity, // model
47
+ entityControllerResponse, entityResponseData };
@@ -1,3 +1,5 @@
1
+ import { CommonSelect } from "../../common-types";
2
+ import { controllerResponse } from "../../utilities";
1
3
  type IGeneralMasterSelectErrorLogger = {
2
4
  [key in keyof MGeneralMasterSelect]: string;
3
5
  };
@@ -6,5 +8,30 @@ declare class MGeneralMasterSelect {
6
8
  constructor(init: MGeneralMasterSelect);
7
9
  Validate?(): Partial<IGeneralMasterSelectErrorLogger>;
8
10
  }
11
+ interface generalMasterSelectControllerResponse extends controllerResponse {
12
+ data?: {
13
+ core_general_master: generalMasterResponseData[];
14
+ core_general_master_type: generalMasterTypeResponseData[];
15
+ };
16
+ }
17
+ interface generalMasterResponseData extends CommonSelect {
18
+ _id?: string;
19
+ sygms_code: string;
20
+ sygms_id_sygmt: string;
21
+ sygms_title: string;
22
+ sygms_desc: string;
23
+ sygms_isactive: string;
24
+ sygms_configuration: any;
25
+ }
26
+ interface generalMasterTypeResponseData {
27
+ _id: string;
28
+ sygmt_code: string;
29
+ sygmt_title: string;
30
+ sygmt_desc: string;
31
+ sygmt_isactive: boolean;
32
+ }
9
33
  export { IGeneralMasterSelectErrorLogger, //interface
10
- MGeneralMasterSelect };
34
+ MGeneralMasterSelect, // model
35
+ generalMasterSelectControllerResponse, // Select
36
+ generalMasterResponseData, // simple response
37
+ generalMasterTypeResponseData };
@@ -1,3 +1,4 @@
1
+ import { controllerResponse } from "../../utilities";
1
2
  type IMenuErrorLogger = {
2
3
  [key in keyof MMenu]: string;
3
4
  };
@@ -8,5 +9,20 @@ declare class MMenu {
8
9
  constructor(init: MMenu);
9
10
  Validate?(): Partial<IMenuErrorLogger>;
10
11
  }
12
+ interface menuControllerResponse extends controllerResponse {
13
+ data?: menuResponseData[];
14
+ }
15
+ interface menuResponseData {
16
+ _id: string;
17
+ syme_title: string;
18
+ syme_desc: string;
19
+ syme_path: string;
20
+ syme_icon: string;
21
+ syme_type: string;
22
+ syme_link: boolean;
23
+ children: menuResponseData[];
24
+ }
11
25
  export { IMenuErrorLogger, //interface
12
- MMenu };
26
+ MMenu, // model
27
+ menuControllerResponse, // above coresponding to payload abd this corespons to rresponse
28
+ menuResponseData };
@@ -1,3 +1,5 @@
1
+ import { ICoreSypin } from "../../schema";
2
+ import { controllerResponse } from "../../utilities";
1
3
  type IPinCodeSelectErrorLogger = {
2
4
  [key in keyof MPinCodeSelect]: string;
3
5
  };
@@ -7,5 +9,13 @@ declare class MPinCodeSelect {
7
9
  constructor(init: MPinCodeSelect);
8
10
  Validate?(): Partial<IPinCodeSelectErrorLogger>;
9
11
  }
12
+ interface pinCodeSelectControllerResponse extends controllerResponse {
13
+ data?: {
14
+ core_pin_code: pinCodeSelectResponseData[];
15
+ };
16
+ }
17
+ type pinCodeSelectResponseData = ICoreSypin & controllerResponse;
10
18
  export { IPinCodeSelectErrorLogger, //interface
11
- MPinCodeSelect };
19
+ MPinCodeSelect, // model
20
+ pinCodeSelectControllerResponse, // service response
21
+ pinCodeSelectResponseData };
@@ -1,3 +1,5 @@
1
+ import { CommonSelect } from "../../common-types";
2
+ import { controllerResponse } from "../../utilities";
1
3
  type IUserSelectErrorLogger = {
2
4
  [key in keyof MUserSelect]: string;
3
5
  };
@@ -7,5 +9,11 @@ declare class MUserSelect {
7
9
  constructor(init: MUserSelect);
8
10
  Validate?(): Partial<IUserSelectErrorLogger>;
9
11
  }
12
+ interface userSelectControllerResponse extends controllerResponse {
13
+ data?: {
14
+ auth_user_mst: CommonSelect[];
15
+ };
16
+ }
10
17
  export { IUserSelectErrorLogger, //interface
11
- MUserSelect };
18
+ MUserSelect, // model
19
+ userSelectControllerResponse };
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "typescript": "^5.4.2"
9
9
  },
10
10
  "name": "cloud-ide-model-schema",
11
- "version": "1.0.16",
11
+ "version": "1.0.17",
12
12
  "description": "Pachage for schema management of Cloud IDEsys LMS",
13
13
  "main": "lib/index.js",
14
14
  "types": "lib/index.d.ts",