Options
All
  • Public
  • Public/Protected
  • All
Menu

Class representing the an RPT Case Template

Hierarchy

  • PacketTemplateApi

Index

Constructors

constructor

Properties

Readonly apiRequest

apiRequest: ApiRequest

API request object for making the actual http requests

Methods

create

  • create(__namedParameters: { description: string; name: string; packetTypeId: number; unitId: number }): Promise<Packet>
  • Create a new case template

    example
    let template = await api.Tenure.PacketTemplates.create({unitId: 9999, name: "Template Name", packetTypeId: 1});
    

    Parameters

    • __namedParameters: { description: string; name: string; packetTypeId: number; unitId: number }
      • description: string

        Description of the template

      • name: string

        Name of the Template

      • packetTypeId: number

        Id of the packet type (e.g. Appointment/Reappointment etc).

      • unitId: number

        Unit ID of the template

    Returns Promise<Packet>

delete

  • delete(__namedParameters: { id: number }): Promise<boolean>
  • Delete a packet template

    example
    let deleteSuccess = await api.Tenure.PacketTemplates.delete({id: 9999});
    

    Parameters

    • __namedParameters: { id: number }
      • id: number

        Id of the packet template to delete

    Returns Promise<boolean>

findUnitTemplate

  • findUnitTemplate(__namedParameters: { name: string; unitId: number }): Promise<PacketTemplateDetail>

getTemplate

Legend

  • Class
  • Constructor
  • Property
  • Method
  • Variable
  • Function
  • Type alias

Generated using TypeDoc