@sisques-labs/nestjs-kit 0.1.0 → 0.2.0
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/README.md +21 -19
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/shared/application/dtos/commands/delete/delete-command.dto.d.ts +3 -0
- package/dist/shared/application/dtos/commands/delete/delete-command.dto.js +3 -0
- package/dist/shared/application/dtos/commands/delete/delete-command.dto.js.map +1 -0
- package/dist/shared/application/dtos/commands/update/update-command.dto.d.ts +3 -0
- package/dist/shared/application/dtos/commands/update/update-command.dto.js +3 -0
- package/dist/shared/application/dtos/commands/update/update-command.dto.js.map +1 -0
- package/dist/shared/transport/graphql/register-shared-graphql-enums.d.ts +1 -0
- package/dist/shared/transport/graphql/register-shared-graphql-enums.js +47 -0
- package/dist/shared/transport/graphql/register-shared-graphql-enums.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/shared/shared.module.d.ts +0 -3
- package/dist/shared/shared.module.js +0 -51
- package/dist/shared/shared.module.js.map +0 -1
- package/dist/shared/transport/graphql/enums/shared-registered-enums.graphql.d.ts +0 -1
- package/dist/shared/transport/graphql/enums/shared-registered-enums.graphql.js +0 -15
- package/dist/shared/transport/graphql/enums/shared-registered-enums.graphql.js.map +0 -1
- package/dist/shared/transport/graphql/registered-enums/registered-enums.graphql.d.ts +0 -1
- package/dist/shared/transport/graphql/registered-enums/registered-enums.graphql.js +0 -33
- package/dist/shared/transport/graphql/registered-enums/registered-enums.graphql.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.SharedModule = void 0;
|
|
10
|
-
const common_1 = require("@nestjs/common");
|
|
11
|
-
const mutation_response_mapper_1 = require("./transport/graphql/mappers/mutation-response/mutation-response.mapper");
|
|
12
|
-
require("./transport/graphql/enums/shared-registered-enums.graphql");
|
|
13
|
-
const RESOLVERS = [];
|
|
14
|
-
const SERVICES = [];
|
|
15
|
-
const QUERY_HANDLERS = [];
|
|
16
|
-
const COMMAND_HANDLERS = [];
|
|
17
|
-
const EVENT_HANDLERS = [];
|
|
18
|
-
const FACTORIES = [];
|
|
19
|
-
const MAPPERS = [mutation_response_mapper_1.MutationResponseGraphQLMapper];
|
|
20
|
-
const REPOSITORIES = [];
|
|
21
|
-
let SharedModule = class SharedModule {
|
|
22
|
-
};
|
|
23
|
-
exports.SharedModule = SharedModule;
|
|
24
|
-
exports.SharedModule = SharedModule = __decorate([
|
|
25
|
-
(0, common_1.Global)(),
|
|
26
|
-
(0, common_1.Module)({
|
|
27
|
-
imports: [],
|
|
28
|
-
controllers: [],
|
|
29
|
-
providers: [
|
|
30
|
-
...RESOLVERS,
|
|
31
|
-
...SERVICES,
|
|
32
|
-
...QUERY_HANDLERS,
|
|
33
|
-
...COMMAND_HANDLERS,
|
|
34
|
-
...EVENT_HANDLERS,
|
|
35
|
-
...FACTORIES,
|
|
36
|
-
...MAPPERS,
|
|
37
|
-
...REPOSITORIES,
|
|
38
|
-
],
|
|
39
|
-
exports: [
|
|
40
|
-
...RESOLVERS,
|
|
41
|
-
...SERVICES,
|
|
42
|
-
...QUERY_HANDLERS,
|
|
43
|
-
...COMMAND_HANDLERS,
|
|
44
|
-
...EVENT_HANDLERS,
|
|
45
|
-
...FACTORIES,
|
|
46
|
-
...MAPPERS,
|
|
47
|
-
...REPOSITORIES,
|
|
48
|
-
],
|
|
49
|
-
})
|
|
50
|
-
], SharedModule);
|
|
51
|
-
//# sourceMappingURL=shared.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared.module.js","sourceRoot":"","sources":["../../src/shared/shared.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAgD;AAEhD,qHAA8H;AAG9H,qEAA0E;AAE1E,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAE5B,MAAM,cAAc,GAAG,EAAE,CAAC;AAE1B,MAAM,SAAS,GAAG,EAAE,CAAC;AAErB,MAAM,OAAO,GAAG,CAAC,wDAA6B,CAAC,CAAC;AAEhD,MAAM,YAAY,GAAG,EAAE,CAAC;AA2BjB,IAAM,YAAY,GAAlB,MAAM,YAAY;CAAG,CAAA;AAAf,oCAAY;uBAAZ,YAAY;IAzBxB,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,EAAE;QACf,SAAS,EAAE;YACT,GAAG,SAAS;YACZ,GAAG,QAAQ;YACX,GAAG,cAAc;YACjB,GAAG,gBAAgB;YACnB,GAAG,cAAc;YACjB,GAAG,SAAS;YACZ,GAAG,OAAO;YACV,GAAG,YAAY;SAChB;QACD,OAAO,EAAE;YACP,GAAG,SAAS;YACZ,GAAG,QAAQ;YACX,GAAG,cAAc;YACjB,GAAG,gBAAgB;YACnB,GAAG,cAAc;YACjB,GAAG,SAAS;YACZ,GAAG,OAAO;YACV,GAAG,YAAY;SAChB;KACF,CAAC;GACW,YAAY,CAAG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
4
|
-
const length_unit_enum_1 = require("../../../domain/enums/length-unit/length-unit.enum");
|
|
5
|
-
const registeredSharedEnums = [
|
|
6
|
-
{
|
|
7
|
-
enum: length_unit_enum_1.LengthUnitEnum,
|
|
8
|
-
name: 'LengthUnitEnum',
|
|
9
|
-
description: 'The unit of the length',
|
|
10
|
-
},
|
|
11
|
-
];
|
|
12
|
-
for (const { enum: enumType, name, description } of registeredSharedEnums) {
|
|
13
|
-
(0, graphql_1.registerEnumType)(enumType, { name, description });
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=shared-registered-enums.graphql.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared-registered-enums.graphql.js","sourceRoot":"","sources":["../../../../../src/shared/transport/graphql/enums/shared-registered-enums.graphql.ts"],"names":[],"mappings":";;AAAA,6CAAmD;AAEnD,yFAAoF;AAMpF,MAAM,qBAAqB,GAAG;IAC5B;QACE,IAAI,EAAE,iCAAc;QACpB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,wBAAwB;KACtC;CACF,CAAC;AAEF,KAAK,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,qBAAqB,EAAE,CAAC;IAC1E,IAAA,0BAAgB,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;AACpD,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
4
|
-
const filter_operator_enum_1 = require("../../../domain/enums/filter-operator.enum");
|
|
5
|
-
const sort_direction_enum_1 = require("../../../domain/enums/sort-direction.enum");
|
|
6
|
-
const user_role_enum_1 = require("../../../domain/enums/user-context/user/user-role/user-role.enum");
|
|
7
|
-
const user_status_enum_1 = require("../../../domain/enums/user-context/user/user-status/user-status.enum");
|
|
8
|
-
const registeredEnums = [
|
|
9
|
-
{
|
|
10
|
-
enum: filter_operator_enum_1.FilterOperator,
|
|
11
|
-
name: 'FilterOperator',
|
|
12
|
-
description: 'The operator to filter by',
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
enum: sort_direction_enum_1.SortDirection,
|
|
16
|
-
name: 'SortDirection',
|
|
17
|
-
description: 'The direction to sort by',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
enum: user_role_enum_1.UserRoleEnum,
|
|
21
|
-
name: 'UserRoleEnum',
|
|
22
|
-
description: 'The role of the user',
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
enum: user_status_enum_1.UserStatusEnum,
|
|
26
|
-
name: 'UserStatusEnum',
|
|
27
|
-
description: 'The status of the user',
|
|
28
|
-
},
|
|
29
|
-
];
|
|
30
|
-
for (const { enum: enumType, name, description } of registeredEnums) {
|
|
31
|
-
(0, graphql_1.registerEnumType)(enumType, { name, description });
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=registered-enums.graphql.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registered-enums.graphql.js","sourceRoot":"","sources":["../../../../../src/shared/transport/graphql/registered-enums/registered-enums.graphql.ts"],"names":[],"mappings":";;AAAA,6CAAmD;AAEnD,qFAA4E;AAC5E,mFAA0E;AAC1E,qGAAgG;AAChG,2GAAsG;AAWtG,MAAM,eAAe,GAAG;IAEtB;QACE,IAAI,EAAE,qCAAc;QACpB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,2BAA2B;KACzC;IACD;QACE,IAAI,EAAE,mCAAa;QACnB,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,0BAA0B;KACxC;IAED;QACE,IAAI,EAAE,6BAAY;QAClB,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,sBAAsB;KACpC;IACD;QACE,IAAI,EAAE,iCAAc;QACpB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EAAE,wBAAwB;KACtC;CACF,CAAC;AAEF,KAAK,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,eAAe,EAAE,CAAC;IACpE,IAAA,0BAAgB,EAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;AACpD,CAAC"}
|