-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove axios dependency from CLI
- Loading branch information
Showing
218 changed files
with
22,789 additions
and
122 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
|
@@ -12,8 +12,8 @@ import { | |
spyOnConsole, | ||
} from '../../test/cli-test-utils'; | ||
|
||
const mockPingServer = vi.fn(() => Promise.resolve({ data: { res: 'pong' } })); | ||
const mockUserInfo = vi.fn(() => Promise.resolve({ data: { email: '[email protected]' } })); | ||
const mockPingServer = vi.fn(() => Promise.resolve({ res: 'pong' })); | ||
const mockUserInfo = vi.fn(() => Promise.resolve({ email: '[email protected]' })); | ||
|
||
vi.mock('@immich/sdk', async () => ({ | ||
...(await vi.importActual('@immich/sdk')), | ||
|
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 |
---|---|---|
|
@@ -14,10 +14,10 @@ export const setup = async () => { | |
await api.authenticationApi.signUpAdmin({ | ||
signUpDto: { email: '[email protected]', password: 'password', name: 'Administrator' }, | ||
}); | ||
const { data: admin } = await api.authenticationApi.login({ | ||
const admin = await api.authenticationApi.login({ | ||
loginCredentialDto: { email: '[email protected]', password: 'password' }, | ||
}); | ||
const { data: apiKey } = await api.keyApi.createApiKey( | ||
const apiKey = await api.keyApi.createApiKey( | ||
{ aPIKeyCreateDto: { name: 'CLI Test' } }, | ||
{ headers: { Authorization: `Bearer ${admin.accessToken}` } }, | ||
); | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion
1
...cript-sdk/client/.openapi-generator/FILES → ...sdk/axios-client/.openapi-generator/FILES
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 |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.gitignore | ||
.npmignore | ||
.openapi-generator-ignore | ||
api.ts | ||
base.ts | ||
common.ts | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 @@ | ||
export * from './axios-client'; | ||
export * as base from './axios-client/base'; | ||
export * as configuration from './axios-client/configuration'; | ||
export * as common from './axios-client/common'; |
Oops, something went wrong.