@jwork-space/strapi-sdk 1.0.2 → 1.0.3
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/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -254,6 +254,7 @@ interface FilterTypesCustom {
|
|
|
254
254
|
$containsi?: string;
|
|
255
255
|
$notContainsi?: string;
|
|
256
256
|
$null?: boolean;
|
|
257
|
+
$notNull?: boolean;
|
|
257
258
|
$between?: AnyObject[];
|
|
258
259
|
$lte?: number | string;
|
|
259
260
|
$lt?: number | string;
|
|
@@ -269,7 +270,8 @@ type OperatorsCustom<T> = T extends object ? {
|
|
|
269
270
|
$in?: string[] | number[];
|
|
270
271
|
} : {};
|
|
271
272
|
type FilterParametersCustom<T> = {
|
|
272
|
-
[K in keyof T as T[K] extends (...arguments_: AnyValue[]) => AnyValue ? never : K]?: T[K] extends
|
|
273
|
+
[K in keyof T as T[K] extends (...arguments_: AnyValue[]) => AnyValue ? never : K]?: NonNullable<T[K]> extends infer Property ? Property extends Array<AnyValue> | ReadonlyArray<AnyValue> ? FilterParametersCustom<ElementOf<Property>> | ElementOf<Property> | number : Property extends object ? FilterParametersCustom<Property> | number : // Si es primitivo -> valor directo o filtro
|
|
274
|
+
FilterTypesCustom | Property : never;
|
|
273
275
|
} & OperatorsCustom<T>;
|
|
274
276
|
interface RequestData {
|
|
275
277
|
query?: AnyObject & {
|
package/dist/index.d.ts
CHANGED
|
@@ -254,6 +254,7 @@ interface FilterTypesCustom {
|
|
|
254
254
|
$containsi?: string;
|
|
255
255
|
$notContainsi?: string;
|
|
256
256
|
$null?: boolean;
|
|
257
|
+
$notNull?: boolean;
|
|
257
258
|
$between?: AnyObject[];
|
|
258
259
|
$lte?: number | string;
|
|
259
260
|
$lt?: number | string;
|
|
@@ -269,7 +270,8 @@ type OperatorsCustom<T> = T extends object ? {
|
|
|
269
270
|
$in?: string[] | number[];
|
|
270
271
|
} : {};
|
|
271
272
|
type FilterParametersCustom<T> = {
|
|
272
|
-
[K in keyof T as T[K] extends (...arguments_: AnyValue[]) => AnyValue ? never : K]?: T[K] extends
|
|
273
|
+
[K in keyof T as T[K] extends (...arguments_: AnyValue[]) => AnyValue ? never : K]?: NonNullable<T[K]> extends infer Property ? Property extends Array<AnyValue> | ReadonlyArray<AnyValue> ? FilterParametersCustom<ElementOf<Property>> | ElementOf<Property> | number : Property extends object ? FilterParametersCustom<Property> | number : // Si es primitivo -> valor directo o filtro
|
|
274
|
+
FilterTypesCustom | Property : never;
|
|
273
275
|
} & OperatorsCustom<T>;
|
|
274
276
|
interface RequestData {
|
|
275
277
|
query?: AnyObject & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jwork-space/strapi-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "SDK para Strapi con soporte para React Query y TypeScript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -64,4 +64,4 @@
|
|
|
64
64
|
"dist",
|
|
65
65
|
"README.md"
|
|
66
66
|
]
|
|
67
|
-
}
|
|
67
|
+
}
|