@merchi/sdk 1.42.9 → 1.42.10

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.
@@ -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.10",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "repository": {
@@ -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