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

@newageerp/mp-types

Package Overview
Dependencies
Maintainers
0
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@newageerp/mp-types - npm Package Compare versions

Comparing version 1.0.25 to 1.0.26

10

dist/index.d.ts

@@ -132,2 +132,9 @@ type MpAggregateFunction = 'max' | 'min' | 'sum' | 'count' | 'countDistinct' | 'sumPercent' | 'countPercent' | 'countDistinctPercent' | 'cr';

type GetRequestParams = {
dataSource: string;
fields?: string[];
dataFilter?: MpFilterFactorySetUniversalItem[];
options?: AuthOptions;
};
type InsertRequestBody = {

@@ -146,4 +153,7 @@ table: string;

};
results: {
get: (props: GetRequestParams) => Promise<any>;
};
};
export { type MpAggregateColumn, type MpAggregateFunction, type MpChartSettings, type MpFilterAllTypes, type MpFilterCommonTypes, type MpFilterDateTypes, type MpFilterFactoryAdvancedFilterItem, type MpFilterFactoryItem, type MpFilterFactorySetItemsOnly, type MpFilterFactorySetUniversalItem, type MpFilterNumberTypes, type MpFilterStorageListRequest, type MpFilterStorageListResponse, type MpFilterStorageListResponseData, type MpFilterStorageRemoveRequest, type MpFilterStorageSaveRequest, type MpFilterStringTypes, type MpInfoColumnAllDataType, type MpInfoColumnDataTypeDate, type MpInfoColumnDataTypeNumber, type MpInfoColumnDataTypeText, type MpInfoRequestResponse, type MpInfoRequestResponseColumn, type MpOrderColumn, type MpPivotLocalSortItem, type MpPivotLocalSortItemDirection, type MpPivotSettings, type MpSelectRequestResponse, type MpSelectRequestResponseSql, _default as requests };

20

dist/index.js

@@ -63,2 +63,16 @@ "use strict";

// src/requests/get-request.ts
var getResults = (props) => __async(void 0, null, function* () {
let requestUrl = `${props.options ? props.options.baseUrl : process.env.MP_URL}/data-source/${props.dataSource}/results?_t=${(/* @__PURE__ */ new Date()).getTime()}`;
if (props.fields) {
requestUrl += `&fields=${encodeURIComponent(JSON.stringify(props.fields))}`;
}
if (props.dataFilter) {
requestUrl += `&dataFilter=${encodeURIComponent(JSON.stringify(props.dataFilter))}`;
}
const res = yield fetch(requestUrl, { headers: { "Authorization": `Bearer ${process.env.MP_KEY}` } });
const resJson = yield res.json();
return resJson;
});
// src/requests/index.ts

@@ -68,4 +82,8 @@ var insert = {

};
var results = {
get: getResults
};
var requests_default = {
insert
insert,
results
};

@@ -72,0 +90,0 @@ // Annotate the CommonJS export names for ESM import in node:

2

package.json
{
"name": "@newageerp/mp-types",
"version": "1.0.25",
"version": "1.0.26",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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 not supported yet

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