@thiscargo/contracts 0.0.21 → 0.0.23

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
@@ -19,11 +19,11 @@ export interface RestoreCompanyRequest {
19
19
 
20
20
  export interface CreateCompanyRequest {
21
21
  serverId: string;
22
+ tariffId?: string | undefined;
22
23
  name: string;
23
24
  phone: string;
24
25
  address: string;
25
26
  botToken: string;
26
- slug: string;
27
27
  adminPhone: string;
28
28
  adminPassword: string;
29
29
  }
@@ -38,6 +38,7 @@ export interface UpdateCompanyRequest {
38
38
  phone?: string | undefined;
39
39
  address?: string | undefined;
40
40
  botToken?: string | undefined;
41
+ tariffId?: string | undefined;
41
42
  isActive?: boolean | undefined;
42
43
  }
43
44
 
@@ -52,6 +53,7 @@ export interface CompanyListResponse {
52
53
  export interface CompanyResponse {
53
54
  id: string;
54
55
  serverId: string;
56
+ tariffId?: string | undefined;
55
57
  name: string;
56
58
  slug: string;
57
59
  phone: string;
package/gen/tariff.ts CHANGED
@@ -41,11 +41,18 @@ export interface TariffListResponse {
41
41
 
42
42
  export interface TariffResponse {
43
43
  id: string;
44
- companyId: string;
45
44
  name: string;
46
45
  type: string;
47
46
  price: number;
48
47
  isActive: boolean;
48
+ isPublic: boolean;
49
+ maxOrders?: number | undefined;
50
+ maxEmployees?: number | undefined;
51
+ maxWarehouses?: number | undefined;
52
+ analyticsLevel?: string | undefined;
53
+ hasExcel: boolean;
54
+ hasSms: boolean;
55
+ maxIntegrations?: number | undefined;
49
56
  createdAt: Timestamp | undefined;
50
57
  updatedAt: Timestamp | undefined;
51
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thiscargo/contracts",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Protobuf definitions and generated TypeScript types",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -21,11 +21,11 @@ message RestoreCompanyRequest {
21
21
 
22
22
  message CreateCompanyRequest {
23
23
  string server_id = 1;
24
- string name = 2;
25
- string phone = 3;
26
- string address = 4;
27
- string bot_token = 5;
28
- string slug = 6;
24
+ optional string tariff_id = 2;
25
+ string name = 3;
26
+ string phone = 4;
27
+ string address = 5;
28
+ string bot_token = 6;
29
29
  string admin_phone = 7;
30
30
  string admin_password = 8;
31
31
  }
@@ -36,10 +36,11 @@ message GetCompanyRequest {
36
36
 
37
37
  message UpdateCompanyRequest {
38
38
  string id = 1;
39
- optional string name = 3;
40
- optional string phone = 4;
41
- optional string address = 5;
42
- optional string bot_token = 6;
39
+ optional string name = 2;
40
+ optional string phone = 3;
41
+ optional string address = 4;
42
+ optional string bot_token = 5;
43
+ optional string tariff_id = 6;
43
44
  optional bool is_active = 7;
44
45
  }
45
46
 
@@ -54,18 +55,19 @@ message CompanyListResponse {
54
55
  message CompanyResponse {
55
56
  string id = 1;
56
57
  string server_id = 2;
57
- string name = 3;
58
- string slug = 4;
59
- string phone = 5;
60
- string address = 6;
61
- string bot_token = 7;
62
- google.protobuf.Timestamp created_at = 8;
63
- google.protobuf.Timestamp updated_at = 9;
58
+ optional string tariff_id = 3;
59
+ string name = 4;
60
+ string slug = 5;
61
+ string phone = 6;
62
+ string address = 7;
63
+ string bot_token = 8;
64
+ google.protobuf.Timestamp created_at = 9;
65
+ google.protobuf.Timestamp updated_at = 10;
64
66
 
65
- repeated account.v1.AccountResponse accounts = 10;
67
+ repeated account.v1.AccountResponse accounts = 11;
66
68
 
67
69
  message CompanyCount {
68
70
  int32 accounts = 1;
69
71
  }
70
- optional CompanyCount _count = 11;
71
- }
72
+ optional CompanyCount _count = 12;
73
+ }
@@ -41,11 +41,18 @@ message TariffListResponse {
41
41
 
42
42
  message TariffResponse {
43
43
  string id = 1;
44
- string company_id = 2;
45
- string name = 3;
46
- string type = 4;
47
- double price = 5;
48
- bool is_active = 6;
49
- google.protobuf.Timestamp created_at = 7;
50
- google.protobuf.Timestamp updated_at = 8;
44
+ string name = 2;
45
+ string type = 3;
46
+ double price = 4;
47
+ bool is_active = 5;
48
+ bool is_public = 6;
49
+ optional int32 max_orders = 7;
50
+ optional int32 max_employees = 8;
51
+ optional int32 max_warehouses = 9;
52
+ optional string analytics_level = 10;
53
+ bool has_excel = 11;
54
+ bool has_sms = 12;
55
+ optional int32 max_integrations = 13;
56
+ google.protobuf.Timestamp created_at = 14;
57
+ google.protobuf.Timestamp updated_at = 15;
51
58
  }