apify-client 2.25.1-beta.0 → 2.25.1-beta.10

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 (44) hide show
  1. package/dist/apify_client.d.ts +11 -1
  2. package/dist/apify_client.js +4 -0
  3. package/dist/base/api_client.d.ts +3 -0
  4. package/dist/base/api_client.js +3 -0
  5. package/dist/bundle.js +1046 -258
  6. package/dist/bundle.js.map +1 -1
  7. package/dist/resource_clients/actor.d.ts +105 -7
  8. package/dist/resource_clients/actor.js +2 -0
  9. package/dist/resource_clients/actor_collection.d.ts +30 -0
  10. package/dist/resource_clients/actor_collection.js +3 -0
  11. package/dist/resource_clients/actor_env_var.d.ts +1 -0
  12. package/dist/resource_clients/actor_env_var.js +1 -0
  13. package/dist/resource_clients/actor_env_var_collection.d.ts +5 -0
  14. package/dist/resource_clients/actor_env_var_collection.js +1 -0
  15. package/dist/resource_clients/actor_version.d.ts +5 -0
  16. package/dist/resource_clients/actor_version.js +2 -0
  17. package/dist/resource_clients/build.d.ts +17 -0
  18. package/dist/resource_clients/build.js +3 -0
  19. package/dist/resource_clients/dataset.d.ts +35 -0
  20. package/dist/resource_clients/dataset.js +2 -0
  21. package/dist/resource_clients/dataset_collection.d.ts +7 -1
  22. package/dist/resource_clients/key_value_store.d.ts +39 -0
  23. package/dist/resource_clients/key_value_store.js +3 -0
  24. package/dist/resource_clients/key_value_store_collection.d.ts +7 -1
  25. package/dist/resource_clients/log.d.ts +8 -0
  26. package/dist/resource_clients/log.js +2 -0
  27. package/dist/resource_clients/request_queue.d.ts +86 -0
  28. package/dist/resource_clients/request_queue.js +8 -0
  29. package/dist/resource_clients/request_queue_collection.d.ts +4 -1
  30. package/dist/resource_clients/run.d.ts +23 -0
  31. package/dist/resource_clients/run.js +5 -0
  32. package/dist/resource_clients/run_collection.d.ts +6 -0
  33. package/dist/resource_clients/schedule.d.ts +10 -0
  34. package/dist/resource_clients/store_collection.d.ts +18 -1
  35. package/dist/resource_clients/store_collection.js +1 -0
  36. package/dist/resource_clients/task.d.ts +18 -0
  37. package/dist/resource_clients/task.js +2 -0
  38. package/dist/resource_clients/task_collection.d.ts +3 -0
  39. package/dist/resource_clients/user.d.ts +33 -0
  40. package/dist/resource_clients/user.js +3 -0
  41. package/dist/resource_clients/webhook.d.ts +12 -0
  42. package/dist/resource_clients/webhook_dispatch.d.ts +6 -0
  43. package/dist/utils.d.ts +2 -0
  44. package/package.json +34 -32
@@ -50,6 +50,9 @@ import { Statistics } from './statistics';
50
50
  */
51
51
  export declare class ApifyClient {
52
52
  baseUrl: string;
53
+ /**
54
+ * @since Added in 2.17.0
55
+ */
53
56
  publicBaseUrl: string;
54
57
  token?: string;
55
58
  stats: Statistics;
@@ -340,6 +343,7 @@ export declare class ApifyClient {
340
343
  * @param message - The status message to set
341
344
  * @param options - Additional options for the status message
342
345
  * @throws {Error} If `ACTOR_RUN_ID` environment variable is not set
346
+ * @since Added in 2.7.0
343
347
  */
344
348
  setStatusMessage(message: string, options?: SetStatusMessageOptions): Promise<void>;
345
349
  }
@@ -349,7 +353,10 @@ export declare class ApifyClient {
349
353
  export interface ApifyClientOptions {
350
354
  /** @default https://api.apify.com */
351
355
  baseUrl?: string;
352
- /** @default https://api.apify.com */
356
+ /**
357
+ * @default https://api.apify.com
358
+ * @since Added in 2.17.0
359
+ */
353
360
  publicBaseUrl?: string;
354
361
  /** @default 8 */
355
362
  maxRetries?: number;
@@ -360,5 +367,8 @@ export interface ApifyClientOptions {
360
367
  /** @default 360 */
361
368
  timeoutSecs?: number;
362
369
  token?: string;
370
+ /**
371
+ * @since Added in 2.10.0
372
+ */
363
373
  userAgentSuffix?: string | string[];
364
374
  }
@@ -54,6 +54,9 @@ const DEFAULT_TIMEOUT_SECS = 360;
54
54
  */
55
55
  class ApifyClient {
56
56
  baseUrl;
57
+ /**
58
+ * @since Added in 2.17.0
59
+ */
57
60
  publicBaseUrl;
58
61
  token;
59
62
  stats;
@@ -484,6 +487,7 @@ class ApifyClient {
484
487
  * @param message - The status message to set
485
488
  * @param options - Additional options for the status message
486
489
  * @throws {Error} If `ACTOR_RUN_ID` environment variable is not set
490
+ * @since Added in 2.7.0
487
491
  */
488
492
  async setStatusMessage(message, options) {
489
493
  const runId = process.env[consts_1.ACTOR_ENV_VARS.RUN_ID];
@@ -20,6 +20,9 @@ export declare abstract class ApiClient {
20
20
  id?: string;
21
21
  safeId?: string;
22
22
  baseUrl: string;
23
+ /**
24
+ * @since Added in 2.17.0
25
+ */
23
26
  publicBaseUrl: string;
24
27
  resourcePath: string;
25
28
  url: string;
@@ -6,6 +6,9 @@ class ApiClient {
6
6
  id;
7
7
  safeId;
8
8
  baseUrl;
9
+ /**
10
+ * @since Added in 2.17.0
11
+ */
9
12
  publicBaseUrl;
10
13
  resourcePath;
11
14
  url;