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

@adempiere/grpc-api

Package Overview
Dependencies
Maintainers
5
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 4.5.4 to 4.5.5

2

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

@@ -5,0 +5,0 @@ "author": "Yamel Senih",

@@ -5,3 +5,3 @@ // GENERATED CODE -- DO NOT EDIT!

// ***********************************************************************************
// Copyright (C) 2012-2022 E.R.P. Consultores y Asociados, C.A. *
// Copyright (C) 2012-2023 E.R.P. Consultores y Asociados, C.A. *
// Contributor(s): Edwin Betancourt EdwinBetanc0urt@outlook.com *

@@ -47,2 +47,13 @@ // This program is free software: you can redistribute it and/or modify *

function serialize_data_ListLookupItemsResponse(arg) {
if (!(arg instanceof proto_business_pb.ListLookupItemsResponse)) {
throw new Error('Expected argument of type data.ListLookupItemsResponse');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_data_ListLookupItemsResponse(buffer_arg) {
return proto_business_pb.ListLookupItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_general_ledger_GetAccountingCombinationRequest(arg) {

@@ -70,5 +81,5 @@ if (!(arg instanceof proto_general_ledger_pb.GetAccountingCombinationRequest)) {

function serialize_general_ledger_ListAccoutingFactsRequest(arg) {
if (!(arg instanceof proto_general_ledger_pb.ListAccoutingFactsRequest)) {
throw new Error('Expected argument of type general_ledger.ListAccoutingFactsRequest');
function serialize_general_ledger_ListAccountingDocumentsRequest(arg) {
if (!(arg instanceof proto_general_ledger_pb.ListAccountingDocumentsRequest)) {
throw new Error('Expected argument of type general_ledger.ListAccountingDocumentsRequest');
}

@@ -78,6 +89,61 @@ return Buffer.from(arg.serializeBinary());

function deserialize_general_ledger_ListAccoutingFactsRequest(buffer_arg) {
return proto_general_ledger_pb.ListAccoutingFactsRequest.deserializeBinary(new Uint8Array(buffer_arg));
function deserialize_general_ledger_ListAccountingDocumentsRequest(buffer_arg) {
return proto_general_ledger_pb.ListAccountingDocumentsRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_general_ledger_ListAccountingDocumentsResponse(arg) {
if (!(arg instanceof proto_general_ledger_pb.ListAccountingDocumentsResponse)) {
throw new Error('Expected argument of type general_ledger.ListAccountingDocumentsResponse');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_general_ledger_ListAccountingDocumentsResponse(buffer_arg) {
return proto_general_ledger_pb.ListAccountingDocumentsResponse.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_general_ledger_ListAccountingFactsRequest(arg) {
if (!(arg instanceof proto_general_ledger_pb.ListAccountingFactsRequest)) {
throw new Error('Expected argument of type general_ledger.ListAccountingFactsRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_general_ledger_ListAccountingFactsRequest(buffer_arg) {
return proto_general_ledger_pb.ListAccountingFactsRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_general_ledger_ListAccountingSchemasRequest(arg) {
if (!(arg instanceof proto_general_ledger_pb.ListAccountingSchemasRequest)) {
throw new Error('Expected argument of type general_ledger.ListAccountingSchemasRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_general_ledger_ListAccountingSchemasRequest(buffer_arg) {
return proto_general_ledger_pb.ListAccountingSchemasRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_general_ledger_ListOrganizationsRequest(arg) {
if (!(arg instanceof proto_general_ledger_pb.ListOrganizationsRequest)) {
throw new Error('Expected argument of type general_ledger.ListOrganizationsRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_general_ledger_ListOrganizationsRequest(buffer_arg) {
return proto_general_ledger_pb.ListOrganizationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_general_ledger_ListPostingTypesRequest(arg) {
if (!(arg instanceof proto_general_ledger_pb.ListPostingTypesRequest)) {
throw new Error('Expected argument of type general_ledger.ListPostingTypesRequest');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_general_ledger_ListPostingTypesRequest(buffer_arg) {
return proto_general_ledger_pb.ListPostingTypesRequest.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_general_ledger_SaveAccountingCombinationRequest(arg) {

@@ -119,3 +185,3 @@ if (!(arg instanceof proto_general_ledger_pb.SaveAccountingCombinationRequest)) {

var GeneralLedgerService = exports.GeneralLedgerService = {
// Load Accounting Combination
// Accounting Combination
getAccountingCombination: {

@@ -132,4 +198,3 @@ path: '/general_ledger.GeneralLedger/getAccountingCombination',

},
// List Accounting Combinations
listAccountingCombinations: {
listAccountingCombinations: {
path: '/general_ledger.GeneralLedger/ListAccountingCombinations',

@@ -145,4 +210,3 @@ requestStream: false,

},
// Save Accounting Combination
saveAccountingCombination: {
saveAccountingCombination: {
path: '/general_ledger.GeneralLedger/SaveAccountingCombination',

@@ -158,16 +222,59 @@ requestStream: false,

},
// List Accouting Facts
listAccoutingFacts: {
path: '/general_ledger.GeneralLedger/ListAccoutingFacts',
// Accounting Viewer
listAccountingSchemas: {
path: '/general_ledger.GeneralLedger/ListAccountingSchemas',
requestStream: false,
responseStream: false,
requestType: proto_general_ledger_pb.ListAccoutingFactsRequest,
requestType: proto_general_ledger_pb.ListAccountingSchemasRequest,
responseType: proto_business_pb.ListLookupItemsResponse,
requestSerialize: serialize_general_ledger_ListAccountingSchemasRequest,
requestDeserialize: deserialize_general_ledger_ListAccountingSchemasRequest,
responseSerialize: serialize_data_ListLookupItemsResponse,
responseDeserialize: deserialize_data_ListLookupItemsResponse,
},
listPostingTypes: {
path: '/general_ledger.GeneralLedger/ListPostingTypes',
requestStream: false,
responseStream: false,
requestType: proto_general_ledger_pb.ListPostingTypesRequest,
responseType: proto_business_pb.ListLookupItemsResponse,
requestSerialize: serialize_general_ledger_ListPostingTypesRequest,
requestDeserialize: deserialize_general_ledger_ListPostingTypesRequest,
responseSerialize: serialize_data_ListLookupItemsResponse,
responseDeserialize: deserialize_data_ListLookupItemsResponse,
},
listAccountingDocuments: {
path: '/general_ledger.GeneralLedger/ListAccountingDocuments',
requestStream: false,
responseStream: false,
requestType: proto_general_ledger_pb.ListAccountingDocumentsRequest,
responseType: proto_general_ledger_pb.ListAccountingDocumentsResponse,
requestSerialize: serialize_general_ledger_ListAccountingDocumentsRequest,
requestDeserialize: deserialize_general_ledger_ListAccountingDocumentsRequest,
responseSerialize: serialize_general_ledger_ListAccountingDocumentsResponse,
responseDeserialize: deserialize_general_ledger_ListAccountingDocumentsResponse,
},
listOrganizations: {
path: '/general_ledger.GeneralLedger/ListOrganizations',
requestStream: false,
responseStream: false,
requestType: proto_general_ledger_pb.ListOrganizationsRequest,
responseType: proto_business_pb.ListLookupItemsResponse,
requestSerialize: serialize_general_ledger_ListOrganizationsRequest,
requestDeserialize: deserialize_general_ledger_ListOrganizationsRequest,
responseSerialize: serialize_data_ListLookupItemsResponse,
responseDeserialize: deserialize_data_ListLookupItemsResponse,
},
listAccountingFacts: {
path: '/general_ledger.GeneralLedger/ListAccountingFacts',
requestStream: false,
responseStream: false,
requestType: proto_general_ledger_pb.ListAccountingFactsRequest,
responseType: proto_business_pb.ListEntitiesResponse,
requestSerialize: serialize_general_ledger_ListAccoutingFactsRequest,
requestDeserialize: deserialize_general_ledger_ListAccoutingFactsRequest,
requestSerialize: serialize_general_ledger_ListAccountingFactsRequest,
requestDeserialize: deserialize_general_ledger_ListAccountingFactsRequest,
responseSerialize: serialize_data_ListEntitiesResponse,
responseDeserialize: deserialize_data_ListEntitiesResponse,
},
// Start Re-Post
startRePost: {
startRePost: {
path: '/general_ledger.GeneralLedger/StartRePost',

@@ -174,0 +281,0 @@ requestStream: false,

@@ -18,3 +18,5 @@ /*************************************************************************************

const { getMetadata } = require('@adempiere/grpc-api/src/utils/metadata.js');
const { isEmptyValue, getTypeOfValue, getValidId } = require('@adempiere/grpc-api/src/utils/valueUtils.js');
const {
isEmptyValue, getTimestamp, getTypeOfValue, getValidInteger
} = require('@adempiere/grpc-api/src/utils/valueUtils.js');

@@ -134,3 +136,3 @@ class GeneralLedger {

request.setId(
getValidId(id)
getValidInteger(id)
);

@@ -168,3 +170,3 @@ request.setUuid(uuid);

request.setId(
getValidId(id)
getValidInteger(id)
);

@@ -232,3 +234,3 @@ request.setUuid(uuid);

request.setRecordId(
getValidId(recordId)
getValidInteger(recordId)
);

@@ -249,8 +251,133 @@ request.setRecordUuid(recordUuid);

listAccoutingFacts({
listAccountingSchemas({
token,
// DSL
searchValue,
// Page Data
pageSize,
pageToken
}, callback) {
const {
ListAccountingSchemasRequest
} = this.stubFile
const request = new ListAccountingSchemasRequest();
request.setSearchValue(searchValue);
request.setPageSize(
getValidInteger(pageSize)
);
request.setPageToken(pageToken);
const metadata = getMetadata({
token
});
this.getGeneralLedgerService().listAccountingSchemas(
request,
metadata,
callback
);
}
listPostingTypes({
token,
// DSL
searchValue,
// Page Data
pageSize,
pageToken
}, callback) {
const {
ListPostingTypesRequest
} = this.stubFile
const request = new ListPostingTypesRequest();
request.setSearchValue(searchValue);
request.setPageSize(
getValidInteger(pageSize)
);
request.setPageToken(pageToken);
const metadata = getMetadata({
token
});
this.getGeneralLedgerService().listPostingTypes(
request,
metadata,
callback
);
}
listAccountingDocuments({
token,
// DSL
searchValue,
// Page Data
pageSize,
pageToken
}, callback) {
const {
ListAccountingDocumentsRequest
} = this.stubFile
const request = new ListAccountingDocumentsRequest();
request.setSearchValue(searchValue);
request.setPageSize(
getValidInteger(pageSize)
);
request.setPageToken(pageToken);
const metadata = getMetadata({
token
});
this.getGeneralLedgerService().listAccountingDocuments(
request,
metadata,
callback
);
}
listOrganizations({
token,
// DSL
searchValue,
// Page Data
pageSize,
pageToken
}, callback) {
const {
ListOrganizationsRequest
} = this.stubFile
const request = new ListOrganizationsRequest();
request.setSearchValue(searchValue);
request.setPageSize(
getValidInteger(pageSize)
);
request.setPageToken(pageToken);
const metadata = getMetadata({
token
});
this.getGeneralLedgerService().listOrganizations(
request,
metadata,
callback
);
}
listAccountingFacts({
token,
// DSL
accountingSchemaId,
postingType,
tableName,
recordId,
recordUuid,
dateFrom,
dateTo,
organizationId,
filters = [],

@@ -262,12 +389,30 @@ // Page Data

const {
ListAccoutingFactsRequest
ListAccountingFactsRequest
} = this.stubFile
const request = new ListAccoutingFactsRequest();
const request = new ListAccountingFactsRequest();
request.setAccountingSchemaId(
getValidInteger(accountingSchemaId)
);
request.setPostingType(postingType);
// source record filters
request.setTableName(tableName);
request.setRecordId(
getValidId(recordId)
getValidInteger(recordId)
);
request.setRecordUuid(recordUuid);
// other filters
request.setDateFrom(
getTimestamp(dateFrom)
);
request.setDateTo(
getTimestamp(dateTo)
);
request.setOrganizationId(
getValidInteger(organizationId)
);
// accoutiing dimensions filters
if (!isEmptyValue(filters)) {

@@ -283,3 +428,5 @@ const { getCriteriaToGRPC } = require('@adempiere/grpc-api/src/utils/baseDataTypeToGRPC.js');

request.setPageSize(pageSize);
request.setPageSize(
getValidInteger(pageSize)
);
request.setPageToken(pageToken);

@@ -291,3 +438,3 @@

this.getGeneralLedgerService().listAccoutingFacts(
this.getGeneralLedgerService().listAccountingFacts(
request,

@@ -294,0 +441,0 @@ metadata,

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