New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@codacy/api-typescript

Package Overview
Dependencies
Maintainers
2
Versions
193
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codacy/api-typescript - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

112

lib/models/index.d.ts

@@ -53,2 +53,9 @@ import { ServiceClientOptions } from "@azure/ms-rest-js";

/**
* An interface representing ChangePasswordBody.
*/
export interface ChangePasswordBody {
currentPassword: string;
newPassword: string;
}
/**
* An interface representing Organization.

@@ -64,3 +71,3 @@ */

*/
createdAt?: string;
created?: string;
/**

@@ -95,3 +102,3 @@ * Possible values include: 'manual', 'bb', 'bbe', 'gh', 'ghe', 'gl', 'gle'

*/
lastTimeAuthenticated: string;
lastAuthenticated: string;
}

@@ -106,2 +113,26 @@ /**

/**
* An interface representing Repository.
*/
export interface Repository {
owner: string;
name: string;
/**
* Possible values include: 'Public', 'Private', 'LoginPublic'
*/
visibility: Visibility;
remoteIdentifier?: string;
/**
* **NOTE: This entity will be treated as a string instead of a Date because the API can
* potentially deal with a higher precision value than what is supported by JavaScript.**
*/
lastUpdated?: string;
}
/**
* An interface representing RepositoryListResponse.
*/
export interface RepositoryListResponse {
pagination?: PaginationInfo;
data: Repository[];
}
/**
* An interface representing ApiToken.

@@ -188,2 +219,43 @@ */

/**
* Optional Parameters.
*/
export interface WebsiteAPIListPersonalRepositoriesOptionalParams extends msRest.RequestOptionsBase {
/**
* Cursor to list elements after.
*/
cursor?: string;
/**
* Number of items to return. Default value: 100.
*/
limit?: number;
/**
* Filter the results searching by this string.
*/
search?: string;
}
/**
* Optional Parameters.
*/
export interface WebsiteAPIListOrganizationRepositoriesOptionalParams extends msRest.RequestOptionsBase {
/**
* Cursor to list elements after.
*/
cursor?: string;
/**
* Number of items to return. Default value: 100.
*/
limit?: number;
/**
* Filter the results searching by this string.
*/
search?: string;
}
/**
* Defines values for Visibility.
* Possible values include: 'Public', 'Private', 'LoginPublic'
* @readonly
* @enum {string}
*/
export declare type Visibility = 'Public' | 'Private' | 'LoginPublic';
/**
* Defines values for Provider.

@@ -291,2 +363,38 @@ * Possible values include: 'manual', 'bb', 'bbe', 'gh', 'ghe', 'gl', 'gle'

/**
* Contains response data for the listPersonalRepositories operation.
*/
export declare type ListPersonalRepositoriesResponse = RepositoryListResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: RepositoryListResponse;
};
};
/**
* Contains response data for the listOrganizationRepositories operation.
*/
export declare type ListOrganizationRepositoriesResponse = RepositoryListResponse & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;
/**
* The response body as parsed JSON or XML
*/
parsedBody: RepositoryListResponse;
};
};
/**
* Contains response data for the getUserApiTokens operation.

@@ -293,0 +401,0 @@ */

@@ -8,2 +8,3 @@ import * as msRest from "@azure/ms-rest-js";

export declare const UserBody: msRest.CompositeMapper;
export declare const ChangePasswordBody: msRest.CompositeMapper;
export declare const Organization: msRest.CompositeMapper;

@@ -13,2 +14,4 @@ export declare const OrganizationListResponse: msRest.CompositeMapper;

export declare const IntegrationListResponse: msRest.CompositeMapper;
export declare const Repository: msRest.CompositeMapper;
export declare const RepositoryListResponse: msRest.CompositeMapper;
export declare const ApiToken: msRest.CompositeMapper;

@@ -15,0 +18,0 @@ export declare const ApiTokenListResponse: msRest.CompositeMapper;

@@ -165,2 +165,25 @@ /*

};
export var ChangePasswordBody = {
serializedName: "ChangePasswordBody",
type: {
name: "Composite",
className: "ChangePasswordBody",
modelProperties: {
currentPassword: {
required: true,
serializedName: "currentPassword",
type: {
name: "String"
}
},
newPassword: {
required: true,
serializedName: "newPassword",
type: {
name: "String"
}
}
}
}
};
export var Organization = {

@@ -192,4 +215,4 @@ serializedName: "Organization",

},
createdAt: {
serializedName: "createdAt",
created: {
serializedName: "created",
type: {

@@ -218,3 +241,8 @@ name: "String"

type: {
name: "String"
name: "Enum",
allowedValues: [
"auto",
"adminAuto",
"request"
]
}

@@ -276,5 +304,5 @@ }

},
lastTimeAuthenticated: {
lastAuthenticated: {
required: true,
serializedName: "lastTimeAuthenticated",
serializedName: "lastAuthenticated",
type: {

@@ -316,2 +344,78 @@ name: "String"

};
export var Repository = {
serializedName: "Repository",
type: {
name: "Composite",
className: "Repository",
modelProperties: {
owner: {
required: true,
serializedName: "owner",
type: {
name: "String"
}
},
name: {
required: true,
serializedName: "name",
type: {
name: "String"
}
},
visibility: {
required: true,
serializedName: "visibility",
type: {
name: "Enum",
allowedValues: [
"Public",
"Private",
"LoginPublic"
]
}
},
remoteIdentifier: {
serializedName: "remoteIdentifier",
type: {
name: "String"
}
},
lastUpdated: {
serializedName: "lastUpdated",
type: {
name: "String"
}
}
}
}
};
export var RepositoryListResponse = {
serializedName: "RepositoryListResponse",
type: {
name: "Composite",
className: "RepositoryListResponse",
modelProperties: {
pagination: {
serializedName: "pagination",
type: {
name: "Composite",
className: "PaginationInfo"
}
},
data: {
required: true,
serializedName: "data",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
className: "Repository"
}
}
}
}
}
}
};
export var ApiToken = {

@@ -318,0 +422,0 @@ serializedName: "ApiToken",

5

lib/models/parameters.d.ts
import * as msRest from "@azure/ms-rest-js";
export declare const cursor: msRest.OperationQueryParameter;
export declare const limit: msRest.OperationQueryParameter;
export declare const provider: msRest.OperationURLParameter;
export declare const provider0: msRest.OperationURLParameter;
export declare const provider1: msRest.OperationURLParameter;
export declare const remoteOrganizationName: msRest.OperationURLParameter;
export declare const search: msRest.OperationQueryParameter;
export declare const tokenId: msRest.OperationURLParameter;
//# sourceMappingURL=parameters.d.ts.map

@@ -35,3 +35,3 @@ /*

};
export var provider = {
export var provider0 = {
parameterPath: "provider",

@@ -55,2 +55,43 @@ mapper: {

};
export var provider1 = {
parameterPath: "provider",
mapper: {
required: true,
serializedName: "provider",
type: {
name: "Enum",
allowedValues: [
"manual",
"bb",
"bbe",
"gh",
"ghe",
"gl",
"gle"
]
}
}
};
export var remoteOrganizationName = {
parameterPath: "remoteOrganizationName",
mapper: {
required: true,
serializedName: "remoteOrganizationName",
type: {
name: "String"
}
}
};
export var search = {
parameterPath: [
"options",
"search"
],
mapper: {
serializedName: "search",
type: {
name: "String"
}
}
};
export var tokenId = {

@@ -57,0 +98,0 @@ parameterPath: "tokenId",

@@ -114,2 +114,43 @@ import * as msRest from "@azure/ms-rest-js";

/**
* List personal manual repositories for the authenticated user
* @summary List personal manual repositories for the authenticated user
* @param [options] The optional parameters
* @returns Promise<Models.ListPersonalRepositoriesResponse>
*/
listPersonalRepositories(options?: Models.WebsiteAPIListPersonalRepositoriesOptionalParams): Promise<Models.ListPersonalRepositoriesResponse>;
/**
* @param callback The callback
*/
listPersonalRepositories(callback: msRest.ServiceCallback<Models.RepositoryListResponse>): void;
/**
* @param options The optional parameters
* @param callback The callback
*/
listPersonalRepositories(options: Models.WebsiteAPIListPersonalRepositoriesOptionalParams, callback: msRest.ServiceCallback<Models.RepositoryListResponse>): void;
/**
* List an organization repositories for the authenticated user
* @summary List an organization repositories for the authenticated user
* @param provider Provider. Possible values include: 'manual', 'bb', 'bbe', 'gh', 'ghe', 'gl',
* 'gle'
* @param remoteOrganizationName Remote organization name
* @param [options] The optional parameters
* @returns Promise<Models.ListOrganizationRepositoriesResponse>
*/
listOrganizationRepositories(provider: Models.Provider, remoteOrganizationName: string, options?: Models.WebsiteAPIListOrganizationRepositoriesOptionalParams): Promise<Models.ListOrganizationRepositoriesResponse>;
/**
* @param provider Provider. Possible values include: 'manual', 'bb', 'bbe', 'gh', 'ghe', 'gl',
* 'gle'
* @param remoteOrganizationName Remote organization name
* @param callback The callback
*/
listOrganizationRepositories(provider: Models.Provider, remoteOrganizationName: string, callback: msRest.ServiceCallback<Models.RepositoryListResponse>): void;
/**
* @param provider Provider. Possible values include: 'manual', 'bb', 'bbe', 'gh', 'ghe', 'gl',
* 'gle'
* @param remoteOrganizationName Remote organization name
* @param options The optional parameters
* @param callback The callback
*/
listOrganizationRepositories(provider: Models.Provider, remoteOrganizationName: string, options: Models.WebsiteAPIListOrganizationRepositoriesOptionalParams, callback: msRest.ServiceCallback<Models.RepositoryListResponse>): void;
/**
* Get the authenticated user's API Tokens

@@ -166,2 +207,21 @@ * @summary Get the authenticated user's API Tokens

/**
* For the authenticated user, validates the current password and changes it to a new one
* @summary Change the password for the authenticated user
* @param changePasswordBody
* @param [options] The optional parameters
* @returns Promise<msRest.RestResponse>
*/
changePassword(changePasswordBody: Models.ChangePasswordBody, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse>;
/**
* @param changePasswordBody
* @param callback The callback
*/
changePassword(changePasswordBody: Models.ChangePasswordBody, callback: msRest.ServiceCallback<void>): void;
/**
* @param changePasswordBody
* @param options The optional parameters
* @param callback The callback
*/
changePassword(changePasswordBody: Models.ChangePasswordBody, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<void>): void;
/**
* Health check endpoint

@@ -168,0 +228,0 @@ * @summary Health check endpoint

@@ -54,2 +54,14 @@ /*

};
WebsiteAPI.prototype.listPersonalRepositories = function (options, callback) {
return this.sendOperationRequest({
options: options
}, listPersonalRepositoriesOperationSpec, callback);
};
WebsiteAPI.prototype.listOrganizationRepositories = function (provider, remoteOrganizationName, options, callback) {
return this.sendOperationRequest({
provider: provider,
remoteOrganizationName: remoteOrganizationName,
options: options
}, listOrganizationRepositoriesOperationSpec, callback);
};
WebsiteAPI.prototype.getUserApiTokens = function (options, callback) {

@@ -71,2 +83,8 @@ return this.sendOperationRequest({

};
WebsiteAPI.prototype.changePassword = function (changePasswordBody, options, callback) {
return this.sendOperationRequest({
changePasswordBody: changePasswordBody,
options: options
}, changePasswordOperationSpec, callback);
};
WebsiteAPI.prototype.health = function (options, callback) {

@@ -189,3 +207,3 @@ return this.sendOperationRequest({

urlParameters: [
Parameters.provider
Parameters.provider0
],

@@ -207,2 +225,53 @@ responses: {

};
var listPersonalRepositoriesOperationSpec = {
httpMethod: "GET",
path: "v3/user/repositories",
queryParameters: [
Parameters.cursor,
Parameters.limit,
Parameters.search
],
responses: {
200: {
bodyMapper: Mappers.RepositoryListResponse
},
400: {
bodyMapper: Mappers.ApiError
},
500: {
bodyMapper: Mappers.ApiError
},
default: {}
},
serializer: serializer
};
var listOrganizationRepositoriesOperationSpec = {
httpMethod: "GET",
path: "v3/organizations/{provider}/{remoteOrganizationName}/repositories",
urlParameters: [
Parameters.provider1,
Parameters.remoteOrganizationName
],
queryParameters: [
Parameters.cursor,
Parameters.limit,
Parameters.search
],
responses: {
200: {
bodyMapper: Mappers.RepositoryListResponse
},
400: {
bodyMapper: Mappers.ApiError
},
404: {
bodyMapper: Mappers.ApiError
},
500: {
bodyMapper: Mappers.ApiError
},
default: {}
},
serializer: serializer
};
var getUserApiTokensOperationSpec = {

@@ -251,2 +320,21 @@ httpMethod: "GET",

};
var changePasswordOperationSpec = {
httpMethod: "POST",
path: "v3/user/password",
requestBody: {
parameterPath: "changePasswordBody",
mapper: __assign(__assign({}, Mappers.ChangePasswordBody), { required: true })
},
responses: {
204: {},
400: {
bodyMapper: Mappers.ApiError
},
404: {
bodyMapper: Mappers.ApiError
},
default: {}
},
serializer: serializer
};
var healthOperationSpec = {

@@ -253,0 +341,0 @@ httpMethod: "GET",

{
"name": "@codacy/api-typescript",
"version": "0.1.6",
"version": "0.1.7",
"description": "Codacy API client for Typescript",

@@ -64,3 +64,3 @@ "homepage": "https://github.com/codacy/codacy-api-typescript#readme",

},
"apiVersion": "8.17.0",
"apiVersion": "9.2.0",
"remarkConfig": {

@@ -67,0 +67,0 @@ "plugins": [

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc