@stamhoofd/structures
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,2 +6,3 @@ import { AutoEncoder } from '@simonbackx/simple-encoding'; | ||
export declare class GroupPrices extends AutoEncoder { | ||
id: string; | ||
startDate: Date | null; | ||
@@ -8,0 +9,0 @@ price: number; |
@@ -6,2 +6,3 @@ "use strict"; | ||
const simple_encoding_1 = require("@simonbackx/simple-encoding"); | ||
const uuid_1 = require("uuid"); | ||
/** | ||
@@ -19,2 +20,5 @@ * A group can have multiple prices, stored in an array. The pricing with the highest date or index is applied. | ||
tslib_1.__decorate([ | ||
simple_encoding_1.field({ decoder: simple_encoding_1.StringDecoder, version: 2, defaultValue: () => uuid_1.v4() }) | ||
], GroupPrices.prototype, "id", void 0); | ||
tslib_1.__decorate([ | ||
simple_encoding_1.field({ decoder: simple_encoding_1.DateDecoder, nullable: true }) | ||
@@ -21,0 +25,0 @@ ], GroupPrices.prototype, "startDate", void 0); |
@@ -6,2 +6,3 @@ import { AutoEncoder } from '@simonbackx/simple-encoding'; | ||
export declare class GroupPrices extends AutoEncoder { | ||
id: string; | ||
startDate: Date | null; | ||
@@ -8,0 +9,0 @@ price: number; |
import { __decorate } from "tslib"; | ||
import { AutoEncoder, DateDecoder, field, IntegerDecoder } from '@simonbackx/simple-encoding'; | ||
import { AutoEncoder, DateDecoder, field, IntegerDecoder, StringDecoder } from '@simonbackx/simple-encoding'; | ||
import { v4 as uuidv4 } from "uuid"; | ||
/** | ||
@@ -15,2 +16,5 @@ * A group can have multiple prices, stored in an array. The pricing with the highest date or index is applied. | ||
__decorate([ | ||
field({ decoder: StringDecoder, version: 2, defaultValue: () => uuidv4() }) | ||
], GroupPrices.prototype, "id", void 0); | ||
__decorate([ | ||
field({ decoder: DateDecoder, nullable: true }) | ||
@@ -17,0 +21,0 @@ ], GroupPrices.prototype, "startDate", void 0); |
{ | ||
"name": "@stamhoofd/structures", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"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
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
125724
1758