@budibase/worker 2.23.6 → 2.23.9
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/worker",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.23.
|
|
4
|
+
"version": "2.23.9",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"author": "Budibase",
|
|
38
38
|
"license": "GPL-3.0",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@budibase/backend-core": "2.23.
|
|
41
|
-
"@budibase/pro": "2.23.
|
|
42
|
-
"@budibase/string-templates": "2.23.
|
|
43
|
-
"@budibase/types": "2.23.
|
|
40
|
+
"@budibase/backend-core": "2.23.9",
|
|
41
|
+
"@budibase/pro": "2.23.9",
|
|
42
|
+
"@budibase/string-templates": "2.23.9",
|
|
43
|
+
"@budibase/types": "2.23.9",
|
|
44
44
|
"@koa/router": "8.0.8",
|
|
45
45
|
"@techpass/passport-openidconnect": "0.3.2",
|
|
46
46
|
"@types/global-agent": "2.1.1",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "90609c97ad49b770b3b5b8092bb724041339e28e"
|
|
112
112
|
}
|
|
@@ -116,7 +116,8 @@ const parseBooleanParam = (param: any) => {
|
|
|
116
116
|
export const adminUser = async (
|
|
117
117
|
ctx: Ctx<CreateAdminUserRequest, CreateAdminUserResponse>
|
|
118
118
|
) => {
|
|
119
|
-
const { email, password, tenantId, ssoId } =
|
|
119
|
+
const { email, password, tenantId, ssoId, givenName, familyName } =
|
|
120
|
+
ctx.request.body
|
|
120
121
|
|
|
121
122
|
if (await platform.tenants.exists(tenantId)) {
|
|
122
123
|
ctx.throw(403, "Organisation already exists.")
|
|
@@ -151,6 +152,8 @@ export const adminUser = async (
|
|
|
151
152
|
ssoId,
|
|
152
153
|
hashPassword,
|
|
153
154
|
requirePassword,
|
|
155
|
+
firstName: givenName,
|
|
156
|
+
lastName: familyName,
|
|
154
157
|
})
|
|
155
158
|
|
|
156
159
|
// events
|
|
@@ -704,7 +704,6 @@ describe("scim", () => {
|
|
|
704
704
|
expect(response).toEqual({
|
|
705
705
|
Resources: expect.arrayContaining(
|
|
706
706
|
groups.map(g => {
|
|
707
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
708
707
|
const { members, ...groupData } = g
|
|
709
708
|
return groupData
|
|
710
709
|
})
|
|
@@ -724,7 +723,6 @@ describe("scim", () => {
|
|
|
724
723
|
expect(response).toEqual({
|
|
725
724
|
Resources: expect.arrayContaining(
|
|
726
725
|
groups.map(g => {
|
|
727
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
728
726
|
const { members, displayName, ...groupData } = g
|
|
729
727
|
return groupData
|
|
730
728
|
})
|
|
@@ -874,7 +872,6 @@ describe("scim", () => {
|
|
|
874
872
|
qs: "excludedAttributes=members",
|
|
875
873
|
})
|
|
876
874
|
|
|
877
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
878
875
|
const { members, ...expectedResponse } = group
|
|
879
876
|
|
|
880
877
|
expect(response).toEqual(expectedResponse)
|
package/src/features.ts
CHANGED
package/src/tests/api/users.ts
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
InviteUsersRequest,
|
|
5
5
|
User,
|
|
6
6
|
CreateAdminUserRequest,
|
|
7
|
-
|
|
7
|
+
SearchFilters,
|
|
8
8
|
InviteUsersResponse,
|
|
9
9
|
} from "@budibase/types"
|
|
10
10
|
import structures from "../structures"
|
|
@@ -150,7 +150,7 @@ export class UserAPI extends TestAPI {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
searchUsers = (
|
|
153
|
-
{ query }: { query?:
|
|
153
|
+
{ query }: { query?: SearchFilters },
|
|
154
154
|
opts?: { status?: number; noHeaders?: boolean }
|
|
155
155
|
) => {
|
|
156
156
|
const req = this.request
|