@shipfox/api-projects-dto 9.2.0 → 10.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: 7 files with swc (100.79ms)
2
+ Successfully compiled: 7 files with swc (401.24ms)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @shipfox/api-projects-dto
2
2
 
3
+ ## 10.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e9280fc: Add an observer-authorized administrator workspace lookup with bounded safe summaries,
8
+ best-effort job counts, and a neutral unavailable-workspace member experience for
9
+ suspended or deleted workspaces.
10
+
11
+ ### Patch Changes
12
+
13
+ - @shipfox/api-common-dto@9.2.0
14
+ - @shipfox/inter-module@0.2.2
15
+
3
16
  ## 9.2.0
4
17
 
5
18
  ### Patch Changes
@@ -42,6 +42,17 @@ export declare const projectsInterModuleContract: import("@shipfox/inter-module"
42
42
  }, z.core.$strip>;
43
43
  };
44
44
  };
45
+ readonly getWorkspaceProjectCounts: {
46
+ readonly input: z.ZodObject<{
47
+ workspaceIds: z.ZodArray<z.ZodString>;
48
+ }, z.core.$strip>;
49
+ readonly output: z.ZodObject<{
50
+ counts: z.ZodArray<z.ZodObject<{
51
+ workspaceId: z.ZodString;
52
+ count: z.ZodNumber;
53
+ }, z.core.$strip>>;
54
+ }, z.core.$strip>;
55
+ };
45
56
  };
46
57
  }>;
47
58
  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;AAWtB,wEAAwE;AACxE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBtC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,OAAO,2BAA2B,CAAC,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;AAetB,wEAAwE;AACxE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBtC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
@@ -8,6 +8,10 @@ const projectSchema = z.object({
8
8
  sourceExternalRepositoryId: z.string(),
9
9
  name: z.string()
10
10
  });
11
+ const workspaceProjectCountSchema = z.object({
12
+ workspaceId: idSchema,
13
+ count: z.number().int().nonnegative()
14
+ });
11
15
  /** Producer-owned project lookup and workspace ownership operations. */ export const projectsInterModuleContract = defineInterModuleContract({
12
16
  module: 'projects',
13
17
  methods: {
@@ -36,6 +40,14 @@ const projectSchema = z.object({
36
40
  workspaceId: idSchema
37
41
  })
38
42
  }
43
+ },
44
+ getWorkspaceProjectCounts: {
45
+ input: z.object({
46
+ workspaceIds: z.array(idSchema).min(1).max(100)
47
+ }),
48
+ output: z.object({
49
+ counts: z.array(workspaceProjectCountSchema)
50
+ })
39
51
  }
40
52
  }
41
53
  });
@@ -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});\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"}
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","projectId","output","project","nullable","requireProjectForWorkspace","errors","getWorkspaceProjectCounts","workspaceIds","array","min","max","counts"],"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;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