merchi_sdk_ts 1.6.15 → 1.6.16

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.
@@ -22,7 +22,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
22
22
  var __metadata = (this && this.__metadata) || function (k, v) {
23
23
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
24
24
  };
25
- import { CompanyInvoiceSettings } from './company_invoice_settings.js';
26
25
  import { Entity } from '../entity.js';
27
26
  import { MerchiFile } from './file.js';
28
27
  import { User } from './user.js';
@@ -368,7 +367,7 @@ var Company = /** @class */ (function (_super) {
368
367
  __metadata("design:type", Array)
369
368
  ], Company.prototype, "subscriptionInvoices", void 0);
370
369
  __decorate([
371
- Company.property({ type: CompanyInvoiceSettings }),
370
+ Company.property({ type: 'CompanyInvoiceSettings' }),
372
371
  __metadata("design:type", Object)
373
372
  ], Company.prototype, "invoiceSettings", void 0);
374
373
  __decorate([
@@ -23,9 +23,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
23
23
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
24
24
  };
25
25
  import { Entity } from '../entity.js';
26
- import { Company } from './company.js';
27
- import { InvoiceTemplate } from './invoice_template.js';
28
- import { CompanyInvoiceSettingsVersion } from './company_invoice_settings_version.js';
29
26
  var CompanyInvoiceSettings = /** @class */ (function (_super) {
30
27
  __extends(CompanyInvoiceSettings, _super);
31
28
  function CompanyInvoiceSettings() {
@@ -39,11 +36,11 @@ var CompanyInvoiceSettings = /** @class */ (function (_super) {
39
36
  __metadata("design:type", Number)
40
37
  ], CompanyInvoiceSettings.prototype, "id", void 0);
41
38
  __decorate([
42
- CompanyInvoiceSettings.property({ type: Company }),
39
+ CompanyInvoiceSettings.property({ type: 'Company' }),
43
40
  __metadata("design:type", Object)
44
41
  ], CompanyInvoiceSettings.prototype, "company", void 0);
45
42
  __decorate([
46
- CompanyInvoiceSettings.property({ type: InvoiceTemplate }),
43
+ CompanyInvoiceSettings.property({ type: 'InvoiceTemplate' }),
47
44
  __metadata("design:type", Object)
48
45
  ], CompanyInvoiceSettings.prototype, "selectedTemplate", void 0);
49
46
  __decorate([
@@ -71,7 +68,7 @@ var CompanyInvoiceSettings = /** @class */ (function (_super) {
71
68
  __metadata("design:type", String)
72
69
  ], CompanyInvoiceSettings.prototype, "draftCustomCss", void 0);
73
70
  __decorate([
74
- CompanyInvoiceSettings.property({ type: CompanyInvoiceSettingsVersion }),
71
+ CompanyInvoiceSettings.property({ type: 'CompanyInvoiceSettingsVersion' }),
75
72
  __metadata("design:type", Object)
76
73
  ], CompanyInvoiceSettings.prototype, "publishedVersion", void 0);
77
74
  __decorate([
@@ -23,8 +23,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
23
23
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
24
24
  };
25
25
  import { Entity } from '../entity.js';
26
- import { CompanyInvoiceSettings } from './company_invoice_settings.js';
27
- import { InvoiceTemplate } from './invoice_template.js';
28
26
  var CompanyInvoiceSettingsVersion = /** @class */ (function (_super) {
29
27
  __extends(CompanyInvoiceSettingsVersion, _super);
30
28
  function CompanyInvoiceSettingsVersion() {
@@ -38,11 +36,11 @@ var CompanyInvoiceSettingsVersion = /** @class */ (function (_super) {
38
36
  __metadata("design:type", Number)
39
37
  ], CompanyInvoiceSettingsVersion.prototype, "id", void 0);
40
38
  __decorate([
41
- CompanyInvoiceSettingsVersion.property({ type: CompanyInvoiceSettings }),
39
+ CompanyInvoiceSettingsVersion.property({ type: 'CompanyInvoiceSettings' }),
42
40
  __metadata("design:type", Object)
43
41
  ], CompanyInvoiceSettingsVersion.prototype, "settings", void 0);
44
42
  __decorate([
45
- CompanyInvoiceSettingsVersion.property({ type: InvoiceTemplate }),
43
+ CompanyInvoiceSettingsVersion.property({ type: 'InvoiceTemplate' }),
46
44
  __metadata("design:type", Object)
47
45
  ], CompanyInvoiceSettingsVersion.prototype, "template", void 0);
48
46
  __decorate([
@@ -24,13 +24,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
24
24
  };
25
25
  import { Address } from './address.js';
26
26
  import { Cart } from './cart.js';
27
- import { Company } from './company.js';
28
- import { CompanyInvoiceSettingsVersion } from './company_invoice_settings_version.js';
29
27
  import { Domain } from './domain.js';
30
28
  import { EmailAddress } from './email_address.js';
31
29
  import { Entity } from '../entity.js';
32
30
  import { MerchiFile } from './file.js';
33
- import { InvoiceTemplateVersion } from './invoice_template_version.js';
34
31
  import { PhoneNumber } from './phone_number.js';
35
32
  import { User } from './user.js';
36
33
  var Invoice = /** @class */ (function (_super) {
@@ -182,11 +179,11 @@ var Invoice = /** @class */ (function (_super) {
182
179
  __metadata("design:type", User)
183
180
  ], Invoice.prototype, "client", void 0);
184
181
  __decorate([
185
- Invoice.property({ type: Company }),
182
+ Invoice.property({ type: 'Company' }),
186
183
  __metadata("design:type", Object)
187
184
  ], Invoice.prototype, "clientCompany", void 0);
188
185
  __decorate([
189
- Company.property({ arrayType: 'Company' }),
186
+ Invoice.property({ arrayType: 'Company' }),
190
187
  __metadata("design:type", Array)
191
188
  ], Invoice.prototype, "subscriptionCompanies", void 0);
192
189
  __decorate([
@@ -210,11 +207,11 @@ var Invoice = /** @class */ (function (_super) {
210
207
  __metadata("design:type", Object)
211
208
  ], Invoice.prototype, "receipt", void 0);
212
209
  __decorate([
213
- Invoice.property({ type: InvoiceTemplateVersion }),
210
+ Invoice.property({ type: 'InvoiceTemplateVersion' }),
214
211
  __metadata("design:type", Object)
215
212
  ], Invoice.prototype, "templateVersion", void 0);
216
213
  __decorate([
217
- Invoice.property({ type: CompanyInvoiceSettingsVersion }),
214
+ Invoice.property({ type: 'CompanyInvoiceSettingsVersion' }),
218
215
  __metadata("design:type", Object)
219
216
  ], Invoice.prototype, "settingsVersion", void 0);
220
217
  __decorate([
@@ -23,7 +23,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
23
23
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
24
24
  };
25
25
  import { Entity } from '../entity.js';
26
- import { InvoiceTemplateVersion } from './invoice_template_version.js';
27
26
  var InvoiceTemplate = /** @class */ (function (_super) {
28
27
  __extends(InvoiceTemplate, _super);
29
28
  function InvoiceTemplate() {
@@ -49,7 +48,7 @@ var InvoiceTemplate = /** @class */ (function (_super) {
49
48
  __metadata("design:type", String)
50
49
  ], InvoiceTemplate.prototype, "baseCss", void 0);
51
50
  __decorate([
52
- InvoiceTemplate.property({ type: InvoiceTemplateVersion }),
51
+ InvoiceTemplate.property({ type: 'InvoiceTemplateVersion' }),
53
52
  __metadata("design:type", Object)
54
53
  ], InvoiceTemplate.prototype, "activeVersion", void 0);
55
54
  __decorate([
@@ -23,7 +23,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
23
23
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
24
24
  };
25
25
  import { Entity } from '../entity.js';
26
- import { InvoiceTemplate } from './invoice_template.js';
27
26
  var InvoiceTemplateVersion = /** @class */ (function (_super) {
28
27
  __extends(InvoiceTemplateVersion, _super);
29
28
  function InvoiceTemplateVersion() {
@@ -37,7 +36,7 @@ var InvoiceTemplateVersion = /** @class */ (function (_super) {
37
36
  __metadata("design:type", Number)
38
37
  ], InvoiceTemplateVersion.prototype, "id", void 0);
39
38
  __decorate([
40
- InvoiceTemplateVersion.property({ type: InvoiceTemplate }),
39
+ InvoiceTemplateVersion.property({ type: 'InvoiceTemplate' }),
41
40
  __metadata("design:type", Object)
42
41
  ], InvoiceTemplateVersion.prototype, "template", void 0);
43
42
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_ts",
3
- "version": "1.6.15",
3
+ "version": "1.6.16",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:merchisdk/merchi_sdk_ts.git",
@@ -275,7 +275,7 @@ export class Company extends Entity {
275
275
  @Company.property({arrayType: 'Invoice'})
276
276
  public subscriptionInvoices?: Invoice[];
277
277
 
278
- @Company.property({type: CompanyInvoiceSettings})
278
+ @Company.property({type: 'CompanyInvoiceSettings'})
279
279
  public invoiceSettings?: CompanyInvoiceSettings | null;
280
280
 
281
281
  @Company.property({arrayType: 'Address'})
@@ -11,10 +11,10 @@ export class CompanyInvoiceSettings extends Entity {
11
11
  @CompanyInvoiceSettings.property()
12
12
  public id?: number;
13
13
 
14
- @CompanyInvoiceSettings.property({type: Company})
14
+ @CompanyInvoiceSettings.property({type: 'Company'})
15
15
  public company?: Company | null;
16
16
 
17
- @CompanyInvoiceSettings.property({type: InvoiceTemplate})
17
+ @CompanyInvoiceSettings.property({type: 'InvoiceTemplate'})
18
18
  public selectedTemplate?: InvoiceTemplate | null;
19
19
 
20
20
  @CompanyInvoiceSettings.property()
@@ -35,7 +35,7 @@ export class CompanyInvoiceSettings extends Entity {
35
35
  @CompanyInvoiceSettings.property()
36
36
  public draftCustomCss?: string;
37
37
 
38
- @CompanyInvoiceSettings.property({type: CompanyInvoiceSettingsVersion})
38
+ @CompanyInvoiceSettings.property({type: 'CompanyInvoiceSettingsVersion'})
39
39
  public publishedVersion?: CompanyInvoiceSettingsVersion | null;
40
40
 
41
41
  @CompanyInvoiceSettings.property({arrayType: 'CompanyInvoiceSettingsVersion'})
@@ -10,10 +10,10 @@ export class CompanyInvoiceSettingsVersion extends Entity {
10
10
  @CompanyInvoiceSettingsVersion.property()
11
11
  public id?: number;
12
12
 
13
- @CompanyInvoiceSettingsVersion.property({type: CompanyInvoiceSettings})
13
+ @CompanyInvoiceSettingsVersion.property({type: 'CompanyInvoiceSettings'})
14
14
  public settings?: CompanyInvoiceSettings | null;
15
15
 
16
- @CompanyInvoiceSettingsVersion.property({type: InvoiceTemplate})
16
+ @CompanyInvoiceSettingsVersion.property({type: 'InvoiceTemplate'})
17
17
  public template?: InvoiceTemplate | null;
18
18
 
19
19
  @CompanyInvoiceSettingsVersion.property()
@@ -129,10 +129,10 @@ export class Invoice extends Entity {
129
129
  @Invoice.property()
130
130
  public client?: User;
131
131
 
132
- @Invoice.property({type: Company})
132
+ @Invoice.property({type: 'Company'})
133
133
  public clientCompany?: Company | null;
134
134
 
135
- @Company.property({arrayType: 'Company'})
135
+ @Invoice.property({arrayType: 'Company'})
136
136
  public subscriptionCompanies?: Company[];
137
137
 
138
138
  @Invoice.property({type: Address})
@@ -150,10 +150,10 @@ export class Invoice extends Entity {
150
150
  @Invoice.property({type: MerchiFile})
151
151
  public receipt?: MerchiFile | null;
152
152
 
153
- @Invoice.property({type: InvoiceTemplateVersion})
153
+ @Invoice.property({type: 'InvoiceTemplateVersion'})
154
154
  public templateVersion?: InvoiceTemplateVersion | null;
155
155
 
156
- @Invoice.property({type: CompanyInvoiceSettingsVersion})
156
+ @Invoice.property({type: 'CompanyInvoiceSettingsVersion'})
157
157
  public settingsVersion?: CompanyInvoiceSettingsVersion | null;
158
158
 
159
159
  @Invoice.property({type: PhoneNumber})
@@ -18,7 +18,7 @@ export class InvoiceTemplate extends Entity {
18
18
  @InvoiceTemplate.property()
19
19
  public baseCss?: string;
20
20
 
21
- @InvoiceTemplate.property({type: InvoiceTemplateVersion})
21
+ @InvoiceTemplate.property({type: 'InvoiceTemplateVersion'})
22
22
  public activeVersion?: InvoiceTemplateVersion | null;
23
23
 
24
24
  @InvoiceTemplate.property({arrayType: 'InvoiceTemplateVersion'})
@@ -9,7 +9,7 @@ export class InvoiceTemplateVersion extends Entity {
9
9
  @InvoiceTemplateVersion.property()
10
10
  public id?: number;
11
11
 
12
- @InvoiceTemplateVersion.property({type: InvoiceTemplate})
12
+ @InvoiceTemplateVersion.property({type: 'InvoiceTemplate'})
13
13
  public template?: InvoiceTemplate | null;
14
14
 
15
15
  @InvoiceTemplateVersion.property()