@aldiokta/protocgen 1.0.23 → 1.0.25
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 +55 -0
- package/prisca/v1/core/auth/auth_pb.js +523 -88
- package/prisca/v1/core/job_position/job_position_pb.js +71 -41
- package/prisca/v1/core/location/location_grpc_pb.js +596 -35
- package/prisca/v1/core/location/location_pb.js +7339 -794
- package/prisca/v1/core/organization_level/organization_level_pb.js +9 -9
- 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
|
@@ -799,7 +799,7 @@ proto.OrganizationLevelGetByIdResponse.prototype.toObject = function(opt_include
|
|
|
799
799
|
*/
|
|
800
800
|
proto.OrganizationLevelGetByIdResponse.toObject = function(includeInstance, msg) {
|
|
801
801
|
var f, obj = {
|
|
802
|
-
organizationLevel: (f = msg.getOrganizationLevel()) && proto.
|
|
802
|
+
organizationLevel: (f = msg.getOrganizationLevel()) && proto.BaseOrganizationLevel.toObject(includeInstance, f),
|
|
803
803
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
804
804
|
};
|
|
805
805
|
|
|
@@ -838,8 +838,8 @@ proto.OrganizationLevelGetByIdResponse.deserializeBinaryFromReader = function(ms
|
|
|
838
838
|
var field = reader.getFieldNumber();
|
|
839
839
|
switch (field) {
|
|
840
840
|
case 1:
|
|
841
|
-
var value = new proto.
|
|
842
|
-
reader.readMessage(value,proto.
|
|
841
|
+
var value = new proto.BaseOrganizationLevel;
|
|
842
|
+
reader.readMessage(value,proto.BaseOrganizationLevel.deserializeBinaryFromReader);
|
|
843
843
|
msg.setOrganizationLevel(value);
|
|
844
844
|
break;
|
|
845
845
|
case 2:
|
|
@@ -881,7 +881,7 @@ proto.OrganizationLevelGetByIdResponse.serializeBinaryToWriter = function(messag
|
|
|
881
881
|
writer.writeMessage(
|
|
882
882
|
1,
|
|
883
883
|
f,
|
|
884
|
-
proto.
|
|
884
|
+
proto.BaseOrganizationLevel.serializeBinaryToWriter
|
|
885
885
|
);
|
|
886
886
|
}
|
|
887
887
|
f = message.getMeta();
|
|
@@ -896,17 +896,17 @@ proto.OrganizationLevelGetByIdResponse.serializeBinaryToWriter = function(messag
|
|
|
896
896
|
|
|
897
897
|
|
|
898
898
|
/**
|
|
899
|
-
* optional
|
|
900
|
-
* @return {?proto.
|
|
899
|
+
* optional BaseOrganizationLevel organization_level = 1;
|
|
900
|
+
* @return {?proto.BaseOrganizationLevel}
|
|
901
901
|
*/
|
|
902
902
|
proto.OrganizationLevelGetByIdResponse.prototype.getOrganizationLevel = function() {
|
|
903
|
-
return /** @type{?proto.
|
|
904
|
-
jspb.Message.getWrapperField(this, proto.
|
|
903
|
+
return /** @type{?proto.BaseOrganizationLevel} */ (
|
|
904
|
+
jspb.Message.getWrapperField(this, proto.BaseOrganizationLevel, 1));
|
|
905
905
|
};
|
|
906
906
|
|
|
907
907
|
|
|
908
908
|
/**
|
|
909
|
-
* @param {?proto.
|
|
909
|
+
* @param {?proto.BaseOrganizationLevel|undefined} value
|
|
910
910
|
* @return {!proto.OrganizationLevelGetByIdResponse} returns this
|
|
911
911
|
*/
|
|
912
912
|
proto.OrganizationLevelGetByIdResponse.prototype.setOrganizationLevel = function(value) {
|
|
@@ -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);
|