@shipfox/api-projects-dto 5.0.0 → 6.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.
@@ -1,2 +1,2 @@
1
1
  $ shipfox-swc
2
- Successfully compiled: 6 files with swc (396.08ms)
2
+ Successfully compiled: 7 files with swc (300.75ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @shipfox/api-projects-dto
2
2
 
3
+ ## 6.0.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [4a91956]
8
+ - Updated dependencies [81f9544]
9
+ - @shipfox/api-common-dto@6.0.0
10
+ - @shipfox/inter-module@0.2.0
11
+
3
12
  ## 5.0.0
4
13
 
5
14
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './e2e/index.js';
2
2
  export * from './events.js';
3
+ export * from './inter-module.js';
3
4
  export * from './schemas/index.js';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './e2e/index.js';
2
2
  export * from './events.js';
3
+ export * from './inter-module.js';
3
4
  export * from './schemas/index.js';
4
5
 
5
6
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './e2e/index.js';\nexport * from './events.js';\nexport * from './schemas/index.js';\n"],"names":[],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,qBAAqB"}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["export * from './e2e/index.js';\nexport * from './events.js';\nexport * from './inter-module.js';\nexport * from './schemas/index.js';\n"],"names":[],"mappings":"AAAA,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,oBAAoB;AAClC,cAAc,qBAAqB"}
@@ -0,0 +1,48 @@
1
+ import { type InterModuleClient } from '@shipfox/inter-module';
2
+ import { z } from 'zod';
3
+ /** Producer-owned project lookup and workspace ownership operations. */
4
+ export declare const projectsInterModuleContract: import("@shipfox/inter-module").InterModuleContract<{
5
+ readonly module: "projects";
6
+ readonly methods: {
7
+ readonly getProjectById: {
8
+ readonly input: z.ZodObject<{
9
+ projectId: z.ZodString;
10
+ }, z.core.$strip>;
11
+ readonly output: z.ZodObject<{
12
+ project: z.ZodNullable<z.ZodObject<{
13
+ id: z.ZodString;
14
+ workspaceId: z.ZodString;
15
+ sourceConnectionId: z.ZodString;
16
+ sourceExternalRepositoryId: z.ZodString;
17
+ name: z.ZodString;
18
+ }, z.core.$strip>>;
19
+ }, z.core.$strip>;
20
+ };
21
+ readonly requireProjectForWorkspace: {
22
+ readonly input: z.ZodObject<{
23
+ projectId: z.ZodString;
24
+ workspaceId: z.ZodString;
25
+ }, z.core.$strip>;
26
+ readonly output: z.ZodObject<{
27
+ project: z.ZodObject<{
28
+ id: z.ZodString;
29
+ workspaceId: z.ZodString;
30
+ sourceConnectionId: z.ZodString;
31
+ sourceExternalRepositoryId: z.ZodString;
32
+ name: z.ZodString;
33
+ }, z.core.$strip>;
34
+ }, z.core.$strip>;
35
+ readonly errors: {
36
+ readonly 'project-not-found': z.ZodObject<{
37
+ projectId: z.ZodString;
38
+ }, z.core.$strip>;
39
+ readonly 'project-workspace-mismatch': z.ZodObject<{
40
+ projectId: z.ZodString;
41
+ workspaceId: z.ZodString;
42
+ }, z.core.$strip>;
43
+ };
44
+ };
45
+ };
46
+ }>;
47
+ export type ProjectsModuleClient = InterModuleClient<typeof projectsInterModuleContract>;
48
+ //# sourceMappingURL=inter-module.d.ts.map
@@ -0,0 +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;AAWtB,wEAAwE;AACxE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBtC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -0,0 +1,43 @@
1
+ import { defineInterModuleContract } from '@shipfox/inter-module';
2
+ import { z } from 'zod';
3
+ const idSchema = z.string().uuid();
4
+ const projectSchema = z.object({
5
+ id: idSchema,
6
+ workspaceId: idSchema,
7
+ sourceConnectionId: idSchema,
8
+ sourceExternalRepositoryId: z.string(),
9
+ name: z.string()
10
+ });
11
+ /** Producer-owned project lookup and workspace ownership operations. */ export const projectsInterModuleContract = defineInterModuleContract({
12
+ module: 'projects',
13
+ methods: {
14
+ getProjectById: {
15
+ input: z.object({
16
+ projectId: idSchema
17
+ }),
18
+ output: z.object({
19
+ project: projectSchema.nullable()
20
+ })
21
+ },
22
+ requireProjectForWorkspace: {
23
+ input: z.object({
24
+ projectId: idSchema,
25
+ workspaceId: idSchema
26
+ }),
27
+ output: z.object({
28
+ project: projectSchema
29
+ }),
30
+ errors: {
31
+ 'project-not-found': z.object({
32
+ projectId: idSchema
33
+ }),
34
+ 'project-workspace-mismatch': z.object({
35
+ projectId: idSchema,
36
+ workspaceId: idSchema
37
+ })
38
+ }
39
+ }
40
+ }
41
+ });
42
+
43
+ //# sourceMappingURL=inter-module.js.map
@@ -0,0 +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});\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 },\n});\n\nexport type ProjectsModuleClient = InterModuleClient<typeof projectsInterModuleContract>;\n"],"names":["defineInterModuleContract","z","idSchema","string","uuid","projectSchema","object","id","workspaceId","sourceConnectionId","sourceExternalRepositoryId","name","projectsInterModuleContract","module","methods","getProjectById","input","projectId","output","project","nullable","requireProjectForWorkspace","errors"],"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,MAAMV,EAAEE,MAAM;AAChB;AAEA,sEAAsE,GACtE,OAAO,MAAMS,8BAA8BZ,0BAA0B;IACnEa,QAAQ;IACRC,SAAS;QACPC,gBAAgB;YACdC,OAAOf,EAAEK,MAAM,CAAC;gBAACW,WAAWf;YAAQ;YACpCgB,QAAQjB,EAAEK,MAAM,CAAC;gBAACa,SAASd,cAAce,QAAQ;YAAE;QACrD;QACAC,4BAA4B;YAC1BL,OAAOf,EAAEK,MAAM,CAAC;gBAACW,WAAWf;gBAAUM,aAAaN;YAAQ;YAC3DgB,QAAQjB,EAAEK,MAAM,CAAC;gBAACa,SAASd;YAAa;YACxCiB,QAAQ;gBACN,qBAAqBrB,EAAEK,MAAM,CAAC;oBAACW,WAAWf;gBAAQ;gBAClD,8BAA8BD,EAAEK,MAAM,CAAC;oBAACW,WAAWf;oBAAUM,aAAaN;gBAAQ;YACpF;QACF;IACF;AACF,GAAG"}