@aneoconsultingfr/armonik.api.angular 3.15.0 → 3.15.1-edge.5.ee0ff9e

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,220 @@
1
+ import { GrpcMessage, RecursivePartial, ToProtobufJSONOptions } from '@ngx-grpc/common';
2
+ import { BinaryReader, BinaryWriter, ByteSource } from 'google-protobuf';
3
+ export declare enum HealthStatusEnum {
4
+ HEALTH_STATUS_ENUM_UNSPECIFIED = 0,
5
+ HEALTH_STATUS_ENUM_HEALTHY = 1,
6
+ HEALTH_STATUS_ENUM_DEGRADED = 2,
7
+ HEALTH_STATUS_ENUM_UNHEALTHY = 3
8
+ }
9
+ /**
10
+ * Message implementation for armonik.api.grpc.v1.health_checks.CheckHealthRequest
11
+ */
12
+ export declare class CheckHealthRequest implements GrpcMessage {
13
+ static id: string;
14
+ /**
15
+ * Deserialize binary data to message
16
+ * @param instance message instance
17
+ */
18
+ static deserializeBinary(bytes: ByteSource): CheckHealthRequest;
19
+ /**
20
+ * Check all the properties and set default protobuf values if necessary
21
+ * @param _instance message instance
22
+ */
23
+ static refineValues(_instance: CheckHealthRequest): void;
24
+ /**
25
+ * Deserializes / reads binary message into message instance using provided binary reader
26
+ * @param _instance message instance
27
+ * @param _reader binary reader instance
28
+ */
29
+ static deserializeBinaryFromReader(_instance: CheckHealthRequest, _reader: BinaryReader): void;
30
+ /**
31
+ * Serializes a message to binary format using provided binary reader
32
+ * @param _instance message instance
33
+ * @param _writer binary writer instance
34
+ */
35
+ static serializeBinaryToWriter(_instance: CheckHealthRequest, _writer: BinaryWriter): void;
36
+ /**
37
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
38
+ * @param _value initial values object or instance of CheckHealthRequest to deeply clone from
39
+ */
40
+ constructor(_value?: RecursivePartial<CheckHealthRequest.AsObject>);
41
+ /**
42
+ * Serialize message to binary data
43
+ * @param instance message instance
44
+ */
45
+ serializeBinary(): Uint8Array;
46
+ /**
47
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
48
+ */
49
+ toObject(): CheckHealthRequest.AsObject;
50
+ /**
51
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
52
+ */
53
+ toJSON(): CheckHealthRequest.AsObject;
54
+ /**
55
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
56
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
57
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
58
+ */
59
+ toProtobufJSON(options?: ToProtobufJSONOptions): CheckHealthRequest.AsProtobufJSON;
60
+ }
61
+ export declare module CheckHealthRequest {
62
+ /**
63
+ * Standard JavaScript object representation for CheckHealthRequest
64
+ */
65
+ interface AsObject {
66
+ }
67
+ /**
68
+ * Protobuf JSON representation for CheckHealthRequest
69
+ */
70
+ interface AsProtobufJSON {
71
+ }
72
+ }
73
+ /**
74
+ * Message implementation for armonik.api.grpc.v1.health_checks.CheckHealthResponse
75
+ */
76
+ export declare class CheckHealthResponse implements GrpcMessage {
77
+ static id: string;
78
+ /**
79
+ * Deserialize binary data to message
80
+ * @param instance message instance
81
+ */
82
+ static deserializeBinary(bytes: ByteSource): CheckHealthResponse;
83
+ /**
84
+ * Check all the properties and set default protobuf values if necessary
85
+ * @param _instance message instance
86
+ */
87
+ static refineValues(_instance: CheckHealthResponse): void;
88
+ /**
89
+ * Deserializes / reads binary message into message instance using provided binary reader
90
+ * @param _instance message instance
91
+ * @param _reader binary reader instance
92
+ */
93
+ static deserializeBinaryFromReader(_instance: CheckHealthResponse, _reader: BinaryReader): void;
94
+ /**
95
+ * Serializes a message to binary format using provided binary reader
96
+ * @param _instance message instance
97
+ * @param _writer binary writer instance
98
+ */
99
+ static serializeBinaryToWriter(_instance: CheckHealthResponse, _writer: BinaryWriter): void;
100
+ private _services?;
101
+ /**
102
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
103
+ * @param _value initial values object or instance of CheckHealthResponse to deeply clone from
104
+ */
105
+ constructor(_value?: RecursivePartial<CheckHealthResponse.AsObject>);
106
+ get services(): CheckHealthResponse.ServiceHealth[] | undefined;
107
+ set services(value: CheckHealthResponse.ServiceHealth[] | undefined);
108
+ /**
109
+ * Serialize message to binary data
110
+ * @param instance message instance
111
+ */
112
+ serializeBinary(): Uint8Array;
113
+ /**
114
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
115
+ */
116
+ toObject(): CheckHealthResponse.AsObject;
117
+ /**
118
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
119
+ */
120
+ toJSON(): CheckHealthResponse.AsObject;
121
+ /**
122
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
123
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
124
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
125
+ */
126
+ toProtobufJSON(options?: ToProtobufJSONOptions): CheckHealthResponse.AsProtobufJSON;
127
+ }
128
+ export declare module CheckHealthResponse {
129
+ /**
130
+ * Standard JavaScript object representation for CheckHealthResponse
131
+ */
132
+ interface AsObject {
133
+ services?: CheckHealthResponse.ServiceHealth.AsObject[];
134
+ }
135
+ /**
136
+ * Protobuf JSON representation for CheckHealthResponse
137
+ */
138
+ interface AsProtobufJSON {
139
+ services: CheckHealthResponse.ServiceHealth.AsProtobufJSON[] | null;
140
+ }
141
+ /**
142
+ * Message implementation for armonik.api.grpc.v1.health_checks.CheckHealthResponse.ServiceHealth
143
+ */
144
+ class ServiceHealth implements GrpcMessage {
145
+ static id: string;
146
+ /**
147
+ * Deserialize binary data to message
148
+ * @param instance message instance
149
+ */
150
+ static deserializeBinary(bytes: ByteSource): ServiceHealth;
151
+ /**
152
+ * Check all the properties and set default protobuf values if necessary
153
+ * @param _instance message instance
154
+ */
155
+ static refineValues(_instance: ServiceHealth): void;
156
+ /**
157
+ * Deserializes / reads binary message into message instance using provided binary reader
158
+ * @param _instance message instance
159
+ * @param _reader binary reader instance
160
+ */
161
+ static deserializeBinaryFromReader(_instance: ServiceHealth, _reader: BinaryReader): void;
162
+ /**
163
+ * Serializes a message to binary format using provided binary reader
164
+ * @param _instance message instance
165
+ * @param _writer binary writer instance
166
+ */
167
+ static serializeBinaryToWriter(_instance: ServiceHealth, _writer: BinaryWriter): void;
168
+ private _name;
169
+ private _message;
170
+ private _healthy;
171
+ /**
172
+ * Message constructor. Initializes the properties and applies default Protobuf values if necessary
173
+ * @param _value initial values object or instance of ServiceHealth to deeply clone from
174
+ */
175
+ constructor(_value?: RecursivePartial<ServiceHealth.AsObject>);
176
+ get name(): string;
177
+ set name(value: string);
178
+ get message(): string;
179
+ set message(value: string);
180
+ get healthy(): HealthStatusEnum;
181
+ set healthy(value: HealthStatusEnum);
182
+ /**
183
+ * Serialize message to binary data
184
+ * @param instance message instance
185
+ */
186
+ serializeBinary(): Uint8Array;
187
+ /**
188
+ * Cast message to standard JavaScript object (all non-primitive values are deeply cloned)
189
+ */
190
+ toObject(): ServiceHealth.AsObject;
191
+ /**
192
+ * Convenience method to support JSON.stringify(message), replicates the structure of toObject()
193
+ */
194
+ toJSON(): ServiceHealth.AsObject;
195
+ /**
196
+ * Cast message to JSON using protobuf JSON notation: https://developers.google.com/protocol-buffers/docs/proto3#json
197
+ * Attention: output differs from toObject() e.g. enums are represented as names and not as numbers, Timestamp is an ISO Date string format etc.
198
+ * If the message itself or some of descendant messages is google.protobuf.Any, you MUST provide a message pool as options. If not, the messagePool is not required
199
+ */
200
+ toProtobufJSON(options?: ToProtobufJSONOptions): ServiceHealth.AsProtobufJSON;
201
+ }
202
+ module ServiceHealth {
203
+ /**
204
+ * Standard JavaScript object representation for ServiceHealth
205
+ */
206
+ interface AsObject {
207
+ name: string;
208
+ message: string;
209
+ healthy: HealthStatusEnum;
210
+ }
211
+ /**
212
+ * Protobuf JSON representation for ServiceHealth
213
+ */
214
+ interface AsProtobufJSON {
215
+ name: string;
216
+ message: string;
217
+ healthy: string;
218
+ }
219
+ }
220
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ /**
3
+ * Specific GrpcClientSettings for HealthChecksService.
4
+ * Use it only if your default settings are not set or the service requires other settings.
5
+ */
6
+ export declare const GRPC_HEALTH_CHECKS_SERVICE_CLIENT_SETTINGS: InjectionToken<any>;
@@ -0,0 +1,38 @@
1
+ import { GrpcClientFactory, GrpcEvent, GrpcMetadata } from '@ngx-grpc/common';
2
+ import { GrpcHandler } from '@ngx-grpc/core';
3
+ import { Observable } from 'rxjs';
4
+ import * as armonikApiGrpcV1Health_checks000 from './health-checks-common.pb';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Service client implementation for armonik.api.grpc.v1.health_checks.HealthChecksService
8
+ */
9
+ export declare class HealthChecksServiceClient {
10
+ private handler;
11
+ private client;
12
+ /**
13
+ * Raw RPC implementation for each service client method.
14
+ * The raw methods provide more control on the incoming data and events. E.g. they can be useful to read status `OK` metadata.
15
+ * Attention: these methods do not throw errors when non-zero status codes are received.
16
+ */
17
+ $raw: {
18
+ /**
19
+ * Unary call: /armonik.api.grpc.v1.health_checks.HealthChecksService/CheckHealth
20
+ *
21
+ * @param requestMessage Request message
22
+ * @param requestMetadata Request metadata
23
+ * @returns Observable<GrpcEvent<armonikApiGrpcV1Health_checks000.CheckHealthResponse>>
24
+ */
25
+ checkHealth: (requestData: armonikApiGrpcV1Health_checks000.CheckHealthRequest, requestMetadata?: GrpcMetadata) => Observable<GrpcEvent<armonikApiGrpcV1Health_checks000.CheckHealthResponse>>;
26
+ };
27
+ constructor(settings: any, clientFactory: GrpcClientFactory<any>, handler: GrpcHandler);
28
+ /**
29
+ * Unary call @/armonik.api.grpc.v1.health_checks.HealthChecksService/CheckHealth
30
+ *
31
+ * @param requestMessage Request message
32
+ * @param requestMetadata Request metadata
33
+ * @returns Observable<armonikApiGrpcV1Health_checks000.CheckHealthResponse>
34
+ */
35
+ checkHealth(requestData: armonikApiGrpcV1Health_checks000.CheckHealthRequest, requestMetadata?: GrpcMetadata): Observable<armonikApiGrpcV1Health_checks000.CheckHealthResponse>;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<HealthChecksServiceClient, [{ optional: true; }, null, null]>;
37
+ static ɵprov: i0.ɵɵInjectableDeclaration<HealthChecksServiceClient>;
38
+ }
package/lib/index.d.ts CHANGED
@@ -30,3 +30,5 @@ export { FilterField as TaskFilterField, Filters as TaskFilters, FiltersAnd as T
30
30
  export { TasksClient } from './generated/tasks-service.pbsc';
31
31
  export { ListVersionsRequest, ListVersionsResponse } from './generated/versions-common.pb';
32
32
  export { VersionsClient } from './generated/versions-service.pbsc';
33
+ export { CheckHealthRequest, CheckHealthResponse, HealthStatusEnum, } from './generated/health-checks-common.pb';
34
+ export { HealthChecksServiceClient } from './generated/health-checks-service.pbsc';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aneoconsultingfr/armonik.api.angular",
3
- "version": "3.15.0",
3
+ "version": "3.15.1-edge.5.ee0ff9e",
4
4
  "description": "gRPC API to interact with ArmoniK built for Angular",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/aneoconsulting/ArmoniK.Api#readme",