@shipfox/api-secrets 10.2.0 → 12.0.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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipfox/api-secrets",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "12.0.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"drizzle-orm": "^0.45.2",
|
|
26
26
|
"zod": "^4.4.3",
|
|
27
|
-
"@shipfox/api-auth-context": "
|
|
28
|
-
"@shipfox/api-projects-dto": "
|
|
29
|
-
"@shipfox/api-secrets-dto": "
|
|
27
|
+
"@shipfox/api-auth-context": "12.0.0",
|
|
28
|
+
"@shipfox/api-projects-dto": "12.0.0",
|
|
29
|
+
"@shipfox/api-secrets-dto": "12.0.0",
|
|
30
|
+
"@shipfox/inter-module": "0.2.3",
|
|
30
31
|
"@shipfox/config": "1.2.4",
|
|
31
|
-
"@shipfox/
|
|
32
|
-
"@shipfox/node-
|
|
33
|
-
"@shipfox/node-fastify": "0.4.0",
|
|
34
|
-
"@shipfox/node-module": "1.0.4",
|
|
32
|
+
"@shipfox/node-drizzle": "0.3.5",
|
|
33
|
+
"@shipfox/node-module": "1.0.5",
|
|
35
34
|
"@shipfox/node-opentelemetry": "0.6.3",
|
|
35
|
+
"@shipfox/node-fastify": "0.4.1",
|
|
36
36
|
"@shipfox/node-outbox": "0.2.6",
|
|
37
|
-
"@shipfox/node-postgres": "0.
|
|
37
|
+
"@shipfox/node-postgres": "0.5.0"
|
|
38
38
|
},
|
|
39
39
|
"imports": {
|
|
40
40
|
"#*": "./dist/*"
|
|
@@ -25,8 +25,14 @@ const requireProjectForWorkspace = vi.fn();
|
|
|
25
25
|
const projects = createFakeInterModuleClients({
|
|
26
26
|
projects: defineInterModulePresentation(projectsInterModuleContract, {
|
|
27
27
|
getProjectById: () => ({project: null}),
|
|
28
|
+
getProjectBySource: () => ({project: null}),
|
|
28
29
|
getWorkspaceProjectCounts: () => ({counts: []}),
|
|
29
30
|
requireProjectForWorkspace: async (input) => await requireProjectForWorkspace(input),
|
|
31
|
+
resolveCheckoutTarget: () => ({
|
|
32
|
+
projectId: crypto.randomUUID(),
|
|
33
|
+
connectionId: crypto.randomUUID(),
|
|
34
|
+
externalRepositoryId: 'repo',
|
|
35
|
+
}),
|
|
30
36
|
}),
|
|
31
37
|
}).projects;
|
|
32
38
|
|
|
@@ -61,7 +67,7 @@ describe('secrets management routes', () => {
|
|
|
61
67
|
await closeApp();
|
|
62
68
|
workspaceId = crypto.randomUUID();
|
|
63
69
|
projectId = crypto.randomUUID();
|
|
64
|
-
authenticatedMemberships = [{workspaceId, role: 'admin'}];
|
|
70
|
+
authenticatedMemberships = [{workspaceId, role: 'admin', workspaceStatus: 'active'}];
|
|
65
71
|
requireProjectForWorkspace.mockResolvedValue({
|
|
66
72
|
project: {
|
|
67
73
|
id: projectId,
|
|
@@ -108,7 +114,13 @@ describe('secrets management routes', () => {
|
|
|
108
114
|
});
|
|
109
115
|
|
|
110
116
|
it('requires admin membership for writes', async () => {
|
|
111
|
-
authenticatedMemberships = [
|
|
117
|
+
authenticatedMemberships = [
|
|
118
|
+
{
|
|
119
|
+
workspaceId,
|
|
120
|
+
role: 'viewer' as UserContextMembership['role'],
|
|
121
|
+
workspaceStatus: 'active',
|
|
122
|
+
},
|
|
123
|
+
];
|
|
112
124
|
|
|
113
125
|
const res = await app.inject({
|
|
114
126
|
method: 'PUT',
|