resurgence-data 1.0.44 → 1.1.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/dist/index.d.ts CHANGED
@@ -4,3 +4,4 @@ export * from "./exception";
4
4
  export * from "./user";
5
5
  export * from "./messaging";
6
6
  export * from "./biller";
7
+ export * from "./payment";
package/dist/index.js CHANGED
@@ -20,3 +20,4 @@ __exportStar(require("./exception"), exports);
20
20
  __exportStar(require("./user"), exports);
21
21
  __exportStar(require("./messaging"), exports);
22
22
  __exportStar(require("./biller"), exports);
23
+ __exportStar(require("./payment"), exports);
@@ -0,0 +1,21 @@
1
+ export declare class BillerApiKeyDto {
2
+ billerId: string;
3
+ active: boolean;
4
+ apiKey: string;
5
+ environment?: string;
6
+ }
7
+ export declare class UpdateBillerApiKeyDto {
8
+ id: string;
9
+ billerId: string;
10
+ active?: boolean;
11
+ apiKey?: string;
12
+ environment?: string;
13
+ }
14
+ export declare class BillerKeyResponseDTO {
15
+ production: string;
16
+ test: string;
17
+ }
18
+ export declare class BillerEnvironmentKeyResponseDTO {
19
+ environment: string;
20
+ key: string;
21
+ }
@@ -0,0 +1,41 @@
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.BillerEnvironmentKeyResponseDTO = exports.BillerKeyResponseDTO = exports.UpdateBillerApiKeyDto = exports.BillerApiKeyDto = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ class BillerApiKeyDto {
15
+ }
16
+ exports.BillerApiKeyDto = BillerApiKeyDto;
17
+ class UpdateBillerApiKeyDto {
18
+ }
19
+ exports.UpdateBillerApiKeyDto = UpdateBillerApiKeyDto;
20
+ class BillerKeyResponseDTO {
21
+ }
22
+ exports.BillerKeyResponseDTO = BillerKeyResponseDTO;
23
+ __decorate([
24
+ (0, swagger_1.ApiProperty)({ description: "production key" }),
25
+ __metadata("design:type", String)
26
+ ], BillerKeyResponseDTO.prototype, "production", void 0);
27
+ __decorate([
28
+ (0, swagger_1.ApiProperty)({ description: "test key" }),
29
+ __metadata("design:type", String)
30
+ ], BillerKeyResponseDTO.prototype, "test", void 0);
31
+ class BillerEnvironmentKeyResponseDTO {
32
+ }
33
+ exports.BillerEnvironmentKeyResponseDTO = BillerEnvironmentKeyResponseDTO;
34
+ __decorate([
35
+ (0, swagger_1.ApiProperty)({ description: "environment" }),
36
+ __metadata("design:type", String)
37
+ ], BillerEnvironmentKeyResponseDTO.prototype, "environment", void 0);
38
+ __decorate([
39
+ (0, swagger_1.ApiProperty)({ description: "key" }),
40
+ __metadata("design:type", String)
41
+ ], BillerEnvironmentKeyResponseDTO.prototype, "key", void 0);
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ export * from "./api-key.data";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api-key.data"), exports);
@@ -0,0 +1 @@
1
+ export declare const environments: string[];
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.environments = void 0;
4
+ exports.environments = ["TEST", "LIVE"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.0.44",
3
+ "version": "1.1.0",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -4,3 +4,4 @@ export * from "./exception";
4
4
  export * from "./user";
5
5
  export * from "./messaging";
6
6
  export * from "./biller";
7
+ export * from "./payment";
@@ -0,0 +1,28 @@
1
+ import { ApiProperty } from "@nestjs/swagger";
2
+
3
+ export class BillerApiKeyDto {
4
+ billerId: string;
5
+ active: boolean;
6
+ apiKey: string;
7
+ environment?: string;
8
+ }
9
+ export class UpdateBillerApiKeyDto {
10
+ id: string;
11
+ billerId: string;
12
+ active?: boolean;
13
+ apiKey?: string;
14
+ environment?: string;
15
+ }
16
+
17
+ export class BillerKeyResponseDTO {
18
+ @ApiProperty({ description: "production key" })
19
+ production: string;
20
+ @ApiProperty({ description: "test key" })
21
+ test: string;
22
+ }
23
+ export class BillerEnvironmentKeyResponseDTO {
24
+ @ApiProperty({ description: "environment" })
25
+ environment: string;
26
+ @ApiProperty({ description: "key" })
27
+ key: string;
28
+ }
File without changes
@@ -0,0 +1 @@
1
+ export * from "./api-key.data";
@@ -0,0 +1 @@
1
+ export const environments = ["TEST", "LIVE"];