Skip to content

Commit

Permalink
Merge pull request #11 from mfbx9da4/patch6
Browse files Browse the repository at this point in the history
  • Loading branch information
tatarco authored Jun 18, 2024
2 parents 0b400ae + 94d16d3 commit 9ce2b29
Show file tree
Hide file tree
Showing 12 changed files with 468 additions and 456 deletions.
6 changes: 3 additions & 3 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: f50499c4-d106-4975-983f-ead3a386ec53
management:
docChecksum: ff2b225ca2e49278441d328b95c1438e
docChecksum: 843588d509aa4de3a4d846ef57647cfc
docVersion: "1.0"
speakeasyVersion: 1.308.1
generationVersion: 2.342.6
releaseVersion: 0.0.1-alpha.6
configChecksum: 40ee02b261170530dac0a8f1dc53b78c
releaseVersion: 0.0.1-alpha.8
configChecksum: 44795b95ebeff18a9bac44fee44a664c
repoURL: https://github.com/novuhq/novu-node.git
installationURL: https://github.com/novuhq/novu-node
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.0.1-alpha.6
version: 0.0.1-alpha.8
additionalDependencies:
dependencies: {}
devDependencies: {}
Expand Down
15 changes: 7 additions & 8 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,28 @@ speakeasyVersion: 1.308.1
sources:
json-development:
sourceNamespace: json-development
sourceRevisionDigest: sha256:29edc619a2679fa8e1a740058da7bdb67f035552773df8d953613a3f9dc9a82a
sourceBlobDigest: sha256:e8603aa67eeecc10118aee45900346cfc574753b6cfc9a02891d5c0ac34db596
sourceRevisionDigest: sha256:1bc7354bf3d77f5041f4a62ff46949898a6e56bfebddd50406db841adbe08f6e
sourceBlobDigest: sha256:aef7e5b403d20e17858ce338f35a9e6bb056e3ea3e7a98c3def0d89ecfeb95b3
tags:
- latest
- main
targets:
my-first-target:
source: json-development
sourceNamespace: json-development
sourceRevisionDigest: sha256:29edc619a2679fa8e1a740058da7bdb67f035552773df8d953613a3f9dc9a82a
sourceBlobDigest: sha256:e8603aa67eeecc10118aee45900346cfc574753b6cfc9a02891d5c0ac34db596
sourceRevisionDigest: sha256:1bc7354bf3d77f5041f4a62ff46949898a6e56bfebddd50406db841adbe08f6e
sourceBlobDigest: sha256:aef7e5b403d20e17858ce338f35a9e6bb056e3ea3e7a98c3def0d89ecfeb95b3
codeSamplesNamespace: code-samples-typescript
codeSamplesRevisionDigest: sha256:dd267717c5a192385b338c0e97f54a1a34a6bbe7ce4aae75c79eeeba30c2d7ca
codeSamplesRevisionDigest: sha256:8bcf1a1d27d468c4289986ffc8eb9789bc81a6d0f5abcac77ddd6d8f5b43b832
outLocation: /Users/da/code/misc/novu-node
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
sources:
json-development:
inputs:
- location: ./sources/openapi.sdk.json
- location: http://api.novu.co/openapi.sdk.json
overlays:
- location: ./sources/remove-headers-overlay.yaml
- location: ./sources/cleanup-overlay.yaml
output: sources/json-development.json
registry:
location: registry.speakeasyapi.dev/novu/novu/json-development
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ speakeasyVersion: latest
sources:
json-development:
inputs:
# - location: http://api.novu.co/openapi.sdk.json
- location: ./sources/openapi.sdk.json
- location: http://api.novu.co/openapi.sdk.json
# - location: ./sources/openapi.sdk.json
overlays:
- location: ./sources/remove-headers-overlay.yaml
- location: ./sources/cleanup-overlay.yaml
registry:
location: registry.speakeasyapi.dev/novu/novu/json-development
output: sources/json-development.json
Expand All @@ -15,7 +15,7 @@ targets:
target: typescript
source: json-development
codeSamples:
output: sources/code-samples.json
output: sources/code-samples.yaml
registry:
location: registry.speakeasyapi.dev/novu/novu/code-samples-typescript
publish:
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@novu/api",
"version": "0.0.1-alpha.6",
"version": "0.0.1-alpha.8",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@novu/api",
"version": "0.0.1-alpha.6",
"version": "0.0.1-alpha.8",
"author": "Novu",
"main": "./index.js",
"sideEffects": false,
Expand Down
20 changes: 20 additions & 0 deletions sources/cleanup-overlay.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
overlay: 1.0.0
info:
title: Clean OpenAPI
version: 0.0.0
actions:
# Remove headers from all paths
- target: $.paths.*.*.responses.*.headers
remove: true
# Remove all echo paths
- target: $..[?(@.operationId =~ /EchoController/)]
remove: true
# Remove all translation paths
- target: $..[?(@.operationId =~ /TranslationController/)]
remove: true
# Remove all google auth paths
- target: $..[?(@.operationId =~ /AuthController_google/)]
remove: true
# Remove the TranslationGroupRequestDto schema
- target: $.components.schemas.TranslationGroupRequestDto
remove: true
Loading

0 comments on commit 9ce2b29

Please sign in to comment.