@merchi/sdk 1.42.9 → 1.42.11

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.
@@ -88,6 +88,10 @@ var Company = /** @class */ (function (_super) {
88
88
  Company.property({ type: Date }),
89
89
  __metadata("design:type", Object)
90
90
  ], Company.prototype, "archived", void 0);
91
+ __decorate([
92
+ Company.property({ type: Date }),
93
+ __metadata("design:type", Object)
94
+ ], Company.prototype, "created", void 0);
91
95
  __decorate([
92
96
  Company.property(),
93
97
  __metadata("design:type", Number)
@@ -226,6 +226,10 @@ var Domain = /** @class */ (function (_super) {
226
226
  Domain.property({ type: Date }),
227
227
  __metadata("design:type", Object)
228
228
  ], Domain.prototype, "archived", void 0);
229
+ __decorate([
230
+ Domain.property({ type: Date }),
231
+ __metadata("design:type", Object)
232
+ ], Domain.prototype, "created", void 0);
229
233
  __decorate([
230
234
  Domain.property(),
231
235
  __metadata("design:type", Number)
@@ -422,6 +422,10 @@ var Job = /** @class */ (function (_super) {
422
422
  Job.property({ type: String }),
423
423
  __metadata("design:type", Object)
424
424
  ], Job.prototype, "sourceReferrer", void 0);
425
+ __decorate([
426
+ Job.property({ type: String }),
427
+ __metadata("design:type", Object)
428
+ ], Job.prototype, "checkoutType", void 0);
425
429
  __decorate([
426
430
  Job.property({ type: User }),
427
431
  __metadata("design:type", Object)
@@ -23,6 +23,7 @@ test('preserves source attribution', function () {
23
23
  utmMedium: 'cpc',
24
24
  utmCampaign: 'wristbands',
25
25
  sourceClickId: 'EAIa',
26
+ checkoutType: 'buy_now',
26
27
  });
27
28
  expect(job.toJson()).toMatchObject({
28
29
  sourceChannel: 'google_ads',
@@ -30,6 +31,7 @@ test('preserves source attribution', function () {
30
31
  utmMedium: 'cpc',
31
32
  utmCampaign: 'wristbands',
32
33
  sourceClickId: 'EAIa',
34
+ checkoutType: 'buy_now',
33
35
  });
34
36
  });
35
37
  test('Job deadline serialised to milliseconds in form data', function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merchi/sdk",
3
- "version": "1.42.9",
3
+ "version": "1.42.11",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "repository": {
@@ -33,6 +33,9 @@ export class Company extends Entity {
33
33
  @Company.property({type: Date})
34
34
  public archived?: Date | null;
35
35
 
36
+ @Company.property({type: Date})
37
+ public created?: Date | null;
38
+
36
39
  @Company.property()
37
40
  public id?: number;
38
41
 
@@ -439,6 +439,9 @@ export class Domain extends Entity {
439
439
  @Domain.property({type: Date})
440
440
  public archived?: Date | null;
441
441
 
442
+ @Domain.property({type: Date})
443
+ public created?: Date | null;
444
+
442
445
  @Domain.property()
443
446
  public id?: number;
444
447
 
@@ -27,6 +27,7 @@ test('preserves source attribution', () => {
27
27
  utmMedium: 'cpc',
28
28
  utmCampaign: 'wristbands',
29
29
  sourceClickId: 'EAIa',
30
+ checkoutType: 'buy_now',
30
31
  });
31
32
  expect(job.toJson()).toMatchObject({
32
33
  sourceChannel: 'google_ads',
@@ -34,6 +35,7 @@ test('preserves source attribution', () => {
34
35
  utmMedium: 'cpc',
35
36
  utmCampaign: 'wristbands',
36
37
  sourceClickId: 'EAIa',
38
+ checkoutType: 'buy_now',
37
39
  });
38
40
  });
39
41
 
@@ -285,6 +285,9 @@ export class Job extends Entity {
285
285
  @Job.property({type: String})
286
286
  public sourceReferrer?: string | null;
287
287
 
288
+ @Job.property({type: String})
289
+ public checkoutType?: string | null;
290
+
288
291
  @Job.property({type: User})
289
292
  public manager?: User | null;
290
293