@aldiokta/protocgen 1.0.0

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.
Files changed (23) hide show
  1. package/package.json +15 -0
  2. package/prisca/v1/core/auth/auth_grpc_pb.js +256 -0
  3. package/prisca/v1/core/auth/auth_pb.js +2801 -0
  4. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  5. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  6. package/prisca/v1/core/material/material_grpc_pb.js +181 -0
  7. package/prisca/v1/core/material/material_pb.js +4016 -0
  8. package/prisca/v1/core/material_group/material_group_grpc_pb.js +177 -0
  9. package/prisca/v1/core/material_group/material_group_pb.js +2582 -0
  10. package/prisca/v1/core/material_type/material_type_grpc_pb.js +147 -0
  11. package/prisca/v1/core/material_type/material_type_pb.js +2369 -0
  12. package/prisca/v1/core/number_range/number_range_grpc_pb.js +177 -0
  13. package/prisca/v1/core/number_range/number_range_pb.js +2672 -0
  14. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  15. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  16. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +354 -0
  17. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +4943 -0
  18. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  19. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  20. package/prisca/v1/core/work_locations/work_locations_grpc_pb.js +17 -0
  21. package/prisca/v1/core/work_locations/work_locations_pb.js +328 -0
  22. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  23. package/prisca/v1/global/meta/meta_pb.js +1179 -0
@@ -0,0 +1,17 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ 'use strict';
4
+ var grpc = require('@grpc/grpc-js');
5
+ var prisca_v1_core_work_locations_work_locations_pb = require('../../../../prisca/v1/core/work_locations/work_locations_pb.js');
6
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
7
+
8
+
9
+ var WorkLocationsServiceService = exports.WorkLocationsServiceService = {
10
+ };
11
+
12
+ exports.WorkLocationsServiceClient = grpc.makeGenericClientConstructor(WorkLocationsServiceService);
13
+ // rpc CreateWorkLocations(CreateWorkLocationsRequest) returns (CreateWorkLocationsResponse);
14
+ // rpc UpdateWorkLocations(UpdateWorkLocationsRequest) returns (UpdateWorkLocationsResponse);
15
+ // rpc DeleteWorkLocations(DeleteWorkLocationsRequest) returns (DeleteWorkLocationsResponse);
16
+ // rpc GetWorkLocationsById(GetWorkLocationsByIdRequest) returns (GetWorkLocationsByIdResponse);
17
+ // rpc GetListWorkLocation(GetListWorkLocationsRequest) returns (GetListWorkLocationsResponse);
@@ -0,0 +1,328 @@
1
+ // source: prisca/v1/core/work_locations/work_locations.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
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ goog.exportSymbol('proto.WorkLocations', null, global);
27
+ /**
28
+ * Generated by JsPbCodeGenerator.
29
+ * @param {Array=} opt_data Optional initial data array, typically from a
30
+ * server response, or constructed directly in Javascript. The array is used
31
+ * in place and becomes part of the constructed object. It is not cloned.
32
+ * If no data is provided, the constructed object will be empty, but still
33
+ * valid.
34
+ * @extends {jspb.Message}
35
+ * @constructor
36
+ */
37
+ proto.WorkLocations = function(opt_data) {
38
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
39
+ };
40
+ goog.inherits(proto.WorkLocations, jspb.Message);
41
+ if (goog.DEBUG && !COMPILED) {
42
+ /**
43
+ * @public
44
+ * @override
45
+ */
46
+ proto.WorkLocations.displayName = 'proto.WorkLocations';
47
+ }
48
+
49
+
50
+
51
+ if (jspb.Message.GENERATE_TO_OBJECT) {
52
+ /**
53
+ * Creates an object representation of this proto.
54
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
55
+ * Optional fields that are not set will be set to undefined.
56
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
57
+ * For the list of reserved names please see:
58
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
59
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
60
+ * JSPB instance for transitional soy proto support:
61
+ * http://goto/soy-param-migration
62
+ * @return {!Object}
63
+ */
64
+ proto.WorkLocations.prototype.toObject = function(opt_includeInstance) {
65
+ return proto.WorkLocations.toObject(opt_includeInstance, this);
66
+ };
67
+
68
+
69
+ /**
70
+ * Static version of the {@see toObject} method.
71
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
72
+ * the JSPB instance for transitional soy proto support:
73
+ * http://goto/soy-param-migration
74
+ * @param {!proto.WorkLocations} msg The msg instance to transform.
75
+ * @return {!Object}
76
+ * @suppress {unusedLocalVariables} f is only used for nested messages
77
+ */
78
+ proto.WorkLocations.toObject = function(includeInstance, msg) {
79
+ var f, obj = {
80
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
81
+ name: jspb.Message.getFieldWithDefault(msg, 2, ""),
82
+ code: jspb.Message.getFieldWithDefault(msg, 3, ""),
83
+ locationName: jspb.Message.getFieldWithDefault(msg, 4, ""),
84
+ createdAt: jspb.Message.getFieldWithDefault(msg, 5, ""),
85
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 6, "")
86
+ };
87
+
88
+ if (includeInstance) {
89
+ obj.$jspbMessageInstance = msg;
90
+ }
91
+ return obj;
92
+ };
93
+ }
94
+
95
+
96
+ /**
97
+ * Deserializes binary data (in protobuf wire format).
98
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
99
+ * @return {!proto.WorkLocations}
100
+ */
101
+ proto.WorkLocations.deserializeBinary = function(bytes) {
102
+ var reader = new jspb.BinaryReader(bytes);
103
+ var msg = new proto.WorkLocations;
104
+ return proto.WorkLocations.deserializeBinaryFromReader(msg, reader);
105
+ };
106
+
107
+
108
+ /**
109
+ * Deserializes binary data (in protobuf wire format) from the
110
+ * given reader into the given message object.
111
+ * @param {!proto.WorkLocations} msg The message object to deserialize into.
112
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
113
+ * @return {!proto.WorkLocations}
114
+ */
115
+ proto.WorkLocations.deserializeBinaryFromReader = function(msg, reader) {
116
+ while (reader.nextField()) {
117
+ if (reader.isEndGroup()) {
118
+ break;
119
+ }
120
+ var field = reader.getFieldNumber();
121
+ switch (field) {
122
+ case 1:
123
+ var value = /** @type {number} */ (reader.readInt64());
124
+ msg.setId(value);
125
+ break;
126
+ case 2:
127
+ var value = /** @type {string} */ (reader.readString());
128
+ msg.setName(value);
129
+ break;
130
+ case 3:
131
+ var value = /** @type {string} */ (reader.readString());
132
+ msg.setCode(value);
133
+ break;
134
+ case 4:
135
+ var value = /** @type {string} */ (reader.readString());
136
+ msg.setLocationName(value);
137
+ break;
138
+ case 5:
139
+ var value = /** @type {string} */ (reader.readString());
140
+ msg.setCreatedAt(value);
141
+ break;
142
+ case 6:
143
+ var value = /** @type {string} */ (reader.readString());
144
+ msg.setUpdatedAt(value);
145
+ break;
146
+ default:
147
+ reader.skipField();
148
+ break;
149
+ }
150
+ }
151
+ return msg;
152
+ };
153
+
154
+
155
+ /**
156
+ * Serializes the message to binary data (in protobuf wire format).
157
+ * @return {!Uint8Array}
158
+ */
159
+ proto.WorkLocations.prototype.serializeBinary = function() {
160
+ var writer = new jspb.BinaryWriter();
161
+ proto.WorkLocations.serializeBinaryToWriter(this, writer);
162
+ return writer.getResultBuffer();
163
+ };
164
+
165
+
166
+ /**
167
+ * Serializes the given message to binary data (in protobuf wire
168
+ * format), writing to the given BinaryWriter.
169
+ * @param {!proto.WorkLocations} message
170
+ * @param {!jspb.BinaryWriter} writer
171
+ * @suppress {unusedLocalVariables} f is only used for nested messages
172
+ */
173
+ proto.WorkLocations.serializeBinaryToWriter = function(message, writer) {
174
+ var f = undefined;
175
+ f = message.getId();
176
+ if (f !== 0) {
177
+ writer.writeInt64(
178
+ 1,
179
+ f
180
+ );
181
+ }
182
+ f = message.getName();
183
+ if (f.length > 0) {
184
+ writer.writeString(
185
+ 2,
186
+ f
187
+ );
188
+ }
189
+ f = message.getCode();
190
+ if (f.length > 0) {
191
+ writer.writeString(
192
+ 3,
193
+ f
194
+ );
195
+ }
196
+ f = message.getLocationName();
197
+ if (f.length > 0) {
198
+ writer.writeString(
199
+ 4,
200
+ f
201
+ );
202
+ }
203
+ f = message.getCreatedAt();
204
+ if (f.length > 0) {
205
+ writer.writeString(
206
+ 5,
207
+ f
208
+ );
209
+ }
210
+ f = message.getUpdatedAt();
211
+ if (f.length > 0) {
212
+ writer.writeString(
213
+ 6,
214
+ f
215
+ );
216
+ }
217
+ };
218
+
219
+
220
+ /**
221
+ * optional int64 id = 1;
222
+ * @return {number}
223
+ */
224
+ proto.WorkLocations.prototype.getId = function() {
225
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
226
+ };
227
+
228
+
229
+ /**
230
+ * @param {number} value
231
+ * @return {!proto.WorkLocations} returns this
232
+ */
233
+ proto.WorkLocations.prototype.setId = function(value) {
234
+ return jspb.Message.setProto3IntField(this, 1, value);
235
+ };
236
+
237
+
238
+ /**
239
+ * optional string name = 2;
240
+ * @return {string}
241
+ */
242
+ proto.WorkLocations.prototype.getName = function() {
243
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
244
+ };
245
+
246
+
247
+ /**
248
+ * @param {string} value
249
+ * @return {!proto.WorkLocations} returns this
250
+ */
251
+ proto.WorkLocations.prototype.setName = function(value) {
252
+ return jspb.Message.setProto3StringField(this, 2, value);
253
+ };
254
+
255
+
256
+ /**
257
+ * optional string code = 3;
258
+ * @return {string}
259
+ */
260
+ proto.WorkLocations.prototype.getCode = function() {
261
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
262
+ };
263
+
264
+
265
+ /**
266
+ * @param {string} value
267
+ * @return {!proto.WorkLocations} returns this
268
+ */
269
+ proto.WorkLocations.prototype.setCode = function(value) {
270
+ return jspb.Message.setProto3StringField(this, 3, value);
271
+ };
272
+
273
+
274
+ /**
275
+ * optional string location_name = 4;
276
+ * @return {string}
277
+ */
278
+ proto.WorkLocations.prototype.getLocationName = function() {
279
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
280
+ };
281
+
282
+
283
+ /**
284
+ * @param {string} value
285
+ * @return {!proto.WorkLocations} returns this
286
+ */
287
+ proto.WorkLocations.prototype.setLocationName = function(value) {
288
+ return jspb.Message.setProto3StringField(this, 4, value);
289
+ };
290
+
291
+
292
+ /**
293
+ * optional string created_at = 5;
294
+ * @return {string}
295
+ */
296
+ proto.WorkLocations.prototype.getCreatedAt = function() {
297
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
298
+ };
299
+
300
+
301
+ /**
302
+ * @param {string} value
303
+ * @return {!proto.WorkLocations} returns this
304
+ */
305
+ proto.WorkLocations.prototype.setCreatedAt = function(value) {
306
+ return jspb.Message.setProto3StringField(this, 5, value);
307
+ };
308
+
309
+
310
+ /**
311
+ * optional string updated_at = 6;
312
+ * @return {string}
313
+ */
314
+ proto.WorkLocations.prototype.getUpdatedAt = function() {
315
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
316
+ };
317
+
318
+
319
+ /**
320
+ * @param {string} value
321
+ * @return {!proto.WorkLocations} returns this
322
+ */
323
+ proto.WorkLocations.prototype.setUpdatedAt = function(value) {
324
+ return jspb.Message.setProto3StringField(this, 6, value);
325
+ };
326
+
327
+
328
+ goog.object.extend(exports, proto);
@@ -0,0 +1 @@
1
+ // GENERATED CODE -- NO SERVICES IN PROTO