@dcupl/common 2.0.0-beta.0 → 2.0.0-beta.2

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.
@@ -131,3 +131,28 @@ export declare class DeepQueryService {
131
131
  * Singleton instance for global use
132
132
  */
133
133
  export declare const deepQueryService: DeepQueryService;
134
+ /**
135
+ * Extract all values from an object using a path that may contain [*] wildcards.
136
+ *
137
+ * This function handles patterns like:
138
+ * - `articleIds[*].vendorId.location` - expands [*] to iterate over array elements
139
+ * - `a[*].b[*].c` - supports nested wildcards (cross-product)
140
+ * - `simple.path` - falls back to lodash get for non-wildcard paths
141
+ *
142
+ * @param item - The object to extract values from
143
+ * @param path - The path string, possibly containing [*] wildcards
144
+ * @returns Array of all values found at the path
145
+ *
146
+ * @example
147
+ * ```typescript
148
+ * const order = {
149
+ * articleIds: [
150
+ * { vendorId: { location: 'Berlin' } },
151
+ * { vendorId: { location: 'Vienna' } }
152
+ * ]
153
+ * };
154
+ * getDeepPathValues(order, 'articleIds[*].vendorId.location');
155
+ * // Returns: ['Berlin', 'Vienna']
156
+ * ```
157
+ */
158
+ export declare function getDeepPathValues(item: any, path: string): any[];