Constructors

Properties

oAuthProvider: IOAuthProvider
rest: Promise<Got>
userAgentString: string

Methods

  • Adds a new collaborator to a project or modifies the permission level of an existing collaborator. Note: Only users that are part of the authorized organization (see GET /api/v1/info) and logged in to Web Modeler at least once can be added to a project.

    Parameters

    Returns Promise<null>

    Throws

  • This endpoint creates a file.

    To create a file, specify projectId and/or folderId:

    When only folderId is given, the file will be created in that folder. The folder can be in any project of the same organization.

    When projectId is given and folderId is either null or omitted altogether, the file will be created in the root of the project.

    When projectId and folderId are both given, they must be consistent - i.e. the folder is in the project.

    For connector templates, the following constraints apply:

    The value of content.$schema will be replaced with https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json and validated against it.

    The value of name takes precedence over content.name. In case of mismatch, the latter will be adjusted to match the former automatically.

    The value of content.id will be replaced with the file id generated by Web Modeler.

    The value of content.version is managed by Web Modeler and will be updated automatically.

    Note: The simplePath transforms any occurrences of slashes ("/") in file and folder names into an escape sequence consisting of a backslash followed by a slash ("/"). This form of escaping facilitates the processing of path-like structures within file and folder names.

    Parameters

    Returns Promise<FileMetadataDto>

    Throws

  • Creates a new folder.

    When only parentId is given, the folder will be created in that folder. The folder can be in any project of the same organization.

    When projectId is given and parentId is either null or omitted altogether, the folder will be created in the root of the project.

    When projectId and parentId are both given, they must be consistent - i.e. the parent folder is in the project.

    Parameters

    Returns Promise<FolderMetadataDto>

    Throws

  • Parameters

    • __namedParameters: {
          email: string;
          projectId: string;
      }
      • email: string
      • projectId: string

    Returns Promise<null>

    Throws

  • Deletes a file. Note: Deleting a file will also delete other resources attached to the file (comments, call activity/business rule task links, milestones and shares) which might have side-effects. Deletion of resources is recursive and cannot be undone.

    Parameters

    • fileId: string

    Returns Promise<null>

    Throws

  • Deletes an empty folder. A folder is considered empty if there are no files in it. Deletion of resources is recursive and cannot be undone.

    Parameters

    • folderId: string

    Returns Promise<null>

    Throws

  • Deletion of resources is recursive and cannot be undone.

    Parameters

    • milestoneId: string

    Returns Promise<string>

    Throws

  • Parameters

    • projectId: string

    Returns Promise<any>

    Description

    This endpoint deletes an empty project. A project is considered empty if there are no files in it. Deletion of resources is recursive and cannot be undone.

    Throws

  • Retrieves a file.

    Note: The simplePath transforms any occurrences of slashes ("/") in file and folder names into an escape sequence consisting of a backslash followed by a slash ("/"). This form of escaping facilitates the processing of path-like structures within file and folder names.

    Does this throw if it is not found?

    Parameters

    • fileId: string

    Returns Promise<FileDto>

    Throws

  • Returns Promise<{
        accept: string;
        authorization: string;
        content-type: string;
        user-agent: string;
    }>

  • Returns a link to a visual comparison between two milestones where the milestone referenced by milestone1Id acts as a baseline to compare the milestone referenced by milestone2Id against.

    Parameters

    • milestone1Id: string
    • milestone2Id: string

    Returns Promise<string>

    Throws

  • Searches for files. filter specifies which fields should match. Only items that match the given fields will be returned.

    Note: Date fields need to be specified in a format compatible with java.time.ZonedDateTime; for example 2023-09-20T11:31:20.206801604Z.

    You can use suffixes to match date ranges:

    Modifier Description ||/y Within a year ||/M Within a month ||/w Within a week ||/d Within a day ||/h Within an hour ||/m Within a minute ||/s Within a second

    sort specifies by which fields and direction (ASC/DESC) the result should be sorted.

    page specifies the page number to return. size specifies the number of items per page. The default value is 10.

    Note: The simplePath transform any occurrences of slashes ("/") in file and folder names into an escape sequence consisting of a backslash followed by a slash ("/"). This form of escaping facilitates the processing of path-like structures within file and folder names.

    Returns Promise<PubSearchResultDtoFileMetadataDto>

    Throws

  • Searches for milestones.

    filter specifies which fields should match. Only items that match the given fields will be returned.

    Note: Date fields need to be specified in a format compatible with java.time.ZonedDateTime; for example 2023-09-20T11:31:20.206801604Z.

    You can use suffixes to match date ranges:

    Modifier Description ||/y Within a year ||/M Within a month ||/w Within a week ||/d Within a day ||/h Within an hour ||/m Within a minute ||/s Within a second sort specifies by which fields and direction (ASC/DESC) the result should be sorted.

    page specifies the page number to return.

    size specifies the number of items per page. The default value is 10.

    Returns Promise<PubSearchResultDtoMilestoneMetadataDto>

    Throws

  • Searches for projects.

    filter specifies which fields should match. Only items that match the given fields will be returned.

    Note: Date fields need to be specified in a format compatible with java.time.ZonedDateTime; for example 2023-09-20T11:31:20.206801604Z.

    You can use suffixes to match date ranges:

    Modifier Description ||/y Within a year ||/M Within a month ||/w Within a week ||/d Within a day ||/h Within an hour ||/m Within a minute ||/s Within a second

    sort specifies by which fields and direction (ASC/DESC) the result should be sorted.

    page specifies the page number to return.

    size specifies the number of items per page. The default value is 10.

    Returns Promise<PubSearchResultDtoProjectMetadataDto>

    Throws

  • Updates the content, name, or location of a file, or all at the same time.

    To move a file, specify projectId and/or folderId: When only folderId is given, the file will be moved to that folder. The folder can be in another project of the same organization. When projectId is given and folderId is either null or omitted altogether, the file will be moved to the root of the project. When projectId and folderId are both given, they must be consistent - i.e. the new parent folder is in the new project. The field revision holds the current revision of the file. This is used for detecting and preventing concurrent modifications. For connector templates, the following constraints apply: The value of content.$schema is not updatable. The value of content.name can only be changed via name. The value of content.id is not updatable. The value of content.version is managed by Web Modeler and will be updated automatically. Note: The simplePath transforms any occurrences of slashes ("/") in file and folder names into an escape sequence consisting of a backslash followed by a slash ("/"). This form of escaping facilitates the processing of path-like structures within file and folder names.

    Parameters

    Returns Promise<FileMetadataDto>

    Throws

  • Updates the name or location of a folder, or both at the same time.

    To move a folder, specify projectId and/or parentId:

    When only parentId is given, the file will be moved to that folder. The folder must keep in the same organization.

    When projectId is given and parentId is either null or omitted altogether, the file will be moved to the root of the project.

    When projectId and parentId are both given, they must be consistent - i.e. the new parent folder is in the new project.

    Parameters

    Returns Promise<FolderMetadataDto>

    Throws

Generated using TypeDoc