@kurrent/kurrentdb-client 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/events/binaryEvent.d.ts +1 -5
- package/dist/streams/appendToStream/appendRecords.d.ts +3 -0
- package/dist/streams/appendToStream/appendRecords.js +132 -0
- package/dist/streams/appendToStream/appendRecords.js.map +1 -0
- package/dist/utils/CommandError.js +6 -0
- package/dist/utils/CommandError.js.map +1 -1
- package/generated/kurrentdb/protocols/v2/core_pb.d.ts +188 -188
- package/generated/kurrentdb/protocols/v2/core_pb.js +1301 -1301
- package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.d.ts +43 -43
- package/generated/kurrentdb/protocols/v2/features/service_grpc_pb.js +50 -50
- package/generated/kurrentdb/protocols/v2/features/service_pb.d.ts +227 -227
- package/generated/kurrentdb/protocols/v2/features/service_pb.js +1753 -1753
- package/generated/kurrentdb/protocols/v2/streams/shared_pb.d.ts +218 -218
- package/generated/kurrentdb/protocols/v2/streams/shared_pb.js +1561 -1561
- package/package.json +66 -66
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
// package: kurrentdb.protocol.v2
|
|
2
|
-
// file: kurrentdb/protocols/v2/features/service.proto
|
|
3
|
-
|
|
4
|
-
/* tslint:disable */
|
|
5
|
-
/* eslint-disable */
|
|
6
|
-
|
|
7
|
-
import * as grpc from "@grpc/grpc-js";
|
|
8
|
-
import * as kurrentdb_protocols_v2_features_service_pb from "../../../../kurrentdb/protocols/v2/features/service_pb";
|
|
9
|
-
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
10
|
-
import * as kurrentdb_protocols_v2_core_pb from "../../../../kurrentdb/protocols/v2/core_pb";
|
|
11
|
-
|
|
12
|
-
interface IServerInfoServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
13
|
-
getServerInfo: IServerInfoServiceService_IGetServerInfo;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface IServerInfoServiceService_IGetServerInfo extends grpc.MethodDefinition<kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse> {
|
|
17
|
-
path: "/kurrentdb.protocol.v2.ServerInfoService/GetServerInfo";
|
|
18
|
-
requestStream: false;
|
|
19
|
-
responseStream: false;
|
|
20
|
-
requestSerialize: grpc.serialize<kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest>;
|
|
21
|
-
requestDeserialize: grpc.deserialize<kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest>;
|
|
22
|
-
responseSerialize: grpc.serialize<kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse>;
|
|
23
|
-
responseDeserialize: grpc.deserialize<kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse>;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const ServerInfoServiceService: IServerInfoServiceService;
|
|
27
|
-
|
|
28
|
-
export interface IServerInfoServiceServer extends grpc.UntypedServiceImplementation {
|
|
29
|
-
getServerInfo: grpc.handleUnaryCall<kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface IServerInfoServiceClient {
|
|
33
|
-
getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
34
|
-
getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
35
|
-
getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export class ServerInfoServiceClient extends grpc.Client implements IServerInfoServiceClient {
|
|
39
|
-
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
40
|
-
public getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
41
|
-
public getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
42
|
-
public getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
43
|
-
}
|
|
1
|
+
// package: kurrentdb.protocol.v2
|
|
2
|
+
// file: kurrentdb/protocols/v2/features/service.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as grpc from "@grpc/grpc-js";
|
|
8
|
+
import * as kurrentdb_protocols_v2_features_service_pb from "../../../../kurrentdb/protocols/v2/features/service_pb";
|
|
9
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
10
|
+
import * as kurrentdb_protocols_v2_core_pb from "../../../../kurrentdb/protocols/v2/core_pb";
|
|
11
|
+
|
|
12
|
+
interface IServerInfoServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
|
|
13
|
+
getServerInfo: IServerInfoServiceService_IGetServerInfo;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface IServerInfoServiceService_IGetServerInfo extends grpc.MethodDefinition<kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse> {
|
|
17
|
+
path: "/kurrentdb.protocol.v2.ServerInfoService/GetServerInfo";
|
|
18
|
+
requestStream: false;
|
|
19
|
+
responseStream: false;
|
|
20
|
+
requestSerialize: grpc.serialize<kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest>;
|
|
21
|
+
requestDeserialize: grpc.deserialize<kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest>;
|
|
22
|
+
responseSerialize: grpc.serialize<kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse>;
|
|
23
|
+
responseDeserialize: grpc.deserialize<kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export const ServerInfoServiceService: IServerInfoServiceService;
|
|
27
|
+
|
|
28
|
+
export interface IServerInfoServiceServer extends grpc.UntypedServiceImplementation {
|
|
29
|
+
getServerInfo: grpc.handleUnaryCall<kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface IServerInfoServiceClient {
|
|
33
|
+
getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
34
|
+
getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
35
|
+
getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export class ServerInfoServiceClient extends grpc.Client implements IServerInfoServiceClient {
|
|
39
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options?: Partial<grpc.ClientOptions>);
|
|
40
|
+
public getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
41
|
+
public getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
42
|
+
public getServerInfo(request: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse) => void): grpc.ClientUnaryCall;
|
|
43
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
-
|
|
3
|
-
'use strict';
|
|
4
|
-
var grpc = require('@grpc/grpc-js');
|
|
5
|
-
var kurrentdb_protocols_v2_features_service_pb = require('../../../../kurrentdb/protocols/v2/features/service_pb.js');
|
|
6
|
-
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
|
-
var kurrentdb_protocols_v2_core_pb = require('../../../../kurrentdb/protocols/v2/core_pb.js');
|
|
8
|
-
|
|
9
|
-
function serialize_kurrentdb_protocol_v2_ServerInfoRequest(arg) {
|
|
10
|
-
if (!(arg instanceof kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest)) {
|
|
11
|
-
throw new Error('Expected argument of type kurrentdb.protocol.v2.ServerInfoRequest');
|
|
12
|
-
}
|
|
13
|
-
return Buffer.from(arg.serializeBinary());
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
function deserialize_kurrentdb_protocol_v2_ServerInfoRequest(buffer_arg) {
|
|
17
|
-
return kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function serialize_kurrentdb_protocol_v2_ServerInfoResponse(arg) {
|
|
21
|
-
if (!(arg instanceof kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse)) {
|
|
22
|
-
throw new Error('Expected argument of type kurrentdb.protocol.v2.ServerInfoResponse');
|
|
23
|
-
}
|
|
24
|
-
return Buffer.from(arg.serializeBinary());
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function deserialize_kurrentdb_protocol_v2_ServerInfoResponse(buffer_arg) {
|
|
28
|
-
return kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
// *
|
|
33
|
-
// Service for retrieving information about the server, including features
|
|
34
|
-
// and metadata.
|
|
35
|
-
var ServerInfoServiceService = exports.ServerInfoServiceService = {
|
|
36
|
-
// Retrieves server information and available features
|
|
37
|
-
getServerInfo: {
|
|
38
|
-
path: '/kurrentdb.protocol.v2.ServerInfoService/GetServerInfo',
|
|
39
|
-
requestStream: false,
|
|
40
|
-
responseStream: false,
|
|
41
|
-
requestType: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest,
|
|
42
|
-
responseType: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse,
|
|
43
|
-
requestSerialize: serialize_kurrentdb_protocol_v2_ServerInfoRequest,
|
|
44
|
-
requestDeserialize: deserialize_kurrentdb_protocol_v2_ServerInfoRequest,
|
|
45
|
-
responseSerialize: serialize_kurrentdb_protocol_v2_ServerInfoResponse,
|
|
46
|
-
responseDeserialize: deserialize_kurrentdb_protocol_v2_ServerInfoResponse,
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
exports.ServerInfoServiceClient = grpc.makeGenericClientConstructor(ServerInfoServiceService, 'ServerInfoService');
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var kurrentdb_protocols_v2_features_service_pb = require('../../../../kurrentdb/protocols/v2/features/service_pb.js');
|
|
6
|
+
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
|
+
var kurrentdb_protocols_v2_core_pb = require('../../../../kurrentdb/protocols/v2/core_pb.js');
|
|
8
|
+
|
|
9
|
+
function serialize_kurrentdb_protocol_v2_ServerInfoRequest(arg) {
|
|
10
|
+
if (!(arg instanceof kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest)) {
|
|
11
|
+
throw new Error('Expected argument of type kurrentdb.protocol.v2.ServerInfoRequest');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_kurrentdb_protocol_v2_ServerInfoRequest(buffer_arg) {
|
|
17
|
+
return kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function serialize_kurrentdb_protocol_v2_ServerInfoResponse(arg) {
|
|
21
|
+
if (!(arg instanceof kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse)) {
|
|
22
|
+
throw new Error('Expected argument of type kurrentdb.protocol.v2.ServerInfoResponse');
|
|
23
|
+
}
|
|
24
|
+
return Buffer.from(arg.serializeBinary());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function deserialize_kurrentdb_protocol_v2_ServerInfoResponse(buffer_arg) {
|
|
28
|
+
return kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
// *
|
|
33
|
+
// Service for retrieving information about the server, including features
|
|
34
|
+
// and metadata.
|
|
35
|
+
var ServerInfoServiceService = exports.ServerInfoServiceService = {
|
|
36
|
+
// Retrieves server information and available features
|
|
37
|
+
getServerInfo: {
|
|
38
|
+
path: '/kurrentdb.protocol.v2.ServerInfoService/GetServerInfo',
|
|
39
|
+
requestStream: false,
|
|
40
|
+
responseStream: false,
|
|
41
|
+
requestType: kurrentdb_protocols_v2_features_service_pb.ServerInfoRequest,
|
|
42
|
+
responseType: kurrentdb_protocols_v2_features_service_pb.ServerInfoResponse,
|
|
43
|
+
requestSerialize: serialize_kurrentdb_protocol_v2_ServerInfoRequest,
|
|
44
|
+
requestDeserialize: deserialize_kurrentdb_protocol_v2_ServerInfoRequest,
|
|
45
|
+
responseSerialize: serialize_kurrentdb_protocol_v2_ServerInfoResponse,
|
|
46
|
+
responseDeserialize: deserialize_kurrentdb_protocol_v2_ServerInfoResponse,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.ServerInfoServiceClient = grpc.makeGenericClientConstructor(ServerInfoServiceService, 'ServerInfoService');
|
|
@@ -1,227 +1,227 @@
|
|
|
1
|
-
// package: kurrentdb.protocol.v2
|
|
2
|
-
// file: kurrentdb/protocols/v2/features/service.proto
|
|
3
|
-
|
|
4
|
-
/* tslint:disable */
|
|
5
|
-
/* eslint-disable */
|
|
6
|
-
|
|
7
|
-
import * as jspb from "google-protobuf";
|
|
8
|
-
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
9
|
-
import * as kurrentdb_protocols_v2_core_pb from "../../../../kurrentdb/protocols/v2/core_pb";
|
|
10
|
-
|
|
11
|
-
export class ServerMetadata extends jspb.Message {
|
|
12
|
-
getVersion(): string;
|
|
13
|
-
setVersion(value: string): ServerMetadata;
|
|
14
|
-
getBuild(): string;
|
|
15
|
-
setBuild(value: string): ServerMetadata;
|
|
16
|
-
getMinCompatibleClientVersion(): string;
|
|
17
|
-
setMinCompatibleClientVersion(value: string): ServerMetadata;
|
|
18
|
-
getNodeId(): string;
|
|
19
|
-
setNodeId(value: string): ServerMetadata;
|
|
20
|
-
|
|
21
|
-
serializeBinary(): Uint8Array;
|
|
22
|
-
toObject(includeInstance?: boolean): ServerMetadata.AsObject;
|
|
23
|
-
static toObject(includeInstance: boolean, msg: ServerMetadata): ServerMetadata.AsObject;
|
|
24
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
25
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
26
|
-
static serializeBinaryToWriter(message: ServerMetadata, writer: jspb.BinaryWriter): void;
|
|
27
|
-
static deserializeBinary(bytes: Uint8Array): ServerMetadata;
|
|
28
|
-
static deserializeBinaryFromReader(message: ServerMetadata, reader: jspb.BinaryReader): ServerMetadata;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export namespace ServerMetadata {
|
|
32
|
-
export type AsObject = {
|
|
33
|
-
version: string,
|
|
34
|
-
build: string,
|
|
35
|
-
minCompatibleClientVersion: string,
|
|
36
|
-
nodeId: string,
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export class ServerInfoRequest extends jspb.Message {
|
|
41
|
-
getClientVersion(): string;
|
|
42
|
-
setClientVersion(value: string): ServerInfoRequest;
|
|
43
|
-
getClientId(): string;
|
|
44
|
-
setClientId(value: string): ServerInfoRequest;
|
|
45
|
-
|
|
46
|
-
serializeBinary(): Uint8Array;
|
|
47
|
-
toObject(includeInstance?: boolean): ServerInfoRequest.AsObject;
|
|
48
|
-
static toObject(includeInstance: boolean, msg: ServerInfoRequest): ServerInfoRequest.AsObject;
|
|
49
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
50
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
51
|
-
static serializeBinaryToWriter(message: ServerInfoRequest, writer: jspb.BinaryWriter): void;
|
|
52
|
-
static deserializeBinary(bytes: Uint8Array): ServerInfoRequest;
|
|
53
|
-
static deserializeBinaryFromReader(message: ServerInfoRequest, reader: jspb.BinaryReader): ServerInfoRequest;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export namespace ServerInfoRequest {
|
|
57
|
-
export type AsObject = {
|
|
58
|
-
clientVersion: string,
|
|
59
|
-
clientId: string,
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export class ServerInfoResponse extends jspb.Message {
|
|
64
|
-
|
|
65
|
-
hasInfo(): boolean;
|
|
66
|
-
clearInfo(): void;
|
|
67
|
-
getInfo(): ServerInfo | undefined;
|
|
68
|
-
setInfo(value?: ServerInfo): ServerInfoResponse;
|
|
69
|
-
|
|
70
|
-
serializeBinary(): Uint8Array;
|
|
71
|
-
toObject(includeInstance?: boolean): ServerInfoResponse.AsObject;
|
|
72
|
-
static toObject(includeInstance: boolean, msg: ServerInfoResponse): ServerInfoResponse.AsObject;
|
|
73
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
74
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
75
|
-
static serializeBinaryToWriter(message: ServerInfoResponse, writer: jspb.BinaryWriter): void;
|
|
76
|
-
static deserializeBinary(bytes: Uint8Array): ServerInfoResponse;
|
|
77
|
-
static deserializeBinaryFromReader(message: ServerInfoResponse, reader: jspb.BinaryReader): ServerInfoResponse;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
export namespace ServerInfoResponse {
|
|
81
|
-
export type AsObject = {
|
|
82
|
-
info?: ServerInfo.AsObject,
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export class ServerInfo extends jspb.Message {
|
|
87
|
-
|
|
88
|
-
hasMetadata(): boolean;
|
|
89
|
-
clearMetadata(): void;
|
|
90
|
-
getMetadata(): ServerMetadata | undefined;
|
|
91
|
-
setMetadata(value?: ServerMetadata): ServerInfo;
|
|
92
|
-
|
|
93
|
-
getFeaturesMap(): jspb.Map<string, FeaturesList>;
|
|
94
|
-
clearFeaturesMap(): void;
|
|
95
|
-
|
|
96
|
-
serializeBinary(): Uint8Array;
|
|
97
|
-
toObject(includeInstance?: boolean): ServerInfo.AsObject;
|
|
98
|
-
static toObject(includeInstance: boolean, msg: ServerInfo): ServerInfo.AsObject;
|
|
99
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
100
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
101
|
-
static serializeBinaryToWriter(message: ServerInfo, writer: jspb.BinaryWriter): void;
|
|
102
|
-
static deserializeBinary(bytes: Uint8Array): ServerInfo;
|
|
103
|
-
static deserializeBinaryFromReader(message: ServerInfo, reader: jspb.BinaryReader): ServerInfo;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export namespace ServerInfo {
|
|
107
|
-
export type AsObject = {
|
|
108
|
-
metadata?: ServerMetadata.AsObject,
|
|
109
|
-
|
|
110
|
-
featuresMap: Array<[string, FeaturesList.AsObject]>,
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export class FeaturesList extends jspb.Message {
|
|
115
|
-
clearFeaturesList(): void;
|
|
116
|
-
getFeaturesList(): Array<Feature>;
|
|
117
|
-
setFeaturesList(value: Array<Feature>): FeaturesList;
|
|
118
|
-
addFeatures(value?: Feature, index?: number): Feature;
|
|
119
|
-
|
|
120
|
-
serializeBinary(): Uint8Array;
|
|
121
|
-
toObject(includeInstance?: boolean): FeaturesList.AsObject;
|
|
122
|
-
static toObject(includeInstance: boolean, msg: FeaturesList): FeaturesList.AsObject;
|
|
123
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
124
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
125
|
-
static serializeBinaryToWriter(message: FeaturesList, writer: jspb.BinaryWriter): void;
|
|
126
|
-
static deserializeBinary(bytes: Uint8Array): FeaturesList;
|
|
127
|
-
static deserializeBinaryFromReader(message: FeaturesList, reader: jspb.BinaryReader): FeaturesList;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export namespace FeaturesList {
|
|
131
|
-
export type AsObject = {
|
|
132
|
-
featuresList: Array<Feature.AsObject>,
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export class Feature extends jspb.Message {
|
|
137
|
-
getName(): string;
|
|
138
|
-
setName(value: string): Feature;
|
|
139
|
-
|
|
140
|
-
hasDescription(): boolean;
|
|
141
|
-
clearDescription(): void;
|
|
142
|
-
getDescription(): string | undefined;
|
|
143
|
-
setDescription(value: string): Feature;
|
|
144
|
-
getEnabled(): boolean;
|
|
145
|
-
setEnabled(value: boolean): Feature;
|
|
146
|
-
getDeprecated(): boolean;
|
|
147
|
-
setDeprecated(value: boolean): Feature;
|
|
148
|
-
clearRequirementsList(): void;
|
|
149
|
-
getRequirementsList(): Array<FeatureRequirement>;
|
|
150
|
-
setRequirementsList(value: Array<FeatureRequirement>): Feature;
|
|
151
|
-
addRequirements(value?: FeatureRequirement, index?: number): FeatureRequirement;
|
|
152
|
-
getClientConfigurable(): boolean;
|
|
153
|
-
setClientConfigurable(value: boolean): Feature;
|
|
154
|
-
|
|
155
|
-
hasAvailableUntil(): boolean;
|
|
156
|
-
clearAvailableUntil(): void;
|
|
157
|
-
getAvailableUntil(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
158
|
-
setAvailableUntil(value?: google_protobuf_timestamp_pb.Timestamp): Feature;
|
|
159
|
-
|
|
160
|
-
serializeBinary(): Uint8Array;
|
|
161
|
-
toObject(includeInstance?: boolean): Feature.AsObject;
|
|
162
|
-
static toObject(includeInstance: boolean, msg: Feature): Feature.AsObject;
|
|
163
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
164
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
165
|
-
static serializeBinaryToWriter(message: Feature, writer: jspb.BinaryWriter): void;
|
|
166
|
-
static deserializeBinary(bytes: Uint8Array): Feature;
|
|
167
|
-
static deserializeBinaryFromReader(message: Feature, reader: jspb.BinaryReader): Feature;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export namespace Feature {
|
|
171
|
-
export type AsObject = {
|
|
172
|
-
name: string,
|
|
173
|
-
description?: string,
|
|
174
|
-
enabled: boolean,
|
|
175
|
-
deprecated: boolean,
|
|
176
|
-
requirementsList: Array<FeatureRequirement.AsObject>,
|
|
177
|
-
clientConfigurable: boolean,
|
|
178
|
-
availableUntil?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export class FeatureRequirement extends jspb.Message {
|
|
183
|
-
getName(): string;
|
|
184
|
-
setName(value: string): FeatureRequirement;
|
|
185
|
-
|
|
186
|
-
hasValue(): boolean;
|
|
187
|
-
clearValue(): void;
|
|
188
|
-
getValue(): kurrentdb_protocols_v2_core_pb.DynamicValue | undefined;
|
|
189
|
-
setValue(value?: kurrentdb_protocols_v2_core_pb.DynamicValue): FeatureRequirement;
|
|
190
|
-
getPolicyStatus(): PolicyStatus;
|
|
191
|
-
setPolicyStatus(value: PolicyStatus): FeatureRequirement;
|
|
192
|
-
|
|
193
|
-
hasDescription(): boolean;
|
|
194
|
-
clearDescription(): void;
|
|
195
|
-
getDescription(): string | undefined;
|
|
196
|
-
setDescription(value: string): FeatureRequirement;
|
|
197
|
-
|
|
198
|
-
hasViolationMessage(): boolean;
|
|
199
|
-
clearViolationMessage(): void;
|
|
200
|
-
getViolationMessage(): string | undefined;
|
|
201
|
-
setViolationMessage(value: string): FeatureRequirement;
|
|
202
|
-
|
|
203
|
-
serializeBinary(): Uint8Array;
|
|
204
|
-
toObject(includeInstance?: boolean): FeatureRequirement.AsObject;
|
|
205
|
-
static toObject(includeInstance: boolean, msg: FeatureRequirement): FeatureRequirement.AsObject;
|
|
206
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
207
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
208
|
-
static serializeBinaryToWriter(message: FeatureRequirement, writer: jspb.BinaryWriter): void;
|
|
209
|
-
static deserializeBinary(bytes: Uint8Array): FeatureRequirement;
|
|
210
|
-
static deserializeBinaryFromReader(message: FeatureRequirement, reader: jspb.BinaryReader): FeatureRequirement;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export namespace FeatureRequirement {
|
|
214
|
-
export type AsObject = {
|
|
215
|
-
name: string,
|
|
216
|
-
value?: kurrentdb_protocols_v2_core_pb.DynamicValue.AsObject,
|
|
217
|
-
policyStatus: PolicyStatus,
|
|
218
|
-
description?: string,
|
|
219
|
-
violationMessage?: string,
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
export enum PolicyStatus {
|
|
224
|
-
OPTIONAL = 0,
|
|
225
|
-
REQUIRED = 3,
|
|
226
|
-
PROHIBITED = 4,
|
|
227
|
-
}
|
|
1
|
+
// package: kurrentdb.protocol.v2
|
|
2
|
+
// file: kurrentdb/protocols/v2/features/service.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
9
|
+
import * as kurrentdb_protocols_v2_core_pb from "../../../../kurrentdb/protocols/v2/core_pb";
|
|
10
|
+
|
|
11
|
+
export class ServerMetadata extends jspb.Message {
|
|
12
|
+
getVersion(): string;
|
|
13
|
+
setVersion(value: string): ServerMetadata;
|
|
14
|
+
getBuild(): string;
|
|
15
|
+
setBuild(value: string): ServerMetadata;
|
|
16
|
+
getMinCompatibleClientVersion(): string;
|
|
17
|
+
setMinCompatibleClientVersion(value: string): ServerMetadata;
|
|
18
|
+
getNodeId(): string;
|
|
19
|
+
setNodeId(value: string): ServerMetadata;
|
|
20
|
+
|
|
21
|
+
serializeBinary(): Uint8Array;
|
|
22
|
+
toObject(includeInstance?: boolean): ServerMetadata.AsObject;
|
|
23
|
+
static toObject(includeInstance: boolean, msg: ServerMetadata): ServerMetadata.AsObject;
|
|
24
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
25
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
26
|
+
static serializeBinaryToWriter(message: ServerMetadata, writer: jspb.BinaryWriter): void;
|
|
27
|
+
static deserializeBinary(bytes: Uint8Array): ServerMetadata;
|
|
28
|
+
static deserializeBinaryFromReader(message: ServerMetadata, reader: jspb.BinaryReader): ServerMetadata;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export namespace ServerMetadata {
|
|
32
|
+
export type AsObject = {
|
|
33
|
+
version: string,
|
|
34
|
+
build: string,
|
|
35
|
+
minCompatibleClientVersion: string,
|
|
36
|
+
nodeId: string,
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class ServerInfoRequest extends jspb.Message {
|
|
41
|
+
getClientVersion(): string;
|
|
42
|
+
setClientVersion(value: string): ServerInfoRequest;
|
|
43
|
+
getClientId(): string;
|
|
44
|
+
setClientId(value: string): ServerInfoRequest;
|
|
45
|
+
|
|
46
|
+
serializeBinary(): Uint8Array;
|
|
47
|
+
toObject(includeInstance?: boolean): ServerInfoRequest.AsObject;
|
|
48
|
+
static toObject(includeInstance: boolean, msg: ServerInfoRequest): ServerInfoRequest.AsObject;
|
|
49
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
50
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
51
|
+
static serializeBinaryToWriter(message: ServerInfoRequest, writer: jspb.BinaryWriter): void;
|
|
52
|
+
static deserializeBinary(bytes: Uint8Array): ServerInfoRequest;
|
|
53
|
+
static deserializeBinaryFromReader(message: ServerInfoRequest, reader: jspb.BinaryReader): ServerInfoRequest;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export namespace ServerInfoRequest {
|
|
57
|
+
export type AsObject = {
|
|
58
|
+
clientVersion: string,
|
|
59
|
+
clientId: string,
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export class ServerInfoResponse extends jspb.Message {
|
|
64
|
+
|
|
65
|
+
hasInfo(): boolean;
|
|
66
|
+
clearInfo(): void;
|
|
67
|
+
getInfo(): ServerInfo | undefined;
|
|
68
|
+
setInfo(value?: ServerInfo): ServerInfoResponse;
|
|
69
|
+
|
|
70
|
+
serializeBinary(): Uint8Array;
|
|
71
|
+
toObject(includeInstance?: boolean): ServerInfoResponse.AsObject;
|
|
72
|
+
static toObject(includeInstance: boolean, msg: ServerInfoResponse): ServerInfoResponse.AsObject;
|
|
73
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
74
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
75
|
+
static serializeBinaryToWriter(message: ServerInfoResponse, writer: jspb.BinaryWriter): void;
|
|
76
|
+
static deserializeBinary(bytes: Uint8Array): ServerInfoResponse;
|
|
77
|
+
static deserializeBinaryFromReader(message: ServerInfoResponse, reader: jspb.BinaryReader): ServerInfoResponse;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export namespace ServerInfoResponse {
|
|
81
|
+
export type AsObject = {
|
|
82
|
+
info?: ServerInfo.AsObject,
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export class ServerInfo extends jspb.Message {
|
|
87
|
+
|
|
88
|
+
hasMetadata(): boolean;
|
|
89
|
+
clearMetadata(): void;
|
|
90
|
+
getMetadata(): ServerMetadata | undefined;
|
|
91
|
+
setMetadata(value?: ServerMetadata): ServerInfo;
|
|
92
|
+
|
|
93
|
+
getFeaturesMap(): jspb.Map<string, FeaturesList>;
|
|
94
|
+
clearFeaturesMap(): void;
|
|
95
|
+
|
|
96
|
+
serializeBinary(): Uint8Array;
|
|
97
|
+
toObject(includeInstance?: boolean): ServerInfo.AsObject;
|
|
98
|
+
static toObject(includeInstance: boolean, msg: ServerInfo): ServerInfo.AsObject;
|
|
99
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
100
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
101
|
+
static serializeBinaryToWriter(message: ServerInfo, writer: jspb.BinaryWriter): void;
|
|
102
|
+
static deserializeBinary(bytes: Uint8Array): ServerInfo;
|
|
103
|
+
static deserializeBinaryFromReader(message: ServerInfo, reader: jspb.BinaryReader): ServerInfo;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export namespace ServerInfo {
|
|
107
|
+
export type AsObject = {
|
|
108
|
+
metadata?: ServerMetadata.AsObject,
|
|
109
|
+
|
|
110
|
+
featuresMap: Array<[string, FeaturesList.AsObject]>,
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export class FeaturesList extends jspb.Message {
|
|
115
|
+
clearFeaturesList(): void;
|
|
116
|
+
getFeaturesList(): Array<Feature>;
|
|
117
|
+
setFeaturesList(value: Array<Feature>): FeaturesList;
|
|
118
|
+
addFeatures(value?: Feature, index?: number): Feature;
|
|
119
|
+
|
|
120
|
+
serializeBinary(): Uint8Array;
|
|
121
|
+
toObject(includeInstance?: boolean): FeaturesList.AsObject;
|
|
122
|
+
static toObject(includeInstance: boolean, msg: FeaturesList): FeaturesList.AsObject;
|
|
123
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
124
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
125
|
+
static serializeBinaryToWriter(message: FeaturesList, writer: jspb.BinaryWriter): void;
|
|
126
|
+
static deserializeBinary(bytes: Uint8Array): FeaturesList;
|
|
127
|
+
static deserializeBinaryFromReader(message: FeaturesList, reader: jspb.BinaryReader): FeaturesList;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export namespace FeaturesList {
|
|
131
|
+
export type AsObject = {
|
|
132
|
+
featuresList: Array<Feature.AsObject>,
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export class Feature extends jspb.Message {
|
|
137
|
+
getName(): string;
|
|
138
|
+
setName(value: string): Feature;
|
|
139
|
+
|
|
140
|
+
hasDescription(): boolean;
|
|
141
|
+
clearDescription(): void;
|
|
142
|
+
getDescription(): string | undefined;
|
|
143
|
+
setDescription(value: string): Feature;
|
|
144
|
+
getEnabled(): boolean;
|
|
145
|
+
setEnabled(value: boolean): Feature;
|
|
146
|
+
getDeprecated(): boolean;
|
|
147
|
+
setDeprecated(value: boolean): Feature;
|
|
148
|
+
clearRequirementsList(): void;
|
|
149
|
+
getRequirementsList(): Array<FeatureRequirement>;
|
|
150
|
+
setRequirementsList(value: Array<FeatureRequirement>): Feature;
|
|
151
|
+
addRequirements(value?: FeatureRequirement, index?: number): FeatureRequirement;
|
|
152
|
+
getClientConfigurable(): boolean;
|
|
153
|
+
setClientConfigurable(value: boolean): Feature;
|
|
154
|
+
|
|
155
|
+
hasAvailableUntil(): boolean;
|
|
156
|
+
clearAvailableUntil(): void;
|
|
157
|
+
getAvailableUntil(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
158
|
+
setAvailableUntil(value?: google_protobuf_timestamp_pb.Timestamp): Feature;
|
|
159
|
+
|
|
160
|
+
serializeBinary(): Uint8Array;
|
|
161
|
+
toObject(includeInstance?: boolean): Feature.AsObject;
|
|
162
|
+
static toObject(includeInstance: boolean, msg: Feature): Feature.AsObject;
|
|
163
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
164
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
165
|
+
static serializeBinaryToWriter(message: Feature, writer: jspb.BinaryWriter): void;
|
|
166
|
+
static deserializeBinary(bytes: Uint8Array): Feature;
|
|
167
|
+
static deserializeBinaryFromReader(message: Feature, reader: jspb.BinaryReader): Feature;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export namespace Feature {
|
|
171
|
+
export type AsObject = {
|
|
172
|
+
name: string,
|
|
173
|
+
description?: string,
|
|
174
|
+
enabled: boolean,
|
|
175
|
+
deprecated: boolean,
|
|
176
|
+
requirementsList: Array<FeatureRequirement.AsObject>,
|
|
177
|
+
clientConfigurable: boolean,
|
|
178
|
+
availableUntil?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export class FeatureRequirement extends jspb.Message {
|
|
183
|
+
getName(): string;
|
|
184
|
+
setName(value: string): FeatureRequirement;
|
|
185
|
+
|
|
186
|
+
hasValue(): boolean;
|
|
187
|
+
clearValue(): void;
|
|
188
|
+
getValue(): kurrentdb_protocols_v2_core_pb.DynamicValue | undefined;
|
|
189
|
+
setValue(value?: kurrentdb_protocols_v2_core_pb.DynamicValue): FeatureRequirement;
|
|
190
|
+
getPolicyStatus(): PolicyStatus;
|
|
191
|
+
setPolicyStatus(value: PolicyStatus): FeatureRequirement;
|
|
192
|
+
|
|
193
|
+
hasDescription(): boolean;
|
|
194
|
+
clearDescription(): void;
|
|
195
|
+
getDescription(): string | undefined;
|
|
196
|
+
setDescription(value: string): FeatureRequirement;
|
|
197
|
+
|
|
198
|
+
hasViolationMessage(): boolean;
|
|
199
|
+
clearViolationMessage(): void;
|
|
200
|
+
getViolationMessage(): string | undefined;
|
|
201
|
+
setViolationMessage(value: string): FeatureRequirement;
|
|
202
|
+
|
|
203
|
+
serializeBinary(): Uint8Array;
|
|
204
|
+
toObject(includeInstance?: boolean): FeatureRequirement.AsObject;
|
|
205
|
+
static toObject(includeInstance: boolean, msg: FeatureRequirement): FeatureRequirement.AsObject;
|
|
206
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
207
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
208
|
+
static serializeBinaryToWriter(message: FeatureRequirement, writer: jspb.BinaryWriter): void;
|
|
209
|
+
static deserializeBinary(bytes: Uint8Array): FeatureRequirement;
|
|
210
|
+
static deserializeBinaryFromReader(message: FeatureRequirement, reader: jspb.BinaryReader): FeatureRequirement;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export namespace FeatureRequirement {
|
|
214
|
+
export type AsObject = {
|
|
215
|
+
name: string,
|
|
216
|
+
value?: kurrentdb_protocols_v2_core_pb.DynamicValue.AsObject,
|
|
217
|
+
policyStatus: PolicyStatus,
|
|
218
|
+
description?: string,
|
|
219
|
+
violationMessage?: string,
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export enum PolicyStatus {
|
|
224
|
+
OPTIONAL = 0,
|
|
225
|
+
REQUIRED = 3,
|
|
226
|
+
PROHIBITED = 4,
|
|
227
|
+
}
|