diff --git a/classes/app_router.InvalidCloudCenterEventSignatureError.html b/classes/app_router.InvalidCloudCenterEventSignatureError.html index 9acc8ed3..8eee6422 100644 --- a/classes/app_router.InvalidCloudCenterEventSignatureError.html +++ b/classes/app_router.InvalidCloudCenterEventSignatureError.html @@ -1,6 +1,6 @@ InvalidCloudCenterEventSignatureError | @dvelop-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InvalidCloudCenterEventSignatureError

RequestSignature is invalid for given appSecret.

-

Hierarchy

  • DvelopSdkError
    • InvalidCloudCenterEventSignatureError

Index

Constructors

Properties

message: string
name: string
originalError?: Error
stack?: string
stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • +

Hierarchy

  • DvelopSdkError
    • InvalidCloudCenterEventSignatureError

Index

Constructors

Properties

message: string
name: string
originalError?: Error
stack?: string
stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • prepareStackTrace(err: Error, stackTraces: CallSite[]): any
method: string

HTTP request method in upper case. For example GET, POST, DELETE

-
routeTemplate?: string
+
routeTemplate?: string

The matched route (path template). For example /users/:userID

-
url: string
+
url: string

Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. Usually the fragment is not transmitted over HTTP, but if it is known, it should be included nevertheless.

diff --git a/interfaces/logging.OtelProviderOptions.html b/interfaces/logging.OtelProviderOptions.html index e459f165..36605dcf 100644 --- a/interfaces/logging.OtelProviderOptions.html +++ b/interfaces/logging.OtelProviderOptions.html @@ -1,11 +1,11 @@ OtelProviderOptions | @dvelop-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OtelProviderOptions

Options for the otel provider.

-

Hierarchy

  • OtelProviderOptions

Index

Properties

appName: string
+

Hierarchy

  • OtelProviderOptions

Index

Properties

appName: string

Name of your app. Is included in every log statement.

-
appVersion?: string
+
appVersion?: string

Version string of your app. If set, it is included in every log statement.

-
instanceId?: string
+
instanceId?: string

ID of the current instance of your app. If set, it is included in every log statement.

-
transports: ((event: any) => Promise<void>)[]
+
transports: ((event: any) => Promise<void>)[]

Transport options for logging.

Legend

  • Namespace
  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Interface
  • Interface with type parameter
  • Property
  • Class

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/logging.OutgoingHttpRequest.html b/interfaces/logging.OutgoingHttpRequest.html index d609c659..d984563f 100644 --- a/interfaces/logging.OutgoingHttpRequest.html +++ b/interfaces/logging.OutgoingHttpRequest.html @@ -1,10 +1,10 @@ OutgoingHttpRequest | @dvelop-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OutgoingHttpRequest

Information about outgoing http requests

-

Hierarchy

  • OutgoingHttpRequest

Index

Properties

headers?: {}
+

Hierarchy

  • OutgoingHttpRequest

Index

Properties

headers?: {}

Values of some http headers.

-

Type declaration

  • [key: string]: string
method: string
+

Type declaration

  • [key: string]: string
method: string

HTTP request method in upper case. For example GET, POST, DELETE

-
url: string
+
url: string

Full HTTP request URL in the form scheme://host[:port]/path?query[#fragment]. Usually the fragment is not transmitted over HTTP, but if it is known, it should be included nevertheless.

diff --git a/interfaces/task.CompleteTaskParams.html b/interfaces/task.CompleteTaskParams.html index 097a24a4..d59d9c54 100644 --- a/interfaces/task.CompleteTaskParams.html +++ b/interfaces/task.CompleteTaskParams.html @@ -1,5 +1,5 @@ CompleteTaskParams | @dvelop-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CompleteTaskParams

Parameters for the completeTask-function.

-

Hierarchy

  • CompleteTaskParams

Index

Properties

Properties

location: string
+

Hierarchy

  • CompleteTaskParams

Index

Properties

Properties

location: string

Location-URI of the task.

Legend

  • Namespace
  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Interface
  • Interface with type parameter
  • Property
  • Class

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/task.CreateTaskParams.html b/interfaces/task.CreateTaskParams.html index f49fb907..736ec7c7 100644 --- a/interfaces/task.CreateTaskParams.html +++ b/interfaces/task.CreateTaskParams.html @@ -1,6 +1,6 @@ CreateTaskParams | @dvelop-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface CreateTaskParams

Parameters for the createTask-function.

-

Hierarchy

  • CreateTaskParams

Index

Properties

_links?: { attachment?: { href: string }; callback?: { href: string }; changeCallback?: { href: string }; form?: { href: string }; process?: { href: string } }
+

Hierarchy

  • CreateTaskParams

Index

Properties

_links?: { attachment?: { href: string }; callback?: { href: string }; changeCallback?: { href: string }; form?: { href: string }; process?: { href: string } }

Links to the task

Type declaration

  • Optional attachment?: { href: string }

    This URI is displayed as an action in the user interface to display additional information for the user.

    @@ -12,9 +12,9 @@

    This URI provides an editing dialog for the task. You can find further details in the section Adding editing dialogs.

    • href: string
  • Optional process?: { href: string }

    This URI represents the process by which the task was initiated. The process is displayed in the user interface as a separate perspective for the task. To display completed tasks, the resource has to implement a HEAD request, if the resource is behind the same base address.

    -
    • href: string
assignees: string[]
+
  • href: string
assignees: string[]

The recipients of the task. You can specify individual users as well as groups using IDs of the Identityprovider-App

-
context?: { key?: string; name?: string; type?: string }
+
context?: { key?: string; name?: string; type?: string }

The context of a task

Type declaration

  • Optional key?: string

    A technical identifier for the context

    @@ -22,33 +22,33 @@

    Display name of the context

  • Optional type?: string

    Type of the context

    -
correlationKey?: string
+
correlationKey?: string

The correlation key ensures that only one task is created for this unique key. If a task already exists with the passed key, a new task will not be created.

-
description?: string
+
description?: string

A descriptive text of the task

-
dmsObject?: { dmsObjectId: string; repositoryId: string }
+
dmsObject?: { dmsObjectId: string; repositoryId: string }

DmsObject that references the task.

Type declaration

  • dmsObjectId: string

    ID of the DmsObject

  • repositoryId: string

    ID of the repository

    -
dueDate?: Date
+
dueDate?: Date

Due date of the task. If you transfer a date without a timestamp, the due date is the transferred date at 00:00:00.

-
metadata?: { caption?: string; key?: string; type?: "String" | "Number" | "Money" | "Date"; values?: string }[]
+
metadata?: { caption?: string; key?: string; type?: "String" | "Number" | "Money" | "Date"; values?: string }[]

Metadata for the task. See the documentation for further information

-
priority?: number
+
priority?: number

Priority between 0 (low) and 100 (high)

-
reminderDate?: Date
+
reminderDate?: Date

Reminder date. If you transfer a date without a timestamp, the reminder date is the transferred date at 00:00:00.

-
retentionTime?: string
+
retentionTime?: string

Specify how long the task details should be kept after completing the task. Valid values are between 0 and 365 days. After this time has passed, the task details will be deleted automatically. The information is specified as a time span in days according to ISO-8601, e.g. P30D for 30 days. Specify the time span P0D if the task details should be deleted immediately after the task is completed. If you make no specification, 30 days are automatically assumed.

-
sendCompletionNotification?: boolean
+
sendCompletionNotification?: boolean

Specifies if a notification should be sent to the task creator when the task is completed. Default is false.

-
sendCreationNotification?: boolean
+
sendCreationNotification?: boolean

Specifies if a notification should be sent to the task creator when the task is created. Default is true.

-
sendDueDateNotification?: boolean
+
sendDueDateNotification?: boolean

Specifies if a notification should be sent to the task creator when the due date is exceeded. This option is only available if a dueDate is specified. Default is false.

-
subject: string
+
subject: string

The subject of the task

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/task.DeleteTaskParams.html b/interfaces/task.DeleteTaskParams.html index 7bf14089..3d0dfe15 100644 --- a/interfaces/task.DeleteTaskParams.html +++ b/interfaces/task.DeleteTaskParams.html @@ -1,5 +1,5 @@ DeleteTaskParams | @dvelop-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DeleteTaskParams

Parameters for the deleteTask-function.

-

Hierarchy

  • DeleteTaskParams

Index

Properties

Properties

location: string
+

Hierarchy

  • DeleteTaskParams

Index

Properties

Properties

location: string

Location-URI of the task.

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/task.TaskValidation.html b/interfaces/task.TaskValidation.html index a44ed1df..85acc7d2 100644 --- a/interfaces/task.TaskValidation.html +++ b/interfaces/task.TaskValidation.html @@ -1,3 +1,3 @@ TaskValidation | @dvelop-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TaskValidation

Validation for task

-

Hierarchy

  • TaskValidation

Index

Properties

invalidAssigneeIDs: string[]
invalidContext: boolean
invalidCorrelationKey: boolean
invalidDescription: boolean
invalidDmsReferences: boolean
invalidDueDate: boolean
invalidHrefs: string[]
invalidMetadata: boolean
invalidOptions: string[]
invalidPriority: boolean
invalidReminderDate: boolean
invalidRetentionTime: boolean
invalidSender: boolean
invalidSubject: boolean
invalidTaskDefinition: boolean
missingAssignees: boolean
missingCorrelationKey: boolean
missingSubject: boolean

Generated using TypeDoc

\ No newline at end of file +

Hierarchy

Index

Properties

invalidAssigneeIDs: string[]
invalidContext: boolean
invalidCorrelationKey: boolean
invalidDescription: boolean
invalidDmsReferences: boolean
invalidDueDate: boolean
invalidHrefs: string[]
invalidMetadata: boolean
invalidOptions: string[]
invalidPriority: boolean
invalidReminderDate: boolean
invalidRetentionTime: boolean
invalidSender: boolean
invalidSubject: boolean
invalidTaskDefinition: boolean
missingAssignees: boolean
missingCorrelationKey: boolean
missingSubject: boolean

Generated using TypeDoc

\ No newline at end of file diff --git a/interfaces/task.UpdateTaskParams.html b/interfaces/task.UpdateTaskParams.html index edb2750d..71b5fd35 100644 --- a/interfaces/task.UpdateTaskParams.html +++ b/interfaces/task.UpdateTaskParams.html @@ -1,6 +1,6 @@ UpdateTaskParams | @dvelop-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UpdateTaskParams

Parameters for the updateTask-function.

-

Hierarchy

  • UpdateTaskParams

Index

Properties

_links?: { attachment?: { href: string }; callback?: { href: string }; changeCallback?: { href: string }; form?: { href: string }; process?: { href: string } }
+

Hierarchy

  • UpdateTaskParams

Index

Properties

_links?: { attachment?: { href: string }; callback?: { href: string }; changeCallback?: { href: string }; form?: { href: string }; process?: { href: string } }

Links to the task

Type declaration

  • Optional attachment?: { href: string }

    This URI is displayed as an action in the user interface to display additional information for the user.

    @@ -12,9 +12,9 @@

    This URI provides an editing dialog for the task. You can find further details in the section Adding editing dialogs.

    • href: string
  • Optional process?: { href: string }

    This URI represents the process by which the task was initiated. The process is displayed in the user interface as a separate perspective for the task. To display completed tasks, the resource has to implement a HEAD request, if the resource is behind the same base address.

    -
    • href: string
assignees?: string[]
+
  • href: string
assignees?: string[]

The recipients of the task. You can specify individual users as well as groups using IDs of the Identityprovider-App

-
context?: { key?: string; name?: string; type?: string }
+
context?: { key?: string; name?: string; type?: string }

The context of a task

Type declaration

  • Optional key?: string

    A technical identifier for the context

    @@ -22,35 +22,35 @@

    Display name of the context

  • Optional type?: string

    Type of the context

    -
correlationKey?: string
+
correlationKey?: string

The correlation key ensures that only one task is created for this unique key. If a task already exists with the passed key, a new task will not be created.

-
description?: string
+
description?: string

A descriptive text of the task

-
dmsObject?: { dmsObjectId: string; repositoryId: string }
+
dmsObject?: { dmsObjectId: string; repositoryId: string }

DmsObject that references the task

Type declaration

  • dmsObjectId: string

    ID of the DmsObject

  • repositoryId: string

    ID of the repository

    -
dueDate?: Date
+
dueDate?: Date

Due date of the task. If you transfer a date without a timestamp, the due date is the transferred date at 00:00:00.

-
location: string
+
location: string

Location-URI of the task

-
metadata?: { caption?: string; key?: string; type?: "String" | "Number" | "Money" | "Date"; values?: string }[]
+
metadata?: { caption?: string; key?: string; type?: "String" | "Number" | "Money" | "Date"; values?: string }[]

Metadata for the task. See the documentation for further information

-
priority?: number
+
priority?: number

Priority between 0 (low) and 100 (high)

-
reminderDate?: Date
+
reminderDate?: Date

Reminder date. If you transfer a date without a timestamp, the reminder date is the transferred date at 00:00:00.

-
retentionTime?: string
+
retentionTime?: string

Specify how long the task details should be kept after completing the task. Valid values are between 0 and 365 days. After this time has passed, the task details will be deleted automatically. The information is specified as a time span in days according to ISO-8601, e.g. P30D for 30 days. Specify the time span P0D if the task details should be deleted immediately after the task is completed. If you make no specification, 30 days are automatically assumed.

-
sendCompletionNotification?: boolean
+
sendCompletionNotification?: boolean

Specifies if a notification should be sent to the task creator when the task is completed. Default is false.

-
sendCreationNotification?: boolean
+
sendCreationNotification?: boolean

Specifies if a notification should be sent to the task creator when the task is created. Default is true.

-
sendDueDateNotification?: boolean
+
sendDueDateNotification?: boolean

Specifies if a notification should be sent to the task creator when the due date is exceeded. This option is only available if a dueDate is specified. Default is false.

-
subject?: string
+
subject?: string

The subject of the task

Generated using TypeDoc

\ No newline at end of file diff --git a/modules/app_router.html b/modules/app_router.html index 9499fcce..c8d6b384 100644 --- a/modules/app_router.html +++ b/modules/app_router.html @@ -20,20 +20,20 @@

@dvelop-sdk/app-router

Install via npm »
Check us out on GitHub » -

Index

Functions

Index

Functions

  • validateCloudCenterEventSignature(appSecret: string, params: ValidateCloudCenterEventSignatureParams): void
  • Validate a cloud-center-event-signature against your appSecret.

    The cloud-center-event-signature should be validated for every cloud-center-event. Refer to the d.velop cloud center API for more information.

    throws

    InvalidCloudCenterEventSignatureError indicates that a cloud-center-event had an invalid signature.

    validateCloudCenterEventSignature(
    process.env.APP_SECRET,
    "POST",
    "/myapp/dvelop-cloud-lifecycle-event",
    "",
    {
    "x-dv-signature-algorithm": "DV1-HMAC-SHA256",
    "x-dv-signature-headers": "x-dv-signature-algorithm,x-dv-signature-headers,x-dv-signature-timestamp",
    "x-dv-signature-timestamp": "2019-08-09T08:49:42Z"
    }, {
    "type": "subscribe",
    "tenantId": "id",
    "baseUri": "https://someone.d-velop.cloud"
    },
    "02783453441665bf27aa465cbbac9b98507ae94c54b6be2b1882fe9a05ec104c"
    );
    -

    Parameters

    • appSecret: string
    • params: ValidateCloudCenterEventSignatureParams

    Returns void

  • validateDvelopContext(appSecret: string, context: DvelopContext): void
  • validateDvelopContext(appSecret: string, context: DvelopContext): void
  • Validate a request-signature against your appSecret.

    The requestSignature should be validated for every request when recieving calls from the d.velop cloud. Refer to the d.velop basics tenant header section for more information.

    validateDvelopContext(process.env.APP_SECRET, {
    systemBaseUri: "https://header.example.com",
    tenantId: "a12be5",
    requestId: "Zjcf28p5aQ6amtbs6s9b9cPyBPdziwUslR2DZqaGUTQ="
    );

    @throws <a href="../classes/app_router.InvalidRequestSignatureError.html">InvalidRequestSignatureError</a> indicates that requestSignature was invalid for given appSecret.
    -

    Parameters

    Returns void

  • validateRequestSignature(appSecret: string, systemBaseUri: string, tenantId: string, requestSignature: string): void
  • validateRequestSignature(appSecret: string, systemBaseUri: string, tenantId: string, requestSignature: string): void

Index

Functions

Index

Functions

  • Create a business object entity.

    example
    import { createBoEntity } from "@dvelop-sdk/business-objects";

    await createBoEntity({
    systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
    authSessionId: "3f3c428d452"
    },{
    modelName: "HOSPITALBASEDATA",
    pluralEntityName: "employees",
    entity: {
    employeeId: "1",
    firstName: "John Micheal",
    lastName: "Dorian",
    jobTitel: "senior physician"
    }
    });
    @@ -30,7 +30,7 @@

    @dvelop-sdk/business-objects

    Type parameters

    • E = any

      Type for Entity. Defaults to any.

      -

    Parameters

    Returns Promise<void>

Parameters

Returns Promise<void>

  • Delete a business object entity.

    example
    import { deleteBoEntity } from "@dvelop-sdk/business-objects";

    await deleteBoEntity({
    systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
    authSessionId: "3f3c428d452"
    },{
    modelName: "HOSPITALBASEDATA",
    pluralEntityName: "employees",
    keyPropertyType: "number", //"string", "number" or "guid"
    entityKeyValue: 1
    });
    @@ -38,7 +38,7 @@

    @dvelop-sdk/business-objects

    You can also write your own function, for example to get a notification, if the entity requested for deletion doesn't exist.

    example
    import { deleteBoEntity } from "@dvelop-sdk/business-objects";

    const myDeleteFunction = _deleteBoEntityFactory(_defaultHttpRequestFunction, (response: HttpResponse) => {
    if(response.status === 204) {
    return "Entity does not exist.";
    } else {
    return "Entity was deleted.";
    }
    });

    const responseMessage: string = await myDeleteFunction({
    systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
    authSessionId: "3f3c428d452"
    },{
    modelName: "HOSPITALBASEDATA",
    pluralEntityName: "employees",
    keyPropertyType: "number", //"string", "number" or "guid"
    entityKeyValue: 3
    });

    console.log(responseMessage); // Entity does not exist.
    -

    Parameters

    Returns Promise<void>

  • Returns all specified entities from a model.

    example
    import { getBoEntities } from "@dvelop-sdk/business-objects";

    const employees = await getBoEntities({
    systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
    authSessionId: "3f3c428d452"
    },{
    modelName: "HOSPITALBASEDATA",
    pluralEntityName: "employees",
    });
    console.log(employees); // [{ employeeId: '1', firstName: 'John Micheal', lastName: 'Dorian', jobTitel: 'senior physician' }, { employeeId: '2', firstName: 'Christopher', lastName: 'Turk', jobTitel: 'chief surgeon' }]
    @@ -48,7 +48,7 @@

    @dvelop-sdk/business-objects

    Type parameters

    • E = any

      Type for Entity. Defaults to any.

      -

    Parameters

    Returns Promise<E[]>

Parameters

Returns Promise<E[]>

  • Returns one specified entity from a model.

    example
    import { getBoEntity } from "@dvelop-sdk/business-objects";

    const jd = await getBoEntity({
    systemBaseUri: "https://sacred-heart-hospital.d-velop.cloud",
    authSessionId: "3f3c428d452"
    },{
    modelName: "HOSPITALBASEDATA",
    pluralEntityName: "employees",
    keyPropertyType: "string", //"string", "number" or "guid"
    keyPropertyValue: "1"
    });
    console.log(jd); // { employeeId: '1', firstName: 'John Micheal', lastName: 'Dorian', jobTitel: 'senior physician' }
    @@ -58,7 +58,7 @@

    @dvelop-sdk/business-objects

    Type parameters

    • E = any

      Type for Entity. Defaults to any.

      -

    Parameters

    Returns Promise<E>

Parameters

Returns Promise<E>

Parameters

Returns E[]

Parameters

Returns E

Http Functions

  • _defaultHttpRequestFunction(context: DvelopContext, config: DvelopHttpRequestConfig<any>): Promise<DvelopHttpResponse>

Http Functions

  • _defaultHttpRequestFunction(context: DvelopContext, config: DvelopHttpRequestConfig<any>): Promise<DvelopHttpResponse>
  • _defaultHttpRequestFunctionFactory(httpClient: DvelopHttpClient): (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>
  • _defaultHttpRequestFunctionFactory(httpClient: DvelopHttpClient): (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>

Index

Variables

DVELOP_REQUEST_ID_HEADER: "x-dv-request-id" = "x-dv-request-id"
+

Index

Variables

DVELOP_REQUEST_ID_HEADER: "x-dv-request-id" = "x-dv-request-id"

HTTP Header for the requestId for the request. Forward this id to make calls trackable throughout d.velop apps.

-
DVELOP_REQUEST_SIGNATURE_HEADER: "x-dv-sig-1" = "x-dv-sig-1"
+
DVELOP_REQUEST_SIGNATURE_HEADER: "x-dv-sig-1" = "x-dv-sig-1"

HTTP Header for the requestSignature. The requestSignature should be validated for every request when recieving calls from the d.velop cloud. Refer to the d.velop basics tenant header section for more information.

-
DVELOP_SYSTEM_BASE_URI_HEADER: "x-dv-baseuri" = "x-dv-baseuri"
+
DVELOP_SYSTEM_BASE_URI_HEADER: "x-dv-baseuri" = "x-dv-baseuri"

HTTP Header for the systemBaseUri for the tenant.

-
DVELOP_TENANT_ID_HEADER: "x-dv-tenant-id" = "x-dv-tenant-id"
+
DVELOP_TENANT_ID_HEADER: "x-dv-tenant-id" = "x-dv-tenant-id"

HTTP Header for the tenantId for the tenant.

-
TRACEPARENT_HEADER: "traceparent" = "traceparent"
+
TRACEPARENT_HEADER: "traceparent" = "traceparent"

HTTP Header used for W3C Trace Context specification.

-

Core Functions

Core Functions

  • generateRequestId(): string
  • generateRequestId(): string
  • Generate a unique requestId.

    import { generateRequestId } from "@dvelop-sdk/core"

    const requestId: string = generateRequestId();
    console.log(requestId); //ac25ae73-f4b6-477e-a5fa-877c8dea863d
    -

    Returns string

  • generateSpanId(): string
  • generateSpanId(): string
  • generateTraceContext(traceId?: string, parentId?: string, spandId?: string, sampled?: boolean, version?: number): TraceContext
  • generateTraceContext(traceId?: string, parentId?: string, spandId?: string, sampled?: boolean, version?: number): TraceContext
  • Generate a new TraceContext-object. See W3C Trace Context for more information.

    import { TraceContext, generateTraceContext } from "@dvelop-sdk/core";

    const traceContext: TraceContext = generateTraceContext();
    console.log(traceContext); // { traceId: '14d3ce602b42d045776144889ac22065', parentId: undefined, spanId: '5afd7bd9caad89de', version: 0, sampled: false }

    // can also be initialized with predefined values
    const traceContext2: TraceContext = generateTraceContext("4ea7f85225da7d0acc52f7fce3db4a92", "cacc9b0efc059633");
    console.log(traceContext2); //{ traceId: '4ea7f85225da7d0acc52f7fce3db4a92', parentId: 'cacc9b0efc059633', spanId: '7164846a72d30523', version: 0, sampled: false }
    -

    Parameters

    • Optional traceId: string
    • Optional parentId: string
    • Optional spandId: string
    • Optional sampled: boolean
    • Optional version: number

    Returns TraceContext

  • generateTraceId(): string
  • generateTraceId(): string
  • generateUuid(): string
  • generateUuid(): string
  • parseTraceparentHeader(traceparentHeader: string, spanId?: string): TraceContext
  • parseTraceparentHeader(traceparentHeader: string, spanId?: string): TraceContext
  • Parses the traceparent-HTTP-header into a TraceContext-object. See W3C Trace Context for more information.

    import { parseTraceparentHeader } from "@dvelop-sdk/core";

    const traceContext: TraceContext = parseTraceparentHeader("00-00cbe959725ad2d75abd9d47017604d7-d84f4664cc5d1266-00")
    console.log(traceContext); // { traceId: '00cbe959725ad2d75abd9d47017604d7', spanId: '48743343d1130693', parentId: 'd84f4664cc5d1266', sampled: false, version: 0 }
    -

    Parameters

    • traceparentHeader: string
    • Optional spanId: string

    Returns TraceContext

Other Functions

  • deepMergeObjects<T>(...objects: T[]): T

Legend

  • Namespace
  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Interface
  • Interface with type parameter
  • Class

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +

Parameters

  • traceparentHeader: string
  • Optional spanId: string

Returns TraceContext

Other Functions

  • deepMergeObjects<T>(...objects: T[]): T

Legend

  • Namespace
  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Interface
  • Interface with type parameter
  • Class

Settings

Theme

Generated using TypeDoc

\ No newline at end of file diff --git a/modules/core.internals.html b/modules/core.internals.html index d2524d52..eefbeeef 100644 --- a/modules/core.internals.html +++ b/modules/core.internals.html @@ -1,9 +1,9 @@ -internals | @dvelop-sdk
Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace internals

Index

Core Functions

  • generateTraceContextFactory(generateTraceId: () => string, generateSpanId: () => string): (traceId?: string, parentId?: string, spanId?: string, sampled?: boolean, version?: number) => TraceContext
  • parseTraceparentHeaderFactory(generateSpanId: () => string): (traceparentHeader: string, spanId?: string) => TraceContext

Index

DmsObject Functions

Index

DmsObject Functions

  • Create a DmsObject.

    import { createDmsObject } from "@dvelop-sdk/dms";
    import { readFileSync } from "fs";

    //only node.js
    const file: ArrayBuffer = readFileSync(`${ __dirname }/our-profits.kaching`).buffer;

    const dmsObject: GetDmsObjectParams = await createDmsObject({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    }, {
    repositoryId: "qnydFmqHuVo",
    sourceId: "/dms/r/qnydFmqHuVo/source",
    categoryId: "GDYQ3PJKrT8",
    properties: [
    {
    key: "AaGK-fj-BAM",
    values: ["unpaid"]
    }
    ],
    fileName: "our-profits.kaching",
    content: file,
    });
    -

    Parameters

    Returns Promise<GetDmsObjectParams>

  • Deletes the current (last) version of a DmsObject. The version before that automatically becomes the current version.

    Parameters

    Returns Promise<boolean>

    Boolean value indicating if the dmsObject was completly deleted (aka: You just deleted the first version)

    import { deleteCurrentDmsObjectVersion } from "@dvelop-sdk/dms";

    await deleteCurrentDmsObjectVersion({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    }, {
    repositoryId: "qnydFmqHuVo",
    sourceId: "/dms/r/qnydFmqHuVo/source",
    dmsObjectId: "GDYQ3PJKrT8",
    reason: "This shall be gone! Tout de suite!"
    });

    // Delete the whole DmsObject
    // * Attention: This method wraps a HTTP-Call in a loop and can significantly slow down your code *
    let deletedAllVersions: boolean = false;
    while (!deletedAllVersions) {
    deletedAllVersions = await deleteCurrentDmsObjectVersion({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    }, {
    repositoryId: "qnydFmqHuVo",
    sourceId: "/dms/r/qnydFmqHuVo/source",
    dmsObjectId: "GDYQ3PJKrT8",
    reason: "This shall be gone! Tout de suite!"
    });
    }
    -
  • Download a DmsObject-file.

    import { getDmsObjectMainFile } from "@dvelop-sdk/dms";
    import { writeFileSync } from "fs";

    const file: ArrayBuffer = await getDmsObjectMainFile({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    },{
    repositoryId: "qnydFmqHuVo",
    sourceId: "/dms/r/qnydFmqHuVo/source",
    dmsObjectId: "GDYQ3PJKrT8",
    });

    writeFileSync(`${__dirname}/our-profits.kaching`, Buffer.from(file)); // only node.js
    -

    Parameters

    Returns Promise<ArrayBuffer>

  • Get all notes for an existing DmsObject.

    import { getDmsObjectNotes } from "@dvelop-sdk/dms";

    const notes: DmsObjectNote[] = getDmsObjectNotes({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    }, {
    repositoryId: "qnydFmqHuVo",
    dmsObjectId: "GDYQ3PJKrT8"
    });

    notes.forEach(n => {
    console.log(`${n.creator.displayName}: "${n.text}"`);
    });

    // Jastor Gallywix: "I need this taken care of ASAP!"
    // Bing Zapcrackle: "I'm on it my prince."
    -

    Parameters

    Returns Promise<DmsObjectNote[]>

  • Download a DmsObject-file as PDF.

    import { getDmsObjectPdfFile } from "@dvelop-sdk/dms";
    import { writeFileSync } from "fs";

    const file: ArrayBuffer = await getDmsObjectPdfFile({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    },{
    repositoryId: "qnydFmqHuVo",
    sourceId: "/dms/r/qnydFmqHuVo/source",
    dmsObjectId: "GDYQ3PJKrT8",
    });

    writeFileSync(`${__dirname}/our-profits.pdf`, Buffer.from(file)); // only node.js
    -

    Parameters

    Returns Promise<ArrayBuffer>

  • Link a DmsObject to multiple child DmsObjects.

    import { linkDmsObjects } from "@dvelop-sdk/dms";

    await linkDmsObjects({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    }, {
    repositoryId: "qnydFmqHuVo",
    sourceId: "/dms/r/qnydFmqHuVo/source",
    parentDmsObjectId: "GDYQ3PJKrT8",
    childDmsObjectsIds: [
    "N3bEh-PEk1g",
    "AC86VI0j85M"
    ]
    });
    -

    Parameters

    Returns Promise<void>

  • Release a DmsObject and update it. This is a variation of updateDmsObject which has the same syntax.

    Internally this this is a wrapper around getDmsObject, updateDmsObjectStatus and updateDmsObject:

      @@ -66,36 +66,36 @@

      @dvelop-sdk/dms

    import { updateDmsObject } from "@dvelop-sdk/dms";
    import { readFileSync } from "fs";

    //only node.js
    const file: ArrayBuffer = readFileSync(`${ __dirname }/our-profits.kaching`).buffer;

    await releaseAndUpdateDmsObject({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    }, {
    repositoryId: "qnydFmqHuVo",
    sourceId: "/dms/r/qnydFmqHuVo/source",
    dmsObjectId: "GDYQ3PJKrT8",
    alterationText: "Updated by SDK",
    properties: [
    {
    key: "AaGK-fj-BAM",
    values: ["paid"]
    }
    ],
    fileName: "our-profits.kaching",
    content: file,
    alterationText: "Released for automatic update"
    });
    -

    Parameters

    Returns Promise<void>

  • Execute a search and returns the search-result. This result might be partial due to the defined pageSize-property. You can navigate pages with the getPreviousPage- and getNextPage-functions. If functions are undefined the page does not exist.

    import { searchDmsObjects } from "@dvelop-sdk/dms";

    const searchResult: SearchDmsObjectsResultPage = await searchDmsObjects({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    },{
    repositoryId: "qnydFmqHuVo",
    sourceId: "/dms/r/qnydFmqHuVo/source",
    categories: ["TIfAkOBMf5A"]
    fulltext: "Ashenvale",
    properties: [{
    key: "AaGK-fj-BAM",
    values: ["unpaid"]
    }]
    });

    console.log(searchResult.dmsObjects.length);
    -

    Parameters

    Returns Promise<SearchDmsObjectsResultPage>

  • Returns an URI under which a file is temporarily available for download.

    import { storeFileTemporarily } from "@dvelop-sdk/dms";
    import { readFileSync } from "fs";

    //only node.js
    const file: ArrayBuffer = readFileSync(`${ __dirname }/our-profits.kaching`).buffer;

    const temporaryUri: string = await storeFileTemporarily({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    }, {
    repositoryId: "qnydFmqHuVo",
    content: file
    });

    console.log(temporaryUri); // /dms/some-random-blob-url
    -

    Parameters

    Returns Promise<string>

  • Update a DmsObject.

    import { updateDmsObject } from "@dvelop-sdk/dms";
    import { readFileSync } from "fs";

    //only node.js
    const file: ArrayBuffer = readFileSync(`${ __dirname }/our-profits.kaching`).buffer;

    await updateDmsObject({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    }, {
    repositoryId: "qnydFmqHuVo",
    sourceId: "/dms/r/qnydFmqHuVo/source",
    dmsObjectId: "GDYQ3PJKrT8",
    alterationText: "Updated by SDK",
    properties: [
    {
    key: "AaGK-fj-BAM",
    values: ["paid"]
    }
    ],
    fileName: "our-profits.kaching",
    content: file,
    });
    -

    Parameters

    Returns Promise<void>

Mappings Functions

Mappings Functions

  • Get a list of property mappings for a given source.

    import { getMappings } from "@dvelop-sdk/dms";

    const dmsMappings: DmsMapping[] = await getMappings({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    },{
    repositoryId: "qnydFmqHuVo",
    sourceId: "/dms/r/qnydFmqHuVo/source"
    });

    console.log(dmsMappings);
    -

    Parameters

    Returns Promise<DmsMapping[]>

Repository Functions

Repository Functions

  • Returns an array of all Repository-objects for a tenant.

    import { Repository, getRepositories } from "@dvelop-sdk/dms";

    const repos: Repository[] = await getRepositories({
    systemBaseUri: "https://steamwheedle-cartel.d-velop.cloud",
    authSessionId: "dQw4w9WgXcQ"
    });
    const repoList: string = repos.map(r => r.name).join(", ");
    console.log("Repositories:", repoList); // Booty Bay, Everlook, Gadgetzan, Ratchet
    -

    Parameters

    Returns Promise<Repository[]>

Repository Functions

Repository Functions

  • _getRepositoriesFactory<T>(httpRequestFunction: (context: DvelopContext, config: DvelopHttpRequestConfig<any>) => Promise<DvelopHttpResponse<any>>, transformFunction: (response: DvelopHttpResponse<any>, context: DvelopContext) => T): (context: DvelopContext) => Promise<T>
  • _getRepositoriesFactory<T>(httpRequestFunction: (context: DvelopContext, config: DvelopHttpRequestConfig<any>) => Promise<DvelopHttpResponse<any>>, transformFunction: (response: DvelopHttpResponse<any>, context: DvelopContext) => T): (context: DvelopContext) => Promise<T>

Http Functions

  • _defaultHttpRequestFunction(context: DvelopContext, config: DvelopHttpRequestConfig<any>): Promise<DvelopHttpResponse>

Http Functions

  • _defaultHttpRequestFunction(context: DvelopContext, config: DvelopHttpRequestConfig<any>): Promise<DvelopHttpResponse>
  • _defaultHttpRequestFunctionFactory(httpClient: DvelopHttpClient): (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>
  • _defaultHttpRequestFunctionFactory(httpClient: DvelopHttpClient): (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>
  • Factory used to create the default httpRequestFunction. See Advanced Topics for more information.

    internal

    Parameters

    • httpClient: DvelopHttpClient

    Returns (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>

      • (context: DvelopContext, config: DvelopHttpRequestConfig): Promise<DvelopHttpResponse>
      • Factory used to create the default httpRequestFunction. See Advanced Topics for more information.

        diff --git a/modules/express_utils.html b/modules/express_utils.html index a7da4bc7..fd6ce9d6 100644 --- a/modules/express_utils.html +++ b/modules/express_utils.html @@ -20,17 +20,17 @@

        @dvelop-sdk/express-utils

        Install via npm »
        Check us out on GitHub » -

Index

Middleware Functions

  • authenticationMiddleware(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>, next: NextFunction): Promise<void>

Index

Middleware Functions

  • authenticationMiddleware(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>, next: NextFunction): Promise<void>
  • contextMiddleware(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _: Response<any, Record<string, any>>, next: NextFunction): void
  • contextMiddleware(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, _: Response<any, Record<string, any>>, next: NextFunction): void
  • Sets a DvelopContext to the express-request-object. Accessable via the req.dvelopContext-property.

    import { contextMiddleware } from "@dvelop-sdk/express-utils";

    app.use(contextMiddleware);

    app.use((req: Request, _: Response, next: NextFunction) => {
    console.log(req.dvelopContext);
    next();
    });
    -

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
    • _: Response<any, Record<string, any>>
    • next: NextFunction

    Returns void

  • validateCloudCenterEventSignatureMiddlewareFactory(appSecret: string): (request: Request, response: Response, next: NextFunction) => void
  • validateCloudCenterEventSignatureMiddlewareFactory(appSecret: string, validateCloudCenterEventSignature: (appSecret: string, params: ValidateCloudCenterEventSignatureParams) => void): (request: Request, response: Response, next: NextFunction) => void
  • validateCloudCenterEventSignatureMiddlewareFactory(appSecret: string): (request: Request, response: Response, next: NextFunction) => void
  • validateCloudCenterEventSignatureMiddlewareFactory(appSecret: string, validateCloudCenterEventSignature: (appSecret: string, params: ValidateCloudCenterEventSignatureParams) => void): (request: Request, response: Response, next: NextFunction) => void
  • +

    Parameters

    • request: Request
    • response: Response
    • next: NextFunction

    Returns void

  • Validate the cloud-center-event signature against your appSecret. You can supply a custom validate-function.

    internal

    Parameters

    • appSecret: string
    • validateCloudCenterEventSignature: (appSecret: string, params: ValidateCloudCenterEventSignatureParams) => void
        • (appSecret: string, params: ValidateCloudCenterEventSignatureParams): void
        • Parameters

          • appSecret: string
          • params: ValidateCloudCenterEventSignatureParams

          Returns void

    Returns (request: Request, response: Response, next: NextFunction) => void

      • (request: Request, response: Response, next: NextFunction): void
      • Validate the cloud-center-event signature against your appSecret. You can supply a custom validate-function.

        internal
        category

        Middleware

        -

        Parameters

        • request: Request
        • response: Response
        • next: NextFunction

        Returns void

    • validateSignatureMiddlewareFactory(appSecret: string): (request: Request, response: Response, next: NextFunction) => void
    • validateSignatureMiddlewareFactory(appSecret: string, validateDvelopContext: (appSecret: string, context: DvelopContext) => void): (request: Request, response: Response, next: NextFunction) => void
    • validateSignatureMiddlewareFactory(appSecret: string): (request: Request, response: Response, next: NextFunction) => void
    • validateSignatureMiddlewareFactory(appSecret: string, validateDvelopContext: (appSecret: string, context: DvelopContext) => void): (request: Request, response: Response, next: NextFunction) => void
    • Validate the requestSignature against the requestData your appSecret. Requires the dvelopContext-propertiy to be set. See {@link dvelopContextMiddleware}.

      The requestSignature should be validated for every request when recieving calls from the d.velop cloud. @@ -63,12 +63,12 @@

      @dvelop-sdk/express-utils

      import { validateSignatureMiddlewareFactory } from "@dvelop-sdk/express-utils";

      app.use(validateSignatureMiddlewareFactory(process.env.APP_SECRET));
      category

      Middleware

      -

      Parameters

      • request: Request
      • response: Response
      • next: NextFunction

      Returns void

  • +

    Parameters

    • request: Request
    • response: Response
    • next: NextFunction

    Returns void

  • Validate the requestSignature against the requestData your appSecret. You can supply a custom validate-function.

    internal

    Parameters

    • appSecret: string
    • validateDvelopContext: (appSecret: string, context: DvelopContext) => void

    Returns (request: Request, response: Response, next: NextFunction) => void

      • (request: Request, response: Response, next: NextFunction): void
      • Validate the requestSignature against the requestData your appSecret. You can supply a custom validate-function.

        internal
        category

        Middleware

        -

        Parameters

        • request: Request
        • response: Response
        • next: NextFunction

        Returns void

  • Other Functions

    • redirectToLoginPage(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>): void

    Other Functions

    • redirectToLoginPage(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>): void
    • _getAuthSessionIdFromRequestDefaultFunction(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>): string | undefined

    Other Functions

    • _redirectToLoginPageFactory(getLoginRedirectionUri: (sucessUri: string) => string): (req: Request, res: Response) => void

    Other Functions

    • _redirectToLoginPageFactory(getLoginRedirectionUri: (sucessUri: string) => string): (req: Request, res: Response) => void

    Index

    Authentication Functions

    Index

    Authentication Functions

    • Returns an {@link AuthSession} based on an API-Key. API-Keys can be generated by d.velop cloud tenant administrators. The AuthSessionId should be kept secret and never be publicly available.

      import { getAuthSession } from "@dvelop-sdk/identityprovider";

      const authSession = await getAuthSession({
      systemBaseUri: "https://monster-ag.d-velop.cloud",
      authSessionId: "dQw4w9WgXcQ"
      });

      console.log(authSession);
      -

      Parameters

      Returns Promise<AuthSession>

    • getLoginRedirectionUri(successUri: string): string
    • getLoginRedirectionUri(successUri: string): string
    • validateAppSessionSignature(appName: string, requestId: string, appSession: AppSession): void
    • validateAppSessionSignature(appName: string, requestId: string, appSession: AppSession): void
    • _validateAuthSessionIdFactory<T>(httpRequestFunction: (context: DvelopContext, config: DvelopHttpRequestConfig<any>) => Promise<DvelopHttpResponse<any>>, transformFunction: (response: DvelopHttpResponse<any>, context: DvelopContext) => T): (context: DvelopContext) => Promise<T>
    • _validateAuthSessionIdFactory<T>(httpRequestFunction: (context: DvelopContext, config: DvelopHttpRequestConfig<any>) => Promise<DvelopHttpResponse<any>>, transformFunction: (response: DvelopHttpResponse<any>, context: DvelopContext) => T): (context: DvelopContext) => Promise<T>

    Http Functions

    • _defaultHttpRequestFunction(context: DvelopContext, config: DvelopHttpRequestConfig<any>): Promise<DvelopHttpResponse>

    Http Functions

    • _defaultHttpRequestFunction(context: DvelopContext, config: DvelopHttpRequestConfig<any>): Promise<DvelopHttpResponse>
    • _defaultHttpRequestFunctionFactory(httpClient: DvelopHttpClient): (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>
    • _defaultHttpRequestFunctionFactory(httpClient: DvelopHttpClient): (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>
    • Factory used to create the default httpRequestFunction. Mostly used for HTTP-Error handling.

      internal

      Parameters

      • httpClient: DvelopHttpClient

      Returns (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>

        • (context: DvelopContext, config: DvelopHttpRequestConfig): Promise<DvelopHttpResponse>
        • Factory used to create the default httpRequestFunction. Mostly used for HTTP-Error handling.

          diff --git a/modules/logging.html b/modules/logging.html index 92c4d834..282b5135 100644 --- a/modules/logging.html +++ b/modules/logging.html @@ -20,9 +20,9 @@

          @dvelop-sdk/logging

          Install via npm »
          Check us out on GitHub » -

    Index

    Type aliases

    ProviderFn: (context: DvelopContext, event: DvelopLogEvent, level: DvelopLogLevel) => Promise<void>

    Type declaration

      • (context: DvelopContext, event: DvelopLogEvent, level: DvelopLogLevel): Promise<void>
      • +

    Index

    Type aliases

    ProviderFn: (context: DvelopContext, event: DvelopLogEvent, level: DvelopLogLevel) => Promise<void>

    Type declaration

      • (context: DvelopContext, event: DvelopLogEvent, level: DvelopLogLevel): Promise<void>
      • Type definition of logging providers.

        -

        Parameters

        Returns Promise<void>

    TransportFn: (statement: any) => Promise<void>

    Type declaration

      • (statement: any): Promise<void>
      • Parameters

        • statement: any

        Returns Promise<void>

    Functions

    • consoleTransportFactory(error?: boolean, _console?: Console): TransportFn
    • fileTransportFactory(path: string, _createWriteStream?: (path: PathLike, options: { flags: "a" }) => WriteStream): TransportFn
    TransportFn: (statement: any) => Promise<void>

    Type declaration

      • (statement: any): Promise<void>
      • Parameters

        • statement: any

        Returns Promise<void>

    Functions

    • consoleTransportFactory(error?: boolean, _console?: Console): TransportFn
    • fileTransportFactory(path: string, _createWriteStream?: (path: PathLike, options: { flags: "a" }) => WriteStream): TransportFn

    Index

    Task Functions

    Index

    Task Functions

    • Create a task.

      import { createTask } from "@dvelop-sdk/task";

      const taskLocation = await createTask({
      systemBaseUri: "https://umbrella-corp.d-velop.cloud",
      authSessionId: "dQw4w9WgXcQ"
      }, {
      subject: "Cover up lab accident",
      assignees: ["XiFkyR35v2Y"]
      });

      console.log(taskLocation); // some/task/location
      -

      Parameters

      Returns Promise<string>

    • _createTaskFactory<T>(httpRequestFunction: (context: DvelopContext, config: DvelopHttpRequestConfig<any>) => Promise<DvelopHttpResponse<any>>, transformFunction: (response: DvelopHttpResponse<any>, context: DvelopContext, params: CreateTaskParams) => T, uuidGeneratorFunction?: () => string): (context: DvelopContext, params: CreateTaskParams) => Promise<T>
    • _createTaskFactory<T>(httpRequestFunction: (context: DvelopContext, config: DvelopHttpRequestConfig<any>) => Promise<DvelopHttpResponse<any>>, transformFunction: (response: DvelopHttpResponse<any>, context: DvelopContext, params: CreateTaskParams) => T, uuidGeneratorFunction?: () => string): (context: DvelopContext, params: CreateTaskParams) => Promise<T>
    • _getTaskCountDefaultTransformFunction(response: DvelopHttpResponse<any>, _: DvelopContext): number
    • _getTaskCountDefaultTransformFunction(response: DvelopHttpResponse<any>, _: DvelopContext): number
    • _getTaskCountFactory<T>(httpRequestFunction: (context: DvelopContext, config: DvelopHttpRequestConfig<any>) => Promise<DvelopHttpResponse<any>>, transformFunction: (response: DvelopHttpResponse<any>, context: DvelopContext) => T): (context: DvelopContext) => Promise<T>
    • _getTaskCountFactory<T>(httpRequestFunction: (context: DvelopContext, config: DvelopHttpRequestConfig<any>) => Promise<DvelopHttpResponse<any>>, transformFunction: (response: DvelopHttpResponse<any>, context: DvelopContext) => T): (context: DvelopContext) => Promise<T>

    Http Functions

    • _defaultHttpRequestFunction(context: DvelopContext, config: DvelopHttpRequestConfig<any>): Promise<DvelopHttpResponse>

    Http Functions

    • _defaultHttpRequestFunction(context: DvelopContext, config: DvelopHttpRequestConfig<any>): Promise<DvelopHttpResponse>
    • _defaultHttpRequestFunctionFactory(httpClient: DvelopHttpClient): (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>
    • _defaultHttpRequestFunctionFactory(httpClient: DvelopHttpClient): (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>
    • Factory used to create the default httpRequestFunction. See Advanced Topics for more information.

      internal

      Parameters

      • httpClient: DvelopHttpClient

      Returns (context: DvelopContext, config: DvelopHttpRequestConfig) => Promise<DvelopHttpResponse>

        • (context: DvelopContext, config: DvelopHttpRequestConfig): Promise<DvelopHttpResponse>
        • Factory used to create the default httpRequestFunction. See Advanced Topics for more information.