@squidcloud/client 1.0.191 → 1.0.192

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/cjs/index.js CHANGED
@@ -29013,6 +29013,19 @@ function groupBy(array, getKey) {
29013
29013
  return result;
29014
29014
  }, {});
29015
29015
  }
29016
+ /**
29017
+ * Picks selected fields from the object and returns a new object with the fields selected.
29018
+ * The selected fields are assigned by reference (there is no cloning).
29019
+ */
29020
+ function pick(obj, keys) {
29021
+ const result = {};
29022
+ for (const key of keys) {
29023
+ if (key in obj) {
29024
+ result[key] = obj[key];
29025
+ }
29026
+ }
29027
+ return result;
29028
+ }
29016
29029
 
29017
29030
  ;// CONCATENATED MODULE: ../internal-common/src/utils/serialization.ts
29018
29031
 
@@ -30775,7 +30788,7 @@ class BaseQueryBuilder {
30775
30788
  * A shortcut for where(fieldName, 'like', pattern).
30776
30789
  *
30777
30790
  * @param fieldName The name of the field to query.
30778
- * @param pattern The pattern to compare against. '%' matches 0 or more wildcard characters. '_' matches exactly one wildcard character. '\' can be used to escape '%', '_'. or another '\'. Note that any '\' that is not followed by '%', '_', or '\' is invalid.
30791
+ * @param pattern The pattern to compare against. '%' matches 0 or more characters. '_' matches exactly one character. '\' can be used to escape '%', '_'. or another '\'. Note that any '\' that is not followed by '%', '_', or '\' is invalid.
30779
30792
  * @param caseSensitive Whether to use case-sensitive comparison. Defaults to true.
30780
30793
  * @returns The query builder.
30781
30794
  */
@@ -30787,7 +30800,7 @@ class BaseQueryBuilder {
30787
30800
  * A shortcut for where(fieldName, 'not like', pattern).
30788
30801
  *
30789
30802
  * @param fieldName The name of the field to query.
30790
- * @param pattern The pattern to compare against. '%' matches 0 or more wildcard characters. '_' matches exactly one wildcard character. '\' can be used to escape '%', '_'. or another '\'. Note that any '\' that is not followed by '%', '_', or '\' is invalid.
30803
+ * @param pattern The pattern to compare against. '%' matches 0 or more characters. '_' matches exactly one character. '\' can be used to escape '%', '_'. or another '\'. Note that any '\' that is not followed by '%', '_', or '\' is invalid.
30791
30804
  * @param caseSensitive Whether to use case-sensitive comparison. Defaults to true.
30792
30805
  * @returns The query builder.
30793
30806
  */
@@ -20,3 +20,8 @@ export declare function compareValues(v1: unknown, v2: unknown): number;
20
20
  export declare function mapValues<ResultType extends object = Record<string, unknown>, InputType extends Record<string, unknown> = Record<string, unknown>>(obj: InputType, valueMapperFn: (value: any, key: keyof InputType, obj: InputType) => unknown): ResultType;
21
21
  /** Groups elements of the array by key. See _.groupBy for details. */
22
22
  export declare function groupBy<T, K extends PropertyKey>(array: T[], getKey: (item: T) => K): Record<K, T[]>;
23
+ /**
24
+ * Picks selected fields from the object and returns a new object with the fields selected.
25
+ * The selected fields are assigned by reference (there is no cloning).
26
+ */
27
+ export declare function pick<T extends object, K extends keyof T>(obj: T, keys: K[]): Pick<T, K>;
@@ -87,7 +87,7 @@ export declare abstract class BaseQueryBuilder<MyDocType extends DocumentData> {
87
87
  * A shortcut for where(fieldName, 'like', pattern).
88
88
  *
89
89
  * @param fieldName The name of the field to query.
90
- * @param pattern The pattern to compare against. '%' matches 0 or more wildcard characters. '_' matches exactly one wildcard character. '\' can be used to escape '%', '_'. or another '\'. Note that any '\' that is not followed by '%', '_', or '\' is invalid.
90
+ * @param pattern The pattern to compare against. '%' matches 0 or more characters. '_' matches exactly one character. '\' can be used to escape '%', '_'. or another '\'. Note that any '\' that is not followed by '%', '_', or '\' is invalid.
91
91
  * @param caseSensitive Whether to use case-sensitive comparison. Defaults to true.
92
92
  * @returns The query builder.
93
93
  */
@@ -96,7 +96,7 @@ export declare abstract class BaseQueryBuilder<MyDocType extends DocumentData> {
96
96
  * A shortcut for where(fieldName, 'not like', pattern).
97
97
  *
98
98
  * @param fieldName The name of the field to query.
99
- * @param pattern The pattern to compare against. '%' matches 0 or more wildcard characters. '_' matches exactly one wildcard character. '\' can be used to escape '%', '_'. or another '\'. Note that any '\' that is not followed by '%', '_', or '\' is invalid.
99
+ * @param pattern The pattern to compare against. '%' matches 0 or more characters. '_' matches exactly one character. '\' can be used to escape '%', '_'. or another '\'. Note that any '\' that is not followed by '%', '_', or '\' is invalid.
100
100
  * @param caseSensitive Whether to use case-sensitive comparison. Defaults to true.
101
101
  * @returns The query builder.
102
102
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/client",
3
- "version": "1.0.191",
3
+ "version": "1.0.192",
4
4
  "description": "A typescript implementation of the Squid client",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/typescript-client/src/index.d.ts",