cecon-interfaces 1.5.34 → 1.5.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -10,6 +10,7 @@ export interface IDevice {
10
10
  app?: IDeviceApp;
11
11
  checkout?: IDeviceCheckout;
12
12
  pixelFacebookToken: string;
13
+ pixelFacebookApiConversion: string;
13
14
  companyId: string;
14
15
  containerId: string;
15
16
  createdAt: Date;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.34",
3
+ "version": "1.5.36",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,12 +1,22 @@
1
1
  import { EResumeIntervalType } from '../../resume';
2
+ import { ETransactionResumesTargetType } from '../enums/transaction-resumes-target-type.enum';
3
+ import { ITransactionInfoResume } from '../interfaces';
4
+ import { ITransactionResumeItemDetail } from '../interfaces/i-resume-item-detail';
2
5
  import { ITransactionResume } from '../interfaces/i-transaction-resume';
3
- import { TransactionInfoResumeEntity } from './transaction-info-resume.entity';
4
6
  export declare class TransactionResumeEntity implements ITransactionResume {
5
- balance: number;
6
- createdAt: Date;
7
- id: string;
8
- info: TransactionInfoResumeEntity;
7
+ info: ITransactionInfoResume;
9
8
  interval: EResumeIntervalType;
9
+ id: string;
10
+ createdAt: Date;
10
11
  updatedAt: Date;
12
+ totalTarget: {
13
+ target: ETransactionResumesTargetType;
14
+ item: ITransactionResumeItemDetail;
15
+ }[];
16
+ items: {
17
+ id: string;
18
+ target: ETransactionResumesTargetType;
19
+ item: ITransactionResumeItemDetail;
20
+ }[];
11
21
  constructor(data?: Partial<TransactionResumeEntity>);
12
22
  }
@@ -7,13 +7,13 @@ var TransactionResumeEntity = /** @class */ (function () {
7
7
  // #endregion Properties (6)
8
8
  // #region Constructors (1)
9
9
  function TransactionResumeEntity(data) {
10
- // #region Properties (6)
11
- this.balance = 0;
12
- this.createdAt = new Date();
13
- this.id = '';
14
10
  this.info = new transaction_info_resume_entity_1.TransactionInfoResumeEntity();
15
- this.interval = resume_1.EResumeIntervalType.DAY;
11
+ this.interval = resume_1.EResumeIntervalType.YEAR;
12
+ this.id = '';
13
+ this.createdAt = new Date();
16
14
  this.updatedAt = new Date();
15
+ this.totalTarget = [];
16
+ this.items = [];
17
17
  if (data) {
18
18
  for (var key in data) {
19
19
  if (data.hasOwnProperty(key) && key in this) {
@@ -6,3 +6,4 @@ export { EOperationType } from './operation-type.enum';
6
6
  export { ESponsorIdentifier } from './operation-type.enum';
7
7
  export { EPaymentMethodId } from './payment-method-id.enum';
8
8
  export { EPaymentTypeId } from './payment-type-id.enum';
9
+ export { ETransactionResumesTargetType } from './transaction-resumes-target-type.enum';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EPaymentTypeId = exports.EPaymentMethodId = exports.ESponsorIdentifier = exports.EOperationType = exports.EMpStatusDetail = exports.EMpStatus = exports.ETransactionStatus = exports.EReleaseStatus = void 0;
3
+ exports.ETransactionResumesTargetType = exports.EPaymentTypeId = exports.EPaymentMethodId = exports.ESponsorIdentifier = exports.EOperationType = exports.EMpStatusDetail = exports.EMpStatus = exports.ETransactionStatus = exports.EReleaseStatus = void 0;
4
4
  var release_status_enum_1 = require("./release-status.enum");
5
5
  Object.defineProperty(exports, "EReleaseStatus", { enumerable: true, get: function () { return release_status_enum_1.EReleaseStatus; } });
6
6
  var transaction_status_enum_1 = require("./transaction-status.enum");
@@ -17,3 +17,5 @@ var payment_method_id_enum_1 = require("./payment-method-id.enum");
17
17
  Object.defineProperty(exports, "EPaymentMethodId", { enumerable: true, get: function () { return payment_method_id_enum_1.EPaymentMethodId; } });
18
18
  var payment_type_id_enum_1 = require("./payment-type-id.enum");
19
19
  Object.defineProperty(exports, "EPaymentTypeId", { enumerable: true, get: function () { return payment_type_id_enum_1.EPaymentTypeId; } });
20
+ var transaction_resumes_target_type_enum_1 = require("./transaction-resumes-target-type.enum");
21
+ Object.defineProperty(exports, "ETransactionResumesTargetType", { enumerable: true, get: function () { return transaction_resumes_target_type_enum_1.ETransactionResumesTargetType; } });
@@ -0,0 +1,6 @@
1
+ export declare enum ETransactionResumesTargetType {
2
+ BALANCE = "BALANCE",
3
+ TAX = "TAX",
4
+ WITHDRAW = "WITHDRAW",
5
+ EARNED = "EARNED"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ETransactionResumesTargetType = void 0;
4
+ var ETransactionResumesTargetType;
5
+ (function (ETransactionResumesTargetType) {
6
+ ETransactionResumesTargetType["BALANCE"] = "BALANCE";
7
+ ETransactionResumesTargetType["TAX"] = "TAX";
8
+ ETransactionResumesTargetType["WITHDRAW"] = "WITHDRAW";
9
+ ETransactionResumesTargetType["EARNED"] = "EARNED";
10
+ })(ETransactionResumesTargetType || (exports.ETransactionResumesTargetType = ETransactionResumesTargetType = {}));
@@ -0,0 +1,4 @@
1
+ export interface ITransactionResumeItemDetail {
2
+ count: number;
3
+ amount: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,20 @@
1
1
  import { EResumeIntervalType } from '../../resume';
2
+ import { ETransactionResumesTargetType } from '../enums/transaction-resumes-target-type.enum';
3
+ import { ITransactionResumeItemDetail } from './i-resume-item-detail';
2
4
  import { ITransactionInfoResume } from './i-transaction-info-resume';
3
5
  export interface ITransactionResume {
4
- balance: number;
5
- createdAt: Date;
6
- id: string;
7
6
  info: ITransactionInfoResume;
8
7
  interval: EResumeIntervalType;
8
+ id: string;
9
+ createdAt: Date;
9
10
  updatedAt: Date;
11
+ totalTarget: {
12
+ target: ETransactionResumesTargetType;
13
+ item: ITransactionResumeItemDetail;
14
+ }[];
15
+ items: {
16
+ id: string;
17
+ target: ETransactionResumesTargetType;
18
+ item: ITransactionResumeItemDetail;
19
+ }[];
10
20
  }
@@ -6,3 +6,4 @@ export { ITransactionTotal } from './i-total';
6
6
  export { ITransaction } from './i-transaction';
7
7
  export { ITransactionInfoResume } from './i-transaction-info-resume';
8
8
  export { ITransactionResume } from './i-transaction-resume';
9
+ export { ITransactionResumeItemDetail } from './i-resume-item-detail';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.34",
3
+ "version": "1.5.36",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",