Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@adempiere/grpc-api

Package Overview
Dependencies
Maintainers
4
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adempiere/grpc-api - npm Package Compare versions

Comparing version 1.7.3 to 1.7.4

.github/workflows/package-publish.yml

32

lib/convertPointOfSales.js

@@ -64,2 +64,5 @@ /*************************************************************************************

),
refund_reference_currency: convertCurrencyFromGRPC(
pointOfSales.getRefundReferenceCurrency()
),
conversion_type_uuid: pointOfSales.getConversionTypeUuid(),

@@ -212,3 +215,6 @@ key_layout_uuid: pointOfSales.getKeyLayoutUuid(),

availableTenderType.getMaximumDailyRefundAllowed()
)
),
refund_reference_currency: convertCurrencyFromGRPC(
availableTenderType.getRefundReferenceCurrency()
),
}

@@ -346,2 +352,26 @@ }

convertAvailableRefundGRPC(availableRefund) {
if (availableRefund) {
const {
getDecimalFromGRPC
} = require('./convertBaseDataType.js');
return {
refund: getDecimalFromGRPC(
availableRefund.getQuantity()
),
tender_type_refunds: availableRefund.getTenderTypeRefundsList()
.map(tenderTypeRefund => {
return {
tender_type: tenderTypeRefund.getTenderType(),
refund: getDecimalFromGRPC(
tenderTypeRefund.getQuantity()
)
}
})
};
}
return undefined;
},
convertKeyFromGRPC(key) {

@@ -348,0 +378,0 @@ if (key) {

8

package.json
{
"name": "@adempiere/grpc-api",
"version": "1.7.3",
"version": "1.7.4",
"description": "ADempiere Web Store write in Javascript for a node service",

@@ -35,7 +35,7 @@ "author": "Yamel Senih",

"dependencies": {
"@grpc/grpc-js": "^1.2.12",
"google-protobuf": "^3.15.6"
"@grpc/grpc-js": "1.3.7",
"google-protobuf": "3.17.3"
},
"devDependencies": {
"grpc-tools": "^1.11.1"
"grpc-tools": "1.11.2"
},

@@ -42,0 +42,0 @@ "engines": {

@@ -12,3 +12,2 @@ ADempiere gRPC-API library to Node.js

[![Downloads](https://img.shields.io/npm/dm/@adempiere/grpc-api.svg)](https://www.npmjs.com/package/@adempiere/grpc-api)
[![Dependencies](https://img.shields.io/librariesio/github/@adempiere/grpc-api.svg)](https://www.npmjs.com/package/@adempiere/grpc-api)

@@ -15,0 +14,0 @@ ADempiere node.js write in JavaScript for gRPC service, currently is used as library of proxy ADempiere service and is published as NPM

@@ -25,2 +25,13 @@ // GENERATED CODE -- DO NOT EDIT!

function serialize_data_AvailableRefund(arg) {
if (!(arg instanceof proto_point_of_sales_pb.AvailableRefund)) {
throw new Error('Expected argument of type data.AvailableRefund');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_data_AvailableRefund(buffer_arg) {
return proto_point_of_sales_pb.AvailableRefund.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_data_CreateCustomerRequest(arg) {

@@ -125,2 +136,13 @@ if (!(arg instanceof proto_point_of_sales_pb.CreateCustomerRequest)) {

function serialize_data_GetAvailableRefundRequest(arg) {
if (!(arg instanceof proto_point_of_sales_pb.GetAvailableRefundRequest)) {
throw new Error('Expected argument of type data.GetAvailableRefundRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_data_GetAvailableRefundRequest(buffer_arg) {
return proto_point_of_sales_pb.GetAvailableRefundRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_data_GetCustomerRequest(arg) {

@@ -874,4 +896,16 @@ if (!(arg instanceof proto_point_of_sales_pb.GetCustomerRequest)) {

},
// Get Daily Refund
getAvailableRefund: {
path: '/data.Store/GetAvailableRefund',
requestStream: false,
responseStream: false,
requestType: proto_point_of_sales_pb.GetAvailableRefundRequest,
responseType: proto_point_of_sales_pb.AvailableRefund,
requestSerialize: serialize_data_GetAvailableRefundRequest,
requestDeserialize: deserialize_data_GetAvailableRefundRequest,
responseSerialize: serialize_data_AvailableRefund,
responseDeserialize: deserialize_data_AvailableRefund,
},
};
exports.StoreClient = grpc.makeGenericClientConstructor(StoreService);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc