@aldiokta/protocgen 1.0.69 → 1.0.71
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/package.json +1 -1
- package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +177 -0
- package/prisca/v1/account_assignment/account_assignment_pb.js +2522 -0
- package/prisca/v1/account_group/account_group_grpc_pb.js +178 -0
- package/prisca/v1/account_group/account_group_pb.js +2755 -0
- package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +177 -0
- package/prisca/v1/chart_of_account/chart_of_account_pb.js +2522 -0
- package/prisca/v1/core/material/material_grpc_pb.js +1 -0
- package/prisca/v1/core/material/material_pb.js +146 -72
- package/prisca/v1/core/material_group/material_group_grpc_pb.js +1 -0
- package/prisca/v1/core/material_group/material_group_pb.js +195 -1
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +1 -0
- package/prisca/v1/core/material_type/material_type_pb.js +195 -1
- package/prisca/v1/core/messaging/email_template_pb.js +6 -6
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +1 -0
- package/prisca/v1/core/number_range/number_range_pb.js +195 -1
- package/prisca/v1/core/report/report_pb.js +143 -83
- package/prisca/v1/core/workflow/workflow_pb.js +194 -2
- package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
- package/prisca/v1/document_type/document_type_pb.js +2746 -0
- package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
- package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3276 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +454 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +11152 -0
- package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
- package/prisca/v1/purchasing_group/purchasing_group_pb.js +2875 -0
- package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +145 -0
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2139 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +146 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2183 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
- package/prisca/v1/account_assignment/account_assignment.proto +0 -75
- package/prisca/v1/account_group/account_group.proto +0 -81
- package/prisca/v1/chart_of_account/chart_of_account.proto +0 -75
- package/prisca/v1/document_type/document_type.proto +0 -80
- package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -98
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -343
- package/prisca/v1/purchasing_group/purchasing_group.proto +0 -87
- package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -68
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -70
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
|
@@ -544,7 +544,11 @@ workflowConditionList: jspb.Message.toObjectList(msg.getWorkflowConditionList(),
|
|
|
544
544
|
proto.WorkflowCondition.toObject, includeInstance),
|
|
545
545
|
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 12, false),
|
|
546
546
|
workflowStepsList: jspb.Message.toObjectList(msg.getWorkflowStepsList(),
|
|
547
|
-
proto.WorkflowSteps.toObject, includeInstance)
|
|
547
|
+
proto.WorkflowSteps.toObject, includeInstance),
|
|
548
|
+
workflowType: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
549
|
+
companiesReferencesId: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
550
|
+
createdByEmployee: (f = msg.getCreatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f),
|
|
551
|
+
updatedByEmployee: (f = msg.getUpdatedByEmployee()) && prisca_v1_core_employee_employee_pb.Employee.toObject(includeInstance, f)
|
|
548
552
|
};
|
|
549
553
|
|
|
550
554
|
if (includeInstance) {
|
|
@@ -635,6 +639,24 @@ proto.Workflow.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
635
639
|
reader.readMessage(value,proto.WorkflowSteps.deserializeBinaryFromReader);
|
|
636
640
|
msg.addWorkflowSteps(value);
|
|
637
641
|
break;
|
|
642
|
+
case 14:
|
|
643
|
+
var value = /** @type {string} */ (reader.readString());
|
|
644
|
+
msg.setWorkflowType(value);
|
|
645
|
+
break;
|
|
646
|
+
case 15:
|
|
647
|
+
var value = /** @type {string} */ (reader.readString());
|
|
648
|
+
msg.setCompaniesReferencesId(value);
|
|
649
|
+
break;
|
|
650
|
+
case 16:
|
|
651
|
+
var value = new prisca_v1_core_employee_employee_pb.Employee;
|
|
652
|
+
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
653
|
+
msg.setCreatedByEmployee(value);
|
|
654
|
+
break;
|
|
655
|
+
case 17:
|
|
656
|
+
var value = new prisca_v1_core_employee_employee_pb.Employee;
|
|
657
|
+
reader.readMessage(value,prisca_v1_core_employee_employee_pb.Employee.deserializeBinaryFromReader);
|
|
658
|
+
msg.setUpdatedByEmployee(value);
|
|
659
|
+
break;
|
|
638
660
|
default:
|
|
639
661
|
reader.skipField();
|
|
640
662
|
break;
|
|
@@ -757,6 +779,36 @@ proto.Workflow.serializeBinaryToWriter = function(message, writer) {
|
|
|
757
779
|
proto.WorkflowSteps.serializeBinaryToWriter
|
|
758
780
|
);
|
|
759
781
|
}
|
|
782
|
+
f = message.getWorkflowType();
|
|
783
|
+
if (f.length > 0) {
|
|
784
|
+
writer.writeString(
|
|
785
|
+
14,
|
|
786
|
+
f
|
|
787
|
+
);
|
|
788
|
+
}
|
|
789
|
+
f = message.getCompaniesReferencesId();
|
|
790
|
+
if (f.length > 0) {
|
|
791
|
+
writer.writeString(
|
|
792
|
+
15,
|
|
793
|
+
f
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
f = message.getCreatedByEmployee();
|
|
797
|
+
if (f != null) {
|
|
798
|
+
writer.writeMessage(
|
|
799
|
+
16,
|
|
800
|
+
f,
|
|
801
|
+
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
802
|
+
);
|
|
803
|
+
}
|
|
804
|
+
f = message.getUpdatedByEmployee();
|
|
805
|
+
if (f != null) {
|
|
806
|
+
writer.writeMessage(
|
|
807
|
+
17,
|
|
808
|
+
f,
|
|
809
|
+
prisca_v1_core_employee_employee_pb.Employee.serializeBinaryToWriter
|
|
810
|
+
);
|
|
811
|
+
}
|
|
760
812
|
};
|
|
761
813
|
|
|
762
814
|
|
|
@@ -1034,6 +1086,116 @@ proto.Workflow.prototype.clearWorkflowStepsList = function() {
|
|
|
1034
1086
|
};
|
|
1035
1087
|
|
|
1036
1088
|
|
|
1089
|
+
/**
|
|
1090
|
+
* optional string workflow_type = 14;
|
|
1091
|
+
* @return {string}
|
|
1092
|
+
*/
|
|
1093
|
+
proto.Workflow.prototype.getWorkflowType = function() {
|
|
1094
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* @param {string} value
|
|
1100
|
+
* @return {!proto.Workflow} returns this
|
|
1101
|
+
*/
|
|
1102
|
+
proto.Workflow.prototype.setWorkflowType = function(value) {
|
|
1103
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
/**
|
|
1108
|
+
* optional string companies_references_id = 15;
|
|
1109
|
+
* @return {string}
|
|
1110
|
+
*/
|
|
1111
|
+
proto.Workflow.prototype.getCompaniesReferencesId = function() {
|
|
1112
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
1113
|
+
};
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* @param {string} value
|
|
1118
|
+
* @return {!proto.Workflow} returns this
|
|
1119
|
+
*/
|
|
1120
|
+
proto.Workflow.prototype.setCompaniesReferencesId = function(value) {
|
|
1121
|
+
return jspb.Message.setProto3StringField(this, 15, value);
|
|
1122
|
+
};
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* optional Employee created_by_employee = 16;
|
|
1127
|
+
* @return {?proto.Employee}
|
|
1128
|
+
*/
|
|
1129
|
+
proto.Workflow.prototype.getCreatedByEmployee = function() {
|
|
1130
|
+
return /** @type{?proto.Employee} */ (
|
|
1131
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 16));
|
|
1132
|
+
};
|
|
1133
|
+
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* @param {?proto.Employee|undefined} value
|
|
1137
|
+
* @return {!proto.Workflow} returns this
|
|
1138
|
+
*/
|
|
1139
|
+
proto.Workflow.prototype.setCreatedByEmployee = function(value) {
|
|
1140
|
+
return jspb.Message.setWrapperField(this, 16, value);
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* Clears the message field making it undefined.
|
|
1146
|
+
* @return {!proto.Workflow} returns this
|
|
1147
|
+
*/
|
|
1148
|
+
proto.Workflow.prototype.clearCreatedByEmployee = function() {
|
|
1149
|
+
return this.setCreatedByEmployee(undefined);
|
|
1150
|
+
};
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Returns whether this field is set.
|
|
1155
|
+
* @return {boolean}
|
|
1156
|
+
*/
|
|
1157
|
+
proto.Workflow.prototype.hasCreatedByEmployee = function() {
|
|
1158
|
+
return jspb.Message.getField(this, 16) != null;
|
|
1159
|
+
};
|
|
1160
|
+
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* optional Employee updated_by_employee = 17;
|
|
1164
|
+
* @return {?proto.Employee}
|
|
1165
|
+
*/
|
|
1166
|
+
proto.Workflow.prototype.getUpdatedByEmployee = function() {
|
|
1167
|
+
return /** @type{?proto.Employee} */ (
|
|
1168
|
+
jspb.Message.getWrapperField(this, prisca_v1_core_employee_employee_pb.Employee, 17));
|
|
1169
|
+
};
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
/**
|
|
1173
|
+
* @param {?proto.Employee|undefined} value
|
|
1174
|
+
* @return {!proto.Workflow} returns this
|
|
1175
|
+
*/
|
|
1176
|
+
proto.Workflow.prototype.setUpdatedByEmployee = function(value) {
|
|
1177
|
+
return jspb.Message.setWrapperField(this, 17, value);
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
|
|
1181
|
+
/**
|
|
1182
|
+
* Clears the message field making it undefined.
|
|
1183
|
+
* @return {!proto.Workflow} returns this
|
|
1184
|
+
*/
|
|
1185
|
+
proto.Workflow.prototype.clearUpdatedByEmployee = function() {
|
|
1186
|
+
return this.setUpdatedByEmployee(undefined);
|
|
1187
|
+
};
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* Returns whether this field is set.
|
|
1192
|
+
* @return {boolean}
|
|
1193
|
+
*/
|
|
1194
|
+
proto.Workflow.prototype.hasUpdatedByEmployee = function() {
|
|
1195
|
+
return jspb.Message.getField(this, 17) != null;
|
|
1196
|
+
};
|
|
1197
|
+
|
|
1198
|
+
|
|
1037
1199
|
|
|
1038
1200
|
/**
|
|
1039
1201
|
* List of repeated fields within this message type.
|
|
@@ -3272,7 +3434,8 @@ workflowConditionList: jspb.Message.toObjectList(msg.getWorkflowConditionList(),
|
|
|
3272
3434
|
proto.BaseWorkflowConditionRequest.toObject, includeInstance),
|
|
3273
3435
|
workflowStepsList: jspb.Message.toObjectList(msg.getWorkflowStepsList(),
|
|
3274
3436
|
proto.BaseWorkflowStepsRequest.toObject, includeInstance),
|
|
3275
|
-
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 9, false)
|
|
3437
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 9, false),
|
|
3438
|
+
workflowType: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
3276
3439
|
};
|
|
3277
3440
|
|
|
3278
3441
|
if (includeInstance) {
|
|
@@ -3347,6 +3510,10 @@ proto.BaseWorkflowRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3347
3510
|
var value = /** @type {boolean} */ (reader.readBool());
|
|
3348
3511
|
msg.setIsActive(value);
|
|
3349
3512
|
break;
|
|
3513
|
+
case 10:
|
|
3514
|
+
var value = /** @type {string} */ (reader.readString());
|
|
3515
|
+
msg.setWorkflowType(value);
|
|
3516
|
+
break;
|
|
3350
3517
|
default:
|
|
3351
3518
|
reader.skipField();
|
|
3352
3519
|
break;
|
|
@@ -3441,6 +3608,13 @@ proto.BaseWorkflowRequest.serializeBinaryToWriter = function(message, writer) {
|
|
|
3441
3608
|
f
|
|
3442
3609
|
);
|
|
3443
3610
|
}
|
|
3611
|
+
f = message.getWorkflowType();
|
|
3612
|
+
if (f.length > 0) {
|
|
3613
|
+
writer.writeString(
|
|
3614
|
+
10,
|
|
3615
|
+
f
|
|
3616
|
+
);
|
|
3617
|
+
}
|
|
3444
3618
|
};
|
|
3445
3619
|
|
|
3446
3620
|
|
|
@@ -3646,6 +3820,24 @@ proto.BaseWorkflowRequest.prototype.setIsActive = function(value) {
|
|
|
3646
3820
|
};
|
|
3647
3821
|
|
|
3648
3822
|
|
|
3823
|
+
/**
|
|
3824
|
+
* optional string workflow_type = 10;
|
|
3825
|
+
* @return {string}
|
|
3826
|
+
*/
|
|
3827
|
+
proto.BaseWorkflowRequest.prototype.getWorkflowType = function() {
|
|
3828
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
3829
|
+
};
|
|
3830
|
+
|
|
3831
|
+
|
|
3832
|
+
/**
|
|
3833
|
+
* @param {string} value
|
|
3834
|
+
* @return {!proto.BaseWorkflowRequest} returns this
|
|
3835
|
+
*/
|
|
3836
|
+
proto.BaseWorkflowRequest.prototype.setWorkflowType = function(value) {
|
|
3837
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
3838
|
+
};
|
|
3839
|
+
|
|
3840
|
+
|
|
3649
3841
|
|
|
3650
3842
|
/**
|
|
3651
3843
|
* List of repeated fields within this message type.
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var prisca_v1_document_type_document_type_pb = require('../../../prisca/v1/document_type/document_type_pb.js');
|
|
6
|
+
var prisca_v1_global_meta_meta_pb = require('../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
var prisca_v1_core_number_range_number_range_pb = require('../../../prisca/v1/core/number_range/number_range_pb.js');
|
|
8
|
+
|
|
9
|
+
function serialize_CreateDocumentTypeRequest(arg) {
|
|
10
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.CreateDocumentTypeRequest)) {
|
|
11
|
+
throw new Error('Expected argument of type CreateDocumentTypeRequest');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_CreateDocumentTypeRequest(buffer_arg) {
|
|
17
|
+
return prisca_v1_document_type_document_type_pb.CreateDocumentTypeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function serialize_CreateDocumentTypeResponse(arg) {
|
|
21
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.CreateDocumentTypeResponse)) {
|
|
22
|
+
throw new Error('Expected argument of type CreateDocumentTypeResponse');
|
|
23
|
+
}
|
|
24
|
+
return Buffer.from(arg.serializeBinary());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function deserialize_CreateDocumentTypeResponse(buffer_arg) {
|
|
28
|
+
return prisca_v1_document_type_document_type_pb.CreateDocumentTypeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function serialize_DeleteDocumentTypeRequest(arg) {
|
|
32
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.DeleteDocumentTypeRequest)) {
|
|
33
|
+
throw new Error('Expected argument of type DeleteDocumentTypeRequest');
|
|
34
|
+
}
|
|
35
|
+
return Buffer.from(arg.serializeBinary());
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
function deserialize_DeleteDocumentTypeRequest(buffer_arg) {
|
|
39
|
+
return prisca_v1_document_type_document_type_pb.DeleteDocumentTypeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
function serialize_DeleteDocumentTypeResponse(arg) {
|
|
43
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.DeleteDocumentTypeResponse)) {
|
|
44
|
+
throw new Error('Expected argument of type DeleteDocumentTypeResponse');
|
|
45
|
+
}
|
|
46
|
+
return Buffer.from(arg.serializeBinary());
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
function deserialize_DeleteDocumentTypeResponse(buffer_arg) {
|
|
50
|
+
return prisca_v1_document_type_document_type_pb.DeleteDocumentTypeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
function serialize_GetDocumentTypeByIdRequest(arg) {
|
|
54
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.GetDocumentTypeByIdRequest)) {
|
|
55
|
+
throw new Error('Expected argument of type GetDocumentTypeByIdRequest');
|
|
56
|
+
}
|
|
57
|
+
return Buffer.from(arg.serializeBinary());
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function deserialize_GetDocumentTypeByIdRequest(buffer_arg) {
|
|
61
|
+
return prisca_v1_document_type_document_type_pb.GetDocumentTypeByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function serialize_GetDocumentTypeByIdResponse(arg) {
|
|
65
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.GetDocumentTypeByIdResponse)) {
|
|
66
|
+
throw new Error('Expected argument of type GetDocumentTypeByIdResponse');
|
|
67
|
+
}
|
|
68
|
+
return Buffer.from(arg.serializeBinary());
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function deserialize_GetDocumentTypeByIdResponse(buffer_arg) {
|
|
72
|
+
return prisca_v1_document_type_document_type_pb.GetDocumentTypeByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function serialize_GetListDocumentTypeRequest(arg) {
|
|
76
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.GetListDocumentTypeRequest)) {
|
|
77
|
+
throw new Error('Expected argument of type GetListDocumentTypeRequest');
|
|
78
|
+
}
|
|
79
|
+
return Buffer.from(arg.serializeBinary());
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
function deserialize_GetListDocumentTypeRequest(buffer_arg) {
|
|
83
|
+
return prisca_v1_document_type_document_type_pb.GetListDocumentTypeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
function serialize_GetListDocumentTypeResponse(arg) {
|
|
87
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.GetListDocumentTypeResponse)) {
|
|
88
|
+
throw new Error('Expected argument of type GetListDocumentTypeResponse');
|
|
89
|
+
}
|
|
90
|
+
return Buffer.from(arg.serializeBinary());
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function deserialize_GetListDocumentTypeResponse(buffer_arg) {
|
|
94
|
+
return prisca_v1_document_type_document_type_pb.GetListDocumentTypeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
function serialize_UpdateDocumentTypeRequest(arg) {
|
|
98
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.UpdateDocumentTypeRequest)) {
|
|
99
|
+
throw new Error('Expected argument of type UpdateDocumentTypeRequest');
|
|
100
|
+
}
|
|
101
|
+
return Buffer.from(arg.serializeBinary());
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function deserialize_UpdateDocumentTypeRequest(buffer_arg) {
|
|
105
|
+
return prisca_v1_document_type_document_type_pb.UpdateDocumentTypeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function serialize_UpdateDocumentTypeResponse(arg) {
|
|
109
|
+
if (!(arg instanceof prisca_v1_document_type_document_type_pb.UpdateDocumentTypeResponse)) {
|
|
110
|
+
throw new Error('Expected argument of type UpdateDocumentTypeResponse');
|
|
111
|
+
}
|
|
112
|
+
return Buffer.from(arg.serializeBinary());
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
function deserialize_UpdateDocumentTypeResponse(buffer_arg) {
|
|
116
|
+
return prisca_v1_document_type_document_type_pb.UpdateDocumentTypeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
var DocumentTypeServiceService = exports.DocumentTypeServiceService = {
|
|
121
|
+
createDocumentType: {
|
|
122
|
+
path: '/DocumentTypeService/CreateDocumentType',
|
|
123
|
+
requestStream: false,
|
|
124
|
+
responseStream: false,
|
|
125
|
+
requestType: prisca_v1_document_type_document_type_pb.CreateDocumentTypeRequest,
|
|
126
|
+
responseType: prisca_v1_document_type_document_type_pb.CreateDocumentTypeResponse,
|
|
127
|
+
requestSerialize: serialize_CreateDocumentTypeRequest,
|
|
128
|
+
requestDeserialize: deserialize_CreateDocumentTypeRequest,
|
|
129
|
+
responseSerialize: serialize_CreateDocumentTypeResponse,
|
|
130
|
+
responseDeserialize: deserialize_CreateDocumentTypeResponse,
|
|
131
|
+
},
|
|
132
|
+
updateDocumentType: {
|
|
133
|
+
path: '/DocumentTypeService/UpdateDocumentType',
|
|
134
|
+
requestStream: false,
|
|
135
|
+
responseStream: false,
|
|
136
|
+
requestType: prisca_v1_document_type_document_type_pb.UpdateDocumentTypeRequest,
|
|
137
|
+
responseType: prisca_v1_document_type_document_type_pb.UpdateDocumentTypeResponse,
|
|
138
|
+
requestSerialize: serialize_UpdateDocumentTypeRequest,
|
|
139
|
+
requestDeserialize: deserialize_UpdateDocumentTypeRequest,
|
|
140
|
+
responseSerialize: serialize_UpdateDocumentTypeResponse,
|
|
141
|
+
responseDeserialize: deserialize_UpdateDocumentTypeResponse,
|
|
142
|
+
},
|
|
143
|
+
getDocumentTypeById: {
|
|
144
|
+
path: '/DocumentTypeService/GetDocumentTypeById',
|
|
145
|
+
requestStream: false,
|
|
146
|
+
responseStream: false,
|
|
147
|
+
requestType: prisca_v1_document_type_document_type_pb.GetDocumentTypeByIdRequest,
|
|
148
|
+
responseType: prisca_v1_document_type_document_type_pb.GetDocumentTypeByIdResponse,
|
|
149
|
+
requestSerialize: serialize_GetDocumentTypeByIdRequest,
|
|
150
|
+
requestDeserialize: deserialize_GetDocumentTypeByIdRequest,
|
|
151
|
+
responseSerialize: serialize_GetDocumentTypeByIdResponse,
|
|
152
|
+
responseDeserialize: deserialize_GetDocumentTypeByIdResponse,
|
|
153
|
+
},
|
|
154
|
+
getListDocumentTypes: {
|
|
155
|
+
path: '/DocumentTypeService/GetListDocumentTypes',
|
|
156
|
+
requestStream: false,
|
|
157
|
+
responseStream: false,
|
|
158
|
+
requestType: prisca_v1_document_type_document_type_pb.GetListDocumentTypeRequest,
|
|
159
|
+
responseType: prisca_v1_document_type_document_type_pb.GetListDocumentTypeResponse,
|
|
160
|
+
requestSerialize: serialize_GetListDocumentTypeRequest,
|
|
161
|
+
requestDeserialize: deserialize_GetListDocumentTypeRequest,
|
|
162
|
+
responseSerialize: serialize_GetListDocumentTypeResponse,
|
|
163
|
+
responseDeserialize: deserialize_GetListDocumentTypeResponse,
|
|
164
|
+
},
|
|
165
|
+
deleteDocumentType: {
|
|
166
|
+
path: '/DocumentTypeService/DeleteDocumentType',
|
|
167
|
+
requestStream: false,
|
|
168
|
+
responseStream: false,
|
|
169
|
+
requestType: prisca_v1_document_type_document_type_pb.DeleteDocumentTypeRequest,
|
|
170
|
+
responseType: prisca_v1_document_type_document_type_pb.DeleteDocumentTypeResponse,
|
|
171
|
+
requestSerialize: serialize_DeleteDocumentTypeRequest,
|
|
172
|
+
requestDeserialize: deserialize_DeleteDocumentTypeRequest,
|
|
173
|
+
responseSerialize: serialize_DeleteDocumentTypeResponse,
|
|
174
|
+
responseDeserialize: deserialize_DeleteDocumentTypeResponse,
|
|
175
|
+
},
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
exports.DocumentTypeServiceClient = grpc.makeGenericClientConstructor(DocumentTypeServiceService, 'DocumentTypeService');
|