---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/mrt](../index.md) / WaitForEnvOptions

# Interface: WaitForEnvOptions

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/env.ts:371](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/mrt/env.ts#L371)

Options for waiting for an MRT environment to be ready.

## Extends

- [`GetEnvOptions`](GetEnvOptions.md)

## Properties

### onPoll()?

> `optional` **onPoll**: (`info`) => `void`

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/env.ts:387](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/mrt/env.ts#L387)

Optional callback invoked on each poll with current status.

#### Parameters

##### info

[`WaitForEnvPollInfo`](WaitForEnvPollInfo.md)

#### Returns

`void`

***

### origin?

> `optional` **origin**: `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/env.ts:298](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/mrt/env.ts#L298)

MRT API origin URL.

#### Default

```ts
"https://cloud.mobify.com"
```

#### Inherited from

[`GetEnvOptions`](GetEnvOptions.md).[`origin`](GetEnvOptions.md#origin)

***

### pollIntervalSeconds?

> `optional` **pollIntervalSeconds**: `number`

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/env.ts:376](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/mrt/env.ts#L376)

Polling interval in seconds.

#### Default

```ts
10
```

***

### projectSlug

> **projectSlug**: `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/env.ts:287](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/mrt/env.ts#L287)

The project slug containing the environment.

#### Inherited from

[`GetEnvOptions`](GetEnvOptions.md).[`projectSlug`](GetEnvOptions.md#projectslug)

***

### sleep()?

> `optional` **sleep**: (`ms`) => `Promise`\<`void`\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/env.ts:392](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/mrt/env.ts#L392)

Custom sleep function for testing.

#### Parameters

##### ms

`number`

#### Returns

`Promise`\<`void`\>

***

### slug

> **slug**: `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/env.ts:292](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/mrt/env.ts#L292)

Environment slug/identifier to retrieve.

#### Inherited from

[`GetEnvOptions`](GetEnvOptions.md).[`slug`](GetEnvOptions.md#slug)

***

### timeoutSeconds?

> `optional` **timeoutSeconds**: `number`

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/env.ts:382](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/e7c16f1ae423da0aa47b3e10be88f9770b53619b/packages/b2c-tooling-sdk/src/operations/mrt/env.ts#L382)

Maximum time to wait in seconds (0 for no timeout).

#### Default

```ts
2700 (45 minutes)
```
