@thiscargo/contracts 0.0.23 → 0.0.24

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/gen/company.ts CHANGED
@@ -10,6 +10,7 @@ import { Observable } from "rxjs";
10
10
  import { AccountResponse } from "./account";
11
11
  import { Empty } from "./google/protobuf/empty";
12
12
  import { Timestamp } from "./google/protobuf/timestamp";
13
+ import { TariffResponse } from "./tariff";
13
14
 
14
15
  export const protobufPackage = "company.v1";
15
16
 
@@ -26,6 +27,7 @@ export interface CreateCompanyRequest {
26
27
  botToken: string;
27
28
  adminPhone: string;
28
29
  adminPassword: string;
30
+ tariff?: TariffResponse | undefined;
29
31
  }
30
32
 
31
33
  export interface GetCompanyRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thiscargo/contracts",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -5,6 +5,7 @@ package company.v1;
5
5
  import "google/protobuf/timestamp.proto";
6
6
  import "google/protobuf/empty.proto";
7
7
  import "account.proto";
8
+ import "tariff.proto";
8
9
 
9
10
  service CompanyService {
10
11
  rpc GetAllCompany(google.protobuf.Empty) returns (CompanyListResponse);
@@ -28,6 +29,7 @@ message CreateCompanyRequest {
28
29
  string bot_token = 6;
29
30
  string admin_phone = 7;
30
31
  string admin_password = 8;
32
+ optional tariff.v1.TariffResponse tariff = 9;
31
33
  }
32
34
 
33
35
  message GetCompanyRequest {
@@ -70,4 +72,4 @@ message CompanyResponse {
70
72
  int32 accounts = 1;
71
73
  }
72
74
  optional CompanyCount _count = 12;
73
- }
75
+ }