@cloudhospital/integratedservicesfunctionsapp.client
TypeScript icon, indicating that this package has built-in type declarations

1.2.9 • Public • Published

Azure Functions App Client

Overview

Client libaray for CloudHospital.IntegratedServicesFunctionsApp Azure Functions App.

Usages

Install

$ npm i --save @cloudhospital/integratedservicesfunctionsapp.client

Example

import { CreateGitHubIssueClient } from '@cloudhospital/integratedservicesfunctionsapp.client';
import { type GitHubIssueRequestModel } from '@cloudhospital/integratedservicesfunctionsapp.client';

// ...

const createGitHubIssueClient = new CreateGitHubIssueClient({
    apiKey: '<api-key>',
    baseUrl: '<Base url of Azure Functions App>',
});

let model: GitHubIssueRequestModel;

try {
    throw new Error('Test error');
} catch (err) {
    if (err instanceof Error) {
        model = {
            owner: process.env.OWNER ?? '',
            repo: process.env.REPO ?? '',
            stage: process.env.STAGE ?? '',
            error: {
                message: err.message,
                stack: err.stack,
            },
            note: `You can provide more information

**Markdown** supported. ;)

`,
        };

        await createGitHubIssueClient.requestAsync(model);
    }
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.2.921latest

Version History

VersionDownloads (Last 7 Days)Published
1.2.921
1.2.80
1.2.115
1.2.00
1.1.10
1.1.00
1.0.30

Package Sidebar

Install

npm i @cloudhospital/integratedservicesfunctionsapp.client

Weekly Downloads

32

Version

1.2.9

License

MIT

Unpacked Size

161 kB

Total Files

20

Last publish

Collaborators

  • cloudhospital