@infineit-nestjs/services 1.0.7 → 1.0.8
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/helper.module.js +1 -1
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/services/data.transformer.service.d.ts +4 -0
- package/dist/cjs/services/index.d.ts +3 -0
- package/dist/cjs/services/index.js +1 -1
- package/dist/cjs/services/message.formatter.service.d.ts +7 -0
- package/dist/cjs/services/validator.service.d.ts +5 -0
- package/dist/es/helper.module.js +1 -1
- package/dist/es/index.d.ts +3 -0
- package/dist/es/index.js +1 -1
- package/dist/es/services/data.transformer.service.d.ts +4 -0
- package/dist/es/services/index.d.ts +3 -0
- package/dist/es/services/index.js +1 -1
- package/dist/es/services/message.formatter.service.d.ts +7 -0
- package/dist/es/services/validator.service.d.ts +5 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/services/index.d.ts +21 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HelperModule=void 0;const e=require("tslib"),r=require("@nestjs/axios"),s=require("@nestjs/common"),o=require("./services/logger.service"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.HelperModule=void 0;const e=require("tslib"),r=require("@nestjs/axios"),s=require("@nestjs/common"),i=require("./services/data.transformer.service"),o=require("./services/logger.service"),t=require("./services/message.formatter.service"),a=require("./services/prisma.service"),c=require("./services/validator.service"),l=[i.DataTransformerService,o.LoggerService,t.MessageFormatterService,a.PrismaService,c.ValidatorService];let v=class{};exports.HelperModule=v,exports.HelperModule=v=e.__decorate([(0,s.Global)(),(0,s.Module)({providers:l,imports:[r.HttpModule],exports:[...l,r.HttpModule]})],v);
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * from './helper.module';
|
|
2
|
+
export * from './services/data.transformer.service';
|
|
2
3
|
export * from './services/logger.service';
|
|
4
|
+
export * from './services/message.formatter.service';
|
|
3
5
|
export * from './services/prisma.service';
|
|
6
|
+
export * from './services/validator.service';
|
package/dist/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./helper.module"),exports),e.__exportStar(require("./services/logger.service"),exports),e.__exportStar(require("./services/prisma.service"),exports);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./helper.module"),exports),e.__exportStar(require("./services/data.transformer.service"),exports),e.__exportStar(require("./services/logger.service"),exports),e.__exportStar(require("./services/message.formatter.service"),exports),e.__exportStar(require("./services/prisma.service"),exports),e.__exportStar(require("./services/validator.service"),exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./logger.service"),exports),e.__exportStar(require("./prisma.service"),exports);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./data.transformer.service"),exports),e.__exportStar(require("./logger.service"),exports),e.__exportStar(require("./message.formatter.service"),exports),e.__exportStar(require("./prisma.service"),exports),e.__exportStar(require("./validator.service"),exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare class MessageFormatterService {
|
|
2
|
+
static capitalizeFirstLetter(word: string): string;
|
|
3
|
+
static toLowerCase(word: string): string;
|
|
4
|
+
static formatMessage(template: string, label: string): string;
|
|
5
|
+
static toSingularOrPlural(word: string, count: number): string;
|
|
6
|
+
static prepareMessage(template: string, label: string, capitalize?: boolean): string;
|
|
7
|
+
}
|
package/dist/es/helper.module.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0}),exports.HelperModule=void 0;const e=require("tslib"),r=require("@nestjs/axios"),s=require("@nestjs/common"),o=require("./services/logger.service"),
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.HelperModule=void 0;const e=require("tslib"),r=require("@nestjs/axios"),s=require("@nestjs/common"),i=require("./services/data.transformer.service"),o=require("./services/logger.service"),t=require("./services/message.formatter.service"),a=require("./services/prisma.service"),c=require("./services/validator.service"),l=[i.DataTransformerService,o.LoggerService,t.MessageFormatterService,a.PrismaService,c.ValidatorService];let v=class{};exports.HelperModule=v,exports.HelperModule=v=e.__decorate([(0,s.Global)(),(0,s.Module)({providers:l,imports:[r.HttpModule],exports:[...l,r.HttpModule]})],v);
|
package/dist/es/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
export * from './helper.module';
|
|
2
|
+
export * from './services/data.transformer.service';
|
|
2
3
|
export * from './services/logger.service';
|
|
4
|
+
export * from './services/message.formatter.service';
|
|
3
5
|
export * from './services/prisma.service';
|
|
6
|
+
export * from './services/validator.service';
|
package/dist/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./helper.module"),exports),e.__exportStar(require("./services/logger.service"),exports),e.__exportStar(require("./services/prisma.service"),exports);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./helper.module"),exports),e.__exportStar(require("./services/data.transformer.service"),exports),e.__exportStar(require("./services/logger.service"),exports),e.__exportStar(require("./services/message.formatter.service"),exports),e.__exportStar(require("./services/prisma.service"),exports),e.__exportStar(require("./services/validator.service"),exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./logger.service"),exports),e.__exportStar(require("./prisma.service"),exports);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});const e=require("tslib");e.__exportStar(require("./data.transformer.service"),exports),e.__exportStar(require("./logger.service"),exports),e.__exportStar(require("./message.formatter.service"),exports),e.__exportStar(require("./prisma.service"),exports),e.__exportStar(require("./validator.service"),exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare class MessageFormatterService {
|
|
2
|
+
static capitalizeFirstLetter(word: string): string;
|
|
3
|
+
static toLowerCase(word: string): string;
|
|
4
|
+
static formatMessage(template: string, label: string): string;
|
|
5
|
+
static toSingularOrPlural(word: string, count: number): string;
|
|
6
|
+
static prepareMessage(template: string, label: string, capitalize?: boolean): string;
|
|
7
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { HelperModule } from './helper.module.js';
|
|
2
|
+
export { DataTransformerService, MessageFormatterService, ValidatorService } from './services/index.js';
|
|
2
3
|
export { ILogData, LogLevel, LoggerService } from './services/logger.service.js';
|
|
3
4
|
export { PrismaService } from './services/prisma.service.js';
|
|
4
5
|
import '@infineit/winston-logger/logger/domain/logger';
|
|
@@ -6,3 +6,24 @@ import '@nestjs/config';
|
|
|
6
6
|
import '@nestjs/terminus';
|
|
7
7
|
import '@infineit-nestjs/types';
|
|
8
8
|
import '@prisma/client';
|
|
9
|
+
|
|
10
|
+
declare class DataTransformerService {
|
|
11
|
+
processData(processData: any[], fieldsToInclude: string[]): Promise<any[]>;
|
|
12
|
+
private processChunkWithWorker;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class MessageFormatterService {
|
|
16
|
+
static capitalizeFirstLetter(word: string): string;
|
|
17
|
+
static toLowerCase(word: string): string;
|
|
18
|
+
static formatMessage(template: string, label: string): string;
|
|
19
|
+
static toSingularOrPlural(word: string, count: number): string;
|
|
20
|
+
static prepareMessage(template: string, label: string, capitalize?: boolean): string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class ValidatorService {
|
|
24
|
+
isImage(mimeType: string): boolean;
|
|
25
|
+
isEmail(value: string): boolean;
|
|
26
|
+
isNumber(value: string): boolean;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { DataTransformerService, MessageFormatterService, ValidatorService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infineit-nestjs/services",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"main": "./dist/cjs/index.js",
|
|
5
5
|
"module": "./dist/es/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -74,5 +74,5 @@
|
|
|
74
74
|
"publishConfig": {
|
|
75
75
|
"access": "public"
|
|
76
76
|
},
|
|
77
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "9972f25d2b958ade9a0ae6448bd558410b6bb290"
|
|
78
78
|
}
|