Skip to content

Commit

Permalink
Update API docs [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Automated Build committed Feb 22, 2024
1 parent 2094b8e commit ef82d88
Show file tree
Hide file tree
Showing 227 changed files with 3,805 additions and 2,720 deletions.
2 changes: 1 addition & 1 deletion ref-docs/sitecore-jss-angular-schematics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@

#### Defined in

[index.ts:41](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular-schematics/src/jss-component/index.ts#L41)
[index.ts:41](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular-schematics/src/jss-component/index.ts#L41)
6 changes: 4 additions & 2 deletions ref-docs/sitecore-jss-angular/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

- [ComponentNameAndType](classes/ComponentNameAndType.md)
- [DateDirective](classes/DateDirective.md)
- [DefaultRetryStrategy](classes/DefaultRetryStrategy.md)
- [EditFrameComponent](classes/EditFrameComponent.md)
- [FileDirective](classes/FileDirective.md)
- [GenericLinkDirective](classes/GenericLinkDirective.md)
Expand Down Expand Up @@ -62,6 +63,7 @@
- [OutcomeInstance](interfaces/OutcomeInstance.md)
- [PageViewInstance](interfaces/PageViewInstance.md)
- [RenderingField](interfaces/RenderingField.md)
- [RetryStrategy](interfaces/RetryStrategy.md)
- [RichTextField](interfaces/RichTextField.md)
- [RouteData](interfaces/RouteData.md)
- [TextField](interfaces/TextField.md)
Expand Down Expand Up @@ -196,7 +198,7 @@ sitecore-jss/types/utils/edit-frame.d.ts:57

#### Defined in

[sitecore-jss-angular/src/components/placeholder.token.ts:65](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/placeholder.token.ts#L65)
[sitecore-jss-angular/src/components/placeholder.token.ts:65](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/placeholder.token.ts#L65)

___

Expand Down Expand Up @@ -405,7 +407,7 @@ rendering is HtmlElementRendering

#### Defined in

[sitecore-jss-angular/src/components/rendering.ts:6](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/rendering.ts#L6)
[sitecore-jss-angular/src/components/rendering.ts:6](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/rendering.ts#L6)

___

Expand Down
8 changes: 4 additions & 4 deletions ref-docs/sitecore-jss-angular/classes/ComponentNameAndType.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Registers a statically loaded component

#### Defined in

[sitecore-jss-angular/src/components/placeholder.token.ts:12](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/placeholder.token.ts#L12)
[sitecore-jss-angular/src/components/placeholder.token.ts:12](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/placeholder.token.ts#L12)

___

Expand All @@ -41,7 +41,7 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/placeholder.token.ts:9](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/placeholder.token.ts#L9)
[sitecore-jss-angular/src/components/placeholder.token.ts:9](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/placeholder.token.ts#L9)

___

Expand All @@ -55,7 +55,7 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/placeholder.token.ts:17](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/placeholder.token.ts#L17)
[sitecore-jss-angular/src/components/placeholder.token.ts:17](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/placeholder.token.ts#L17)

___

Expand All @@ -65,4 +65,4 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/placeholder.token.ts:10](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/placeholder.token.ts#L10)
[sitecore-jss-angular/src/components/placeholder.token.ts:10](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/placeholder.token.ts#L10)
24 changes: 12 additions & 12 deletions ref-docs/sitecore-jss-angular/classes/DateDirective.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:29](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L29)
[sitecore-jss-angular/src/components/date.directive.ts:29](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L29)

## Properties

Expand All @@ -55,7 +55,7 @@

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:32](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L32)
[sitecore-jss-angular/src/components/date.directive.ts:32](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L32)

___

Expand All @@ -65,7 +65,7 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:23](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L23)
[sitecore-jss-angular/src/components/date.directive.ts:23](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L23)

___

Expand All @@ -75,7 +75,7 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:25](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L25)
[sitecore-jss-angular/src/components/date.directive.ts:25](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L25)

___

Expand All @@ -85,7 +85,7 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:17](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L17)
[sitecore-jss-angular/src/components/date.directive.ts:17](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L17)

___

Expand All @@ -95,7 +95,7 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:21](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L21)
[sitecore-jss-angular/src/components/date.directive.ts:21](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L21)

___

Expand All @@ -105,7 +105,7 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:31](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L31)
[sitecore-jss-angular/src/components/date.directive.ts:31](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L31)

___

Expand All @@ -115,7 +115,7 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:19](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L19)
[sitecore-jss-angular/src/components/date.directive.ts:19](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L19)

___

Expand All @@ -125,7 +125,7 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:30](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L30)
[sitecore-jss-angular/src/components/date.directive.ts:30](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L30)

___

Expand All @@ -135,7 +135,7 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:27](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L27)
[sitecore-jss-angular/src/components/date.directive.ts:27](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L27)

## Methods

Expand All @@ -159,7 +159,7 @@ OnChanges.ngOnChanges

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:35](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L35)
[sitecore-jss-angular/src/components/date.directive.ts:35](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L35)

___

Expand All @@ -173,4 +173,4 @@ ___

#### Defined in

[sitecore-jss-angular/src/components/date.directive.ts:46](https://github.com/Sitecore/jss/blob/bbc7ec2d5/packages/sitecore-jss-angular/src/components/date.directive.ts#L46)
[sitecore-jss-angular/src/components/date.directive.ts:46](https://github.com/Sitecore/jss/blob/2094b8e09/packages/sitecore-jss-angular/src/components/date.directive.ts#L46)
124 changes: 124 additions & 0 deletions ref-docs/sitecore-jss-angular/classes/DefaultRetryStrategy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
[@sitecore-jss/sitecore-jss-angular](../README.md) / DefaultRetryStrategy

# Class: DefaultRetryStrategy

Represents a default retry strategy for handling retry attempts in case of specific HTTP status codes.
This class implements the RetryStrategy interface and provides methods to determine whether a request
should be retried and calculates the delay before the next retry attempt.

## Implements

- [`RetryStrategy`](../interfaces/RetryStrategy.md)

## Table of contents

### Constructors

- [constructor](DefaultRetryStrategy.md#constructor)

### Properties

- [factor](DefaultRetryStrategy.md#factor)
- [statusCodes](DefaultRetryStrategy.md#statuscodes)

### Methods

- [getDelay](DefaultRetryStrategy.md#getdelay)
- [shouldRetry](DefaultRetryStrategy.md#shouldretry)

## Constructors

### constructor

**new DefaultRetryStrategy**(`options?`)

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `options?` | `Object` | Configurable options for retry mechanism. |
| `options.factor?` | `number` | Factor by which the delay increases with each retry attempt |
| `options.statusCodes?` | `number`[] | HTTP status codes to trigger retries on |

#### Defined in

sitecore-jss/types/graphql-request-client.d.ts:94

## Properties

### factor

`Private` **factor**: `any`

#### Defined in

sitecore-jss/types/graphql-request-client.d.ts:88

___

### statusCodes

`Private` **statusCodes**: `any`

#### Defined in

sitecore-jss/types/graphql-request-client.d.ts:87

## Methods

### getDelay

**getDelay**(`error`, `attempt`): `number`

Calculates the delay (in milliseconds) before the next retry based on the given error and attempt count.

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `error` | `ClientError` | The error received from the GraphQL request. |
| `attempt` | `number` | The current attempt number. |

#### Returns

`number`

The delay in milliseconds before the next retry.

#### Implementation of

[RetryStrategy](../interfaces/RetryStrategy.md).[getDelay](../interfaces/RetryStrategy.md#getdelay)

#### Defined in

sitecore-jss/types/graphql-request-client.d.ts:99

___

### shouldRetry

**shouldRetry**(`error`, `attempt`, `retries`): `boolean`

Determines whether a request should be retried based on the given error and attempt count.

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `error` | `ClientError` | The error received from the GraphQL request. |
| `attempt` | `number` | The current attempt number. |
| `retries` | `number` | The number of retries configured. |

#### Returns

`boolean`

A boolean indicating whether to retry the request.

#### Implementation of

[RetryStrategy](../interfaces/RetryStrategy.md).[shouldRetry](../interfaces/RetryStrategy.md#shouldretry)

#### Defined in

sitecore-jss/types/graphql-request-client.d.ts:98
Loading

0 comments on commit ef82d88

Please sign in to comment.