@stamhoofd/structures
Advanced tools
Comparing version 1.2.28 to 1.2.29
@@ -0,1 +1,2 @@ | ||
export declare const Version = 6; | ||
export * from "./src/OrganizationMetaData"; | ||
@@ -43,3 +44,2 @@ export * from "./src/OrganizationType"; | ||
export * from "./src/members/PaymentDetailed"; | ||
export declare const Version = 5; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,4 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
// Latest version of the structures | ||
exports.Version = 6; | ||
// General | ||
@@ -52,4 +54,2 @@ tslib_1.__exportStar(require("./src/OrganizationMetaData"), exports); | ||
tslib_1.__exportStar(require("./src/members/PaymentDetailed"), exports); | ||
// Latest version of the structures | ||
exports.Version = 5; | ||
//# sourceMappingURL=index.js.map |
@@ -6,4 +6,3 @@ import { Payment } from './Payment'; | ||
getMemberNames(): string; | ||
getPaymentPeriod(): string; | ||
} | ||
//# sourceMappingURL=PaymentDetailed.d.ts.map |
@@ -12,15 +12,2 @@ "use strict"; | ||
} | ||
getPaymentPeriod() { | ||
let minYear = new Date().getFullYear(); | ||
let maxYear = 0; | ||
for (const registration of this.registrations) { | ||
if (registration.group.settings.startDate.getFullYear() < minYear) { | ||
minYear = registration.group.settings.startDate.getFullYear(); | ||
} | ||
if (registration.group.settings.endDate.getFullYear() > maxYear) { | ||
maxYear = registration.group.settings.endDate.getFullYear(); | ||
} | ||
} | ||
return minYear + " - " + maxYear; | ||
} | ||
} | ||
@@ -27,0 +14,0 @@ tslib_1.__decorate([ |
@@ -14,3 +14,5 @@ import { AutoEncoder } from '@simonbackx/simple-encoding'; | ||
defaultPrices: GroupPrices[]; | ||
iban: string; | ||
bic: string; | ||
} | ||
//# sourceMappingURL=OrganizationMetaData.d.ts.map |
@@ -17,2 +17,4 @@ "use strict"; | ||
this.defaultPrices = []; | ||
this.iban = ""; | ||
this.bic = ""; | ||
} | ||
@@ -41,3 +43,9 @@ } | ||
], OrganizationMetaData.prototype, "defaultPrices", void 0); | ||
tslib_1.__decorate([ | ||
simple_encoding_1.field({ decoder: simple_encoding_1.StringDecoder, version: 6, upgrade: () => "" }) | ||
], OrganizationMetaData.prototype, "iban", void 0); | ||
tslib_1.__decorate([ | ||
simple_encoding_1.field({ decoder: simple_encoding_1.StringDecoder, version: 6, upgrade: () => "" }) | ||
], OrganizationMetaData.prototype, "bic", void 0); | ||
exports.OrganizationMetaData = OrganizationMetaData; | ||
//# sourceMappingURL=OrganizationMetaData.js.map |
@@ -0,1 +1,2 @@ | ||
export declare const Version = 6; | ||
export * from "./src/OrganizationMetaData"; | ||
@@ -43,3 +44,2 @@ export * from "./src/OrganizationType"; | ||
export * from "./src/members/PaymentDetailed"; | ||
export declare const Version = 5; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -0,1 +1,3 @@ | ||
// Latest version of the structures | ||
export const Version = 6; | ||
// General | ||
@@ -47,4 +49,2 @@ export * from "./src/OrganizationMetaData"; | ||
export * from "./src/members/PaymentDetailed"; | ||
// Latest version of the structures | ||
export const Version = 5; | ||
//# sourceMappingURL=index.js.map |
@@ -6,4 +6,3 @@ import { Payment } from './Payment'; | ||
getMemberNames(): string; | ||
getPaymentPeriod(): string; | ||
} | ||
//# sourceMappingURL=PaymentDetailed.d.ts.map |
@@ -9,15 +9,2 @@ import { __decorate } from "tslib"; | ||
} | ||
getPaymentPeriod() { | ||
let minYear = new Date().getFullYear(); | ||
let maxYear = 0; | ||
for (const registration of this.registrations) { | ||
if (registration.group.settings.startDate.getFullYear() < minYear) { | ||
minYear = registration.group.settings.startDate.getFullYear(); | ||
} | ||
if (registration.group.settings.endDate.getFullYear() > maxYear) { | ||
maxYear = registration.group.settings.endDate.getFullYear(); | ||
} | ||
} | ||
return minYear + " - " + maxYear; | ||
} | ||
} | ||
@@ -24,0 +11,0 @@ __decorate([ |
@@ -14,3 +14,5 @@ import { AutoEncoder } from '@simonbackx/simple-encoding'; | ||
defaultPrices: GroupPrices[]; | ||
iban: string; | ||
bic: string; | ||
} | ||
//# sourceMappingURL=OrganizationMetaData.d.ts.map |
import { __decorate } from "tslib"; | ||
import { ArrayDecoder, AutoEncoder, DateDecoder, EnumDecoder, field, IntegerDecoder } from '@simonbackx/simple-encoding'; | ||
import { ArrayDecoder, AutoEncoder, DateDecoder, EnumDecoder, field, IntegerDecoder, StringDecoder } from '@simonbackx/simple-encoding'; | ||
import { GroupPrices } from './GroupPrices'; | ||
@@ -14,2 +14,4 @@ import { OrganizationGenderType } from './OrganizationGenderType'; | ||
this.defaultPrices = []; | ||
this.iban = ""; | ||
this.bic = ""; | ||
} | ||
@@ -38,2 +40,8 @@ } | ||
], OrganizationMetaData.prototype, "defaultPrices", void 0); | ||
__decorate([ | ||
field({ decoder: StringDecoder, version: 6, upgrade: () => "" }) | ||
], OrganizationMetaData.prototype, "iban", void 0); | ||
__decorate([ | ||
field({ decoder: StringDecoder, version: 6, upgrade: () => "" }) | ||
], OrganizationMetaData.prototype, "bic", void 0); | ||
//# sourceMappingURL=OrganizationMetaData.js.map |
{ | ||
"name": "@stamhoofd/structures", | ||
"version": "1.2.28", | ||
"version": "1.2.29", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./esm/dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
289676
4131