UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

42 lines 2.44 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); 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; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var TransactionService_1; Object.defineProperty(exports, "__esModule", { value: true }); exports.TransactionService = exports.getDeviceUuid = void 0; const common_1 = require("@nestjs/common"); const config_1 = require("../../common_services/config"); const dynamodbService_1 = require("../../common_services/dynamodb/dynamodbService"); exports.getDeviceUuid = jest.fn(); let TransactionService = TransactionService_1 = class TransactionService { constructor(dynamodbService, envService) { this.dynamodbService = dynamodbService; this.envService = envService; this.getTransactions = TransactionService_1.getTransactions; this.getTransaction = TransactionService_1.getTransaction; this.subscribeTransactionResponse = TransactionService_1.subscribeTransactionResponse; this.requestTransaction = TransactionService_1.requestTransaction; this.onTransactionStream = TransactionService_1.onTransactionStream; this.onTransactionUpdate = TransactionService_1.onTransactionUpdate; } }; TransactionService.getTransactions = jest.fn(); TransactionService.getTransaction = jest.fn(); TransactionService.requestTransaction = jest.fn(); TransactionService.subscribeTransactionResponse = jest.fn(); TransactionService.onTransactionStream = jest.fn(); TransactionService.onTransactionUpdate = jest.fn(); TransactionService = TransactionService_1 = __decorate([ common_1.Injectable(), __metadata("design:paramtypes", [dynamodbService_1.DynamodbService, config_1.EnvironmentService]) ], TransactionService); exports.TransactionService = TransactionService; //# sourceMappingURL=transactionService.js.map