cecon-interfaces 1.1.68 → 1.1.74

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. package/dist/app/entities/app.entity.d.ts +6 -6
  2. package/dist/app/entities/app.entity.js +1 -1
  3. package/dist/app/interfaces/i-app.d.ts +6 -6
  4. package/dist/billing/entities/billing-payment.entity.d.ts +19 -0
  5. package/dist/billing/entities/billing-payment.entity.js +33 -0
  6. package/dist/billing/entities/billing-total.entity.d.ts +10 -0
  7. package/dist/billing/entities/billing-total.entity.js +25 -0
  8. package/dist/billing/entities/billing.entity.d.ts +14 -0
  9. package/dist/billing/entities/billing.entity.js +29 -0
  10. package/dist/billing/entities/index.d.ts +3 -0
  11. package/dist/billing/entities/index.js +9 -0
  12. package/dist/billing/enums/billing-status.enum.d.ts +6 -0
  13. package/dist/billing/enums/billing-status.enum.js +12 -0
  14. package/dist/billing/enums/index.d.ts +1 -0
  15. package/dist/billing/enums/index.js +5 -0
  16. package/dist/billing/index.d.ts +3 -0
  17. package/dist/billing/index.js +19 -0
  18. package/dist/billing/interfaces/i-billing-payment.d.ts +17 -0
  19. package/dist/billing/interfaces/i-billing-payment.js +2 -0
  20. package/dist/billing/interfaces/i-billing-total.d.ts +8 -0
  21. package/dist/billing/interfaces/i-billing-total.js +2 -0
  22. package/dist/billing/interfaces/i-billing.d.ts +14 -0
  23. package/dist/billing/interfaces/i-billing.js +2 -0
  24. package/dist/billing/interfaces/index.d.ts +3 -0
  25. package/dist/billing/interfaces/index.js +2 -0
  26. package/dist/billing-order/entities/billing-order.entity.d.ts +6 -0
  27. package/dist/billing-order/entities/billing-order.entity.js +39 -0
  28. package/dist/billing-order/entities/index.d.ts +1 -0
  29. package/dist/billing-order/entities/index.js +5 -0
  30. package/dist/billing-order/index.d.ts +2 -0
  31. package/dist/billing-order/index.js +18 -0
  32. package/dist/billing-order/interfaces/i-billing-order.d.ts +4 -0
  33. package/dist/billing-order/interfaces/i-billing-order.js +2 -0
  34. package/dist/billing-order/interfaces/index.d.ts +1 -0
  35. package/dist/billing-order/interfaces/index.js +2 -0
  36. package/dist/customer/entities/customer.entity.d.ts +2 -1
  37. package/dist/customer/entities/customer.entity.js +1 -0
  38. package/dist/customer/enums/index.d.ts +1 -0
  39. package/dist/customer/enums/index.js +3 -1
  40. package/dist/customer/enums/type.enum.d.ts +4 -0
  41. package/dist/customer/enums/type.enum.js +8 -0
  42. package/dist/customer/interfaces/i-customer.d.ts +2 -1
  43. package/dist/customer-member/entities/index.d.ts +1 -0
  44. package/dist/customer-member/entities/index.js +5 -0
  45. package/dist/customer-member/entities/member.entity.d.ts +5 -0
  46. package/dist/customer-member/entities/member.entity.js +38 -0
  47. package/dist/customer-member/index.d.ts +2 -0
  48. package/dist/customer-member/index.js +18 -0
  49. package/dist/customer-member/interfaces/i-member.d.ts +3 -0
  50. package/dist/customer-member/interfaces/i-member.js +2 -0
  51. package/dist/customer-member/interfaces/index.d.ts +1 -0
  52. package/dist/customer-member/interfaces/index.js +2 -0
  53. package/dist/device/entities/device.entity.d.ts +2 -2
  54. package/dist/device/entities/device.entity.js +1 -1
  55. package/dist/device/interfaces/i-device.d.ts +2 -2
  56. package/dist/esm2022/app/entities/app.entity.mjs +3 -3
  57. package/dist/esm2022/app/interfaces/i-app.mjs +1 -1
  58. package/dist/esm2022/billing/entities/billing-payment.entity.mjs +29 -0
  59. package/dist/esm2022/billing/entities/billing-total.entity.mjs +21 -0
  60. package/dist/esm2022/billing/entities/billing.entity.mjs +25 -0
  61. package/dist/esm2022/billing/entities/index.mjs +4 -0
  62. package/dist/esm2022/billing/enums/billing-status.enum.mjs +10 -0
  63. package/dist/esm2022/billing/enums/index.mjs +2 -0
  64. package/dist/esm2022/billing/index.mjs +4 -0
  65. package/dist/esm2022/billing/interfaces/i-billing-payment.mjs +2 -0
  66. package/dist/esm2022/billing/interfaces/i-billing-total.mjs +2 -0
  67. package/dist/esm2022/billing/interfaces/i-billing.mjs +2 -0
  68. package/dist/esm2022/billing/interfaces/index.mjs +2 -0
  69. package/dist/esm2022/billing-order/entities/billing-order.entity.mjs +18 -0
  70. package/dist/esm2022/billing-order/entities/index.mjs +2 -0
  71. package/dist/esm2022/billing-order/index.mjs +3 -0
  72. package/dist/esm2022/billing-order/interfaces/i-billing-order.mjs +2 -0
  73. package/dist/esm2022/billing-order/interfaces/index.mjs +2 -0
  74. package/dist/esm2022/customer/entities/customer.entity.mjs +3 -2
  75. package/dist/esm2022/customer/enums/index.mjs +2 -1
  76. package/dist/esm2022/customer/enums/type.enum.mjs +6 -0
  77. package/dist/esm2022/customer/interfaces/i-customer.mjs +1 -1
  78. package/dist/esm2022/customer-member/entities/index.mjs +2 -0
  79. package/dist/esm2022/customer-member/entities/member.entity.mjs +17 -0
  80. package/dist/esm2022/customer-member/index.mjs +3 -0
  81. package/dist/esm2022/customer-member/interfaces/i-member.mjs +2 -0
  82. package/dist/esm2022/customer-member/interfaces/index.mjs +2 -0
  83. package/dist/esm2022/device/entities/device.entity.mjs +3 -3
  84. package/dist/esm2022/device/interfaces/i-device.mjs +1 -1
  85. package/dist/esm2022/general/entities/origin.entity.mjs +3 -3
  86. package/dist/esm2022/general/entities/payment-method-option.entity.mjs +5 -5
  87. package/dist/esm2022/general/enums/boolean-string.enum.mjs +6 -6
  88. package/dist/esm2022/general/enums/index.mjs +12 -11
  89. package/dist/esm2022/general/enums/interval-type.enum.mjs +7 -7
  90. package/dist/esm2022/general/enums/lead-origin.enum.mjs +11 -11
  91. package/dist/esm2022/general/enums/os.enum.mjs +12 -12
  92. package/dist/esm2022/general/enums/payment-channel.enum.mjs +12 -12
  93. package/dist/esm2022/general/enums/payment-mode.enum.mjs +7 -7
  94. package/dist/esm2022/general/enums/payment-status.enum.mjs +14 -13
  95. package/dist/esm2022/general/enums/person-type.enum.mjs +6 -6
  96. package/dist/esm2022/general/enums/platform.enum.mjs +11 -11
  97. package/dist/esm2022/general/enums/providers.enum.mjs +10 -10
  98. package/dist/esm2022/general/enums/pubsub.enum.mjs +6 -0
  99. package/dist/esm2022/general/interfaces/i-origin.mjs +1 -1
  100. package/dist/esm2022/general/interfaces/i-payment-method-option.mjs +1 -1
  101. package/dist/esm2022/index.mjs +4 -1
  102. package/dist/esm2022/invite/entities/invite.entity.mjs +4 -3
  103. package/dist/esm2022/invite/interfaces/i-invite.mjs +1 -1
  104. package/dist/esm2022/iugu/entities/account-last-verification-request-data.entity.mjs +6 -6
  105. package/dist/esm2022/iugu/interfaces/i-account-info-last-ver-req-data.mjs +1 -1
  106. package/dist/esm2022/lead/entities/lead.entity.mjs +3 -3
  107. package/dist/esm2022/lead/interfaces/i-lead.mjs +1 -1
  108. package/dist/esm2022/plan/entities/plan.entity.mjs +3 -3
  109. package/dist/esm2022/plan/interfaces/i-plan.mjs +1 -1
  110. package/dist/esm2022/purchases/entities/purchase.entity.mjs +3 -3
  111. package/dist/esm2022/purchases/interfaces/i-purchase.mjs +1 -1
  112. package/dist/esm2022/subscription-base/entities/subscription-base.entity.mjs +3 -3
  113. package/dist/esm2022/subscription-base/interfaces/i-subscription-base.mjs +1 -1
  114. package/dist/fesm2022/cecon-interfaces.mjs +1517 -1387
  115. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  116. package/dist/general/entities/origin.entity.d.ts +2 -2
  117. package/dist/general/entities/origin.entity.js +1 -1
  118. package/dist/general/entities/payment-method-option.entity.d.ts +4 -4
  119. package/dist/general/entities/payment-method-option.entity.js +2 -2
  120. package/dist/general/enums/boolean-string.enum.d.ts +1 -1
  121. package/dist/general/enums/boolean-string.enum.js +6 -6
  122. package/dist/general/enums/index.d.ts +11 -10
  123. package/dist/general/enums/index.js +13 -11
  124. package/dist/general/enums/interval-type.enum.d.ts +1 -1
  125. package/dist/general/enums/interval-type.enum.js +7 -7
  126. package/dist/general/enums/lead-origin.enum.d.ts +1 -1
  127. package/dist/general/enums/lead-origin.enum.js +11 -11
  128. package/dist/general/enums/os.enum.d.ts +1 -1
  129. package/dist/general/enums/os.enum.js +12 -12
  130. package/dist/general/enums/payment-channel.enum.d.ts +1 -1
  131. package/dist/general/enums/payment-channel.enum.js +12 -12
  132. package/dist/general/enums/payment-mode.enum.d.ts +1 -1
  133. package/dist/general/enums/payment-mode.enum.js +7 -7
  134. package/dist/general/enums/payment-status.enum.d.ts +2 -1
  135. package/dist/general/enums/payment-status.enum.js +14 -13
  136. package/dist/general/enums/person-type.enum.d.ts +1 -1
  137. package/dist/general/enums/person-type.enum.js +6 -6
  138. package/dist/general/enums/platform.enum.d.ts +1 -1
  139. package/dist/general/enums/platform.enum.js +11 -11
  140. package/dist/general/enums/providers.enum.d.ts +1 -1
  141. package/dist/general/enums/providers.enum.js +10 -10
  142. package/dist/general/enums/pubsub.enum.d.ts +4 -0
  143. package/dist/general/enums/pubsub.enum.js +8 -0
  144. package/dist/general/interfaces/i-origin.d.ts +2 -2
  145. package/dist/general/interfaces/i-payment-method-option.d.ts +4 -4
  146. package/dist/index.d.ts +3 -0
  147. package/dist/index.js +3 -0
  148. package/dist/invite/entities/invite.entity.d.ts +1 -0
  149. package/dist/invite/entities/invite.entity.js +3 -2
  150. package/dist/invite/interfaces/i-invite.d.ts +4 -3
  151. package/dist/iugu/entities/account-last-verification-request-data.entity.d.ts +5 -5
  152. package/dist/iugu/entities/account-last-verification-request-data.entity.js +3 -3
  153. package/dist/iugu/interfaces/i-account-info-last-ver-req-data.d.ts +5 -5
  154. package/dist/lead/entities/lead.entity.d.ts +2 -2
  155. package/dist/lead/entities/lead.entity.js +1 -1
  156. package/dist/lead/interfaces/i-lead.d.ts +6 -6
  157. package/dist/package.json +1 -1
  158. package/dist/plan/entities/plan.entity.d.ts +2 -2
  159. package/dist/plan/entities/plan.entity.js +1 -1
  160. package/dist/plan/interfaces/i-plan.d.ts +2 -2
  161. package/dist/purchases/entities/purchase.entity.d.ts +2 -2
  162. package/dist/purchases/entities/purchase.entity.js +1 -1
  163. package/dist/purchases/interfaces/i-purchase.d.ts +2 -2
  164. package/dist/subscription-base/entities/subscription-base.entity.d.ts +2 -2
  165. package/dist/subscription-base/entities/subscription-base.entity.js +1 -1
  166. package/dist/subscription-base/interfaces/i-subscription-base.d.ts +2 -2
  167. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { CarouselImageEntity, IntervalTypeEnum, RatingEntity } from '../../general';
2
- import { OsEnum } from '../../general/enums/os.enum';
3
- import { PlatfomrEnum } from '../../general/enums/platform.enum';
1
+ import { CarouselImageEntity, EIntervalType, RatingEntity } from '../../general';
2
+ import { EOs } from '../../general/enums/os.enum';
3
+ import { EPlatform } from '../../general/enums/platform.enum';
4
4
  import { EAppCategory } from '../enums/app-category.enum';
5
5
  import { EAppType } from '../enums/app-type.enum';
6
6
  import { EAppHeaderType } from '../enums/header-type.enum';
@@ -39,14 +39,14 @@ export declare class AppEntity implements IApp {
39
39
  * @example
40
40
  * Mensal, Semanal, Diário
41
41
  */
42
- intervalType: IntervalTypeEnum;
42
+ intervalType: EIntervalType;
43
43
  mode: EAppMode;
44
44
  name: string;
45
45
  /**
46
46
  * Indica se o app é gratuito ou não
47
47
  */
48
- os: OsEnum[];
49
- platforms: PlatfomrEnum[];
48
+ os: EOs[];
49
+ platforms: EPlatform[];
50
50
  price: number;
51
51
  ratings: RatingEntity[];
52
52
  tags: string[];
@@ -42,7 +42,7 @@ var AppEntity = /** @class */ (function () {
42
42
  * @example
43
43
  * Mensal, Semanal, Diário
44
44
  */
45
- this.intervalType = general_1.IntervalTypeEnum.MONTHS;
45
+ this.intervalType = general_1.EIntervalType.MONTHS;
46
46
  this.mode = mode_enum_1.EAppMode.NONE;
47
47
  this.name = '';
48
48
  /**
@@ -1,6 +1,6 @@
1
- import { ICarouselImage, IRating, IntervalTypeEnum } from '../../general';
2
- import { OsEnum } from '../../general/enums/os.enum';
3
- import { PlatfomrEnum } from '../../general/enums/platform.enum';
1
+ import { EIntervalType, ICarouselImage, IRating } from '../../general';
2
+ import { EOs } from '../../general/enums/os.enum';
3
+ import { EPlatform } from '../../general/enums/platform.enum';
4
4
  import { EAppMode } from '../enums';
5
5
  import { EAppCategory } from '../enums/app-category.enum';
6
6
  import { EAppType } from '../enums/app-type.enum';
@@ -38,15 +38,15 @@ export interface IApp {
38
38
  * @example
39
39
  * Mensal, Semanal, Diário
40
40
  */
41
- intervalType: IntervalTypeEnum;
41
+ intervalType: EIntervalType;
42
42
  /**
43
43
  * Indica se o app é gratuito ou não
44
44
  */
45
45
  mode: EAppMode;
46
46
  production: boolean;
47
47
  name: string;
48
- os: OsEnum[];
49
- platforms: PlatfomrEnum[];
48
+ os: EOs[];
49
+ platforms: EPlatform[];
50
50
  price: number;
51
51
  ratings: IRating[];
52
52
  tags: string[];
@@ -0,0 +1,19 @@
1
+ import { ICompany } from '../../company';
2
+ import { EPaymentStatus, EPaymentType } from '../../general';
3
+ import { IBillingPayment } from '../interfaces';
4
+ export declare class BillingPaymentEntity implements IBillingPayment {
5
+ addition: number;
6
+ cancelled: number;
7
+ company: Partial<ICompany>;
8
+ discount: number;
9
+ id: string;
10
+ paymentReceiptUrl: string;
11
+ paymentType: EPaymentType;
12
+ status: EPaymentStatus;
13
+ subtotal: number;
14
+ tax: number;
15
+ totalAmount: number;
16
+ transactionDate: Date;
17
+ transactionId: string;
18
+ constructor(data?: Partial<BillingPaymentEntity>);
19
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingPaymentEntity = void 0;
4
+ var general_1 = require("../../general");
5
+ var BillingPaymentEntity = /** @class */ (function () {
6
+ // #endregion Properties (13)
7
+ // #region Constructors (1)
8
+ function BillingPaymentEntity(data) {
9
+ // #region Properties (13)
10
+ this.addition = 0;
11
+ this.cancelled = 0;
12
+ this.company = {};
13
+ this.discount = 0;
14
+ this.id = '';
15
+ this.paymentReceiptUrl = '';
16
+ this.paymentType = general_1.EPaymentType.NONE;
17
+ this.status = general_1.EPaymentStatus.PENDING;
18
+ this.subtotal = 0;
19
+ this.tax = 0;
20
+ this.totalAmount = 0;
21
+ this.transactionDate = new Date();
22
+ this.transactionId = '';
23
+ if (data) {
24
+ for (var key in data) {
25
+ if (data.hasOwnProperty(key) && key in this) {
26
+ this[key] = data[key];
27
+ }
28
+ }
29
+ }
30
+ }
31
+ return BillingPaymentEntity;
32
+ }());
33
+ exports.BillingPaymentEntity = BillingPaymentEntity;
@@ -0,0 +1,10 @@
1
+ import { IBillingTotal } from '../interfaces';
2
+ export declare class BillingTotalEntity implements IBillingTotal {
3
+ addition: number;
4
+ cancelled: number;
5
+ discount: number;
6
+ subtotal: number;
7
+ tax: number;
8
+ totalAmount: number;
9
+ constructor(data?: Partial<BillingTotalEntity>);
10
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingTotalEntity = void 0;
4
+ var BillingTotalEntity = /** @class */ (function () {
5
+ // #endregion Properties (6)
6
+ // #region Constructors (1)
7
+ function BillingTotalEntity(data) {
8
+ // #region Properties (6)
9
+ this.addition = 0;
10
+ this.cancelled = 0;
11
+ this.discount = 0;
12
+ this.subtotal = 0;
13
+ this.tax = 0;
14
+ this.totalAmount = 0;
15
+ if (data) {
16
+ for (var key in data) {
17
+ if (data.hasOwnProperty(key) && key in this) {
18
+ this[key] = data[key];
19
+ }
20
+ }
21
+ }
22
+ }
23
+ return BillingTotalEntity;
24
+ }());
25
+ exports.BillingTotalEntity = BillingTotalEntity;
@@ -0,0 +1,14 @@
1
+ import { IBillingOrder } from '../../billing-order';
2
+ import { EBillingStatus } from '../enums';
3
+ import { IBilling, IBillingPayment, IBillingTotal } from '../interfaces';
4
+ export declare class BillingEntity implements IBilling {
5
+ createdAt: Date;
6
+ dueDateAt: Date;
7
+ id: string;
8
+ orders: IBillingOrder[];
9
+ payments: IBillingPayment[];
10
+ status: EBillingStatus;
11
+ total: IBillingTotal;
12
+ updatedAt: Date;
13
+ constructor(data?: Partial<BillingEntity>);
14
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingEntity = void 0;
4
+ var enums_1 = require("../enums");
5
+ var billing_total_entity_1 = require("./billing-total.entity");
6
+ var BillingEntity = /** @class */ (function () {
7
+ // #endregion Properties (8)
8
+ // #region Constructors (1)
9
+ function BillingEntity(data) {
10
+ // #region Properties (8)
11
+ this.createdAt = new Date();
12
+ this.dueDateAt = new Date();
13
+ this.id = '';
14
+ this.orders = [];
15
+ this.payments = [];
16
+ this.status = enums_1.EBillingStatus.PENDING;
17
+ this.total = new billing_total_entity_1.BillingTotalEntity();
18
+ this.updatedAt = new Date();
19
+ if (data) {
20
+ for (var key in data) {
21
+ if (data.hasOwnProperty(key) && key in this) {
22
+ this[key] = data[key];
23
+ }
24
+ }
25
+ }
26
+ }
27
+ return BillingEntity;
28
+ }());
29
+ exports.BillingEntity = BillingEntity;
@@ -0,0 +1,3 @@
1
+ export { BillingPaymentEntity } from './billing-payment.entity';
2
+ export { BillingTotalEntity } from './billing-total.entity';
3
+ export { BillingEntity } from './billing.entity';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingEntity = exports.BillingTotalEntity = exports.BillingPaymentEntity = void 0;
4
+ var billing_payment_entity_1 = require("./billing-payment.entity");
5
+ Object.defineProperty(exports, "BillingPaymentEntity", { enumerable: true, get: function () { return billing_payment_entity_1.BillingPaymentEntity; } });
6
+ var billing_total_entity_1 = require("./billing-total.entity");
7
+ Object.defineProperty(exports, "BillingTotalEntity", { enumerable: true, get: function () { return billing_total_entity_1.BillingTotalEntity; } });
8
+ var billing_entity_1 = require("./billing.entity");
9
+ Object.defineProperty(exports, "BillingEntity", { enumerable: true, get: function () { return billing_entity_1.BillingEntity; } });
@@ -0,0 +1,6 @@
1
+ export declare enum EBillingStatus {
2
+ PAID = "PAID",
3
+ PENDING = "PENDING",
4
+ PARTIALLY_PAID = "PARTIALLY_PAID",
5
+ CANCELLED = "CANCELLED"
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EBillingStatus = void 0;
4
+ var EBillingStatus;
5
+ (function (EBillingStatus) {
6
+ // #region Properties (3)
7
+ EBillingStatus["PAID"] = "PAID";
8
+ EBillingStatus["PENDING"] = "PENDING";
9
+ EBillingStatus["PARTIALLY_PAID"] = "PARTIALLY_PAID";
10
+ EBillingStatus["CANCELLED"] = "CANCELLED";
11
+ // #endregion Properties (3)
12
+ })(EBillingStatus || (exports.EBillingStatus = EBillingStatus = {}));
@@ -0,0 +1 @@
1
+ export { EBillingStatus } from './billing-status.enum';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EBillingStatus = void 0;
4
+ var billing_status_enum_1 = require("./billing-status.enum");
5
+ Object.defineProperty(exports, "EBillingStatus", { enumerable: true, get: function () { return billing_status_enum_1.EBillingStatus; } });
@@ -0,0 +1,3 @@
1
+ export * from './entities';
2
+ export * from './enums';
3
+ export * from './interfaces';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./enums"), exports);
19
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,17 @@
1
+ import { ICompany } from '../../company';
2
+ import { EPaymentStatus, EPaymentType } from '../../general';
3
+ export interface IBillingPayment {
4
+ addition: number;
5
+ cancelled: number;
6
+ company: Partial<ICompany>;
7
+ discount: number;
8
+ id: string;
9
+ paymentReceiptUrl: string;
10
+ paymentType: EPaymentType;
11
+ status: EPaymentStatus;
12
+ subtotal: number;
13
+ tax: number;
14
+ totalAmount: number;
15
+ transactionDate: Date;
16
+ transactionId: string;
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ export interface IBillingTotal {
2
+ addition: number;
3
+ cancelled: number;
4
+ discount: number;
5
+ subtotal: number;
6
+ tax: number;
7
+ totalAmount: number;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { IBillingOrder } from '../../billing-order';
2
+ import { EBillingStatus } from '../enums/billing-status.enum';
3
+ import { IBillingPayment } from './i-billing-payment';
4
+ import { IBillingTotal } from './i-billing-total';
5
+ export interface IBilling {
6
+ createdAt: Date;
7
+ dueDateAt: Date;
8
+ id: string;
9
+ orders: IBillingOrder[];
10
+ payments: IBillingPayment[];
11
+ status: EBillingStatus;
12
+ total: IBillingTotal;
13
+ updatedAt: Date;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export { IBilling } from './i-billing';
2
+ export { IBillingPayment } from './i-billing-payment';
3
+ export { IBillingTotal } from './i-billing-total';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { OrderEntity } from '../../order';
2
+ import { IBillingOrder } from '../interfaces/i-billing-order';
3
+ export declare class BillingOrderEntity extends OrderEntity implements IBillingOrder {
4
+ billingPaymentId: string;
5
+ constructor(data?: Partial<BillingOrderEntity>);
6
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.BillingOrderEntity = void 0;
19
+ var order_1 = require("../../order");
20
+ var BillingOrderEntity = /** @class */ (function (_super) {
21
+ __extends(BillingOrderEntity, _super);
22
+ // #endregion Properties (1)
23
+ // #region Constructors (1)
24
+ function BillingOrderEntity(data) {
25
+ var _this = _super.call(this, data) || this;
26
+ // #region Properties (1)
27
+ _this.billingPaymentId = '';
28
+ if (data) {
29
+ for (var key in data) {
30
+ if (data.hasOwnProperty(key) && key in _this) {
31
+ _this[key] = data[key];
32
+ }
33
+ }
34
+ }
35
+ return _this;
36
+ }
37
+ return BillingOrderEntity;
38
+ }(order_1.OrderEntity));
39
+ exports.BillingOrderEntity = BillingOrderEntity;
@@ -0,0 +1 @@
1
+ export { BillingOrderEntity } from './billing-order.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingOrderEntity = void 0;
4
+ var billing_order_entity_1 = require("./billing-order.entity");
5
+ Object.defineProperty(exports, "BillingOrderEntity", { enumerable: true, get: function () { return billing_order_entity_1.BillingOrderEntity; } });
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,4 @@
1
+ import { IOrder } from '../../order';
2
+ export interface IBillingOrder extends IOrder {
3
+ billingPaymentId: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { IBillingOrder } from './i-billing-order';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,5 @@
1
1
  import { AddressEntity, DeliveryAreaEntity, DeliveryAreaFixedEntity, EDocType } from '../../general';
2
- import { ECustomerInterval, ECustomerStatus } from '../enums';
2
+ import { ECustomerInterval, ECustomerStatus, ECustomerType } from '../enums';
3
3
  import { ICustomer } from '../interfaces';
4
4
  export declare class CustomerEntity implements ICustomer {
5
5
  address: AddressEntity;
@@ -21,6 +21,7 @@ export declare class CustomerEntity implements ICustomer {
21
21
  sandbox: boolean;
22
22
  status: ECustomerStatus;
23
23
  tags: string[];
24
+ type: ECustomerType;
24
25
  updatedAt: Date;
25
26
  constructor(data?: Partial<CustomerEntity>);
26
27
  }
@@ -27,6 +27,7 @@ var CustomerEntity = /** @class */ (function () {
27
27
  this.sandbox = false;
28
28
  this.status = enums_1.ECustomerStatus.WAITING_CREDIT_ANALYSIS;
29
29
  this.tags = [];
30
+ this.type = enums_1.ECustomerType.SINGLE;
30
31
  this.updatedAt = new Date();
31
32
  if (data) {
32
33
  for (var key in data) {
@@ -1,2 +1,3 @@
1
1
  export { ECustomerInterval } from './interval.enum';
2
2
  export { ECustomerStatus } from './status.enum';
3
+ export { ECustomerType } from './type.enum';
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ECustomerStatus = exports.ECustomerInterval = void 0;
3
+ exports.ECustomerType = exports.ECustomerStatus = exports.ECustomerInterval = void 0;
4
4
  var interval_enum_1 = require("./interval.enum");
5
5
  Object.defineProperty(exports, "ECustomerInterval", { enumerable: true, get: function () { return interval_enum_1.ECustomerInterval; } });
6
6
  var status_enum_1 = require("./status.enum");
7
7
  Object.defineProperty(exports, "ECustomerStatus", { enumerable: true, get: function () { return status_enum_1.ECustomerStatus; } });
8
+ var type_enum_1 = require("./type.enum");
9
+ Object.defineProperty(exports, "ECustomerType", { enumerable: true, get: function () { return type_enum_1.ECustomerType; } });
@@ -0,0 +1,4 @@
1
+ export declare enum ECustomerType {
2
+ SINGLE = "SINGLE",
3
+ COMPOUND = "COMPOUND"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ECustomerType = void 0;
4
+ var ECustomerType;
5
+ (function (ECustomerType) {
6
+ ECustomerType["SINGLE"] = "SINGLE";
7
+ ECustomerType["COMPOUND"] = "COMPOUND";
8
+ })(ECustomerType || (exports.ECustomerType = ECustomerType = {}));
@@ -1,5 +1,5 @@
1
1
  import { EDocType, IAddress, IDeliveryArea, IDeliveryAreaFixed } from '../../general';
2
- import { ECustomerInterval, ECustomerStatus } from '../enums';
2
+ import { ECustomerInterval, ECustomerStatus, ECustomerType } from '../enums';
3
3
  export interface ICustomer {
4
4
  address: IAddress;
5
5
  createdAt: Date;
@@ -11,6 +11,7 @@ export interface ICustomer {
11
11
  fullName: string;
12
12
  blockedReason: string | null;
13
13
  id: string;
14
+ type: ECustomerType;
14
15
  imageUrl: string | null;
15
16
  interval: ECustomerInterval;
16
17
  limit: number;
@@ -0,0 +1 @@
1
+ export { CustomerMemberEntity } from './member.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomerMemberEntity = void 0;
4
+ var member_entity_1 = require("./member.entity");
5
+ Object.defineProperty(exports, "CustomerMemberEntity", { enumerable: true, get: function () { return member_entity_1.CustomerMemberEntity; } });
@@ -0,0 +1,5 @@
1
+ import { MemberEntity } from '../../member';
2
+ import { ICustomerMember } from '../interfaces';
3
+ export declare class CustomerMemberEntity extends MemberEntity implements ICustomerMember {
4
+ constructor(data?: Partial<CustomerMemberEntity>);
5
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.CustomerMemberEntity = void 0;
19
+ var member_1 = require("../../member");
20
+ var CustomerMemberEntity = /** @class */ (function (_super) {
21
+ __extends(CustomerMemberEntity, _super);
22
+ // #region Properties (13)
23
+ // #endregion Properties (13)
24
+ // #region Constructors (1)
25
+ function CustomerMemberEntity(data) {
26
+ var _this = _super.call(this, data) || this;
27
+ if (data) {
28
+ for (var key in data) {
29
+ if (data.hasOwnProperty(key) && key in _this) {
30
+ _this[key] = data[key];
31
+ }
32
+ }
33
+ }
34
+ return _this;
35
+ }
36
+ return CustomerMemberEntity;
37
+ }(member_1.MemberEntity));
38
+ exports.CustomerMemberEntity = CustomerMemberEntity;
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./interfaces"), exports);
@@ -0,0 +1,3 @@
1
+ import { IMember } from '../../member';
2
+ export interface ICustomerMember extends IMember {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { ICustomerMember } from './i-member';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { OsEnum } from '../../general/enums/os.enum';
1
+ import { EOs } from '../../general/enums/os.enum';
2
2
  import { IDevice } from '../interfaces/i-device';
3
3
  export declare class DeviceEntity implements IDevice {
4
4
  active: boolean;
@@ -6,7 +6,7 @@ export declare class DeviceEntity implements IDevice {
6
6
  containerId: string;
7
7
  createdAt: Date;
8
8
  deviceId: string;
9
- os: OsEnum;
9
+ os: EOs;
10
10
  installedApps: any[];
11
11
  osVersion: string;
12
12
  id: string;