rez_core 4.0.103 → 4.0.104

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "4.0.103",
3
+ "version": "4.0.104",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -103,7 +103,6 @@ export class ListMasterService {
103
103
  },
104
104
  );
105
105
 
106
- console.log('✅ Internal API response:', response.data);
107
106
  return response.data;
108
107
  } catch (error) {
109
108
  console.error('⚠️ Internal API call failed:', error.message);
@@ -115,7 +115,7 @@ export class OtpService {
115
115
 
116
116
  // Proceed to login
117
117
  return this.loginService.login({
118
- email: identifier,
118
+ email_id: identifier,
119
119
  is_otp: true,
120
120
  });
121
121
  }
@@ -31,7 +31,7 @@ export class LoginController {
31
31
  const { email_id, password } = body;
32
32
 
33
33
  const result = await this.loginService.login({
34
- email: email_id,
34
+ email_id,
35
35
  password,
36
36
  is_otp: false, // default since you had it before
37
37
  });
@@ -38,16 +38,19 @@ export class LoginService {
38
38
  masterKey: string = this.configService.get('MASTER_KEY') || '';
39
39
  masterIv: string = this.configService.get('MASTER_IV') || '';
40
40
 
41
- async login(data: { email: string; password?: string; is_otp?: boolean }) {
42
- const { email, password, is_otp = false } = data;
41
+ async login(data: { email_id: string; password?: string; is_otp?: boolean }) {
42
+ const { email_id, password, is_otp = false } = data;
43
43
 
44
44
  let organization;
45
45
 
46
46
  // 🔹 Step 2: Find the user by email + organization check
47
- const user = await this.userService.findByEmailId(email);
47
+ const user = await this.userService.findByEmailId(email_id);
48
48
 
49
49
  if (!user || (organization && user.organization_id !== organization.id)) {
50
- throw new BadRequestException('User not found in organization.');
50
+ return {
51
+ success: false,
52
+ message: 'User not found in organization.',
53
+ };
51
54
  }
52
55
 
53
56
  // 🔹 Step 3: Verify org status
@@ -145,7 +148,10 @@ export class LoginService {
145
148
  if (org) {
146
149
  slug = org.slug;
147
150
  } else {
148
- throw new BadRequestException();
151
+ return {
152
+ success: false,
153
+ message: 'Organization not found for the user.',
154
+ };
149
155
  }
150
156
 
151
157
  return {
@@ -266,7 +272,7 @@ export class LoginService {
266
272
 
267
273
  // Create session (Same as JWT login flow)
268
274
  return await this.login({
269
- email,
275
+ email_id: email,
270
276
  is_otp: true,
271
277
  });
272
278
  }
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="WEB_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$">
5
- <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
- <excludeFolder url="file://$MODULE_DIR$/temp" />
7
- <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
- </content>
9
- <orderEntry type="inheritedJdk" />
10
- <orderEntry type="sourceFolder" forTests="false" />
11
- </component>
12
- </module>
@@ -1,59 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <code_scheme name="Project" version="173">
3
- <HTMLCodeStyleSettings>
4
- <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
5
- </HTMLCodeStyleSettings>
6
- <JSCodeStyleSettings version="0">
7
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
8
- <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
9
- <option name="USE_DOUBLE_QUOTES" value="false" />
10
- <option name="FORCE_QUOTE_STYlE" value="true" />
11
- <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
12
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
13
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
14
- </JSCodeStyleSettings>
15
- <TypeScriptCodeStyleSettings version="0">
16
- <option name="FORCE_SEMICOLON_STYLE" value="true" />
17
- <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
18
- <option name="USE_DOUBLE_QUOTES" value="false" />
19
- <option name="FORCE_QUOTE_STYlE" value="true" />
20
- <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
21
- <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
22
- <option name="SPACES_WITHIN_IMPORTS" value="true" />
23
- </TypeScriptCodeStyleSettings>
24
- <VueCodeStyleSettings>
25
- <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
26
- <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
27
- </VueCodeStyleSettings>
28
- <codeStyleSettings language="HTML">
29
- <option name="SOFT_MARGINS" value="80" />
30
- <indentOptions>
31
- <option name="INDENT_SIZE" value="2" />
32
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
33
- <option name="TAB_SIZE" value="2" />
34
- </indentOptions>
35
- </codeStyleSettings>
36
- <codeStyleSettings language="JavaScript">
37
- <option name="SOFT_MARGINS" value="80" />
38
- <indentOptions>
39
- <option name="INDENT_SIZE" value="2" />
40
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
41
- <option name="TAB_SIZE" value="2" />
42
- </indentOptions>
43
- </codeStyleSettings>
44
- <codeStyleSettings language="TypeScript">
45
- <option name="SOFT_MARGINS" value="80" />
46
- <indentOptions>
47
- <option name="INDENT_SIZE" value="2" />
48
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
49
- <option name="TAB_SIZE" value="2" />
50
- </indentOptions>
51
- </codeStyleSettings>
52
- <codeStyleSettings language="Vue">
53
- <option name="SOFT_MARGINS" value="80" />
54
- <indentOptions>
55
- <option name="CONTINUATION_INDENT_SIZE" value="2" />
56
- </indentOptions>
57
- </codeStyleSettings>
58
- </code_scheme>
59
- </component>
@@ -1,5 +0,0 @@
1
- <component name="ProjectCodeStyleConfiguration">
2
- <state>
3
- <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
- </state>
5
- </component>
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
- </profile>
6
- </component>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/250218_nodejs_core.iml" filepath="$PROJECT_DIR$/.idea/250218_nodejs_core.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="PrettierConfiguration">
4
- <option name="myConfigurationMode" value="AUTOMATIC" />
5
- </component>
6
- </project>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>