-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
github-actions
committed
Nov 21, 2024
1 parent
9b4e6bc
commit 5466b81
Showing
10 changed files
with
148 additions
and
292 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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { APIModule } from "$components/index" | ||
|
||
import v1_repositories_create from "./operations/v1_repositories_create" | ||
import api_repositories_repositories_create from "./operations/api_repositories_repositories_create" | ||
|
||
export default class extends APIModule { | ||
create = v1_repositories_create(this.client) | ||
create = api_repositories_repositories_create(this.client) | ||
} |
12 changes: 12 additions & 0 deletions
12
src/modules/repositories/operations/api_repositories_repositories_create.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,12 @@ | ||
import { AxiosRequestConfig } from "axios" | ||
import Prem from "$src/index" | ||
import type { operations } from "$types/api" | ||
|
||
export default (client: Prem) => (params: operations["api_repositories_repositories_create"]["requestBody"]["content"]["application/json"], options?: AxiosRequestConfig): Promise<operations["api_repositories_repositories_create"]["responses"]["201"]["content"]["application/json"]> => { | ||
return client.call({ | ||
method: "post", | ||
url: `/api/repositories/repositories/`, | ||
data: params, | ||
...options | ||
}) | ||
} |
12 changes: 0 additions & 12 deletions
12
src/modules/repositories/operations/v1_repositories_create.ts
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { APIModule } from "$components/index" | ||
|
||
import v1_repository_document_create from "./operations/v1_repository_document_create" | ||
import api_repositories_repository_document_create from "./operations/api_repositories_repository_document_create" | ||
|
||
export default class extends APIModule { | ||
create = v1_repository_document_create(this.client) | ||
create = api_repositories_repository_document_create(this.client) | ||
} |
12 changes: 12 additions & 0 deletions
12
src/modules/repository.document/operations/api_repositories_repository_document_create.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,12 @@ | ||
import { AxiosRequestConfig } from "axios" | ||
import Prem from "$src/index" | ||
import type { operations } from "$types/api" | ||
|
||
export default (client: Prem) => (repository_id: string, options?: AxiosRequestConfig): Promise<operations["api_repositories_repository_document_create"]["responses"]["201"]["content"]["application/json"]> => { | ||
return client.call({ | ||
method: "post", | ||
url: `/api/repositories/repository/${repository_id}/document`, | ||
|
||
...options | ||
}) | ||
} |
28 changes: 0 additions & 28 deletions
28
src/modules/repository.document/operations/v1_repository_document_create.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.