-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(rest-api-client): add space.addSpaceFromTemplate()
method
#2638
Conversation
@@ -19,4 +19,8 @@ export abstract class BaseClient { | |||
guestSpaceId: this.guestSpaceId, | |||
}); | |||
} | |||
|
|||
protected buildPath(params: { endpointName: string; preview?: boolean }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's difficult to understand that the buildPath()
doesn't regard guestSpaceId from its name.
Please add a doc comment or rename this function.
@@ -33,6 +33,15 @@ export type Space = { | |||
fixedMember: boolean; | |||
}; | |||
|
|||
export type SpaceTemplate = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This type is not a Space template.
The space template is in the kintone and referenced by id.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can extract this type to params directly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Why
addSpaceFromTemplate
method to be able to add a new Space from Space Template.What
addSpaceFromTemplate
How to test
Checklist
pnpm lint
andpnpm test
on the root directory.