apify-client 3.0.0-beta.49 → 3.0.0-beta.50

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.
@@ -97,7 +97,7 @@ export declare class DatasetClient<Data extends Record<string | number, any> = R
97
97
  * @param options.skipEmpty - If `true`, skips empty items. Default is `false`.
98
98
  * @param options.skipHidden - If `true`, skips hidden fields (fields starting with `#`). Default is `false`.
99
99
  * @param options.flatten - Array of field names to flatten. Nested objects are converted to dot notation (e.g., `obj.field`).
100
- * @param options.unwind - Field name or array of field names to unwind. Each array value creates a separate item.
100
+ * @param options.unwind - Array of field names to unwind. Each array value creates a separate item.
101
101
  * @param options.view - Name of a predefined view to use for field selection.
102
102
  * @param options.timeoutSecs - Timeout for each API request. Default is `'long'`.
103
103
  * @returns A paginated list with `items`, `total` count, `offset`, `count`, and `limit`
@@ -280,7 +280,7 @@ export interface DatasetClientListItemOptions extends PaginationOptions, Timeout
280
280
  omit?: string[];
281
281
  skipEmpty?: boolean;
282
282
  skipHidden?: boolean;
283
- unwind?: string | string[];
283
+ unwind?: string[];
284
284
  /**
285
285
  * @since Added in 2.2.0
286
286
  */
@@ -29,7 +29,7 @@ const listItemsOptionsSchema = z.strictObject({
29
29
  ...paginationOptionsShape,
30
30
  skipEmpty: z.boolean().optional(),
31
31
  skipHidden: z.boolean().optional(),
32
- unwind: z.union([z.string(), z.array(z.string())]).optional(),
32
+ unwind: z.array(z.string()).optional(),
33
33
  view: z.string().optional(),
34
34
  signature: z.string().optional(),
35
35
  ...timeoutOptionsShape,
@@ -50,7 +50,7 @@ const downloadItemsOptionsSchema = z.strictObject({
50
50
  skipEmpty: z.boolean().optional(),
51
51
  skipHeaderRow: z.boolean().optional(),
52
52
  skipHidden: z.boolean().optional(),
53
- unwind: z.union([z.string(), z.array(z.string())]).optional(),
53
+ unwind: z.array(z.string()).optional(),
54
54
  view: z.string().optional(),
55
55
  xmlRoot: z.string().optional(),
56
56
  xmlRow: z.string().optional(),
@@ -72,7 +72,7 @@ const createItemsPublicUrlOptionsSchema = z.strictObject({
72
72
  offset: z.number().min(0).optional(),
73
73
  skipEmpty: z.boolean().optional(),
74
74
  skipHidden: z.boolean().optional(),
75
- unwind: z.union([z.string(), z.array(z.string())]).optional(),
75
+ unwind: z.array(z.string()).optional(),
76
76
  view: z.string().optional(),
77
77
  expiresInSecs: z.number().optional(),
78
78
  ...timeoutOptionsShape,
@@ -171,7 +171,7 @@ export class DatasetClient extends ResourceClient {
171
171
  * @param options.skipEmpty - If `true`, skips empty items. Default is `false`.
172
172
  * @param options.skipHidden - If `true`, skips hidden fields (fields starting with `#`). Default is `false`.
173
173
  * @param options.flatten - Array of field names to flatten. Nested objects are converted to dot notation (e.g., `obj.field`).
174
- * @param options.unwind - Field name or array of field names to unwind. Each array value creates a separate item.
174
+ * @param options.unwind - Array of field names to unwind. Each array value creates a separate item.
175
175
  * @param options.view - Name of a predefined view to use for field selection.
176
176
  * @param options.timeoutSecs - Timeout for each API request. Default is `'long'`.
177
177
  * @returns A paginated list with `items`, `total` count, `offset`, `count`, and `limit`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-client",
3
- "version": "3.0.0-beta.49",
3
+ "version": "3.0.0-beta.50",
4
4
  "description": "Apify API client for JavaScript",
5
5
  "engines": {
6
6
  "node": ">=22.13.0"