@crowdin/app-project-module 0.24.0 → 0.24.2

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.
@@ -139,6 +139,8 @@ export declare enum Scope {
139
139
  TRANSLATION_MEMORIES = "tm",
140
140
  MACHINE_TRANSLATION_ENGINES = "mt",
141
141
  GLOSSARIES = "glossary",
142
+ USERS = "user",
143
+ TEAMS = "team",
142
144
  GROUPS = "group",
143
145
  PROJECTS = "project",
144
146
  TASKS = "project.task",
@@ -13,6 +13,8 @@ var Scope;
13
13
  Scope["TRANSLATION_MEMORIES"] = "tm";
14
14
  Scope["MACHINE_TRANSLATION_ENGINES"] = "mt";
15
15
  Scope["GLOSSARIES"] = "glossary";
16
+ Scope["USERS"] = "user";
17
+ Scope["TEAMS"] = "team";
16
18
  Scope["GROUPS"] = "group";
17
19
  Scope["PROJECTS"] = "project";
18
20
  Scope["TASKS"] = "project.task";
@@ -66,7 +66,7 @@ function prepareCrowdinClient(config, credentials) {
66
66
  expire: (new Date().getTime() / 1000 + newCredentials.expiresIn).toString(),
67
67
  type: credentials.type,
68
68
  });
69
- const token = (0, _1.decryptData)(config, credentials.accessToken);
69
+ const token = (0, _1.decryptData)(config, newCredentials.accessToken);
70
70
  return {
71
71
  client: new crowdin_api_client_1.default({ token, organization, baseUrl: (_b = config.crowdinUrls) === null || _b === void 0 ? void 0 : _b.apiUrl }),
72
72
  token,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crowdin/app-project-module",
3
- "version": "0.24.0",
3
+ "version": "0.24.2",
4
4
  "description": "Module that generates for you all common endpoints for serving standalone Crowdin App",
5
5
  "main": "out/index.js",
6
6
  "types": "out/index.d.ts",