@parca/client
Advanced tools
Comparing version 0.15.0 to 0.15.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.15.2](https://github.com/parca-dev/parca/compare/ui-v0.15.1...ui-v0.15.2) (2022-08-25) | ||
**Note:** Version bump only for package @parca/client | ||
# [0.15.0](https://github.com/parca-dev/parca/compare/ui-v0.14.37...ui-v0.15.0) (2022-08-24) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@parca/client", | ||
"version": "0.15.0", | ||
"version": "0.15.2", | ||
"description": "Parca API Client", | ||
@@ -23,3 +23,3 @@ "main": "src/index.ts", | ||
}, | ||
"gitHead": "9bba12f8523b8d5763d9fb6d81c9df971a83f6fa" | ||
"gitHead": "0e04a3379e162a0b2b325cbcaf0363aaaec34757" | ||
} |
@@ -7,2 +7,4 @@ // @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies | ||
import { Share } from "./share"; | ||
import type { QueryResponse } from "../parca/query/v1alpha1/query"; | ||
import type { ProfileRequest } from "./share"; | ||
import { stackIntercept } from "@protobuf-ts/runtime-rpc"; | ||
@@ -25,2 +27,8 @@ import type { UploadResponse } from "./share"; | ||
upload(input: UploadRequest, options?: RpcOptions): UnaryCall<UploadRequest, UploadResponse>; | ||
/** | ||
* Query performs a profile query | ||
* | ||
* @generated from protobuf rpc: Query(polarsignals.share.ProfileRequest) returns (parca.query.v1alpha1.QueryResponse); | ||
*/ | ||
query(input: ProfileRequest, options?: RpcOptions): UnaryCall<ProfileRequest, QueryResponse>; | ||
} | ||
@@ -47,2 +55,11 @@ /** | ||
} | ||
/** | ||
* Query performs a profile query | ||
* | ||
* @generated from protobuf rpc: Query(polarsignals.share.ProfileRequest) returns (parca.query.v1alpha1.QueryResponse); | ||
*/ | ||
query(input: ProfileRequest, options?: RpcOptions): UnaryCall<ProfileRequest, QueryResponse> { | ||
const method = this.methods[1], opt = this._transport.mergeOptions(options); | ||
return stackIntercept<ProfileRequest, QueryResponse>("unary", this._transport, method, opt, input); | ||
} | ||
} |
// @generated by protobuf-ts 2.7.0 with parameter long_type_string,generate_dependencies | ||
// @generated from protobuf file "share/share.proto" (package "polarsignals.share", syntax proto3) | ||
// tslint:disable | ||
import { QueryResponse } from "../parca/query/v1alpha1/query"; | ||
import { ServiceType } from "@protobuf-ts/runtime-rpc"; | ||
@@ -53,2 +54,15 @@ import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; | ||
} | ||
/** | ||
* ProfileRequest represents the request with the id of the profile to be queried. | ||
* | ||
* @generated from protobuf message polarsignals.share.ProfileRequest | ||
*/ | ||
export interface ProfileRequest { | ||
/** | ||
* id of the profile to be queried. | ||
* | ||
* @generated from protobuf field: string id = 1; | ||
*/ | ||
id: string; | ||
} | ||
// @generated message type with reflection information, may provide speed optimized methods | ||
@@ -162,7 +176,55 @@ class UploadRequest$Type extends MessageType<UploadRequest> { | ||
export const UploadResponse = new UploadResponse$Type(); | ||
// @generated message type with reflection information, may provide speed optimized methods | ||
class ProfileRequest$Type extends MessageType<ProfileRequest> { | ||
constructor() { | ||
super("polarsignals.share.ProfileRequest", [ | ||
{ no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ } | ||
]); | ||
} | ||
create(value?: PartialMessage<ProfileRequest>): ProfileRequest { | ||
const message = { id: "" }; | ||
globalThis.Object.defineProperty(message, MESSAGE_TYPE, { enumerable: false, value: this }); | ||
if (value !== undefined) | ||
reflectionMergePartial<ProfileRequest>(this, message, value); | ||
return message; | ||
} | ||
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ProfileRequest): ProfileRequest { | ||
let message = target ?? this.create(), end = reader.pos + length; | ||
while (reader.pos < end) { | ||
let [fieldNo, wireType] = reader.tag(); | ||
switch (fieldNo) { | ||
case /* string id */ 1: | ||
message.id = reader.string(); | ||
break; | ||
default: | ||
let u = options.readUnknownField; | ||
if (u === "throw") | ||
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); | ||
let d = reader.skip(wireType); | ||
if (u !== false) | ||
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); | ||
} | ||
} | ||
return message; | ||
} | ||
internalBinaryWrite(message: ProfileRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter { | ||
/* string id = 1; */ | ||
if (message.id !== "") | ||
writer.tag(1, WireType.LengthDelimited).string(message.id); | ||
let u = options.writeUnknownFields; | ||
if (u !== false) | ||
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); | ||
return writer; | ||
} | ||
} | ||
/** | ||
* @generated MessageType for protobuf message polarsignals.share.ProfileRequest | ||
*/ | ||
export const ProfileRequest = new ProfileRequest$Type(); | ||
/** | ||
* @generated ServiceType for protobuf service polarsignals.share.Share | ||
*/ | ||
export const Share = new ServiceType("polarsignals.share.Share", [ | ||
{ name: "Upload", options: {}, I: UploadRequest, O: UploadResponse } | ||
{ name: "Upload", options: {}, I: UploadRequest, O: UploadResponse }, | ||
{ name: "Query", options: {}, I: ProfileRequest, O: QueryResponse } | ||
]); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
600341
24
12414