@zetra/citrineos-data 1.8.3-fork.20-prerelease-fork.1 → 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/layers/sequelize/model/TenantPartner.d.ts +1 -0
- package/dist/layers/sequelize/model/TenantPartner.js +4 -0
- package/dist/layers/sequelize/model/TenantPartner.js.map +1 -1
- package/package.json +2 -2
- package/dist/layers/sequelize/model/OcpiIntegration.d.ts +0 -8
- package/dist/layers/sequelize/model/OcpiIntegration.js +0 -27
- package/dist/layers/sequelize/model/OcpiIntegration.js.map +0 -1
- package/dist/layers/sequelize/model/RoamingPartner.d.ts +0 -10
- package/dist/layers/sequelize/model/RoamingPartner.js +0 -46
- package/dist/layers/sequelize/model/RoamingPartner.js.map +0 -1
|
@@ -6,6 +6,7 @@ export declare class TenantPartner extends Model implements TenantPartnerDto {
|
|
|
6
6
|
partyId: string;
|
|
7
7
|
countryCode: string;
|
|
8
8
|
partnerProfileOCPI: PartnerProfile;
|
|
9
|
+
awsSecretCertificateArn?: string | null;
|
|
9
10
|
authorizations: Authorization[];
|
|
10
11
|
tenantId: number;
|
|
11
12
|
tenant?: TenantDto;
|
|
@@ -37,6 +37,10 @@ __decorate([
|
|
|
37
37
|
Column(DataType.JSONB),
|
|
38
38
|
__metadata("design:type", Object)
|
|
39
39
|
], TenantPartner.prototype, "partnerProfileOCPI", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Column({ type: DataType.STRING, allowNull: true }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], TenantPartner.prototype, "awsSecretCertificateArn", void 0);
|
|
40
44
|
__decorate([
|
|
41
45
|
HasMany(() => Authorization),
|
|
42
46
|
__metadata("design:type", Array)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TenantPartner.js","sourceRoot":"","sources":["../../../../src/layers/sequelize/model/TenantPartner.ts"],"names":[],"mappings":";;;;;;;;;AAIA,OAAO,EAA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CO;IADP,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;;8CACA;AAGhB;IADP,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;;kDACI;AAGpB;IADP,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;;yDACoB;AAGnC;IADP,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;8DACH;AAGxC;IADP,OAAO,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC;;qDACW;AAShC;IAPP,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IACxB,MAAM,CAAC;QACN,IAAI,EAAE,QAAQ,CAAC,OAAO;QACtB,SAAS,EAAE,KAAK;QAChB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,UAAU;KACrB,CAAC;;+CACuB;AAGjB;IADP,SAAS,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACG;AAIpB;IAFN,YAAY;IACZ,YAAY;;qCACqB,aAAa;;2CAI9C;AApCU,aAAa;IADzB,KAAK;;GACO,aAAa,CA4CzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zetra/citrineos-data",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"description": "The OCPP data module which includes all persistence layer implementation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"typescript": "^5.8.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@zetra/citrineos-base": "1.8.
|
|
27
|
+
"@zetra/citrineos-base": "1.8.4",
|
|
28
28
|
"@types/sequelize": "4.28.20",
|
|
29
29
|
"pg": "8.11.3",
|
|
30
30
|
"pg-hstore": "2.3.4",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { OcpiIntegrationDto, PartnerProfile } from '@zetra/citrineos-base';
|
|
2
|
-
import { Model } from 'sequelize-typescript';
|
|
3
|
-
import { TenantPartner } from './TenantPartner.js';
|
|
4
|
-
export declare class OcpiIntegration extends Model implements OcpiIntegrationDto {
|
|
5
|
-
static readonly MODEL_NAME: string;
|
|
6
|
-
partnerProfileOCPI?: PartnerProfile | null;
|
|
7
|
-
tenantPartners?: TenantPartner[];
|
|
8
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
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;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
-
};
|
|
10
|
-
import { Column, DataType, HasMany, Model, Table } from 'sequelize-typescript';
|
|
11
|
-
import { TenantPartner } from './TenantPartner.js';
|
|
12
|
-
let OcpiIntegration = class OcpiIntegration extends Model {
|
|
13
|
-
static MODEL_NAME = 'OcpiIntegration';
|
|
14
|
-
};
|
|
15
|
-
__decorate([
|
|
16
|
-
Column(DataType.JSONB),
|
|
17
|
-
__metadata("design:type", Object)
|
|
18
|
-
], OcpiIntegration.prototype, "partnerProfileOCPI", void 0);
|
|
19
|
-
__decorate([
|
|
20
|
-
HasMany(() => TenantPartner),
|
|
21
|
-
__metadata("design:type", Array)
|
|
22
|
-
], OcpiIntegration.prototype, "tenantPartners", void 0);
|
|
23
|
-
OcpiIntegration = __decorate([
|
|
24
|
-
Table
|
|
25
|
-
], OcpiIntegration);
|
|
26
|
-
export { OcpiIntegration };
|
|
27
|
-
//# sourceMappingURL=OcpiIntegration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OcpiIntegration.js","sourceRoot":"","sources":["../../../../src/layers/sequelize/model/OcpiIntegration.ts"],"names":[],"mappings":";;;;;;;;;AAIA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAG5C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,KAAK;IACxC,MAAM,CAAU,UAAU,GAAW,iBAAiB,CAAC;;AAG/C;IADP,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;;2DAC4B;AAG3C;IADP,OAAO,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC;;uDACY;AAP9B,eAAe;IAD3B,KAAK;GACO,eAAe,CAQ3B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Model } from 'sequelize-typescript';
|
|
2
|
-
import { TenantPartner } from './TenantPartner.js';
|
|
3
|
-
export declare class RoamingPartner extends Model {
|
|
4
|
-
countryCode: string;
|
|
5
|
-
partyId: string;
|
|
6
|
-
role: string;
|
|
7
|
-
status: string;
|
|
8
|
-
tenantPartnerId: number;
|
|
9
|
-
tenantPartner?: TenantPartner;
|
|
10
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
// SPDX-FileCopyrightText: 2026 Contributors to the CitrineOS Project
|
|
2
|
-
//
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
5
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
7
|
-
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;
|
|
8
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
9
|
-
};
|
|
10
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
12
|
-
};
|
|
13
|
-
import { BelongsTo, Column, DataType, ForeignKey, Model, Table } from 'sequelize-typescript';
|
|
14
|
-
import { TenantPartner } from './TenantPartner.js';
|
|
15
|
-
let RoamingPartner = class RoamingPartner extends Model {
|
|
16
|
-
};
|
|
17
|
-
__decorate([
|
|
18
|
-
Column({ type: DataType.STRING(2), allowNull: false }),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], RoamingPartner.prototype, "countryCode", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
Column({ type: DataType.STRING(3), allowNull: false }),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], RoamingPartner.prototype, "partyId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
Column({ type: DataType.STRING(10), allowNull: false }),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], RoamingPartner.prototype, "role", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
Column({ type: DataType.STRING(20), allowNull: false }),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], RoamingPartner.prototype, "status", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
ForeignKey(() => TenantPartner),
|
|
35
|
-
Column({ type: DataType.INTEGER, allowNull: false, onUpdate: 'CASCADE', onDelete: 'RESTRICT' }),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], RoamingPartner.prototype, "tenantPartnerId", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
BelongsTo(() => TenantPartner),
|
|
40
|
-
__metadata("design:type", TenantPartner)
|
|
41
|
-
], RoamingPartner.prototype, "tenantPartner", void 0);
|
|
42
|
-
RoamingPartner = __decorate([
|
|
43
|
-
Table({ tableName: 'RoamingPartners' })
|
|
44
|
-
], RoamingPartner);
|
|
45
|
-
export { RoamingPartner };
|
|
46
|
-
//# sourceMappingURL=RoamingPartner.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RoamingPartner.js","sourceRoot":"","sources":["../../../../src/layers/sequelize/model/RoamingPartner.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,EAAE;AACF,sCAAsC;;;;;;;;;;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7F,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAG5C,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,KAAK;CAmBxC,CAAA;AAjBS;IADP,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;mDAC3B;AAGpB;IADP,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;+CAC/B;AAGhB;IADP,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;4CACnC;AAGb;IADP,MAAM,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;;8CACjC;AAIf;IAFP,UAAU,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC;IAC/B,MAAM,CAAC,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