@stanterprise/protobuf 0.0.5 → 0.0.6
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/README.md +129 -1
- package/dist/index.d.ts +2 -407
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1315 -737
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1300 -727
- package/dist/index.mjs.map +1 -1
- package/dist/lib/google/protobuf/timestamp.d.ts +33 -0
- package/dist/lib/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/common/common.d.ts +57 -0
- package/dist/lib/testsystem/v1/common/common.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/entities/entities.d.ts +108 -0
- package/dist/lib/testsystem/v1/entities/entities.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/events/events.d.ts +154 -0
- package/dist/lib/testsystem/v1/events/events.d.ts.map +1 -0
- package/dist/lib/testsystem/v1/observer/observer.d.ts +92 -0
- package/dist/lib/testsystem/v1/observer/observer.d.ts.map +1 -0
- package/lib/google/protobuf/timestamp.ts +98 -0
- package/lib/index.ts +5 -0
- package/lib/testsystem/v1/common/common.ts +171 -0
- package/lib/testsystem/v1/entities/entities.ts +405 -0
- package/lib/testsystem/v1/events/events.ts +573 -0
- package/lib/testsystem/v1/observer/observer.ts +209 -0
- package/package.json +22 -11
- package/dist/index.d.mts +0 -407
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../../lib/testsystem/v1/entities/entities.ts"],"names":[],"mappings":"AAAA;;;;oDAIoD;AACpD,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,yBAAiB,UAAU,CAAC,EAAE,CAAC,QAAQ,CAAC;IACpC,MAAa,UAAW,SAAQ,IAAI,CAAC,OAAO;;oBAE5B,IAAI,CAAC,EAAE,GAAG,EA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|
3
|
+
* compiler version: 3.19.1
|
|
4
|
+
* source: testsystem/v1/events/events.proto
|
|
5
|
+
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
|
+
import * as dependency_1 from "./../../../google/protobuf/timestamp";
|
|
7
|
+
import * as dependency_2 from "./../common/common";
|
|
8
|
+
import * as pb_1 from "google-protobuf";
|
|
9
|
+
export declare namespace testsystem.v1.events {
|
|
10
|
+
class TestStartEventRequest extends pb_1.Message {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(data?: any[] | {
|
|
13
|
+
test_id?: string;
|
|
14
|
+
test_name?: string;
|
|
15
|
+
start_time?: dependency_1.google.protobuf.Timestamp;
|
|
16
|
+
metadata?: Map<string, string>;
|
|
17
|
+
});
|
|
18
|
+
get test_id(): string;
|
|
19
|
+
set test_id(value: string);
|
|
20
|
+
get test_name(): string;
|
|
21
|
+
set test_name(value: string);
|
|
22
|
+
get start_time(): dependency_1.google.protobuf.Timestamp;
|
|
23
|
+
set start_time(value: dependency_1.google.protobuf.Timestamp);
|
|
24
|
+
get has_start_time(): boolean;
|
|
25
|
+
get metadata(): Map<string, string>;
|
|
26
|
+
set metadata(value: Map<string, string>);
|
|
27
|
+
static fromObject(data: {
|
|
28
|
+
test_id?: string;
|
|
29
|
+
test_name?: string;
|
|
30
|
+
start_time?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
31
|
+
metadata?: {
|
|
32
|
+
[key: string]: string;
|
|
33
|
+
};
|
|
34
|
+
}): TestStartEventRequest;
|
|
35
|
+
toObject(): {
|
|
36
|
+
test_id?: string;
|
|
37
|
+
test_name?: string;
|
|
38
|
+
start_time?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
39
|
+
metadata?: {
|
|
40
|
+
[key: string]: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
serialize(): Uint8Array;
|
|
44
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
45
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestStartEventRequest;
|
|
46
|
+
serializeBinary(): Uint8Array;
|
|
47
|
+
static deserializeBinary(bytes: Uint8Array): TestStartEventRequest;
|
|
48
|
+
}
|
|
49
|
+
class TestFinishEventRequest extends pb_1.Message {
|
|
50
|
+
#private;
|
|
51
|
+
constructor(data?: any[] | {
|
|
52
|
+
test_id?: string;
|
|
53
|
+
status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
54
|
+
end_time?: dependency_1.google.protobuf.Timestamp;
|
|
55
|
+
attachments?: dependency_2.testsystem.v1.common.Attachment[];
|
|
56
|
+
error_message?: string;
|
|
57
|
+
stack_trace?: string;
|
|
58
|
+
});
|
|
59
|
+
get test_id(): string;
|
|
60
|
+
set test_id(value: string);
|
|
61
|
+
get status(): dependency_2.testsystem.v1.common.TestStatus;
|
|
62
|
+
set status(value: dependency_2.testsystem.v1.common.TestStatus);
|
|
63
|
+
get end_time(): dependency_1.google.protobuf.Timestamp;
|
|
64
|
+
set end_time(value: dependency_1.google.protobuf.Timestamp);
|
|
65
|
+
get has_end_time(): boolean;
|
|
66
|
+
get attachments(): dependency_2.testsystem.v1.common.Attachment[];
|
|
67
|
+
set attachments(value: dependency_2.testsystem.v1.common.Attachment[]);
|
|
68
|
+
get error_message(): string;
|
|
69
|
+
set error_message(value: string);
|
|
70
|
+
get stack_trace(): string;
|
|
71
|
+
set stack_trace(value: string);
|
|
72
|
+
static fromObject(data: {
|
|
73
|
+
test_id?: string;
|
|
74
|
+
status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
75
|
+
end_time?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
76
|
+
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
77
|
+
error_message?: string;
|
|
78
|
+
stack_trace?: string;
|
|
79
|
+
}): TestFinishEventRequest;
|
|
80
|
+
toObject(): {
|
|
81
|
+
test_id?: string;
|
|
82
|
+
status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
83
|
+
end_time?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
84
|
+
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
85
|
+
error_message?: string;
|
|
86
|
+
stack_trace?: string;
|
|
87
|
+
};
|
|
88
|
+
serialize(): Uint8Array;
|
|
89
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
90
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestFinishEventRequest;
|
|
91
|
+
serializeBinary(): Uint8Array;
|
|
92
|
+
static deserializeBinary(bytes: Uint8Array): TestFinishEventRequest;
|
|
93
|
+
}
|
|
94
|
+
class TestStepRequest extends pb_1.Message {
|
|
95
|
+
#private;
|
|
96
|
+
constructor(data?: any[] | {
|
|
97
|
+
description?: string;
|
|
98
|
+
timestamp?: dependency_1.google.protobuf.Timestamp;
|
|
99
|
+
status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
100
|
+
attachments?: dependency_2.testsystem.v1.common.Attachment[];
|
|
101
|
+
});
|
|
102
|
+
get description(): string;
|
|
103
|
+
set description(value: string);
|
|
104
|
+
get timestamp(): dependency_1.google.protobuf.Timestamp;
|
|
105
|
+
set timestamp(value: dependency_1.google.protobuf.Timestamp);
|
|
106
|
+
get has_timestamp(): boolean;
|
|
107
|
+
get status(): dependency_2.testsystem.v1.common.TestStatus;
|
|
108
|
+
set status(value: dependency_2.testsystem.v1.common.TestStatus);
|
|
109
|
+
get attachments(): dependency_2.testsystem.v1.common.Attachment[];
|
|
110
|
+
set attachments(value: dependency_2.testsystem.v1.common.Attachment[]);
|
|
111
|
+
static fromObject(data: {
|
|
112
|
+
description?: string;
|
|
113
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
114
|
+
status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
115
|
+
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
116
|
+
}): TestStepRequest;
|
|
117
|
+
toObject(): {
|
|
118
|
+
description?: string;
|
|
119
|
+
timestamp?: ReturnType<typeof dependency_1.google.protobuf.Timestamp.prototype.toObject>;
|
|
120
|
+
status?: dependency_2.testsystem.v1.common.TestStatus;
|
|
121
|
+
attachments?: ReturnType<typeof dependency_2.testsystem.v1.common.Attachment.prototype.toObject>[];
|
|
122
|
+
};
|
|
123
|
+
serialize(): Uint8Array;
|
|
124
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
125
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestStepRequest;
|
|
126
|
+
serializeBinary(): Uint8Array;
|
|
127
|
+
static deserializeBinary(bytes: Uint8Array): TestStepRequest;
|
|
128
|
+
}
|
|
129
|
+
class TestStepEventRequest extends pb_1.Message {
|
|
130
|
+
#private;
|
|
131
|
+
constructor(data?: any[] | {
|
|
132
|
+
test_id?: string;
|
|
133
|
+
steps?: TestStepRequest[];
|
|
134
|
+
});
|
|
135
|
+
get test_id(): string;
|
|
136
|
+
set test_id(value: string);
|
|
137
|
+
get steps(): TestStepRequest[];
|
|
138
|
+
set steps(value: TestStepRequest[]);
|
|
139
|
+
static fromObject(data: {
|
|
140
|
+
test_id?: string;
|
|
141
|
+
steps?: ReturnType<typeof TestStepRequest.prototype.toObject>[];
|
|
142
|
+
}): TestStepEventRequest;
|
|
143
|
+
toObject(): {
|
|
144
|
+
test_id?: string;
|
|
145
|
+
steps?: ReturnType<typeof TestStepRequest.prototype.toObject>[];
|
|
146
|
+
};
|
|
147
|
+
serialize(): Uint8Array;
|
|
148
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
149
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestStepEventRequest;
|
|
150
|
+
serializeBinary(): Uint8Array;
|
|
151
|
+
static deserializeBinary(bytes: Uint8Array): TestStepEventRequest;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
//# s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protoc-gen-ts. DO NOT EDIT!
|
|
3
|
+
* compiler version: 3.19.1
|
|
4
|
+
* source: testsystem/v1/observer/observer.proto
|
|
5
|
+
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
|
+
import * as dependency_1 from "./../events/events";
|
|
7
|
+
import * as pb_1 from "google-protobuf";
|
|
8
|
+
import * as grpc_1 from "@grpc/grpc-js";
|
|
9
|
+
export declare namespace testsystem.v1.observer {
|
|
10
|
+
export class AckResponse extends pb_1.Message {
|
|
11
|
+
#private;
|
|
12
|
+
constructor(data?: any[] | ({
|
|
13
|
+
success?: boolean;
|
|
14
|
+
message?: string;
|
|
15
|
+
} & (({
|
|
16
|
+
error_code?: number;
|
|
17
|
+
}))));
|
|
18
|
+
get success(): boolean;
|
|
19
|
+
set success(value: boolean);
|
|
20
|
+
get message(): string;
|
|
21
|
+
set message(value: string);
|
|
22
|
+
get error_code(): number;
|
|
23
|
+
set error_code(value: number);
|
|
24
|
+
get has_error_code(): boolean;
|
|
25
|
+
get _error_code(): "none" | "error_code";
|
|
26
|
+
static fromObject(data: {
|
|
27
|
+
success?: boolean;
|
|
28
|
+
message?: string;
|
|
29
|
+
error_code?: number;
|
|
30
|
+
}): AckResponse;
|
|
31
|
+
toObject(): {
|
|
32
|
+
success?: boolean;
|
|
33
|
+
message?: string;
|
|
34
|
+
error_code?: number;
|
|
35
|
+
};
|
|
36
|
+
serialize(): Uint8Array;
|
|
37
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
38
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AckResponse;
|
|
39
|
+
serializeBinary(): Uint8Array;
|
|
40
|
+
static deserializeBinary(bytes: Uint8Array): AckResponse;
|
|
41
|
+
}
|
|
42
|
+
interface GrpcUnaryServiceInterface<P, R> {
|
|
43
|
+
(message: P, metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
44
|
+
(message: P, metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
45
|
+
(message: P, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
46
|
+
(message: P, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
|
|
47
|
+
}
|
|
48
|
+
export abstract class UnimplementedTestEventCollectorService {
|
|
49
|
+
static definition: {
|
|
50
|
+
ReportTestStart: {
|
|
51
|
+
path: string;
|
|
52
|
+
requestStream: boolean;
|
|
53
|
+
responseStream: boolean;
|
|
54
|
+
requestSerialize: (message: dependency_1.testsystem.v1.events.TestStartEventRequest) => Buffer<ArrayBuffer>;
|
|
55
|
+
requestDeserialize: (bytes: Buffer) => dependency_1.testsystem.v1.events.TestStartEventRequest;
|
|
56
|
+
responseSerialize: (message: AckResponse) => Buffer<ArrayBuffer>;
|
|
57
|
+
responseDeserialize: (bytes: Buffer) => AckResponse;
|
|
58
|
+
};
|
|
59
|
+
ReportTestFinish: {
|
|
60
|
+
path: string;
|
|
61
|
+
requestStream: boolean;
|
|
62
|
+
responseStream: boolean;
|
|
63
|
+
requestSerialize: (message: dependency_1.testsystem.v1.events.TestFinishEventRequest) => Buffer<ArrayBuffer>;
|
|
64
|
+
requestDeserialize: (bytes: Buffer) => dependency_1.testsystem.v1.events.TestFinishEventRequest;
|
|
65
|
+
responseSerialize: (message: AckResponse) => Buffer<ArrayBuffer>;
|
|
66
|
+
responseDeserialize: (bytes: Buffer) => AckResponse;
|
|
67
|
+
};
|
|
68
|
+
ReportTestStep: {
|
|
69
|
+
path: string;
|
|
70
|
+
requestStream: boolean;
|
|
71
|
+
responseStream: boolean;
|
|
72
|
+
requestSerialize: (message: dependency_1.testsystem.v1.events.TestStepEventRequest) => Buffer<ArrayBuffer>;
|
|
73
|
+
requestDeserialize: (bytes: Buffer) => dependency_1.testsystem.v1.events.TestStepEventRequest;
|
|
74
|
+
responseSerialize: (message: AckResponse) => Buffer<ArrayBuffer>;
|
|
75
|
+
responseDeserialize: (bytes: Buffer) => AckResponse;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
[method: string]: grpc_1.UntypedHandleCall;
|
|
79
|
+
abstract ReportTestStart(call: grpc_1.ServerUnaryCall<dependency_1.testsystem.v1.events.TestStartEventRequest, AckResponse>, callback: grpc_1.sendUnaryData<AckResponse>): void;
|
|
80
|
+
abstract ReportTestFinish(call: grpc_1.ServerUnaryCall<dependency_1.testsystem.v1.events.TestFinishEventRequest, AckResponse>, callback: grpc_1.sendUnaryData<AckResponse>): void;
|
|
81
|
+
abstract ReportTestStep(call: grpc_1.ServerUnaryCall<dependency_1.testsystem.v1.events.TestStepEventRequest, AckResponse>, callback: grpc_1.sendUnaryData<AckResponse>): void;
|
|
82
|
+
}
|
|
83
|
+
const TestEventCollectorClient_base: grpc_1.ServiceClientConstructor;
|
|
84
|
+
export class TestEventCollectorClient extends TestEventCollectorClient_base {
|
|
85
|
+
constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>);
|
|
86
|
+
ReportTestStart: GrpcUnaryServiceInterface<dependency_1.testsystem.v1.events.TestStartEventRequest, AckResponse>;
|
|
87
|
+
ReportTestFinish: GrpcUnaryServiceInterface<dependency_1.testsystem.v1.events.TestFinishEventRequest, AckResponse>;
|
|
88
|
+
ReportTestStep: GrpcUnaryServiceInterface<dependency_1.testsystem.v1.events.TestStepEventRequest, AckResponse>;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=observer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observer.d.ts","sourceRoot":"","sources":["../../../../../lib/testsystem/v1/observer/observer.ts"],"names":[],"mappings":"AAAA;;;;oDAIoD;AACpD,OAAO,KAAK,YAAY,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,MAAM,MAA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AAgB,CAAC,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,sBAAsB,EAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,IAAI;QACjL,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,oBAAoB,EAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,aAAa,CAAC,WAAW,CAAC,GAAG,IAAI;KAChL;;IACD,MAAM,OAAO,wBAAyB,SAAQ,6BAAgH;oBAC9I,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,CAAC,kBAAkB,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC;QAG7G,eAAe,EAAE,yBAAyB,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,qBAAqB,EAAE,WAAW,CAAC,CAE9G;QACF,gBAAgB,EAAE,yBAAyB,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,sBAAsB,EAAE,WAAW,CAAC,CAEhH;QACF,cAAc,EAAE,yBAAyB,CAAC,YAAY,CAAC,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC,oBAAoB,EAAE,WAAW,CAAC,CAE5G;KACL;;CACJ"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
3
|
+
* compiler version: 3.19.1
|
|
4
|
+
* source: google/protobuf/timestamp.proto
|
|
5
|
+
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
|
+
import * as pb_1 from "google-protobuf";
|
|
7
|
+
export namespace google.protobuf {
|
|
8
|
+
export class Timestamp extends pb_1.Message {
|
|
9
|
+
#one_of_decls: number[][] = [];
|
|
10
|
+
constructor(data?: any[] | {
|
|
11
|
+
seconds?: number;
|
|
12
|
+
nanos?: number;
|
|
13
|
+
}) {
|
|
14
|
+
super();
|
|
15
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
16
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
17
|
+
if ("seconds" in data && data.seconds != undefined) {
|
|
18
|
+
this.seconds = data.seconds;
|
|
19
|
+
}
|
|
20
|
+
if ("nanos" in data && data.nanos != undefined) {
|
|
21
|
+
this.nanos = data.nanos;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
get seconds() {
|
|
26
|
+
return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
|
|
27
|
+
}
|
|
28
|
+
set seconds(value: number) {
|
|
29
|
+
pb_1.Message.setField(this, 1, value);
|
|
30
|
+
}
|
|
31
|
+
get nanos() {
|
|
32
|
+
return pb_1.Message.getFieldWithDefault(this, 2, 0) as number;
|
|
33
|
+
}
|
|
34
|
+
set nanos(value: number) {
|
|
35
|
+
pb_1.Message.setField(this, 2, value);
|
|
36
|
+
}
|
|
37
|
+
static fromObject(data: {
|
|
38
|
+
seconds?: number;
|
|
39
|
+
nanos?: number;
|
|
40
|
+
}): Timestamp {
|
|
41
|
+
const message = new Timestamp({});
|
|
42
|
+
if (data.seconds != null) {
|
|
43
|
+
message.seconds = data.seconds;
|
|
44
|
+
}
|
|
45
|
+
if (data.nanos != null) {
|
|
46
|
+
message.nanos = data.nanos;
|
|
47
|
+
}
|
|
48
|
+
return message;
|
|
49
|
+
}
|
|
50
|
+
toObject() {
|
|
51
|
+
const data: {
|
|
52
|
+
seconds?: number;
|
|
53
|
+
nanos?: number;
|
|
54
|
+
} = {};
|
|
55
|
+
if (this.seconds != null) {
|
|
56
|
+
data.seconds = this.seconds;
|
|
57
|
+
}
|
|
58
|
+
if (this.nanos != null) {
|
|
59
|
+
data.nanos = this.nanos;
|
|
60
|
+
}
|
|
61
|
+
return data;
|
|
62
|
+
}
|
|
63
|
+
serialize(): Uint8Array;
|
|
64
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
65
|
+
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
66
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
67
|
+
if (this.seconds != 0)
|
|
68
|
+
writer.writeInt64(1, this.seconds);
|
|
69
|
+
if (this.nanos != 0)
|
|
70
|
+
writer.writeInt32(2, this.nanos);
|
|
71
|
+
if (!w)
|
|
72
|
+
return writer.getResultBuffer();
|
|
73
|
+
}
|
|
74
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Timestamp {
|
|
75
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Timestamp();
|
|
76
|
+
while (reader.nextField()) {
|
|
77
|
+
if (reader.isEndGroup())
|
|
78
|
+
break;
|
|
79
|
+
switch (reader.getFieldNumber()) {
|
|
80
|
+
case 1:
|
|
81
|
+
message.seconds = reader.readInt64();
|
|
82
|
+
break;
|
|
83
|
+
case 2:
|
|
84
|
+
message.nanos = reader.readInt32();
|
|
85
|
+
break;
|
|
86
|
+
default: reader.skipField();
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return message;
|
|
90
|
+
}
|
|
91
|
+
serializeBinary(): Uint8Array {
|
|
92
|
+
return this.serialize();
|
|
93
|
+
}
|
|
94
|
+
static deserializeBinary(bytes: Uint8Array): Timestamp {
|
|
95
|
+
return Timestamp.deserialize(bytes);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
package/lib/index.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { google as google_protobuf } from "./google/protobuf/timestamp";
|
|
2
|
+
export { testsystem as testsystem_v1_common } from "./testsystem/v1/common/common";
|
|
3
|
+
export { testsystem as testsystem_v1_entities } from "./testsystem/v1/entities/entities";
|
|
4
|
+
export { testsystem as testsystem_v1_events } from "./testsystem/v1/events/events";
|
|
5
|
+
export { testsystem as testsystem_v1_observer } from "./testsystem/v1/observer/observer";
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
3
|
+
* compiler version: 3.19.1
|
|
4
|
+
* source: testsystem/v1/common/common.proto
|
|
5
|
+
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
|
+
import * as pb_1 from "google-protobuf";
|
|
7
|
+
export namespace testsystem.v1.common {
|
|
8
|
+
export enum TestStatus {
|
|
9
|
+
UNKNOWN = 0,
|
|
10
|
+
PASSED = 1,
|
|
11
|
+
FAILED = 2,
|
|
12
|
+
SKIPPED = 3,
|
|
13
|
+
BROKEN = 4
|
|
14
|
+
}
|
|
15
|
+
export class Attachment extends pb_1.Message {
|
|
16
|
+
#one_of_decls: number[][] = [[3, 4]];
|
|
17
|
+
constructor(data?: any[] | ({
|
|
18
|
+
name?: string;
|
|
19
|
+
mime_type?: string;
|
|
20
|
+
} & (({
|
|
21
|
+
content?: Uint8Array;
|
|
22
|
+
uri?: never;
|
|
23
|
+
} | {
|
|
24
|
+
content?: never;
|
|
25
|
+
uri?: string;
|
|
26
|
+
})))) {
|
|
27
|
+
super();
|
|
28
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
|
|
29
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
30
|
+
if ("name" in data && data.name != undefined) {
|
|
31
|
+
this.name = data.name;
|
|
32
|
+
}
|
|
33
|
+
if ("mime_type" in data && data.mime_type != undefined) {
|
|
34
|
+
this.mime_type = data.mime_type;
|
|
35
|
+
}
|
|
36
|
+
if ("content" in data && data.content != undefined) {
|
|
37
|
+
this.content = data.content;
|
|
38
|
+
}
|
|
39
|
+
if ("uri" in data && data.uri != undefined) {
|
|
40
|
+
this.uri = data.uri;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
get name() {
|
|
45
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
|
|
46
|
+
}
|
|
47
|
+
set name(value: string) {
|
|
48
|
+
pb_1.Message.setField(this, 1, value);
|
|
49
|
+
}
|
|
50
|
+
get mime_type() {
|
|
51
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
|
|
52
|
+
}
|
|
53
|
+
set mime_type(value: string) {
|
|
54
|
+
pb_1.Message.setField(this, 2, value);
|
|
55
|
+
}
|
|
56
|
+
get content() {
|
|
57
|
+
return pb_1.Message.getFieldWithDefault(this, 3, new Uint8Array(0)) as Uint8Array;
|
|
58
|
+
}
|
|
59
|
+
set content(value: Uint8Array) {
|
|
60
|
+
pb_1.Message.setOneofField(this, 3, this.#one_of_decls[0], value);
|
|
61
|
+
}
|
|
62
|
+
get has_content() {
|
|
63
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
64
|
+
}
|
|
65
|
+
get uri() {
|
|
66
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
|
|
67
|
+
}
|
|
68
|
+
set uri(value: string) {
|
|
69
|
+
pb_1.Message.setOneofField(this, 4, this.#one_of_decls[0], value);
|
|
70
|
+
}
|
|
71
|
+
get has_uri() {
|
|
72
|
+
return pb_1.Message.getField(this, 4) != null;
|
|
73
|
+
}
|
|
74
|
+
get payload() {
|
|
75
|
+
const cases: {
|
|
76
|
+
[index: number]: "none" | "content" | "uri";
|
|
77
|
+
} = {
|
|
78
|
+
0: "none",
|
|
79
|
+
3: "content",
|
|
80
|
+
4: "uri"
|
|
81
|
+
};
|
|
82
|
+
return cases[pb_1.Message.computeOneofCase(this, [3, 4])];
|
|
83
|
+
}
|
|
84
|
+
static fromObject(data: {
|
|
85
|
+
name?: string;
|
|
86
|
+
mime_type?: string;
|
|
87
|
+
content?: Uint8Array;
|
|
88
|
+
uri?: string;
|
|
89
|
+
}): Attachment {
|
|
90
|
+
const message = new Attachment({});
|
|
91
|
+
if (data.name != null) {
|
|
92
|
+
message.name = data.name;
|
|
93
|
+
}
|
|
94
|
+
if (data.mime_type != null) {
|
|
95
|
+
message.mime_type = data.mime_type;
|
|
96
|
+
}
|
|
97
|
+
if (data.content != null) {
|
|
98
|
+
message.content = data.content;
|
|
99
|
+
}
|
|
100
|
+
if (data.uri != null) {
|
|
101
|
+
message.uri = data.uri;
|
|
102
|
+
}
|
|
103
|
+
return message;
|
|
104
|
+
}
|
|
105
|
+
toObject() {
|
|
106
|
+
const data: {
|
|
107
|
+
name?: string;
|
|
108
|
+
mime_type?: string;
|
|
109
|
+
content?: Uint8Array;
|
|
110
|
+
uri?: string;
|
|
111
|
+
} = {};
|
|
112
|
+
if (this.name != null) {
|
|
113
|
+
data.name = this.name;
|
|
114
|
+
}
|
|
115
|
+
if (this.mime_type != null) {
|
|
116
|
+
data.mime_type = this.mime_type;
|
|
117
|
+
}
|
|
118
|
+
if (this.content != null) {
|
|
119
|
+
data.content = this.content;
|
|
120
|
+
}
|
|
121
|
+
if (this.uri != null) {
|
|
122
|
+
data.uri = this.uri;
|
|
123
|
+
}
|
|
124
|
+
return data;
|
|
125
|
+
}
|
|
126
|
+
serialize(): Uint8Array;
|
|
127
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
128
|
+
serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
|
|
129
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
130
|
+
if (this.name.length)
|
|
131
|
+
writer.writeString(1, this.name);
|
|
132
|
+
if (this.mime_type.length)
|
|
133
|
+
writer.writeString(2, this.mime_type);
|
|
134
|
+
if (this.has_content)
|
|
135
|
+
writer.writeBytes(3, this.content);
|
|
136
|
+
if (this.has_uri)
|
|
137
|
+
writer.writeString(4, this.uri);
|
|
138
|
+
if (!w)
|
|
139
|
+
return writer.getResultBuffer();
|
|
140
|
+
}
|
|
141
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Attachment {
|
|
142
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Attachment();
|
|
143
|
+
while (reader.nextField()) {
|
|
144
|
+
if (reader.isEndGroup())
|
|
145
|
+
break;
|
|
146
|
+
switch (reader.getFieldNumber()) {
|
|
147
|
+
case 1:
|
|
148
|
+
message.name = reader.readString();
|
|
149
|
+
break;
|
|
150
|
+
case 2:
|
|
151
|
+
message.mime_type = reader.readString();
|
|
152
|
+
break;
|
|
153
|
+
case 3:
|
|
154
|
+
message.content = reader.readBytes();
|
|
155
|
+
break;
|
|
156
|
+
case 4:
|
|
157
|
+
message.uri = reader.readString();
|
|
158
|
+
break;
|
|
159
|
+
default: reader.skipField();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return message;
|
|
163
|
+
}
|
|
164
|
+
serializeBinary(): Uint8Array {
|
|
165
|
+
return this.serialize();
|
|
166
|
+
}
|
|
167
|
+
static deserializeBinary(bytes: Uint8Array): Attachment {
|
|
168
|
+
return Attachment.deserialize(bytes);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|