@fonoster/identity 0.16.8 → 0.17.0

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Fonoster Inc
3
+ Copyright (c) 2026 Fonoster Inc
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
@@ -53,7 +53,7 @@ function createListApiKeys(prisma) {
53
53
  const items = keys.map((key) => (Object.assign(Object.assign({}, key), { role: key.role })));
54
54
  const response = {
55
55
  items,
56
- nextPageToken: (_a = items[items.length - 1]) === null || _a === void 0 ? void 0 : _a.ref
56
+ nextPageToken: items.length < pageSize ? undefined : (_a = items[items.length - 1]) === null || _a === void 0 ? void 0 : _a.ref
57
57
  };
58
58
  callback(null, response);
59
59
  });
@@ -58,7 +58,7 @@ function createListWorkspaceMembers(prisma) {
58
58
  items: items
59
59
  .map((item) => (Object.assign(Object.assign({}, item), { name: item.user.name, email: item.user.email, role: item.role, status: item.status })))
60
60
  .map(common_2.datesMapper),
61
- nextPageToken: (_a = items[items.length - 1]) === null || _a === void 0 ? void 0 : _a.ref
61
+ nextPageToken: items.length < pageSize ? undefined : (_a = items[items.length - 1]) === null || _a === void 0 ? void 0 : _a.ref
62
62
  });
63
63
  });
64
64
  return (0, common_1.withErrorHandlingAndValidation)(listWorkspaceMembers, common_1.Validators.listRequestSchema);
@@ -35,7 +35,7 @@ const getUserRefFromToken_1 = require("../utils/getUserRefFromToken");
35
35
  const logger = (0, logger_1.getLogger)({ service: "identity", filePath: __filename });
36
36
  function createListWorkspaces(prisma) {
37
37
  const listWorkspaces = (call, callback) => __awaiter(this, void 0, void 0, function* () {
38
- var _a, _b;
38
+ var _a;
39
39
  const token = (0, common_1.getTokenFromCall)(call);
40
40
  const userRef = (0, getUserRefFromToken_1.getUserRefFromToken)(token);
41
41
  const access = (0, common_1.decodeToken)(token);
@@ -77,7 +77,7 @@ function createListWorkspaces(prisma) {
77
77
  });
78
78
  callback(null, {
79
79
  items: items.map(common_1.datesMapper),
80
- nextPageToken: (_b = items[items.length - 1]) === null || _b === void 0 ? void 0 : _b.ref
80
+ nextPageToken: undefined
81
81
  });
82
82
  });
83
83
  return (0, common_1.withErrorHandlingAndValidation)(listWorkspaces, common_1.Validators.listRequestSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/identity",
3
- "version": "0.16.8",
3
+ "version": "0.17.0",
4
4
  "description": "Identity service for Fonoster",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -20,9 +20,9 @@
20
20
  "fonoster": "./dist/index.js"
21
21
  },
22
22
  "dependencies": {
23
- "@fonoster/common": "^0.16.8",
24
- "@fonoster/logger": "^0.16.7",
25
- "@fonoster/types": "^0.16.7",
23
+ "@fonoster/common": "^0.17.0",
24
+ "@fonoster/logger": "^0.17.0",
25
+ "@fonoster/types": "^0.17.0",
26
26
  "@grpc/grpc-js": "~1.10.6",
27
27
  "@prisma/client": "^6.8.2",
28
28
  "jsonwebtoken": "^9.0.2",
@@ -48,5 +48,5 @@
48
48
  "devDependencies": {
49
49
  "@types/jsonwebtoken": "^9.0.6"
50
50
  },
51
- "gitHead": "5972440bc8106a5db4b3536129b60d1df30fe6b3"
51
+ "gitHead": "4d1a9afaec6f294184386e009d1a4e292fb3583b"
52
52
  }