@spytecgps/nova-orm 1.0.85 → 1.0.87
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.
- package/dist/entities/asinPromotion.d.ts +4 -0
- package/dist/entities/asinPromotion.js +27 -0
- package/dist/entities/asinPromotion.js.map +1 -0
- package/dist/entities/client.d.ts +0 -2
- package/dist/entities/client.js +0 -6
- package/dist/entities/client.js.map +1 -1
- package/dist/entities/device.js +1 -0
- package/dist/entities/device.js.map +1 -1
- package/dist/entities/devicePromotion.d.ts +0 -13
- package/dist/entities/devicePromotion.js +1 -79
- package/dist/entities/devicePromotion.js.map +1 -1
- package/dist/entities/deviceType.d.ts +0 -2
- package/dist/entities/deviceType.js +0 -6
- package/dist/entities/deviceType.js.map +1 -1
- package/dist/entities/deviceTypePromotion.d.ts +4 -0
- package/dist/entities/deviceTypePromotion.js +27 -0
- package/dist/entities/deviceTypePromotion.js.map +1 -0
- package/dist/entities/marketplacePromotion.d.ts +4 -0
- package/dist/entities/marketplacePromotion.js +27 -0
- package/dist/entities/marketplacePromotion.js.map +1 -0
- package/dist/entities/notificationRecipient.js +1 -0
- package/dist/entities/notificationRecipient.js.map +1 -1
- package/dist/entities/promotion.d.ts +2 -10
- package/dist/entities/promotion.js +17 -43
- package/dist/entities/promotion.js.map +1 -1
- package/dist/entities/promotionHistory.d.ts +12 -0
- package/dist/entities/promotionHistory.js +89 -0
- package/dist/entities/promotionHistory.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/repositories/tasks/completeTask.js +2 -0
- package/dist/repositories/tasks/completeTask.js.map +1 -1
- package/dist/types/tasks.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Column, Entity } from 'typeorm';
|
|
11
|
+
let PromotionHistory = class PromotionHistory {
|
|
12
|
+
imei;
|
|
13
|
+
promotionId;
|
|
14
|
+
clientId;
|
|
15
|
+
marketPlaceId;
|
|
16
|
+
asin;
|
|
17
|
+
promotionType;
|
|
18
|
+
promotionDiscount;
|
|
19
|
+
promotionDiscountBillingCycles;
|
|
20
|
+
promotionFreeServiceMonths;
|
|
21
|
+
appliedAt;
|
|
22
|
+
};
|
|
23
|
+
__decorate([
|
|
24
|
+
Column('varchar', { name: 'imei', length: 15, primary: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PromotionHistory.prototype, "imei", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
Column('bigint', { name: 'promotionId', primary: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], PromotionHistory.prototype, "promotionId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Column('int', { name: 'clientId', nullable: true }),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], PromotionHistory.prototype, "clientId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column('varchar', {
|
|
37
|
+
name: 'marketPlaceId',
|
|
38
|
+
length: 25,
|
|
39
|
+
comment: 'The marketplace of the device at the time the promotion was applied',
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PromotionHistory.prototype, "marketPlaceId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column('varchar', { name: 'asin', nullable: true, length: 25 }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], PromotionHistory.prototype, "asin", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column('varchar', {
|
|
49
|
+
name: 'promotionType',
|
|
50
|
+
length: 25,
|
|
51
|
+
comment: 'The type of promotion: freeService or discount.',
|
|
52
|
+
}),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], PromotionHistory.prototype, "promotionType", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Column('decimal', {
|
|
57
|
+
name: 'promotionDiscount',
|
|
58
|
+
nullable: true,
|
|
59
|
+
precision: 19,
|
|
60
|
+
scale: 4,
|
|
61
|
+
comment: 'The discount value if the type is discount offered in US Dollars.',
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], PromotionHistory.prototype, "promotionDiscount", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
Column('int', {
|
|
67
|
+
name: 'promotionDiscountBillingCycles',
|
|
68
|
+
nullable: true,
|
|
69
|
+
comment: 'The number of billing cycles that the discount will be applied. Required when type is discount',
|
|
70
|
+
}),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], PromotionHistory.prototype, "promotionDiscountBillingCycles", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
Column('int', {
|
|
75
|
+
name: 'promotionFreeServiceMonths',
|
|
76
|
+
nullable: true,
|
|
77
|
+
comment: 'The number of months that the service will be free. Required when type is freeService',
|
|
78
|
+
}),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], PromotionHistory.prototype, "promotionFreeServiceMonths", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
Column('datetime', { name: 'appliedAt', comment: 'The date that the promotion was applied' }),
|
|
83
|
+
__metadata("design:type", Date)
|
|
84
|
+
], PromotionHistory.prototype, "appliedAt", void 0);
|
|
85
|
+
PromotionHistory = __decorate([
|
|
86
|
+
Entity('promotionHistory', { schema: 'nova' })
|
|
87
|
+
], PromotionHistory);
|
|
88
|
+
export { PromotionHistory };
|
|
89
|
+
//# sourceMappingURL=promotionHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"promotionHistory.js","sourceRoot":"","sources":["../../src/entities/promotionHistory.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAGjC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAE3B,IAAI,CAAQ;IAGZ,WAAW,CAAQ;IAGnB,QAAQ,CAAQ;IAOhB,aAAa,CAAQ;IAGrB,IAAI,CAAQ;IAOZ,aAAa,CAAQ;IASrB,iBAAiB,CAAQ;IAQzB,8BAA8B,CAAQ;IAQtC,0BAA0B,CAAQ;IAGlC,SAAS,CAAM;CAChB,CAAA;AArDC;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;8CACnD;AAEZ;IAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;qDACtC;AAEnB;IAAC,MAAM,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACpC;AAEhB;IAAC,MAAM,CAAC,SAAS,EAAE;QACjB,IAAI,EAAE,eAAe;QACrB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,qEAAqE;KAC/E,CAAC;;uDACmB;AAErB;IAAC,MAAM,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;;8CACpD;AAEZ;IAAC,MAAM,CAAC,SAAS,EAAE;QACjB,IAAI,EAAE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