Skip to content

Commit

Permalink
Fix Typescript generated from OpenAPI v3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
tybook committed Oct 30, 2024
1 parent 0f154fd commit 1516cd6
Show file tree
Hide file tree
Showing 359 changed files with 19,355 additions and 28,316 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
"scripts": {
"clean": "del-cli ./build/*",
"build": "yarn run clean && tsc",
"generate:neynar-oas-v1-farcaster": "del-cli src/neynar-api/v1/openapi; openapi-generator-cli generate -i src/oas/src/v1/spec.yaml -g typescript-axios -o src/neynar-api/v1/openapi --config src/oas/openapi-generator-config.json",
"generate:neynar-oas-v2-farcaster": "del-cli src/neynar-api/v2/openapi-farcaster; openapi-generator-cli generate -i src/oas/src/v2/spec.yaml -g typescript-axios -o src/neynar-api/v2/openapi-farcaster --config src/oas/openapi-generator-config.json",
"generate:neynar-oas-v2-stp": "del-cli src/neynar-api/v2/openapi-stp; openapi-generator-cli generate -i src/oas/src/v2/stp/spec.yaml -g typescript-axios -o src/neynar-api/v2/openapi-stp --config src/oas/openapi-generator-config.json"
"generate:neynar-oas-v1-farcaster": "del-cli src/neynar-api/v1/openapi; openapi-generator-cli generate -i src/oas/src/v1/spec.yaml -g typescript-axios -o src/neynar-api/v1/openapi --config src/oas/openapi-generator-config.json --openapi-normalizer 'REFACTOR_ALLOF_WITH_PROPERTIES_ONLY=true'",
"generate:neynar-oas-v2-farcaster": "del-cli src/neynar-api/v2/openapi-farcaster; openapi-generator-cli generate -i src/oas/src/v2/spec.yaml -g typescript-axios -o src/neynar-api/v2/openapi-farcaster --config src/oas/openapi-generator-config.json --openapi-normalizer 'REFACTOR_ALLOF_WITH_PROPERTIES_ONLY=true,REF_AS_PARENT_IN_ALLOF=true'",
"generate:neynar-oas-v2-stp": "del-cli src/neynar-api/v2/openapi-stp; openapi-generator-cli generate -i src/oas/src/v2/stp/spec.yaml -g typescript-axios -o src/neynar-api/v2/openapi-stp --config src/oas/openapi-generator-config.json --openapi-normalizer 'REFACTOR_ALLOF_WITH_PROPERTIES_ONLY=true,REF_AS_PARENT_IN_ALLOF=true'"
},
"author": "Neynar",
"license": "MIT",
Expand All @@ -38,4 +38,4 @@
"neynar",
"nodejs"
]
}
}
71 changes: 0 additions & 71 deletions src/neynar-api/v1/openapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -2,79 +2,8 @@
.npmignore
.openapi-generator-ignore
api.ts
apis/cast-api.ts
apis/follows-api.ts
apis/notifications-api.ts
apis/user-api.ts
apis/verification-api.ts
base.ts
common.ts
configuration.ts
git_push.sh
index.ts
models/all-casts-in-thread-response-result.ts
models/all-casts-in-thread-response.ts
models/cast-author-one-of.ts
models/cast-author.ts
models/cast-likes-response-result.ts
models/cast-likes-response.ts
models/cast-parent-author-all-of.ts
models/cast-parent-author.ts
models/cast-reactions-response-result.ts
models/cast-reactions-response.ts
models/cast-recaster-response-result.ts
models/cast-recaster-response.ts
models/cast-response-result.ts
models/cast-response.ts
models/cast-type.ts
models/cast-with-interactions-all-of.ts
models/cast-with-interactions-reactions.ts
models/cast-with-interactions-recasts.ts
models/cast-with-interactions-replies.ts
models/cast-with-interactions.ts
models/cast.ts
models/casts-response-result.ts
models/casts-response.ts
models/custody-address-response-result.ts
models/custody-address-response.ts
models/embed-url.ts
models/error-res.ts
models/follow-response-result.ts
models/follow-response-user-all-of.ts
models/follow-response-user.ts
models/follow-response.ts
models/index.ts
models/mentions-and-replies-response-result.ts
models/mentions-and-replies-response.ts
models/next-cursor.ts
models/reaction-type.ts
models/reaction-with-cast-meta-cast.ts
models/reaction-with-cast-meta-reaction.ts
models/reaction-with-cast-meta.ts
models/reaction.ts
models/reactions-and-recasts-notification-all-of.ts
models/reactions-and-recasts-notification.ts
models/reactions-and-recasts-response-result.ts
models/reactions-and-recasts-response.ts
models/reactor-pfp.ts
models/reactor-viewer-context.ts
models/reactor.ts
models/recaster-pfp.ts
models/recaster-profile-bio.ts
models/recaster-profile.ts
models/recaster-viewer-context.ts
models/recaster.ts
models/recent-casts-response.ts
models/recent-users-response-result.ts
models/recent-users-response.ts
models/user-cast-like-response-result.ts
models/user-cast-like-response.ts
models/user-pfp.ts
models/user-profile-bio.ts
models/user-profile.ts
models/user-response-result.ts
models/user-response.ts
models/user.ts
models/verification-response-result.ts
models/verification-response.ts
models/viewer-context.ts
2 changes: 1 addition & 1 deletion src/neynar-api/v1/openapi/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.6.0
7.9.0
Loading

0 comments on commit 1516cd6

Please sign in to comment.