@markwharton/liquidplanner 3.2.0 → 3.2.2

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/dist/client.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * @see https://api-docs.liquidplanner.com/
8
8
  */
9
9
  import type { Result } from '@markwharton/api-core';
10
- import type { LPConfig, LPWorkspace, LPMember, LPItem, LPCostCode, LPSyncResult, LPTimesheetEntry, LPTimesheetOptions, LPUpsertOptions, LPAncestor, LPFindItemsOptions, LPWorkspaceTree, LPAssignmentsResult } from './types.js';
10
+ import type { LPConfig, LPWorkspace, LPMember, LPItem, LPCostCode, LPSyncResult, LPTimesheetEntry, LPTimesheetOptions, LPUpsertOptions, LPAncestor, LPFindItemsOptions, LPWorkspaceTree, LPAssignments } from './types.js';
11
11
  /**
12
12
  * LiquidPlanner API Client
13
13
  *
@@ -178,7 +178,7 @@ export declare class LPClient {
178
178
  *
179
179
  * @param memberId - Filter to a specific member's assignments. When omitted, returns all members' assignments.
180
180
  */
181
- getAssignments(memberId?: number): Promise<Result<LPAssignmentsResult>>;
181
+ getAssignments(memberId?: number): Promise<Result<LPAssignments>>;
182
182
  /**
183
183
  * Get all cost codes in the workspace
184
184
  */
package/dist/index.d.ts CHANGED
@@ -30,7 +30,7 @@
30
30
  */
31
31
  export { LPClient } from './client.js';
32
32
  export { resolveTaskToAssignment } from './workflows.js';
33
- export type { LPConfig, LPCacheConfig, LPRetryConfig, LPItemType, LPUserType, LPHierarchyItem, LPItem, LPAncestor, LPWorkspace, LPMember, LPCostCode, LPSyncResult, LPTimesheetEntry, LPTaskResolution, LPTimesheetOptions, LPUpsertOptions, LPAssignment, LPItemRef, LPNormalizedAssignment, LPMemberAssignments, LPAssignmentsResult, LPFindItemsOptions, LPTreeNode, LPWorkspaceTree, } from './types.js';
33
+ export type { LPConfig, LPCacheConfig, LPRetryConfig, LPItemType, LPUserType, LPHierarchyItem, LPItem, LPAncestor, LPWorkspace, LPMember, LPCostCode, LPSyncResult, LPTimesheetEntry, LPTaskResolution, LPTimesheetOptions, LPUpsertOptions, LPAssignment, LPItemRef, LPNormalizedAssignment, LPMemberAssignments, LPAssignments, LPFindItemsOptions, LPTreeNode, LPWorkspaceTree, } from './types.js';
34
34
  export type { AccessTier } from './types.js';
35
35
  export { METHOD_TIERS, ENTITIES } from './types.js';
36
36
  export { ok, err, getErrorMessage, normalizeEnum, TTLCache, MemoryCacheStore, LayeredCache } from '@markwharton/api-core';
package/dist/types.d.ts CHANGED
@@ -292,13 +292,53 @@ export interface LPItemRef extends LPAncestor {
292
292
  }
293
293
  /**
294
294
  * Assignment in the normalized result.
295
+ *
296
+ * Same fields as LPAssignment minus ancestors and customFieldValues.
295
297
  * Ancestors are reconstructable from the items lookup via parentId chain.
296
298
  * Custom field values are referenced by index into the shared customFieldValues array.
297
299
  */
298
- export type LPNormalizedAssignment = Omit<LPAssignment, 'ancestors' | 'customFieldValues'> & {
300
+ export interface LPNormalizedAssignment {
301
+ id: number;
302
+ name: string | null;
303
+ itemType: LPItemType;
304
+ parentId?: number;
305
+ costCodeId?: number;
306
+ userId?: number;
307
+ expectedStart?: string;
308
+ expectedFinish?: string;
309
+ latestFinish?: string;
310
+ late?: boolean;
311
+ targetStart?: string;
312
+ targetFinish?: string;
313
+ targetFinishType?: string;
314
+ inheritedTargetStartDate?: string;
315
+ inheritedTargetFinishDate?: string;
316
+ scheduleDirective?: string;
317
+ doneDate?: string;
318
+ lowEffort?: number;
319
+ highEffort?: number;
320
+ loggedHoursRollup?: number;
321
+ lowRemainingHoursRollup?: number;
322
+ highRemainingHoursRollup?: number;
323
+ taskStatusId?: number;
324
+ packageStatus?: string;
325
+ folderStatus?: string;
326
+ globalPriority?: string[];
327
+ color?: string;
328
+ workType?: string;
329
+ description?: string;
330
+ createdAt?: string;
331
+ updatedAt?: string;
332
+ clippedHours?: number;
333
+ workLimitHours?: number;
334
+ workLimitRisk?: boolean;
335
+ taskName?: string | null;
336
+ projectId?: number;
337
+ projectName?: string | null;
338
+ hierarchyPath?: string;
299
339
  /** Index into the top-level customFieldValues array. Undefined when no custom field values. */
300
340
  customFieldValuesIndex?: number;
301
- };
341
+ }
302
342
  /**
303
343
  * One member's assignments in the normalized result
304
344
  */
@@ -310,7 +350,7 @@ export interface LPMemberAssignments {
310
350
  * Normalized assignments result with shared lookup tables.
311
351
  * Deduplicates ancestor items and custom field values to reduce payload size.
312
352
  */
313
- export interface LPAssignmentsResult {
353
+ export interface LPAssignments {
314
354
  /** Assignments grouped by member. One entry when memberId specified, all members when omitted. */
315
355
  members: LPMemberAssignments[];
316
356
  /** Shared items lookup — walk parentId chains to reconstruct ancestor paths */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markwharton/liquidplanner",
3
- "version": "3.2.0",
3
+ "version": "3.2.2",
4
4
  "description": "LiquidPlanner API client for timesheet integration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",