@shipfox/api-integration-gitea 10.1.0 → 11.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-integration-gitea",
3
3
  "license": "MIT",
4
- "version": "10.1.0",
4
+ "version": "11.0.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "dependencies": {
21
21
  "drizzle-orm": "^0.45.2",
22
- "@shipfox/api-auth-context": "10.1.0",
22
+ "@shipfox/api-auth-context": "11.0.0",
23
23
  "@shipfox/api-integration-spi": "0.2.2",
24
24
  "@shipfox/api-integration-gitea-dto": "9.0.2",
25
25
  "@shipfox/config": "1.2.4",
@@ -116,7 +116,7 @@ describe('Gitea connection routes', () => {
116
116
  it('connects an org and returns the connection DTO', async () => {
117
117
  const app = await createTestApp();
118
118
  const workspaceId = crypto.randomUUID();
119
- authenticatedMemberships = [{workspaceId, role: 'admin'}];
119
+ authenticatedMemberships = [{workspaceId, role: 'admin', workspaceStatus: 'active'}];
120
120
 
121
121
  const res = await app.inject({
122
122
  method: 'POST',
@@ -137,7 +137,7 @@ describe('Gitea connection routes', () => {
137
137
  gitea: giteaClient({organizationExists: vi.fn(() => Promise.resolve(false))}),
138
138
  });
139
139
  const workspaceId = crypto.randomUUID();
140
- authenticatedMemberships = [{workspaceId, role: 'admin'}];
140
+ authenticatedMemberships = [{workspaceId, role: 'admin', workspaceStatus: 'active'}];
141
141
 
142
142
  const res = await app.inject({
143
143
  method: 'POST',
@@ -152,7 +152,7 @@ describe('Gitea connection routes', () => {
152
152
 
153
153
  it('returns 409 when the org is already linked to another workspace', async () => {
154
154
  const workspaceId = crypto.randomUUID();
155
- authenticatedMemberships = [{workspaceId, role: 'admin'}];
155
+ authenticatedMemberships = [{workspaceId, role: 'admin', workspaceStatus: 'active'}];
156
156
  const app = await createTestApp({
157
157
  existingConnection: {
158
158
  id: crypto.randomUUID(),
@@ -180,7 +180,7 @@ describe('Gitea connection routes', () => {
180
180
 
181
181
  it('returns 409 when connection slug allocation conflicts repeatedly', async () => {
182
182
  const workspaceId = crypto.randomUUID();
183
- authenticatedMemberships = [{workspaceId, role: 'admin'}];
183
+ authenticatedMemberships = [{workspaceId, role: 'admin', workspaceStatus: 'active'}];
184
184
  const app = await createTestApp({
185
185
  connectGiteaConnection: vi.fn(() =>
186
186
  Promise.reject(new ConnectionSlugConflictError(new Error('duplicate slug'))),