@zetra/citrineos-transactions 1.8.3-fork.3 → 1.8.4
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/module/2.0.1/MessageApi.d.ts +2 -2
- package/dist/module/2.0.1/MessageApi.js +1 -1
- package/dist/module/CostCalculator.d.ts +1 -1
- package/dist/module/CostCalculator.js +2 -2
- package/dist/module/CostNotifier.d.ts +3 -3
- package/dist/module/CostNotifier.js +2 -2
- package/dist/module/DataApi.d.ts +3 -3
- package/dist/module/DataApi.js +2 -2
- package/dist/module/StatusNotificationService.d.ts +2 -2
- package/dist/module/StatusNotificationService.js +2 -2
- package/dist/module/TransactionService.d.ts +4 -4
- package/dist/module/TransactionService.js +2 -2
- package/dist/module/module.d.ts +4 -4
- package/dist/module/module.js +3 -3
- package/package.json +4 -4
|
@@ -2,8 +2,8 @@ import type { ILogObj } from 'tslog';
|
|
|
2
2
|
import { Logger } from 'tslog';
|
|
3
3
|
import type { ITransactionsModuleApi } from '../interface.js';
|
|
4
4
|
import { TransactionsModule } from '../module.js';
|
|
5
|
-
import type { CallAction, IMessageConfirmation } from '@citrineos
|
|
6
|
-
import { AbstractModuleApi, OCPP2_0_1 } from '@citrineos
|
|
5
|
+
import type { CallAction, IMessageConfirmation } from '@zetra/citrineos-base';
|
|
6
|
+
import { AbstractModuleApi, OCPP2_0_1 } from '@zetra/citrineos-base';
|
|
7
7
|
import type { FastifyInstance } from 'fastify';
|
|
8
8
|
/**
|
|
9
9
|
* Server API for the transaction module.
|
|
@@ -12,7 +12,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
12
12
|
};
|
|
13
13
|
import { Logger } from 'tslog';
|
|
14
14
|
import { TransactionsModule } from '../module.js';
|
|
15
|
-
import { AbstractModuleApi, AsMessageEndpoint, DEFAULT_TENANT_ID, OCPP2_0_1, OCPP2_0_1_CallAction, OCPPVersion, } from '@citrineos
|
|
15
|
+
import { AbstractModuleApi, AsMessageEndpoint, DEFAULT_TENANT_ID, OCPP2_0_1, OCPP2_0_1_CallAction, OCPPVersion, } from '@zetra/citrineos-base';
|
|
16
16
|
/**
|
|
17
17
|
* Server API for the transaction module.
|
|
18
18
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
import { Money } from '@citrineos
|
|
5
|
-
import { Tariff } from '@citrineos
|
|
4
|
+
import { Money } from '@zetra/citrineos-base';
|
|
5
|
+
import { Tariff } from '@zetra/citrineos-data';
|
|
6
6
|
import { Logger } from 'tslog';
|
|
7
7
|
import { TransactionService } from './TransactionService.js';
|
|
8
8
|
export class CostCalculator {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AbstractModule } from '@citrineos
|
|
2
|
-
import type { ITransactionEventRepository } from '@citrineos
|
|
3
|
-
import { Transaction } from '@citrineos
|
|
1
|
+
import { AbstractModule } from '@zetra/citrineos-base';
|
|
2
|
+
import type { ITransactionEventRepository } from '@zetra/citrineos-data';
|
|
3
|
+
import { Transaction } from '@zetra/citrineos-data';
|
|
4
4
|
import type { ILogObj } from 'tslog';
|
|
5
5
|
import { Logger } from 'tslog';
|
|
6
6
|
import { CostCalculator } from './CostCalculator.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
import { AbstractModule, OCPP2_0_1_CallAction, OCPPVersion } from '@citrineos
|
|
5
|
-
import { Transaction } from '@citrineos
|
|
4
|
+
import { AbstractModule, OCPP2_0_1_CallAction, OCPPVersion } from '@zetra/citrineos-base';
|
|
5
|
+
import { Transaction } from '@zetra/citrineos-data';
|
|
6
6
|
import { Logger } from 'tslog';
|
|
7
7
|
import { CostCalculator } from './CostCalculator.js';
|
|
8
8
|
import { Scheduler } from './Scheduler.js';
|
package/dist/module/DataApi.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { TariffQueryString, TenantQueryString, TransactionEventQuerystring } from '@citrineos
|
|
2
|
-
import { Tariff, Transaction } from '@citrineos
|
|
1
|
+
import type { TariffQueryString, TenantQueryString, TransactionEventQuerystring } from '@zetra/citrineos-data';
|
|
2
|
+
import { Tariff, Transaction } from '@zetra/citrineos-data';
|
|
3
3
|
import type { ILogObj } from 'tslog';
|
|
4
4
|
import { Logger } from 'tslog';
|
|
5
5
|
import type { ITransactionsModuleApi } from './interface.js';
|
|
6
6
|
import { TransactionsModule } from './module.js';
|
|
7
|
-
import { AbstractModuleApi, Namespace, OCPP1_6_Namespace, OCPP2_0_1_Namespace } from '@citrineos
|
|
7
|
+
import { AbstractModuleApi, Namespace, OCPP1_6_Namespace, OCPP2_0_1_Namespace } from '@zetra/citrineos-base';
|
|
8
8
|
import type { FastifyInstance, FastifyRequest } from 'fastify';
|
|
9
9
|
/**
|
|
10
10
|
* Server API for the transaction module.
|
package/dist/module/DataApi.js
CHANGED
|
@@ -7,10 +7,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { Tariff, TariffQuerySchema, TariffSchema, TenantQuerySchema, Transaction, TransactionEventQuerySchema, } from '@citrineos
|
|
10
|
+
import { Tariff, TariffQuerySchema, TariffSchema, TenantQuerySchema, Transaction, TransactionEventQuerySchema, } from '@zetra/citrineos-data';
|
|
11
11
|
import { Logger } from 'tslog';
|
|
12
12
|
import { TransactionsModule } from './module.js';
|
|
13
|
-
import { AbstractModuleApi, AsDataEndpoint, HttpMethod, Namespace, OCPP1_6_Namespace, OCPP2_0_1_Namespace, } from '@citrineos
|
|
13
|
+
import { AbstractModuleApi, AsDataEndpoint, HttpMethod, Namespace, OCPP1_6_Namespace, OCPP2_0_1_Namespace, } from '@zetra/citrineos-base';
|
|
14
14
|
import { UpsertTariffRequest } from './model/tariffs.js';
|
|
15
15
|
import { plainToInstance } from 'class-transformer';
|
|
16
16
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CrudRepository, OCPP1_6, OCPP2_0_1 } from '@citrineos
|
|
2
|
-
import { Component, type IDeviceModelRepository, type ILocationRepository } from '@citrineos
|
|
1
|
+
import { CrudRepository, OCPP1_6, OCPP2_0_1 } from '@zetra/citrineos-base';
|
|
2
|
+
import { Component, type IDeviceModelRepository, type ILocationRepository } from '@zetra/citrineos-data';
|
|
3
3
|
import type { ILogObj } from 'tslog';
|
|
4
4
|
import { Logger } from 'tslog';
|
|
5
5
|
export declare class StatusNotificationService {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
import { CrudRepository, OCPP1_6, OCPP2_0_1 } from '@citrineos
|
|
5
|
-
import { Component, Connector, EvseType, OCPP1_6_Mapper, OCPP2_0_1_Mapper, StatusNotification, Variable, } from '@citrineos
|
|
4
|
+
import { CrudRepository, OCPP1_6, OCPP2_0_1 } from '@zetra/citrineos-base';
|
|
5
|
+
import { Component, Connector, EvseType, OCPP1_6_Mapper, OCPP2_0_1_Mapper, StatusNotification, Variable, } from '@zetra/citrineos-data';
|
|
6
6
|
import { Logger } from 'tslog';
|
|
7
7
|
export class StatusNotificationService {
|
|
8
8
|
_componentRepository;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { IAuthorizer, IMessageContext, MeterValueDto } from '@citrineos
|
|
2
|
-
import { OCPP1_6, OCPP2_0_1 } from '@citrineos
|
|
3
|
-
import type { IAuthorizationRepository, ILocationRepository, IOCPPMessageRepository, IReservationRepository, ITransactionEventRepository, MeterValue } from '@citrineos
|
|
4
|
-
import { Transaction } from '@citrineos
|
|
1
|
+
import type { IAuthorizer, IMessageContext, MeterValueDto } from '@zetra/citrineos-base';
|
|
2
|
+
import { OCPP1_6, OCPP2_0_1 } from '@zetra/citrineos-base';
|
|
3
|
+
import type { IAuthorizationRepository, ILocationRepository, IOCPPMessageRepository, IReservationRepository, ITransactionEventRepository, MeterValue } from '@zetra/citrineos-data';
|
|
4
|
+
import { Transaction } from '@zetra/citrineos-data';
|
|
5
5
|
import type { ILogObj } from 'tslog';
|
|
6
6
|
import { Logger } from 'tslog';
|
|
7
7
|
export declare class TransactionService {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuthorizationStatusEnum, MessageOrigin, MeterValueUtils, OCPP1_6, OCPP2_0_1, } from '@citrineos
|
|
2
|
-
import { OCPP1_6_Mapper, OCPP2_0_1_Mapper, Transaction } from '@citrineos
|
|
1
|
+
import { AuthorizationStatusEnum, MessageOrigin, MeterValueUtils, OCPP1_6, OCPP2_0_1, } from '@zetra/citrineos-base';
|
|
2
|
+
import { OCPP1_6_Mapper, OCPP2_0_1_Mapper, Transaction } from '@zetra/citrineos-data';
|
|
3
3
|
import { Logger } from 'tslog';
|
|
4
4
|
export class TransactionService {
|
|
5
5
|
_transactionEventRepository;
|
package/dist/module/module.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BootstrapConfig, CallAction, HandlerProperties, IAuthorizer, ICache, IFileStorage, IMessage, IMessageHandler, IMessageSender, SystemConfig } from '@citrineos
|
|
2
|
-
import { AbstractModule, CrudRepository, OCPP1_6, OCPP2_0_1, OCPPValidator } from '@citrineos
|
|
3
|
-
import type { IAuthorizationRepository, IDeviceModelRepository, ILocationRepository, IOCPPMessageRepository, IReservationRepository, ITariffRepository, ITransactionEventRepository } from '@citrineos
|
|
4
|
-
import { Component } from '@citrineos
|
|
1
|
+
import type { BootstrapConfig, CallAction, HandlerProperties, IAuthorizer, ICache, IFileStorage, IMessage, IMessageHandler, IMessageSender, SystemConfig } from '@zetra/citrineos-base';
|
|
2
|
+
import { AbstractModule, CrudRepository, OCPP1_6, OCPP2_0_1, OCPPValidator } from '@zetra/citrineos-base';
|
|
3
|
+
import type { IAuthorizationRepository, IDeviceModelRepository, ILocationRepository, IOCPPMessageRepository, IReservationRepository, ITariffRepository, ITransactionEventRepository } from '@zetra/citrineos-data';
|
|
4
|
+
import { Component } from '@zetra/citrineos-data';
|
|
5
5
|
import type { ILogObj } from 'tslog';
|
|
6
6
|
import { Logger } from 'tslog';
|
|
7
7
|
import { StatusNotificationService } from './StatusNotificationService.js';
|
package/dist/module/module.js
CHANGED
|
@@ -7,9 +7,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
9
|
};
|
|
10
|
-
import { AbstractModule, AsHandler, AuthorizationStatusEnum, CrudRepository, ErrorCode, EventGroup, OCPP1_6, OCPP1_6_CallAction, OCPP2_0_1, OCPP2_0_1_CallAction, OcppError, OCPPValidator, OCPPVersion, } from '@citrineos
|
|
11
|
-
import { Authorization, Component, OCPP1_6_Mapper, sequelize, SequelizeOCPPMessageRepository, SequelizeRepository, StartTransaction, Transaction, VariableAttribute, } from '@citrineos
|
|
12
|
-
import { RabbitMqReceiver, RabbitMqSender, RealTimeAuthorizer, SignedMeterValuesUtil, } from '@citrineos
|
|
10
|
+
import { AbstractModule, AsHandler, AuthorizationStatusEnum, CrudRepository, ErrorCode, EventGroup, OCPP1_6, OCPP1_6_CallAction, OCPP2_0_1, OCPP2_0_1_CallAction, OcppError, OCPPValidator, OCPPVersion, } from '@zetra/citrineos-base';
|
|
11
|
+
import { Authorization, Component, OCPP1_6_Mapper, sequelize, SequelizeOCPPMessageRepository, SequelizeRepository, StartTransaction, Transaction, VariableAttribute, } from '@zetra/citrineos-data';
|
|
12
|
+
import { RabbitMqReceiver, RabbitMqSender, RealTimeAuthorizer, SignedMeterValuesUtil, } from '@zetra/citrineos-util';
|
|
13
13
|
import { Logger } from 'tslog';
|
|
14
14
|
import { CostCalculator } from './CostCalculator.js';
|
|
15
15
|
import { CostNotifier } from './CostNotifier.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zetra/citrineos-transactions",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The transactions module for OCPP v2.0.1. This module is not intended to be used directly, but rather as a dependency for other modules.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@zetra/citrineos-base": "1.8.
|
|
22
|
-
"@zetra/citrineos-data": "1.8.
|
|
23
|
-
"@zetra/citrineos-util": "1.8.
|
|
21
|
+
"@zetra/citrineos-base": "1.8.4",
|
|
22
|
+
"@zetra/citrineos-data": "1.8.4",
|
|
23
|
+
"@zetra/citrineos-util": "1.8.4"
|
|
24
24
|
}
|
|
25
25
|
}
|