apify-client 2.20.1-beta.6 → 2.20.1-beta.8

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.
Files changed (118) hide show
  1. package/dist/apify_client.d.ts +237 -25
  2. package/dist/apify_client.d.ts.map +1 -1
  3. package/dist/apify_client.js +234 -25
  4. package/dist/apify_client.js.map +1 -1
  5. package/dist/bundle.js +2042 -253
  6. package/dist/bundle.js.map +1 -1
  7. package/dist/resource_clients/actor.d.ts +322 -31
  8. package/dist/resource_clients/actor.d.ts.map +1 -1
  9. package/dist/resource_clients/actor.js +167 -19
  10. package/dist/resource_clients/actor.js.map +1 -1
  11. package/dist/resource_clients/actor_collection.d.ts +34 -3
  12. package/dist/resource_clients/actor_collection.d.ts.map +1 -1
  13. package/dist/resource_clients/actor_collection.js +34 -3
  14. package/dist/resource_clients/actor_collection.js.map +1 -1
  15. package/dist/resource_clients/actor_env_var.d.ts +34 -3
  16. package/dist/resource_clients/actor_env_var.d.ts.map +1 -1
  17. package/dist/resource_clients/actor_env_var.js +34 -3
  18. package/dist/resource_clients/actor_env_var.js.map +1 -1
  19. package/dist/resource_clients/actor_env_var_collection.d.ts +37 -3
  20. package/dist/resource_clients/actor_env_var_collection.d.ts.map +1 -1
  21. package/dist/resource_clients/actor_env_var_collection.js +37 -3
  22. package/dist/resource_clients/actor_env_var_collection.js.map +1 -1
  23. package/dist/resource_clients/actor_version.d.ts +42 -6
  24. package/dist/resource_clients/actor_version.d.ts.map +1 -1
  25. package/dist/resource_clients/actor_version.js +42 -6
  26. package/dist/resource_clients/actor_version.js.map +1 -1
  27. package/dist/resource_clients/actor_version_collection.d.ts +35 -3
  28. package/dist/resource_clients/actor_version_collection.d.ts.map +1 -1
  29. package/dist/resource_clients/actor_version_collection.js +35 -3
  30. package/dist/resource_clients/actor_version_collection.js.map +1 -1
  31. package/dist/resource_clients/build.d.ts +123 -11
  32. package/dist/resource_clients/build.d.ts.map +1 -1
  33. package/dist/resource_clients/build.js +93 -11
  34. package/dist/resource_clients/build.js.map +1 -1
  35. package/dist/resource_clients/build_collection.d.ts +27 -2
  36. package/dist/resource_clients/build_collection.d.ts.map +1 -1
  37. package/dist/resource_clients/build_collection.js +27 -2
  38. package/dist/resource_clients/build_collection.js.map +1 -1
  39. package/dist/resource_clients/dataset.d.ts +221 -15
  40. package/dist/resource_clients/dataset.d.ts.map +1 -1
  41. package/dist/resource_clients/dataset.js +185 -15
  42. package/dist/resource_clients/dataset.js.map +1 -1
  43. package/dist/resource_clients/dataset_collection.d.ts +32 -3
  44. package/dist/resource_clients/dataset_collection.d.ts.map +1 -1
  45. package/dist/resource_clients/dataset_collection.js +32 -3
  46. package/dist/resource_clients/dataset_collection.js.map +1 -1
  47. package/dist/resource_clients/key_value_store.d.ts +219 -26
  48. package/dist/resource_clients/key_value_store.d.ts.map +1 -1
  49. package/dist/resource_clients/key_value_store.js +172 -25
  50. package/dist/resource_clients/key_value_store.js.map +1 -1
  51. package/dist/resource_clients/key_value_store_collection.d.ts +32 -3
  52. package/dist/resource_clients/key_value_store_collection.d.ts.map +1 -1
  53. package/dist/resource_clients/key_value_store_collection.js +32 -3
  54. package/dist/resource_clients/key_value_store_collection.js.map +1 -1
  55. package/dist/resource_clients/log.d.ts +34 -3
  56. package/dist/resource_clients/log.d.ts.map +1 -1
  57. package/dist/resource_clients/log.js +34 -3
  58. package/dist/resource_clients/log.js.map +1 -1
  59. package/dist/resource_clients/request_queue.d.ts +290 -19
  60. package/dist/resource_clients/request_queue.d.ts.map +1 -1
  61. package/dist/resource_clients/request_queue.js +233 -19
  62. package/dist/resource_clients/request_queue.js.map +1 -1
  63. package/dist/resource_clients/request_queue_collection.d.ts +31 -3
  64. package/dist/resource_clients/request_queue_collection.d.ts.map +1 -1
  65. package/dist/resource_clients/request_queue_collection.js +31 -3
  66. package/dist/resource_clients/request_queue_collection.js.map +1 -1
  67. package/dist/resource_clients/run.d.ts +224 -27
  68. package/dist/resource_clients/run.d.ts.map +1 -1
  69. package/dist/resource_clients/run.js +200 -27
  70. package/dist/resource_clients/run.js.map +1 -1
  71. package/dist/resource_clients/run_collection.d.ts +27 -2
  72. package/dist/resource_clients/run_collection.d.ts.map +1 -1
  73. package/dist/resource_clients/run_collection.js +27 -2
  74. package/dist/resource_clients/run_collection.js.map +1 -1
  75. package/dist/resource_clients/schedule.d.ts +65 -4
  76. package/dist/resource_clients/schedule.d.ts.map +1 -1
  77. package/dist/resource_clients/schedule.js +42 -4
  78. package/dist/resource_clients/schedule.js.map +1 -1
  79. package/dist/resource_clients/schedule_collection.d.ts +35 -3
  80. package/dist/resource_clients/schedule_collection.d.ts.map +1 -1
  81. package/dist/resource_clients/schedule_collection.js +35 -3
  82. package/dist/resource_clients/schedule_collection.js.map +1 -1
  83. package/dist/resource_clients/store_collection.d.ts +26 -2
  84. package/dist/resource_clients/store_collection.d.ts.map +1 -1
  85. package/dist/resource_clients/store_collection.js +26 -2
  86. package/dist/resource_clients/store_collection.js.map +1 -1
  87. package/dist/resource_clients/task.d.ts +110 -11
  88. package/dist/resource_clients/task.d.ts.map +1 -1
  89. package/dist/resource_clients/task.js +83 -11
  90. package/dist/resource_clients/task.js.map +1 -1
  91. package/dist/resource_clients/task_collection.d.ts +35 -8
  92. package/dist/resource_clients/task_collection.d.ts.map +1 -1
  93. package/dist/resource_clients/task_collection.js +35 -8
  94. package/dist/resource_clients/task_collection.js.map +1 -1
  95. package/dist/resource_clients/user.d.ts +41 -4
  96. package/dist/resource_clients/user.d.ts.map +1 -1
  97. package/dist/resource_clients/user.js +41 -4
  98. package/dist/resource_clients/user.js.map +1 -1
  99. package/dist/resource_clients/webhook.d.ts +66 -5
  100. package/dist/resource_clients/webhook.d.ts.map +1 -1
  101. package/dist/resource_clients/webhook.js +48 -5
  102. package/dist/resource_clients/webhook.js.map +1 -1
  103. package/dist/resource_clients/webhook_collection.d.ts +34 -3
  104. package/dist/resource_clients/webhook_collection.d.ts.map +1 -1
  105. package/dist/resource_clients/webhook_collection.js +34 -3
  106. package/dist/resource_clients/webhook_collection.js.map +1 -1
  107. package/dist/resource_clients/webhook_dispatch.d.ts +22 -1
  108. package/dist/resource_clients/webhook_dispatch.d.ts.map +1 -1
  109. package/dist/resource_clients/webhook_dispatch.js +22 -1
  110. package/dist/resource_clients/webhook_dispatch.js.map +1 -1
  111. package/dist/resource_clients/webhook_dispatch_collection.d.ts +24 -2
  112. package/dist/resource_clients/webhook_dispatch_collection.d.ts.map +1 -1
  113. package/dist/resource_clients/webhook_dispatch_collection.js +24 -2
  114. package/dist/resource_clients/webhook_dispatch_collection.js.map +1 -1
  115. package/dist/utils.d.ts +42 -0
  116. package/dist/utils.d.ts.map +1 -1
  117. package/dist/utils.js.map +1 -1
  118. package/package.json +1 -1
@@ -2,19 +2,45 @@ import type { ApiClientSubResourceOptions } from '../base/api_client';
2
2
  import { ResourceCollectionClient } from '../base/resource_collection_client';
3
3
  import type { PaginatedList, PaginationOptions } from '../utils';
4
4
  import type { ActorEnvironmentVariable } from './actor_version';
5
+ /**
6
+ * Client for managing the collection of environment variables for an Actor version.
7
+ *
8
+ * Environment variables are key-value pairs that are available to the Actor during execution.
9
+ * This client provides methods to list and create environment variables.
10
+ *
11
+ * @example
12
+ * ```javascript
13
+ * const client = new ApifyClient({ token: 'my-token' });
14
+ * const actorClient = client.actor('my-actor-id');
15
+ * const versionClient = actorClient.version('0.1');
16
+ *
17
+ * // List all environment variables
18
+ * const envVarsClient = versionClient.envVars();
19
+ * const { items } = await envVarsClient.list();
20
+ *
21
+ * // Create a new environment variable
22
+ * const newEnvVar = await envVarsClient.create({
23
+ * name: 'MY_VAR',
24
+ * value: 'my-value',
25
+ * isSecret: false
26
+ * });
27
+ * ```
28
+ *
29
+ * @see https://docs.apify.com/platform/actors/development/actor-definition/environment-variables
30
+ */
5
31
  export declare class ActorEnvVarCollectionClient extends ResourceCollectionClient {
6
32
  /**
7
33
  * @hidden
8
34
  */
9
35
  constructor(options: ApiClientSubResourceOptions);
10
36
  /**
11
- * https://docs.apify.com/api/v2#/reference/actors/environment-variable-collection/get-list-of-environment-variables
37
+ * Lists all environment variables of this Actor version.
12
38
  *
13
39
  * Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched
14
40
  * items in a single API call is limited.
15
41
  * ```javascript
16
42
  * const paginatedList = await client.list(options);
17
- *```
43
+ * ```
18
44
  *
19
45
  * Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are
20
46
  * retrieved.
@@ -22,10 +48,18 @@ export declare class ActorEnvVarCollectionClient extends ResourceCollectionClien
22
48
  * ```javascript
23
49
  * for await (const singleItem of client.list(options)) {...}
24
50
  * ```
51
+ *
52
+ * @param options - Pagination options.
53
+ * @returns A paginated iterator of environment variables.
54
+ * @see https://docs.apify.com/api/v2/act-version-env-vars-get
25
55
  */
26
56
  list(options?: ActorEnvVarCollectionListOptions): Promise<ActorEnvVarListResult> & AsyncIterable<ActorEnvironmentVariable>;
27
57
  /**
28
- * https://docs.apify.com/api/v2#/reference/actors/environment-variable-collection/create-environment-variable
58
+ * Creates a new environment variable for this Actor version.
59
+ *
60
+ * @param actorEnvVar - The environment variable data.
61
+ * @returns The created environment variable object.
62
+ * @see https://docs.apify.com/api/v2/act-version-env-vars-post
29
63
  */
30
64
  create(actorEnvVar: ActorEnvironmentVariable): Promise<ActorEnvironmentVariable>;
31
65
  }
@@ -1 +1 @@
1
- {"version":3,"file":"actor_env_var_collection.d.ts","sourceRoot":"","sources":["../../src/resource_clients/actor_env_var_collection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEhE,qBAAa,2BAA4B,SAAQ,wBAAwB;IACrE;;OAEG;gBACS,OAAO,EAAE,2BAA2B;IAOhD;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACA,OAAO,GAAE,gCAAqC,GAC/C,OAAO,CAAC,qBAAqB,CAAC,GAAG,aAAa,CAAC,wBAAwB,CAAC;IAY3E;;OAEG;IACG,MAAM,CAAC,WAAW,EAAE,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAIzF;AAED,MAAM,WAAW,gCAAiC,SAAQ,iBAAiB;IACvE,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"actor_env_var_collection.d.ts","sourceRoot":"","sources":["../../src/resource_clients/actor_env_var_collection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,2BAA4B,SAAQ,wBAAwB;IACrE;;OAEG;gBACS,OAAO,EAAE,2BAA2B;IAOhD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,CACA,OAAO,GAAE,gCAAqC,GAC/C,OAAO,CAAC,qBAAqB,CAAC,GAAG,aAAa,CAAC,wBAAwB,CAAC;IAY3E;;;;;;OAMG;IACG,MAAM,CAAC,WAAW,EAAE,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAC;CAIzF;AAED,MAAM,WAAW,gCAAiC,SAAQ,iBAAiB;IACvE,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,aAAa,CAAC,wBAAwB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC"}
@@ -4,6 +4,32 @@ exports.ActorEnvVarCollectionClient = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const ow_1 = tslib_1.__importDefault(require("ow"));
6
6
  const resource_collection_client_1 = require("../base/resource_collection_client");
7
+ /**
8
+ * Client for managing the collection of environment variables for an Actor version.
9
+ *
10
+ * Environment variables are key-value pairs that are available to the Actor during execution.
11
+ * This client provides methods to list and create environment variables.
12
+ *
13
+ * @example
14
+ * ```javascript
15
+ * const client = new ApifyClient({ token: 'my-token' });
16
+ * const actorClient = client.actor('my-actor-id');
17
+ * const versionClient = actorClient.version('0.1');
18
+ *
19
+ * // List all environment variables
20
+ * const envVarsClient = versionClient.envVars();
21
+ * const { items } = await envVarsClient.list();
22
+ *
23
+ * // Create a new environment variable
24
+ * const newEnvVar = await envVarsClient.create({
25
+ * name: 'MY_VAR',
26
+ * value: 'my-value',
27
+ * isSecret: false
28
+ * });
29
+ * ```
30
+ *
31
+ * @see https://docs.apify.com/platform/actors/development/actor-definition/environment-variables
32
+ */
7
33
  class ActorEnvVarCollectionClient extends resource_collection_client_1.ResourceCollectionClient {
8
34
  /**
9
35
  * @hidden
@@ -15,13 +41,13 @@ class ActorEnvVarCollectionClient extends resource_collection_client_1.ResourceC
15
41
  });
16
42
  }
17
43
  /**
18
- * https://docs.apify.com/api/v2#/reference/actors/environment-variable-collection/get-list-of-environment-variables
44
+ * Lists all environment variables of this Actor version.
19
45
  *
20
46
  * Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched
21
47
  * items in a single API call is limited.
22
48
  * ```javascript
23
49
  * const paginatedList = await client.list(options);
24
- *```
50
+ * ```
25
51
  *
26
52
  * Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are
27
53
  * retrieved.
@@ -29,6 +55,10 @@ class ActorEnvVarCollectionClient extends resource_collection_client_1.ResourceC
29
55
  * ```javascript
30
56
  * for await (const singleItem of client.list(options)) {...}
31
57
  * ```
58
+ *
59
+ * @param options - Pagination options.
60
+ * @returns A paginated iterator of environment variables.
61
+ * @see https://docs.apify.com/api/v2/act-version-env-vars-get
32
62
  */
33
63
  list(options = {}) {
34
64
  (0, ow_1.default)(options, ow_1.default.object.exactShape({
@@ -39,7 +69,11 @@ class ActorEnvVarCollectionClient extends resource_collection_client_1.ResourceC
39
69
  return this._listPaginated(options);
40
70
  }
41
71
  /**
42
- * https://docs.apify.com/api/v2#/reference/actors/environment-variable-collection/create-environment-variable
72
+ * Creates a new environment variable for this Actor version.
73
+ *
74
+ * @param actorEnvVar - The environment variable data.
75
+ * @returns The created environment variable object.
76
+ * @see https://docs.apify.com/api/v2/act-version-env-vars-post
43
77
  */
44
78
  async create(actorEnvVar) {
45
79
  (0, ow_1.default)(actorEnvVar, ow_1.default.optional.object);
@@ -1 +1 @@
1
- {"version":3,"file":"actor_env_var_collection.js","sourceRoot":"","sources":["../../src/resource_clients/actor_env_var_collection.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAGpB,mFAA8E;AAI9E,MAAa,2BAA4B,SAAQ,qDAAwB;IACrE;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,UAAU;YACxB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACA,UAA4C,EAAE;QAE9C,IAAA,YAAE,EACE,OAAO,EACP,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC;YACjB,KAAK,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YACzB,MAAM,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YAC1B,IAAI,EAAE,YAAE,CAAC,QAAQ,CAAC,OAAO;SAC5B,CAAC,CACL,CAAC;QACF,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,WAAqC;QAC9C,IAAA,YAAE,EAAC,WAAW,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;CACJ;AAhDD,kEAgDC"}
1
+ {"version":3,"file":"actor_env_var_collection.js","sourceRoot":"","sources":["../../src/resource_clients/actor_env_var_collection.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAGpB,mFAA8E;AAI9E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAa,2BAA4B,SAAQ,qDAAwB;IACrE;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,UAAU;YACxB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,CACA,UAA4C,EAAE;QAE9C,IAAA,YAAE,EACE,OAAO,EACP,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC;YACjB,KAAK,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YACzB,MAAM,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YAC1B,IAAI,EAAE,YAAE,CAAC,QAAQ,CAAC,OAAO;SAC5B,CAAC,CACL,CAAC;QACF,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,WAAqC;QAC9C,IAAA,YAAE,EAAC,WAAW,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IACrC,CAAC;CACJ;AAxDD,kEAwDC"}
@@ -2,30 +2,66 @@ import type { ApiClientSubResourceOptions } from '../base/api_client';
2
2
  import { ResourceClient } from '../base/resource_client';
3
3
  import { ActorEnvVarClient } from './actor_env_var';
4
4
  import { ActorEnvVarCollectionClient } from './actor_env_var_collection';
5
+ /**
6
+ * Client for managing a specific Actor version.
7
+ *
8
+ * Actor versions represent specific builds or snapshots of an Actor's code. This client provides
9
+ * methods to get, update, and delete versions, as well as manage their environment variables.
10
+ *
11
+ * @example
12
+ * ```javascript
13
+ * const client = new ApifyClient({ token: 'my-token' });
14
+ * const actorClient = client.actor('my-actor-id');
15
+ *
16
+ * // Get a specific version
17
+ * const versionClient = actorClient.version('0.1');
18
+ * const version = await versionClient.get();
19
+ *
20
+ * // Update version
21
+ * await versionClient.update({ buildTag: 'latest' });
22
+ * ```
23
+ *
24
+ * @see https://docs.apify.com/platform/actors/development/actor-definition/versions
25
+ */
5
26
  export declare class ActorVersionClient extends ResourceClient {
6
27
  /**
7
28
  * @hidden
8
29
  */
9
30
  constructor(options: ApiClientSubResourceOptions);
10
31
  /**
11
- * https://docs.apify.com/api/v2#/reference/actors/version-object/get-version
32
+ * Retrieves the Actor version.
33
+ *
34
+ * @returns The Actor version object, or `undefined` if it does not exist.
35
+ * @see https://docs.apify.com/api/v2/act-version-get
12
36
  */
13
37
  get(): Promise<FinalActorVersion | undefined>;
14
38
  /**
15
- * https://docs.apify.com/api/v2#/reference/actors/version-object/update-version
39
+ * Updates the Actor version with the specified fields.
40
+ *
41
+ * @param newFields - Fields to update.
42
+ * @returns The updated Actor version object.
43
+ * @see https://docs.apify.com/api/v2/act-version-put
16
44
  */
17
45
  update(newFields: ActorVersion): Promise<FinalActorVersion>;
18
46
  /**
19
- * https://docs.apify.com/api/v2#/reference/actors/version-object/delete-version
47
+ * Deletes the Actor version.
48
+ *
49
+ * @see https://docs.apify.com/api/v2/act-version-delete
20
50
  */
21
51
  delete(): Promise<void>;
22
52
  /**
23
- * TODO: https://docs.apify.com/api/v2#/reference/actors/env-var-object
53
+ * Returns a client for the specified environment variable of this Actor version.
54
+ *
55
+ * @param envVarName - Name of the environment variable.
56
+ * @returns A client for the environment variable.
57
+ * @see https://docs.apify.com/api/v2/act-version-env-var-get
24
58
  */
25
59
  envVar(envVarName: string): ActorEnvVarClient;
26
60
  /**
27
- * TODO: https://docs.apify.com/api/v2#/reference/actors/env-var-collection
28
- * @return {ActorVersionCollectionClient}
61
+ * Returns a client for the environment variables of this Actor version.
62
+ *
63
+ * @returns A client for the Actor version's environment variables.
64
+ * @see https://docs.apify.com/api/v2/act-version-env-vars-get
29
65
  */
30
66
  envVars(): ActorEnvVarCollectionClient;
31
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"actor_version.d.ts","sourceRoot":"","sources":["../../src/resource_clients/actor_version.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAEzE,qBAAa,kBAAmB,SAAQ,cAAc;IAClD;;OAEG;gBACS,OAAO,EAAE,2BAA2B;IAOhD;;OAEG;IACG,GAAG,IAAI,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC;IAInD;;OAEG;IACG,MAAM,CAAC,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMjE;;OAEG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B;;OAEG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,iBAAiB;IAS7C;;;OAGG;IACH,OAAO,IAAI,2BAA2B;CAGzC;AAED,MAAM,WAAW,gBAAgB,CAAC,UAAU,SAAS,eAAe;IAChE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB,CAAC,eAAe,CAAC,WAAW,CAAC;IAC1F,WAAW,EAAE,sBAAsB,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC;IAClF,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC;IAClF,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB,CAAC,eAAe,CAAC,UAAU,CAAC;IACxF,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,oBAAY,eAAe;IACvB,WAAW,iBAAiB;IAC5B,OAAO,aAAa;IACpB,OAAO,YAAY;IACnB,UAAU,gBAAgB;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,YAAY,GAAG,uBAAuB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,sBAAsB,CAAC;AAExH,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,eAAe,GAAG,UAAU,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"actor_version.d.ts","sourceRoot":"","sources":["../../src/resource_clients/actor_version.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,4BAA4B,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,kBAAmB,SAAQ,cAAc;IAClD;;OAEG;gBACS,OAAO,EAAE,2BAA2B;IAOhD;;;;;OAKG;IACG,GAAG,IAAI,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC;IAInD;;;;;;OAMG;IACG,MAAM,CAAC,SAAS,EAAE,YAAY,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAMjE;;;;OAIG;IACG,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B;;;;;;OAMG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,GAAG,iBAAiB;IAS7C;;;;;OAKG;IACH,OAAO,IAAI,2BAA2B;CAGzC;AAED,MAAM,WAAW,gBAAgB,CAAC,UAAU,SAAS,eAAe;IAChE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACrC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB,CAAC,eAAe,CAAC,WAAW,CAAC;IAC1F,WAAW,EAAE,sBAAsB,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC;IAClF,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB,CAAC,eAAe,CAAC,OAAO,CAAC;IAClF,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB,CAAC,eAAe,CAAC,UAAU,CAAC;IACxF,aAAa,EAAE,MAAM,CAAC;CACzB;AAED,oBAAY,eAAe;IACvB,WAAW,iBAAiB;IAC5B,OAAO,aAAa;IACpB,OAAO,YAAY;IACnB,UAAU,gBAAgB;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,MAAM,YAAY,GAAG,uBAAuB,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,sBAAsB,CAAC;AAExH,MAAM,MAAM,iBAAiB,GAAG,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,YAAY,EAAE,eAAe,GAAG,UAAU,CAAC,CAAC,CAAC"}
@@ -6,6 +6,27 @@ const ow_1 = tslib_1.__importDefault(require("ow"));
6
6
  const resource_client_1 = require("../base/resource_client");
7
7
  const actor_env_var_1 = require("./actor_env_var");
8
8
  const actor_env_var_collection_1 = require("./actor_env_var_collection");
9
+ /**
10
+ * Client for managing a specific Actor version.
11
+ *
12
+ * Actor versions represent specific builds or snapshots of an Actor's code. This client provides
13
+ * methods to get, update, and delete versions, as well as manage their environment variables.
14
+ *
15
+ * @example
16
+ * ```javascript
17
+ * const client = new ApifyClient({ token: 'my-token' });
18
+ * const actorClient = client.actor('my-actor-id');
19
+ *
20
+ * // Get a specific version
21
+ * const versionClient = actorClient.version('0.1');
22
+ * const version = await versionClient.get();
23
+ *
24
+ * // Update version
25
+ * await versionClient.update({ buildTag: 'latest' });
26
+ * ```
27
+ *
28
+ * @see https://docs.apify.com/platform/actors/development/actor-definition/versions
29
+ */
9
30
  class ActorVersionClient extends resource_client_1.ResourceClient {
10
31
  /**
11
32
  * @hidden
@@ -17,26 +38,39 @@ class ActorVersionClient extends resource_client_1.ResourceClient {
17
38
  });
18
39
  }
19
40
  /**
20
- * https://docs.apify.com/api/v2#/reference/actors/version-object/get-version
41
+ * Retrieves the Actor version.
42
+ *
43
+ * @returns The Actor version object, or `undefined` if it does not exist.
44
+ * @see https://docs.apify.com/api/v2/act-version-get
21
45
  */
22
46
  async get() {
23
47
  return this._get();
24
48
  }
25
49
  /**
26
- * https://docs.apify.com/api/v2#/reference/actors/version-object/update-version
50
+ * Updates the Actor version with the specified fields.
51
+ *
52
+ * @param newFields - Fields to update.
53
+ * @returns The updated Actor version object.
54
+ * @see https://docs.apify.com/api/v2/act-version-put
27
55
  */
28
56
  async update(newFields) {
29
57
  (0, ow_1.default)(newFields, ow_1.default.object);
30
58
  return this._update(newFields);
31
59
  }
32
60
  /**
33
- * https://docs.apify.com/api/v2#/reference/actors/version-object/delete-version
61
+ * Deletes the Actor version.
62
+ *
63
+ * @see https://docs.apify.com/api/v2/act-version-delete
34
64
  */
35
65
  async delete() {
36
66
  return this._delete();
37
67
  }
38
68
  /**
39
- * TODO: https://docs.apify.com/api/v2#/reference/actors/env-var-object
69
+ * Returns a client for the specified environment variable of this Actor version.
70
+ *
71
+ * @param envVarName - Name of the environment variable.
72
+ * @returns A client for the environment variable.
73
+ * @see https://docs.apify.com/api/v2/act-version-env-var-get
40
74
  */
41
75
  envVar(envVarName) {
42
76
  (0, ow_1.default)(envVarName, ow_1.default.string);
@@ -45,8 +79,10 @@ class ActorVersionClient extends resource_client_1.ResourceClient {
45
79
  }));
46
80
  }
47
81
  /**
48
- * TODO: https://docs.apify.com/api/v2#/reference/actors/env-var-collection
49
- * @return {ActorVersionCollectionClient}
82
+ * Returns a client for the environment variables of this Actor version.
83
+ *
84
+ * @returns A client for the Actor version's environment variables.
85
+ * @see https://docs.apify.com/api/v2/act-version-env-vars-get
50
86
  */
51
87
  envVars() {
52
88
  return new actor_env_var_collection_1.ActorEnvVarCollectionClient(this._subResourceOptions());
@@ -1 +1 @@
1
- {"version":3,"file":"actor_version.js","sourceRoot":"","sources":["../../src/resource_clients/actor_version.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAGpB,6DAAyD;AACzD,mDAAoD;AACpD,yEAAyE;AAEzE,MAAa,kBAAmB,SAAQ,gCAAc;IAClD;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,UAAU;YACxB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG;QACL,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,SAAuB;QAChC,IAAA,YAAE,EAAC,SAAS,EAAE,YAAE,CAAC,MAAM,CAAC,CAAC;QAEzB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,UAAkB;QACrB,IAAA,YAAE,EAAC,UAAU,EAAE,YAAE,CAAC,MAAM,CAAC,CAAC;QAC1B,OAAO,IAAI,iCAAiB,CACxB,IAAI,CAAC,mBAAmB,CAAC;YACrB,EAAE,EAAE,UAAU;SACjB,CAAC,CACL,CAAC;IACN,CAAC;IAED;;;OAGG;IACH,OAAO;QACH,OAAO,IAAI,sDAA2B,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC;IACvE,CAAC;CACJ;AArDD,gDAqDC;AAgCD,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,+CAA4B,CAAA;IAC5B,uCAAoB,CAAA;IACpB,sCAAmB,CAAA;IACnB,6CAA0B,CAAA;AAC9B,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B"}
1
+ {"version":3,"file":"actor_version.js","sourceRoot":"","sources":["../../src/resource_clients/actor_version.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAGpB,6DAAyD;AACzD,mDAAoD;AACpD,yEAAyE;AAEzE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,kBAAmB,SAAQ,gCAAc;IAClD;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,UAAU;YACxB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,GAAG;QACL,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,SAAuB;QAChC,IAAA,YAAE,EAAC,SAAS,EAAE,YAAE,CAAC,MAAM,CAAC,CAAC;QAEzB,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACnC,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,EAAE,CAAC;IAC1B,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CAAC,UAAkB;QACrB,IAAA,YAAE,EAAC,UAAU,EAAE,YAAE,CAAC,MAAM,CAAC,CAAC;QAC1B,OAAO,IAAI,iCAAiB,CACxB,IAAI,CAAC,mBAAmB,CAAC;YACrB,EAAE,EAAE,UAAU;SACjB,CAAC,CACL,CAAC;IACN,CAAC;IAED;;;;;OAKG;IACH,OAAO;QACH,OAAO,IAAI,sDAA2B,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC;IACvE,CAAC;CACJ;AApED,gDAoEC;AAgCD,IAAY,eAKX;AALD,WAAY,eAAe;IACvB,+CAA4B,CAAA;IAC5B,uCAAoB,CAAA;IACpB,sCAAmB,CAAA;IACnB,6CAA0B,CAAA;AAC9B,CAAC,EALW,eAAe,+BAAf,eAAe,QAK1B"}
@@ -2,19 +2,43 @@ import type { ApiClientSubResourceOptions } from '../base/api_client';
2
2
  import { ResourceCollectionClient } from '../base/resource_collection_client';
3
3
  import type { PaginatedList, PaginationOptions } from '../utils';
4
4
  import type { ActorVersion, FinalActorVersion } from './actor_version';
5
+ /**
6
+ * Client for managing the collection of Actor versions.
7
+ *
8
+ * Actor versions represent specific builds or snapshots of an Actor's code. This client provides
9
+ * methods to list and create versions for a specific Actor.
10
+ *
11
+ * @example
12
+ * ```javascript
13
+ * const client = new ApifyClient({ token: 'my-token' });
14
+ * const actorClient = client.actor('my-actor-id');
15
+ *
16
+ * // List all versions
17
+ * const versionsClient = actorClient.versions();
18
+ * const { items } = await versionsClient.list();
19
+ *
20
+ * // Create a new version
21
+ * const newVersion = await versionsClient.create({
22
+ * versionNumber: '0.2',
23
+ * buildTag: 'latest'
24
+ * });
25
+ * ```
26
+ *
27
+ * @see https://docs.apify.com/platform/actors/development/actor-definition/versions
28
+ */
5
29
  export declare class ActorVersionCollectionClient extends ResourceCollectionClient {
6
30
  /**
7
31
  * @hidden
8
32
  */
9
33
  constructor(options: ApiClientSubResourceOptions);
10
34
  /**
11
- * https://docs.apify.com/api/v2#/reference/actors/version-collection/get-list-of-versions
35
+ * Lists all Actor versions.
12
36
  *
13
37
  * Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched
14
38
  * items in a single API call is limited.
15
39
  * ```javascript
16
40
  * const paginatedList = await client.list(options);
17
- *```
41
+ * ```
18
42
  *
19
43
  * Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are
20
44
  * retrieved.
@@ -22,10 +46,18 @@ export declare class ActorVersionCollectionClient extends ResourceCollectionClie
22
46
  * ```javascript
23
47
  * for await (const singleItem of client.list(options)) {...}
24
48
  * ```
49
+ *
50
+ * @param options - Pagination options.
51
+ * @returns A paginated iterator of Actor versions.
52
+ * @see https://docs.apify.com/api/v2/act-versions-get
25
53
  */
26
54
  list(options?: ActorVersionCollectionListOptions): Promise<ActorVersionListResult> & AsyncIterable<FinalActorVersion>;
27
55
  /**
28
- * https://docs.apify.com/api/v2#/reference/actors/version-collection/create-version
56
+ * Creates a new Actor version.
57
+ *
58
+ * @param actorVersion - The Actor version data.
59
+ * @returns The created Actor version object.
60
+ * @see https://docs.apify.com/api/v2/act-versions-post
29
61
  */
30
62
  create(actorVersion: ActorVersion): Promise<FinalActorVersion>;
31
63
  }
@@ -1 +1 @@
1
- {"version":3,"file":"actor_version_collection.d.ts","sourceRoot":"","sources":["../../src/resource_clients/actor_version_collection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE,qBAAa,4BAA6B,SAAQ,wBAAwB;IACtE;;OAEG;gBACS,OAAO,EAAE,2BAA2B;IAOhD;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACA,OAAO,GAAE,iCAAsC,GAChD,OAAO,CAAC,sBAAsB,CAAC,GAAG,aAAa,CAAC,iBAAiB,CAAC;IAarE;;OAEG;IACG,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAKvE;AAED,MAAM,WAAW,iCAAkC,SAAQ,iBAAiB;IACxE,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"actor_version_collection.d.ts","sourceRoot":"","sources":["../../src/resource_clients/actor_version_collection.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEvE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,4BAA6B,SAAQ,wBAAwB;IACtE;;OAEG;gBACS,OAAO,EAAE,2BAA2B;IAOhD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,CACA,OAAO,GAAE,iCAAsC,GAChD,OAAO,CAAC,sBAAsB,CAAC,GAAG,aAAa,CAAC,iBAAiB,CAAC;IAarE;;;;;;OAMG;IACG,MAAM,CAAC,YAAY,EAAE,YAAY,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAKvE;AAED,MAAM,WAAW,iCAAkC,SAAQ,iBAAiB;IACxE,IAAI,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,CAAC"}
@@ -4,6 +4,30 @@ exports.ActorVersionCollectionClient = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const ow_1 = tslib_1.__importDefault(require("ow"));
6
6
  const resource_collection_client_1 = require("../base/resource_collection_client");
7
+ /**
8
+ * Client for managing the collection of Actor versions.
9
+ *
10
+ * Actor versions represent specific builds or snapshots of an Actor's code. This client provides
11
+ * methods to list and create versions for a specific Actor.
12
+ *
13
+ * @example
14
+ * ```javascript
15
+ * const client = new ApifyClient({ token: 'my-token' });
16
+ * const actorClient = client.actor('my-actor-id');
17
+ *
18
+ * // List all versions
19
+ * const versionsClient = actorClient.versions();
20
+ * const { items } = await versionsClient.list();
21
+ *
22
+ * // Create a new version
23
+ * const newVersion = await versionsClient.create({
24
+ * versionNumber: '0.2',
25
+ * buildTag: 'latest'
26
+ * });
27
+ * ```
28
+ *
29
+ * @see https://docs.apify.com/platform/actors/development/actor-definition/versions
30
+ */
7
31
  class ActorVersionCollectionClient extends resource_collection_client_1.ResourceCollectionClient {
8
32
  /**
9
33
  * @hidden
@@ -15,13 +39,13 @@ class ActorVersionCollectionClient extends resource_collection_client_1.Resource
15
39
  });
16
40
  }
17
41
  /**
18
- * https://docs.apify.com/api/v2#/reference/actors/version-collection/get-list-of-versions
42
+ * Lists all Actor versions.
19
43
  *
20
44
  * Awaiting the return value (as you would with a Promise) will result in a single API call. The amount of fetched
21
45
  * items in a single API call is limited.
22
46
  * ```javascript
23
47
  * const paginatedList = await client.list(options);
24
- *```
48
+ * ```
25
49
  *
26
50
  * Asynchronous iteration is also supported. This will fetch additional pages if needed until all items are
27
51
  * retrieved.
@@ -29,6 +53,10 @@ class ActorVersionCollectionClient extends resource_collection_client_1.Resource
29
53
  * ```javascript
30
54
  * for await (const singleItem of client.list(options)) {...}
31
55
  * ```
56
+ *
57
+ * @param options - Pagination options.
58
+ * @returns A paginated iterator of Actor versions.
59
+ * @see https://docs.apify.com/api/v2/act-versions-get
32
60
  */
33
61
  list(options = {}) {
34
62
  (0, ow_1.default)(options, ow_1.default.object.exactShape({
@@ -39,7 +67,11 @@ class ActorVersionCollectionClient extends resource_collection_client_1.Resource
39
67
  return this._listPaginated(options);
40
68
  }
41
69
  /**
42
- * https://docs.apify.com/api/v2#/reference/actors/version-collection/create-version
70
+ * Creates a new Actor version.
71
+ *
72
+ * @param actorVersion - The Actor version data.
73
+ * @returns The created Actor version object.
74
+ * @see https://docs.apify.com/api/v2/act-versions-post
43
75
  */
44
76
  async create(actorVersion) {
45
77
  (0, ow_1.default)(actorVersion, ow_1.default.optional.object);
@@ -1 +1 @@
1
- {"version":3,"file":"actor_version_collection.js","sourceRoot":"","sources":["../../src/resource_clients/actor_version_collection.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAGpB,mFAA8E;AAI9E,MAAa,4BAA6B,SAAQ,qDAAwB;IACtE;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,UAAU;YACxB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,IAAI,CACA,UAA6C,EAAE;QAE/C,IAAA,YAAE,EACE,OAAO,EACP,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC;YACjB,KAAK,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YACzB,MAAM,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YAC1B,IAAI,EAAE,YAAE,CAAC,QAAQ,CAAC,OAAO;SAC5B,CAAC,CACL,CAAC;QAEF,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CAAC,YAA0B;QACnC,IAAA,YAAE,EAAC,YAAY,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAErC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;CACJ;AAlDD,oEAkDC"}
1
+ {"version":3,"file":"actor_version_collection.js","sourceRoot":"","sources":["../../src/resource_clients/actor_version_collection.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AAGpB,mFAA8E;AAI9E;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,4BAA6B,SAAQ,qDAAwB;IACtE;;OAEG;IACH,YAAY,OAAoC;QAC5C,KAAK,CAAC;YACF,YAAY,EAAE,UAAU;YACxB,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;;;;;OAmBG;IACH,IAAI,CACA,UAA6C,EAAE;QAE/C,IAAA,YAAE,EACE,OAAO,EACP,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC;YACjB,KAAK,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YACzB,MAAM,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YAC1B,IAAI,EAAE,YAAE,CAAC,QAAQ,CAAC,OAAO;SAC5B,CAAC,CACL,CAAC;QAEF,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;IACxC,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,YAA0B;QACnC,IAAA,YAAE,EAAC,YAAY,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAErC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC;CACJ;AA1DD,oEA0DC"}