@miteradar/contracts 1.7.2 → 1.9.0

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/gen/auth.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.20.0
5
5
  // protoc v3.21.12
6
6
  // source: auth.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -37,6 +37,16 @@ export declare enum MiteGenders {
37
37
  LARVA = 4,
38
38
  UNRECOGNIZED = -1
39
39
  }
40
+ export interface SelectionIdsResponse {
41
+ ids: string[];
42
+ }
43
+ export interface ExportBitesRequest {
44
+ ids: string[];
45
+ format: string;
46
+ }
47
+ export interface ExportBitesChunk {
48
+ data: Uint8Array;
49
+ }
40
50
  export interface ImportBitesRequest {
41
51
  file: Uint8Array;
42
52
  }
@@ -173,6 +183,7 @@ export interface BiteGeoData {
173
183
  }
174
184
  export interface GetPlaceSummaryRequest {
175
185
  placeId: string;
186
+ filters?: ListBitesRequest | undefined;
176
187
  }
177
188
  export interface GetPlaceSummaryResponse {
178
189
  placeId: string;
@@ -188,6 +199,7 @@ export interface ListPlaceBitesRequest {
188
199
  placeId: string;
189
200
  page?: number | undefined;
190
201
  pageSize?: number | undefined;
202
+ filters?: ListBitesRequest | undefined;
191
203
  }
192
204
  export interface ListReferencesRequest {
193
205
  search?: string | undefined;
@@ -268,8 +280,49 @@ export interface Bite {
268
280
  createdAt: Timestamp | undefined;
269
281
  updatedAt: Timestamp | undefined;
270
282
  }
283
+ export interface ListInsuranceCompaniesRequest {
284
+ }
285
+ export interface ListInsuranceCompaniesResponse {
286
+ items: InsuranceCompany[];
287
+ }
288
+ export interface GetInsuranceCompanyRequest {
289
+ id: string;
290
+ }
291
+ export interface DeleteInsuranceCompanyRequest {
292
+ id: string;
293
+ }
294
+ export interface DeleteInsuranceCompanyResponse {
295
+ success: boolean;
296
+ }
297
+ export interface InsuranceCompany {
298
+ id: string;
299
+ name: string;
300
+ href?: string | undefined;
301
+ note?: string | undefined;
302
+ sortOrder: number;
303
+ }
304
+ export interface CreateInsuranceCompanyRequest {
305
+ name: string;
306
+ href?: string | undefined;
307
+ note?: string | undefined;
308
+ sortOrder?: number | undefined;
309
+ }
310
+ export interface UpdateInsuranceCompanyRequest {
311
+ id: string;
312
+ name?: string | undefined;
313
+ href?: string | undefined;
314
+ note?: string | undefined;
315
+ sortOrder?: number | undefined;
316
+ }
271
317
  export declare const BITES_V1_PACKAGE_NAME = "bites.v1";
272
318
  export interface BiteServiceClient {
319
+ listInsuranceCompanies(request: ListInsuranceCompaniesRequest): Observable<ListInsuranceCompaniesResponse>;
320
+ getInsuranceCompany(request: GetInsuranceCompanyRequest): Observable<InsuranceCompany>;
321
+ createInsuranceCompany(request: CreateInsuranceCompanyRequest): Observable<InsuranceCompany>;
322
+ updateInsuranceCompany(request: UpdateInsuranceCompanyRequest): Observable<InsuranceCompany>;
323
+ deleteInsuranceCompany(request: DeleteInsuranceCompanyRequest): Observable<DeleteInsuranceCompanyResponse>;
324
+ listSelectionIds(request: ListBitesRequest): Observable<SelectionIdsResponse>;
325
+ exportBites(request: ExportBitesRequest): Observable<ExportBitesChunk>;
273
326
  importBites(request: ImportBitesRequest): Observable<ImportBitesResponse>;
274
327
  createBite(request: CreateBiteRequest): Observable<BiteResponse>;
275
328
  getBite(request: GetBiteRequest): Observable<BiteResponse>;
@@ -289,6 +342,13 @@ export interface BiteServiceClient {
289
342
  deleteReference(request: DeleteReferenceRequest): Observable<DeleteReferenceResponse>;
290
343
  }
291
344
  export interface BiteServiceController {
345
+ listInsuranceCompanies(request: ListInsuranceCompaniesRequest): Promise<ListInsuranceCompaniesResponse> | Observable<ListInsuranceCompaniesResponse> | ListInsuranceCompaniesResponse;
346
+ getInsuranceCompany(request: GetInsuranceCompanyRequest): Promise<InsuranceCompany> | Observable<InsuranceCompany> | InsuranceCompany;
347
+ createInsuranceCompany(request: CreateInsuranceCompanyRequest): Promise<InsuranceCompany> | Observable<InsuranceCompany> | InsuranceCompany;
348
+ updateInsuranceCompany(request: UpdateInsuranceCompanyRequest): Promise<InsuranceCompany> | Observable<InsuranceCompany> | InsuranceCompany;
349
+ deleteInsuranceCompany(request: DeleteInsuranceCompanyRequest): Promise<DeleteInsuranceCompanyResponse> | Observable<DeleteInsuranceCompanyResponse> | DeleteInsuranceCompanyResponse;
350
+ listSelectionIds(request: ListBitesRequest): Promise<SelectionIdsResponse> | Observable<SelectionIdsResponse> | SelectionIdsResponse;
351
+ exportBites(request: ExportBitesRequest): Observable<ExportBitesChunk>;
292
352
  importBites(request: ImportBitesRequest): Promise<ImportBitesResponse> | Observable<ImportBitesResponse> | ImportBitesResponse;
293
353
  createBite(request: CreateBiteRequest): Promise<BiteResponse> | Observable<BiteResponse> | BiteResponse;
294
354
  getBite(request: GetBiteRequest): Promise<BiteResponse> | Observable<BiteResponse> | BiteResponse;
package/dist/gen/bite.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.20.0
5
5
  // protoc v3.21.12
6
6
  // source: bite.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -55,6 +55,13 @@ exports.BITES_V1_PACKAGE_NAME = "bites.v1";
55
55
  function BiteServiceControllerMethods() {
56
56
  return function (constructor) {
57
57
  const grpcMethods = [
58
+ "listInsuranceCompanies",
59
+ "getInsuranceCompany",
60
+ "createInsuranceCompany",
61
+ "updateInsuranceCompany",
62
+ "deleteInsuranceCompany",
63
+ "listSelectionIds",
64
+ "exportBites",
58
65
  "importBites",
59
66
  "createBite",
60
67
  "getBite",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.18.3
4
+ // protoc-gen-ts_proto v2.20.0
5
5
  // protoc v3.21.12
6
6
  // source: google/protobuf/timestamp.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,7 +4,18 @@ package bites.v1;
4
4
 
5
5
  import "google/protobuf/timestamp.proto";
6
6
 
7
+ message SelectionIdsResponse { repeated string ids = 1; }
8
+ message ExportBitesRequest { repeated string ids = 1; string format = 2; }
9
+ message ExportBitesChunk { bytes data = 1; }
10
+
7
11
  service BiteService {
12
+ rpc ListInsuranceCompanies(ListInsuranceCompaniesRequest) returns (ListInsuranceCompaniesResponse);
13
+ rpc GetInsuranceCompany(GetInsuranceCompanyRequest) returns (InsuranceCompany);
14
+ rpc CreateInsuranceCompany(CreateInsuranceCompanyRequest) returns (InsuranceCompany);
15
+ rpc UpdateInsuranceCompany(UpdateInsuranceCompanyRequest) returns (InsuranceCompany);
16
+ rpc DeleteInsuranceCompany(DeleteInsuranceCompanyRequest) returns (DeleteInsuranceCompanyResponse);
17
+ rpc ListSelectionIds(ListBitesRequest) returns (SelectionIdsResponse);
18
+ rpc ExportBites(ExportBitesRequest) returns (stream ExportBitesChunk);
8
19
  rpc ImportBites(ImportBitesRequest) returns (ImportBitesResponse);
9
20
  rpc CreateBite(CreateBiteRequest) returns (BiteResponse);
10
21
  rpc GetBite(GetBiteRequest) returns (BiteResponse);
@@ -185,6 +196,7 @@ message BiteGeoData {
185
196
 
186
197
  message GetPlaceSummaryRequest {
187
198
  string place_id = 1;
199
+ optional ListBitesRequest filters = 2;
188
200
  }
189
201
 
190
202
  message GetPlaceSummaryResponse {
@@ -202,6 +214,7 @@ message ListPlaceBitesRequest {
202
214
  string place_id = 1;
203
215
  optional int32 page = 2;
204
216
  optional int32 page_size = 3;
217
+ optional ListBitesRequest filters = 4;
205
218
  }
206
219
 
207
220
  enum Infections {
@@ -337,3 +350,29 @@ enum MiteGenders {
337
350
  NYMPH = 3;
338
351
  LARVA = 4;
339
352
  }
353
+
354
+ message ListInsuranceCompaniesRequest {}
355
+ message ListInsuranceCompaniesResponse { repeated InsuranceCompany items = 1; }
356
+ message GetInsuranceCompanyRequest { string id = 1; }
357
+ message DeleteInsuranceCompanyRequest { string id = 1; }
358
+ message DeleteInsuranceCompanyResponse { bool success = 1; }
359
+ message InsuranceCompany {
360
+ string id = 1;
361
+ string name = 2;
362
+ optional string href = 3;
363
+ optional string note = 4;
364
+ int32 sort_order = 5;
365
+ }
366
+ message CreateInsuranceCompanyRequest {
367
+ string name = 1;
368
+ optional string href = 2;
369
+ optional string note = 3;
370
+ optional int32 sort_order = 4;
371
+ }
372
+ message UpdateInsuranceCompanyRequest {
373
+ string id = 1;
374
+ optional string name = 2;
375
+ optional string href = 3;
376
+ optional string note = 4;
377
+ optional int32 sort_order = 5;
378
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miteradar/contracts",
3
- "version": "1.7.2",
3
+ "version": "1.9.0",
4
4
  "description": "Protobuf definitions and generated ts types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",