@shipfox/api-server 4.0.0 → 5.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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +28 -0
- package/dist/modules.d.ts.map +1 -1
- package/dist/modules.js +14 -0
- package/dist/modules.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +29 -45
- package/src/modules.test.ts +22 -0
- package/src/modules.ts +8 -0
- package/tsconfig.build.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@shipfox/api-server",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "5.0.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/ShipfoxHQ/shipfox.git",
|
|
@@ -12,61 +12,45 @@
|
|
|
12
12
|
"main": "dist/index.js",
|
|
13
13
|
"types": "dist/index.d.ts",
|
|
14
14
|
"imports": {
|
|
15
|
-
"#*":
|
|
16
|
-
"workspace-source": "./src/*",
|
|
17
|
-
"development": "./src/*",
|
|
18
|
-
"default": "./dist/*"
|
|
19
|
-
}
|
|
15
|
+
"#*": "./dist/*"
|
|
20
16
|
},
|
|
21
17
|
"exports": {
|
|
22
18
|
".": {
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
"default": "./src/index.ts"
|
|
26
|
-
},
|
|
27
|
-
"default": {
|
|
28
|
-
"types": "./dist/index.d.ts",
|
|
29
|
-
"default": "./dist/index.js"
|
|
30
|
-
}
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"default": "./dist/index.js"
|
|
31
21
|
},
|
|
32
22
|
"./instrumentation": {
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
"default": "./src/instrumentation.ts"
|
|
36
|
-
},
|
|
37
|
-
"default": {
|
|
38
|
-
"types": "./dist/instrumentation.d.ts",
|
|
39
|
-
"default": "./dist/instrumentation.js"
|
|
40
|
-
}
|
|
23
|
+
"types": "./dist/instrumentation.d.ts",
|
|
24
|
+
"default": "./dist/instrumentation.js"
|
|
41
25
|
}
|
|
42
26
|
},
|
|
43
27
|
"dependencies": {
|
|
44
|
-
"@shipfox/annotations": "
|
|
45
|
-
"@shipfox/api-agent": "
|
|
46
|
-
"@shipfox/api-auth": "
|
|
47
|
-
"@shipfox/api-definitions": "
|
|
48
|
-
"@shipfox/api-dispatcher": "
|
|
49
|
-
"@shipfox/api-integration-core": "
|
|
50
|
-
"@shipfox/api-logs": "
|
|
51
|
-
"@shipfox/api-projects": "
|
|
52
|
-
"@shipfox/api-runners": "
|
|
53
|
-
"@shipfox/api-secrets": "
|
|
54
|
-
"@shipfox/api-triggers": "
|
|
55
|
-
"@shipfox/api-workflows": "
|
|
56
|
-
"@shipfox/api-workspaces": "
|
|
57
|
-
"@shipfox/config": "1.2.
|
|
58
|
-
"@shipfox/node-error-monitoring": "0.1.
|
|
59
|
-
"@shipfox/node-fastify": "0.2.
|
|
60
|
-
"@shipfox/node-module": "0.3.
|
|
61
|
-
"@shipfox/node-opentelemetry": "0.5.
|
|
62
|
-
"@shipfox/node-postgres": "0.4.
|
|
28
|
+
"@shipfox/annotations": "5.0.0",
|
|
29
|
+
"@shipfox/api-agent": "5.0.0",
|
|
30
|
+
"@shipfox/api-auth": "5.0.0",
|
|
31
|
+
"@shipfox/api-definitions": "5.0.0",
|
|
32
|
+
"@shipfox/api-dispatcher": "5.0.0",
|
|
33
|
+
"@shipfox/api-integration-core": "5.0.0",
|
|
34
|
+
"@shipfox/api-logs": "5.0.0",
|
|
35
|
+
"@shipfox/api-projects": "5.0.0",
|
|
36
|
+
"@shipfox/api-runners": "5.0.0",
|
|
37
|
+
"@shipfox/api-secrets": "5.0.0",
|
|
38
|
+
"@shipfox/api-triggers": "5.0.0",
|
|
39
|
+
"@shipfox/api-workflows": "5.0.0",
|
|
40
|
+
"@shipfox/api-workspaces": "5.0.0",
|
|
41
|
+
"@shipfox/config": "1.2.2",
|
|
42
|
+
"@shipfox/node-error-monitoring": "0.1.3",
|
|
43
|
+
"@shipfox/node-fastify": "0.2.3",
|
|
44
|
+
"@shipfox/node-module": "0.3.2",
|
|
45
|
+
"@shipfox/node-opentelemetry": "0.5.2",
|
|
46
|
+
"@shipfox/node-postgres": "0.4.2"
|
|
63
47
|
},
|
|
64
48
|
"devDependencies": {
|
|
65
|
-
"@shipfox/biome": "1.8.
|
|
66
|
-
"@shipfox/swc": "1.2.
|
|
49
|
+
"@shipfox/biome": "1.8.2",
|
|
50
|
+
"@shipfox/swc": "1.2.6",
|
|
67
51
|
"@shipfox/ts-config": "1.3.8",
|
|
68
|
-
"@shipfox/typescript": "1.1.
|
|
69
|
-
"@shipfox/vitest": "1.2.
|
|
52
|
+
"@shipfox/typescript": "1.1.7",
|
|
53
|
+
"@shipfox/vitest": "1.2.3"
|
|
70
54
|
},
|
|
71
55
|
"scripts": {
|
|
72
56
|
"build": "shipfox-swc",
|
package/src/modules.test.ts
CHANGED
|
@@ -107,6 +107,11 @@ describe('defaultModules', () => {
|
|
|
107
107
|
getSecret: expect.any(Function),
|
|
108
108
|
setSecrets: expect.any(Function),
|
|
109
109
|
},
|
|
110
|
+
jira: {
|
|
111
|
+
deleteSecrets: expect.any(Function),
|
|
112
|
+
getSecret: expect.any(Function),
|
|
113
|
+
setSecrets: expect.any(Function),
|
|
114
|
+
},
|
|
110
115
|
slack: {
|
|
111
116
|
deleteSecrets: expect.any(Function),
|
|
112
117
|
getSecret: expect.any(Function),
|
|
@@ -123,6 +128,11 @@ describe('defaultModules', () => {
|
|
|
123
128
|
getSecret: (params: {namespace: string}) => unknown;
|
|
124
129
|
setSecrets: (params: {namespace: string}) => unknown;
|
|
125
130
|
};
|
|
131
|
+
jira: {
|
|
132
|
+
deleteSecrets: (params: {namespace: string}) => unknown;
|
|
133
|
+
getSecret: (params: {namespace: string}) => unknown;
|
|
134
|
+
setSecrets: (params: {namespace: string}) => unknown;
|
|
135
|
+
};
|
|
126
136
|
slack: {
|
|
127
137
|
deleteSecrets: (params: {namespace: string}) => unknown;
|
|
128
138
|
getSecret: (params: {namespace: string}) => unknown;
|
|
@@ -133,6 +143,9 @@ describe('defaultModules', () => {
|
|
|
133
143
|
integrationsOptions.secrets.linear.getSecret({namespace: 'workspace'});
|
|
134
144
|
integrationsOptions.secrets.linear.setSecrets({namespace: 'workspace'});
|
|
135
145
|
integrationsOptions.secrets.linear.deleteSecrets({namespace: 'workspace'});
|
|
146
|
+
integrationsOptions.secrets.jira.getSecret({namespace: 'workspace'});
|
|
147
|
+
integrationsOptions.secrets.jira.setSecrets({namespace: 'workspace'});
|
|
148
|
+
integrationsOptions.secrets.jira.deleteSecrets({namespace: 'workspace'});
|
|
136
149
|
integrationsOptions.secrets.slack.getSecret({namespace: 'workspace'});
|
|
137
150
|
integrationsOptions.secrets.slack.setSecrets({namespace: 'workspace'});
|
|
138
151
|
integrationsOptions.secrets.slack.deleteSecrets({namespace: 'workspace'});
|
|
@@ -146,6 +159,15 @@ describe('defaultModules', () => {
|
|
|
146
159
|
expect(mocks.deleteSecrets).toHaveBeenCalledWith({
|
|
147
160
|
namespace: 'system/integrations/linear/workspace',
|
|
148
161
|
});
|
|
162
|
+
expect(mocks.getSecret).toHaveBeenCalledWith({
|
|
163
|
+
namespace: 'system/integrations/jira/workspace',
|
|
164
|
+
});
|
|
165
|
+
expect(mocks.setSecrets).toHaveBeenCalledWith({
|
|
166
|
+
namespace: 'system/integrations/jira/workspace',
|
|
167
|
+
});
|
|
168
|
+
expect(mocks.deleteSecrets).toHaveBeenCalledWith({
|
|
169
|
+
namespace: 'system/integrations/jira/workspace',
|
|
170
|
+
});
|
|
149
171
|
expect(mocks.getSecret).toHaveBeenCalledWith({
|
|
150
172
|
namespace: 'system/integrations/slack/workspace',
|
|
151
173
|
});
|
package/src/modules.ts
CHANGED
|
@@ -45,6 +45,14 @@ export async function defaultModules(): Promise<ShipfoxModule[]> {
|
|
|
45
45
|
namespace: `system/integrations/linear/${params.namespace}`,
|
|
46
46
|
}),
|
|
47
47
|
},
|
|
48
|
+
jira: {
|
|
49
|
+
getSecret: (params) =>
|
|
50
|
+
getSecret({...params, namespace: `system/integrations/jira/${params.namespace}`}),
|
|
51
|
+
setSecrets: (params) =>
|
|
52
|
+
setSecrets({...params, namespace: `system/integrations/jira/${params.namespace}`}),
|
|
53
|
+
deleteSecrets: (params) =>
|
|
54
|
+
deleteSecrets({...params, namespace: `system/integrations/jira/${params.namespace}`}),
|
|
55
|
+
},
|
|
48
56
|
slack: {
|
|
49
57
|
getSecret: (params) =>
|
|
50
58
|
getSecret({
|