@maioradv/nestjs-core 1.1.6 → 1.1.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.
@@ -8,3 +8,4 @@ export type AWSConfig = {
8
8
  baseUrl: string;
9
9
  };
10
10
  };
11
+ export declare const AWSConfigKey = "aws";
@@ -1,2 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AWSConfigKey = void 0;
4
+ exports.AWSConfigKey = 'aws';
@@ -1 +1,2 @@
1
1
  export * from './aws.config';
2
+ export * from './maior.config';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./aws.config"), exports);
18
+ __exportStar(require("./maior.config"), exports);
@@ -0,0 +1,5 @@
1
+ import { AccountsApiConfigs } from "@maioradv/accounts-lib";
2
+ export type MaiorConfig = {
3
+ accounts?: AccountsApiConfigs;
4
+ };
5
+ export declare const MaiorConfigKey = "maior";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MaiorConfigKey = void 0;
4
+ exports.MaiorConfigKey = 'maior';
@@ -0,0 +1,7 @@
1
+ import { AccountsApiClient } from "@maioradv/accounts-lib";
2
+ import { ConfigService } from "@nestjs/config";
3
+ export declare class AccountsService {
4
+ private readonly configService;
5
+ client: AccountsApiClient;
6
+ constructor(configService: ConfigService);
7
+ }
@@ -0,0 +1,26 @@
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
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AccountsService = void 0;
13
+ const accounts_lib_1 = require("@maioradv/accounts-lib");
14
+ const common_1 = require("@nestjs/common");
15
+ const config_1 = require("@nestjs/config");
16
+ let AccountsService = class AccountsService {
17
+ constructor(configService) {
18
+ this.configService = configService;
19
+ this.client = (0, accounts_lib_1.accountsApiClient)(this.configService.get('maior.accounts') ?? {});
20
+ }
21
+ };
22
+ exports.AccountsService = AccountsService;
23
+ exports.AccountsService = AccountsService = __decorate([
24
+ (0, common_1.Injectable)(),
25
+ __metadata("design:paramtypes", [config_1.ConfigService])
26
+ ], AccountsService);
@@ -1,2 +1,3 @@
1
1
  export * from './crypt.service';
2
2
  export * from './s3.service';
3
+ export * from './accounts.service';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./crypt.service"), exports);
18
18
  __exportStar(require("./s3.service"), exports);
19
+ __exportStar(require("./accounts.service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maioradv/nestjs-core",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "NestJS helpers by MaiorADV",
5
5
  "repository": "https://github.com/maioradv/nestjs-core.git",
6
6
  "author": "Maior ADV Srl",
@@ -17,6 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@aws-sdk/client-s3": "^3.608.0",
20
+ "@maioradv/accounts-lib": "^1.0.3",
20
21
  "@nestjs/common": "^10.3.8",
21
22
  "@nestjs/config": "^3.2.2",
22
23
  "@nestjs/graphql": "^12.1.1",
@@ -39,6 +40,7 @@
39
40
  },
40
41
  "peerDependencies": {
41
42
  "@aws-sdk/client-s3": "^3.608.0",
43
+ "@maioradv/accounts-lib": "^1.0.3",
42
44
  "@nestjs/common": "^10.3.8",
43
45
  "@nestjs/config": "^3.2.2",
44
46
  "@nestjs/graphql": "^12.1.1",