@shipfox/api-projects-dto 10.1.0 → 12.2.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 +27 -0
- package/dist/e2e/project.d.ts +2 -0
- package/dist/e2e/project.d.ts.map +1 -1
- package/dist/e2e/project.js +2 -1
- package/dist/e2e/project.js.map +1 -1
- package/dist/events.d.ts +46 -6
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +17 -1
- package/dist/events.js.map +1 -1
- package/dist/inter-module.d.ts +78 -12
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/inter-module.js +54 -0
- package/dist/inter-module.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/project.d.ts +9 -0
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/project.js +7 -1
- package/dist/schemas/project.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/e2e/project.ts +2 -1
- package/src/events.test.ts +23 -0
- package/src/events.ts +23 -2
- package/src/inter-module.test.ts +48 -0
- package/src/inter-module.ts +47 -0
- package/src/schemas/index.ts +2 -0
- package/src/schemas/project.ts +12 -1
- package/tsconfig.build.tsbuildinfo +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
$ shipfox-swc
|
|
2
|
-
Successfully compiled: 7 files with swc (
|
|
2
|
+
Successfully compiled: 7 files with swc (311.28ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @shipfox/api-projects-dto
|
|
2
2
|
|
|
3
|
+
## 12.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7901a60: Retry workspace workflow definition syncs when an integration connection becomes available.
|
|
8
|
+
|
|
9
|
+
## 12.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- 4eb18b8: Add required, workspace-scoped project slugs across the API and project creation form.
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 8cc5a36: Add a `resolveCheckoutTarget` inter-module method. It resolves a project by ID
|
|
18
|
+
or by owner and repository within a workspace for callers that authorize a
|
|
19
|
+
checkout target.
|
|
20
|
+
- 032d316: Scope checkout credential minting to the currently running checkout step and return its fetch depth.
|
|
21
|
+
- cb0abfa: Expose the normalized trigger project, repository, ref, and commit in workflow context.
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [f78740d]
|
|
26
|
+
- Updated dependencies [34a5639]
|
|
27
|
+
- @shipfox/api-common-dto@12.0.0
|
|
28
|
+
- @shipfox/inter-module@0.2.3
|
|
29
|
+
|
|
3
30
|
## 10.1.0
|
|
4
31
|
|
|
5
32
|
### Minor Changes
|
package/dist/e2e/project.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const e2eCreateProjectBodySchema: z.ZodObject<{
|
|
3
3
|
workspace_id: z.ZodString;
|
|
4
4
|
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
5
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
5
6
|
source_connection_id: z.ZodOptional<z.ZodString>;
|
|
6
7
|
source_external_repository_id: z.ZodOptional<z.ZodString>;
|
|
7
8
|
}, z.core.$strip>;
|
|
@@ -10,6 +11,7 @@ export declare const e2eCreateProjectResponseSchema: z.ZodObject<{
|
|
|
10
11
|
id: z.ZodString;
|
|
11
12
|
workspace_id: z.ZodString;
|
|
12
13
|
name: z.ZodString;
|
|
14
|
+
slug: z.ZodString;
|
|
13
15
|
source: z.ZodObject<{
|
|
14
16
|
connection_id: z.ZodString;
|
|
15
17
|
external_repository_id: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/e2e/project.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/e2e/project.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAGtB,eAAO,MAAM,0BAA0B;;;;;;iBAMrC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEjF,eAAO,MAAM,8BAA8B;;;;;;;;;;;iBAAwB,CAAC;AAEpE,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
|
package/dist/e2e/project.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { displayNameSchema } from '@shipfox/api-common-dto';
|
|
1
|
+
import { displayNameSchema, slugSchema } from '@shipfox/api-common-dto';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { projectResponseSchema } from '../schemas/project.js';
|
|
4
4
|
export const e2eCreateProjectBodySchema = z.object({
|
|
5
5
|
workspace_id: z.string().uuid(),
|
|
6
6
|
name: displayNameSchema,
|
|
7
|
+
slug: slugSchema.optional(),
|
|
7
8
|
source_connection_id: z.string().uuid().optional(),
|
|
8
9
|
source_external_repository_id: z.string().min(1).max(255).optional()
|
|
9
10
|
});
|
package/dist/e2e/project.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/e2e/project.ts"],"sourcesContent":["import {displayNameSchema} from '@shipfox/api-common-dto';\nimport {z} from 'zod';\nimport {projectResponseSchema} from '../schemas/project.js';\n\nexport const e2eCreateProjectBodySchema = z.object({\n workspace_id: z.string().uuid(),\n name: displayNameSchema,\n source_connection_id: z.string().uuid().optional(),\n source_external_repository_id: z.string().min(1).max(255).optional(),\n});\n\nexport type E2eCreateProjectBodyDto = z.infer<typeof e2eCreateProjectBodySchema>;\n\nexport const e2eCreateProjectResponseSchema = projectResponseSchema;\n\nexport type E2eCreateProjectResponseDto = z.infer<typeof e2eCreateProjectResponseSchema>;\n"],"names":["displayNameSchema","z","projectResponseSchema","e2eCreateProjectBodySchema","object","workspace_id","string","uuid","name","
|
|
1
|
+
{"version":3,"sources":["../../src/e2e/project.ts"],"sourcesContent":["import {displayNameSchema, slugSchema} from '@shipfox/api-common-dto';\nimport {z} from 'zod';\nimport {projectResponseSchema} from '../schemas/project.js';\n\nexport const e2eCreateProjectBodySchema = z.object({\n workspace_id: z.string().uuid(),\n name: displayNameSchema,\n slug: slugSchema.optional(),\n source_connection_id: z.string().uuid().optional(),\n source_external_repository_id: z.string().min(1).max(255).optional(),\n});\n\nexport type E2eCreateProjectBodyDto = z.infer<typeof e2eCreateProjectBodySchema>;\n\nexport const e2eCreateProjectResponseSchema = projectResponseSchema;\n\nexport type E2eCreateProjectResponseDto = z.infer<typeof e2eCreateProjectResponseSchema>;\n"],"names":["displayNameSchema","slugSchema","z","projectResponseSchema","e2eCreateProjectBodySchema","object","workspace_id","string","uuid","name","slug","optional","source_connection_id","source_external_repository_id","min","max","e2eCreateProjectResponseSchema"],"mappings":"AAAA,SAAQA,iBAAiB,EAAEC,UAAU,QAAO,0BAA0B;AACtE,SAAQC,CAAC,QAAO,MAAM;AACtB,SAAQC,qBAAqB,QAAO,wBAAwB;AAE5D,OAAO,MAAMC,6BAA6BF,EAAEG,MAAM,CAAC;IACjDC,cAAcJ,EAAEK,MAAM,GAAGC,IAAI;IAC7BC,MAAMT;IACNU,MAAMT,WAAWU,QAAQ;IACzBC,sBAAsBV,EAAEK,MAAM,GAAGC,IAAI,GAAGG,QAAQ;IAChDE,+BAA+BX,EAAEK,MAAM,GAAGO,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKJ,QAAQ;AACpE,GAAG;AAIH,OAAO,MAAMK,iCAAiCb,sBAAsB"}
|
package/dist/events.d.ts
CHANGED
|
@@ -1,15 +1,39 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const PROJECT_CREATED:
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
2
|
+
export declare const PROJECT_CREATED: 'projects.project.created';
|
|
3
|
+
export declare const PROJECT_UPDATED: 'projects.project.updated';
|
|
4
|
+
export declare const PROJECT_SOURCE_BOUND: 'projects.project.source_bound';
|
|
5
|
+
export declare const PROJECT_SOURCE_COMMIT_OBSERVED: 'projects.project.source_commit_observed';
|
|
6
|
+
declare const projectCreatedEventWithSlugSchema: z.ZodObject<{
|
|
6
7
|
actorId: z.ZodString;
|
|
7
8
|
workspaceId: z.ZodString;
|
|
8
9
|
projectId: z.ZodString;
|
|
9
10
|
sourceConnectionId: z.ZodString;
|
|
10
11
|
sourceExternalRepositoryId: z.ZodString;
|
|
12
|
+
slug: z.ZodString;
|
|
11
13
|
}, z.core.$strip>;
|
|
12
|
-
export
|
|
14
|
+
export declare const projectCreatedEventSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
+
actorId: z.ZodString;
|
|
16
|
+
workspaceId: z.ZodString;
|
|
17
|
+
projectId: z.ZodString;
|
|
18
|
+
sourceConnectionId: z.ZodString;
|
|
19
|
+
sourceExternalRepositoryId: z.ZodString;
|
|
20
|
+
slug: z.ZodString;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
actorId: z.ZodString;
|
|
23
|
+
workspaceId: z.ZodString;
|
|
24
|
+
projectId: z.ZodString;
|
|
25
|
+
sourceConnectionId: z.ZodString;
|
|
26
|
+
sourceExternalRepositoryId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>]>;
|
|
28
|
+
export type ProjectCreatedEvent = z.infer<typeof projectCreatedEventWithSlugSchema>;
|
|
29
|
+
export declare const projectUpdatedEventSchema: z.ZodObject<{
|
|
30
|
+
actorId: z.ZodString;
|
|
31
|
+
workspaceId: z.ZodString;
|
|
32
|
+
projectId: z.ZodString;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
slug: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export type ProjectUpdatedEvent = z.infer<typeof projectUpdatedEventSchema>;
|
|
13
37
|
export declare const projectSourceBoundEventSchema: z.ZodObject<{
|
|
14
38
|
actorId: z.ZodString;
|
|
15
39
|
workspaceId: z.ZodString;
|
|
@@ -31,16 +55,31 @@ export declare const projectSourceCommitObservedEventSchema: z.ZodObject<{
|
|
|
31
55
|
export type ProjectSourceCommitObservedEvent = z.infer<typeof projectSourceCommitObservedEventSchema>;
|
|
32
56
|
export interface ProjectsEventMap {
|
|
33
57
|
[PROJECT_CREATED]: ProjectCreatedEvent;
|
|
58
|
+
[PROJECT_UPDATED]: ProjectUpdatedEvent;
|
|
34
59
|
[PROJECT_SOURCE_BOUND]: ProjectSourceBoundEvent;
|
|
35
60
|
[PROJECT_SOURCE_COMMIT_OBSERVED]: ProjectSourceCommitObservedEvent;
|
|
36
61
|
}
|
|
37
62
|
export declare const projectsEventSchemas: {
|
|
38
|
-
"projects.project.created": z.ZodObject<{
|
|
63
|
+
"projects.project.created": z.ZodUnion<readonly [z.ZodObject<{
|
|
39
64
|
actorId: z.ZodString;
|
|
40
65
|
workspaceId: z.ZodString;
|
|
41
66
|
projectId: z.ZodString;
|
|
42
67
|
sourceConnectionId: z.ZodString;
|
|
43
68
|
sourceExternalRepositoryId: z.ZodString;
|
|
69
|
+
slug: z.ZodString;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
actorId: z.ZodString;
|
|
72
|
+
workspaceId: z.ZodString;
|
|
73
|
+
projectId: z.ZodString;
|
|
74
|
+
sourceConnectionId: z.ZodString;
|
|
75
|
+
sourceExternalRepositoryId: z.ZodString;
|
|
76
|
+
}, z.core.$strip>]>;
|
|
77
|
+
"projects.project.updated": z.ZodObject<{
|
|
78
|
+
actorId: z.ZodString;
|
|
79
|
+
workspaceId: z.ZodString;
|
|
80
|
+
projectId: z.ZodString;
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
slug: z.ZodString;
|
|
44
83
|
}, z.core.$strip>;
|
|
45
84
|
"projects.project.source_bound": z.ZodObject<{
|
|
46
85
|
actorId: z.ZodString;
|
|
@@ -60,4 +99,5 @@ export declare const projectsEventSchemas: {
|
|
|
60
99
|
headCommitSha: z.ZodString;
|
|
61
100
|
}, z.core.$strip>;
|
|
62
101
|
};
|
|
102
|
+
export {};
|
|
63
103
|
//# sourceMappingURL=events.d.ts.map
|
package/dist/events.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,eAAe,EAAG,0BAAmC,CAAC;AACnE,eAAO,MAAM,oBAAoB,EAAG,+BAAwC,CAAC;AAC7E,eAAO,MAAM,8BAA8B,EAAG,yCAAkD,CAAC;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,eAAe,EAAG,0BAAmC,CAAC;AACnE,eAAO,MAAM,eAAe,EAAG,0BAAmC,CAAC;AACnE,eAAO,MAAM,oBAAoB,EAAG,+BAAwC,CAAC;AAC7E,eAAO,MAAM,8BAA8B,EAAG,yCAAkD,CAAC;AAUjG,QAAA,MAAM,iCAAiC;;;;;;;iBAErC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;mBAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAEpF,eAAO,MAAM,yBAAyB;;;;;;iBAMpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,6BAA6B;;;;;;;iBAOxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,sCAAsC;;;;;;;;iBAQjD,CAAC;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,CAAC,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACvC,CAAC,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACvC,CAAC,oBAAoB,CAAC,EAAE,uBAAuB,CAAC;IAChD,CAAC,8BAA8B,CAAC,EAAE,gCAAgC,CAAC;CACpE;AAED,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKoB,CAAC"}
|
package/dist/events.js
CHANGED
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
const nonEmptyStringSchema = z.string().nonempty();
|
|
3
3
|
export const PROJECT_CREATED = 'projects.project.created';
|
|
4
|
+
export const PROJECT_UPDATED = 'projects.project.updated';
|
|
4
5
|
export const PROJECT_SOURCE_BOUND = 'projects.project.source_bound';
|
|
5
6
|
export const PROJECT_SOURCE_COMMIT_OBSERVED = 'projects.project.source_commit_observed';
|
|
6
|
-
|
|
7
|
+
const projectCreatedEventWithoutSlugSchema = z.object({
|
|
7
8
|
actorId: nonEmptyStringSchema,
|
|
8
9
|
workspaceId: nonEmptyStringSchema,
|
|
9
10
|
projectId: nonEmptyStringSchema,
|
|
10
11
|
sourceConnectionId: nonEmptyStringSchema,
|
|
11
12
|
sourceExternalRepositoryId: nonEmptyStringSchema
|
|
12
13
|
});
|
|
14
|
+
const projectCreatedEventWithSlugSchema = projectCreatedEventWithoutSlugSchema.extend({
|
|
15
|
+
slug: nonEmptyStringSchema
|
|
16
|
+
});
|
|
17
|
+
export const projectCreatedEventSchema = z.union([
|
|
18
|
+
projectCreatedEventWithSlugSchema,
|
|
19
|
+
projectCreatedEventWithoutSlugSchema
|
|
20
|
+
]);
|
|
21
|
+
export const projectUpdatedEventSchema = z.object({
|
|
22
|
+
actorId: nonEmptyStringSchema,
|
|
23
|
+
workspaceId: nonEmptyStringSchema,
|
|
24
|
+
projectId: nonEmptyStringSchema,
|
|
25
|
+
name: nonEmptyStringSchema,
|
|
26
|
+
slug: nonEmptyStringSchema
|
|
27
|
+
});
|
|
13
28
|
export const projectSourceBoundEventSchema = z.object({
|
|
14
29
|
actorId: nonEmptyStringSchema,
|
|
15
30
|
workspaceId: nonEmptyStringSchema,
|
|
@@ -29,6 +44,7 @@ export const projectSourceCommitObservedEventSchema = z.object({
|
|
|
29
44
|
});
|
|
30
45
|
export const projectsEventSchemas = {
|
|
31
46
|
[PROJECT_CREATED]: projectCreatedEventSchema,
|
|
47
|
+
[PROJECT_UPDATED]: projectUpdatedEventSchema,
|
|
32
48
|
[PROJECT_SOURCE_BOUND]: projectSourceBoundEventSchema,
|
|
33
49
|
[PROJECT_SOURCE_COMMIT_OBSERVED]: projectSourceCommitObservedEventSchema
|
|
34
50
|
};
|
package/dist/events.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst nonEmptyStringSchema = z.string().nonempty();\n\nexport const PROJECT_CREATED = 'projects.project.created' as const;\nexport const PROJECT_SOURCE_BOUND = 'projects.project.source_bound' as const;\nexport const PROJECT_SOURCE_COMMIT_OBSERVED = 'projects.project.source_commit_observed' as const;\n\nexport const projectCreatedEventSchema = z.object({\n actorId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n
|
|
1
|
+
{"version":3,"sources":["../src/events.ts"],"sourcesContent":["import {z} from 'zod';\n\nconst nonEmptyStringSchema = z.string().nonempty();\n\nexport const PROJECT_CREATED = 'projects.project.created' as const;\nexport const PROJECT_UPDATED = 'projects.project.updated' as const;\nexport const PROJECT_SOURCE_BOUND = 'projects.project.source_bound' as const;\nexport const PROJECT_SOURCE_COMMIT_OBSERVED = 'projects.project.source_commit_observed' as const;\n\nconst projectCreatedEventWithoutSlugSchema = z.object({\n actorId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n sourceConnectionId: nonEmptyStringSchema,\n sourceExternalRepositoryId: nonEmptyStringSchema,\n});\n\nconst projectCreatedEventWithSlugSchema = projectCreatedEventWithoutSlugSchema.extend({\n slug: nonEmptyStringSchema,\n});\n\nexport const projectCreatedEventSchema = z.union([\n projectCreatedEventWithSlugSchema,\n projectCreatedEventWithoutSlugSchema,\n]);\nexport type ProjectCreatedEvent = z.infer<typeof projectCreatedEventWithSlugSchema>;\n\nexport const projectUpdatedEventSchema = z.object({\n actorId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n name: nonEmptyStringSchema,\n slug: nonEmptyStringSchema,\n});\nexport type ProjectUpdatedEvent = z.infer<typeof projectUpdatedEventSchema>;\n\nexport const projectSourceBoundEventSchema = z.object({\n actorId: nonEmptyStringSchema,\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n sourceConnectionId: nonEmptyStringSchema,\n provider: nonEmptyStringSchema,\n externalRepositoryId: nonEmptyStringSchema,\n});\nexport type ProjectSourceBoundEvent = z.infer<typeof projectSourceBoundEventSchema>;\n\nexport const projectSourceCommitObservedEventSchema = z.object({\n workspaceId: nonEmptyStringSchema,\n projectId: nonEmptyStringSchema,\n sourceConnectionId: nonEmptyStringSchema,\n provider: nonEmptyStringSchema,\n externalRepositoryId: nonEmptyStringSchema,\n ref: nonEmptyStringSchema,\n headCommitSha: nonEmptyStringSchema,\n});\nexport type ProjectSourceCommitObservedEvent = z.infer<\n typeof projectSourceCommitObservedEventSchema\n>;\n\nexport interface ProjectsEventMap {\n [PROJECT_CREATED]: ProjectCreatedEvent;\n [PROJECT_UPDATED]: ProjectUpdatedEvent;\n [PROJECT_SOURCE_BOUND]: ProjectSourceBoundEvent;\n [PROJECT_SOURCE_COMMIT_OBSERVED]: ProjectSourceCommitObservedEvent;\n}\n\nexport const projectsEventSchemas = {\n [PROJECT_CREATED]: projectCreatedEventSchema,\n [PROJECT_UPDATED]: projectUpdatedEventSchema,\n [PROJECT_SOURCE_BOUND]: projectSourceBoundEventSchema,\n [PROJECT_SOURCE_COMMIT_OBSERVED]: projectSourceCommitObservedEventSchema,\n} satisfies Record<keyof ProjectsEventMap, z.ZodType>;\n"],"names":["z","nonEmptyStringSchema","string","nonempty","PROJECT_CREATED","PROJECT_UPDATED","PROJECT_SOURCE_BOUND","PROJECT_SOURCE_COMMIT_OBSERVED","projectCreatedEventWithoutSlugSchema","object","actorId","workspaceId","projectId","sourceConnectionId","sourceExternalRepositoryId","projectCreatedEventWithSlugSchema","extend","slug","projectCreatedEventSchema","union","projectUpdatedEventSchema","name","projectSourceBoundEventSchema","provider","externalRepositoryId","projectSourceCommitObservedEventSchema","ref","headCommitSha","projectsEventSchemas"],"mappings":"AAAA,SAAQA,CAAC,QAAO,MAAM;AAEtB,MAAMC,uBAAuBD,EAAEE,MAAM,GAAGC,QAAQ;AAEhD,OAAO,MAAMC,kBAAkB,2BAAoC;AACnE,OAAO,MAAMC,kBAAkB,2BAAoC;AACnE,OAAO,MAAMC,uBAAuB,gCAAyC;AAC7E,OAAO,MAAMC,iCAAiC,0CAAmD;AAEjG,MAAMC,uCAAuCR,EAAES,MAAM,CAAC;IACpDC,SAAST;IACTU,aAAaV;IACbW,WAAWX;IACXY,oBAAoBZ;IACpBa,4BAA4Bb;AAC9B;AAEA,MAAMc,oCAAoCP,qCAAqCQ,MAAM,CAAC;IACpFC,MAAMhB;AACR;AAEA,OAAO,MAAMiB,4BAA4BlB,EAAEmB,KAAK,CAAC;IAC/CJ;IACAP;CACD,EAAE;AAGH,OAAO,MAAMY,4BAA4BpB,EAAES,MAAM,CAAC;IAChDC,SAAST;IACTU,aAAaV;IACbW,WAAWX;IACXoB,MAAMpB;IACNgB,MAAMhB;AACR,GAAG;AAGH,OAAO,MAAMqB,gCAAgCtB,EAAES,MAAM,CAAC;IACpDC,SAAST;IACTU,aAAaV;IACbW,WAAWX;IACXY,oBAAoBZ;IACpBsB,UAAUtB;IACVuB,sBAAsBvB;AACxB,GAAG;AAGH,OAAO,MAAMwB,yCAAyCzB,EAAES,MAAM,CAAC;IAC7DE,aAAaV;IACbW,WAAWX;IACXY,oBAAoBZ;IACpBsB,UAAUtB;IACVuB,sBAAsBvB;IACtByB,KAAKzB;IACL0B,eAAe1B;AACjB,GAAG;AAYH,OAAO,MAAM2B,uBAAuB;IAClC,CAACxB,gBAAgB,EAAEc;IACnB,CAACb,gBAAgB,EAAEe;IACnB,CAACd,qBAAqB,EAAEgB;IACxB,CAACf,+BAA+B,EAAEkB;AACpC,EAAsD"}
|
package/dist/inter-module.d.ts
CHANGED
|
@@ -4,55 +4,121 @@ import { z } from 'zod';
|
|
|
4
4
|
export declare const projectsInterModuleContract: import("@shipfox/inter-module").InterModuleContract<{
|
|
5
5
|
readonly module: "projects";
|
|
6
6
|
readonly methods: {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
getProjectById: {
|
|
8
|
+
input: z.ZodObject<{
|
|
9
9
|
projectId: z.ZodString;
|
|
10
10
|
}, z.core.$strip>;
|
|
11
|
-
|
|
11
|
+
output: z.ZodObject<{
|
|
12
12
|
project: z.ZodNullable<z.ZodObject<{
|
|
13
13
|
id: z.ZodString;
|
|
14
14
|
workspaceId: z.ZodString;
|
|
15
15
|
sourceConnectionId: z.ZodString;
|
|
16
16
|
sourceExternalRepositoryId: z.ZodString;
|
|
17
|
+
sourceRepositoryOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
18
|
name: z.ZodString;
|
|
18
19
|
}, z.core.$strip>>;
|
|
19
20
|
}, z.core.$strip>;
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
getProjectBySource: {
|
|
23
|
+
input: z.ZodObject<{
|
|
24
|
+
workspaceId: z.ZodString;
|
|
25
|
+
sourceConnectionId: z.ZodString;
|
|
26
|
+
sourceExternalRepositoryId: z.ZodString;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
output: z.ZodObject<{
|
|
29
|
+
project: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
workspaceId: z.ZodString;
|
|
32
|
+
sourceConnectionId: z.ZodString;
|
|
33
|
+
sourceExternalRepositoryId: z.ZodString;
|
|
34
|
+
sourceRepositoryOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
name: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
};
|
|
39
|
+
listProjectsByWorkspace: {
|
|
40
|
+
input: z.ZodObject<{
|
|
41
|
+
workspaceId: z.ZodString;
|
|
42
|
+
limit: z.ZodNumber;
|
|
43
|
+
cursor: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
createdAt: z.ZodString;
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
output: z.ZodObject<{
|
|
49
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
workspaceId: z.ZodString;
|
|
52
|
+
sourceConnectionId: z.ZodString;
|
|
53
|
+
sourceExternalRepositoryId: z.ZodString;
|
|
54
|
+
sourceRepositoryOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
}, z.core.$strip>>;
|
|
57
|
+
nextCursor: z.ZodNullable<z.ZodObject<{
|
|
58
|
+
createdAt: z.ZodString;
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
};
|
|
63
|
+
requireProjectForWorkspace: {
|
|
64
|
+
input: z.ZodObject<{
|
|
23
65
|
projectId: z.ZodString;
|
|
24
66
|
workspaceId: z.ZodString;
|
|
25
67
|
}, z.core.$strip>;
|
|
26
|
-
|
|
68
|
+
output: z.ZodObject<{
|
|
27
69
|
project: z.ZodObject<{
|
|
28
70
|
id: z.ZodString;
|
|
29
71
|
workspaceId: z.ZodString;
|
|
30
72
|
sourceConnectionId: z.ZodString;
|
|
31
73
|
sourceExternalRepositoryId: z.ZodString;
|
|
74
|
+
sourceRepositoryOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
75
|
name: z.ZodString;
|
|
33
76
|
}, z.core.$strip>;
|
|
34
77
|
}, z.core.$strip>;
|
|
35
|
-
|
|
36
|
-
|
|
78
|
+
errors: {
|
|
79
|
+
'project-not-found': z.ZodObject<{
|
|
37
80
|
projectId: z.ZodString;
|
|
38
81
|
}, z.core.$strip>;
|
|
39
|
-
|
|
82
|
+
'project-workspace-mismatch': z.ZodObject<{
|
|
40
83
|
projectId: z.ZodString;
|
|
41
84
|
workspaceId: z.ZodString;
|
|
42
85
|
}, z.core.$strip>;
|
|
43
86
|
};
|
|
44
87
|
};
|
|
45
|
-
|
|
46
|
-
|
|
88
|
+
getWorkspaceProjectCounts: {
|
|
89
|
+
input: z.ZodObject<{
|
|
47
90
|
workspaceIds: z.ZodArray<z.ZodString>;
|
|
48
91
|
}, z.core.$strip>;
|
|
49
|
-
|
|
92
|
+
output: z.ZodObject<{
|
|
50
93
|
counts: z.ZodArray<z.ZodObject<{
|
|
51
94
|
workspaceId: z.ZodString;
|
|
52
95
|
count: z.ZodNumber;
|
|
53
96
|
}, z.core.$strip>>;
|
|
54
97
|
}, z.core.$strip>;
|
|
55
98
|
};
|
|
99
|
+
resolveCheckoutTarget: {
|
|
100
|
+
input: z.ZodObject<{
|
|
101
|
+
workspaceId: z.ZodString;
|
|
102
|
+
defaults: z.ZodObject<{
|
|
103
|
+
connectionId: z.ZodString;
|
|
104
|
+
owner: z.ZodString;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
target: z.ZodUnion<readonly [z.ZodObject<{
|
|
107
|
+
project: z.ZodString;
|
|
108
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
109
|
+
connection: z.ZodOptional<z.ZodString>;
|
|
110
|
+
repository: z.ZodString;
|
|
111
|
+
}, z.core.$strict>]>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
output: z.ZodObject<{
|
|
114
|
+
projectId: z.ZodString;
|
|
115
|
+
connectionId: z.ZodString;
|
|
116
|
+
externalRepositoryId: z.ZodString;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
errors: {
|
|
119
|
+
'checkout-repository-not-authorized': z.ZodObject<{}, z.core.$strip>;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
56
122
|
};
|
|
57
123
|
}>;
|
|
58
124
|
export type ProjectsModuleClient = InterModuleClient<typeof projectsInterModuleContract>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"inter-module.d.ts","sourceRoot":"","sources":["../src/inter-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AACxF,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAgCtB,wEAAwE;AACxE,eAAO,MAAM,2BAA2B;;;QAGpC,cAAc;YACZ,KAAK;;;YACL,MAAM;;;;;;;;;;;QAER,kBAAkB;YAChB,KAAK;;;;;YAKL,MAAM;;;;;;;;;;;QAER,uBAAuB;YACrB,KAAK;;;;;;;;YAKL,MAAM;;;;;;;;;;;;;;;QAKR,0BAA0B;YACxB,KAAK;;;;YACL,MAAM;;;;;;;;;;YACN,MAAM;gBACJ,mBAAmB;;;gBACnB,4BAA4B;;;;;;QAGhC,yBAAyB;YACvB,KAAK;;;YACL,MAAM;;;;;;;QAER,qBAAqB;YACnB,KAAK;;;;;;;;;;;;;YAKL,MAAM;;;;;YACN,MAAM;gBACJ,oCAAoC;;;;EAI1C,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|
package/dist/inter-module.js
CHANGED
|
@@ -6,12 +6,31 @@ const projectSchema = z.object({
|
|
|
6
6
|
workspaceId: idSchema,
|
|
7
7
|
sourceConnectionId: idSchema,
|
|
8
8
|
sourceExternalRepositoryId: z.string(),
|
|
9
|
+
sourceRepositoryOwner: z.string().min(1).nullable().optional(),
|
|
9
10
|
name: z.string()
|
|
10
11
|
});
|
|
11
12
|
const workspaceProjectCountSchema = z.object({
|
|
12
13
|
workspaceId: idSchema,
|
|
13
14
|
count: z.number().int().nonnegative()
|
|
14
15
|
});
|
|
16
|
+
const projectCursorSchema = z.object({
|
|
17
|
+
createdAt: z.string().datetime(),
|
|
18
|
+
id: idSchema
|
|
19
|
+
});
|
|
20
|
+
const checkoutTargetSchema = z.union([
|
|
21
|
+
z.strictObject({
|
|
22
|
+
project: idSchema
|
|
23
|
+
}),
|
|
24
|
+
z.strictObject({
|
|
25
|
+
connection: idSchema.optional(),
|
|
26
|
+
repository: z.string().min(1)
|
|
27
|
+
})
|
|
28
|
+
]);
|
|
29
|
+
const resolvedCheckoutTargetSchema = z.object({
|
|
30
|
+
projectId: idSchema,
|
|
31
|
+
connectionId: idSchema,
|
|
32
|
+
externalRepositoryId: z.string()
|
|
33
|
+
});
|
|
15
34
|
/** Producer-owned project lookup and workspace ownership operations. */ export const projectsInterModuleContract = defineInterModuleContract({
|
|
16
35
|
module: 'projects',
|
|
17
36
|
methods: {
|
|
@@ -23,6 +42,27 @@ const workspaceProjectCountSchema = z.object({
|
|
|
23
42
|
project: projectSchema.nullable()
|
|
24
43
|
})
|
|
25
44
|
},
|
|
45
|
+
getProjectBySource: {
|
|
46
|
+
input: z.object({
|
|
47
|
+
workspaceId: idSchema,
|
|
48
|
+
sourceConnectionId: idSchema,
|
|
49
|
+
sourceExternalRepositoryId: z.string()
|
|
50
|
+
}),
|
|
51
|
+
output: z.object({
|
|
52
|
+
project: projectSchema.nullable()
|
|
53
|
+
})
|
|
54
|
+
},
|
|
55
|
+
listProjectsByWorkspace: {
|
|
56
|
+
input: z.object({
|
|
57
|
+
workspaceId: idSchema,
|
|
58
|
+
limit: z.number().int().min(1).max(100),
|
|
59
|
+
cursor: projectCursorSchema.optional()
|
|
60
|
+
}),
|
|
61
|
+
output: z.object({
|
|
62
|
+
projects: z.array(projectSchema),
|
|
63
|
+
nextCursor: projectCursorSchema.nullable()
|
|
64
|
+
})
|
|
65
|
+
},
|
|
26
66
|
requireProjectForWorkspace: {
|
|
27
67
|
input: z.object({
|
|
28
68
|
projectId: idSchema,
|
|
@@ -48,6 +88,20 @@ const workspaceProjectCountSchema = z.object({
|
|
|
48
88
|
output: z.object({
|
|
49
89
|
counts: z.array(workspaceProjectCountSchema)
|
|
50
90
|
})
|
|
91
|
+
},
|
|
92
|
+
resolveCheckoutTarget: {
|
|
93
|
+
input: z.object({
|
|
94
|
+
workspaceId: idSchema,
|
|
95
|
+
defaults: z.object({
|
|
96
|
+
connectionId: idSchema,
|
|
97
|
+
owner: z.string().min(1)
|
|
98
|
+
}),
|
|
99
|
+
target: checkoutTargetSchema
|
|
100
|
+
}),
|
|
101
|
+
output: resolvedCheckoutTargetSchema,
|
|
102
|
+
errors: {
|
|
103
|
+
'checkout-repository-not-authorized': z.object({})
|
|
104
|
+
}
|
|
51
105
|
}
|
|
52
106
|
}
|
|
53
107
|
});
|
package/dist/inter-module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\n\nconst idSchema = z.string().uuid();\nconst projectSchema = z.object({\n id: idSchema,\n workspaceId: idSchema,\n sourceConnectionId: idSchema,\n sourceExternalRepositoryId: z.string(),\n name: z.string(),\n});\nconst workspaceProjectCountSchema = z.object({\n workspaceId: idSchema,\n count: z.number().int().nonnegative(),\n});\n\n/** Producer-owned project lookup and workspace ownership operations. */\nexport const projectsInterModuleContract = defineInterModuleContract({\n module: 'projects',\n methods: {\n getProjectById: {\n input: z.object({projectId: idSchema}),\n output: z.object({project: projectSchema.nullable()}),\n },\n requireProjectForWorkspace: {\n input: z.object({projectId: idSchema, workspaceId: idSchema}),\n output: z.object({project: projectSchema}),\n errors: {\n 'project-not-found': z.object({projectId: idSchema}),\n 'project-workspace-mismatch': z.object({projectId: idSchema, workspaceId: idSchema}),\n },\n },\n getWorkspaceProjectCounts: {\n input: z.object({workspaceIds: z.array(idSchema).min(1).max(100)}),\n output: z.object({counts: z.array(workspaceProjectCountSchema)}),\n },\n },\n});\n\nexport type ProjectsModuleClient = InterModuleClient<typeof projectsInterModuleContract>;\n"],"names":["defineInterModuleContract","z","idSchema","string","uuid","projectSchema","object","id","workspaceId","sourceConnectionId","sourceExternalRepositoryId","name","workspaceProjectCountSchema","count","number","int","nonnegative","projectsInterModuleContract","module","methods","getProjectById","input","
|
|
1
|
+
{"version":3,"sources":["../src/inter-module.ts"],"sourcesContent":["import {defineInterModuleContract, type InterModuleClient} from '@shipfox/inter-module';\nimport {z} from 'zod';\n\nconst idSchema = z.string().uuid();\nconst projectSchema = z.object({\n id: idSchema,\n workspaceId: idSchema,\n sourceConnectionId: idSchema,\n sourceExternalRepositoryId: z.string(),\n sourceRepositoryOwner: z.string().min(1).nullable().optional(),\n name: z.string(),\n});\nconst workspaceProjectCountSchema = z.object({\n workspaceId: idSchema,\n count: z.number().int().nonnegative(),\n});\nconst projectCursorSchema = z.object({\n createdAt: z.string().datetime(),\n id: idSchema,\n});\nconst checkoutTargetSchema = z.union([\n z.strictObject({project: idSchema}),\n z.strictObject({\n connection: idSchema.optional(),\n repository: z.string().min(1),\n }),\n]);\nconst resolvedCheckoutTargetSchema = z.object({\n projectId: idSchema,\n connectionId: idSchema,\n externalRepositoryId: z.string(),\n});\n\n/** Producer-owned project lookup and workspace ownership operations. */\nexport const projectsInterModuleContract = defineInterModuleContract({\n module: 'projects',\n methods: {\n getProjectById: {\n input: z.object({projectId: idSchema}),\n output: z.object({project: projectSchema.nullable()}),\n },\n getProjectBySource: {\n input: z.object({\n workspaceId: idSchema,\n sourceConnectionId: idSchema,\n sourceExternalRepositoryId: z.string(),\n }),\n output: z.object({project: projectSchema.nullable()}),\n },\n listProjectsByWorkspace: {\n input: z.object({\n workspaceId: idSchema,\n limit: z.number().int().min(1).max(100),\n cursor: projectCursorSchema.optional(),\n }),\n output: z.object({\n projects: z.array(projectSchema),\n nextCursor: projectCursorSchema.nullable(),\n }),\n },\n requireProjectForWorkspace: {\n input: z.object({projectId: idSchema, workspaceId: idSchema}),\n output: z.object({project: projectSchema}),\n errors: {\n 'project-not-found': z.object({projectId: idSchema}),\n 'project-workspace-mismatch': z.object({projectId: idSchema, workspaceId: idSchema}),\n },\n },\n getWorkspaceProjectCounts: {\n input: z.object({workspaceIds: z.array(idSchema).min(1).max(100)}),\n output: z.object({counts: z.array(workspaceProjectCountSchema)}),\n },\n resolveCheckoutTarget: {\n input: z.object({\n workspaceId: idSchema,\n defaults: z.object({connectionId: idSchema, owner: z.string().min(1)}),\n target: checkoutTargetSchema,\n }),\n output: resolvedCheckoutTargetSchema,\n errors: {\n 'checkout-repository-not-authorized': z.object({}),\n },\n },\n },\n});\n\nexport type ProjectsModuleClient = InterModuleClient<typeof projectsInterModuleContract>;\n"],"names":["defineInterModuleContract","z","idSchema","string","uuid","projectSchema","object","id","workspaceId","sourceConnectionId","sourceExternalRepositoryId","sourceRepositoryOwner","min","nullable","optional","name","workspaceProjectCountSchema","count","number","int","nonnegative","projectCursorSchema","createdAt","datetime","checkoutTargetSchema","union","strictObject","project","connection","repository","resolvedCheckoutTargetSchema","projectId","connectionId","externalRepositoryId","projectsInterModuleContract","module","methods","getProjectById","input","output","getProjectBySource","listProjectsByWorkspace","limit","max","cursor","projects","array","nextCursor","requireProjectForWorkspace","errors","getWorkspaceProjectCounts","workspaceIds","counts","resolveCheckoutTarget","defaults","owner","target"],"mappings":"AAAA,SAAQA,yBAAyB,QAA+B,wBAAwB;AACxF,SAAQC,CAAC,QAAO,MAAM;AAEtB,MAAMC,WAAWD,EAAEE,MAAM,GAAGC,IAAI;AAChC,MAAMC,gBAAgBJ,EAAEK,MAAM,CAAC;IAC7BC,IAAIL;IACJM,aAAaN;IACbO,oBAAoBP;IACpBQ,4BAA4BT,EAAEE,MAAM;IACpCQ,uBAAuBV,EAAEE,MAAM,GAAGS,GAAG,CAAC,GAAGC,QAAQ,GAAGC,QAAQ;IAC5DC,MAAMd,EAAEE,MAAM;AAChB;AACA,MAAMa,8BAA8Bf,EAAEK,MAAM,CAAC;IAC3CE,aAAaN;IACbe,OAAOhB,EAAEiB,MAAM,GAAGC,GAAG,GAAGC,WAAW;AACrC;AACA,MAAMC,sBAAsBpB,EAAEK,MAAM,CAAC;IACnCgB,WAAWrB,EAAEE,MAAM,GAAGoB,QAAQ;IAC9BhB,IAAIL;AACN;AACA,MAAMsB,uBAAuBvB,EAAEwB,KAAK,CAAC;IACnCxB,EAAEyB,YAAY,CAAC;QAACC,SAASzB;IAAQ;IACjCD,EAAEyB,YAAY,CAAC;QACbE,YAAY1B,SAASY,QAAQ;QAC7Be,YAAY5B,EAAEE,MAAM,GAAGS,GAAG,CAAC;IAC7B;CACD;AACD,MAAMkB,+BAA+B7B,EAAEK,MAAM,CAAC;IAC5CyB,WAAW7B;IACX8B,cAAc9B;IACd+B,sBAAsBhC,EAAEE,MAAM;AAChC;AAEA,sEAAsE,GACtE,OAAO,MAAM+B,8BAA8BlC,0BAA0B;IACnEmC,QAAQ;IACRC,SAAS;QACPC,gBAAgB;YACdC,OAAOrC,EAAEK,MAAM,CAAC;gBAACyB,WAAW7B;YAAQ;YACpCqC,QAAQtC,EAAEK,MAAM,CAAC;gBAACqB,SAAStB,cAAcQ,QAAQ;YAAE;QACrD;QACA2B,oBAAoB;YAClBF,OAAOrC,EAAEK,MAAM,CAAC;gBACdE,aAAaN;gBACbO,oBAAoBP;gBACpBQ,4BAA4BT,EAAEE,MAAM;YACtC;YACAoC,QAAQtC,EAAEK,MAAM,CAAC;gBAACqB,SAAStB,cAAcQ,QAAQ;YAAE;QACrD;QACA4B,yBAAyB;YACvBH,OAAOrC,EAAEK,MAAM,CAAC;gBACdE,aAAaN;gBACbwC,OAAOzC,EAAEiB,MAAM,GAAGC,GAAG,GAAGP,GAAG,CAAC,GAAG+B,GAAG,CAAC;gBACnCC,QAAQvB,oBAAoBP,QAAQ;YACtC;YACAyB,QAAQtC,EAAEK,MAAM,CAAC;gBACfuC,UAAU5C,EAAE6C,KAAK,CAACzC;gBAClB0C,YAAY1B,oBAAoBR,QAAQ;YAC1C;QACF;QACAmC,4BAA4B;YAC1BV,OAAOrC,EAAEK,MAAM,CAAC;gBAACyB,WAAW7B;gBAAUM,aAAaN;YAAQ;YAC3DqC,QAAQtC,EAAEK,MAAM,CAAC;gBAACqB,SAAStB;YAAa;YACxC4C,QAAQ;gBACN,qBAAqBhD,EAAEK,MAAM,CAAC;oBAACyB,WAAW7B;gBAAQ;gBAClD,8BAA8BD,EAAEK,MAAM,CAAC;oBAACyB,WAAW7B;oBAAUM,aAAaN;gBAAQ;YACpF;QACF;QACAgD,2BAA2B;YACzBZ,OAAOrC,EAAEK,MAAM,CAAC;gBAAC6C,cAAclD,EAAE6C,KAAK,CAAC5C,UAAUU,GAAG,CAAC,GAAG+B,GAAG,CAAC;YAAI;YAChEJ,QAAQtC,EAAEK,MAAM,CAAC;gBAAC8C,QAAQnD,EAAE6C,KAAK,CAAC9B;YAA4B;QAChE;QACAqC,uBAAuB;YACrBf,OAAOrC,EAAEK,MAAM,CAAC;gBACdE,aAAaN;gBACboD,UAAUrD,EAAEK,MAAM,CAAC;oBAAC0B,cAAc9B;oBAAUqD,OAAOtD,EAAEE,MAAM,GAAGS,GAAG,CAAC;gBAAE;gBACpE4C,QAAQhC;YACV;YACAe,QAAQT;YACRmB,QAAQ;gBACN,sCAAsChD,EAAEK,MAAM,CAAC,CAAC;YAClD;QACF;IACF;AACF,GAAG"}
|
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { type AdminProjectSummaryDto, adminProjectSummaryDtoSchema, type CreateProjectBodyDto, createProjectBodySchema, type ListAdminProjectsQueryDto, type ListAdminProjectsResponseDto, type ListProjectsQueryDto, type ListProjectsResponseDto, listAdminProjectsQuerySchema, listAdminProjectsResponseSchema, listProjectsQuerySchema, listProjectsResponseSchema, type ProjectDto, type ProjectResponseDto, type ProjectSourceDto, projectDtoSchema, projectResponseSchema, projectSourceDtoSchema, } from './project.js';
|
|
1
|
+
export { type AdminProjectSummaryDto, adminProjectSummaryDtoSchema, type CreateProjectBodyDto, createProjectBodySchema, type ListAdminProjectsQueryDto, type ListAdminProjectsResponseDto, type ListProjectsQueryDto, type ListProjectsResponseDto, listAdminProjectsQuerySchema, listAdminProjectsResponseSchema, listProjectsQuerySchema, listProjectsResponseSchema, type ProjectDto, type ProjectResponseDto, type ProjectSourceDto, projectDtoSchema, projectResponseSchema, projectSourceDtoSchema, type UpdateProjectBodyDto, updateProjectBodySchema, } from './project.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,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,KAAK,oBAAoB,EACzB,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,EACvB,0BAA0B,EAC1B,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,4BAA4B,EAC5B,KAAK,oBAAoB,EACzB,uBAAuB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,4BAA4B,EAC5B,+BAA+B,EAC/B,uBAAuB,EACvB,0BAA0B,EAC1B,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,KAAK,oBAAoB,EACzB,uBAAuB,GACxB,MAAM,cAAc,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { adminProjectSummaryDtoSchema, createProjectBodySchema, listAdminProjectsQuerySchema, listAdminProjectsResponseSchema, listProjectsQuerySchema, listProjectsResponseSchema, projectDtoSchema, projectResponseSchema, projectSourceDtoSchema } from './project.js';
|
|
1
|
+
export { adminProjectSummaryDtoSchema, createProjectBodySchema, listAdminProjectsQuerySchema, listAdminProjectsResponseSchema, listProjectsQuerySchema, listProjectsResponseSchema, projectDtoSchema, projectResponseSchema, projectSourceDtoSchema, updateProjectBodySchema } from './project.js';
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AdminProjectSummaryDto,\n adminProjectSummaryDtoSchema,\n type CreateProjectBodyDto,\n createProjectBodySchema,\n type ListAdminProjectsQueryDto,\n type ListAdminProjectsResponseDto,\n type ListProjectsQueryDto,\n type ListProjectsResponseDto,\n listAdminProjectsQuerySchema,\n listAdminProjectsResponseSchema,\n listProjectsQuerySchema,\n listProjectsResponseSchema,\n type ProjectDto,\n type ProjectResponseDto,\n type ProjectSourceDto,\n projectDtoSchema,\n projectResponseSchema,\n projectSourceDtoSchema,\n} from './project.js';\n"],"names":["adminProjectSummaryDtoSchema","createProjectBodySchema","listAdminProjectsQuerySchema","listAdminProjectsResponseSchema","listProjectsQuerySchema","listProjectsResponseSchema","projectDtoSchema","projectResponseSchema","projectSourceDtoSchema"],"mappings":"AAAA,SAEEA,4BAA4B,EAE5BC,uBAAuB,EAKvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,uBAAuB,EACvBC,0BAA0B,EAI1BC,gBAAgB,EAChBC,qBAAqB,EACrBC,sBAAsB,
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/index.ts"],"sourcesContent":["export {\n type AdminProjectSummaryDto,\n adminProjectSummaryDtoSchema,\n type CreateProjectBodyDto,\n createProjectBodySchema,\n type ListAdminProjectsQueryDto,\n type ListAdminProjectsResponseDto,\n type ListProjectsQueryDto,\n type ListProjectsResponseDto,\n listAdminProjectsQuerySchema,\n listAdminProjectsResponseSchema,\n listProjectsQuerySchema,\n listProjectsResponseSchema,\n type ProjectDto,\n type ProjectResponseDto,\n type ProjectSourceDto,\n projectDtoSchema,\n projectResponseSchema,\n projectSourceDtoSchema,\n type UpdateProjectBodyDto,\n updateProjectBodySchema,\n} from './project.js';\n"],"names":["adminProjectSummaryDtoSchema","createProjectBodySchema","listAdminProjectsQuerySchema","listAdminProjectsResponseSchema","listProjectsQuerySchema","listProjectsResponseSchema","projectDtoSchema","projectResponseSchema","projectSourceDtoSchema","updateProjectBodySchema"],"mappings":"AAAA,SAEEA,4BAA4B,EAE5BC,uBAAuB,EAKvBC,4BAA4B,EAC5BC,+BAA+B,EAC/BC,uBAAuB,EACvBC,0BAA0B,EAI1BC,gBAAgB,EAChBC,qBAAqB,EACrBC,sBAAsB,EAEtBC,uBAAuB,QAClB,eAAe"}
|
|
@@ -7,16 +7,23 @@ export type ProjectSourceDto = z.infer<typeof projectSourceDtoSchema>;
|
|
|
7
7
|
export declare const createProjectBodySchema: z.ZodObject<{
|
|
8
8
|
workspace_id: z.ZodString;
|
|
9
9
|
name: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>;
|
|
10
|
+
slug: z.ZodString;
|
|
10
11
|
source: z.ZodObject<{
|
|
11
12
|
connection_id: z.ZodString;
|
|
12
13
|
external_repository_id: z.ZodString;
|
|
13
14
|
}, z.core.$strip>;
|
|
14
15
|
}, z.core.$strip>;
|
|
15
16
|
export type CreateProjectBodyDto = z.infer<typeof createProjectBodySchema>;
|
|
17
|
+
export declare const updateProjectBodySchema: z.ZodObject<{
|
|
18
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodString>>>;
|
|
19
|
+
slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type UpdateProjectBodyDto = z.infer<typeof updateProjectBodySchema>;
|
|
16
22
|
export declare const projectDtoSchema: z.ZodObject<{
|
|
17
23
|
id: z.ZodString;
|
|
18
24
|
workspace_id: z.ZodString;
|
|
19
25
|
name: z.ZodString;
|
|
26
|
+
slug: z.ZodString;
|
|
20
27
|
source: z.ZodObject<{
|
|
21
28
|
connection_id: z.ZodString;
|
|
22
29
|
external_repository_id: z.ZodString;
|
|
@@ -29,6 +36,7 @@ export declare const projectResponseSchema: z.ZodObject<{
|
|
|
29
36
|
id: z.ZodString;
|
|
30
37
|
workspace_id: z.ZodString;
|
|
31
38
|
name: z.ZodString;
|
|
39
|
+
slug: z.ZodString;
|
|
32
40
|
source: z.ZodObject<{
|
|
33
41
|
connection_id: z.ZodString;
|
|
34
42
|
external_repository_id: z.ZodString;
|
|
@@ -49,6 +57,7 @@ export declare const listProjectsResponseSchema: z.ZodObject<{
|
|
|
49
57
|
id: z.ZodString;
|
|
50
58
|
workspace_id: z.ZodString;
|
|
51
59
|
name: z.ZodString;
|
|
60
|
+
slug: z.ZodString;
|
|
52
61
|
source: z.ZodObject<{
|
|
53
62
|
connection_id: z.ZodString;
|
|
54
63
|
external_repository_id: z.ZodString;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,sBAAsB;;;iBAGjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,uBAAuB;;;;;;;;iBAQlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,uBAAuB;;;iBAKxB,CAAC;AAEb,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAQ3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,qBAAqB;;;;;;;;;;;iBAAmB,CAAC;AAEtD,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEvE,eAAO,MAAM,uBAAuB;;;;;iBAKlC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAE3E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEjF,eAAO,MAAM,4BAA4B;;;;;;;iBAOvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAErF,eAAO,MAAM,+BAA+B;;;;;;;;;;iBAG1C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|
package/dist/schemas/project.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { displayNameSchema } from '@shipfox/api-common-dto';
|
|
1
|
+
import { displayNameSchema, slugSchema } from '@shipfox/api-common-dto';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export const projectSourceDtoSchema = z.object({
|
|
4
4
|
connection_id: z.string().uuid(),
|
|
@@ -7,15 +7,21 @@ export const projectSourceDtoSchema = z.object({
|
|
|
7
7
|
export const createProjectBodySchema = z.object({
|
|
8
8
|
workspace_id: z.string().uuid(),
|
|
9
9
|
name: displayNameSchema,
|
|
10
|
+
slug: slugSchema,
|
|
10
11
|
source: z.object({
|
|
11
12
|
connection_id: z.string().uuid(),
|
|
12
13
|
external_repository_id: z.string().min(1).max(255)
|
|
13
14
|
})
|
|
14
15
|
});
|
|
16
|
+
export const updateProjectBodySchema = z.object({
|
|
17
|
+
name: displayNameSchema.optional(),
|
|
18
|
+
slug: slugSchema.optional()
|
|
19
|
+
}).partial();
|
|
15
20
|
export const projectDtoSchema = z.object({
|
|
16
21
|
id: z.string().uuid(),
|
|
17
22
|
workspace_id: z.string().uuid(),
|
|
18
23
|
name: z.string(),
|
|
24
|
+
slug: slugSchema,
|
|
19
25
|
source: projectSourceDtoSchema,
|
|
20
26
|
created_at: z.string(),
|
|
21
27
|
updated_at: z.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/schemas/project.ts"],"sourcesContent":["import {displayNameSchema} from '@shipfox/api-common-dto';\nimport {z} from 'zod';\n\nexport const projectSourceDtoSchema = z.object({\n connection_id: z.string().uuid(),\n external_repository_id: z.string(),\n});\nexport type ProjectSourceDto = z.infer<typeof projectSourceDtoSchema>;\n\nexport const createProjectBodySchema = z.object({\n workspace_id: z.string().uuid(),\n name: displayNameSchema,\n source: z.object({\n connection_id: z.string().uuid(),\n external_repository_id: z.string().min(1).max(255),\n }),\n});\n\nexport type CreateProjectBodyDto = z.infer<typeof createProjectBodySchema>;\n\nexport const projectDtoSchema = z.object({\n id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n name: z.string(),\n source: projectSourceDtoSchema,\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type ProjectDto = z.infer<typeof projectDtoSchema>;\n\nexport const projectResponseSchema = projectDtoSchema;\n\nexport type ProjectResponseDto = z.infer<typeof projectResponseSchema>;\n\nexport const listProjectsQuerySchema = z.object({\n workspace_id: z.string().uuid(),\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});\n\nexport type ListProjectsQueryDto = z.infer<typeof listProjectsQuerySchema>;\n\nexport const listProjectsResponseSchema = z.object({\n projects: z.array(projectDtoSchema),\n next_cursor: z.string().nullable(),\n});\n\nexport type ListProjectsResponseDto = z.infer<typeof listProjectsResponseSchema>;\n\nexport const adminProjectSummaryDtoSchema = z.object({\n id: z.string().uuid(),\n name: z.string(),\n status: z.literal('active'),\n workspace_id: z.string().uuid(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type AdminProjectSummaryDto = z.infer<typeof adminProjectSummaryDtoSchema>;\n\nexport const listAdminProjectsQuerySchema = z.object({\n project_id: z.string().uuid().optional(),\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});\n\nexport type ListAdminProjectsQueryDto = z.infer<typeof listAdminProjectsQuerySchema>;\n\nexport const listAdminProjectsResponseSchema = z.object({\n projects: z.array(adminProjectSummaryDtoSchema),\n next_cursor: z.string().nullable(),\n});\n\nexport type ListAdminProjectsResponseDto = z.infer<typeof listAdminProjectsResponseSchema>;\n"],"names":["displayNameSchema","z","projectSourceDtoSchema","object","connection_id","string","uuid","external_repository_id","createProjectBodySchema","workspace_id","name","source","min","max","projectDtoSchema","id","created_at","updated_at","projectResponseSchema","listProjectsQuerySchema","limit","coerce","number","int","default","cursor","
|
|
1
|
+
{"version":3,"sources":["../../src/schemas/project.ts"],"sourcesContent":["import {displayNameSchema, slugSchema} from '@shipfox/api-common-dto';\nimport {z} from 'zod';\n\nexport const projectSourceDtoSchema = z.object({\n connection_id: z.string().uuid(),\n external_repository_id: z.string(),\n});\nexport type ProjectSourceDto = z.infer<typeof projectSourceDtoSchema>;\n\nexport const createProjectBodySchema = z.object({\n workspace_id: z.string().uuid(),\n name: displayNameSchema,\n slug: slugSchema,\n source: z.object({\n connection_id: z.string().uuid(),\n external_repository_id: z.string().min(1).max(255),\n }),\n});\n\nexport type CreateProjectBodyDto = z.infer<typeof createProjectBodySchema>;\n\nexport const updateProjectBodySchema = z\n .object({\n name: displayNameSchema.optional(),\n slug: slugSchema.optional(),\n })\n .partial();\n\nexport type UpdateProjectBodyDto = z.infer<typeof updateProjectBodySchema>;\n\nexport const projectDtoSchema = z.object({\n id: z.string().uuid(),\n workspace_id: z.string().uuid(),\n name: z.string(),\n slug: slugSchema,\n source: projectSourceDtoSchema,\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type ProjectDto = z.infer<typeof projectDtoSchema>;\n\nexport const projectResponseSchema = projectDtoSchema;\n\nexport type ProjectResponseDto = z.infer<typeof projectResponseSchema>;\n\nexport const listProjectsQuerySchema = z.object({\n workspace_id: z.string().uuid(),\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});\n\nexport type ListProjectsQueryDto = z.infer<typeof listProjectsQuerySchema>;\n\nexport const listProjectsResponseSchema = z.object({\n projects: z.array(projectDtoSchema),\n next_cursor: z.string().nullable(),\n});\n\nexport type ListProjectsResponseDto = z.infer<typeof listProjectsResponseSchema>;\n\nexport const adminProjectSummaryDtoSchema = z.object({\n id: z.string().uuid(),\n name: z.string(),\n status: z.literal('active'),\n workspace_id: z.string().uuid(),\n created_at: z.string(),\n updated_at: z.string(),\n});\n\nexport type AdminProjectSummaryDto = z.infer<typeof adminProjectSummaryDtoSchema>;\n\nexport const listAdminProjectsQuerySchema = z.object({\n project_id: z.string().uuid().optional(),\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});\n\nexport type ListAdminProjectsQueryDto = z.infer<typeof listAdminProjectsQuerySchema>;\n\nexport const listAdminProjectsResponseSchema = z.object({\n projects: z.array(adminProjectSummaryDtoSchema),\n next_cursor: z.string().nullable(),\n});\n\nexport type ListAdminProjectsResponseDto = z.infer<typeof listAdminProjectsResponseSchema>;\n"],"names":["displayNameSchema","slugSchema","z","projectSourceDtoSchema","object","connection_id","string","uuid","external_repository_id","createProjectBodySchema","workspace_id","name","slug","source","min","max","updateProjectBodySchema","optional","partial","projectDtoSchema","id","created_at","updated_at","projectResponseSchema","listProjectsQuerySchema","limit","coerce","number","int","default","cursor","search","listProjectsResponseSchema","projects","array","next_cursor","nullable","adminProjectSummaryDtoSchema","status","literal","listAdminProjectsQuerySchema","project_id","listAdminProjectsResponseSchema"],"mappings":"AAAA,SAAQA,iBAAiB,EAAEC,UAAU,QAAO,0BAA0B;AACtE,SAAQC,CAAC,QAAO,MAAM;AAEtB,OAAO,MAAMC,yBAAyBD,EAAEE,MAAM,CAAC;IAC7CC,eAAeH,EAAEI,MAAM,GAAGC,IAAI;IAC9BC,wBAAwBN,EAAEI,MAAM;AAClC,GAAG;AAGH,OAAO,MAAMG,0BAA0BP,EAAEE,MAAM,CAAC;IAC9CM,cAAcR,EAAEI,MAAM,GAAGC,IAAI;IAC7BI,MAAMX;IACNY,MAAMX;IACNY,QAAQX,EAAEE,MAAM,CAAC;QACfC,eAAeH,EAAEI,MAAM,GAAGC,IAAI;QAC9BC,wBAAwBN,EAAEI,MAAM,GAAGQ,GAAG,CAAC,GAAGC,GAAG,CAAC;IAChD;AACF,GAAG;AAIH,OAAO,MAAMC,0BAA0Bd,EACpCE,MAAM,CAAC;IACNO,MAAMX,kBAAkBiB,QAAQ;IAChCL,MAAMX,WAAWgB,QAAQ;AAC3B,GACCC,OAAO,GAAG;AAIb,OAAO,MAAMC,mBAAmBjB,EAAEE,MAAM,CAAC;IACvCgB,IAAIlB,EAAEI,MAAM,GAAGC,IAAI;IACnBG,cAAcR,EAAEI,MAAM,GAAGC,IAAI;IAC7BI,MAAMT,EAAEI,MAAM;IACdM,MAAMX;IACNY,QAAQV;IACRkB,YAAYnB,EAAEI,MAAM;IACpBgB,YAAYpB,EAAEI,MAAM;AACtB,GAAG;AAIH,OAAO,MAAMiB,wBAAwBJ,iBAAiB;AAItD,OAAO,MAAMK,0BAA0BtB,EAAEE,MAAM,CAAC;IAC9CM,cAAcR,EAAEI,MAAM,GAAGC,IAAI;IAC7BkB,OAAOvB,EAAEwB,MAAM,CAACC,MAAM,GAAGC,GAAG,GAAGd,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKc,OAAO,CAAC;IACvDC,QAAQ5B,EAAEI,MAAM,GAAGW,QAAQ;IAC3Bc,QAAQ7B,EAAEI,MAAM,GAAGQ,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKE,QAAQ;AAC7C,GAAG;AAIH,OAAO,MAAMe,6BAA6B9B,EAAEE,MAAM,CAAC;IACjD6B,UAAU/B,EAAEgC,KAAK,CAACf;IAClBgB,aAAajC,EAAEI,MAAM,GAAG8B,QAAQ;AAClC,GAAG;AAIH,OAAO,MAAMC,+BAA+BnC,EAAEE,MAAM,CAAC;IACnDgB,IAAIlB,EAAEI,MAAM,GAAGC,IAAI;IACnBI,MAAMT,EAAEI,MAAM;IACdgC,QAAQpC,EAAEqC,OAAO,CAAC;IAClB7B,cAAcR,EAAEI,MAAM,GAAGC,IAAI;IAC7Bc,YAAYnB,EAAEI,MAAM;IACpBgB,YAAYpB,EAAEI,MAAM;AACtB,GAAG;AAIH,OAAO,MAAMkC,+BAA+BtC,EAAEE,MAAM,CAAC;IACnDqC,YAAYvC,EAAEI,MAAM,GAAGC,IAAI,GAAGU,QAAQ;IACtCQ,OAAOvB,EAAEwB,MAAM,CAACC,MAAM,GAAGC,GAAG,GAAGd,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKc,OAAO,CAAC;IACvDC,QAAQ5B,EAAEI,MAAM,GAAGW,QAAQ;IAC3Bc,QAAQ7B,EAAEI,MAAM,GAAGQ,GAAG,CAAC,GAAGC,GAAG,CAAC,KAAKE,QAAQ;AAC7C,GAAG;AAIH,OAAO,MAAMyB,kCAAkCxC,EAAEE,MAAM,CAAC;IACtD6B,UAAU/B,EAAEgC,KAAK,CAACG;IAClBF,aAAajC,EAAEI,MAAM,GAAG8B,QAAQ;AAClC,GAAG"}
|