-
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.
* feat(SimulationTypes): Add simulation types resource * chore: remove payment_method events * feat(Simulations): Add simulation resource * chore(Simulations): update request body types * chore: remove unused import * feat(Simulations): Add simulation runs resources * feat(Simulations): Add simulation run events resources * chore: clean up unused vars * feat(Simulations): narrow down simulation payload types (#52) * feat(Simulations): narrow down simulation payload types * refactor(Simulations): rename event map * fix(Simulations): Include scenarios in union * refactor(Simulations): rename DiscriminatedEventResponse * chore: bump version * fix(Simulations): update imports * chore: update import
- Loading branch information
1 parent
efd9e66
commit c5cd863
Showing
65 changed files
with
1,810 additions
and
9 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
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/index.js'; | ||
import { Response, ResponsePaginated } from '../../../internal/index.js'; | ||
|
||
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/index.js'; | ||
import { Response, ResponsePaginated } from '../../../internal/index.js'; | ||
|
||
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.