@shipfox/api-projects-dto 12.2.0 → 14.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 +6 -0
- package/dist/inter-module.d.ts +4 -0
- package/dist/inter-module.d.ts.map +1 -1
- package/dist/inter-module.js +1 -0
- package/dist/inter-module.js.map +1 -1
- package/dist/tsconfig.test.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/inter-module.test.ts +2 -0
- package/src/inter-module.ts +1 -0
- 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 (400.93ms)
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @shipfox/api-projects-dto
|
|
2
2
|
|
|
3
|
+
## 14.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- a4df8d9: Resolves a workflow lineage id on GET /definitions/:id by selecting the project's default-branch row, or 404 when the file is not on that branch.
|
|
8
|
+
|
|
3
9
|
## 12.2.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/dist/inter-module.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const projectsInterModuleContract: import("@shipfox/inter-module"
|
|
|
15
15
|
sourceConnectionId: z.ZodString;
|
|
16
16
|
sourceExternalRepositoryId: z.ZodString;
|
|
17
17
|
sourceRepositoryOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
sourceDefaultBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
19
|
name: z.ZodString;
|
|
19
20
|
}, z.core.$strip>>;
|
|
20
21
|
}, z.core.$strip>;
|
|
@@ -32,6 +33,7 @@ export declare const projectsInterModuleContract: import("@shipfox/inter-module"
|
|
|
32
33
|
sourceConnectionId: z.ZodString;
|
|
33
34
|
sourceExternalRepositoryId: z.ZodString;
|
|
34
35
|
sourceRepositoryOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
sourceDefaultBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
37
|
name: z.ZodString;
|
|
36
38
|
}, z.core.$strip>>;
|
|
37
39
|
}, z.core.$strip>;
|
|
@@ -52,6 +54,7 @@ export declare const projectsInterModuleContract: import("@shipfox/inter-module"
|
|
|
52
54
|
sourceConnectionId: z.ZodString;
|
|
53
55
|
sourceExternalRepositoryId: z.ZodString;
|
|
54
56
|
sourceRepositoryOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
57
|
+
sourceDefaultBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
58
|
name: z.ZodString;
|
|
56
59
|
}, z.core.$strip>>;
|
|
57
60
|
nextCursor: z.ZodNullable<z.ZodObject<{
|
|
@@ -72,6 +75,7 @@ export declare const projectsInterModuleContract: import("@shipfox/inter-module"
|
|
|
72
75
|
sourceConnectionId: z.ZodString;
|
|
73
76
|
sourceExternalRepositoryId: z.ZodString;
|
|
74
77
|
sourceRepositoryOwner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
sourceDefaultBranch: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
75
79
|
name: z.ZodString;
|
|
76
80
|
}, z.core.$strip>;
|
|
77
81
|
}, z.core.$strip>;
|
|
@@ -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;AAiCtB,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
|
@@ -7,6 +7,7 @@ const projectSchema = z.object({
|
|
|
7
7
|
sourceConnectionId: idSchema,
|
|
8
8
|
sourceExternalRepositoryId: z.string(),
|
|
9
9
|
sourceRepositoryOwner: z.string().min(1).nullable().optional(),
|
|
10
|
+
sourceDefaultBranch: z.string().min(1).nullable().optional(),
|
|
10
11
|
name: z.string()
|
|
11
12
|
});
|
|
12
13
|
const workspaceProjectCountSchema = z.object({
|
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 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,
|
|
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 sourceDefaultBranch: 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","sourceDefaultBranch","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,qBAAqBd,EAAEE,MAAM,GAAGS,GAAG,CAAC,GAAGC,QAAQ,GAAGC,QAAQ;IAC1DE,MAAMf,EAAEE,MAAM;AAChB;AACA,MAAMc,8BAA8BhB,EAAEK,MAAM,CAAC;IAC3CE,aAAaN;IACbgB,OAAOjB,EAAEkB,MAAM,GAAGC,GAAG,GAAGC,WAAW;AACrC;AACA,MAAMC,sBAAsBrB,EAAEK,MAAM,CAAC;IACnCiB,WAAWtB,EAAEE,MAAM,GAAGqB,QAAQ;IAC9BjB,IAAIL;AACN;AACA,MAAMuB,uBAAuBxB,EAAEyB,KAAK,CAAC;IACnCzB,EAAE0B,YAAY,CAAC;QAACC,SAAS1B;IAAQ;IACjCD,EAAE0B,YAAY,CAAC;QACbE,YAAY3B,SAASY,QAAQ;QAC7BgB,YAAY7B,EAAEE,MAAM,GAAGS,GAAG,CAAC;IAC7B;CACD;AACD,MAAMmB,+BAA+B9B,EAAEK,MAAM,CAAC;IAC5C0B,WAAW9B;IACX+B,cAAc/B;IACdgC,sBAAsBjC,EAAEE,MAAM;AAChC;AAEA,sEAAsE,GACtE,OAAO,MAAMgC,8BAA8BnC,0BAA0B;IACn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