@26lights/orcha 0.42.183 → 0.42.185

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.
@@ -8,4 +8,4 @@ export declare function getLevelsForRoot(rootType: BulkStructureRoot): BulkStruc
8
8
  export declare function getBulkStructureConvention(rootType: BulkStructureRoot): BulkStructureConvention;
9
9
  export declare function getIndentUnit(convention?: Pick<BulkStructureConvention, 'indentCharacter' | 'indentSize'>): string;
10
10
  export declare function getIndentPrefix(level: number, convention?: Pick<BulkStructureConvention, 'indentCharacter' | 'indentSize'>): string;
11
- export declare function getBulkStructureExample(rootType: BulkStructureRoot): string;
11
+ export declare function getBulkStructureExample(rootType: BulkStructureRoot, getLabel: (type: BulkStructureEntityType) => string): string;
@@ -1,5 +1,6 @@
1
1
  import type { BulkActivityHierarchyPayload, BulkMilestoneHierarchyPayload, BulkPhaseHierarchyPayload, BulkStructureNode } from '../types/bulkStructure';
2
2
  interface RankedItem {
3
+ id: string;
3
4
  rank: string;
4
5
  }
5
6
  export declare function buildActivityHierarchy(nodes: BulkStructureNode[], existingActivities: RankedItem[]): BulkActivityHierarchyPayload[];
@@ -1,4 +1,4 @@
1
- import { type Activity, type ActivityStatus, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User } from './types';
1
+ import { type Activity, type ActivityStatus, type Id, type Milestone, type MilestoneStatus, type Ordered, type Phase, type User } from './types';
2
2
  import { type DraggableChangeEvent } from './types/utils';
3
3
  /**
4
4
  * Formats minutes into a human-readable time format
@@ -1,5 +1,6 @@
1
1
  export type BulkStructureRoot = 'phase' | 'milestone' | 'activity';
2
2
  export type BulkStructureEntityType = 'phase' | 'milestone' | 'activity' | 'task';
3
+ export type BulkStructureParserErrorCode = 'INVALID_INDENTATION_CHARACTER' | 'INVALID_INDENTATION_SIZE' | 'TOO_MANY_INDENTATION_LEVELS' | 'EXPECTED_PARENT_BEFORE';
3
4
  export interface BulkStructureNode {
4
5
  type: BulkStructureEntityType;
5
6
  name: string;
@@ -7,7 +8,8 @@ export interface BulkStructureNode {
7
8
  }
8
9
  export interface BulkStructureError {
9
10
  line: number;
10
- message: string;
11
+ code: BulkStructureParserErrorCode;
12
+ params?: Record<string, string | number>;
11
13
  }
12
14
  export interface BulkStructureParseResult {
13
15
  valid: boolean;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "module",
5
5
  "license": "CC-BY-NC-ND-4.0",
6
6
  "author": "26lights <dev@26lights.com> (https://www.26lights.com)",
7
- "version": "0.42.183",
7
+ "version": "0.42.185",
8
8
  "workspaces": [
9
9
  "packages/*"
10
10
  ],
@@ -1,2 +0,0 @@
1
- export * from './bulkStructureConvention';
2
- export * from './bulkStructureParser';