synunu-libs 1.0.6 → 1.0.9
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/constants/patterns.constant.d.ts +6 -0
- package/dist/constants/patterns.constant.d.ts.map +1 -1
- package/dist/constants/patterns.constant.js +6 -0
- package/dist/constants/patterns.constant.js.map +1 -1
- package/dist/dto/date-range.input.d.ts +2 -2
- package/dist/dto/date-range.input.d.ts.map +1 -1
- package/dist/dto/date-range.input.js +4 -4
- package/dist/dto/date-range.input.js.map +1 -1
- package/dist/dto/menu.dto.d.ts +1 -1
- package/dist/dto/menu.dto.d.ts.map +1 -1
- package/dist/dto/menu.dto.js +3 -3
- package/dist/dto/menu.dto.js.map +1 -1
- package/package.json +11 -8
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export declare const MESSAGE_PATTERNS: {
|
|
2
|
+
readonly AUTH: {
|
|
3
|
+
readonly AUTH_REGISTER: "auth_register";
|
|
4
|
+
readonly AUTH_LOGIN: "auth_login";
|
|
5
|
+
readonly AUTH_REFRESH_TOKEN: "auth_refresh_token";
|
|
6
|
+
readonly AUTH_VALIDATE_USER: "auth_validate_user";
|
|
7
|
+
};
|
|
2
8
|
readonly MEMBERSHIP: {
|
|
3
9
|
readonly FIND_ALL: `${string}_find_all`;
|
|
4
10
|
readonly FIND_BY_ID: `${string}_find_by_id`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patterns.constant.d.ts","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"patterns.constant.d.ts","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEnB,CAAC"}
|
|
@@ -12,6 +12,12 @@ function crudPatterns(module, extra) {
|
|
|
12
12
|
return extra ? { ...base, ...extra } : base;
|
|
13
13
|
}
|
|
14
14
|
exports.MESSAGE_PATTERNS = {
|
|
15
|
+
AUTH: {
|
|
16
|
+
AUTH_REGISTER: "auth_register",
|
|
17
|
+
AUTH_LOGIN: "auth_login",
|
|
18
|
+
AUTH_REFRESH_TOKEN: "auth_refresh_token",
|
|
19
|
+
AUTH_VALIDATE_USER: "auth_validate_user",
|
|
20
|
+
},
|
|
15
21
|
// 🔹 Membership
|
|
16
22
|
MEMBERSHIP: crudPatterns("membership", {
|
|
17
23
|
ASSIGN_ROLE: "membership_assign_role",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patterns.constant.js","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":";;;AAEA,SAAS,YAAY,CACnB,MAAc,EACd,KAAwB;IAExB,MAAM,IAAI,GAAG;QACX,QAAQ,EAAE,GAAG,MAAM,WAAW;QAC9B,UAAU,EAAE,GAAG,MAAM,aAAa;QAClC,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;KAClB,CAAC;IAEX,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9C,CAAC;AAEY,QAAA,gBAAgB,GAAG;IAC9B,gBAAgB;IAChB,UAAU,EAAE,YAAY,CAAC,YAAY,EAAE;QACrC,WAAW,EAAE,wBAAwB;QACrC,WAAW,EAAE,wBAAwB;QACrC,eAAe,EAAE,4BAA4B;QAC7C,eAAe,EAAE,4BAA4B;KAC9C,CAAC;IAEF,UAAU;IACV,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;QACzB,YAAY,EAAE,mBAAmB;KAClC,CAAC;IAEF,UAAU;IACV,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;QACzB,aAAa,EAAE,oBAAoB;QACnC,gBAAgB,EAAE,uBAAuB;QACzC,eAAe,EAAE,sBAAsB;KACxC,CAAC;IAEF,YAAY;IACZ,MAAM,EAAE,YAAY,CAAC,QAAQ,CAAC;IAE9B,kBAAkB;IAClB,YAAY,EAAE,YAAY,CAAC,cAAc,EAAE;QACzC,YAAY,EAAE,2BAA2B;QACzC,YAAY,EAAE,2BAA2B;KAC1C,CAAC;IAEF,UAAU;IACV,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;QACzB,YAAY,EAAE,mBAAmB;QACjC,SAAS,EAAE,gBAAgB;KAC5B,CAAC;IAEF,gBAAgB;IAChB,UAAU,EAAE,YAAY,CAAC,YAAY,EAAE;QACrC,WAAW,EAAE,wBAAwB;QACrC,cAAc,EAAE,2BAA2B;KAC5C,CAAC;IAEF,8CAA8C;IAC9C,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE;QAC/B,WAAW,EAAE,qBAAqB;QAClC,gBAAgB,EAAE,0BAA0B;KAC7C,CAAC;IAEF,cAAc;IACd,QAAQ,EAAE,YAAY,CAAC,UAAU,EAAE;QACjC,SAAS,EAAE,oBAAoB;KAChC,CAAC;IAEF,mCAAmC;IACnC,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;QACzB,aAAa,EAAE,oBAAoB;KACpC,CAAC;IAEF,sBAAsB;IACtB,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE;QAC/B,WAAW,EAAE,qBAAqB;QAClC,YAAY,EAAE,sBAAsB;KACrC,CAAC;CACM,CAAC"}
|
|
1
|
+
{"version":3,"file":"patterns.constant.js","sourceRoot":"","sources":["../../src/constants/patterns.constant.ts"],"names":[],"mappings":";;;AAEA,SAAS,YAAY,CACnB,MAAc,EACd,KAAwB;IAExB,MAAM,IAAI,GAAG;QACX,QAAQ,EAAE,GAAG,MAAM,WAAW;QAC9B,UAAU,EAAE,GAAG,MAAM,aAAa;QAClC,M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AEF,8CAA8C;IAC9C,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE;QAC/B,WAAW,EAAE,qBAAqB;QAClC,gBAAgB,EAAE,0BAA0B;KAC7C,CAAC;IAEF,cAAc;IACd,QAAQ,EAAE,YAAY,CAAC,UAAU,EAAE;QACjC,SAAS,EAAE,oBAAoB;KAChC,CAAC;IAEF,mCAAmC;IACnC,IAAI,EAAE,YAAY,CAAC,MAAM,EAAE;QACzB,aAAa,EAAE,oBAAoB;KACpC,CAAC;IAEF,sBAAsB;IACtB,OAAO,EAAE,YAAY,CAAC,SAAS,EAAE;QAC/B,WAAW,EAAE,qBAAqB;QAClC,YAAY,EAAE,sBAAsB;KACrC,CAAC;CACM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range.input.d.ts","sourceRoot":"","sources":["../../src/dto/date-range.input.ts"],"names":[],"mappings":"AAEA,qBACa,cAAc;IAEzB,IAAI,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"date-range.input.d.ts","sourceRoot":"","sources":["../../src/dto/date-range.input.ts"],"names":[],"mappings":"AAEA,qBACa,cAAc;IAEzB,IAAI,CAAC,EAAE,IAAI,CAAC;IAGZ,EAAE,CAAC,EAAE,IAAI,CAAC;CACX"}
|
|
@@ -15,12 +15,12 @@ let DateRangeInput = class DateRangeInput {
|
|
|
15
15
|
};
|
|
16
16
|
exports.DateRangeInput = DateRangeInput;
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, graphql_1.Field)(() =>
|
|
19
|
-
__metadata("design:type",
|
|
18
|
+
(0, graphql_1.Field)(() => Date, { nullable: true }),
|
|
19
|
+
__metadata("design:type", Date)
|
|
20
20
|
], DateRangeInput.prototype, "from", void 0);
|
|
21
21
|
__decorate([
|
|
22
|
-
(0, graphql_1.Field)(() =>
|
|
23
|
-
__metadata("design:type",
|
|
22
|
+
(0, graphql_1.Field)(() => Date, { nullable: true }),
|
|
23
|
+
__metadata("design:type", Date)
|
|
24
24
|
], DateRangeInput.prototype, "to", void 0);
|
|
25
25
|
exports.DateRangeInput = DateRangeInput = __decorate([
|
|
26
26
|
(0, graphql_1.InputType)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date-range.input.js","sourceRoot":"","sources":["../../src/dto/date-range.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"date-range.input.js","sourceRoot":"","sources":["../../src/dto/date-range.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmD;AAG5C,IAAM,cAAc,GAApB,MAAM,cAAc;CAM1B,CAAA;AANY,wCAAc;AAEzB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAC/B,IAAI;4CAAC;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACjC,IAAI;0CAAC;yBALC,cAAc;IAD1B,IAAA,mBAAS,GAAE;GACC,cAAc,CAM1B"}
|
package/dist/dto/menu.dto.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TranslationInput } from "./translation.input";
|
|
2
|
-
import { DateRangeInput } from "./date-range.input";
|
|
3
2
|
import { UserType } from "../enum";
|
|
3
|
+
import { DateRangeInput } from "./date-range.input";
|
|
4
4
|
export declare class CreateMenuInput {
|
|
5
5
|
key: string;
|
|
6
6
|
label: TranslationInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.dto.d.ts","sourceRoot":"","sources":["../../src/dto/menu.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"menu.dto.d.ts","sourceRoot":"","sources":["../../src/dto/menu.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,qBACa,eAAe;IAE1B,GAAG,EAAE,MAAM,CAAC;IAGZ,KAAK,EAAE,gBAAgB,CAAC;IAGxB,IAAI,CAAC,EAAE,MAAM,CAAC;IAGd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IAGxB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,OAAO,CAAC;IAGlB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IAGvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAGvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,qBACa,eAAe;IAE1B,SAAS,CAAC,EAAE,cAAc,CAAC;CAC5B;;AAED,qBACa,eAAgB,SAAQ,oBAA4B;IAE/D,GAAG,EAAE,MAAM,CAAC;CACb"}
|
package/dist/dto/menu.dto.js
CHANGED
|
@@ -12,8 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UpdateMenuInput = exports.MenuFilterInput = exports.CreateMenuInput = void 0;
|
|
13
13
|
const graphql_1 = require("@nestjs/graphql");
|
|
14
14
|
const translation_input_1 = require("./translation.input");
|
|
15
|
-
const date_range_input_1 = require("./date-range.input");
|
|
16
15
|
const enum_1 = require("../enum");
|
|
16
|
+
const date_range_input_1 = require("./date-range.input");
|
|
17
17
|
let CreateMenuInput = class CreateMenuInput {
|
|
18
18
|
};
|
|
19
19
|
exports.CreateMenuInput = CreateMenuInput;
|
|
@@ -54,7 +54,7 @@ __decorate([
|
|
|
54
54
|
__metadata("design:type", Array)
|
|
55
55
|
], CreateMenuInput.prototype, "permissions", void 0);
|
|
56
56
|
__decorate([
|
|
57
|
-
(0, graphql_1.Field)(() =>
|
|
57
|
+
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
58
58
|
__metadata("design:type", Object)
|
|
59
59
|
], CreateMenuInput.prototype, "parent", void 0);
|
|
60
60
|
__decorate([
|
|
@@ -78,7 +78,7 @@ let UpdateMenuInput = class UpdateMenuInput extends (0, graphql_1.PartialType)(C
|
|
|
78
78
|
};
|
|
79
79
|
exports.UpdateMenuInput = UpdateMenuInput;
|
|
80
80
|
__decorate([
|
|
81
|
-
(0, graphql_1.Field)(() =>
|
|
81
|
+
(0, graphql_1.Field)(() => String),
|
|
82
82
|
__metadata("design:type", String)
|
|
83
83
|
], UpdateMenuInput.prototype, "_id", void 0);
|
|
84
84
|
exports.UpdateMenuInput = UpdateMenuInput = __decorate([
|
package/dist/dto/menu.dto.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.dto.js","sourceRoot":"","sources":["../../src/dto/menu.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"menu.dto.js","sourceRoot":"","sources":["../../src/dto/menu.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAgE;AAChE,2DAAuD;AAEvD,kCAAmC;AACnC,yDAAoD;AAG7C,IAAM,eAAe,GAArB,MAAM,eAAe;CAiC3B,CAAA;AAjCY,0CAAe;AAE1B;IADC,IAAA,eAAK,GAAE;;4CACI;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,CAAC;8BACvB,oCAAgB;8CAAC;AAGxB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACZ;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACR;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,oCAAgB,EAAE,EAAE,Q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;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAG3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synunu-libs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"description": "Shared DTOs, constants, and utilities for Synunu microservices",
|
|
@@ -17,14 +17,17 @@
|
|
|
17
17
|
"typescript": "^5.6.0"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@apollo/server": "^5.0.0",
|
|
21
|
-
"@nestjs/common": "^11.1.6",
|
|
22
|
-
"@nestjs/config": "^4.0.2",
|
|
23
|
-
"@nestjs/core": "^11.1.6",
|
|
24
|
-
"@nestjs/graphql": "^13.1.0",
|
|
25
|
-
"@nestjs/microservices": "^11.1.6",
|
|
26
|
-
"apollo-server-express": "^3.13.0",
|
|
27
20
|
"class-validator": "^0.14.2",
|
|
28
21
|
"reflect-metadata": "^0.2.2"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@nestjs/common": "^11.0.0",
|
|
25
|
+
"@nestjs/core": "^11.0.0",
|
|
26
|
+
"@nestjs/microservices": "^11.0.0",
|
|
27
|
+
"@nestjs/config": "^4.0.0",
|
|
28
|
+
"@nestjs/graphql": "^13.1.0",
|
|
29
|
+
"@apollo/server": "^5.0.0",
|
|
30
|
+
"apollo-server-express": "^3.13.0",
|
|
31
|
+
"graphql": "^16.0.0"
|
|
29
32
|
}
|
|
30
33
|
}
|