apify-client 3.0.0-beta.116 → 3.0.0-beta.117
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle.js +2 -2
- package/dist/bundle.js.map +1 -1
- package/dist/resource_clients/actor_version.d.ts +2 -1
- package/dist/resource_clients/actor_version.js +3 -2
- package/dist/resource_clients/actor_version_collection.d.ts +2 -1
- package/dist/resource_clients/actor_version_collection.js +3 -2
- package/package.json +1 -1
|
@@ -46,7 +46,8 @@ export declare class ActorVersionClient extends ResourceClient {
|
|
|
46
46
|
*
|
|
47
47
|
* @param newFields - Fields to update.
|
|
48
48
|
* @param options - Request options
|
|
49
|
-
* @param options.timeoutSecs - Timeout for the API request. Default is `'
|
|
49
|
+
* @param options.timeoutSecs - Timeout for the API request. Default is `'long'`, since the version can carry
|
|
50
|
+
* its source files.
|
|
50
51
|
* @returns The updated Actor version object.
|
|
51
52
|
* @see https://docs.apify.com/api/v2/act-version-put
|
|
52
53
|
*/
|
|
@@ -55,13 +55,14 @@ export class ActorVersionClient extends ResourceClient {
|
|
|
55
55
|
*
|
|
56
56
|
* @param newFields - Fields to update.
|
|
57
57
|
* @param options - Request options
|
|
58
|
-
* @param options.timeoutSecs - Timeout for the API request. Default is `'
|
|
58
|
+
* @param options.timeoutSecs - Timeout for the API request. Default is `'long'`, since the version can carry
|
|
59
|
+
* its source files.
|
|
59
60
|
* @returns The updated Actor version object.
|
|
60
61
|
* @see https://docs.apify.com/api/v2/act-version-put
|
|
61
62
|
*/
|
|
62
63
|
async update(newFields, options = {}) {
|
|
63
64
|
parseArgument(newFields, anyObjectSchema);
|
|
64
|
-
const { timeoutSecs = '
|
|
65
|
+
const { timeoutSecs = 'long', signal } = parseArgument(options, timeoutOptionsSchema, 'TimeoutOptions');
|
|
65
66
|
return this.updateResource(schemas.Version(), newFields, timeoutSecs, signal);
|
|
66
67
|
}
|
|
67
68
|
/**
|
|
@@ -60,7 +60,8 @@ export declare class ActorVersionCollectionClient extends ResourceCollectionClie
|
|
|
60
60
|
*
|
|
61
61
|
* @param actorVersion - The Actor version data.
|
|
62
62
|
* @param options - Request options
|
|
63
|
-
* @param options.timeoutSecs - Timeout for the API request. Default is `'
|
|
63
|
+
* @param options.timeoutSecs - Timeout for the API request. Default is `'long'`, since the version can carry
|
|
64
|
+
* its source files.
|
|
64
65
|
* @returns The created Actor version object.
|
|
65
66
|
* @see https://docs.apify.com/api/v2/act-versions-post
|
|
66
67
|
*/
|
|
@@ -68,13 +68,14 @@ export class ActorVersionCollectionClient extends ResourceCollectionClient {
|
|
|
68
68
|
*
|
|
69
69
|
* @param actorVersion - The Actor version data.
|
|
70
70
|
* @param options - Request options
|
|
71
|
-
* @param options.timeoutSecs - Timeout for the API request. Default is `'
|
|
71
|
+
* @param options.timeoutSecs - Timeout for the API request. Default is `'long'`, since the version can carry
|
|
72
|
+
* its source files.
|
|
72
73
|
* @returns The created Actor version object.
|
|
73
74
|
* @see https://docs.apify.com/api/v2/act-versions-post
|
|
74
75
|
*/
|
|
75
76
|
async create(actorVersion, options = {}) {
|
|
76
77
|
parseArgument(actorVersion, actorVersionSchema);
|
|
77
|
-
const { timeoutSecs = '
|
|
78
|
+
const { timeoutSecs = 'long', signal } = parseArgument(options, timeoutOptionsSchema, 'TimeoutOptions');
|
|
78
79
|
return this.createResource(schemas.Version(), actorVersion, timeoutSecs, signal);
|
|
79
80
|
}
|
|
80
81
|
}
|