@@ -562,13 +562,6 @@ The `sourceType` property indicates where the source code is hosted, and based
562
562
on its value the Version object has the following additional property:
563
563
564
564
<table>
565
- <tr>
566
- <td><code>"SOURCE_CODE"</code></td>
567
- <td>
568
- Source code is a single JavaScript/Node.js file whose content is in the <code>sourceCode</code> field,
569
- and uses a base Docker image specified in <code>baseDockerImage</code>.
570
- </td>
571
- </tr>
572
565
<tr>
573
566
<td><code>"SOURCE_FILES"</code></td>
574
567
<td>
@@ -3786,7 +3779,7 @@ The user account is identified by the provided authentication token.
3786
3779
3787
3780
## Version (object)
3788
3781
- versionNumber: `0.0` (string , required )
3789
- - sourceType: `SOURCE_CODE` (VersionSourceType, required )
3782
+ - sourceType: `SOURCE_FILES` (VersionSourceType, required )
3790
3783
- envVars (array , nullable )
3791
3784
- (object )
3792
3785
- name: `DOMAIN` (string , required )
@@ -3795,10 +3788,25 @@ The user account is identified by the provided authentication token.
3795
3788
- (object )
3796
3789
- name: `SECRET_PASSWORD` (string , required )
3797
3790
- isSecret: true (boolean , nullable )
3798
- - baseDockerImage: `apify/actor-node-basic` (string , nullable )
3799
3791
- applyEnvVarsToBuild: false (boolean , nullable )
3800
3792
- buildTag: `latest` (string , required )
3801
- - sourceCode: `console.log('Hello world!');` (string , nullable )
3793
+ - sourceFiles (array )
3794
+ - (object )
3795
+ - name: `src/main.js` (string , required )
3796
+ - format: `TEXT` (string , required )
3797
+ - content: `console.log('This is the main.js file');` (string , required )
3798
+ - (object )
3799
+ - name: `package.json` (string , required )
3800
+ - format: `TEXT` (string , required )
3801
+ - content: `name: "My Scraper"` (string , required )
3802
+ - (object )
3803
+ - name: `Dockerfile` (string , required )
3804
+ - format: `TEXT` (string , required )
3805
+ - content: ` # Dockerfile contains instructions ...` (string , required )
3806
+ - (object )
3807
+ - name: `README.md` (string , required )
3808
+ - format: `TEXT` (string , required )
3809
+ - content: `My Actor scrapes the web` (string , required )
3802
3810
3803
3811
## EnvVar (object)
3804
3812
- name: `MY_ENV_VAR` (string , required )
@@ -3824,26 +3832,10 @@ The user account is identified by the provided authentication token.
3824
3832
- isSecret: true (boolean , nullable )
3825
3833
3826
3834
## ListOfVersions (array)
3827
- - (object )
3828
- - versionNumber: `0.0` (string , required )
3829
- - sourceType: `SOURCE_CODE` (VersionSourceType, required )
3830
- - envVars (array , nullable )
3831
- - (object )
3832
- - name: `DOMAIN` (string , required )
3833
- - value: `http://example.com` (string , required )
3834
- - isSecret: false (boolean , nullable )
3835
- - (object )
3836
- - name: `SECRET_PASSWORD` (string , required )
3837
- - isSecret: true (boolean , nullable )
3838
- - baseDockerImage: `apify/actor-node-basic` (string , nullable )
3839
- - applyEnvVarsToBuild: false (boolean , nullable )
3840
- - buildTag: `latest` (string , required )
3841
- - sourceCode: `console.log('Hello world!');` (string , nullable )
3842
3835
- (object )
3843
3836
- versionNumber: `0.1` (string , required )
3844
3837
- envVars: [] (array , nullable )
3845
3838
- sourceType: `SOURCE_FILES` (VersionSourceType, required )
3846
- - sourceCode: `console.log('Hello world!');` (string , nullable )
3847
3839
- applyEnvVarsToBuild: false (boolean , nullable )
3848
3840
- buildTag: `latest` (string , required )
3849
3841
- sourceFiles (array )
@@ -3888,7 +3880,7 @@ The user account is identified by the provided authentication token.
3888
3880
3889
3881
## VersionUpdate (object)
3890
3882
- versionNumber: `0.0` (string , nullable )
3891
- - sourceType: `SOURCE_CODE` (VersionSourceType, nullable )
3883
+ - sourceType: `SOURCE_FILES` (VersionSourceType, nullable )
3892
3884
- envVars (array , nullable )
3893
3885
- (object )
3894
3886
- name: `DOMAIN` (string , nullable )
@@ -3898,13 +3890,27 @@ The user account is identified by the provided authentication token.
3898
3890
- name: `SECRET_PASSWORD` (string , nullable )
3899
3891
- value: `MyTopSecretPassword123` (string , nullable )
3900
3892
- isSecret: true (boolean , nullable )
3901
- - baseDockerImage: `apify/actor-node-basic` (string , nullable )
3902
3893
- applyEnvVarsToBuild: false (boolean , nullable )
3903
3894
- buildTag: `latest` (string , nullable )
3904
- - sourceCode: `console.log('Hello world!');` (string , nullable )
3895
+ - sourceFiles (array )
3896
+ - (object )
3897
+ - name: `src/main.js` (string , required )
3898
+ - format: `TEXT` (string , required )
3899
+ - content: `console.log('This is the main.js file');` (string , required )
3900
+ - (object )
3901
+ - name: `package.json` (string , required )
3902
+ - format: `TEXT` (string , required )
3903
+ - content: `name: "My Scraper"` (string , required )
3904
+ - (object )
3905
+ - name: `Dockerfile` (string , required )
3906
+ - format: `TEXT` (string , required )
3907
+ - content: ` # Dockerfile contains instructions ...` (string , required )
3908
+ - (object )
3909
+ - name: `README.md` (string , required )
3910
+ - format: `TEXT` (string , required )
3911
+ - content: `My Actor scrapes the web` (string , required )
3905
3912
3906
3913
## VersionSourceType (enum)
3907
- + `SOURCE_CODE`
3908
3914
+ `SOURCE_FILES`
3909
3915
+ `GIT_REPO`
3910
3916
+ `TARBALL`
0 commit comments