@aldiokta/protocgen 1.1.39 → 1.1.41
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/bidding/bidding_pb.js +31 -1
- package/prisca/v1/core/access_manager/access_manager_pb.js +221 -142
- package/prisca/v1/core/auth/auth_pb.js +18 -14
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +231 -7
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +33 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +407 -0
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +22 -0
- package/prisca/v1/good_receipt/good_receipt_pb.js +370 -23
- package/prisca/v1/invoice/invoice_grpc_pb.js +55 -0
- package/prisca/v1/invoice/invoice_pb.js +778 -16
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +22 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +370 -23
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +55 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +673 -1
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +55 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +674 -2
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +9911 -2373
|
@@ -112,6 +112,17 @@ function deserialize_GetPurchaseOrderDetailResponse(buffer_arg) {
|
|
|
112
112
|
return prisca_v1_purchase_order_purchase_order_pb.GetPurchaseOrderDetailResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
+
function serialize_UpdatePurchaseOrderFileRequest(arg) {
|
|
116
|
+
if (!(arg instanceof prisca_v1_purchase_order_purchase_order_pb.UpdatePurchaseOrderFileRequest)) {
|
|
117
|
+
throw new Error('Expected argument of type UpdatePurchaseOrderFileRequest');
|
|
118
|
+
}
|
|
119
|
+
return Buffer.from(arg.serializeBinary());
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function deserialize_UpdatePurchaseOrderFileRequest(buffer_arg) {
|
|
123
|
+
return prisca_v1_purchase_order_purchase_order_pb.UpdatePurchaseOrderFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
124
|
+
}
|
|
125
|
+
|
|
115
126
|
function serialize_UpdatePurchaseOrderRequest(arg) {
|
|
116
127
|
if (!(arg instanceof prisca_v1_purchase_order_purchase_order_pb.UpdatePurchaseOrderRequest)) {
|
|
117
128
|
throw new Error('Expected argument of type UpdatePurchaseOrderRequest');
|
|
@@ -225,6 +236,17 @@ var PurchaseOrderServiceService = exports.PurchaseOrderServiceService = {
|
|
|
225
236
|
responseSerialize: serialize_UpdatePurchaseOrderResponse,
|
|
226
237
|
responseDeserialize: deserialize_UpdatePurchaseOrderResponse,
|
|
227
238
|
},
|
|
239
|
+
updatePurchaseOrderFile: {
|
|
240
|
+
path: '/PurchaseOrderService/UpdatePurchaseOrderFile',
|
|
241
|
+
requestStream: false,
|
|
242
|
+
responseStream: false,
|
|
243
|
+
requestType: prisca_v1_purchase_order_purchase_order_pb.UpdatePurchaseOrderFileRequest,
|
|
244
|
+
responseType: prisca_v1_purchase_order_purchase_order_pb.UpdatePurchaseOrderResponse,
|
|
245
|
+
requestSerialize: serialize_UpdatePurchaseOrderFileRequest,
|
|
246
|
+
requestDeserialize: deserialize_UpdatePurchaseOrderFileRequest,
|
|
247
|
+
responseSerialize: serialize_UpdatePurchaseOrderResponse,
|
|
248
|
+
responseDeserialize: deserialize_UpdatePurchaseOrderResponse,
|
|
249
|
+
},
|
|
228
250
|
deletePurchaseOrder: {
|
|
229
251
|
path: '/PurchaseOrderService/DeletePurchaseOrder',
|
|
230
252
|
requestStream: false,
|
|
@@ -49,6 +49,7 @@ goog.exportSymbol('proto.GetPurchaseOrderItemPreload', null, global);
|
|
|
49
49
|
goog.exportSymbol('proto.GoodReceipt', null, global);
|
|
50
50
|
goog.exportSymbol('proto.Invoice', null, global);
|
|
51
51
|
goog.exportSymbol('proto.PurchaseOrder', null, global);
|
|
52
|
+
goog.exportSymbol('proto.UpdatePurchaseOrderFileRequest', null, global);
|
|
52
53
|
goog.exportSymbol('proto.UpdatePurchaseOrderRequest', null, global);
|
|
53
54
|
goog.exportSymbol('proto.UpdatePurchaseOrderResponse', null, global);
|
|
54
55
|
goog.exportSymbol('proto.UpdatePurchaseOrderStatusRequest', null, global);
|
|
@@ -199,6 +200,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
199
200
|
*/
|
|
200
201
|
proto.UpdatePurchaseOrderStatusRequest.displayName = 'proto.UpdatePurchaseOrderStatusRequest';
|
|
201
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* Generated by JsPbCodeGenerator.
|
|
205
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
206
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
207
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
208
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
209
|
+
* valid.
|
|
210
|
+
* @extends {jspb.Message}
|
|
211
|
+
* @constructor
|
|
212
|
+
*/
|
|
213
|
+
proto.UpdatePurchaseOrderFileRequest = function(opt_data) {
|
|
214
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.UpdatePurchaseOrderFileRequest.repeatedFields_, null);
|
|
215
|
+
};
|
|
216
|
+
goog.inherits(proto.UpdatePurchaseOrderFileRequest, jspb.Message);
|
|
217
|
+
if (goog.DEBUG && !COMPILED) {
|
|
218
|
+
/**
|
|
219
|
+
* @public
|
|
220
|
+
* @override
|
|
221
|
+
*/
|
|
222
|
+
proto.UpdatePurchaseOrderFileRequest.displayName = 'proto.UpdatePurchaseOrderFileRequest';
|
|
223
|
+
}
|
|
202
224
|
/**
|
|
203
225
|
* Generated by JsPbCodeGenerator.
|
|
204
226
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -273,7 +295,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
273
295
|
* @constructor
|
|
274
296
|
*/
|
|
275
297
|
proto.DeletePurchaseOrderRequest = function(opt_data) {
|
|
276
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
298
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeletePurchaseOrderRequest.repeatedFields_, null);
|
|
277
299
|
};
|
|
278
300
|
goog.inherits(proto.DeletePurchaseOrderRequest, jspb.Message);
|
|
279
301
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -441,7 +463,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
441
463
|
* @constructor
|
|
442
464
|
*/
|
|
443
465
|
proto.DeletePurchaseOrderResponse = function(opt_data) {
|
|
444
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
466
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.DeletePurchaseOrderResponse.repeatedFields_, null);
|
|
445
467
|
};
|
|
446
468
|
goog.inherits(proto.DeletePurchaseOrderResponse, jspb.Message);
|
|
447
469
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -2898,7 +2920,8 @@ shippingFileIds: jspb.Message.getFieldWithDefault(msg, 35, ""),
|
|
|
2898
2920
|
shippingFilesList: jspb.Message.toObjectList(msg.getShippingFilesList(),
|
|
2899
2921
|
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
|
|
2900
2922
|
updatedByUser: (f = msg.getUpdatedByUser()) && prisca_v1_core_users_users_pb.Users.toObject(includeInstance, f),
|
|
2901
|
-
customTransaction: jspb.Message.getFieldWithDefault(msg, 38, "")
|
|
2923
|
+
customTransaction: jspb.Message.getFieldWithDefault(msg, 38, ""),
|
|
2924
|
+
dueDate: jspb.Message.getFieldWithDefault(msg, 39, "")
|
|
2902
2925
|
};
|
|
2903
2926
|
|
|
2904
2927
|
if (includeInstance) {
|
|
@@ -3097,6 +3120,10 @@ proto.Invoice.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
3097
3120
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3098
3121
|
msg.setCustomTransaction(value);
|
|
3099
3122
|
break;
|
|
3123
|
+
case 39:
|
|
3124
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
3125
|
+
msg.setDueDate(value);
|
|
3126
|
+
break;
|
|
3100
3127
|
default:
|
|
3101
3128
|
reader.skipField();
|
|
3102
3129
|
break;
|
|
@@ -3402,6 +3429,13 @@ proto.Invoice.serializeBinaryToWriter = function(message, writer) {
|
|
|
3402
3429
|
f
|
|
3403
3430
|
);
|
|
3404
3431
|
}
|
|
3432
|
+
f = message.getDueDate();
|
|
3433
|
+
if (f.length > 0) {
|
|
3434
|
+
writer.writeString(
|
|
3435
|
+
39,
|
|
3436
|
+
f
|
|
3437
|
+
);
|
|
3438
|
+
}
|
|
3405
3439
|
};
|
|
3406
3440
|
|
|
3407
3441
|
|
|
@@ -4283,6 +4317,24 @@ proto.Invoice.prototype.setCustomTransaction = function(value) {
|
|
|
4283
4317
|
};
|
|
4284
4318
|
|
|
4285
4319
|
|
|
4320
|
+
/**
|
|
4321
|
+
* optional string due_date = 39;
|
|
4322
|
+
* @return {string}
|
|
4323
|
+
*/
|
|
4324
|
+
proto.Invoice.prototype.getDueDate = function() {
|
|
4325
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 39, ""));
|
|
4326
|
+
};
|
|
4327
|
+
|
|
4328
|
+
|
|
4329
|
+
/**
|
|
4330
|
+
* @param {string} value
|
|
4331
|
+
* @return {!proto.Invoice} returns this
|
|
4332
|
+
*/
|
|
4333
|
+
proto.Invoice.prototype.setDueDate = function(value) {
|
|
4334
|
+
return jspb.Message.setProto3StringField(this, 39, value);
|
|
4335
|
+
};
|
|
4336
|
+
|
|
4337
|
+
|
|
4286
4338
|
|
|
4287
4339
|
/**
|
|
4288
4340
|
* List of repeated fields within this message type.
|
|
@@ -7263,6 +7315,249 @@ proto.UpdatePurchaseOrderStatusRequest.prototype.setReferencesId = function(valu
|
|
|
7263
7315
|
|
|
7264
7316
|
|
|
7265
7317
|
|
|
7318
|
+
/**
|
|
7319
|
+
* List of repeated fields within this message type.
|
|
7320
|
+
* @private {!Array<number>}
|
|
7321
|
+
* @const
|
|
7322
|
+
*/
|
|
7323
|
+
proto.UpdatePurchaseOrderFileRequest.repeatedFields_ = [2,3];
|
|
7324
|
+
|
|
7325
|
+
|
|
7326
|
+
|
|
7327
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7328
|
+
/**
|
|
7329
|
+
* Creates an object representation of this proto.
|
|
7330
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7331
|
+
* Optional fields that are not set will be set to undefined.
|
|
7332
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7333
|
+
* For the list of reserved names please see:
|
|
7334
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7335
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7336
|
+
* JSPB instance for transitional soy proto support:
|
|
7337
|
+
* http://goto/soy-param-migration
|
|
7338
|
+
* @return {!Object}
|
|
7339
|
+
*/
|
|
7340
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7341
|
+
return proto.UpdatePurchaseOrderFileRequest.toObject(opt_includeInstance, this);
|
|
7342
|
+
};
|
|
7343
|
+
|
|
7344
|
+
|
|
7345
|
+
/**
|
|
7346
|
+
* Static version of the {@see toObject} method.
|
|
7347
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7348
|
+
* the JSPB instance for transitional soy proto support:
|
|
7349
|
+
* http://goto/soy-param-migration
|
|
7350
|
+
* @param {!proto.UpdatePurchaseOrderFileRequest} msg The msg instance to transform.
|
|
7351
|
+
* @return {!Object}
|
|
7352
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7353
|
+
*/
|
|
7354
|
+
proto.UpdatePurchaseOrderFileRequest.toObject = function(includeInstance, msg) {
|
|
7355
|
+
var f, obj = {
|
|
7356
|
+
referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7357
|
+
filesList: jspb.Message.toObjectList(msg.getFilesList(),
|
|
7358
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.toObject, includeInstance),
|
|
7359
|
+
itemTransactionsList: jspb.Message.toObjectList(msg.getItemTransactionsList(),
|
|
7360
|
+
prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.toObject, includeInstance)
|
|
7361
|
+
};
|
|
7362
|
+
|
|
7363
|
+
if (includeInstance) {
|
|
7364
|
+
obj.$jspbMessageInstance = msg;
|
|
7365
|
+
}
|
|
7366
|
+
return obj;
|
|
7367
|
+
};
|
|
7368
|
+
}
|
|
7369
|
+
|
|
7370
|
+
|
|
7371
|
+
/**
|
|
7372
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7373
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7374
|
+
* @return {!proto.UpdatePurchaseOrderFileRequest}
|
|
7375
|
+
*/
|
|
7376
|
+
proto.UpdatePurchaseOrderFileRequest.deserializeBinary = function(bytes) {
|
|
7377
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7378
|
+
var msg = new proto.UpdatePurchaseOrderFileRequest;
|
|
7379
|
+
return proto.UpdatePurchaseOrderFileRequest.deserializeBinaryFromReader(msg, reader);
|
|
7380
|
+
};
|
|
7381
|
+
|
|
7382
|
+
|
|
7383
|
+
/**
|
|
7384
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7385
|
+
* given reader into the given message object.
|
|
7386
|
+
* @param {!proto.UpdatePurchaseOrderFileRequest} msg The message object to deserialize into.
|
|
7387
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7388
|
+
* @return {!proto.UpdatePurchaseOrderFileRequest}
|
|
7389
|
+
*/
|
|
7390
|
+
proto.UpdatePurchaseOrderFileRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7391
|
+
while (reader.nextField()) {
|
|
7392
|
+
if (reader.isEndGroup()) {
|
|
7393
|
+
break;
|
|
7394
|
+
}
|
|
7395
|
+
var field = reader.getFieldNumber();
|
|
7396
|
+
switch (field) {
|
|
7397
|
+
case 1:
|
|
7398
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
7399
|
+
msg.setReferencesId(value);
|
|
7400
|
+
break;
|
|
7401
|
+
case 2:
|
|
7402
|
+
var value = new prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq;
|
|
7403
|
+
reader.readMessage(value,prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.deserializeBinaryFromReader);
|
|
7404
|
+
msg.addFiles(value);
|
|
7405
|
+
break;
|
|
7406
|
+
case 3:
|
|
7407
|
+
var value = new prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction;
|
|
7408
|
+
reader.readMessage(value,prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.deserializeBinaryFromReader);
|
|
7409
|
+
msg.addItemTransactions(value);
|
|
7410
|
+
break;
|
|
7411
|
+
default:
|
|
7412
|
+
reader.skipField();
|
|
7413
|
+
break;
|
|
7414
|
+
}
|
|
7415
|
+
}
|
|
7416
|
+
return msg;
|
|
7417
|
+
};
|
|
7418
|
+
|
|
7419
|
+
|
|
7420
|
+
/**
|
|
7421
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7422
|
+
* @return {!Uint8Array}
|
|
7423
|
+
*/
|
|
7424
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.serializeBinary = function() {
|
|
7425
|
+
var writer = new jspb.BinaryWriter();
|
|
7426
|
+
proto.UpdatePurchaseOrderFileRequest.serializeBinaryToWriter(this, writer);
|
|
7427
|
+
return writer.getResultBuffer();
|
|
7428
|
+
};
|
|
7429
|
+
|
|
7430
|
+
|
|
7431
|
+
/**
|
|
7432
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7433
|
+
* format), writing to the given BinaryWriter.
|
|
7434
|
+
* @param {!proto.UpdatePurchaseOrderFileRequest} message
|
|
7435
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7436
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7437
|
+
*/
|
|
7438
|
+
proto.UpdatePurchaseOrderFileRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7439
|
+
var f = undefined;
|
|
7440
|
+
f = message.getReferencesId();
|
|
7441
|
+
if (f.length > 0) {
|
|
7442
|
+
writer.writeString(
|
|
7443
|
+
1,
|
|
7444
|
+
f
|
|
7445
|
+
);
|
|
7446
|
+
}
|
|
7447
|
+
f = message.getFilesList();
|
|
7448
|
+
if (f.length > 0) {
|
|
7449
|
+
writer.writeRepeatedMessage(
|
|
7450
|
+
2,
|
|
7451
|
+
f,
|
|
7452
|
+
prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq.serializeBinaryToWriter
|
|
7453
|
+
);
|
|
7454
|
+
}
|
|
7455
|
+
f = message.getItemTransactionsList();
|
|
7456
|
+
if (f.length > 0) {
|
|
7457
|
+
writer.writeRepeatedMessage(
|
|
7458
|
+
3,
|
|
7459
|
+
f,
|
|
7460
|
+
prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction.serializeBinaryToWriter
|
|
7461
|
+
);
|
|
7462
|
+
}
|
|
7463
|
+
};
|
|
7464
|
+
|
|
7465
|
+
|
|
7466
|
+
/**
|
|
7467
|
+
* optional string references_id = 1;
|
|
7468
|
+
* @return {string}
|
|
7469
|
+
*/
|
|
7470
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.getReferencesId = function() {
|
|
7471
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7472
|
+
};
|
|
7473
|
+
|
|
7474
|
+
|
|
7475
|
+
/**
|
|
7476
|
+
* @param {string} value
|
|
7477
|
+
* @return {!proto.UpdatePurchaseOrderFileRequest} returns this
|
|
7478
|
+
*/
|
|
7479
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.setReferencesId = function(value) {
|
|
7480
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7481
|
+
};
|
|
7482
|
+
|
|
7483
|
+
|
|
7484
|
+
/**
|
|
7485
|
+
* repeated FileUploadReferencesReq files = 2;
|
|
7486
|
+
* @return {!Array<!proto.FileUploadReferencesReq>}
|
|
7487
|
+
*/
|
|
7488
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.getFilesList = function() {
|
|
7489
|
+
return /** @type{!Array<!proto.FileUploadReferencesReq>} */ (
|
|
7490
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_file_upload_file_upload_pb.FileUploadReferencesReq, 2));
|
|
7491
|
+
};
|
|
7492
|
+
|
|
7493
|
+
|
|
7494
|
+
/**
|
|
7495
|
+
* @param {!Array<!proto.FileUploadReferencesReq>} value
|
|
7496
|
+
* @return {!proto.UpdatePurchaseOrderFileRequest} returns this
|
|
7497
|
+
*/
|
|
7498
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.setFilesList = function(value) {
|
|
7499
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
7500
|
+
};
|
|
7501
|
+
|
|
7502
|
+
|
|
7503
|
+
/**
|
|
7504
|
+
* @param {!proto.FileUploadReferencesReq=} opt_value
|
|
7505
|
+
* @param {number=} opt_index
|
|
7506
|
+
* @return {!proto.FileUploadReferencesReq}
|
|
7507
|
+
*/
|
|
7508
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.addFiles = function(opt_value, opt_index) {
|
|
7509
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.FileUploadReferencesReq, opt_index);
|
|
7510
|
+
};
|
|
7511
|
+
|
|
7512
|
+
|
|
7513
|
+
/**
|
|
7514
|
+
* Clears the list making it empty but non-null.
|
|
7515
|
+
* @return {!proto.UpdatePurchaseOrderFileRequest} returns this
|
|
7516
|
+
*/
|
|
7517
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.clearFilesList = function() {
|
|
7518
|
+
return this.setFilesList([]);
|
|
7519
|
+
};
|
|
7520
|
+
|
|
7521
|
+
|
|
7522
|
+
/**
|
|
7523
|
+
* repeated BaseItemTransaction item_transactions = 3;
|
|
7524
|
+
* @return {!Array<!proto.BaseItemTransaction>}
|
|
7525
|
+
*/
|
|
7526
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.getItemTransactionsList = function() {
|
|
7527
|
+
return /** @type{!Array<!proto.BaseItemTransaction>} */ (
|
|
7528
|
+
jspb.Message.getRepeatedWrapperField(this, prisca_v1_core_item_transaction_item_transaction_pb.BaseItemTransaction, 3));
|
|
7529
|
+
};
|
|
7530
|
+
|
|
7531
|
+
|
|
7532
|
+
/**
|
|
7533
|
+
* @param {!Array<!proto.BaseItemTransaction>} value
|
|
7534
|
+
* @return {!proto.UpdatePurchaseOrderFileRequest} returns this
|
|
7535
|
+
*/
|
|
7536
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.setItemTransactionsList = function(value) {
|
|
7537
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
7538
|
+
};
|
|
7539
|
+
|
|
7540
|
+
|
|
7541
|
+
/**
|
|
7542
|
+
* @param {!proto.BaseItemTransaction=} opt_value
|
|
7543
|
+
* @param {number=} opt_index
|
|
7544
|
+
* @return {!proto.BaseItemTransaction}
|
|
7545
|
+
*/
|
|
7546
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.addItemTransactions = function(opt_value, opt_index) {
|
|
7547
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.BaseItemTransaction, opt_index);
|
|
7548
|
+
};
|
|
7549
|
+
|
|
7550
|
+
|
|
7551
|
+
/**
|
|
7552
|
+
* Clears the list making it empty but non-null.
|
|
7553
|
+
* @return {!proto.UpdatePurchaseOrderFileRequest} returns this
|
|
7554
|
+
*/
|
|
7555
|
+
proto.UpdatePurchaseOrderFileRequest.prototype.clearItemTransactionsList = function() {
|
|
7556
|
+
return this.setItemTransactionsList([]);
|
|
7557
|
+
};
|
|
7558
|
+
|
|
7559
|
+
|
|
7560
|
+
|
|
7266
7561
|
|
|
7267
7562
|
|
|
7268
7563
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -7776,6 +8071,13 @@ proto.GetListPurchaseOrderRequest.prototype.hasQuery = function() {
|
|
|
7776
8071
|
|
|
7777
8072
|
|
|
7778
8073
|
|
|
8074
|
+
/**
|
|
8075
|
+
* List of repeated fields within this message type.
|
|
8076
|
+
* @private {!Array<number>}
|
|
8077
|
+
* @const
|
|
8078
|
+
*/
|
|
8079
|
+
proto.DeletePurchaseOrderRequest.repeatedFields_ = [1];
|
|
8080
|
+
|
|
7779
8081
|
|
|
7780
8082
|
|
|
7781
8083
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -7807,7 +8109,7 @@ proto.DeletePurchaseOrderRequest.prototype.toObject = function(opt_includeInstan
|
|
|
7807
8109
|
*/
|
|
7808
8110
|
proto.DeletePurchaseOrderRequest.toObject = function(includeInstance, msg) {
|
|
7809
8111
|
var f, obj = {
|
|
7810
|
-
|
|
8112
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
7811
8113
|
};
|
|
7812
8114
|
|
|
7813
8115
|
if (includeInstance) {
|
|
@@ -7846,7 +8148,7 @@ proto.DeletePurchaseOrderRequest.deserializeBinaryFromReader = function(msg, rea
|
|
|
7846
8148
|
switch (field) {
|
|
7847
8149
|
case 1:
|
|
7848
8150
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
7849
|
-
msg.
|
|
8151
|
+
msg.addReferenceIds(value);
|
|
7850
8152
|
break;
|
|
7851
8153
|
default:
|
|
7852
8154
|
reader.skipField();
|
|
@@ -7877,9 +8179,9 @@ proto.DeletePurchaseOrderRequest.prototype.serializeBinary = function() {
|
|
|
7877
8179
|
*/
|
|
7878
8180
|
proto.DeletePurchaseOrderRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7879
8181
|
var f = undefined;
|
|
7880
|
-
f = message.
|
|
8182
|
+
f = message.getReferenceIdsList();
|
|
7881
8183
|
if (f.length > 0) {
|
|
7882
|
-
writer.
|
|
8184
|
+
writer.writeRepeatedString(
|
|
7883
8185
|
1,
|
|
7884
8186
|
f
|
|
7885
8187
|
);
|
|
@@ -7888,20 +8190,39 @@ proto.DeletePurchaseOrderRequest.serializeBinaryToWriter = function(message, wri
|
|
|
7888
8190
|
|
|
7889
8191
|
|
|
7890
8192
|
/**
|
|
7891
|
-
*
|
|
7892
|
-
* @return {string}
|
|
8193
|
+
* repeated string reference_ids = 1;
|
|
8194
|
+
* @return {!Array<string>}
|
|
7893
8195
|
*/
|
|
7894
|
-
proto.DeletePurchaseOrderRequest.prototype.
|
|
7895
|
-
return /** @type {string} */ (jspb.Message.
|
|
8196
|
+
proto.DeletePurchaseOrderRequest.prototype.getReferenceIdsList = function() {
|
|
8197
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
8198
|
+
};
|
|
8199
|
+
|
|
8200
|
+
|
|
8201
|
+
/**
|
|
8202
|
+
* @param {!Array<string>} value
|
|
8203
|
+
* @return {!proto.DeletePurchaseOrderRequest} returns this
|
|
8204
|
+
*/
|
|
8205
|
+
proto.DeletePurchaseOrderRequest.prototype.setReferenceIdsList = function(value) {
|
|
8206
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
7896
8207
|
};
|
|
7897
8208
|
|
|
7898
8209
|
|
|
7899
8210
|
/**
|
|
7900
8211
|
* @param {string} value
|
|
8212
|
+
* @param {number=} opt_index
|
|
7901
8213
|
* @return {!proto.DeletePurchaseOrderRequest} returns this
|
|
7902
8214
|
*/
|
|
7903
|
-
proto.DeletePurchaseOrderRequest.prototype.
|
|
7904
|
-
return jspb.Message.
|
|
8215
|
+
proto.DeletePurchaseOrderRequest.prototype.addReferenceIds = function(value, opt_index) {
|
|
8216
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
8217
|
+
};
|
|
8218
|
+
|
|
8219
|
+
|
|
8220
|
+
/**
|
|
8221
|
+
* Clears the list making it empty but non-null.
|
|
8222
|
+
* @return {!proto.DeletePurchaseOrderRequest} returns this
|
|
8223
|
+
*/
|
|
8224
|
+
proto.DeletePurchaseOrderRequest.prototype.clearReferenceIdsList = function() {
|
|
8225
|
+
return this.setReferenceIdsList([]);
|
|
7905
8226
|
};
|
|
7906
8227
|
|
|
7907
8228
|
|
|
@@ -9309,6 +9630,13 @@ proto.GetListPurchaseOrderResponse.prototype.hasMeta = function() {
|
|
|
9309
9630
|
|
|
9310
9631
|
|
|
9311
9632
|
|
|
9633
|
+
/**
|
|
9634
|
+
* List of repeated fields within this message type.
|
|
9635
|
+
* @private {!Array<number>}
|
|
9636
|
+
* @const
|
|
9637
|
+
*/
|
|
9638
|
+
proto.DeletePurchaseOrderResponse.repeatedFields_ = [1];
|
|
9639
|
+
|
|
9312
9640
|
|
|
9313
9641
|
|
|
9314
9642
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -9340,7 +9668,7 @@ proto.DeletePurchaseOrderResponse.prototype.toObject = function(opt_includeInsta
|
|
|
9340
9668
|
*/
|
|
9341
9669
|
proto.DeletePurchaseOrderResponse.toObject = function(includeInstance, msg) {
|
|
9342
9670
|
var f, obj = {
|
|
9343
|
-
|
|
9671
|
+
referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
9344
9672
|
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
9345
9673
|
};
|
|
9346
9674
|
|
|
@@ -9380,7 +9708,7 @@ proto.DeletePurchaseOrderResponse.deserializeBinaryFromReader = function(msg, re
|
|
|
9380
9708
|
switch (field) {
|
|
9381
9709
|
case 1:
|
|
9382
9710
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
9383
|
-
msg.
|
|
9711
|
+
msg.addReferenceIds(value);
|
|
9384
9712
|
break;
|
|
9385
9713
|
case 2:
|
|
9386
9714
|
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
@@ -9416,9 +9744,9 @@ proto.DeletePurchaseOrderResponse.prototype.serializeBinary = function() {
|
|
|
9416
9744
|
*/
|
|
9417
9745
|
proto.DeletePurchaseOrderResponse.serializeBinaryToWriter = function(message, writer) {
|
|
9418
9746
|
var f = undefined;
|
|
9419
|
-
f = message.
|
|
9747
|
+
f = message.getReferenceIdsList();
|
|
9420
9748
|
if (f.length > 0) {
|
|
9421
|
-
writer.
|
|
9749
|
+
writer.writeRepeatedString(
|
|
9422
9750
|
1,
|
|
9423
9751
|
f
|
|
9424
9752
|
);
|
|
@@ -9435,20 +9763,39 @@ proto.DeletePurchaseOrderResponse.serializeBinaryToWriter = function(message, wr
|
|
|
9435
9763
|
|
|
9436
9764
|
|
|
9437
9765
|
/**
|
|
9438
|
-
*
|
|
9439
|
-
* @return {string}
|
|
9766
|
+
* repeated string reference_ids = 1;
|
|
9767
|
+
* @return {!Array<string>}
|
|
9440
9768
|
*/
|
|
9441
|
-
proto.DeletePurchaseOrderResponse.prototype.
|
|
9442
|
-
return /** @type {string} */ (jspb.Message.
|
|
9769
|
+
proto.DeletePurchaseOrderResponse.prototype.getReferenceIdsList = function() {
|
|
9770
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
9771
|
+
};
|
|
9772
|
+
|
|
9773
|
+
|
|
9774
|
+
/**
|
|
9775
|
+
* @param {!Array<string>} value
|
|
9776
|
+
* @return {!proto.DeletePurchaseOrderResponse} returns this
|
|
9777
|
+
*/
|
|
9778
|
+
proto.DeletePurchaseOrderResponse.prototype.setReferenceIdsList = function(value) {
|
|
9779
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
9443
9780
|
};
|
|
9444
9781
|
|
|
9445
9782
|
|
|
9446
9783
|
/**
|
|
9447
9784
|
* @param {string} value
|
|
9785
|
+
* @param {number=} opt_index
|
|
9448
9786
|
* @return {!proto.DeletePurchaseOrderResponse} returns this
|
|
9449
9787
|
*/
|
|
9450
|
-
proto.DeletePurchaseOrderResponse.prototype.
|
|
9451
|
-
return jspb.Message.
|
|
9788
|
+
proto.DeletePurchaseOrderResponse.prototype.addReferenceIds = function(value, opt_index) {
|
|
9789
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
9790
|
+
};
|
|
9791
|
+
|
|
9792
|
+
|
|
9793
|
+
/**
|
|
9794
|
+
* Clears the list making it empty but non-null.
|
|
9795
|
+
* @return {!proto.DeletePurchaseOrderResponse} returns this
|
|
9796
|
+
*/
|
|
9797
|
+
proto.DeletePurchaseOrderResponse.prototype.clearReferenceIdsList = function() {
|
|
9798
|
+
return this.setReferenceIdsList([]);
|
|
9452
9799
|
};
|
|
9453
9800
|
|
|
9454
9801
|
|
|
@@ -54,6 +54,28 @@ function deserialize_CreatePurchaseRequisitionTrxResponse(buffer_arg) {
|
|
|
54
54
|
return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.CreatePurchaseRequisitionTrxResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
function serialize_DeletePurchaseRequisitionRequest(arg) {
|
|
58
|
+
if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.DeletePurchaseRequisitionRequest)) {
|
|
59
|
+
throw new Error('Expected argument of type DeletePurchaseRequisitionRequest');
|
|
60
|
+
}
|
|
61
|
+
return Buffer.from(arg.serializeBinary());
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function deserialize_DeletePurchaseRequisitionRequest(buffer_arg) {
|
|
65
|
+
return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.DeletePurchaseRequisitionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
function serialize_DeletePurchaseRequisitionResponse(arg) {
|
|
69
|
+
if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.DeletePurchaseRequisitionResponse)) {
|
|
70
|
+
throw new Error('Expected argument of type DeletePurchaseRequisitionResponse');
|
|
71
|
+
}
|
|
72
|
+
return Buffer.from(arg.serializeBinary());
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
function deserialize_DeletePurchaseRequisitionResponse(buffer_arg) {
|
|
76
|
+
return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.DeletePurchaseRequisitionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
77
|
+
}
|
|
78
|
+
|
|
57
79
|
function serialize_DeletePurchaseRequisitionTemplateRequest(arg) {
|
|
58
80
|
if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.DeletePurchaseRequisitionTemplateRequest)) {
|
|
59
81
|
throw new Error('Expected argument of type DeletePurchaseRequisitionTemplateRequest');
|
|
@@ -285,6 +307,17 @@ function deserialize_GetPurchaseRequisitionTrxListResponse(buffer_arg) {
|
|
|
285
307
|
return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.GetPurchaseRequisitionTrxListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
286
308
|
}
|
|
287
309
|
|
|
310
|
+
function serialize_UpdatePurchaseRequisitionFileReq(arg) {
|
|
311
|
+
if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionFileReq)) {
|
|
312
|
+
throw new Error('Expected argument of type UpdatePurchaseRequisitionFileReq');
|
|
313
|
+
}
|
|
314
|
+
return Buffer.from(arg.serializeBinary());
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
function deserialize_UpdatePurchaseRequisitionFileReq(buffer_arg) {
|
|
318
|
+
return prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionFileReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
319
|
+
}
|
|
320
|
+
|
|
288
321
|
function serialize_UpdatePurchaseRequisitionTemplateRequest(arg) {
|
|
289
322
|
if (!(arg instanceof prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTemplateRequest)) {
|
|
290
323
|
throw new Error('Expected argument of type UpdatePurchaseRequisitionTemplateRequest');
|
|
@@ -375,6 +408,17 @@ var PurchaseRequisitionTrxServiceService = exports.PurchaseRequisitionTrxService
|
|
|
375
408
|
responseSerialize: serialize_UpdatePurchaseRequisitionTrxResponse,
|
|
376
409
|
responseDeserialize: deserialize_UpdatePurchaseRequisitionTrxResponse,
|
|
377
410
|
},
|
|
411
|
+
updatePurchaseRequisitionFile: {
|
|
412
|
+
path: '/PurchaseRequisitionTrxService/UpdatePurchaseRequisitionFile',
|
|
413
|
+
requestStream: false,
|
|
414
|
+
responseStream: false,
|
|
415
|
+
requestType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionFileReq,
|
|
416
|
+
responseType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.UpdatePurchaseRequisitionTrxResponse,
|
|
417
|
+
requestSerialize: serialize_UpdatePurchaseRequisitionFileReq,
|
|
418
|
+
requestDeserialize: deserialize_UpdatePurchaseRequisitionFileReq,
|
|
419
|
+
responseSerialize: serialize_UpdatePurchaseRequisitionTrxResponse,
|
|
420
|
+
responseDeserialize: deserialize_UpdatePurchaseRequisitionTrxResponse,
|
|
421
|
+
},
|
|
378
422
|
getPurchaseRequisitionTrxById: {
|
|
379
423
|
path: '/PurchaseRequisitionTrxService/GetPurchaseRequisitionTrxById',
|
|
380
424
|
requestStream: false,
|
|
@@ -408,6 +452,17 @@ var PurchaseRequisitionTrxServiceService = exports.PurchaseRequisitionTrxService
|
|
|
408
452
|
responseSerialize: serialize_GetPurchaseRequisitionTrxListResponse,
|
|
409
453
|
responseDeserialize: deserialize_GetPurchaseRequisitionTrxListResponse,
|
|
410
454
|
},
|
|
455
|
+
deletePurchaseRequisition: {
|
|
456
|
+
path: '/PurchaseRequisitionTrxService/DeletePurchaseRequisition',
|
|
457
|
+
requestStream: false,
|
|
458
|
+
responseStream: false,
|
|
459
|
+
requestType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.DeletePurchaseRequisitionRequest,
|
|
460
|
+
responseType: prisca_v1_purchase_requisition_trx_purchase_requisition_trx_pb.DeletePurchaseRequisitionResponse,
|
|
461
|
+
requestSerialize: serialize_DeletePurchaseRequisitionRequest,
|
|
462
|
+
requestDeserialize: deserialize_DeletePurchaseRequisitionRequest,
|
|
463
|
+
responseSerialize: serialize_DeletePurchaseRequisitionResponse,
|
|
464
|
+
responseDeserialize: deserialize_DeletePurchaseRequisitionResponse,
|
|
465
|
+
},
|
|
411
466
|
getPurchaseRequisitionTrxListStatusApproved: {
|
|
412
467
|
path: '/PurchaseRequisitionTrxService/GetPurchaseRequisitionTrxListStatusApproved',
|
|
413
468
|
requestStream: false,
|