# BaseVersion<!-- --> \<SourceType>

Fields every Actor version carries, whatever its source type.

The spec models a version as one flat object with all four source locations optional. This client keeps a union discriminated on `sourceType` instead, because that narrows the source location down to the single field which applies -- so the four are dropped here and reinstated per variant. `actorPath` is dropped as well, and only the `SOURCE_FILES` and `TARBALL` variants reinstate it.

### Hierarchy

* Omit\<GeneratedVersion, keyof
  <!-- -->
  VersionClientNarrowings | keyof
  <!-- -->
  VersionRePointed | VersionSourceLocation>

* VersionRePointed

  * *BaseVersion*

    * [VersionGitHubGist](https://docs.apify.com/api/client/js/reference/interface/VersionGitHubGist.md)
    * [VersionGitRepo](https://docs.apify.com/api/client/js/reference/interface/VersionGitRepo.md)
    * [VersionSourceCode](https://docs.apify.com/api/client/js/reference/interface/VersionSourceCode.md)
    * [VersionSourceFiles](https://docs.apify.com/api/client/js/reference/interface/VersionSourceFiles.md)
    * [VersionTarball](https://docs.apify.com/api/client/js/reference/interface/VersionTarball.md)

## Index[](#Index)

### Properties

* [applyEnvVarsToBuild](#applyEnvVarsToBuild)
* [bitbucketWebhookId](#bitbucketWebhookId)
* [buildTag](#buildTag)
* [envVars](#envVars)
* [githubWebhookId](#githubWebhookId)
* [gitlabWebhookId](#gitlabWebhookId)
* [sourceType](#sourceType)
* [versionNumber](#versionNumber)

## Properties<!-- -->[](#Properties)

### [](#applyEnvVarsToBuild)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/generated/api.ts#L5336)optionalinheritedapplyEnvVarsToBuild

applyEnvVarsToBuild?

<!-- -->

: null | boolean

Inherited from Omit.applyEnvVarsToBuild

```
false
```

Whether to inject the environment variables at build time.

### [](#bitbucketWebhookId)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/generated/api.ts#L5360)optionalinheritedbitbucketWebhookId

bitbucketWebhookId?

<!-- -->

: null | string

Inherited from Omit.bitbucketWebhookId

ID of the Bitbucket webhook that triggers a build on push. Present when build on push is enabled for a Bitbucket repository.

### [](#buildTag)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/generated/api.ts#L5341)optionalinheritedbuildTag

buildTag?

<!-- -->

: null | string

Inherited from Omit.buildTag

```
latest
```

The tag name to apply to a successful build of this version. Can be `null` when the version has no build tag.

### [](#envVars)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/models.ts#L270)optionalinheritedenvVars

envVars?

<!-- -->

: null | [EnvVar](https://docs.apify.com/api/client/js/reference/interface/EnvVar.md)\[]

Inherited from VersionRePointed.envVars

### [](#githubWebhookId)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/generated/api.ts#L5356)optionalinheritedgithubWebhookId

githubWebhookId?

<!-- -->

: null | number

Inherited from Omit.githubWebhookId

ID of the GitHub webhook that triggers a build on push. Present when build on push is enabled for a GitHub repository.

### [](#gitlabWebhookId)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/generated/api.ts#L5358)optionalinheritedgitlabWebhookId

gitlabWebhookId?

<!-- -->

: null | number

Inherited from Omit.gitlabWebhookId

ID of the GitLab webhook that triggers a build on push. Present when build on push is enabled for a GitLab repository.

### [](#sourceType)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/models.ts#L295)sourceType

sourceType: SourceType

### [](#versionNumber)[](https://github.com/apify/apify-client-js/blob/af7590882995a0bde27cc341c79f21d08bec1e56/src/generated/api.ts#L5327)inheritedversionNumber

versionNumber: string

Inherited from Omit.versionNumber

```
0.0
```

The version number of the Actor. Two numbers separated by a dot, that represent the `MAJOR.MINOR` part of the semantic versioning.
