Constructors
constructor
- new WorkRecords(api: Api): WorkRecords
Properties
api
Methods
archive
- archive(
type: string,
hash: string,
recordId: string,
): Promise<ApiResponse<unknown, unknown>> Parameters
- type: string
- hash: string
- recordId: string
Returns Promise<ApiResponse<unknown, unknown>>
create
- create(
type: string,
hash: string,
organization: string,
data: WorkRecordData,
): Promise<
ApiResponse<
{ hash: string; links: RestApiLink[] },
{ hash: string; links: RestApiLink[] },
>,
> Returns Promise<
ApiResponse<
{ hash: string; links: RestApiLink[] },
{ hash: string; links: RestApiLink[] },
>,
>
get
- get(
type: string,
hash: string,
recordId: string,
): Promise<
ApiResponse<
{ links?: RestApiLink[]; work_record: IWorkRecord },
{ links?: RestApiLink[]; work_record: IWorkRecord },
>,
> Parameters
- type: string
- hash: string
- recordId: string
listConfigurations
- listConfigurations(
organization: string,
type: string,
): Promise<ApiResponse<CountingWorkRecordIdentity[], void>> Parameters
- organization: string
- type: string
listCountingWorkRecords
- listCountingWorkRecords(
element: string,
options?: { limit: number; offset: number; sort: string },
): Promise<ApiResponse<CountingWorkRecord[], void>> Parameters
- element: string
Optional
options: { limit: number; offset: number; sort: string }