plac-micro-common 1.3.50 → 1.3.52

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.
@@ -27,7 +27,7 @@ let AuthClientService = AuthClientService_1 = class AuthClientService {
27
27
  }
28
28
  async resolveUserInfoById(userId) {
29
29
  try {
30
- const response = await (0, rxjs_1.firstValueFrom)(this.httpService.get(`${this.options.base_url}/auth-user/resolve/${userId}`, {
30
+ const response = await (0, rxjs_1.firstValueFrom)(this.httpService.get(`${this.options.base_url}/internal/user-info/${userId}`, {
31
31
  headers: this.getHeaders(),
32
32
  timeout: this.options.timeout_ms ?? 5000,
33
33
  }));
@@ -41,7 +41,7 @@ let AuthClientService = AuthClientService_1 = class AuthClientService {
41
41
  if (!ids?.length)
42
42
  return [];
43
43
  try {
44
- const response = await (0, rxjs_1.firstValueFrom)(this.httpService.post(`${this.options.base_url}/auth-user/resolve-many`, { ids }, {
44
+ const response = await (0, rxjs_1.firstValueFrom)(this.httpService.post(`${this.options.base_url}/internal/user-info/resolve`, { ids }, {
45
45
  headers: this.getHeaders(),
46
46
  timeout: this.options.timeout_ms ?? 5000,
47
47
  }));
@@ -53,6 +53,7 @@ let AuthClientService = AuthClientService_1 = class AuthClientService {
53
53
  }
54
54
  getHeaders() {
55
55
  return {
56
+ "client-id": this.options.client_id,
56
57
  "x-internal-secret": this.options.internal_api_key,
57
58
  };
58
59
  }
@@ -17,6 +17,7 @@ export interface ResolveUserInfoByIdsDto {
17
17
  }
18
18
  export interface AuthClientModuleOptions {
19
19
  base_url: string;
20
+ client_id: string;
20
21
  internal_api_key: string;
21
22
  timeout_ms?: number;
22
23
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.50",
3
+ "version": "1.3.52",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {