@erp-galoper/main-package 1.0.87 → 1.0.89

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.
Files changed (2) hide show
  1. package/openapi.ts +29 -27
  2. package/package.json +1 -1
package/openapi.ts CHANGED
@@ -10,17 +10,13 @@ export interface paths {
10
10
  * Userloginview
11
11
  * @description Endpoint for login.
12
12
  * Possible Responses:
13
- * - 400: Ivalid username or password
14
- *
15
- * - 403: You do not have permission to perform this action
16
- * - You cannot login without a role.
17
- * - You cannot login without a branch.
18
- * - User is not active
19
- * - Error license expired
20
- * - Error license user count
21
- *
22
- * - 500: Error Token Creation
23
- * - Bad request: Error during user data serialization
13
+ * - 200: LoginResponseDataSchema , code: 'loginSuccess'
14
+ * - 400: {'message': 'Ivalid username or password', 'code': 'invalidUsernameOrPassword'}
15
+ * - 403: {'message': 'User is not active', 'code': 'userNotActive'}
16
+ * - {'message': 'You cannot login without a role.', 'code': 'noRole'}
17
+ * - {'message': 'You do not have permission to perform this action', 'code': 'notErpUser'}
18
+ * - 500: {'message': 'Error Creating tokes <error>', 'code': 'errorTokenCreation'}
19
+ * - {'message': '<error>', 'code': 'serverError'}
24
20
  */
25
21
  post: operations["authentication_views_UserLoginView"];
26
22
  };
@@ -483,6 +479,8 @@ export interface components {
483
479
  LoginResponseDataSchema: {
484
480
  user: components["schemas"]["UserInfoSchema"];
485
481
  tokens: components["schemas"]["TokenSchema"];
482
+ /** Code */
483
+ code: string;
486
484
  [key: string]: unknown;
487
485
  };
488
486
  /** TokenSchema */
@@ -528,10 +526,12 @@ export interface components {
528
526
  branches: components["schemas"]["UserBranchSchema"][];
529
527
  [key: string]: unknown;
530
528
  };
531
- /** Message */
532
- Message: {
529
+ /** Message2 */
530
+ Message2: {
533
531
  /** Message */
534
532
  message: string;
533
+ /** Code */
534
+ code: string;
535
535
  [key: string]: unknown;
536
536
  };
537
537
  /** CustomUserSchema */
@@ -542,6 +542,12 @@ export interface components {
542
542
  password: string;
543
543
  [key: string]: unknown;
544
544
  };
545
+ /** Message */
546
+ Message: {
547
+ /** Message */
548
+ message: string;
549
+ [key: string]: unknown;
550
+ };
545
551
  /** RefreshTokenSchema */
546
552
  RefreshTokenSchema: {
547
553
  /** Refreshtoken */
@@ -1057,17 +1063,13 @@ export interface operations {
1057
1063
  * Userloginview
1058
1064
  * @description Endpoint for login.
1059
1065
  * Possible Responses:
1060
- * - 400: Ivalid username or password
1061
- *
1062
- * - 403: You do not have permission to perform this action
1063
- * - You cannot login without a role.
1064
- * - You cannot login without a branch.
1065
- * - User is not active
1066
- * - Error license expired
1067
- * - Error license user count
1068
- *
1069
- * - 500: Error Token Creation
1070
- * - Bad request: Error during user data serialization
1066
+ * - 200: LoginResponseDataSchema , code: 'loginSuccess'
1067
+ * - 400: {'message': 'Ivalid username or password', 'code': 'invalidUsernameOrPassword'}
1068
+ * - 403: {'message': 'User is not active', 'code': 'userNotActive'}
1069
+ * - {'message': 'You cannot login without a role.', 'code': 'noRole'}
1070
+ * - {'message': 'You do not have permission to perform this action', 'code': 'notErpUser'}
1071
+ * - 500: {'message': 'Error Creating tokes <error>', 'code': 'errorTokenCreation'}
1072
+ * - {'message': '<error>', 'code': 'serverError'}
1071
1073
  */
1072
1074
  authentication_views_UserLoginView: {
1073
1075
  requestBody: {
@@ -1085,19 +1087,19 @@ export interface operations {
1085
1087
  /** @description Bad Request */
1086
1088
  400: {
1087
1089
  content: {
1088
- "application/json": components["schemas"]["Message"];
1090
+ "application/json": components["schemas"]["Message2"];
1089
1091
  };
1090
1092
  };
1091
1093
  /** @description Forbidden */
1092
1094
  403: {
1093
1095
  content: {
1094
- "application/json": components["schemas"]["Message"];
1096
+ "application/json": components["schemas"]["Message2"];
1095
1097
  };
1096
1098
  };
1097
1099
  /** @description Internal Server Error */
1098
1100
  500: {
1099
1101
  content: {
1100
- "application/json": components["schemas"]["Message"];
1102
+ "application/json": components["schemas"]["Message2"];
1101
1103
  };
1102
1104
  };
1103
1105
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@erp-galoper/main-package",
3
- "version": "1.0.87",
3
+ "version": "1.0.89",
4
4
  "main": "openapi.ts"
5
5
  }