@company-semantics/contracts 0.144.1 → 0.145.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.144.1",
3
+ "version": "0.145.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -2777,6 +2777,7 @@ export interface components {
2777
2777
  memberCount: number;
2778
2778
  description?: string;
2779
2779
  departmentIds?: string[];
2780
+ orderKey?: string;
2780
2781
  }[];
2781
2782
  nextCursor: string | null;
2782
2783
  hasMore: boolean;
@@ -2922,6 +2923,7 @@ export interface components {
2922
2923
  name: string;
2923
2924
  slug: string;
2924
2925
  } | null;
2926
+ orderKey: string;
2925
2927
  }[];
2926
2928
  };
2927
2929
  TeamResponse: {
@@ -2942,6 +2944,7 @@ export interface components {
2942
2944
  name: string;
2943
2945
  slug: string;
2944
2946
  } | null;
2947
+ orderKey: string;
2945
2948
  /** @enum {string} */
2946
2949
  syncMode: "manual_only" | "synced_readonly" | "synced_with_overrides";
2947
2950
  members: {
@@ -2960,6 +2963,7 @@ export interface components {
2960
2963
  slug: string;
2961
2964
  description: string | null;
2962
2965
  memberCount: number;
2966
+ orderKey: string;
2963
2967
  }[];
2964
2968
  };
2965
2969
  DepartmentResponse: {
@@ -2978,6 +2982,7 @@ export interface components {
2978
2982
  role: "member" | "manager" | "owner";
2979
2983
  joinedAt: string;
2980
2984
  }[];
2985
+ orderKey: string;
2981
2986
  };
2982
2987
  DriveFileListResponse: {
2983
2988
  files: {
@@ -22,12 +22,8 @@ export interface Department {
22
22
  readonly slug: string;
23
23
  readonly description: string | null;
24
24
  readonly memberCount: number;
25
- /**
26
- * Fractional-index key for drag-to-reorder. Backend always returns this;
27
- * typed optional until the OpenAPI spec (DepartmentSummarySchema) is
28
- * regenerated to include the field. Once regen ships, tighten to required.
29
- */
30
- readonly orderKey?: string;
25
+ /** Fractional-index key used by drag-to-reorder. Backend always returns this. */
26
+ readonly orderKey: string;
31
27
  }
32
28
 
33
29
  /**
package/src/org/teams.ts CHANGED
@@ -31,12 +31,8 @@ export interface Team {
31
31
  readonly scope: import('./departments').TeamScope;
32
32
  readonly department: { readonly id: string; readonly name: string; readonly slug: string } | null;
33
33
  readonly homeDepartment: { readonly id: string; readonly name: string; readonly slug: string } | null;
34
- /**
35
- * Fractional-index key for drag-to-reorder. Backend always returns this;
36
- * typed optional until the OpenAPI spec (TeamSummarySchema) is regenerated
37
- * to include the field. Once regen ships, tighten to required.
38
- */
39
- readonly orderKey?: string;
34
+ /** Fractional-index key used by drag-to-reorder. Backend always returns this. */
35
+ readonly orderKey: string;
40
36
  }
41
37
 
42
38
  /**