-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Webhook Simulation resources (#49)
- Added `simulationTypes` resources - Added `simulations` resources - Added `simulationRuns` resources - Added `simulationRunEvents` resources
- Loading branch information
1 parent
2b65e10
commit 662553d
Showing
66 changed files
with
1,783 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
push: | ||
branches: | ||
- main | ||
- v1.x | ||
|
||
jobs: | ||
run-publish: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/__tests__/mocks/resources/simulation-run-events.mock.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/** | ||
* ! Autogenerated code ! | ||
* Do not make changes to this file. | ||
* Changes may be overwritten as part of auto-generation. | ||
*/ | ||
|
||
import { ISimulationRunEventResponse } from '../../../types'; | ||
import { Response, ResponsePaginated } from '../../../internal'; | ||
|
||
export const SimulationRunEventMock: ISimulationRunEventResponse = { | ||
id: 'ntfsimevt_123', | ||
status: 'success', | ||
event_type: 'subscription.created', | ||
payload: {}, | ||
request: null, | ||
response: null, | ||
created_at: '2024-09-18T12:24:47.960617Z', | ||
updated_at: '2024-09-18T12:24:48.309530Z', | ||
}; | ||
|
||
export const SimulationRunEventMockResponse: Response<ISimulationRunEventResponse> = { | ||
data: SimulationRunEventMock, | ||
meta: { | ||
request_id: '', | ||
}, | ||
}; | ||
|
||
export const ListSimulationRunEventMockResponse: ResponsePaginated<ISimulationRunEventResponse> = { | ||
data: [SimulationRunEventMock], | ||
meta: { | ||
request_id: '', | ||
pagination: { | ||
estimated_total: 10, | ||
has_more: true, | ||
next: '/simulations/ntfsim_123/runs/ntfsimrun_123/events?after=1', | ||
per_page: 10, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/** | ||
* ! Autogenerated code ! | ||
* Do not make changes to this file. | ||
* Changes may be overwritten as part of auto-generation. | ||
*/ | ||
|
||
import { ISimulationRunResponse } from '../../../types'; | ||
import { Response, ResponsePaginated } from '../../../internal'; | ||
|
||
export const SimulationRunMock: ISimulationRunResponse = { | ||
id: 'ntfsimrun_01j82gvz2cgw08p7mak3gcd3a3', | ||
status: 'completed', | ||
type: 'subscription_creation', | ||
created_at: '2024-09-18T12:14:15.628606Z', | ||
updated_at: '2024-09-18T12:14:27.244695Z', | ||
}; | ||
|
||
export const SimulationRunMockResponse: Response<ISimulationRunResponse> = { | ||
data: SimulationRunMock, | ||
meta: { | ||
request_id: '', | ||
}, | ||
}; | ||
|
||
export const ListSimulationRunMockResponse: ResponsePaginated<ISimulationRunResponse> = { | ||
data: [SimulationRunMock], | ||
meta: { | ||
request_id: '', | ||
pagination: { | ||
estimated_total: 10, | ||
has_more: true, | ||
next: '/simulations/ntfsim_123/runs?after=1', | ||
per_page: 10, | ||
}, | ||
}, | ||
}; |
Oops, something went wrong.