Skip to content
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

Update API response types #15

Merged
merged 2 commits into from
Apr 15, 2021
Merged

Update API response types #15

merged 2 commits into from
Apr 15, 2021

Conversation

didoo
Copy link
Owner

@didoo didoo commented Mar 31, 2021

Comparing the types declared in the apy-types.ds file and the ones described on the Figma.com website, I have noticed there are some differences, expecially for the "Components and styles" group.

In this PR I have updated the types definition. Please double check that everything is OK. (*)
Also, I have noticed that some of the definitions for the "Figma files" group are slightly different, but I don't know them enough to be confident to change them, in case you know better please update them as well.

* it would be great to have some form of tests, so it's safer to do some code refactoring like this, without worrying to break something, maybe I'll open a PR to discuss some ideas that I have about it.

Cristiano Rastelli added 2 commits March 31, 2021 19:13
@Morglod
Copy link
Collaborator

Morglod commented Apr 2, 2021

@didoo i dont have much time to maintain figma-api actually
talking about auto-tests, better refactor & update Morglod/figma-api-gen
it is types & schemas generator from documentation
it was working 2 years ago, i dont think there are major changes in figma's doc format, so it should work properly

@didoo
Copy link
Owner Author

didoo commented Apr 2, 2021

@Morglod I didn't mean you had to do it, maybe I can (if you think you have time to at least merge the PRs).
regarding Morglod/figma-api-gen I'll have a look next week, didn't know it existed (maybe we/I could update both the READMEs to link one with another,

@Morglod
Copy link
Collaborator

Morglod commented Apr 6, 2021

@didoo ye, I can review PRs with no problem or transfer ownership; also do some tasks if you plan & structure it

@didoo
Copy link
Owner Author

didoo commented Apr 9, 2021

@didoo ye, I can review PRs with no problem or transfer ownership; also do some tasks if you plan & structure it

if it's ok for you, transfer ownership (also on npm) would be great! as I told you, I have some spare time to spend on this. and all the help is welcome, of course :)

@Morglod
Copy link
Collaborator

Morglod commented Apr 12, 2021

@didoo
"didoo/figma-api already exists"

Looks like easier to stay as it was and I just fast-review & merge everything from you

@didoo
Copy link
Owner Author

didoo commented Apr 13, 2021

@Morglod sorry, my bad, I didn't think of the name conflict with my fork 🤦‍♂️. Now I have renamed the fork, it should be ok to transfer it.

@Morglod
Copy link
Collaborator

Morglod commented Apr 15, 2021

@didoo
omg this github 🤦🏻
image

@didoo
Copy link
Owner Author

didoo commented Apr 15, 2021

@didoo
omg this github 🤦🏻
image

OK, I have completely deleted the fork. Try now, it should work 🤞

@Morglod
Copy link
Collaborator

Morglod commented Apr 15, 2021

@didoo
image

@didoo didoo merged commit b7a2e1e into didoo:master Apr 15, 2021
@didoo
Copy link
Owner Author

didoo commented Apr 15, 2021

@Morglod one last thing: can you transfer also the package on NPM? So I can publish it on the public repository too:
https://www.npmjs.com/package/figma-api
https://docs.npmjs.com/transferring-a-package-from-a-user-account-to-another-user-account
thanks

(my user is "didoo")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants