@node-c/api-rest 1.0.0-alpha4 → 1.0.0-alpha6
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/entityController/dto/find.dto.d.ts +2 -2
- package/dist/entityController/dto/find.dto.js.map +1 -1
- package/dist/entityController/dto/findOne.dto.d.ts +2 -2
- package/dist/entityController/dto/findOne.dto.js.map +1 -1
- package/package.json +3 -3
- package/src/entityController/dto/find.dto.ts +2 -2
- package/src/entityController/dto/findOne.dto.ts +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DomainFindOptions, GenericObject } from '@node-c/core';
|
|
1
|
+
import { DomainFindOptions, GenericObject, PersistanceOrderByDirection } from '@node-c/core';
|
|
2
2
|
import { BaseDto } from './base.dto';
|
|
3
3
|
export declare class FindDto<Options extends DomainFindOptions> extends BaseDto<Options> implements DomainFindOptions {
|
|
4
4
|
filters?: GenericObject;
|
|
5
5
|
findAll?: boolean;
|
|
6
6
|
include?: string[];
|
|
7
|
-
orderBy?: GenericObject<
|
|
7
|
+
orderBy?: GenericObject<PersistanceOrderByDirection>;
|
|
8
8
|
page?: number;
|
|
9
9
|
perPage?: number;
|
|
10
10
|
select?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.dto.js","sourceRoot":"","sources":["../../../src/entityController/dto/find.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qDAAiG;AAEjG,yCAAqC;AAErC,MAAa,OAA2C,SAAQ,kBAAgB;CA4B/E;AA5BD,0BA4BC;AAzBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wCACW;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,iCAAe,GAAE;;wCACA;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;wCACS;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;
|
|
1
|
+
{"version":3,"file":"find.dto.js","sourceRoot":"","sources":["../../../src/entityController/dto/find.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qDAAiG;AAEjG,yCAAqC;AAErC,MAAa,OAA2C,SAAQ,kBAAgB;CA4B/E;AA5BD,0BA4BC;AAzBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wCACW;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,iCAAe,GAAE;;wCACA;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;wCACS;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCAC0C;AAIrD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;;qCACH;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,gCAAc,GAAE;;wCACA;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;uCACQ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DomainFindOneOptions, GenericObject } from '@node-c/core';
|
|
1
|
+
import { DomainFindOneOptions, GenericObject, PersistanceOrderByDirection } from '@node-c/core';
|
|
2
2
|
import { BaseDto } from './base.dto';
|
|
3
3
|
export declare class FindOneDto<Options extends DomainFindOneOptions> extends BaseDto<Options> implements DomainFindOneOptions {
|
|
4
4
|
filters: GenericObject<unknown>;
|
|
5
5
|
include?: string[];
|
|
6
|
-
orderBy?: GenericObject<
|
|
6
|
+
orderBy?: GenericObject<PersistanceOrderByDirection>;
|
|
7
7
|
select?: string[];
|
|
8
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findOne.dto.js","sourceRoot":"","sources":["../../../src/entityController/dto/findOne.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qDAAgE;AAEhE,yCAAqC;AAErC,MAAa,UAAiD,SAAQ,kBAAgB;CAerF;AAfD,gCAeC;AAbC;IADC,IAAA,0BAAQ,GAAE;;2CACqB;AAIhC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;2CACS;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;
|
|
1
|
+
{"version":3,"file":"findOne.dto.js","sourceRoot":"","sources":["../../../src/entityController/dto/findOne.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,qDAAgE;AAEhE,yCAAqC;AAErC,MAAa,UAAiD,SAAQ,kBAAgB;CAerF;AAfD,gCAeC;AAbC;IADC,IAAA,0BAAQ,GAAE;;2CACqB;AAIhC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;2CACS;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CAC0C;AAIrD;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;0CACQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-c/api-rest",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-alpha6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"class-validator": "^0.14.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@node-c/api-http": "^1.0.0-
|
|
21
|
-
"@node-c/core": "^1.0.0-
|
|
20
|
+
"@node-c/api-http": "^1.0.0-alpha6",
|
|
21
|
+
"@node-c/core": "^1.0.0-alpha6"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DomainFindOptions, GenericObject } from '@node-c/core';
|
|
1
|
+
import { DomainFindOptions, GenericObject, PersistanceOrderByDirection } from '@node-c/core';
|
|
2
2
|
|
|
3
3
|
import { IsArray, IsBooleanString, IsNumberString, IsObject, IsOptional } from 'class-validator';
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ export class FindDto<Options extends DomainFindOptions> extends BaseDto<Options>
|
|
|
19
19
|
|
|
20
20
|
@IsOptional()
|
|
21
21
|
@IsObject()
|
|
22
|
-
orderBy?: GenericObject<
|
|
22
|
+
orderBy?: GenericObject<PersistanceOrderByDirection>;
|
|
23
23
|
|
|
24
24
|
@IsOptional()
|
|
25
25
|
@IsNumberString()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DomainFindOneOptions, GenericObject } from '@node-c/core';
|
|
1
|
+
import { DomainFindOneOptions, GenericObject, PersistanceOrderByDirection } from '@node-c/core';
|
|
2
2
|
|
|
3
3
|
import { IsArray, IsObject, IsOptional } from 'class-validator';
|
|
4
4
|
|
|
@@ -14,7 +14,7 @@ export class FindOneDto<Options extends DomainFindOneOptions> extends BaseDto<Op
|
|
|
14
14
|
|
|
15
15
|
@IsOptional()
|
|
16
16
|
@IsObject()
|
|
17
|
-
orderBy?: GenericObject<
|
|
17
|
+
orderBy?: GenericObject<PersistanceOrderByDirection>;
|
|
18
18
|
|
|
19
19
|
@IsOptional()
|
|
20
20
|
@IsArray()
|