docs: TSDoc + reference of fulfillment service (#5761)
This commit is contained in:
@@ -6,13 +6,11 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
|
||||
# BatchJobService
|
||||
|
||||
## Constructors
|
||||
|
||||
#### constructor
|
||||
## constructor
|
||||
|
||||
`**new BatchJobService**(«destructured»)`
|
||||
|
||||
##### Parameters
|
||||
### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -26,6 +24,8 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
}
|
||||
]} />
|
||||
|
||||
___
|
||||
|
||||
## Properties
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
@@ -193,15 +193,35 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
}
|
||||
]} />
|
||||
|
||||
___
|
||||
|
||||
## Accessors
|
||||
|
||||
#### activeManager\_
|
||||
### activeManager\_
|
||||
|
||||
`Protected` **activeManager\_**: [object Object]
|
||||
`Protected get**activeManager_**(): EntityManager`
|
||||
|
||||
#### Returns
|
||||
|
||||
EntityManager
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
"name": "EntityManager",
|
||||
"type": "EntityManager",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"description": "",
|
||||
"expandable": false,
|
||||
"children": []
|
||||
}
|
||||
]} />
|
||||
|
||||
___
|
||||
|
||||
## Methods
|
||||
|
||||
#### atomicPhase\_
|
||||
### atomicPhase\_
|
||||
|
||||
`Protected **atomicPhase_**<TypeParameter TResult, TypeParameter TError>(work, isolationOrErrorHandler?, maybeErrorHandlerOrDontFail?): Promise<TResult>`
|
||||
|
||||
@@ -209,7 +229,7 @@ Wraps some work within a transactional block. If the service already has
|
||||
a transaction manager attached this will be reused, otherwise a new
|
||||
transaction manager is created.
|
||||
|
||||
##### Type Parameters
|
||||
#### Type Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -232,7 +252,7 @@ transaction manager is created.
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -264,7 +284,7 @@ transaction manager is created.
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<TResult>
|
||||
|
||||
@@ -282,11 +302,11 @@ Promise<TResult>
|
||||
|
||||
___
|
||||
|
||||
#### cancel
|
||||
### cancel
|
||||
|
||||
`**cancel**(batchJobOrId): Promise<[BatchJob](BatchJob.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -300,7 +320,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
@@ -318,11 +338,11 @@ Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### complete
|
||||
### complete
|
||||
|
||||
`**complete**(batchJobOrId): Promise<[BatchJob](BatchJob.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -336,7 +356,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
@@ -354,11 +374,11 @@ Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### confirm
|
||||
### confirm
|
||||
|
||||
`**confirm**(batchJobOrId): Promise<[BatchJob](BatchJob.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -372,7 +392,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
@@ -390,11 +410,11 @@ Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### create
|
||||
### create
|
||||
|
||||
`**create**(data): Promise<[BatchJob](BatchJob.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -408,7 +428,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
@@ -426,11 +446,11 @@ Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### listAndCount
|
||||
### listAndCount
|
||||
|
||||
`**listAndCount**(selector?, config?): Promise<[[BatchJob](BatchJob.mdx)[], number]>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -453,7 +473,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[[BatchJob](BatchJob.mdx)[], number]>
|
||||
|
||||
@@ -471,11 +491,11 @@ Promise<[[BatchJob](BatchJob.mdx)[], number]>
|
||||
|
||||
___
|
||||
|
||||
#### prepareBatchJobForProcessing
|
||||
### prepareBatchJobForProcessing
|
||||
|
||||
`**prepareBatchJobForProcessing**(data, req): Promise<[CreateBatchJobInput](../types/CreateBatchJobInput.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -498,7 +518,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[CreateBatchJobInput](../types/CreateBatchJobInput.mdx)>
|
||||
|
||||
@@ -516,11 +536,11 @@ Promise<[CreateBatchJobInput](../types/CreateBatchJobInput.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### retrieve
|
||||
### retrieve
|
||||
|
||||
`**retrieve**(batchJobId, config?): Promise<[BatchJob](BatchJob.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -543,7 +563,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
@@ -561,11 +581,11 @@ Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### setFailed
|
||||
### setFailed
|
||||
|
||||
`**setFailed**(batchJobOrId, error?): Promise<[BatchJob](BatchJob.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -588,7 +608,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
@@ -606,11 +626,11 @@ Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### setPreProcessingDone
|
||||
### setPreProcessingDone
|
||||
|
||||
`**setPreProcessingDone**(batchJobOrId): Promise<[BatchJob](BatchJob.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -624,7 +644,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
@@ -642,11 +662,11 @@ Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### setProcessing
|
||||
### setProcessing
|
||||
|
||||
`**setProcessing**(batchJobOrId): Promise<[BatchJob](BatchJob.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -660,7 +680,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
@@ -678,11 +698,11 @@ Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### shouldRetryTransaction\_
|
||||
### shouldRetryTransaction\_
|
||||
|
||||
`Protected **shouldRetryTransaction_**(err): boolean`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -696,7 +716,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
`boolean`
|
||||
|
||||
@@ -714,11 +734,11 @@ ___
|
||||
|
||||
___
|
||||
|
||||
#### update
|
||||
### update
|
||||
|
||||
`**update**(batchJobOrId, data): Promise<[BatchJob](BatchJob.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -741,7 +761,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
@@ -759,11 +779,11 @@ Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### updateStatus
|
||||
### updateStatus
|
||||
|
||||
`Protected **updateStatus**(batchJobOrId, status): Promise<[BatchJob](BatchJob.mdx)>`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -786,7 +806,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
@@ -804,11 +824,11 @@ Promise<[BatchJob](BatchJob.mdx)>
|
||||
|
||||
___
|
||||
|
||||
#### withTransaction
|
||||
### withTransaction
|
||||
|
||||
`**withTransaction**(transactionManager?): [BatchJobService](BatchJobService.mdx)`
|
||||
|
||||
##### Parameters
|
||||
#### Parameters
|
||||
|
||||
<ParameterTypes parameters={[
|
||||
{
|
||||
@@ -822,7 +842,7 @@ ___
|
||||
}
|
||||
]} />
|
||||
|
||||
##### Returns
|
||||
#### Returns
|
||||
|
||||
[BatchJobService](BatchJobService.mdx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user