@stanterprise/protobuf 0.0.5 → 0.0.7

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.
@@ -0,0 +1,108 @@
1
+ /**
2
+ * Generated by the protoc-gen-ts. DO NOT EDIT!
3
+ * compiler version: 3.19.1
4
+ * source: testsystem/v1/entities/entities.proto
5
+ * git: https://github.com/thesayyn/protoc-gen-ts */
6
+ import * as pb_1 from "google-protobuf";
7
+ export declare namespace testsystem.v1.entities {
8
+ class TestScript extends pb_1.Message {
9
+ #private;
10
+ constructor(data?: any[] | ({
11
+ id?: string;
12
+ name?: string;
13
+ description?: string;
14
+ steps?: string[];
15
+ metadata?: Map<string, string>;
16
+ } & (({
17
+ is_active?: boolean;
18
+ }))));
19
+ get id(): string;
20
+ set id(value: string);
21
+ get name(): string;
22
+ set name(value: string);
23
+ get description(): string;
24
+ set description(value: string);
25
+ get steps(): string[];
26
+ set steps(value: string[]);
27
+ get metadata(): Map<string, string>;
28
+ set metadata(value: Map<string, string>);
29
+ get is_active(): boolean;
30
+ set is_active(value: boolean);
31
+ get has_is_active(): boolean;
32
+ get _is_active(): "none" | "is_active";
33
+ static fromObject(data: {
34
+ id?: string;
35
+ name?: string;
36
+ description?: string;
37
+ steps?: string[];
38
+ metadata?: {
39
+ [key: string]: string;
40
+ };
41
+ is_active?: boolean;
42
+ }): TestScript;
43
+ toObject(): {
44
+ id?: string;
45
+ name?: string;
46
+ description?: string;
47
+ steps?: string[];
48
+ metadata?: {
49
+ [key: string]: string;
50
+ };
51
+ is_active?: boolean;
52
+ };
53
+ serialize(): Uint8Array;
54
+ serialize(w: pb_1.BinaryWriter): void;
55
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestScript;
56
+ serializeBinary(): Uint8Array;
57
+ static deserializeBinary(bytes: Uint8Array): TestScript;
58
+ }
59
+ class TestSuite extends pb_1.Message {
60
+ #private;
61
+ constructor(data?: any[] | {
62
+ id?: string;
63
+ name?: string;
64
+ scripts?: TestScript[];
65
+ description?: string;
66
+ metadata?: Map<string, string>;
67
+ sub_suites?: TestSuite[];
68
+ });
69
+ get id(): string;
70
+ set id(value: string);
71
+ get name(): string;
72
+ set name(value: string);
73
+ get scripts(): TestScript[];
74
+ set scripts(value: TestScript[]);
75
+ get description(): string;
76
+ set description(value: string);
77
+ get metadata(): Map<string, string>;
78
+ set metadata(value: Map<string, string>);
79
+ get sub_suites(): TestSuite[];
80
+ set sub_suites(value: TestSuite[]);
81
+ static fromObject(data: {
82
+ id?: string;
83
+ name?: string;
84
+ scripts?: ReturnType<typeof TestScript.prototype.toObject>[];
85
+ description?: string;
86
+ metadata?: {
87
+ [key: string]: string;
88
+ };
89
+ sub_suites?: ReturnType<typeof TestSuite.prototype.toObject>[];
90
+ }): TestSuite;
91
+ toObject(): {
92
+ id?: string;
93
+ name?: string;
94
+ scripts?: ReturnType<typeof TestScript.prototype.toObject>[];
95
+ description?: string;
96
+ metadata?: {
97
+ [key: string]: string;
98
+ };
99
+ sub_suites?: ReturnType<typeof TestSuite.prototype.toObject>[];
100
+ };
101
+ serialize(): Uint8Array;
102
+ serialize(w: pb_1.BinaryWriter): void;
103
+ static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TestSuite;
104
+ serializeBinary(): Uint8Array;
105
+ static deserializeBinary(bytes: Uint8Array): TestSuite;
106
+ }
107
+ }
108
+ //# sourceMappingURL=entities.d.ts.map
@@ -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,EAAE,GAAG,CAAC;YACxB,EAAE,CAAC,EAAE,MAAM,CAAC;Y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-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
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../../lib/testsystem/v1/events/events.ts"],"names":[],"mappings":"AAAA;;;;oDAIoD;AACpD,OAAO,KAAK,YAAY,MAAM,sCAAsC,CAAC;AACrE,OAAO,KAAK,YAAY,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,yBAAiB,UAAU,CAAC,EAAE,CAAC,MAAM,CAAC;IAClC,MAAa,qBAAsB,SAAQ,IAAI,CAAC,OAAO;;oBAEvC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG;YACvB,OAAO,CAAC,EAAE,MAAM,CAAC;YACjB,SAAS,CAAC,EAAE,MAAM,CAAC;YACnB,UAAU,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC;YACpD,QAAQ,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;SAClC;QAoBD,IAAI,OAAO,IAGQ,MAAM,CADxB;QACD,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAExB;QACD,IAAI,SAAS,IAGQ,MAAM,CAD1B;QACD,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,EAE1B;QACD,IAAI,UAAU,IAGQ,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,CAD3D;QACD,IAAI,UAAU,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,QAAQ,CAAC,SAAS,EAE3D;QACD,IAAI,cAAc,YAEjB;QACD,IAAI,QAAQ,IAGQ,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CADtC;QACD,IAAI,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAEtC;QACD,MAAM,CAAC,UAAU,CAAC,IAAI,EA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@@
1
+ /**
2
+ * Generated by the 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,MAAM,eAAe,CAAC;AACxC,yBAAiB,UAAU,CAAC,EAAE,CAAC,QAAQ,CAAC;IACpC,MAAM,OAAO,WAAY,SAAQ,IAAI,CAAC,OAAO;;oBAE7B,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,CAAC;YACxB,OAAO,CAAC,EAAE,OAAO,CAAC;YAClB,OAAO,CAAC,EAAE,MAAM,CAAC;SACpB,GAAG,CAAC,CAAC;YACF,UAAU,CAAC,EAAE,MAAM,CAAC;SACvB,CAAC,CAAC,CAAC;QAeJ,IAAI,OAAO,IAGQ,OAAO,CADzB;QACD,IAAI,OAAO,CAAC,KAAK,EAAE,OAAO,EAEzB;QACD,IAAI,OAAO,IAGQ,MAAM,CADxB;QACD,IAAI,OAAO,CAAC,KAAK,EAAE,MAAM,EAExB;QACD,IAAI,UAAU,IAGQ,MAAM,CAD3B;QACD,IAAI,UAAU,CAAC,KAAK,EAAE,MAAM,EAE3B;QACD,IAAI,cAAc,YAEjB;QACD,IAAI,WAAW,0BAQd;QACD,MAAM,CAA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C,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,45 @@
1
+ // AUTO-COPIED FROM scripts/static-lib-index.ts
2
+ // DO NOT EDIT GENERATED lib/index.ts DIRECTLY
3
+ // scripts/static-lib-index.ts
4
+ // Source of truth for merged protobuf namespaces barrel (copied to lib/index.ts after generation)
5
+ // Update when adding new testsystem packages.
6
+
7
+ import * as googleTimestamp from '../lib/google/protobuf/timestamp';
8
+ import * as testsystemCommon from '../lib/testsystem/v1/common/common';
9
+ import * as testsystemEntities from '../lib/testsystem/v1/entities/entities';
10
+ import * as testsystemEvents from '../lib/testsystem/v1/events/events';
11
+ import * as testsystemObserver from '../lib/testsystem/v1/observer/observer';
12
+
13
+ type TestsystemNS = typeof testsystemCommon.testsystem &
14
+ typeof testsystemEntities.testsystem &
15
+ typeof testsystemEvents.testsystem &
16
+ typeof testsystemObserver.testsystem;
17
+
18
+ type PlainObject = Record<string, unknown>;
19
+
20
+ function isPlainObject(o: unknown): o is PlainObject {
21
+ return !!o && Object.prototype.toString.call(o) === '[object Object]';
22
+ }
23
+ function mergeNamespace<T extends PlainObject, S extends PlainObject>(target: T, source: S): T & S {
24
+ for (const k of Object.keys(source)) {
25
+ const key = k as keyof S & string;
26
+ const sv = source[key];
27
+ const tv = (target as PlainObject)[key];
28
+ if (isPlainObject(tv) && isPlainObject(sv))
29
+ mergeNamespace(tv as PlainObject, sv as PlainObject);
30
+ else (target as PlainObject)[key] = sv as unknown;
31
+ }
32
+ return target as T & S;
33
+ }
34
+ const testsystem: TestsystemNS = mergeNamespace(
35
+ mergeNamespace(
36
+ mergeNamespace(
37
+ mergeNamespace({}, testsystemCommon.testsystem as PlainObject),
38
+ testsystemEntities.testsystem as PlainObject
39
+ ),
40
+ testsystemEvents.testsystem as PlainObject
41
+ ),
42
+ testsystemObserver.testsystem as PlainObject
43
+ ) as TestsystemNS;
44
+ export { testsystem };
45
+ export const google = googleTimestamp.google;