New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@5minds/processcube_engine_client

Package Overview
Dependencies
Maintainers
29
Versions
709
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@5minds/processcube_engine_client - npm Package Compare versions

Comparing version 6.0.0-feature-37eca2-m7bx5qel to 6.0.0-feature-3a4f04-m7esx9ho

1

dist/Clients/ProcessDefinitionHttpClient.d.ts

@@ -13,3 +13,2 @@ import { DataModels, IProcessDefinitionExtensionAdapter } from '@5minds/processcube_engine_sdk';

getById(processDefinitionId: string, identity?: IdentityLike): Promise<DataModels.ProcessDefinitions.ProcessDefinition>;
getAllDeployedById(processDefinitionId: string, identity?: IdentityLike): Promise<DataModels.ProcessDefinitions.ProcessDefinitionList>;
getByProcessModelId(processModelId: string, identity?: IdentityLike): Promise<DataModels.ProcessDefinitions.ProcessDefinition>;

@@ -16,0 +15,0 @@ persistProcessDefinitions(xml: string | Array<string>, options?: {

4

dist/Clients/ProcessInstanceHttpClient.d.ts

@@ -1,2 +0,2 @@

import { BpmnType, DataModels, IProcessInstanceExtensionAdapter } from '@5minds/processcube_engine_sdk';
import { BpmnType, DataModels, DeleteProcessInstanceQuery, IProcessInstanceExtensionAdapter } from '@5minds/processcube_engine_sdk';
import { IdentityLike } from '../IdentityAccessor';

@@ -31,4 +31,4 @@ import { BaseClient } from './BaseClient';

}): Promise<void>;
deleteProcessInstances(processInstanceIds: string | Array<string>, deleteAllRelatedData?: boolean, identity?: IdentityLike): Promise<void>;
deleteProcessInstances(processInstanceQuery: string | Array<string> | DeleteProcessInstanceQuery, deleteAllRelatedData?: boolean, identity?: IdentityLike): Promise<void>;
private handleError;
}

@@ -13,3 +13,2 @@ import { DataModels, IProcessModelExtensionAdapter } from '@5minds/processcube_engine_sdk';

getById(processModelId: string, identity?: IdentityLike): Promise<DataModels.ProcessDefinitions.ProcessModel>;
getByHash(processDefinitionHash: string, identity?: IdentityLike): Promise<DataModels.ProcessDefinitions.ProcessModel>;
getByProcessInstanceId(processInstanceId: string, identity?: IdentityLike): Promise<DataModels.ProcessDefinitions.ProcessModel>;

@@ -16,0 +15,0 @@ startProcessInstance<TPayload extends object>(options: ProcessStartOptions<TPayload>, identity?: IdentityLike): Promise<ProcessStartResponse>;

@@ -27,13 +27,2 @@ "use strict";

}
async getAllDeployedById(processDefinitionId, identity) {
const endpoint = index_1.restSettings.paths.getAllDeployedProcessDefinitionsById.replace(index_1.restSettings.params.processDefinitionId, processDefinitionId);
const url = this.buildUrl(endpoint);
const requestAuthHeaders = await this.createRequestAuthHeaders(identity);
const response = await this.httpClient.get(url, requestAuthHeaders);
const result = response.result;
return {
processDefinitions: result.processDefinitions.map(Mappers_1.mapProcessDefinition),
totalCount: result.totalCount,
};
}
async getByProcessModelId(processModelId, identity) {

@@ -40,0 +29,0 @@ const endpoint = index_1.restSettings.paths.getProcessDefinitionForProcessModel.replace(index_1.restSettings.params.processModelId, processModelId);

@@ -84,6 +84,31 @@ "use strict";

}
async deleteProcessInstances(processInstanceIds, deleteAllRelatedData = false, identity) {
const serializedProcessInstanceIds = Array.isArray(processInstanceIds) ? processInstanceIds.join(';') : processInstanceIds;
async deleteProcessInstances(processInstanceQuery, deleteAllRelatedData = false, identity) {
if (!processInstanceQuery) {
return;
}
let url = this.buildUrl(index_1.restSettings.paths.deleteProcessInstances);
url = this.addParameterToUrl(url, 'process_instance_ids', serializedProcessInstanceIds);
if (Array.isArray(processInstanceQuery)) {
const serializedProcessInstanceIds = processInstanceQuery.join(';');
url = this.addParameterToUrl(url, 'process_instance_ids', serializedProcessInstanceIds);
}
else if (typeof processInstanceQuery === 'string') {
url = this.addParameterToUrl(url, 'process_instance_ids', processInstanceQuery);
}
else {
if (processInstanceQuery?.processInstanceId) {
const serializedProcessInstanceIds = Array.isArray(processInstanceQuery.processInstanceId)
? processInstanceQuery.processInstanceId.join(';')
: processInstanceQuery.processInstanceId;
url = this.addParameterToUrl(url, 'process_instance_ids', serializedProcessInstanceIds);
}
if (processInstanceQuery?.processModelId) {
url = this.addParameterToUrl(url, 'process_model_id', processInstanceQuery.processModelId);
}
if (processInstanceQuery?.finishedBefore) {
url = this.addParameterToUrl(url, 'finishedBefore', processInstanceQuery.finishedBefore);
}
if (processInstanceQuery?.finishedAfter) {
url = this.addParameterToUrl(url, 'finishedAfter', processInstanceQuery.finishedAfter);
}
}
if (deleteAllRelatedData) {

@@ -90,0 +115,0 @@ url = this.addParameterToUrl(url, 'delete_all_related_data', deleteAllRelatedData);

@@ -27,10 +27,2 @@ "use strict";

}
async getByHash(processDefinitionHash, identity) {
const endpoint = index_1.restSettings.paths.getProcessModelByHash.replace(index_1.restSettings.params.hash, processDefinitionHash);
const url = this.buildUrl(endpoint);
const requestAuthHeaders = await this.createRequestAuthHeaders(identity);
const response = await this.httpClient.get(url, requestAuthHeaders);
const processModel = response.result;
return processModel;
}
async getByProcessInstanceId(processInstanceId, identity) {

@@ -37,0 +29,0 @@ const endpoint = index_1.restSettings.paths.getProcessModelForProcessInstance.replace(index_1.restSettings.params.processInstanceId, processInstanceId);

@@ -29,4 +29,2 @@ "use strict";

processModelId: ':process_model_id',
// Hash of a ProcessModel.
hash: ':hash',
// Id of an anonymous session.

@@ -256,9 +254,2 @@ sessionId: ':session_id',

/**
* Gets all deployed versions of a ProcessDefinition by its id.
* @tags ProcessDefinitions
* @method get
* @responseType ProcessDefinitionList
*/
getAllDeployedProcessDefinitionsById: `/process_definitions/${params.processDefinitionId}/get_all_deployed`,
/**
* Deletes the ProcessDefinition with the given ID.

@@ -287,9 +278,2 @@ * Per default, a Process is only flagged as deleted. To actually delete the Process and all related data, set "delete_all_related_data" to "true".

/**
* Gets a deployed Process Model by its Hash.
* @tags ProcessModels
* @method get
* @responseType ProcessModel
*/
getProcessModelByHash: `/process_models/hash/${params.hash}/`,
/**
* Gets a ProcessDefinition for a given ProcessModel.

@@ -296,0 +280,0 @@ * @tags ProcessModels

@@ -15,3 +15,2 @@ export declare const restSettings: {

processModelId: string;
hash: string;
sessionId: string;

@@ -229,9 +228,2 @@ userId: string;

/**
* Gets all deployed versions of a ProcessDefinition by its id.
* @tags ProcessDefinitions
* @method get
* @responseType ProcessDefinitionList
*/
getAllDeployedProcessDefinitionsById: string;
/**
* Deletes the ProcessDefinition with the given ID.

@@ -259,9 +251,2 @@ * Per default, a Process is only flagged as deleted. To actually delete the Process and all related data, set "delete_all_related_data" to "true".

/**
* Gets a deployed Process Model by its Hash.
* @tags ProcessModels
* @method get
* @responseType ProcessModel
*/
getProcessModelByHash: string;
/**
* Gets a ProcessDefinition for a given ProcessModel.

@@ -268,0 +253,0 @@ * @tags ProcessModels

@@ -7,3 +7,3 @@ {

"name": "@5minds/processcube_engine_client",
"version": "6.0.0-feature-37eca2-m7bx5qel",
"version": "6.0.0-feature-3a4f04-m7esx9ho",
"description": "Contains a typescript based client for accessing the Engine.",

@@ -43,3 +43,3 @@ "main": "dist/commonjs/index.js",

"dependencies": {
"@5minds/processcube_engine_sdk": "^6.1.0-feature-9ff938-m7bvz0uz",
"@5minds/processcube_engine_sdk": "6.1.0-feature-0c4d8b-m7c1i8sm",
"async-lock": "^1.4.1",

@@ -46,0 +46,0 @@ "bufferutil": "4.0.9",

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