merchi_sdk_ts 1.0.18 → 1.0.19

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.
@@ -1,4 +1,6 @@
1
1
  export var DiscountType;
2
2
  (function (DiscountType) {
3
3
  DiscountType[DiscountType["VOLUMETRIC"] = 0] = "VOLUMETRIC";
4
+ DiscountType[DiscountType["CODE"] = 1] = "CODE";
5
+ DiscountType[DiscountType["FREE_SHIPPING"] = 2] = "FREE_SHIPPING";
4
6
  })(DiscountType || (DiscountType = {}));
@@ -102,6 +102,10 @@ var Assignment = /** @class */ (function (_super) {
102
102
  Assignment.property({ type: Quote }),
103
103
  __metadata("design:type", Object)
104
104
  ], Assignment.prototype, "quote", void 0);
105
+ __decorate([
106
+ Assignment.property(),
107
+ __metadata("design:type", Number)
108
+ ], Assignment.prototype, "quoteTotalCost", void 0);
105
109
  __decorate([
106
110
  Assignment.property({ arrayType: 'ProductionComment' }),
107
111
  __metadata("design:type", Array)
@@ -35,10 +35,26 @@ var DiscountGroup = /** @class */ (function (_super) {
35
35
  DiscountGroup.property({ type: Date }),
36
36
  __metadata("design:type", Object)
37
37
  ], DiscountGroup.prototype, "archived", void 0);
38
+ __decorate([
39
+ DiscountGroup.property({ type: Date }),
40
+ __metadata("design:type", Object)
41
+ ], DiscountGroup.prototype, "created", void 0);
42
+ __decorate([
43
+ DiscountGroup.property(),
44
+ __metadata("design:type", Object)
45
+ ], DiscountGroup.prototype, "domain", void 0);
38
46
  __decorate([
39
47
  DiscountGroup.property(),
40
48
  __metadata("design:type", Number)
41
49
  ], DiscountGroup.prototype, "id", void 0);
50
+ __decorate([
51
+ DiscountGroup.property({ type: Date }),
52
+ __metadata("design:type", Object)
53
+ ], DiscountGroup.prototype, "dateStart", void 0);
54
+ __decorate([
55
+ DiscountGroup.property({ type: Date }),
56
+ __metadata("design:type", Object)
57
+ ], DiscountGroup.prototype, "dateEnd", void 0);
42
58
  __decorate([
43
59
  DiscountGroup.property(),
44
60
  __metadata("design:type", Number)
@@ -442,6 +442,10 @@ var Job = /** @class */ (function (_super) {
442
442
  Job.property(),
443
443
  __metadata("design:type", Job)
444
444
  ], Job.prototype, "supplyJob", void 0);
445
+ __decorate([
446
+ Job.property(),
447
+ __metadata("design:type", Number)
448
+ ], Job.prototype, "supplyQuoteTotalCost", void 0);
445
449
  __decorate([
446
450
  Job.property(),
447
451
  __metadata("design:type", Boolean)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_ts",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:merchisdk/merchi_sdk_ts.git",
@@ -1,3 +1,5 @@
1
1
  export enum DiscountType {
2
2
  VOLUMETRIC = 0,
3
+ CODE = 1,
4
+ FREE_SHIPPING = 2,
3
5
  }
@@ -1,4 +1,5 @@
1
1
  import { Entity } from '../entity.js';
2
+ import { Domain } from './domain.js';
2
3
  import { Product } from './product.js';
3
4
  import { Discount } from './discount.js';
4
5
 
@@ -10,9 +11,21 @@ export class DiscountGroup extends Entity {
10
11
  @DiscountGroup.property({type: Date})
11
12
  public archived?: Date | null;
12
13
 
14
+ @DiscountGroup.property({type: Date})
15
+ public created?: Date | null;
16
+
17
+ @DiscountGroup.property()
18
+ public domain?: Domain | null;
19
+
13
20
  @DiscountGroup.property()
14
21
  public id?: number;
15
22
 
23
+ @DiscountGroup.property({type: Date})
24
+ public dateStart?: Date | null;
25
+
26
+ @DiscountGroup.property({type: Date})
27
+ public dateEnd?: Date | null;
28
+
16
29
  @DiscountGroup.property()
17
30
  public discountType?: number;
18
31