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.9.5 to 4.9.6

2

package.json
{
"name": "@adempiere/grpc-api",
"version": "4.9.5",
"version": "4.9.6",
"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) 2018-present E.R.P. Consultores y Asociados, C.A. *
// Contributor(s): Edwin Betancourt EdwinBetanc0urt@outlook.com *

@@ -8,0 +8,0 @@ // This program is free software: you can redistribute it and/or modify *

/*************************************************************************************
* Product: ADempiere gRPC User Customization Client *
* Copyright (C) 2012-2023 E.R.P. Consultores y Asociados, C.A. *
* Copyright (C) 2018-present E.R.P. Consultores y Asociados, C.A. *
* Contributor(s): Edwin Betancourt EdwinBetanc0urt@outlook.com *

@@ -18,3 +18,3 @@ * This program is free software: you can redistribute it and/or modify *

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

@@ -79,3 +79,5 @@ class UserCustomization {

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

@@ -112,3 +114,5 @@

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

@@ -145,3 +149,5 @@

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

@@ -164,3 +170,3 @@

* @param {string} tabUuid
* @param {number} level
* @param {number} levelType
* @param {number} levelId

@@ -177,3 +183,3 @@ * @param {string} levelUuid

tabUuid,
level,
levelType,
levelId,

@@ -188,5 +194,7 @@ levelUuid,

request.setLevel(level);
request.setLevelType(
getValidInteger(levelType)
);
request.setLevelId(
getValidId(levelId)
getValidInteger(levelId)
);

@@ -229,3 +237,3 @@ request.setLevelUuid(levelUuid);

* @param {string} browseUuid
* @param {number} level
* @param {number} levelType
* @param {number} levelId

@@ -242,3 +250,3 @@ * @param {string} levelUuid

browseUuid,
level,
levelType,
levelId,

@@ -253,5 +261,7 @@ levelUuid,

request.setLevel(level);
request.setLevelType(
getValidInteger(levelType)
);
request.setLevelId(
getValidId(levelId)
getValidInteger(levelId)
);

@@ -294,3 +304,3 @@ request.setLevelUuid(levelUuid);

* @param {string} processUuid
* @param {number} level
* @param {number} levelType
* @param {number} levelId

@@ -307,3 +317,3 @@ * @param {string} levelUuid

processUuid,
level,
levelType,
levelId,

@@ -318,5 +328,7 @@ levelUuid,

request.setLevel(level);
request.setLevelType(
getValidInteger(levelType)
);
request.setLevelId(
getValidId(levelId)
getValidInteger(levelId)
);

@@ -323,0 +335,0 @@ request.setLevelUuid(levelUuid);

/*************************************************************************************
* Product: ADempiere gRPC Workflow Client Convert Utils *
* Copyright (C) 2012-2020 E.R.P. Consultores y Asociados, C.A. *
* Product: ADempiere gRPC User Customization Client Convert Utils *
* Copyright (C) 2018-present E.R.P. Consultores y Asociados, C.A. *
* Contributor(s): Edwin Betancourt EdwinBetanc0urt@outlook.com *

@@ -27,8 +27,8 @@ * This program is free software: you can redistribute it and/or modify *

*/
function getLevel({ key, value }) {
function getLevelType({ key, value }) {
const { getValueOrKeyEnum } = require('@adempiere/grpc-api/src/utils/convertEnums.js');
const { Level } = stubFile;
const { LevelType } = stubFile;
return getValueOrKeyEnum({
list: Level,
list: LevelType,
key,

@@ -65,12 +65,12 @@ value

function getLevelCustomizationFromGRPC(levelCustomizationToConvert) {
if (!levelCustomizationToConvert) {
function getCustomizationLevelFromGRPC(customizationLevel) {
if (!customizationLevel) {
return undefined;
}
return {
id: levelCustomizationToConvert.getId(),
id: customizationLevel.getId(),
uuid: levelCustomizationToConvert.getUuid(),
value: levelCustomizationToConvert.getValue(),
name: levelCustomizationToConvert.getName(),
description: levelCustomizationToConvert.getDescription()
value: customizationLevel.getValue(),
name: customizationLevel.getName(),
description: customizationLevel.getDescription()
};

@@ -80,6 +80,6 @@ }

module.exports = {
getLevel,
getLevelType,
getUserFromGRPC,
getRoleFromGRPC,
getLevelCustomizationFromGRPC
getCustomizationLevelFromGRPC
};
/*************************************************************************************
* Product: ADempiere gRPC Workflow Client Convert Utils *
* Copyright (C) 2012-2020 E.R.P. Consultores y Asociados, C.A. *
* Product: ADempiere gRPC User Customization Client Convert Utils *
* Copyright (C) 2018-present E.R.P. Consultores y Asociados, C.A. *
* Contributor(s): Edwin Betancourt EdwinBetanc0urt@outlook.com *

@@ -28,4 +28,4 @@ * This program is free software: you can redistribute it and/or modify *

columnName, sequence, color,
isDefaultDisplayed, displaySize,
displayComponentType, componenTemplateCode
isDefaultDisplayedAsPanel, isDefaultDisplayedAsTable,
displaySize, displayComponentType, componenTemplateCode
}) {

@@ -38,3 +38,4 @@ const { FieldAttributes } = stubFile;

fieldAttributesInstance.setColor(color);
fieldAttributesInstance.setIsDefaultDisplayed(isDefaultDisplayed);
fieldAttributesInstance.setIsDefaultDisplayedAsPanel(isDefaultDisplayedAsPanel);
fieldAttributesInstance.setIsDefaultDisplayedAsTable(isDefaultDisplayedAsTable);
fieldAttributesInstance.setDisplaySize(displaySize);

@@ -41,0 +42,0 @@ fieldAttributesInstance.setDisplayComponentType(displayComponentType);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

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

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