Class CaseData

Hierarchy

  • CaseData

Data Details Methods

  • Attach Case Data Detail

    Returns

    Returns Promise that represents an object describing CaDataGroupItemBase.

    Parameters

    • caDataGroupId: number

      The Case Data Group ID to attach the data detail to.

    • caseDataDetailId: number

      caseDataDetailId to attach.

    • Optional options: Object

      Options

    Returns Promise<unknown>

  • Get the Case Data Details for a Case by Case ID

    Returns

    Returns Promise that represents a collection of Case Data Detail Items

    Parameters

    • caseId: number

      The case ID to get the details for

    Returns Promise<any[]>

  • Lock Case Data Detail

    Returns

    Returns Promise which represents an object describing the CaDataDetailItem.

    Parameters

    • caDataDetailId: number

      The Case Data Detail ID to lock

    Returns Promise<unknown>

  • Search for Case Data Details. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields

    Returns

    Returns Promise that represents an object describing CaDataDetailItemBase.

    Parameters

    • Optional filters: Object

      The parameters to search by. (CaDataGroupId, CaseDataGroupId, GroupCode, GroupDesc, GroupSum, SumFlag)

    Returns Promise<any[]>

  • Set Case Data Detail Items for a Case by GroupCode.ItemCode syntax reference

    Returns

    Returns Promise that represents a collection

    Parameters

    • caseId: number

      The case ID to get the details for

    • items: {
          code: string;
          value: any;
      }[]

      The parameters to search by. (DataGroup/Item string, Value) (e.g. {code: 'GroupCode.ItemCode', value: 'Value goes here'})

    Returns Promise<unknown>

  • Set Case Data Detail Item for a Case by GroupCode.ItemCode syntax reference

    Returns

    Returns Promise

    Parameters

    • caseId: number

      The Case ID to set the detail for

    • detailGroupAndItemCode: string

      The parameters to search (e.g. 'GroupCode.ItemCode')

    • value: any

      The value to set the specified detail to

    Returns Promise<unknown>

  • Unlock Case Data Detail

    Returns

    Returns Promise which represents an object describing the CaDataDetailItem.

    Parameters

    • caDataDetailId: number

      The Case Data Group ID to unlock

    Returns Promise<unknown>

  • Update Case Data Detail

    Returns

    Returns Promise that represents an object describing CaDataGroupItemBase.

    Parameters

    • caDataDetailId: number

      The Case Data Group ID to attach the data detail to.

    • Optional options: Object

      Options

    Returns Promise<unknown>

  • Set a data detail item's value without needing to find the type

    Returns

    Promise that represents

    Parameters

    • dataDetailId: number

      The data detail item's ID

    • value: any

      the value to set the data detail item to

    Returns Promise<unknown>

Data Groups Methods

  • Add Default Case Data Groups

    Returns

    Returns Promise that represents a collection of the default CaDataGroupItemBases.

    Parameters

    • caObjectId: number

      The Case Object to attach the data group to.

    • busCaseId: number

      The business case ID

    Returns Promise<unknown>

  • Add Case Data Group

    Returns

    Returns Promise that represents an object describing CaDataGroupItemBase.

    Parameters

    • caObjectId: number

      The Case Object to attach the data group to.

    • caseDataGroupId: number

      CaseDataGroupId as defined in CaseDataGroup admin.

    • groupCode: string

      The Group Code.

    • Optional options: {
          GroupDesc?: string;
          GroupSum?: number;
          SumFlag?: string;
      }

      Options for CaseDataGroup including GroupDesc, GroupSum, and SumFlag

      • Optional GroupDesc?: string
      • Optional GroupSum?: number
      • Optional SumFlag?: string

    Returns Promise<unknown>

  • Get Case Data Groups by Case ObjectId

    Returns

    Returns Promise that represents a collection of the default CaDataGroupItemBases.

    Parameters

    • entityType: string

      The entity type to check

    • entityUid: string

      The specific entityUID to check

    • options: {
          CaObjectId?: number;
          CaseDataDetailId?: number;
          CaseDataGroupId?: number;
      }

      The other options for checkGIS. Either CaObjectId or CaseDataGroupId is required.

      • Optional CaObjectId?: number
      • Optional CaseDataDetailId?: number
      • Optional CaseDataGroupId?: number

    Returns Promise<unknown>

  • Delete Case Data Groups by Case Object ID.

    Returns

    Returns Promise that represents a number that is the CaObjectId (?)

    Parameters

    • caObjectId: number

      The Case Object to attach the data group to.

    Returns Promise<unknown>

  • Get groups by CaObjectId

    Returns

    Returns Promise that represents a collection of the CaDataGroupItemBases.

    Parameters

    • caseId: number

      The Case Object to get the attached data groups.

    Returns Promise<unknown>

  • Search for Case Data Groups. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields

    Returns

    Returns Promise that represents a number that is the CaObjectId (?)

    Parameters

    • Optional filters: Object

      The parameters to search by. (CaDataGroupId, CaseDataGroupId, GroupCode, GroupDesc, GroupSum, SumFlag)

    Returns Promise<any[]>

  • Update data groups on a case based on asset value mappings.

    Returns

    Returns Promise that represents a collection of the default CaDataGroupItemBases.

    Parameters

    • caObjectId: number

      The case to update

    • entityType: string

      The entity type to check

    • entityUid: string

      The specific entityUID to check

    • Optional caDataGroupId: number

      The specific data group ID to limit updates to

    Returns Promise<unknown>

  • Adds a data detail entry to the case data group specified by the CaDataGroupId. The CaDataGroupId is associated to a case.

    Returns

    Returns Promise that represents an object describing CaDataDetailItemBase.

    Parameters

    • caseDataDetailId: number

      The Data Detail template ID

    • caDataGroupId: number

      The Case Instance Data Group ID

    • columnSequence: string

      The column sequence

    • detailCode: string

      The detail Code

    • detailSequence: number

      The detail order number

    • Optional options: Object

      Other options for CaseDataDetail. See WIPAdd here: /{subdirectory}/apidocs/#/service-info/Pll/CaseDataDetail

    Returns Promise<unknown>

Data List Values Methods

  • Adds a list of possible values to the data detail entry specified by the CaDataDetailId.

    Returns

    Returns Promise that represents an object describing CaDataListValuesItemBase.

    Parameters

    • caDataDetailId: number

      The Case Object to attach the data group to.

    • listValue: string

      The Group Code.

    Returns Promise<unknown>

  • Delete by Id (Ca Data List Id)

    Returns

    Returns Promise that represents an object describing CaDataListValuesItemBase.

    Parameters

    • caDataDetailId: number

    Returns Promise<unknown>

  • Search for List Value IDs. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields

    Returns

    Returns Promise that represents an Array of resulting CaDataListIds

    Parameters

    • Optional filters: Object

      The parameters to search by. (CaDataDetailId, CaDataListId, ListValue)

    Returns Promise<unknown>

  • Search for List Value Objects. Include one or more of the search fields. A logical 'and' operation is applied to muliple search fields

    Returns

    Returns Promise that represents a collection of resulting CaDataListValuesItemBase objects

    Parameters

    • Optional filters: Object

      The parameters to search by. (CaDataDetailId, CaDataListId, ListValue, CaDataGroupId)

    Returns Promise<unknown>