@codacy/api-typescript
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -10,2 +10,8 @@ import { ServiceClientOptions } from "@azure/ms-rest-js"; | ||
/** | ||
* An interface representing HealthCheckResponse. | ||
*/ | ||
export interface HealthCheckResponse { | ||
data: HealthCheck; | ||
} | ||
/** | ||
* An interface representing User. | ||
@@ -23,2 +29,8 @@ */ | ||
/** | ||
* An interface representing UserResponse. | ||
*/ | ||
export interface UserResponse { | ||
data: User; | ||
} | ||
/** | ||
* An interface representing UserBody. | ||
@@ -48,2 +60,8 @@ */ | ||
/** | ||
* An interface representing OrganizationListResponse. | ||
*/ | ||
export interface OrganizationListResponse { | ||
data: Organization[]; | ||
} | ||
/** | ||
* An interface representing Integration. | ||
@@ -56,9 +74,14 @@ */ | ||
/** | ||
* An interface representing ErrorModel. | ||
* An interface representing IntegrationListResponse. | ||
*/ | ||
export interface ErrorModel { | ||
export interface IntegrationListResponse { | ||
data: Integration[]; | ||
} | ||
/** | ||
* An interface representing ApiError. | ||
*/ | ||
export interface ApiError { | ||
message: string; | ||
/** | ||
* Possible values include: 'BadRequest', 'Unauthorized', 'NotFound', 'InternalServerError', | ||
* 'NotImplemented' | ||
* Possible values include: 'Unauthorized', 'Forbidden', 'NotFound', 'InternalServerError' | ||
*/ | ||
@@ -68,2 +91,22 @@ code: Code; | ||
/** | ||
* Unauthorized | ||
*/ | ||
export interface UnauthorizedResponse extends ApiError { | ||
} | ||
/** | ||
* Forbidden | ||
*/ | ||
export interface ForbiddenResponse extends ApiError { | ||
} | ||
/** | ||
* Not found | ||
*/ | ||
export interface NotFoundResponse extends ApiError { | ||
} | ||
/** | ||
* Internal Server Error | ||
*/ | ||
export interface InternalServerErrorResponse extends ApiError { | ||
} | ||
/** | ||
* An interface representing WebsiteAPIOptions. | ||
@@ -90,12 +133,18 @@ */ | ||
* Defines values for Code. | ||
* Possible values include: 'BadRequest', 'Unauthorized', 'NotFound', 'InternalServerError', | ||
* 'NotImplemented' | ||
* Possible values include: 'Unauthorized', 'Forbidden', 'NotFound', 'InternalServerError' | ||
* @readonly | ||
* @enum {string} | ||
*/ | ||
export declare type Code = 'BadRequest' | 'Unauthorized' | 'NotFound' | 'InternalServerError' | 'NotImplemented'; | ||
export declare type Code = 'Unauthorized' | 'Forbidden' | 'NotFound' | 'InternalServerError'; | ||
/** | ||
* Defines values for Provider1. | ||
* Possible values include: 'gh', 'ghe', 'gl', 'gle', 'bb', 'bbe' | ||
* @readonly | ||
* @enum {string} | ||
*/ | ||
export declare type Provider1 = 'gh' | 'ghe' | 'gl' | 'gle' | 'bb' | 'bbe'; | ||
/** | ||
* Contains response data for the getUser operation. | ||
*/ | ||
export declare type GetUserResponse = User & { | ||
export declare type GetUserResponse = UserResponse & { | ||
/** | ||
@@ -112,3 +161,3 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: User; | ||
parsedBody: UserResponse; | ||
}; | ||
@@ -119,3 +168,3 @@ }; | ||
*/ | ||
export declare type PatchUserResponse = User & { | ||
export declare type PatchUserResponse = UserResponse & { | ||
/** | ||
@@ -132,3 +181,3 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: User; | ||
parsedBody: UserResponse; | ||
}; | ||
@@ -139,3 +188,3 @@ }; | ||
*/ | ||
export declare type ListUserOrganizationsResponse = Array<Organization> & { | ||
export declare type ListUserOrganizationsResponse = OrganizationListResponse & { | ||
/** | ||
@@ -152,3 +201,3 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: Organization[]; | ||
parsedBody: OrganizationListResponse; | ||
}; | ||
@@ -159,3 +208,3 @@ }; | ||
*/ | ||
export declare type ListUserIntegrationsResponse = Array<Integration> & { | ||
export declare type ListUserIntegrationsResponse = IntegrationListResponse & { | ||
/** | ||
@@ -172,9 +221,9 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: Integration[]; | ||
parsedBody: IntegrationListResponse; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the health operation. | ||
* Contains response data for the deleteIntegration operation. | ||
*/ | ||
export declare type HealthResponse = HealthCheck & { | ||
export declare type DeleteIntegrationResponse = ApiError & { | ||
/** | ||
@@ -191,14 +240,10 @@ * The underlying HTTP response. | ||
*/ | ||
parsedBody: HealthCheck; | ||
parsedBody: ApiError; | ||
}; | ||
}; | ||
/** | ||
* Contains response data for the hello operation. | ||
* Contains response data for the health operation. | ||
*/ | ||
export declare type HelloResponse = { | ||
export declare type HealthResponse = HealthCheckResponse & { | ||
/** | ||
* The parsed response body. | ||
*/ | ||
body: string; | ||
/** | ||
* The underlying HTTP response. | ||
@@ -214,5 +259,5 @@ */ | ||
*/ | ||
parsedBody: string; | ||
parsedBody: HealthCheckResponse; | ||
}; | ||
}; | ||
//# sourceMappingURL=index.d.ts.map |
import * as msRest from "@azure/ms-rest-js"; | ||
export declare const HealthCheck: msRest.CompositeMapper; | ||
export declare const HealthCheckResponse: msRest.CompositeMapper; | ||
export declare const User: msRest.CompositeMapper; | ||
export declare const UserResponse: msRest.CompositeMapper; | ||
export declare const UserBody: msRest.CompositeMapper; | ||
export declare const Organization: msRest.CompositeMapper; | ||
export declare const OrganizationListResponse: msRest.CompositeMapper; | ||
export declare const Integration: msRest.CompositeMapper; | ||
export declare const ErrorModel: msRest.CompositeMapper; | ||
export declare const IntegrationListResponse: msRest.CompositeMapper; | ||
export declare const ApiError: msRest.CompositeMapper; | ||
export declare const UnauthorizedResponse: msRest.CompositeMapper; | ||
export declare const ForbiddenResponse: msRest.CompositeMapper; | ||
export declare const NotFoundResponse: msRest.CompositeMapper; | ||
export declare const InternalServerErrorResponse: msRest.CompositeMapper; | ||
//# sourceMappingURL=mappers.d.ts.map |
@@ -5,2 +5,3 @@ /* | ||
*/ | ||
import { __assign } from "tslib"; | ||
export var HealthCheck = { | ||
@@ -21,2 +22,19 @@ serializedName: "HealthCheck", | ||
}; | ||
export var HealthCheckResponse = { | ||
serializedName: "HealthCheckResponse", | ||
type: { | ||
name: "Composite", | ||
className: "HealthCheckResponse", | ||
modelProperties: { | ||
data: { | ||
required: true, | ||
serializedName: "data", | ||
type: { | ||
name: "Composite", | ||
className: "HealthCheck" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export var User = { | ||
@@ -84,2 +102,19 @@ serializedName: "User", | ||
}; | ||
export var UserResponse = { | ||
serializedName: "UserResponse", | ||
type: { | ||
name: "Composite", | ||
className: "UserResponse", | ||
modelProperties: { | ||
data: { | ||
required: true, | ||
serializedName: "data", | ||
type: { | ||
name: "Composite", | ||
className: "User" | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export var UserBody = { | ||
@@ -154,2 +189,24 @@ serializedName: "UserBody", | ||
}; | ||
export var OrganizationListResponse = { | ||
serializedName: "OrganizationListResponse", | ||
type: { | ||
name: "Composite", | ||
className: "OrganizationListResponse", | ||
modelProperties: { | ||
data: { | ||
required: true, | ||
serializedName: "data", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "Organization" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export var Integration = { | ||
@@ -178,8 +235,30 @@ serializedName: "Integration", | ||
}; | ||
export var ErrorModel = { | ||
serializedName: "Error", | ||
export var IntegrationListResponse = { | ||
serializedName: "IntegrationListResponse", | ||
type: { | ||
name: "Composite", | ||
className: "ErrorModel", | ||
className: "IntegrationListResponse", | ||
modelProperties: { | ||
data: { | ||
required: true, | ||
serializedName: "data", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "Integration" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}; | ||
export var ApiError = { | ||
serializedName: "ApiError", | ||
type: { | ||
name: "Composite", | ||
className: "ApiError", | ||
modelProperties: { | ||
message: { | ||
@@ -202,2 +281,34 @@ required: true, | ||
}; | ||
export var UnauthorizedResponse = { | ||
serializedName: "UnauthorizedResponse", | ||
type: { | ||
name: "Composite", | ||
className: "UnauthorizedResponse", | ||
modelProperties: __assign({}, ApiError.type.modelProperties) | ||
} | ||
}; | ||
export var ForbiddenResponse = { | ||
serializedName: "ForbiddenResponse", | ||
type: { | ||
name: "Composite", | ||
className: "ForbiddenResponse", | ||
modelProperties: __assign({}, ApiError.type.modelProperties) | ||
} | ||
}; | ||
export var NotFoundResponse = { | ||
serializedName: "NotFoundResponse", | ||
type: { | ||
name: "Composite", | ||
className: "NotFoundResponse", | ||
modelProperties: __assign({}, ApiError.type.modelProperties) | ||
} | ||
}; | ||
export var InternalServerErrorResponse = { | ||
serializedName: "InternalServerErrorResponse", | ||
type: { | ||
name: "Composite", | ||
className: "InternalServerErrorResponse", | ||
modelProperties: __assign({}, ApiError.type.modelProperties) | ||
} | ||
}; | ||
//# sourceMappingURL=mappers.js.map |
import * as msRest from "@azure/ms-rest-js"; | ||
export declare const accountId: msRest.OperationParameter; | ||
export declare const provider: msRest.OperationURLParameter; | ||
//# sourceMappingURL=parameters.d.ts.map |
@@ -6,12 +6,2 @@ /* | ||
*/ | ||
export var accountId = { | ||
parameterPath: "accountId", | ||
mapper: { | ||
required: true, | ||
serializedName: "accountId", | ||
type: { | ||
name: "Number" | ||
} | ||
} | ||
}; | ||
export var provider = { | ||
@@ -18,0 +8,0 @@ parameterPath: "provider", |
@@ -14,116 +14,98 @@ import * as msRest from "@azure/ms-rest-js"; | ||
* @summary Get the authenticated user | ||
* @param accountId AccountId | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.GetUserResponse> | ||
*/ | ||
getUser(accountId: number, options?: msRest.RequestOptionsBase): Promise<Models.GetUserResponse>; | ||
getUser(options?: msRest.RequestOptionsBase): Promise<Models.GetUserResponse>; | ||
/** | ||
* @param accountId AccountId | ||
* @param callback The callback | ||
*/ | ||
getUser(accountId: number, callback: msRest.ServiceCallback<Models.User>): void; | ||
getUser(callback: msRest.ServiceCallback<Models.UserResponse>): void; | ||
/** | ||
* @param accountId AccountId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
getUser(accountId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.User>): void; | ||
getUser(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UserResponse>): void; | ||
/** | ||
* @param reasonsToDelete | ||
* @param accountId AccountId | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
*/ | ||
deleteUser(reasonsToDelete: string[], accountId: number, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
deleteUser(reasonsToDelete: string[], options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
/** | ||
* @param reasonsToDelete | ||
* @param accountId AccountId | ||
* @param callback The callback | ||
*/ | ||
deleteUser(reasonsToDelete: string[], accountId: number, callback: msRest.ServiceCallback<void>): void; | ||
deleteUser(reasonsToDelete: string[], callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param reasonsToDelete | ||
* @param accountId AccountId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
deleteUser(reasonsToDelete: string[], accountId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
deleteUser(reasonsToDelete: string[], options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
/** | ||
* @param userBody | ||
* @param accountId AccountId | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.PatchUserResponse> | ||
*/ | ||
patchUser(userBody: Models.UserBody, accountId: number, options?: msRest.RequestOptionsBase): Promise<Models.PatchUserResponse>; | ||
patchUser(userBody: Models.UserBody, options?: msRest.RequestOptionsBase): Promise<Models.PatchUserResponse>; | ||
/** | ||
* @param userBody | ||
* @param accountId AccountId | ||
* @param callback The callback | ||
*/ | ||
patchUser(userBody: Models.UserBody, accountId: number, callback: msRest.ServiceCallback<Models.User>): void; | ||
patchUser(userBody: Models.UserBody, callback: msRest.ServiceCallback<Models.UserResponse>): void; | ||
/** | ||
* @param userBody | ||
* @param accountId AccountId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
patchUser(userBody: Models.UserBody, accountId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.User>): void; | ||
patchUser(userBody: Models.UserBody, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.UserResponse>): void; | ||
/** | ||
* List organizations for the authenticated user | ||
* @summary List organizations for the authenticated user | ||
* @param accountId AccountId | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListUserOrganizationsResponse> | ||
*/ | ||
listUserOrganizations(accountId: number, options?: msRest.RequestOptionsBase): Promise<Models.ListUserOrganizationsResponse>; | ||
listUserOrganizations(options?: msRest.RequestOptionsBase): Promise<Models.ListUserOrganizationsResponse>; | ||
/** | ||
* @param accountId AccountId | ||
* @param callback The callback | ||
*/ | ||
listUserOrganizations(accountId: number, callback: msRest.ServiceCallback<Models.Organization[]>): void; | ||
listUserOrganizations(callback: msRest.ServiceCallback<Models.OrganizationListResponse>): void; | ||
/** | ||
* @param accountId AccountId | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listUserOrganizations(accountId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Organization[]>): void; | ||
listUserOrganizations(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.OrganizationListResponse>): void; | ||
/** | ||
* List integrations for the authenticated user | ||
* @summary List integrations for the authenticated user | ||
* @param accountId Integration Provider | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.ListUserIntegrationsResponse> | ||
*/ | ||
listUserIntegrations(accountId: number, options?: msRest.RequestOptionsBase): Promise<Models.ListUserIntegrationsResponse>; | ||
listUserIntegrations(options?: msRest.RequestOptionsBase): Promise<Models.ListUserIntegrationsResponse>; | ||
/** | ||
* @param accountId Integration Provider | ||
* @param callback The callback | ||
*/ | ||
listUserIntegrations(accountId: number, callback: msRest.ServiceCallback<Models.Integration[]>): void; | ||
listUserIntegrations(callback: msRest.ServiceCallback<Models.IntegrationListResponse>): void; | ||
/** | ||
* @param accountId Integration Provider | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
listUserIntegrations(accountId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.Integration[]>): void; | ||
listUserIntegrations(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.IntegrationListResponse>): void; | ||
/** | ||
* @param provider Integration Provider | ||
* @param accountId AccountId | ||
* @param provider Git Provider. Possible values include: 'gh', 'ghe', 'gl', 'gle', 'bb', 'bbe' | ||
* @param [options] The optional parameters | ||
* @returns Promise<msRest.RestResponse> | ||
* @returns Promise<Models.DeleteIntegrationResponse> | ||
*/ | ||
deleteIntegration(provider: string, accountId: number, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>; | ||
deleteIntegration(provider: Models.Provider1, options?: msRest.RequestOptionsBase): Promise<Models.DeleteIntegrationResponse>; | ||
/** | ||
* @param provider Integration Provider | ||
* @param accountId AccountId | ||
* @param provider Git Provider. Possible values include: 'gh', 'ghe', 'gl', 'gle', 'bb', 'bbe' | ||
* @param callback The callback | ||
*/ | ||
deleteIntegration(provider: string, accountId: number, callback: msRest.ServiceCallback<void>): void; | ||
deleteIntegration(provider: Models.Provider1, callback: msRest.ServiceCallback<Models.ApiError>): void; | ||
/** | ||
* @param provider Integration Provider | ||
* @param accountId AccountId | ||
* @param provider Git Provider. Possible values include: 'gh', 'ghe', 'gl', 'gle', 'bb', 'bbe' | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
deleteIntegration(provider: string, accountId: number, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void; | ||
deleteIntegration(provider: Models.Provider1, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.ApiError>): void; | ||
/** | ||
@@ -139,3 +121,3 @@ * Health check endpoint | ||
*/ | ||
health(callback: msRest.ServiceCallback<Models.HealthCheck>): void; | ||
health(callback: msRest.ServiceCallback<Models.HealthCheckResponse>): void; | ||
/** | ||
@@ -145,21 +127,5 @@ * @param options The optional parameters | ||
*/ | ||
health(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.HealthCheck>): void; | ||
/** | ||
* Greeter endpoint | ||
* @summary Greeter endpoint | ||
* @param [options] The optional parameters | ||
* @returns Promise<Models.HelloResponse> | ||
*/ | ||
hello(options?: msRest.RequestOptionsBase): Promise<Models.HelloResponse>; | ||
/** | ||
* @param callback The callback | ||
*/ | ||
hello(callback: msRest.ServiceCallback<string>): void; | ||
/** | ||
* @param options The optional parameters | ||
* @param callback The callback | ||
*/ | ||
hello(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<string>): void; | ||
health(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.HealthCheckResponse>): void; | ||
} | ||
export { WebsiteAPI, WebsiteAPIContext, Models as WebsiteAPIModels, Mappers as WebsiteAPIMappers }; | ||
//# sourceMappingURL=websiteAPI.d.ts.map |
@@ -21,38 +21,32 @@ /* | ||
} | ||
WebsiteAPI.prototype.getUser = function (accountId, options, callback) { | ||
WebsiteAPI.prototype.getUser = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
accountId: accountId, | ||
options: options | ||
}, getUserOperationSpec, callback); | ||
}; | ||
WebsiteAPI.prototype.deleteUser = function (reasonsToDelete, accountId, options, callback) { | ||
WebsiteAPI.prototype.deleteUser = function (reasonsToDelete, options, callback) { | ||
return this.sendOperationRequest({ | ||
reasonsToDelete: reasonsToDelete, | ||
accountId: accountId, | ||
options: options | ||
}, deleteUserOperationSpec, callback); | ||
}; | ||
WebsiteAPI.prototype.patchUser = function (userBody, accountId, options, callback) { | ||
WebsiteAPI.prototype.patchUser = function (userBody, options, callback) { | ||
return this.sendOperationRequest({ | ||
userBody: userBody, | ||
accountId: accountId, | ||
options: options | ||
}, patchUserOperationSpec, callback); | ||
}; | ||
WebsiteAPI.prototype.listUserOrganizations = function (accountId, options, callback) { | ||
WebsiteAPI.prototype.listUserOrganizations = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
accountId: accountId, | ||
options: options | ||
}, listUserOrganizationsOperationSpec, callback); | ||
}; | ||
WebsiteAPI.prototype.listUserIntegrations = function (accountId, options, callback) { | ||
WebsiteAPI.prototype.listUserIntegrations = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
accountId: accountId, | ||
options: options | ||
}, listUserIntegrationsOperationSpec, callback); | ||
}; | ||
WebsiteAPI.prototype.deleteIntegration = function (provider, accountId, options, callback) { | ||
WebsiteAPI.prototype.deleteIntegration = function (provider, options, callback) { | ||
return this.sendOperationRequest({ | ||
provider: provider, | ||
accountId: accountId, | ||
options: options | ||
@@ -66,7 +60,2 @@ }, deleteIntegrationOperationSpec, callback); | ||
}; | ||
WebsiteAPI.prototype.hello = function (options, callback) { | ||
return this.sendOperationRequest({ | ||
options: options | ||
}, helloOperationSpec, callback); | ||
}; | ||
return WebsiteAPI; | ||
@@ -79,14 +68,11 @@ }(WebsiteAPIContext)); | ||
path: "v3/user", | ||
headerParameters: [ | ||
Parameters.accountId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: Mappers.User | ||
bodyMapper: Mappers.UserResponse | ||
}, | ||
401: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
500: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
@@ -100,5 +86,2 @@ default: {} | ||
path: "v3/user", | ||
headerParameters: [ | ||
Parameters.accountId | ||
], | ||
requestBody: { | ||
@@ -120,8 +103,8 @@ parameterPath: "reasonsToDelete", | ||
responses: { | ||
200: {}, | ||
204: {}, | ||
401: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
500: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
@@ -135,5 +118,2 @@ default: {} | ||
path: "v3/user", | ||
headerParameters: [ | ||
Parameters.accountId | ||
], | ||
requestBody: { | ||
@@ -145,9 +125,9 @@ parameterPath: "userBody", | ||
200: { | ||
bodyMapper: Mappers.User | ||
bodyMapper: Mappers.UserResponse | ||
}, | ||
401: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
500: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
@@ -161,25 +141,11 @@ default: {} | ||
path: "v3/user/orgs", | ||
headerParameters: [ | ||
Parameters.accountId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "Organization" | ||
} | ||
} | ||
} | ||
} | ||
bodyMapper: Mappers.OrganizationListResponse | ||
}, | ||
401: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
500: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
@@ -193,25 +159,11 @@ default: {} | ||
path: "v3/user/integrations", | ||
headerParameters: [ | ||
Parameters.accountId | ||
], | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "Sequence", | ||
element: { | ||
type: { | ||
name: "Composite", | ||
className: "Integration" | ||
} | ||
} | ||
} | ||
} | ||
bodyMapper: Mappers.IntegrationListResponse | ||
}, | ||
401: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
500: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
@@ -228,15 +180,12 @@ default: {} | ||
], | ||
headerParameters: [ | ||
Parameters.accountId | ||
], | ||
responses: { | ||
200: {}, | ||
204: {}, | ||
401: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
404: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
500: { | ||
bodyMapper: Mappers.ErrorModel | ||
bodyMapper: Mappers.ApiError | ||
}, | ||
@@ -252,3 +201,3 @@ default: {} | ||
200: { | ||
bodyMapper: Mappers.HealthCheck | ||
bodyMapper: Mappers.HealthCheckResponse | ||
}, | ||
@@ -259,19 +208,3 @@ default: {} | ||
}; | ||
var helloOperationSpec = { | ||
httpMethod: "GET", | ||
path: "v3/hello", | ||
responses: { | ||
200: { | ||
bodyMapper: { | ||
serializedName: "parsedResponse", | ||
type: { | ||
name: "String" | ||
} | ||
} | ||
}, | ||
default: {} | ||
}, | ||
serializer: serializer | ||
}; | ||
export { WebsiteAPI, WebsiteAPIContext, Models as WebsiteAPIModels, Mappers as WebsiteAPIMappers }; | ||
//# sourceMappingURL=websiteAPI.js.map |
{ | ||
"name": "@codacy/api-typescript", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Codacy API client for Typescript", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/codacy/codacy-api-typescript#readme", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
53725
984