@aldiokta/protocgen 1.0.32 → 1.0.34
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/core/auth/auth_grpc_pb.js +311 -0
- package/prisca/v1/core/auth/auth_pb.js +3236 -0
- package/prisca/v1/core/company/company_grpc_pb.js +177 -0
- package/prisca/v1/core/company/company_pb.js +2875 -0
- package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
- package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
- package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
- package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
- package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
- package/prisca/v1/core/job_position/job_position_pb.js +3732 -0
- package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
- package/prisca/v1/core/job_title/job_title_pb.js +2928 -0
- package/prisca/v1/core/location/location_grpc_pb.js +837 -0
- package/prisca/v1/core/location/location_pb.js +10879 -0
- package/prisca/v1/core/material/material_grpc_pb.js +181 -0
- package/prisca/v1/core/material/material_pb.js +4076 -0
- package/prisca/v1/core/material_group/material_group_grpc_pb.js +177 -0
- package/prisca/v1/core/material_group/material_group_pb.js +2582 -0
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +147 -0
- package/prisca/v1/core/material_type/material_type_pb.js +2399 -0
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +177 -0
- package/prisca/v1/core/number_range/number_range_pb.js +2672 -0
- package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
- package/prisca/v1/core/organization/organization_pb.js +3002 -0
- package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +177 -0
- package/prisca/v1/core/organization_level/organization_level_pb.js +2432 -0
- package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
- package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +266 -0
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +4429 -0
- package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
- package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
- package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
- package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +421 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +9138 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
- package/prisca/v1/core/users/users_grpc_pb.js +1 -0
- package/prisca/v1/core/users/users_pb.js +626 -0
- package/prisca/v1/core/users_role/users_role_grpc_pb.js +177 -0
- package/prisca/v1/core/users_role/users_role_pb.js +2372 -0
- package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
- package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
- package/prisca/v1/core/workflow/workflow_grpc_pb.js +179 -0
- package/prisca/v1/core/workflow/workflow_pb.js +6426 -0
- package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
- package/prisca/v1/global/meta/meta_pb.js +1179 -0
- package/prisca/v1/core/auth/auth.proto +0 -114
- package/prisca/v1/core/company/company.proto +0 -86
- package/prisca/v1/core/department_material/department_material.proto +0 -69
- package/prisca/v1/core/job_grade/job_grade.proto +0 -79
- package/prisca/v1/core/job_position/job_position.proto +0 -112
- package/prisca/v1/core/job_title/job_title.proto +0 -88
- package/prisca/v1/core/location/location.proto +0 -289
- package/prisca/v1/core/material/material.proto +0 -128
- package/prisca/v1/core/material_group/material_group.proto +0 -79
- package/prisca/v1/core/material_type/material_type.proto +0 -77
- package/prisca/v1/core/number_range/number_range.proto +0 -81
- package/prisca/v1/core/organization/organization.proto +0 -93
- package/prisca/v1/core/organization_level/organization_level.proto +0 -73
- package/prisca/v1/core/procurement/procurement.proto +0 -54
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
- package/prisca/v1/core/tax_code/tax_code.proto +0 -79
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -265
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
- package/prisca/v1/core/users/users.proto +0 -22
- package/prisca/v1/core/users_role/users_role.proto +0 -72
- package/prisca/v1/core/work_location/work_location.proto +0 -122
- package/prisca/v1/core/workflow/workflow.proto +0 -193
- package/prisca/v1/global/meta/meta.proto +0 -57
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// source: prisca/v1/core/recipient_roles/recipient_roles.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global =
|
|
17
|
+
(typeof globalThis !== 'undefined' && globalThis) ||
|
|
18
|
+
(typeof window !== 'undefined' && window) ||
|
|
19
|
+
(typeof global !== 'undefined' && global) ||
|
|
20
|
+
(typeof self !== 'undefined' && self) ||
|
|
21
|
+
(function () { return this; }).call(null) ||
|
|
22
|
+
Function('return this')();
|
|
23
|
+
|
|
24
|
+
goog.exportSymbol('proto.RecipientRoles', null, global);
|
|
25
|
+
/**
|
|
26
|
+
* Generated by JsPbCodeGenerator.
|
|
27
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
28
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
29
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
30
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
31
|
+
* valid.
|
|
32
|
+
* @extends {jspb.Message}
|
|
33
|
+
* @constructor
|
|
34
|
+
*/
|
|
35
|
+
proto.RecipientRoles = function(opt_data) {
|
|
36
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
37
|
+
};
|
|
38
|
+
goog.inherits(proto.RecipientRoles, jspb.Message);
|
|
39
|
+
if (goog.DEBUG && !COMPILED) {
|
|
40
|
+
/**
|
|
41
|
+
* @public
|
|
42
|
+
* @override
|
|
43
|
+
*/
|
|
44
|
+
proto.RecipientRoles.displayName = 'proto.RecipientRoles';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
50
|
+
/**
|
|
51
|
+
* Creates an object representation of this proto.
|
|
52
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
53
|
+
* Optional fields that are not set will be set to undefined.
|
|
54
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
55
|
+
* For the list of reserved names please see:
|
|
56
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
57
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
58
|
+
* JSPB instance for transitional soy proto support:
|
|
59
|
+
* http://goto/soy-param-migration
|
|
60
|
+
* @return {!Object}
|
|
61
|
+
*/
|
|
62
|
+
proto.RecipientRoles.prototype.toObject = function(opt_includeInstance) {
|
|
63
|
+
return proto.RecipientRoles.toObject(opt_includeInstance, this);
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Static version of the {@see toObject} method.
|
|
69
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
70
|
+
* the JSPB instance for transitional soy proto support:
|
|
71
|
+
* http://goto/soy-param-migration
|
|
72
|
+
* @param {!proto.RecipientRoles} msg The msg instance to transform.
|
|
73
|
+
* @return {!Object}
|
|
74
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
75
|
+
*/
|
|
76
|
+
proto.RecipientRoles.toObject = function(includeInstance, msg) {
|
|
77
|
+
var f, obj = {
|
|
78
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
79
|
+
description: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
if (includeInstance) {
|
|
83
|
+
obj.$jspbMessageInstance = msg;
|
|
84
|
+
}
|
|
85
|
+
return obj;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Deserializes binary data (in protobuf wire format).
|
|
92
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
93
|
+
* @return {!proto.RecipientRoles}
|
|
94
|
+
*/
|
|
95
|
+
proto.RecipientRoles.deserializeBinary = function(bytes) {
|
|
96
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
97
|
+
var msg = new proto.RecipientRoles;
|
|
98
|
+
return proto.RecipientRoles.deserializeBinaryFromReader(msg, reader);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
104
|
+
* given reader into the given message object.
|
|
105
|
+
* @param {!proto.RecipientRoles} msg The message object to deserialize into.
|
|
106
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
107
|
+
* @return {!proto.RecipientRoles}
|
|
108
|
+
*/
|
|
109
|
+
proto.RecipientRoles.deserializeBinaryFromReader = function(msg, reader) {
|
|
110
|
+
while (reader.nextField()) {
|
|
111
|
+
if (reader.isEndGroup()) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
var field = reader.getFieldNumber();
|
|
115
|
+
switch (field) {
|
|
116
|
+
case 1:
|
|
117
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
118
|
+
msg.setId(value);
|
|
119
|
+
break;
|
|
120
|
+
case 2:
|
|
121
|
+
var value = /** @type {string} */ (reader.readString());
|
|
122
|
+
msg.setDescription(value);
|
|
123
|
+
break;
|
|
124
|
+
default:
|
|
125
|
+
reader.skipField();
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return msg;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
135
|
+
* @return {!Uint8Array}
|
|
136
|
+
*/
|
|
137
|
+
proto.RecipientRoles.prototype.serializeBinary = function() {
|
|
138
|
+
var writer = new jspb.BinaryWriter();
|
|
139
|
+
proto.RecipientRoles.serializeBinaryToWriter(this, writer);
|
|
140
|
+
return writer.getResultBuffer();
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
146
|
+
* format), writing to the given BinaryWriter.
|
|
147
|
+
* @param {!proto.RecipientRoles} message
|
|
148
|
+
* @param {!jspb.BinaryWriter} writer
|
|
149
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
150
|
+
*/
|
|
151
|
+
proto.RecipientRoles.serializeBinaryToWriter = function(message, writer) {
|
|
152
|
+
var f = undefined;
|
|
153
|
+
f = message.getId();
|
|
154
|
+
if (f !== 0) {
|
|
155
|
+
writer.writeInt64(
|
|
156
|
+
1,
|
|
157
|
+
f
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
f = message.getDescription();
|
|
161
|
+
if (f.length > 0) {
|
|
162
|
+
writer.writeString(
|
|
163
|
+
2,
|
|
164
|
+
f
|
|
165
|
+
);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* optional int64 id = 1;
|
|
172
|
+
* @return {number}
|
|
173
|
+
*/
|
|
174
|
+
proto.RecipientRoles.prototype.getId = function() {
|
|
175
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @param {number} value
|
|
181
|
+
* @return {!proto.RecipientRoles} returns this
|
|
182
|
+
*/
|
|
183
|
+
proto.RecipientRoles.prototype.setId = function(value) {
|
|
184
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* optional string description = 2;
|
|
190
|
+
* @return {string}
|
|
191
|
+
*/
|
|
192
|
+
proto.RecipientRoles.prototype.getDescription = function() {
|
|
193
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* @param {string} value
|
|
199
|
+
* @return {!proto.RecipientRoles} returns this
|
|
200
|
+
*/
|
|
201
|
+
proto.RecipientRoles.prototype.setDescription = function(value) {
|
|
202
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
goog.object.extend(exports, proto);
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
var grpc = require('@grpc/grpc-js');
|
|
5
|
+
var prisca_v1_core_tax_code_tax_code_pb = require('../../../../prisca/v1/core/tax_code/tax_code_pb.js');
|
|
6
|
+
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
7
|
+
|
|
8
|
+
function serialize_prisca_v1_core_tax_code_CreateTaxCodeRequest(arg) {
|
|
9
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeRequest)) {
|
|
10
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.CreateTaxCodeRequest');
|
|
11
|
+
}
|
|
12
|
+
return Buffer.from(arg.serializeBinary());
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function deserialize_prisca_v1_core_tax_code_CreateTaxCodeRequest(buffer_arg) {
|
|
16
|
+
return prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function serialize_prisca_v1_core_tax_code_CreateTaxCodeResponse(arg) {
|
|
20
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeResponse)) {
|
|
21
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.CreateTaxCodeResponse');
|
|
22
|
+
}
|
|
23
|
+
return Buffer.from(arg.serializeBinary());
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function deserialize_prisca_v1_core_tax_code_CreateTaxCodeResponse(buffer_arg) {
|
|
27
|
+
return prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function serialize_prisca_v1_core_tax_code_DeleteTaxCodeRequest(arg) {
|
|
31
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeRequest)) {
|
|
32
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.DeleteTaxCodeRequest');
|
|
33
|
+
}
|
|
34
|
+
return Buffer.from(arg.serializeBinary());
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function deserialize_prisca_v1_core_tax_code_DeleteTaxCodeRequest(buffer_arg) {
|
|
38
|
+
return prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function serialize_prisca_v1_core_tax_code_DeleteTaxCodeResponse(arg) {
|
|
42
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeResponse)) {
|
|
43
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.DeleteTaxCodeResponse');
|
|
44
|
+
}
|
|
45
|
+
return Buffer.from(arg.serializeBinary());
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function deserialize_prisca_v1_core_tax_code_DeleteTaxCodeResponse(buffer_arg) {
|
|
49
|
+
return prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
function serialize_prisca_v1_core_tax_code_GetListTaxCodeRequest(arg) {
|
|
53
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeRequest)) {
|
|
54
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.GetListTaxCodeRequest');
|
|
55
|
+
}
|
|
56
|
+
return Buffer.from(arg.serializeBinary());
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function deserialize_prisca_v1_core_tax_code_GetListTaxCodeRequest(buffer_arg) {
|
|
60
|
+
return prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function serialize_prisca_v1_core_tax_code_GetListTaxCodeResponse(arg) {
|
|
64
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeResponse)) {
|
|
65
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.GetListTaxCodeResponse');
|
|
66
|
+
}
|
|
67
|
+
return Buffer.from(arg.serializeBinary());
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
function deserialize_prisca_v1_core_tax_code_GetListTaxCodeResponse(buffer_arg) {
|
|
71
|
+
return prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function serialize_prisca_v1_core_tax_code_GetTaxCodeByIdRequest(arg) {
|
|
75
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdRequest)) {
|
|
76
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.GetTaxCodeByIdRequest');
|
|
77
|
+
}
|
|
78
|
+
return Buffer.from(arg.serializeBinary());
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function deserialize_prisca_v1_core_tax_code_GetTaxCodeByIdRequest(buffer_arg) {
|
|
82
|
+
return prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function serialize_prisca_v1_core_tax_code_GetTaxCodeByIdResponse(arg) {
|
|
86
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdResponse)) {
|
|
87
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.GetTaxCodeByIdResponse');
|
|
88
|
+
}
|
|
89
|
+
return Buffer.from(arg.serializeBinary());
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function deserialize_prisca_v1_core_tax_code_GetTaxCodeByIdResponse(buffer_arg) {
|
|
93
|
+
return prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
function serialize_prisca_v1_core_tax_code_UpdateTaxCodeRequest(arg) {
|
|
97
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeRequest)) {
|
|
98
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.UpdateTaxCodeRequest');
|
|
99
|
+
}
|
|
100
|
+
return Buffer.from(arg.serializeBinary());
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
function deserialize_prisca_v1_core_tax_code_UpdateTaxCodeRequest(buffer_arg) {
|
|
104
|
+
return prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
function serialize_prisca_v1_core_tax_code_UpdateTaxCodeResponse(arg) {
|
|
108
|
+
if (!(arg instanceof prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeResponse)) {
|
|
109
|
+
throw new Error('Expected argument of type prisca.v1.core.tax_code.UpdateTaxCodeResponse');
|
|
110
|
+
}
|
|
111
|
+
return Buffer.from(arg.serializeBinary());
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function deserialize_prisca_v1_core_tax_code_UpdateTaxCodeResponse(buffer_arg) {
|
|
115
|
+
return prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
var TaxCodeServiceService = exports.TaxCodeServiceService = {
|
|
120
|
+
createTaxCode: {
|
|
121
|
+
path: '/prisca.v1.core.tax_code.TaxCodeService/CreateTaxCode',
|
|
122
|
+
requestStream: false,
|
|
123
|
+
responseStream: false,
|
|
124
|
+
requestType: prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeRequest,
|
|
125
|
+
responseType: prisca_v1_core_tax_code_tax_code_pb.CreateTaxCodeResponse,
|
|
126
|
+
requestSerialize: serialize_prisca_v1_core_tax_code_CreateTaxCodeRequest,
|
|
127
|
+
requestDeserialize: deserialize_prisca_v1_core_tax_code_CreateTaxCodeRequest,
|
|
128
|
+
responseSerialize: serialize_prisca_v1_core_tax_code_CreateTaxCodeResponse,
|
|
129
|
+
responseDeserialize: deserialize_prisca_v1_core_tax_code_CreateTaxCodeResponse,
|
|
130
|
+
},
|
|
131
|
+
updateTaxCode: {
|
|
132
|
+
path: '/prisca.v1.core.tax_code.TaxCodeService/UpdateTaxCode',
|
|
133
|
+
requestStream: false,
|
|
134
|
+
responseStream: false,
|
|
135
|
+
requestType: prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeRequest,
|
|
136
|
+
responseType: prisca_v1_core_tax_code_tax_code_pb.UpdateTaxCodeResponse,
|
|
137
|
+
requestSerialize: serialize_prisca_v1_core_tax_code_UpdateTaxCodeRequest,
|
|
138
|
+
requestDeserialize: deserialize_prisca_v1_core_tax_code_UpdateTaxCodeRequest,
|
|
139
|
+
responseSerialize: serialize_prisca_v1_core_tax_code_UpdateTaxCodeResponse,
|
|
140
|
+
responseDeserialize: deserialize_prisca_v1_core_tax_code_UpdateTaxCodeResponse,
|
|
141
|
+
},
|
|
142
|
+
getTaxCodeById: {
|
|
143
|
+
path: '/prisca.v1.core.tax_code.TaxCodeService/GetTaxCodeById',
|
|
144
|
+
requestStream: false,
|
|
145
|
+
responseStream: false,
|
|
146
|
+
requestType: prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdRequest,
|
|
147
|
+
responseType: prisca_v1_core_tax_code_tax_code_pb.GetTaxCodeByIdResponse,
|
|
148
|
+
requestSerialize: serialize_prisca_v1_core_tax_code_GetTaxCodeByIdRequest,
|
|
149
|
+
requestDeserialize: deserialize_prisca_v1_core_tax_code_GetTaxCodeByIdRequest,
|
|
150
|
+
responseSerialize: serialize_prisca_v1_core_tax_code_GetTaxCodeByIdResponse,
|
|
151
|
+
responseDeserialize: deserialize_prisca_v1_core_tax_code_GetTaxCodeByIdResponse,
|
|
152
|
+
},
|
|
153
|
+
getListTaxCode: {
|
|
154
|
+
path: '/prisca.v1.core.tax_code.TaxCodeService/GetListTaxCode',
|
|
155
|
+
requestStream: false,
|
|
156
|
+
responseStream: false,
|
|
157
|
+
requestType: prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeRequest,
|
|
158
|
+
responseType: prisca_v1_core_tax_code_tax_code_pb.GetListTaxCodeResponse,
|
|
159
|
+
requestSerialize: serialize_prisca_v1_core_tax_code_GetListTaxCodeRequest,
|
|
160
|
+
requestDeserialize: deserialize_prisca_v1_core_tax_code_GetListTaxCodeRequest,
|
|
161
|
+
responseSerialize: serialize_prisca_v1_core_tax_code_GetListTaxCodeResponse,
|
|
162
|
+
responseDeserialize: deserialize_prisca_v1_core_tax_code_GetListTaxCodeResponse,
|
|
163
|
+
},
|
|
164
|
+
deleteTaxCode: {
|
|
165
|
+
path: '/prisca.v1.core.tax_code.TaxCodeService/DeleteTaxCode',
|
|
166
|
+
requestStream: false,
|
|
167
|
+
responseStream: false,
|
|
168
|
+
requestType: prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeRequest,
|
|
169
|
+
responseType: prisca_v1_core_tax_code_tax_code_pb.DeleteTaxCodeResponse,
|
|
170
|
+
requestSerialize: serialize_prisca_v1_core_tax_code_DeleteTaxCodeRequest,
|
|
171
|
+
requestDeserialize: deserialize_prisca_v1_core_tax_code_DeleteTaxCodeRequest,
|
|
172
|
+
responseSerialize: serialize_prisca_v1_core_tax_code_DeleteTaxCodeResponse,
|
|
173
|
+
responseDeserialize: deserialize_prisca_v1_core_tax_code_DeleteTaxCodeResponse,
|
|
174
|
+
},
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
exports.TaxCodeServiceClient = grpc.makeGenericClientConstructor(TaxCodeServiceService);
|