@prodoctors/contracts 1.1.0 → 1.1.1
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 +17 -0
- package/gen/partner.ts +23 -0
- package/package.json +1 -1
- package/proto/branch.proto +17 -0
- package/proto/partner.proto +23 -0
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/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
package/proto/branch.proto
CHANGED
|
@@ -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 {
|
package/proto/partner.proto
CHANGED
|
@@ -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 {
|