@zetra/citrineos-smartcharging 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/1.6/MessageApi.d.ts +2 -2
- package/dist/module/1.6/MessageApi.js +1 -1
- package/dist/module/2.0.1/MessageApi.d.ts +2 -2
- package/dist/module/2.0.1/MessageApi.js +3 -3
- package/dist/module/module.d.ts +4 -4
- package/dist/module/module.js +3 -3
- package/dist/module/smartCharging/InternalSmartCharging.d.ts +3 -3
- package/dist/module/smartCharging/InternalSmartCharging.js +2 -2
- package/dist/module/smartCharging/SmartCharging.d.ts +2 -2
- package/dist/module/smartCharging/SmartCharging.js +2 -2
- package/package.json +4 -4
|
@@ -2,8 +2,8 @@ import type { ILogObj } from 'tslog';
|
|
|
2
2
|
import { Logger } from 'tslog';
|
|
3
3
|
import type { ISmartChargingModuleApi } from '../interface.js';
|
|
4
4
|
import { SmartChargingModule } from '../module.js';
|
|
5
|
-
import type { CallAction, IMessageConfirmation } from '@citrineos
|
|
6
|
-
import { AbstractModuleApi, OCPP1_6 } from '@citrineos
|
|
5
|
+
import type { CallAction, IMessageConfirmation } from '@zetra/citrineos-base';
|
|
6
|
+
import { AbstractModuleApi, OCPP1_6 } from '@zetra/citrineos-base';
|
|
7
7
|
import type { FastifyInstance } from 'fastify';
|
|
8
8
|
/**
|
|
9
9
|
* Server API for the OCPP 1.6 SmartCharging module.
|
|
@@ -12,7 +12,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
12
12
|
};
|
|
13
13
|
import { Logger } from 'tslog';
|
|
14
14
|
import { SmartChargingModule } from '../module.js';
|
|
15
|
-
import { AbstractModuleApi, AsMessageEndpoint, DEFAULT_TENANT_ID, OCPP1_6, OCPP1_6_CallAction, OCPPVersion, } from '@citrineos
|
|
15
|
+
import { AbstractModuleApi, AsMessageEndpoint, DEFAULT_TENANT_ID, OCPP1_6, OCPP1_6_CallAction, OCPPVersion, } from '@zetra/citrineos-base';
|
|
16
16
|
/**
|
|
17
17
|
* Server API for the OCPP 1.6 SmartCharging module.
|
|
18
18
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CallAction, IMessageConfirmation } from '@citrineos
|
|
2
|
-
import { AbstractModuleApi, Namespace, OCPP1_6_Namespace, OCPP2_0_1, OCPP2_0_1_Namespace } from '@citrineos
|
|
1
|
+
import type { CallAction, IMessageConfirmation } from '@zetra/citrineos-base';
|
|
2
|
+
import { AbstractModuleApi, Namespace, OCPP1_6_Namespace, OCPP2_0_1, OCPP2_0_1_Namespace } from '@zetra/citrineos-base';
|
|
3
3
|
import type { FastifyInstance } from 'fastify';
|
|
4
4
|
import type { ILogObj } from 'tslog';
|
|
5
5
|
import { Logger } from 'tslog';
|
|
@@ -10,9 +10,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
10
10
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
12
12
|
};
|
|
13
|
-
import { AbstractModuleApi, AsMessageEndpoint, ChargingLimitSourceEnum, DEFAULT_TENANT_ID, Namespace, OCPP1_6_Namespace, OCPP2_0_1, OCPP2_0_1_CallAction, OCPP2_0_1_Namespace, OCPPVersion, } from '@citrineos
|
|
14
|
-
import { OCPP2_0_1_Mapper, VariableAttribute } from '@citrineos
|
|
15
|
-
import { stringToSet, validateChargingProfileType } from '@citrineos
|
|
13
|
+
import { AbstractModuleApi, AsMessageEndpoint, ChargingLimitSourceEnum, DEFAULT_TENANT_ID, Namespace, OCPP1_6_Namespace, OCPP2_0_1, OCPP2_0_1_CallAction, OCPP2_0_1_Namespace, OCPPVersion, } from '@zetra/citrineos-base';
|
|
14
|
+
import { OCPP2_0_1_Mapper, VariableAttribute } from '@zetra/citrineos-data';
|
|
15
|
+
import { stringToSet, validateChargingProfileType } from '@zetra/citrineos-util';
|
|
16
16
|
import { Logger } from 'tslog';
|
|
17
17
|
import { SmartChargingModule } from '../module.js';
|
|
18
18
|
/**
|
package/dist/module/module.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { BootstrapConfig, CallAction, HandlerProperties, ICache, IMessage, IMessageHandler, IMessageSender, SystemConfig } from '@citrineos
|
|
2
|
-
import { AbstractModule, OCPP1_6, OCPP2_0_1, OCPPValidator } from '@citrineos
|
|
3
|
-
import type { IChargingProfileRepository, IDeviceModelRepository, IOCPPMessageRepository, ITransactionEventRepository } from '@citrineos
|
|
4
|
-
import { IdGenerator } from '@citrineos
|
|
1
|
+
import type { BootstrapConfig, CallAction, HandlerProperties, ICache, IMessage, IMessageHandler, IMessageSender, SystemConfig } from '@zetra/citrineos-base';
|
|
2
|
+
import { AbstractModule, OCPP1_6, OCPP2_0_1, OCPPValidator } from '@zetra/citrineos-base';
|
|
3
|
+
import type { IChargingProfileRepository, IDeviceModelRepository, IOCPPMessageRepository, ITransactionEventRepository } from '@zetra/citrineos-data';
|
|
4
|
+
import { IdGenerator } from '@zetra/citrineos-util';
|
|
5
5
|
import type { ILogObj } from 'tslog';
|
|
6
6
|
import { Logger } from 'tslog';
|
|
7
7
|
import type { ISmartCharging } from './smartCharging/index.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, ChargingLimitSourceEnum, ChargingProfilePurposeEnum, ChargingStationSequenceTypeEnum, EventGroup, MessageOrigin, OCPP1_6, OCPP1_6_CallAction, OCPP2_0_1, OCPP2_0_1_CallAction, OCPPValidator, OCPPVersion, } from '@citrineos
|
|
11
|
-
import { OCPP1_6_Mapper, OCPP2_0_1_Mapper, sequelize, SequelizeChargingStationSequenceRepository, Transaction, } from '@citrineos
|
|
12
|
-
import { IdGenerator, RabbitMqReceiver, RabbitMqSender } from '@citrineos
|
|
10
|
+
import { AbstractModule, AsHandler, ChargingLimitSourceEnum, ChargingProfilePurposeEnum, ChargingStationSequenceTypeEnum, EventGroup, MessageOrigin, OCPP1_6, OCPP1_6_CallAction, OCPP2_0_1, OCPP2_0_1_CallAction, OCPPValidator, OCPPVersion, } from '@zetra/citrineos-base';
|
|
11
|
+
import { OCPP1_6_Mapper, OCPP2_0_1_Mapper, sequelize, SequelizeChargingStationSequenceRepository, Transaction, } from '@zetra/citrineos-data';
|
|
12
|
+
import { IdGenerator, RabbitMqReceiver, RabbitMqSender } from '@zetra/citrineos-util';
|
|
13
13
|
import { Logger } from 'tslog';
|
|
14
14
|
import { InternalSmartCharging } from './smartCharging/index.js';
|
|
15
15
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ISmartCharging } from './SmartCharging.js';
|
|
2
|
-
import { OCPP2_0_1 } from '@citrineos
|
|
3
|
-
import type { IChargingProfileRepository } from '@citrineos
|
|
4
|
-
import { Transaction } from '@citrineos
|
|
2
|
+
import { OCPP2_0_1 } from '@zetra/citrineos-base';
|
|
3
|
+
import type { IChargingProfileRepository } 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 InternalSmartCharging implements ISmartCharging {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChargingProfilePurposeEnum, OCPP2_0_1 } from '@citrineos
|
|
2
|
-
import { ChargingProfile, ChargingSchedule, Transaction } from '@citrineos
|
|
1
|
+
import { ChargingProfilePurposeEnum, OCPP2_0_1 } from '@zetra/citrineos-base';
|
|
2
|
+
import { ChargingProfile, ChargingSchedule, Transaction } from '@zetra/citrineos-data';
|
|
3
3
|
import { Logger } from 'tslog';
|
|
4
4
|
export class InternalSmartCharging {
|
|
5
5
|
_chargingProfileRepository;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OCPP2_0_1 } from '@citrineos
|
|
2
|
-
import { Transaction } from '@citrineos
|
|
1
|
+
import { OCPP2_0_1 } from '@zetra/citrineos-base';
|
|
2
|
+
import { Transaction } from '@zetra/citrineos-data';
|
|
3
3
|
export interface ISmartCharging {
|
|
4
4
|
/**
|
|
5
5
|
* Interface for calculating charging profile based on the charging needs
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: 2025 Contributors to the CitrineOS Project
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
import { OCPP2_0_1 } from '@citrineos
|
|
5
|
-
import { Transaction } from '@citrineos
|
|
4
|
+
import { OCPP2_0_1 } from '@zetra/citrineos-base';
|
|
5
|
+
import { Transaction } from '@zetra/citrineos-data';
|
|
6
6
|
//# sourceMappingURL=SmartCharging.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zetra/citrineos-smartcharging",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The smartcharging 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
|
}
|