cecon-interfaces 1.3.7 → 1.3.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/dist/esm2022/general/entities/index.mjs +2 -1
  2. package/dist/esm2022/general/entities/query.entity.mjs +27 -0
  3. package/dist/esm2022/general/interfaces/i-query.mjs +2 -0
  4. package/dist/esm2022/general/interfaces/index.mjs +1 -1
  5. package/dist/esm2022/index.mjs +2 -1
  6. package/dist/esm2022/transfer-request/entities/index.mjs +2 -0
  7. package/dist/esm2022/transfer-request/entities/withdraw-request.entity.mjs +28 -0
  8. package/dist/esm2022/transfer-request/index.mjs +3 -0
  9. package/dist/esm2022/transfer-request/interfaces/i-withdraw-request.mjs +2 -0
  10. package/dist/esm2022/transfer-request/interfaces/index.mjs +2 -0
  11. package/dist/fesm2022/cecon-interfaces.mjs +62 -8
  12. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  13. package/dist/general/entities/index.d.ts +1 -0
  14. package/dist/general/entities/index.js +3 -1
  15. package/dist/general/entities/query.entity.d.ts +16 -0
  16. package/dist/general/entities/query.entity.js +31 -0
  17. package/dist/general/interfaces/i-query.d.ts +14 -0
  18. package/dist/general/interfaces/i-query.js +2 -0
  19. package/dist/general/interfaces/index.d.ts +1 -0
  20. package/dist/index.d.ts +1 -0
  21. package/dist/index.js +1 -0
  22. package/dist/package.json +1 -1
  23. package/dist/transfer-request/entities/index.d.ts +1 -0
  24. package/dist/transfer-request/entities/index.js +5 -0
  25. package/dist/transfer-request/entities/withdraw-request.entity.d.ts +20 -0
  26. package/dist/transfer-request/entities/withdraw-request.entity.js +32 -0
  27. package/dist/transfer-request/index.d.ts +2 -0
  28. package/dist/transfer-request/index.js +18 -0
  29. package/dist/transfer-request/interfaces/i-withdraw-request.d.ts +18 -0
  30. package/dist/transfer-request/interfaces/i-withdraw-request.js +2 -0
  31. package/dist/transfer-request/interfaces/index.d.ts +1 -0
  32. package/dist/transfer-request/interfaces/index.js +2 -0
  33. package/package.json +1 -1
  34. package/readme.md +1 -1
@@ -19,5 +19,6 @@ export { PaymentTokenDataEntity } from './payment-token-data.entity';
19
19
  export { PaymentTokenEntity } from './payment-token.entity';
20
20
  export { PaymentWalletEntity } from './payment-wallet.entity';
21
21
  export { PaymentEntity } from './payment.entity';
22
+ export { QueryEntity } from './query.entity';
22
23
  export { RatingEntity } from './rating.entity';
23
24
  export { SponsorshipValueEntity } from './sponsorship-value.entity';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SponsorshipValueEntity = exports.RatingEntity = exports.PaymentEntity = exports.PaymentWalletEntity = exports.PaymentTokenEntity = exports.PaymentTokenDataEntity = exports.PaymentProviderEntity = exports.PaymentProviderAgentEntity = exports.PaymentPixEntity = exports.PaymentMethodEntity = exports.PaymentMethodOptionEntity = exports.PaymentCashEntity = exports.PaymentCardEntity = exports.OriginEntity = exports.MobyoApiConfigEntity = exports.MessagerChannelEntity = exports.DeliveryAreaFixedEntity = exports.DeliveryAreaEntity = exports.CustomVariableEntity = exports.CoordsEntity = exports.CarouselImageEntity = exports.BaseEntity = exports.AddressEntity = void 0;
3
+ exports.SponsorshipValueEntity = exports.RatingEntity = exports.QueryEntity = exports.PaymentEntity = exports.PaymentWalletEntity = exports.PaymentTokenEntity = exports.PaymentTokenDataEntity = exports.PaymentProviderEntity = exports.PaymentProviderAgentEntity = exports.PaymentPixEntity = exports.PaymentMethodEntity = exports.PaymentMethodOptionEntity = exports.PaymentCashEntity = exports.PaymentCardEntity = exports.OriginEntity = exports.MobyoApiConfigEntity = exports.MessagerChannelEntity = exports.DeliveryAreaFixedEntity = exports.DeliveryAreaEntity = exports.CustomVariableEntity = exports.CoordsEntity = exports.CarouselImageEntity = exports.BaseEntity = exports.AddressEntity = void 0;
4
4
  var address_entity_1 = require("./address.entity");
5
5
  Object.defineProperty(exports, "AddressEntity", { enumerable: true, get: function () { return address_entity_1.AddressEntity; } });
6
6
  var base_entity_1 = require("./base.entity");
@@ -43,6 +43,8 @@ var payment_wallet_entity_1 = require("./payment-wallet.entity");
43
43
  Object.defineProperty(exports, "PaymentWalletEntity", { enumerable: true, get: function () { return payment_wallet_entity_1.PaymentWalletEntity; } });
44
44
  var payment_entity_1 = require("./payment.entity");
45
45
  Object.defineProperty(exports, "PaymentEntity", { enumerable: true, get: function () { return payment_entity_1.PaymentEntity; } });
46
+ var query_entity_1 = require("./query.entity");
47
+ Object.defineProperty(exports, "QueryEntity", { enumerable: true, get: function () { return query_entity_1.QueryEntity; } });
46
48
  var rating_entity_1 = require("./rating.entity");
47
49
  Object.defineProperty(exports, "RatingEntity", { enumerable: true, get: function () { return rating_entity_1.RatingEntity; } });
48
50
  var sponsorship_value_entity_1 = require("./sponsorship-value.entity");
@@ -0,0 +1,16 @@
1
+ import { IQuery } from '../interfaces/i-query';
2
+ export declare class QueryEntity implements IQuery {
3
+ apikey?: string | null | undefined;
4
+ companyId?: string | null | undefined;
5
+ containerId?: string | null | undefined;
6
+ dateField?: string | null | undefined;
7
+ endDate?: string | undefined;
8
+ filterBy?: 'startDate' | 'endDate' | 'none' | undefined;
9
+ lastDocId?: string | null | undefined;
10
+ limit: string;
11
+ query?: string | undefined;
12
+ sandbox?: '' | 'undefined' | 'true' | 'false' | 'null' | undefined;
13
+ startDate?: string | undefined;
14
+ status?: string | undefined;
15
+ constructor(data?: Partial<QueryEntity>);
16
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QueryEntity = void 0;
4
+ var QueryEntity = /** @class */ (function () {
5
+ // #endregion Properties (12)
6
+ // #region Constructors (1)
7
+ function QueryEntity(data) {
8
+ // #region Properties (12)
9
+ this.apikey = null;
10
+ this.companyId = null;
11
+ this.containerId = null;
12
+ this.dateField = null;
13
+ this.endDate = undefined;
14
+ this.filterBy = undefined;
15
+ this.lastDocId = null;
16
+ this.limit = '100';
17
+ this.query = undefined;
18
+ this.sandbox = '';
19
+ this.startDate = undefined;
20
+ this.status = undefined;
21
+ if (data) {
22
+ for (var key in data) {
23
+ if (data.hasOwnProperty(key) && key in this) {
24
+ this[key] = data[key];
25
+ }
26
+ }
27
+ }
28
+ }
29
+ return QueryEntity;
30
+ }());
31
+ exports.QueryEntity = QueryEntity;
@@ -0,0 +1,14 @@
1
+ export interface IQuery {
2
+ apikey?: string | undefined | null;
3
+ companyId?: string | undefined | null;
4
+ containerId?: string | undefined | null;
5
+ dateField?: string | null | undefined;
6
+ endDate?: string;
7
+ filterBy?: 'startDate' | 'endDate' | 'none';
8
+ lastDocId?: string | undefined | null;
9
+ limit: string;
10
+ query?: string;
11
+ sandbox?: 'true' | 'false' | 'undefined' | 'null' | '';
12
+ startDate?: string;
13
+ status?: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -19,5 +19,6 @@ export { IPaymentProviderAgent } from './i-payment-provider-agent';
19
19
  export { IPaymentToken } from './i-payment-token';
20
20
  export { IPaymentTokenData } from './i-payment-token-data';
21
21
  export { IPaymentWallet } from './i-payment-wallet';
22
+ export { IQuery } from './i-query';
22
23
  export { IRating } from './i-rating';
23
24
  export { ISponsorshipValue } from './i-sponsorship-value';
package/dist/index.d.ts CHANGED
@@ -45,6 +45,7 @@ export * from './subscription-customer';
45
45
  export * from './token';
46
46
  export * from './token-jwt';
47
47
  export * from './transaction';
48
+ export * from './transfer-request';
48
49
  export * from './verifier-token';
49
50
  export * from './viacep';
50
51
  export * from './voucher';
package/dist/index.js CHANGED
@@ -61,6 +61,7 @@ __exportStar(require("./subscription-customer"), exports);
61
61
  __exportStar(require("./token"), exports);
62
62
  __exportStar(require("./token-jwt"), exports);
63
63
  __exportStar(require("./transaction"), exports);
64
+ __exportStar(require("./transfer-request"), exports);
64
65
  __exportStar(require("./verifier-token"), exports);
65
66
  __exportStar(require("./viacep"), exports);
66
67
  __exportStar(require("./voucher"), exports);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.3.07",
3
+ "version": "1.3.09",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1 @@
1
+ export { TransferRequestEntity } from './withdraw-request.entity';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransferRequestEntity = void 0;
4
+ var withdraw_request_entity_1 = require("./withdraw-request.entity");
5
+ Object.defineProperty(exports, "TransferRequestEntity", { enumerable: true, get: function () { return withdraw_request_entity_1.TransferRequestEntity; } });
@@ -0,0 +1,20 @@
1
+ import { IInvoicePix } from '../../invoice';
2
+ import { EWithdrawRequestStatus } from '../../withdraw/enums';
3
+ import { ITransferRequest } from '../interfaces/i-withdraw-request';
4
+ export declare class TransferRequestEntity implements ITransferRequest {
5
+ amount: number;
6
+ aprovedAt: Date | null;
7
+ containerId: string;
8
+ merchantId: string;
9
+ createdAt: Date;
10
+ id: string;
11
+ liveMode: boolean;
12
+ status: EWithdrawRequestStatus;
13
+ transactionId: string | null;
14
+ transferDocumentUrl: string | null;
15
+ updatedAt: Date;
16
+ transactionReferenceId: string | null;
17
+ naiRefId: string;
18
+ pix: IInvoicePix | null;
19
+ constructor(data?: Partial<TransferRequestEntity>);
20
+ }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TransferRequestEntity = void 0;
4
+ var enums_1 = require("../../withdraw/enums");
5
+ var TransferRequestEntity = /** @class */ (function () {
6
+ function TransferRequestEntity(data) {
7
+ // #region Properties (11)
8
+ this.amount = 0;
9
+ this.aprovedAt = null;
10
+ this.containerId = '';
11
+ this.merchantId = '';
12
+ this.createdAt = new Date();
13
+ this.id = '';
14
+ this.liveMode = false;
15
+ this.status = enums_1.EWithdrawRequestStatus.PENDING;
16
+ this.transactionId = null;
17
+ this.transferDocumentUrl = null;
18
+ this.updatedAt = new Date();
19
+ this.transactionReferenceId = null;
20
+ this.naiRefId = '';
21
+ this.pix = null;
22
+ if (data) {
23
+ for (var key in data) {
24
+ if (data.hasOwnProperty(key) && key in this) {
25
+ this[key] = data[key];
26
+ }
27
+ }
28
+ }
29
+ }
30
+ return TransferRequestEntity;
31
+ }());
32
+ exports.TransferRequestEntity = TransferRequestEntity;
@@ -0,0 +1,2 @@
1
+ export * from './interfaces';
2
+ export * from './entities';
@@ -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("./interfaces"), exports);
18
+ __exportStar(require("./entities"), exports);
@@ -0,0 +1,18 @@
1
+ import { IInvoicePix } from '../../invoice';
2
+ import { EWithdrawRequestStatus } from '../../withdraw/enums';
3
+ export interface ITransferRequest {
4
+ id: string;
5
+ createdAt: Date;
6
+ liveMode: boolean;
7
+ containerId: string;
8
+ merchantId: string;
9
+ naiRefId: string;
10
+ amount: number;
11
+ aprovedAt: Date | null;
12
+ transactionId: string | null;
13
+ transactionReferenceId: string | null;
14
+ status: EWithdrawRequestStatus;
15
+ transferDocumentUrl: string | null;
16
+ updatedAt: Date;
17
+ pix: IInvoicePix | null;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { ITransferRequest } from './i-withdraw-request';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.3.07",
3
+ "version": "1.3.09",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -3,5 +3,5 @@
3
3
  Compilar:
4
4
 
5
5
  npm run packagr
6
- npm run build
6
+ npm run buil
7
7
  npm publish