@markwharton/liquidplanner 2.2.0 → 2.3.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/dist/index.d.ts +2 -0
- package/dist/index.js +1 -0
- package/dist/types.d.ts +11 -0
- package/dist/types.js +25 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
export { LPClient } from './client.js';
|
|
32
32
|
export { resolveTaskToAssignment } from './workflows.js';
|
|
33
33
|
export type { LPConfig, LPCacheConfig, LPRetryConfig, LPItemType, HierarchyItem, LPItem, LPAncestor, LPWorkspace, LPMember, LPCostCode, LPSyncResult, LPTimesheetEntry, LPTimesheetEntryWithId, LPTaskResolution, LPUpsertOptions, LPAssignmentWithContext, LPFindItemsOptions, LPTreeNode, LPWorkspaceTree, } from './types.js';
|
|
34
|
+
export type { AccessTier } from './types.js';
|
|
35
|
+
export { METHOD_TIERS } from './types.js';
|
|
34
36
|
export { ok, err, getErrorMessage, TTLCache, MemoryCacheStore, LayeredCache } from '@markwharton/api-core';
|
|
35
37
|
export type { Result, RetryConfig, OnRequestCallback, ClientConfig, Cache, CacheStore, CacheGetOptions } from '@markwharton/api-core';
|
|
36
38
|
export { hoursToMinutes, normalizeItemType, buildAuthHeader, filterIs, filterIsNot, filterIn, filterGt, filterLt, filterAfter, filterBefore, joinFilters, paginatedFetch, } from './utils.js';
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
export { LPClient } from './client.js';
|
|
33
33
|
// Workflows
|
|
34
34
|
export { resolveTaskToAssignment } from './workflows.js';
|
|
35
|
+
export { METHOD_TIERS } from './types.js';
|
|
35
36
|
// Re-exported from @markwharton/api-core
|
|
36
37
|
export { ok, err, getErrorMessage, TTLCache, MemoryCacheStore, LayeredCache } from '@markwharton/api-core';
|
|
37
38
|
// Utilities
|
package/dist/types.d.ts
CHANGED
|
@@ -206,6 +206,8 @@ export interface LPConfig extends ClientConfig {
|
|
|
206
206
|
apiToken: string;
|
|
207
207
|
/** Enable caching with optional TTL overrides. Omit to disable caching. */
|
|
208
208
|
cache?: LPCacheConfig;
|
|
209
|
+
/** Whether to persist restricted-tier data in persistent cache stores (default: true). Set false to keep restricted data in memory only. */
|
|
210
|
+
persistRestricted?: boolean;
|
|
209
211
|
}
|
|
210
212
|
/**
|
|
211
213
|
* Result of a timesheet sync operation
|
|
@@ -336,3 +338,12 @@ export interface LPWorkspaceTree {
|
|
|
336
338
|
/** Total number of items in the tree */
|
|
337
339
|
itemCount: number;
|
|
338
340
|
}
|
|
341
|
+
/** Access tier for method-level authorization */
|
|
342
|
+
export type AccessTier = 'standard' | 'restricted';
|
|
343
|
+
/**
|
|
344
|
+
* Access tier for each data method.
|
|
345
|
+
*
|
|
346
|
+
* All LP methods are standard tier — LP data is workspace-scoped, not employee-scoped.
|
|
347
|
+
* Utility methods (validate, clear, invalidate) are not included.
|
|
348
|
+
*/
|
|
349
|
+
export declare const METHOD_TIERS: Record<string, AccessTier>;
|
package/dist/types.js
CHANGED
|
@@ -4,4 +4,28 @@
|
|
|
4
4
|
* These types define the data structures used when interacting with
|
|
5
5
|
* the LiquidPlanner API.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Access tier for each data method.
|
|
9
|
+
*
|
|
10
|
+
* All LP methods are standard tier — LP data is workspace-scoped, not employee-scoped.
|
|
11
|
+
* Utility methods (validate, clear, invalidate) are not included.
|
|
12
|
+
*/
|
|
13
|
+
export const METHOD_TIERS = {
|
|
14
|
+
getWorkspaces: 'standard',
|
|
15
|
+
getWorkspaceMembers: 'standard',
|
|
16
|
+
getItem: 'standard',
|
|
17
|
+
getItems: 'standard',
|
|
18
|
+
getItemAncestors: 'standard',
|
|
19
|
+
findAssignments: 'standard',
|
|
20
|
+
getMyAssignments: 'standard',
|
|
21
|
+
getMyAssignmentsWithContext: 'standard',
|
|
22
|
+
findItems: 'standard',
|
|
23
|
+
getChildren: 'standard',
|
|
24
|
+
getWorkspaceTree: 'standard',
|
|
25
|
+
getMyWork: 'standard',
|
|
26
|
+
getCostCodes: 'standard',
|
|
27
|
+
createTimesheetEntry: 'standard',
|
|
28
|
+
getTimesheetEntries: 'standard',
|
|
29
|
+
updateTimesheetEntry: 'standard',
|
|
30
|
+
upsertTimesheetEntry: 'standard',
|
|
31
|
+
};
|