Skip to content

Commit

Permalink
Merge pull request #231 from neynarxyz/tdb/split-into-individual-file…
Browse files Browse the repository at this point in the history
…s-again

Workaround bug that prevented us from splitting generated Typescript into individual files
  • Loading branch information
tybook authored Oct 30, 2024
2 parents 1f20d6d + 1994031 commit ff13a15
Show file tree
Hide file tree
Showing 355 changed files with 27,269 additions and 19,327 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 --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'"
"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 --inline-schema-options 'REFACTOR_ALLOF_INLINE_SCHEMAS=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 --inline-schema-options 'REFACTOR_ALLOF_INLINE_SCHEMAS=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 --inline-schema-options 'REFACTOR_ALLOF_INLINE_SCHEMAS=true'"
},
"author": "Neynar",
"license": "MIT",
Expand All @@ -38,4 +38,4 @@
"neynar",
"nodejs"
]
}
}
71 changes: 71 additions & 0 deletions src/neynar-api/v1/openapi/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,79 @@
.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
Loading

0 comments on commit ff13a15

Please sign in to comment.