0.2.3 • Published 2 years ago

mecmapi v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

MECMAPI

npm
Manage Engine ECMA Script (node.js) UMD module/Library/Framework to work with REST API of ServiceDesk Plus


INSTALL/IMPORT

CDN

npm
Change version as needed in URL bellow:

https://cdn.jsdelivr.net/npm/mecmapi@0.2.1/index.js

NPM

https://www.npmjs.com/package/mecmapi

npm install mecmapi --save

USAGE EXAMPLE

browser

const mecmapi = new window.mecmapi({});

const scrProcessing = async (requestId, request) => {
    const noteDescription = `В ОБРАБОТКЕ  -//-  PROCESSING  ©`;

    const res = await mecmapi.updateRequest(requestId, {
        "group": {
            "name": "IT"
        },
        "request_type": {
            "name": "Request"
        },
        "level": {
            "name": "Coordinators"
        },
        "status": {
            "name": "Processing"
        },
        "udf_fields": {
            "udf_pick_1205": await vut.getUpdatedCoordinator()
        },
        "technician": null,
        ...request
    });
    await mecmapi.addNote(requestId, {
        "mark_first_response": true,
        "add_to_linked_requests": false,
        "notify_technician": false,
        "show_to_requester": false,
        "description": noteDescription
    })
}

const rid = vut.getRequestId();
scrProcessing(rid).then(() => {
    vut.gotoRequest(rid);
});
// CHANGELOG.md
0.2.1

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.338

2 years ago

0.1.337

2 years ago

0.1.339

2 years ago

0.1.345

2 years ago

0.1.334

2 years ago

0.1.344

2 years ago

0.1.333

2 years ago

0.1.336

2 years ago

0.1.335

2 years ago

0.1.341

2 years ago

0.1.340

2 years ago

0.1.343

2 years ago

0.1.342

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago