merchi_sdk_ts 1.31.0 → 1.32.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/entities/company.js
CHANGED
|
@@ -496,6 +496,14 @@ var Company = /** @class */ (function (_super) {
|
|
|
496
496
|
Company.property({ arrayType: 'Address' }),
|
|
497
497
|
__metadata("design:type", Array)
|
|
498
498
|
], Company.prototype, "addresses", void 0);
|
|
499
|
+
__decorate([
|
|
500
|
+
Company.property({ type: 'Company' }),
|
|
501
|
+
__metadata("design:type", Object)
|
|
502
|
+
], Company.prototype, "parentCompany", void 0);
|
|
503
|
+
__decorate([
|
|
504
|
+
Company.property({ arrayType: 'Company' }),
|
|
505
|
+
__metadata("design:type", Array)
|
|
506
|
+
], Company.prototype, "childCompanies", void 0);
|
|
499
507
|
return Company;
|
|
500
508
|
}(Entity));
|
|
501
509
|
export { Company };
|
package/package.json
CHANGED
package/src/entities/company.ts
CHANGED
|
@@ -339,6 +339,12 @@ export class Company extends Entity {
|
|
|
339
339
|
@Company.property({arrayType: 'Address'})
|
|
340
340
|
public addresses?: Address[];
|
|
341
341
|
|
|
342
|
+
@Company.property({type: 'Company'})
|
|
343
|
+
public parentCompany?: Company | null;
|
|
344
|
+
|
|
345
|
+
@Company.property({arrayType: 'Company'})
|
|
346
|
+
public childCompanies?: Company[];
|
|
347
|
+
|
|
342
348
|
private getCompanyId = () => {
|
|
343
349
|
if (this.id === undefined || this.id === null) {
|
|
344
350
|
throw new Error('id is undefined, did you forget to set it?');
|