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

V2.0.0 Add Typescript support #185

Merged
merged 80 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
fa89888
DOTCOM-3581: update deps and add typescript default config (#177)
lucasassisrosa Sep 13, 2024
30c9792
DOTCOM-3583: convert base files to typescript (#179)
lucasassisrosa Sep 17, 2024
4c45b92
DOTCOM-3584: convert resource files and tests to typescript (#181)
lucasassisrosa Sep 24, 2024
331ab2b
fix Webhooks and utils tests
lucasassisrosa Sep 24, 2024
54fdce5
fix autoPagination specs
lucasassisrosa Sep 25, 2024
d6a1555
perform nock cleanup
lucasassisrosa Sep 25, 2024
d9d5ddd
fix Resources tests
lucasassisrosa Sep 25, 2024
ba2dd15
fix Telnyx Module tests
lucasassisrosa Sep 25, 2024
e0044fa
update workflow to avoid timeouts
lucasassisrosa Sep 25, 2024
d5c96c3
update test setup for Node 18
lucasassisrosa Sep 25, 2024
b59ac84
add all resources
lucasassisrosa Sep 25, 2024
e066188
update legacy Payment resource
lucasassisrosa Sep 25, 2024
9f2f7a6
add import to Resources
lucasassisrosa Sep 25, 2024
d0b2bbf
add missing Resources tests
lucasassisrosa Sep 26, 2024
6d22e34
update Calls and Messaging types according to API specs
lucasassisrosa Sep 27, 2024
160f17a
fix typos
lucasassisrosa Sep 27, 2024
0cc2eef
fix Calls missing types and methods
lucasassisrosa Sep 27, 2024
cc510ca
update Call examples to Typescript
lucasassisrosa Sep 27, 2024
3656ee5
remove previous Call example
lucasassisrosa Sep 27, 2024
b81ad21
add Messaging example
lucasassisrosa Sep 30, 2024
fd74b66
update npm and node target versions
lucasassisrosa Sep 30, 2024
d364c7a
update examples lockfile and changelog
lucasassisrosa Sep 30, 2024
a1dce66
add more detailed instructions on env setup
lucasassisrosa Oct 1, 2024
36b543e
update legacy Resources
lucasassisrosa Oct 2, 2024
2aa2d57
update instructions for v2 usage
lucasassisrosa Oct 2, 2024
89594e2
fix npm publish flow
lucasassisrosa Oct 2, 2024
e4ccc6d
release alpha.1
lucasassisrosa Oct 2, 2024
990cf09
update examples to use 2.0.0-alpha.1
lucasassisrosa Oct 2, 2024
3f6138c
fix AI resource
lucasassisrosa Oct 2, 2024
8588eba
update nested resources typing
lucasassisrosa Oct 2, 2024
70160dc
update examples
lucasassisrosa Oct 2, 2024
0a90d88
add Addresses example
lucasassisrosa Oct 2, 2024
e477fe9
update resources method names and missing d types
lucasassisrosa Oct 3, 2024
90ce906
remove unused resources
lucasassisrosa Oct 3, 2024
c52b5f7
update changelog
lucasassisrosa Oct 3, 2024
82622c2
update stale resources
lucasassisrosa Oct 8, 2024
e3f8c13
add missing Messages endpoints
lucasassisrosa Oct 9, 2024
9a0fe07
update type declarations
lucasassisrosa Oct 9, 2024
ef1361a
update changelog and bump alpha version
lucasassisrosa Oct 9, 2024
e4f2066
update changelog
lucasassisrosa Oct 9, 2024
7bdc48e
update examples
lucasassisrosa Oct 9, 2024
79a287c
update optional types
lucasassisrosa Oct 9, 2024
5ea897c
export events type defs
lucasassisrosa Oct 9, 2024
1275a81
fix nested resources logic
lucasassisrosa Oct 10, 2024
7ddc895
FIX: README Typo (#186)
mpareja-godaddy Oct 10, 2024
5319f81
bump to beta
lucasassisrosa Oct 10, 2024
0f10754
fix nested resources methods names
lucasassisrosa Oct 10, 2024
0026786
fix identity resources
lucasassisrosa Oct 11, 2024
4b029f3
add missing Texml resource methods
lucasassisrosa Oct 11, 2024
2d203d6
add missing inventory resources and methods
lucasassisrosa Oct 11, 2024
3c7c4b5
update package deps
lucasassisrosa Oct 14, 2024
3551f33
add missing Errors type def
lucasassisrosa Oct 14, 2024
4849d7f
add Versions info
lucasassisrosa Oct 14, 2024
2b9ca9d
update changelog
lucasassisrosa Oct 14, 2024
7dbe904
update examples telnyx package dependency version
lucasassisrosa Oct 15, 2024
dcd1d64
add contributing section
lucasassisrosa Oct 28, 2024
ed1d0f5
fix transformResponseData usage
lucasassisrosa Oct 28, 2024
b113497
fix porting types
lucasassisrosa Oct 28, 2024
a539e56
Merge branch 'master' into v2.0.0
lucasassisrosa Oct 28, 2024
6132d47
update examples to use beta 4
lucasassisrosa Nov 14, 2024
94e15a9
update telnyx api types
lucasassisrosa Jan 7, 2025
81b4e3b
fix telnyx api types dupes
lucasassisrosa Jan 7, 2025
ae8645b
update events
lucasassisrosa Jan 7, 2025
ffeb5c6
update portout events resource
lucasassisrosa Jan 7, 2025
f3f0c5a
update telephony credentials resource
lucasassisrosa Jan 7, 2025
ecbde2b
fix managed accounts tests
lucasassisrosa Jan 7, 2025
421374c
update sim cards resource
lucasassisrosa Jan 7, 2025
c9cc8cb
remove unused Number Order Documents resource
lucasassisrosa Jan 7, 2025
097a9b4
update changelog
lucasassisrosa Jan 7, 2025
4ace4e9
update tsconfig and lib to include js extension
lucasassisrosa Jan 7, 2025
7bf2644
Merge branch 'master' into v2.0.0
lucasassisrosa Jan 7, 2025
31ea9cd
bump version to beta 5
lucasassisrosa Jan 7, 2025
045a4eb
add connections example
lucasassisrosa Jan 8, 2025
324128e
update examples to use beta 5
lucasassisrosa Jan 8, 2025
d601c0a
add numbers example
lucasassisrosa Jan 21, 2025
7c4805f
fix WebhookHeader type in type definitions
lucasassisrosa Jan 21, 2025
a7d9777
2.0.0-beta.6
lucasassisrosa Jan 21, 2025
aec02ea
fix linter on cc example
lucasassisrosa Feb 4, 2025
802737f
update tests
lucasassisrosa Feb 4, 2025
aeba325
v2.0.0
lucasassisrosa Feb 4, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
4 changes: 4 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NODE_ENV=development
TELNYX_MOCK_PORT=12111
TELNYX_MOCK_OPEN_API_URI=https://raw.githubusercontent.com/team-telnyx/openapi/master/openapi/spec3.json
TELNYX_API_BASE=
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
*.node*.js
dist
node_modules
lib/Error.js
tsconfig.json
292 changes: 0 additions & 292 deletions .eslintrc.js

This file was deleted.

47 changes: 15 additions & 32 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,46 +5,29 @@ name: CI

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]

jobs:
test:

runs-on: ubuntu-latest
env:
TELNYX_MOCK_OPEN_API_URI: https://raw.githubusercontent.com/team-telnyx/openapi/master/openapi/spec3.json
strategy:
max-parallel: 1 # to make sure proxy server doesn't cause timeout on each individual run
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: setup-telnyx-prism-mock
run: source ./.github/scripts/before_install.sh
- run: npm ci
- run: npm run build --if-present
- name: Node ${{ matrix.node-version }}
run: npm test
- name: Report
run: npm run report
# - name: Coveralls Parallel
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.github_token }}
# flag-name: run-${{ matrix.node-version }}
# parallel: true
# finish:
# needs: test
# runs-on: ubuntu-latest
# steps:
# - name: Coveralls Finished
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.github_token }}
# parallel-finished: true
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: setup-telnyx-prism-mock
run: source ./.github/scripts/before_install.sh
- run: npm ci
- run: npm run build --if-present
- name: Node ${{ matrix.node-version }}
run: npm test
Loading