@shipfox/api-integration-core-dto 8.0.0 → 9.0.2
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 +27 -0
- package/dist/event-catalog.d.ts +15 -0
- package/dist/event-catalog.d.ts.map +1 -0
- package/dist/event-catalog.js +3 -0
- package/dist/event-catalog.js.map +1 -0
- package/dist/index.d.ts +1 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -4
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +1 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/integrations.d.ts +2 -2
- package/dist/schemas/integrations.d.ts.map +1 -1
- package/dist/schemas/integrations.js +2 -2
- package/dist/schemas/integrations.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/dist/webhooks.d.ts +0 -5
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +0 -17
- package/dist/webhooks.js.map +1 -1
- package/package.json +13 -6
- package/src/event-catalog.ts +16 -0
- package/src/index.ts +1 -4
- package/src/schemas/index.ts +1 -0
- package/src/schemas/integrations.ts +7 -2
- package/src/webhooks.test.ts +20 -1
- package/src/webhooks.ts +0 -24
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/contracts/index.d.ts +0 -4
- package/dist/contracts/index.d.ts.map +0 -1
- package/dist/contracts/index.js +0 -3
- package/dist/contracts/index.js.map +0 -1
- package/dist/contracts/integrations.d.ts +0 -206
- package/dist/contracts/integrations.d.ts.map +0 -1
- package/dist/contracts/integrations.js +0 -44
- package/dist/contracts/integrations.js.map +0 -1
- package/dist/errors.d.ts +0 -4
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -10
- package/dist/errors.js.map +0 -1
- package/dist/ports.d.ts +0 -66
- package/dist/ports.d.ts.map +0 -1
- package/dist/ports.js +0 -3
- package/dist/ports.js.map +0 -1
- package/dist/slug.d.ts +0 -7
- package/dist/slug.d.ts.map +0 -1
- package/dist/slug.js +0 -14
- package/dist/slug.js.map +0 -1
- package/src/contracts/index.ts +0 -48
- package/src/contracts/integrations.test.ts +0 -64
- package/src/contracts/integrations.ts +0 -325
- package/src/errors.ts +0 -6
- package/src/ports.ts +0 -79
- package/src/slug.test.ts +0 -32
- package/src/slug.ts +0 -26
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ shipfox-swc
|
|
2
|
-
Successfully compiled:
|
|
2
|
+
Successfully compiled: 8 files with swc (57.5ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @shipfox/api-integration-core-dto
|
|
2
2
|
|
|
3
|
+
## 9.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 4b85404: Adds versioned architecture identity to participating package artifacts during publication.
|
|
8
|
+
- Updated dependencies [4b85404]
|
|
9
|
+
- @shipfox/inter-module@0.2.2
|
|
10
|
+
|
|
11
|
+
## 9.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- 475ce59: Republishes all public packages after restoring release authorization.
|
|
16
|
+
- Updated dependencies [475ce59]
|
|
17
|
+
- @shipfox/inter-module@0.2.1
|
|
18
|
+
|
|
19
|
+
## 9.0.0
|
|
20
|
+
|
|
21
|
+
### Major Changes
|
|
22
|
+
|
|
23
|
+
- 02974d6: Removes executable policy and test fixtures from public API DTO roots.
|
|
24
|
+
- 4a6d124: Separates Integrations provider SPI contracts from the public DTO surface.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- @shipfox/inter-module@0.2.0
|
|
29
|
+
|
|
3
30
|
## 8.0.0
|
|
4
31
|
|
|
5
32
|
### Major Changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type IntegrationEventPayloadKind = 'raw-provider' | 'shipfox-normalized';
|
|
2
|
+
export interface IntegrationEventDoc {
|
|
3
|
+
name: string;
|
|
4
|
+
summary: string;
|
|
5
|
+
emittedWhen: string;
|
|
6
|
+
payloadKind: IntegrationEventPayloadKind;
|
|
7
|
+
payloadDocUrl?: string | undefined;
|
|
8
|
+
}
|
|
9
|
+
export interface IntegrationEventCatalog {
|
|
10
|
+
provider: string;
|
|
11
|
+
passthrough?: boolean | undefined;
|
|
12
|
+
upstreamEventsDocUrl?: string | undefined;
|
|
13
|
+
events: readonly IntegrationEventDoc[];
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=event-catalog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-catalog.d.ts","sourceRoot":"","sources":["../src/event-catalog.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,2BAA2B,GAAG,cAAc,GAAG,oBAAoB,CAAC;AAEhF,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,2BAA2B,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAC;CACxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/event-catalog.ts"],"sourcesContent":["export type IntegrationEventPayloadKind = 'raw-provider' | 'shipfox-normalized';\n\nexport interface IntegrationEventDoc {\n name: string;\n summary: string;\n emittedWhen: string;\n payloadKind: IntegrationEventPayloadKind;\n payloadDocUrl?: string | undefined;\n}\n\nexport interface IntegrationEventCatalog {\n provider: string;\n passthrough?: boolean | undefined;\n upstreamEventsDocUrl?: string | undefined;\n events: readonly IntegrationEventDoc[];\n}\n"],"names":[],"mappings":"AAUA,WAKC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
export * from '#
|
|
2
|
-
export * from '#errors.js';
|
|
1
|
+
export * from '#event-catalog.js';
|
|
3
2
|
export * from '#events.js';
|
|
4
|
-
export * from '#ports.js';
|
|
5
3
|
export * from '#schemas/index.js';
|
|
6
|
-
export * from '#slug.js';
|
|
7
4
|
export * from '#webhooks.js';
|
|
8
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
export * from '#
|
|
2
|
-
export * from '#errors.js';
|
|
1
|
+
export * from '#event-catalog.js';
|
|
3
2
|
export * from '#events.js';
|
|
4
|
-
export * from '#ports.js';
|
|
5
3
|
export * from '#schemas/index.js';
|
|
6
|
-
export * from '#slug.js';
|
|
7
4
|
export * from '#webhooks.js';
|
|
8
5
|
|
|
9
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from '#
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from '#event-catalog.js';\nexport * from '#events.js';\nexport * from '#schemas/index.js';\nexport * from '#webhooks.js';\n"],"names":[],"mappings":"AAAA,cAAc,oBAAoB;AAClC,cAAc,aAAa;AAC3B,cAAc,oBAAoB;AAClC,cAAc,eAAe"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { connectionSlugSchema, type IntegrationCapabilityDto, type IntegrationConnectionDto, type IntegrationConnectionLifecycleStatusDto, type IntegrationProviderDto, type IntegrationProviderKindDto, integrationCapabilitySchema, integrationConnectionDtoSchema, integrationConnectionLifecycleStatusSchema, integrationProviderDtoSchema, integrationProviderKindSchema, type ListIntegrationConnectionsQueryDto, type ListIntegrationConnectionsResponseDto, type ListIntegrationProvidersQueryDto, type ListIntegrationProvidersResponseDto, type ListRepositoriesParamsDto, type ListRepositoriesQueryDto, type ListRepositoriesResponseDto, listIntegrationConnectionsQuerySchema, listIntegrationConnectionsResponseSchema, listIntegrationProvidersQuerySchema, listIntegrationProvidersResponseSchema, listRepositoriesParamsSchema, listRepositoriesQuerySchema, listRepositoriesResponseSchema, type RepositoryDto, type RepositoryVisibilityDto, repositoryDtoSchema, repositoryVisibilitySchema, type UpdateIntegrationConnectionBodyDto, type UpdateIntegrationConnectionLifecycleStatusDto, updateIntegrationConnectionBodySchema, updateIntegrationConnectionLifecycleStatusSchema, } from './integrations.js';
|
|
1
|
+
export { CONNECTION_SLUG_MAX_LENGTH, connectionSlugSchema, type IntegrationCapabilityDto, type IntegrationConnectionDto, type IntegrationConnectionLifecycleStatusDto, type IntegrationProviderDto, type IntegrationProviderKindDto, integrationCapabilitySchema, integrationConnectionDtoSchema, integrationConnectionLifecycleStatusSchema, integrationProviderDtoSchema, integrationProviderKindSchema, type ListIntegrationConnectionsQueryDto, type ListIntegrationConnectionsResponseDto, type ListIntegrationProvidersQueryDto, type ListIntegrationProvidersResponseDto, type ListRepositoriesParamsDto, type ListRepositoriesQueryDto, type ListRepositoriesResponseDto, listIntegrationConnectionsQuerySchema, listIntegrationConnectionsResponseSchema, listIntegrationProvidersQuerySchema, listIntegrationProvidersResponseSchema, listRepositoriesParamsSchema, listRepositoriesQuerySchema, listRepositoriesResponseSchema, type RepositoryDto, type RepositoryVisibilityDto, repositoryDtoSchema, repositoryVisibilitySchema, type UpdateIntegrationConnectionBodyDto, type UpdateIntegrationConnectionLifecycleStatusDto, updateIntegrationConnectionBodySchema, updateIntegrationConnectionLifecycleStatusSchema, } from './integrations.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uCAAuC,EAC5C,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,0CAA0C,EAC1C,4BAA4B,EAC5B,6BAA6B,EAC7B,KAAK,kCAAkC,EACvC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,qCAAqC,EACrC,wCAAwC,EACxC,mCAAmC,EACnC,sCAAsC,EACtC,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,0BAA0B,EAC1B,KAAK,kCAAkC,EACvC,KAAK,6CAA6C,EAClD,qCAAqC,EACrC,gDAAgD,GACjD,MAAM,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uCAAuC,EAC5C,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,2BAA2B,EAC3B,8BAA8B,EAC9B,0CAA0C,EAC1C,4BAA4B,EAC5B,6BAA6B,EAC7B,KAAK,kCAAkC,EACvC,KAAK,qCAAqC,EAC1C,KAAK,gCAAgC,EACrC,KAAK,mCAAmC,EACxC,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,qCAAqC,EACrC,wCAAwC,EACxC,mCAAmC,EACnC,sCAAsC,EACtC,4BAA4B,EAC5B,2BAA2B,EAC3B,8BAA8B,EAC9B,KAAK,aAAa,EAClB,KAAK,uBAAuB,EAC5B,mBAAmB,EACnB,0BAA0B,EAC1B,KAAK,kCAAkC,EACvC,KAAK,6CAA6C,EAClD,qCAAqC,EACrC,gDAAgD,GACjD,MAAM,mBAAmB,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { connectionSlugSchema, integrationCapabilitySchema, integrationConnectionDtoSchema, integrationConnectionLifecycleStatusSchema, integrationProviderDtoSchema, integrationProviderKindSchema, listIntegrationConnectionsQuerySchema, listIntegrationConnectionsResponseSchema, listIntegrationProvidersQuerySchema, listIntegrationProvidersResponseSchema, listRepositoriesParamsSchema, listRepositoriesQuerySchema, listRepositoriesResponseSchema, repositoryDtoSchema, repositoryVisibilitySchema, updateIntegrationConnectionBodySchema, updateIntegrationConnectionLifecycleStatusSchema } from './integrations.js';
|
|
1
|
+
export { CONNECTION_SLUG_MAX_LENGTH, connectionSlugSchema, integrationCapabilitySchema, integrationConnectionDtoSchema, integrationConnectionLifecycleStatusSchema, integrationProviderDtoSchema, integrationProviderKindSchema, listIntegrationConnectionsQuerySchema, listIntegrationConnectionsResponseSchema, listIntegrationProvidersQuerySchema, listIntegrationProvidersResponseSchema, listRepositoriesParamsSchema, listRepositoriesQuerySchema, listRepositoriesResponseSchema, repositoryDtoSchema, repositoryVisibilitySchema, updateIntegrationConnectionBodySchema, updateIntegrationConnectionLifecycleStatusSchema } from './integrations.js';
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n connectionSlugSchema,\n type IntegrationCapabilityDto,\n type IntegrationConnectionDto,\n type IntegrationConnectionLifecycleStatusDto,\n type IntegrationProviderDto,\n type IntegrationProviderKindDto,\n integrationCapabilitySchema,\n integrationConnectionDtoSchema,\n integrationConnectionLifecycleStatusSchema,\n integrationProviderDtoSchema,\n integrationProviderKindSchema,\n type ListIntegrationConnectionsQueryDto,\n type ListIntegrationConnectionsResponseDto,\n type ListIntegrationProvidersQueryDto,\n type ListIntegrationProvidersResponseDto,\n type ListRepositoriesParamsDto,\n type ListRepositoriesQueryDto,\n type ListRepositoriesResponseDto,\n listIntegrationConnectionsQuerySchema,\n listIntegrationConnectionsResponseSchema,\n listIntegrationProvidersQuerySchema,\n listIntegrationProvidersResponseSchema,\n listRepositoriesParamsSchema,\n listRepositoriesQuerySchema,\n listRepositoriesResponseSchema,\n type RepositoryDto,\n type RepositoryVisibilityDto,\n repositoryDtoSchema,\n repositoryVisibilitySchema,\n type UpdateIntegrationConnectionBodyDto,\n type UpdateIntegrationConnectionLifecycleStatusDto,\n updateIntegrationConnectionBodySchema,\n updateIntegrationConnectionLifecycleStatusSchema,\n} from './integrations.js';\n"],"names":["connectionSlugSchema","integrationCapabilitySchema","integrationConnectionDtoSchema","integrationConnectionLifecycleStatusSchema","integrationProviderDtoSchema","integrationProviderKindSchema","listIntegrationConnectionsQuerySchema","listIntegrationConnectionsResponseSchema","listIntegrationProvidersQuerySchema","listIntegrationProvidersResponseSchema","listRepositoriesParamsSchema","listRepositoriesQuerySchema","listRepositoriesResponseSchema","repositoryDtoSchema","repositoryVisibilitySchema","updateIntegrationConnectionBodySchema","updateIntegrationConnectionLifecycleStatusSchema"],"mappings":"AAAA,SACEA,oBAAoB,EAMpBC,2BAA2B,EAC3BC,8BAA8B,EAC9BC,0CAA0C,EAC1CC,4BAA4B,EAC5BC,6BAA6B,EAQ7BC,qCAAqC,EACrCC,wCAAwC,EACxCC,mCAAmC,EACnCC,sCAAsC,EACtCC,4BAA4B,EAC5BC,2BAA2B,EAC3BC,8BAA8B,EAG9BC,mBAAmB,EACnBC,0BAA0B,EAG1BC,qCAAqC,EACrCC,gDAAgD,QAC3C,oBAAoB"}
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n CONNECTION_SLUG_MAX_LENGTH,\n connectionSlugSchema,\n type IntegrationCapabilityDto,\n type IntegrationConnectionDto,\n type IntegrationConnectionLifecycleStatusDto,\n type IntegrationProviderDto,\n type IntegrationProviderKindDto,\n integrationCapabilitySchema,\n integrationConnectionDtoSchema,\n integrationConnectionLifecycleStatusSchema,\n integrationProviderDtoSchema,\n integrationProviderKindSchema,\n type ListIntegrationConnectionsQueryDto,\n type ListIntegrationConnectionsResponseDto,\n type ListIntegrationProvidersQueryDto,\n type ListIntegrationProvidersResponseDto,\n type ListRepositoriesParamsDto,\n type ListRepositoriesQueryDto,\n type ListRepositoriesResponseDto,\n listIntegrationConnectionsQuerySchema,\n listIntegrationConnectionsResponseSchema,\n listIntegrationProvidersQuerySchema,\n listIntegrationProvidersResponseSchema,\n listRepositoriesParamsSchema,\n listRepositoriesQuerySchema,\n listRepositoriesResponseSchema,\n type RepositoryDto,\n type RepositoryVisibilityDto,\n repositoryDtoSchema,\n repositoryVisibilitySchema,\n type UpdateIntegrationConnectionBodyDto,\n type UpdateIntegrationConnectionLifecycleStatusDto,\n updateIntegrationConnectionBodySchema,\n updateIntegrationConnectionLifecycleStatusSchema,\n} from './integrations.js';\n"],"names":["CONNECTION_SLUG_MAX_LENGTH","connectionSlugSchema","integrationCapabilitySchema","integrationConnectionDtoSchema","integrationConnectionLifecycleStatusSchema","integrationProviderDtoSchema","integrationProviderKindSchema","listIntegrationConnectionsQuerySchema","listIntegrationConnectionsResponseSchema","listIntegrationProvidersQuerySchema","listIntegrationProvidersResponseSchema","listRepositoriesParamsSchema","listRepositoriesQuerySchema","listRepositoriesResponseSchema","repositoryDtoSchema","repositoryVisibilitySchema","updateIntegrationConnectionBodySchema","updateIntegrationConnectionLifecycleStatusSchema"],"mappings":"AAAA,SACEA,0BAA0B,EAC1BC,oBAAoB,EAMpBC,2BAA2B,EAC3BC,8BAA8B,EAC9BC,0CAA0C,EAC1CC,4BAA4B,EAC5BC,6BAA6B,EAQ7BC,qCAAqC,EACrCC,wCAAwC,EACxCC,mCAAmC,EACnCC,sCAAsC,EACtCC,4BAA4B,EAC5BC,2BAA2B,EAC3BC,8BAA8B,EAG9BC,mBAAmB,EACnBC,0BAA0B,EAG1BC,qCAAqC,EACrCC,gDAAgD,QAC3C,oBAAoB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
export declare const CONNECTION_SLUG_MAX_LENGTH = 100;
|
|
3
|
+
export declare const connectionSlugSchema: z.ZodString;
|
|
4
4
|
export declare const integrationProviderKindSchema: z.ZodString;
|
|
5
5
|
export type IntegrationProviderKindDto = z.infer<typeof integrationProviderKindSchema>;
|
|
6
6
|
export declare const integrationCapabilitySchema: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/schemas/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/schemas/integrations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,0BAA0B,MAAM,CAAC;AAE9C,eAAO,MAAM,oBAAoB,aAIQ,CAAC;AAE1C,eAAO,MAAM,6BAA6B,aAAoB,CAAC;AAC/D,MAAM,MAAM,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C7C,CAAC;AAEF,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;iBAEnD,CAAC;AACH,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACzD,OAAO,wCAAwC,CAChD,CAAC;AAEF,eAAO,MAAM,qCAAqC;;;;;iBAEhD,CAAC;AACH,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,qCAAqC,CAC7C,CAAC;AAEF,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAErF,eAAO,MAAM,2BAA2B;;;;iBAItC,CAAC;AACH,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEnF,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;iBAU9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;iBAGzC,CAAC;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
export const CONNECTION_SLUG_MAX_LENGTH = 100;
|
|
3
|
+
export const connectionSlugSchema = z.string().min(1).max(CONNECTION_SLUG_MAX_LENGTH).regex(/^[a-z0-9]+(?:[_-][a-z0-9]+)*$/);
|
|
4
4
|
export const integrationProviderKindSchema = z.string().min(1);
|
|
5
5
|
export const integrationCapabilitySchema = z.enum([
|
|
6
6
|
'source_control',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/integrations.ts"],"sourcesContent":["import {z} from 'zod';\
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/integrations.ts"],"sourcesContent":["import {z} from 'zod';\n\nexport const CONNECTION_SLUG_MAX_LENGTH = 100;\n\nexport const connectionSlugSchema = z\n .string()\n .min(1)\n .max(CONNECTION_SLUG_MAX_LENGTH)\n .regex(/^[a-z0-9]+(?:[_-][a-z0-9]+)*$/);\n\nexport const integrationProviderKindSchema = z.string().min(1);\nexport type IntegrationProviderKindDto = z.infer<typeof integrationProviderKindSchema>;\n\nexport const integrationCapabilitySchema = z.enum(['source_control', 'agent_tools']);\nexport type IntegrationCapabilityDto = z.infer<typeof integrationCapabilitySchema>;\n\nexport const integrationConnectionLifecycleStatusSchema = z.enum(['active', 'disabled', 'error']);\nexport type IntegrationConnectionLifecycleStatusDto = z.infer<\n typeof integrationConnectionLifecycleStatusSchema\n>;\nexport const updateIntegrationConnectionLifecycleStatusSchema = z.enum(['active', 'disabled']);\nexport type UpdateIntegrationConnectionLifecycleStatusDto = z.infer<\n typeof updateIntegrationConnectionLifecycleStatusSchema\n>;\n\nexport const repositoryVisibilitySchema = z.enum(['public', 'private', 'internal', 'unknown']);\nexport type RepositoryVisibilityDto = z.infer<typeof repositoryVisibilitySchema>;\n\nexport const integrationProviderDtoSchema = z.object({\n provider: integrationProviderKindSchema,\n display_name: z.string(),\n capabilities: z.array(integrationCapabilitySchema),\n});\nexport type IntegrationProviderDto = z.infer<typeof integrationProviderDtoSchema>;\n\nexport const listIntegrationProvidersQuerySchema = z.object({\n capability: integrationCapabilitySchema.optional(),\n});\nexport type ListIntegrationProvidersQueryDto = z.infer<typeof listIntegrationProvidersQuerySchema>;\n\nexport const listIntegrationProvidersResponseSchema = z.object({\n providers: z.array(integrationProviderDtoSchema),\n});\nexport type ListIntegrationProvidersResponseDto = z.infer<\n typeof listIntegrationProvidersResponseSchema\n>;\n\nexport const integrationConnectionDtoSchema = z.object({\n id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n provider: integrationProviderKindSchema,\n external_account_id: z.string(),\n slug: connectionSlugSchema,\n display_name: z.string(),\n lifecycle_status: integrationConnectionLifecycleStatusSchema,\n capabilities: z.array(integrationCapabilitySchema),\n external_url: z.string().url().optional(),\n created_at: z.string(),\n updated_at: z.string(),\n});\nexport type IntegrationConnectionDto = z.infer<typeof integrationConnectionDtoSchema>;\n\nexport const listIntegrationConnectionsQuerySchema = z.object({\n workspace_id: z.string().uuid(),\n capability: integrationCapabilitySchema.optional(),\n});\nexport type ListIntegrationConnectionsQueryDto = z.infer<\n typeof listIntegrationConnectionsQuerySchema\n>;\n\nexport const listIntegrationConnectionsResponseSchema = z.object({\n connections: z.array(integrationConnectionDtoSchema),\n});\nexport type ListIntegrationConnectionsResponseDto = z.infer<\n typeof listIntegrationConnectionsResponseSchema\n>;\n\nexport const updateIntegrationConnectionBodySchema = z.object({\n lifecycle_status: updateIntegrationConnectionLifecycleStatusSchema,\n});\nexport type UpdateIntegrationConnectionBodyDto = z.infer<\n typeof updateIntegrationConnectionBodySchema\n>;\n\nexport const listRepositoriesParamsSchema = z.object({\n connectionId: z.string().uuid(),\n});\nexport type ListRepositoriesParamsDto = z.infer<typeof listRepositoriesParamsSchema>;\n\nexport const listRepositoriesQuerySchema = z.object({\n limit: z.coerce.number().int().min(1).max(100).default(50),\n cursor: z.string().optional(),\n search: z.string().min(1).max(100).optional(),\n});\nexport type ListRepositoriesQueryDto = z.infer<typeof listRepositoriesQuerySchema>;\n\nexport const repositoryDtoSchema = z.object({\n connection_id: z.string().uuid(),\n external_repository_id: z.string(),\n owner: z.string(),\n name: z.string(),\n full_name: z.string(),\n default_branch: z.string(),\n visibility: repositoryVisibilitySchema,\n clone_url: z.string(),\n html_url: z.string(),\n});\nexport type RepositoryDto = z.infer<typeof repositoryDtoSchema>;\n\nexport const listRepositoriesResponseSchema = z.object({\n repositories: z.array(repositoryDtoSchema),\n next_cursor: z.string().nullable(),\n});\nexport type ListRepositoriesResponseDto = z.infer<typeof listRepositoriesResponseSchema>;\n"],"names":["z","CONNECTION_SLUG_MAX_LENGTH","connectionSlugSchema","string","min","max","regex","integrationProviderKindSchema","integrationCapabilitySchema","enum","integrationConnectionLifecycleStatusSchema","updateIntegrationConnectionLifecycleStatusSchema","repositoryVisibilitySchema","integrationProviderDtoSchema","object","provider","display_name","capabilities","array","listIntegrationProvidersQuerySchema","capability","optional","listIntegrationProvidersResponseSchema","providers","integrationConnectionDtoSchema","id","uuid","workspace_id","external_account_id","slug","lifecycle_status","external_url","url","created_at","updated_at","listIntegrationConnectionsQuerySchema","listIntegrationConnectionsResponseSchema","connections","updateIntegrationConnectionBodySchema","listRepositoriesParamsSchema","connectionId","listRepositoriesQuerySchema","limit","coerce","number","int","default","cursor","search","repositoryDtoSchema","connection_id","external_repository_id","owner","name","full_name","default_branch","visibility","clone_url","html_url","listRepositoriesResponseSchema","repositories","next_cursor","nullable"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,6BAA6B,IAAI;AAE9C,OAAO,MAAMC,uBAAuBF,EACjCG,MAAM,GACNC,GAAG,CAAC,GACJC,GAAG,CAACJ,4BACJK,KAAK,CAAC,iCAAiC;AAE1C,OAAO,MAAMC,gCAAgCP,EAAEG,MAAM,GAAGC,GAAG,CAAC,GAAG;AAG/D,OAAO,MAAMI,8BAA8BR,EAAES,IAAI,CAAC;IAAC;IAAkB;CAAc,EAAE;AAGrF,OAAO,MAAMC,6CAA6CV,EAAES,IAAI,CAAC;IAAC;IAAU;IAAY;CAAQ,EAAE;AAIlG,OAAO,MAAME,mDAAmDX,EAAES,IAAI,CAAC;IAAC;IAAU;CAAW,EAAE;AAK/F,OAAO,MAAMG,6BAA6BZ,EAAES,IAAI,CAAC;IAAC;IAAU;IAAW;IAAY;CAAU,EAAE;AAG/F,OAAO,MAAMI,+BAA+Bb,EAAEc,MAAM,CAAC;IACnDC,UAAUR;IACVS,cAAchB,EAAEG,MAAM;IACtBc,cAAcjB,EAAEkB,KAAK,CAACV;AACxB,GAAG;AAG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