[INFRA-396] feat: add workspace-level API resources#46
Conversation
Mirrors the workspace-level resources from INFRA-394 (Python SDK) into the Node SDK. Adds 7 resource groups, all registered on PlaneClient and exported from the package index. New resources: - WorkspaceTemplates — workspace work item, project, and page templates (list, create, update, del) - WorkspaceWorkItemTypes — list, create, update + properties sub-resource (list, create, del) - WorkspaceWorkItemProperties — list, create, update, del + options sub-resource (list, create, update) - WorkspaceProjectLabels — list, create, update, del - WorkspaceProjectStates — list, create, update, del - WorkItemRelationDefinitions — list (?is_default, ?is_active), create, update, del - Releases — list, create, update + tags, labels, itemLabels sub-resources New models: - WorkspaceTemplate.ts (WorkspaceWorkItemTemplate, WorkspaceProjectTemplate, WorkspacePageTemplate) - WorkspaceProjectLabel.ts, WorkspaceProjectState.ts - WorkItemRelationDefinition.ts - Release.ts (Release, ReleaseTag, ReleaseLabel, AddReleaseItemLabel) - WorkspaceWorkItemTypePropertyLink added to WorkItemType.ts Unit tests added for all resources. README updated. Co-authored-by: Plane AI <noreply@plane.so>
|
Warning Review limit reached
More reviews will be available in 36 minutes and 45 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (31)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Linked to Plane Work Item(s) References This comment was auto-generated by Plane |
Summary
Mirrors the workspace-level resources from INFRA-394 (Python SDK) into the Node SDK. Adds 7 resource groups, all registered on
PlaneClientand exported from the package index.New resources:
WorkspaceTemplates— workspace work item, project, and page templates (list, create, update, del)WorkspaceWorkItemTypes— list, create, update +propertiessub-resource (list, create, del)WorkspaceWorkItemProperties— list, create, update, del +optionssub-resource (list, create, update)WorkspaceProjectLabels— list, create, update, delWorkspaceProjectStates— list, create, update, delWorkItemRelationDefinitions— list (?is_default,?is_active), create, update, delReleases— list, create, update +tags,labels,itemLabelssub-resourcesNew models:
WorkspaceTemplate.ts,WorkspaceProjectLabel.ts,WorkspaceProjectState.ts,WorkItemRelationDefinition.ts,Release.ts— all usingPick/Partialfor DTO derivation.WorkspaceWorkItemTypePropertyLinkadded toWorkItemType.ts.Workspace template naming: Prefixed with
Workspace(e.g.WorkspaceWorkItemTemplate) to avoid collision with project-scopedWorkItemTemplateinProjectTemplate.ts.Test plan
PLANE_API_KEY,PLANE_BASE_URL,TEST_WORKSPACE_SLUGand runpnpm testpnpm check:lint— 0 errorspnpm check:format— all files correctly formattedpnpm build— compiles cleanlyCo-authored-by: Plane AI noreply@plane.so