@merchi/sdk 1.42.27 → 1.42.29

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,5 +1,6 @@
1
1
  export declare enum ShipmentService {
2
2
  SENDLE = 1,
3
3
  AUSTRALIA_POST = 2,
4
- STARTRACK = 3
4
+ STARTRACK = 3,
5
+ DHL_EXPRESS = 4
5
6
  }
@@ -3,4 +3,5 @@ export var ShipmentService;
3
3
  ShipmentService[ShipmentService["SENDLE"] = 1] = "SENDLE";
4
4
  ShipmentService[ShipmentService["AUSTRALIA_POST"] = 2] = "AUSTRALIA_POST";
5
5
  ShipmentService[ShipmentService["STARTRACK"] = 3] = "STARTRACK";
6
+ ShipmentService[ShipmentService["DHL_EXPRESS"] = 4] = "DHL_EXPRESS";
6
7
  })(ShipmentService || (ShipmentService = {}));
@@ -2,3 +2,6 @@ import { ShipmentService } from './shipment_services.js';
2
2
  test('dhl exists', function () {
3
3
  expect(ShipmentService.SENDLE).toBe(1);
4
4
  });
5
+ test('dhl express service id', function () {
6
+ expect(ShipmentService.DHL_EXPRESS).toBe(4);
7
+ });
@@ -56,6 +56,7 @@ export declare class Company extends Entity {
56
56
  startrackSandbox?: boolean;
57
57
  dhlApiKey?: string;
58
58
  dhlApiSecret?: string;
59
+ dhlAccountNumber?: string;
59
60
  dhlTrackingSandbox?: boolean;
60
61
  dhlTrackingExpress?: boolean;
61
62
  fedexApiKey?: string;
@@ -212,6 +212,10 @@ var Company = /** @class */ (function (_super) {
212
212
  Company.property({ type: String }),
213
213
  __metadata("design:type", String)
214
214
  ], Company.prototype, "dhlApiSecret", void 0);
215
+ __decorate([
216
+ Company.property({ type: String }),
217
+ __metadata("design:type", String)
218
+ ], Company.prototype, "dhlAccountNumber", void 0);
215
219
  __decorate([
216
220
  Company.property(),
217
221
  __metadata("design:type", Boolean)
@@ -16,6 +16,7 @@ export declare class ShipmentMethod extends Entity {
16
16
  pickUp?: boolean;
17
17
  company?: Company | null;
18
18
  companyDefault?: boolean;
19
+ position?: number;
19
20
  defaultCost?: number;
20
21
  currency?: string;
21
22
  buyCost?: number;
@@ -63,6 +63,10 @@ var ShipmentMethod = /** @class */ (function (_super) {
63
63
  ShipmentMethod.property(),
64
64
  __metadata("design:type", Boolean)
65
65
  ], ShipmentMethod.prototype, "companyDefault", void 0);
66
+ __decorate([
67
+ ShipmentMethod.property(),
68
+ __metadata("design:type", Number)
69
+ ], ShipmentMethod.prototype, "position", void 0);
66
70
  __decorate([
67
71
  ShipmentMethod.property(),
68
72
  __metadata("design:type", Number)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merchi/sdk",
3
- "version": "1.42.27",
3
+ "version": "1.42.29",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -3,3 +3,7 @@ import { ShipmentService } from './shipment_services.js';
3
3
  test('dhl exists', () => {
4
4
  expect(ShipmentService.SENDLE).toBe(1);
5
5
  });
6
+
7
+ test('dhl express service id', () => {
8
+ expect(ShipmentService.DHL_EXPRESS).toBe(4);
9
+ });
@@ -2,4 +2,5 @@ export enum ShipmentService {
2
2
  SENDLE = 1,
3
3
  AUSTRALIA_POST = 2,
4
4
  STARTRACK = 3,
5
+ DHL_EXPRESS = 4,
5
6
  }
@@ -126,6 +126,9 @@ export class Company extends Entity {
126
126
  @Company.property({type: String})
127
127
  public dhlApiSecret?: string;
128
128
 
129
+ @Company.property({type: String})
130
+ public dhlAccountNumber?: string;
131
+
129
132
  @Company.property()
130
133
  public dhlTrackingSandbox?: boolean;
131
134
 
@@ -32,6 +32,9 @@ export class ShipmentMethod extends Entity {
32
32
  @ShipmentMethod.property()
33
33
  public companyDefault?: boolean;
34
34
 
35
+ @ShipmentMethod.property()
36
+ public position?: number;
37
+
35
38
  @ShipmentMethod.property()
36
39
  public defaultCost?: number;
37
40