@stamhoofd/structures 2.14.0 → 2.15.0
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/src/Version.d.ts +1 -1
- package/dist/src/Version.js +1 -1
- package/dist/src/addresses/Premise.d.ts +2 -0
- package/dist/src/addresses/Premise.d.ts.map +1 -1
- package/dist/src/addresses/Premise.js +8 -0
- package/dist/src/addresses/Premise.js.map +1 -1
- package/esm/dist/src/Version.d.ts +1 -1
- package/esm/dist/src/Version.js +1 -1
- package/esm/dist/src/addresses/Premise.d.ts +2 -0
- package/esm/dist/src/addresses/Premise.d.ts.map +1 -1
- package/esm/dist/src/addresses/Premise.js +8 -0
- package/esm/dist/src/addresses/Premise.js.map +1 -1
- package/package.json +2 -2
package/dist/src/Version.d.ts
CHANGED
package/dist/src/Version.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// -------------------------------------------------------------
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.Version = void 0;
|
|
10
|
-
exports.Version =
|
|
10
|
+
exports.Version = 323;
|
|
11
11
|
/**
|
|
12
12
|
* Use this in development when making changes to fields.
|
|
13
13
|
* On release, the version will get bumped and the usages of NextVersion will be replaced by that version.
|
|
@@ -3,6 +3,8 @@ import { Address } from "./Address";
|
|
|
3
3
|
import { Country } from './CountryDecoder';
|
|
4
4
|
export declare class Premise extends AutoEncoder {
|
|
5
5
|
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
6
8
|
premiseTypeIds: string[];
|
|
7
9
|
address: Address;
|
|
8
10
|
static createDefault(country?: Country): Premise;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Premise.d.ts","sourceRoot":"","sources":["../../../src/addresses/Premise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAwB,MAAM,6BAA6B,CAAC;AAE9F,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,qBAAa,OAAQ,SAAQ,WAAW;IAEpC,EAAE,EAAE,MAAM,CAAC;IAGX,cAAc,EAAE,MAAM,EAAE,CAAM;IAG9B,OAAO,EAAE,OAAO,CAA2B;IAE3C,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO;CAGnD"}
|
|
1
|
+
{"version":3,"file":"Premise.d.ts","sourceRoot":"","sources":["../../../src/addresses/Premise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAwB,MAAM,6BAA6B,CAAC;AAE9F,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,qBAAa,OAAQ,SAAQ,WAAW;IAEpC,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAM;IAGlB,WAAW,EAAE,MAAM,CAAM;IAGzB,cAAc,EAAE,MAAM,EAAE,CAAM;IAG9B,OAAO,EAAE,OAAO,CAA2B;IAE3C,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO;CAGnD"}
|
|
@@ -8,6 +8,8 @@ const Address_1 = require("./Address");
|
|
|
8
8
|
class Premise extends simple_encoding_1.AutoEncoder {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
11
|
+
this.name = '';
|
|
12
|
+
this.description = '';
|
|
11
13
|
this.premiseTypeIds = [];
|
|
12
14
|
this.address = Address_1.Address.createDefault();
|
|
13
15
|
}
|
|
@@ -19,6 +21,12 @@ exports.Premise = Premise;
|
|
|
19
21
|
tslib_1.__decorate([
|
|
20
22
|
(0, simple_encoding_1.field)({ decoder: simple_encoding_1.StringDecoder, defaultValue: () => (0, uuid_1.v4)() })
|
|
21
23
|
], Premise.prototype, "id", void 0);
|
|
24
|
+
tslib_1.__decorate([
|
|
25
|
+
(0, simple_encoding_1.field)({ decoder: simple_encoding_1.StringDecoder, version: 323 })
|
|
26
|
+
], Premise.prototype, "name", void 0);
|
|
27
|
+
tslib_1.__decorate([
|
|
28
|
+
(0, simple_encoding_1.field)({ decoder: simple_encoding_1.StringDecoder, version: 323 })
|
|
29
|
+
], Premise.prototype, "description", void 0);
|
|
22
30
|
tslib_1.__decorate([
|
|
23
31
|
(0, simple_encoding_1.field)({ decoder: new simple_encoding_1.ArrayDecoder(simple_encoding_1.StringDecoder) })
|
|
24
32
|
], Premise.prototype, "premiseTypeIds", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Premise.js","sourceRoot":"","sources":["../../../src/addresses/Premise.ts"],"names":[],"mappings":";;;;AAAA,iEAA8F;AAC9F,+BAAoC;AACpC,uCAAoC;AAGpC,MAAa,OAAQ,SAAQ,6BAAW;IAAxC;;QAKI,mBAAc,GAAa,EAAE,CAAC;QAG9B,YAAO,GAAY,iBAAO,CAAC,aAAa,EAAE,CAAC;IAK/C,CAAC;IAHG,MAAM,CAAC,aAAa,CAAC,OAAiB;QAClC,OAAO,OAAO,CAAC,MAAM,CAAC,EAAC,OAAO,EAAE,iBAAO,CAAC,aAAa,CAAC,OAAO,CAAC,EAAC,CAAC,CAAA;IACpE,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"Premise.js","sourceRoot":"","sources":["../../../src/addresses/Premise.ts"],"names":[],"mappings":";;;;AAAA,iEAA8F;AAC9F,+BAAoC;AACpC,uCAAoC;AAGpC,MAAa,OAAQ,SAAQ,6BAAW;IAAxC;;QAKI,SAAI,GAAW,EAAE,CAAC;QAGlB,gBAAW,GAAW,EAAE,CAAC;QAGzB,mBAAc,GAAa,EAAE,CAAC;QAG9B,YAAO,GAAY,iBAAO,CAAC,aAAa,EAAE,CAAC;IAK/C,CAAC;IAHG,MAAM,CAAC,aAAa,CAAC,OAAiB;QAClC,OAAO,OAAO,CAAC,MAAM,CAAC,EAAC,OAAO,EAAE,iBAAO,CAAC,aAAa,CAAC,OAAO,CAAC,EAAC,CAAC,CAAA;IACpE,CAAC;CACJ;AAnBD,0BAmBC;AAjBG;IADC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,+BAAa,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,IAAA,SAAM,GAAE,EAAE,CAAC;mCACrD;AAGX;IADC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,+BAAa,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;qCAC9B;AAGlB;IADC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,+BAAa,EAAE,OAAO,EAAE,GAAG,EAAC,CAAC;4CACtB;AAGzB;IADC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,IAAI,8BAAY,CAAC,+BAAa,CAAC,EAAC,CAAC;+CACrB;AAG9B;IADC,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,iBAAO,EAAC,CAAC;wCACgB"}
|
package/esm/dist/src/Version.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
// Use @field({decoder: any, ...NextVersion)} in your code.
|
|
5
5
|
//
|
|
6
6
|
// -------------------------------------------------------------
|
|
7
|
-
export const Version =
|
|
7
|
+
export const Version = 323;
|
|
8
8
|
/**
|
|
9
9
|
* Use this in development when making changes to fields.
|
|
10
10
|
* On release, the version will get bumped and the usages of NextVersion will be replaced by that version.
|
|
@@ -3,6 +3,8 @@ import { Address } from "./Address";
|
|
|
3
3
|
import { Country } from './CountryDecoder';
|
|
4
4
|
export declare class Premise extends AutoEncoder {
|
|
5
5
|
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
6
8
|
premiseTypeIds: string[];
|
|
7
9
|
address: Address;
|
|
8
10
|
static createDefault(country?: Country): Premise;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Premise.d.ts","sourceRoot":"","sources":["../../../../src/addresses/Premise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAwB,MAAM,6BAA6B,CAAC;AAE9F,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,qBAAa,OAAQ,SAAQ,WAAW;IAEpC,EAAE,EAAE,MAAM,CAAC;IAGX,cAAc,EAAE,MAAM,EAAE,CAAM;IAG9B,OAAO,EAAE,OAAO,CAA2B;IAE3C,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO;CAGnD"}
|
|
1
|
+
{"version":3,"file":"Premise.d.ts","sourceRoot":"","sources":["../../../../src/addresses/Premise.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,WAAW,EAAwB,MAAM,6BAA6B,CAAC;AAE9F,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,qBAAa,OAAQ,SAAQ,WAAW;IAEpC,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAM;IAGlB,WAAW,EAAE,MAAM,CAAM;IAGzB,cAAc,EAAE,MAAM,EAAE,CAAM;IAG9B,OAAO,EAAE,OAAO,CAA2B;IAE3C,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO;CAGnD"}
|
|
@@ -5,6 +5,8 @@ import { Address } from "./Address";
|
|
|
5
5
|
export class Premise extends AutoEncoder {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
|
+
this.name = '';
|
|
9
|
+
this.description = '';
|
|
8
10
|
this.premiseTypeIds = [];
|
|
9
11
|
this.address = Address.createDefault();
|
|
10
12
|
}
|
|
@@ -15,6 +17,12 @@ export class Premise extends AutoEncoder {
|
|
|
15
17
|
__decorate([
|
|
16
18
|
field({ decoder: StringDecoder, defaultValue: () => uuidv4() })
|
|
17
19
|
], Premise.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
field({ decoder: StringDecoder, version: 323 })
|
|
22
|
+
], Premise.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
field({ decoder: StringDecoder, version: 323 })
|
|
25
|
+
], Premise.prototype, "description", void 0);
|
|
18
26
|
__decorate([
|
|
19
27
|
field({ decoder: new ArrayDecoder(StringDecoder) })
|
|
20
28
|
], Premise.prototype, "premiseTypeIds", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Premise.js","sourceRoot":"","sources":["../../../../src/addresses/Premise.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QAKI,mBAAc,GAAa,EAAE,CAAC;QAG9B,YAAO,GAAY,OAAO,CAAC,aAAa,EAAE,CAAC;IAK/C,CAAC;IAHG,MAAM,CAAC,aAAa,CAAC,OAAiB;QAClC,OAAO,OAAO,CAAC,MAAM,CAAC,EAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,EAAC,CAAC,CAAA;IACpE,CAAC;CACJ;
|
|
1
|
+
{"version":3,"file":"Premise.js","sourceRoot":"","sources":["../../../../src/addresses/Premise.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAC9F,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QAKI,SAAI,GAAW,EAAE,CAAC;QAGlB,gBAAW,GAAW,EAAE,CAAC;QAGzB,mBAAc,GAAa,EAAE,CAAC;QAG9B,YAAO,GAAY,OAAO,CAAC,aAAa,EAAE,CAAC;IAK/C,CAAC;IAHG,MAAM,CAAC,aAAa,CAAC,OAAiB;QAClC,OAAO,OAAO,CAAC,MAAM,CAAC,EAAC,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,OAAO,CAAC,EAAC,CAAC,CAAA;IACpE,CAAC;CACJ;AAjBG;IADC,KAAK,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC;mCACrD;AAGX;IADC,KAAK,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;qCAC9B;AAGlB;IADC,KAAK,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,GAAG,EAAC,CAAC;4CACtB;AAGzB;IADC,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,YAAY,CAAC,aAAa,CAAC,EAAC,CAAC;+CACrB;AAG9B;IADC,KAAK,CAAC,EAAE,OAAO,EAAE,OAAO,EAAC,CAAC;wCACgB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stamhoofd/structures",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./esm/dist/index.js",
|
|
6
6
|
"types": "./esm/dist/index.d.ts",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@simonbackx/simple-errors": "^1.4",
|
|
31
31
|
"uuid": "^8.3.2"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "e5b597cd9e149990b2eefb31d61480f4c0333b35"
|
|
34
34
|
}
|