@prodoctors/contracts 1.1.0 → 1.1.2

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/branch.ts CHANGED
@@ -12,6 +12,17 @@ import { Timestamp } from "./google/protobuf/timestamp";
12
12
 
13
13
  export const protobufPackage = "branch.v1";
14
14
 
15
+ export interface BranchBankDetails {
16
+ legalName?: string | undefined;
17
+ legalAddress?: string | undefined;
18
+ accountNumber?: string | undefined;
19
+ bankName?: string | undefined;
20
+ bankBranch?: string | undefined;
21
+ mfo?: string | undefined;
22
+ inn?: string | undefined;
23
+ okonx?: string | undefined;
24
+ }
25
+
15
26
  export interface Branch {
16
27
  id: string;
17
28
  name: string;
@@ -25,6 +36,8 @@ export interface Branch {
25
36
  parentBranchId?: string | undefined;
26
37
  createdAt: Timestamp | undefined;
27
38
  updatedAt: Timestamp | undefined;
39
+ regionId?: string | undefined;
40
+ bankDetails?: BranchBankDetails | undefined;
28
41
  }
29
42
 
30
43
  export interface CreateBranchRequest {
@@ -37,6 +50,8 @@ export interface CreateBranchRequest {
37
50
  lat?: string | undefined;
38
51
  lng?: string | undefined;
39
52
  parentBranchId?: string | undefined;
53
+ regionId?: string | undefined;
54
+ bankDetails?: BranchBankDetails | undefined;
40
55
  }
41
56
 
42
57
  export interface UpdateBranchRequest {
@@ -50,6 +65,8 @@ export interface UpdateBranchRequest {
50
65
  lat?: string | undefined;
51
66
  lng?: string | undefined;
52
67
  parentBranchId?: string | undefined;
68
+ regionId?: string | undefined;
69
+ bankDetails?: BranchBankDetails | undefined;
53
70
  }
54
71
 
55
72
  export interface ListBranchesRequest {
package/gen/inventory.ts CHANGED
@@ -101,6 +101,8 @@ export interface Product {
101
101
  packageUnit: UnitType;
102
102
  unitsPerPackage: number;
103
103
  allowFractionalSale: boolean;
104
+ taxMxikCode?: string | undefined;
105
+ taxPackageCode?: string | undefined;
104
106
  }
105
107
 
106
108
  export interface ProductBarcode {
@@ -172,6 +174,8 @@ export interface CreateProductRequest {
172
174
  packageUnit?: UnitType | undefined;
173
175
  unitsPerPackage?: number | undefined;
174
176
  allowFractionalSale?: boolean | undefined;
177
+ taxMxikCode?: string | undefined;
178
+ taxPackageCode?: string | undefined;
175
179
  }
176
180
 
177
181
  export interface UpdateProductRequest {
@@ -196,6 +200,8 @@ export interface UpdateProductRequest {
196
200
  packageUnit?: UnitType | undefined;
197
201
  unitsPerPackage?: number | undefined;
198
202
  allowFractionalSale?: boolean | undefined;
203
+ taxMxikCode?: string | undefined;
204
+ taxPackageCode?: string | undefined;
199
205
  }
200
206
 
201
207
  export interface ListProductsRequest {
package/gen/partner.ts CHANGED
@@ -12,6 +12,14 @@ import { Timestamp } from "./google/protobuf/timestamp";
12
12
 
13
13
  export const protobufPackage = "partner.v1";
14
14
 
15
+ export interface SupplierBankDetails {
16
+ accountNumber?: string | undefined;
17
+ bankName?: string | undefined;
18
+ bankBranch?: string | undefined;
19
+ mfo?: string | undefined;
20
+ okonx?: string | undefined;
21
+ }
22
+
15
23
  export interface Supplier {
16
24
  id: string;
17
25
  name: string;
@@ -23,6 +31,11 @@ export interface Supplier {
23
31
  note?: string | undefined;
24
32
  createdAt: Timestamp | undefined;
25
33
  updatedAt: Timestamp | undefined;
34
+ regionId?: string | undefined;
35
+ contactPerson?: string | undefined;
36
+ contractNumber?: string | undefined;
37
+ paymentTerms?: string | undefined;
38
+ bankDetails?: SupplierBankDetails | undefined;
26
39
  }
27
40
 
28
41
  export interface Customer {
@@ -43,6 +56,11 @@ export interface CreateSupplierRequest {
43
56
  taxNumber?: string | undefined;
44
57
  isActive?: boolean | undefined;
45
58
  note?: string | undefined;
59
+ regionId?: string | undefined;
60
+ contactPerson?: string | undefined;
61
+ contractNumber?: string | undefined;
62
+ paymentTerms?: string | undefined;
63
+ bankDetails?: SupplierBankDetails | undefined;
46
64
  }
47
65
 
48
66
  export interface UpdateSupplierRequest {
@@ -54,6 +72,11 @@ export interface UpdateSupplierRequest {
54
72
  taxNumber?: string | undefined;
55
73
  isActive?: boolean | undefined;
56
74
  note?: string | undefined;
75
+ regionId?: string | undefined;
76
+ contactPerson?: string | undefined;
77
+ contractNumber?: string | undefined;
78
+ paymentTerms?: string | undefined;
79
+ bankDetails?: SupplierBankDetails | undefined;
57
80
  }
58
81
 
59
82
  export interface ListSuppliersRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prodoctors/contracts",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Protobuf definitions and generated Typescript types for ProDoctors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -5,6 +5,17 @@ package branch.v1;
5
5
  import "google/protobuf/timestamp.proto";
6
6
  import "common.proto";
7
7
 
8
+ message BranchBankDetails {
9
+ optional string legal_name = 1;
10
+ optional string legal_address = 2;
11
+ optional string account_number = 3;
12
+ optional string bank_name = 4;
13
+ optional string bank_branch = 5;
14
+ optional string mfo = 6;
15
+ optional string inn = 7;
16
+ optional string okonx = 8;
17
+ }
18
+
8
19
  message Branch {
9
20
  string id = 1;
10
21
  string name = 2;
@@ -18,6 +29,8 @@ message Branch {
18
29
  optional string parent_branch_id = 10;
19
30
  google.protobuf.Timestamp created_at = 11;
20
31
  google.protobuf.Timestamp updated_at = 12;
32
+ optional string region_id = 13;
33
+ optional BranchBankDetails bank_details = 14;
21
34
  }
22
35
 
23
36
  message CreateBranchRequest {
@@ -30,6 +43,8 @@ message CreateBranchRequest {
30
43
  optional string lat = 7;
31
44
  optional string lng = 8;
32
45
  optional string parent_branch_id = 9;
46
+ optional string region_id = 10;
47
+ optional BranchBankDetails bank_details = 11;
33
48
  }
34
49
 
35
50
  message UpdateBranchRequest {
@@ -43,6 +58,8 @@ message UpdateBranchRequest {
43
58
  optional string lat = 8;
44
59
  optional string lng = 9;
45
60
  optional string parent_branch_id = 10;
61
+ optional string region_id = 11;
62
+ optional BranchBankDetails bank_details = 12;
46
63
  }
47
64
 
48
65
  message ListBranchesRequest {
@@ -86,10 +86,12 @@ message Product {
86
86
  google.protobuf.Timestamp updated_at = 22;
87
87
  optional string image_url = 23;
88
88
  UnitType base_unit = 24;
89
- UnitType package_unit = 25;
90
- int32 units_per_package = 26;
91
- bool allow_fractional_sale = 27;
92
- }
89
+ UnitType package_unit = 25;
90
+ int32 units_per_package = 26;
91
+ bool allow_fractional_sale = 27;
92
+ optional string tax_mxik_code = 28;
93
+ optional string tax_package_code = 29;
94
+ }
93
95
 
94
96
  message ProductBarcode {
95
97
  string id = 1;
@@ -157,10 +159,12 @@ message CreateProductRequest {
157
159
  optional string cost_price = 15;
158
160
  optional string image_url = 16;
159
161
  optional UnitType base_unit = 17;
160
- optional UnitType package_unit = 18;
161
- optional int32 units_per_package = 19;
162
- optional bool allow_fractional_sale = 20;
163
- }
162
+ optional UnitType package_unit = 18;
163
+ optional int32 units_per_package = 19;
164
+ optional bool allow_fractional_sale = 20;
165
+ optional string tax_mxik_code = 21;
166
+ optional string tax_package_code = 22;
167
+ }
164
168
 
165
169
  message UpdateProductRequest {
166
170
  string id = 1;
@@ -181,10 +185,12 @@ message UpdateProductRequest {
181
185
  optional string cost_price = 16;
182
186
  optional string image_url = 17;
183
187
  optional UnitType base_unit = 18;
184
- optional UnitType package_unit = 19;
185
- optional int32 units_per_package = 20;
186
- optional bool allow_fractional_sale = 21;
187
- }
188
+ optional UnitType package_unit = 19;
189
+ optional int32 units_per_package = 20;
190
+ optional bool allow_fractional_sale = 21;
191
+ optional string tax_mxik_code = 22;
192
+ optional string tax_package_code = 23;
193
+ }
188
194
 
189
195
  message ListProductsRequest {
190
196
  common.v1.PaginationRequest pagination = 1;
@@ -323,4 +329,4 @@ service StockMovementService {
323
329
  rpc CreateStockMovement(CreateStockMovementRequest) returns (StockMovement);
324
330
  rpc GetStockMovementById(common.v1.IdRequest) returns (StockMovement);
325
331
  rpc ListStockMovements(ListStockMovementsRequest) returns (ListStockMovementsResponse);
326
- }
332
+ }
@@ -5,6 +5,14 @@ package partner.v1;
5
5
  import "google/protobuf/timestamp.proto";
6
6
  import "common.proto";
7
7
 
8
+ message SupplierBankDetails {
9
+ optional string account_number = 1;
10
+ optional string bank_name = 2;
11
+ optional string bank_branch = 3;
12
+ optional string mfo = 4;
13
+ optional string okonx = 5;
14
+ }
15
+
8
16
  message Supplier {
9
17
  string id = 1;
10
18
  string name = 2;
@@ -16,6 +24,11 @@ message Supplier {
16
24
  optional string note = 8;
17
25
  google.protobuf.Timestamp created_at = 9;
18
26
  google.protobuf.Timestamp updated_at = 10;
27
+ optional string region_id = 11;
28
+ optional string contact_person = 12;
29
+ optional string contract_number = 13;
30
+ optional string payment_terms = 14;
31
+ optional SupplierBankDetails bank_details = 15;
19
32
  }
20
33
 
21
34
  message Customer {
@@ -36,6 +49,11 @@ message CreateSupplierRequest {
36
49
  optional string tax_number = 5;
37
50
  optional bool is_active = 6;
38
51
  optional string note = 7;
52
+ optional string region_id = 8;
53
+ optional string contact_person = 9;
54
+ optional string contract_number = 10;
55
+ optional string payment_terms = 11;
56
+ optional SupplierBankDetails bank_details = 12;
39
57
  }
40
58
 
41
59
  message UpdateSupplierRequest {
@@ -47,6 +65,11 @@ message UpdateSupplierRequest {
47
65
  optional string tax_number = 6;
48
66
  optional bool is_active = 7;
49
67
  optional string note = 8;
68
+ optional string region_id = 9;
69
+ optional string contact_person = 10;
70
+ optional string contract_number = 11;
71
+ optional string payment_terms = 12;
72
+ optional SupplierBankDetails bank_details = 13;
50
73
  }
51
74
 
52
75
  message ListSuppliersRequest {