cecon-interfaces 1.0.24 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. package/dist/app/entities/app.entity.d.ts +27 -0
  2. package/dist/app/entities/app.entity.js +37 -0
  3. package/dist/app/entities/index.d.ts +2 -0
  4. package/dist/app/entities/index.js +7 -0
  5. package/dist/app/enums/app-category.enum.d.ts +30 -0
  6. package/dist/app/enums/app-category.enum.js +34 -0
  7. package/dist/app/enums/header-type.enum.d.ts +4 -0
  8. package/dist/app/enums/header-type.enum.js +8 -0
  9. package/dist/app/enums/index.d.ts +2 -0
  10. package/dist/app/enums/index.js +7 -0
  11. package/dist/app/index.d.ts +4 -0
  12. package/dist/app/index.js +20 -0
  13. package/dist/app/interfaces/i-app.d.ts +25 -0
  14. package/dist/app/interfaces/index.d.ts +2 -0
  15. package/dist/app/types/app-config.type.d.ts +2 -0
  16. package/dist/app/types/app-config.type.js +2 -0
  17. package/dist/app/types/index.d.ts +1 -0
  18. package/dist/app/types/index.js +2 -0
  19. package/dist/device/entities/device.entity.d.ts +5 -4
  20. package/dist/device/entities/device.entity.js +6 -7
  21. package/dist/device/entities/index.d.ts +0 -1
  22. package/dist/device/entities/index.js +1 -3
  23. package/dist/device/entities/installed-apps.entity.d.ts +18 -0
  24. package/dist/device/entities/installed-apps.entity.js +32 -0
  25. package/dist/device/entities/metadata.entity.d.ts +1 -1
  26. package/dist/device/entities/metadata.entity.js +1 -1
  27. package/dist/device/interfaces/i-device.d.ts +5 -4
  28. package/dist/device/interfaces/i-installed-apps.d.ts +16 -0
  29. package/dist/device/interfaces/i-installed-apps.js +2 -0
  30. package/dist/device/interfaces/index.d.ts +0 -1
  31. package/dist/esm2022/app/entities/app.entity.mjs +33 -0
  32. package/dist/esm2022/app/entities/index.mjs +3 -0
  33. package/dist/esm2022/app/entities/natigo.entity.mjs +19 -0
  34. package/dist/esm2022/app/enums/app-category.enum.mjs +32 -0
  35. package/dist/esm2022/app/enums/header-type.enum.mjs +6 -0
  36. package/dist/esm2022/app/enums/index.mjs +3 -0
  37. package/dist/esm2022/app/index.mjs +5 -0
  38. package/dist/esm2022/app/interfaces/i-app.mjs +2 -0
  39. package/dist/esm2022/app/interfaces/i-natigo.mjs +2 -0
  40. package/dist/esm2022/app/interfaces/index.mjs +2 -0
  41. package/dist/esm2022/app/types/app-config.type.mjs +2 -0
  42. package/dist/esm2022/app/types/index.mjs +2 -0
  43. package/dist/esm2022/device/entities/device.entity.mjs +7 -8
  44. package/dist/esm2022/device/entities/index.mjs +1 -2
  45. package/dist/esm2022/device/entities/installed-apps.entity.mjs +28 -0
  46. package/dist/esm2022/device/entities/metadata.entity.mjs +2 -2
  47. package/dist/esm2022/device/interfaces/i-device.mjs +1 -1
  48. package/dist/esm2022/device/interfaces/i-installed-apps.mjs +2 -0
  49. package/dist/esm2022/device/interfaces/index.mjs +1 -1
  50. package/dist/esm2022/general/entities/carousel-image.entity.mjs +18 -0
  51. package/dist/esm2022/general/entities/coords.entity.mjs +4 -1
  52. package/dist/esm2022/general/entities/index.mjs +3 -1
  53. package/dist/esm2022/general/entities/rating.entity.mjs +19 -0
  54. package/dist/esm2022/general/enums/index.mjs +2 -1
  55. package/dist/esm2022/general/enums/os.enum.mjs +11 -0
  56. package/dist/esm2022/general/enums/platform.enum.mjs +8 -0
  57. package/dist/esm2022/general/interfaces/i-carousel-image.mjs +2 -0
  58. package/dist/esm2022/general/interfaces/i-rating.mjs +2 -0
  59. package/dist/esm2022/general/interfaces/index.mjs +1 -1
  60. package/dist/esm2022/index.mjs +2 -2
  61. package/dist/esm2022/partner/entities/index.mjs +2 -0
  62. package/dist/esm2022/partner/entities/partner.entity.mjs +36 -0
  63. package/dist/esm2022/partner/index.mjs +3 -0
  64. package/dist/esm2022/partner/interfaces/i-partner.mjs +2 -0
  65. package/dist/esm2022/partner/interfaces/index.mjs +2 -0
  66. package/dist/fesm2022/cecon-interfaces.mjs +115 -43
  67. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  68. package/dist/general/entities/carousel-image.entity.d.ts +7 -0
  69. package/dist/general/entities/carousel-image.entity.js +22 -0
  70. package/dist/general/entities/coords.entity.js +3 -0
  71. package/dist/general/entities/index.d.ts +2 -0
  72. package/dist/general/entities/index.js +5 -1
  73. package/dist/general/entities/rating.entity.d.ts +8 -0
  74. package/dist/general/entities/rating.entity.js +23 -0
  75. package/dist/general/enums/index.d.ts +1 -0
  76. package/dist/general/enums/index.js +3 -1
  77. package/dist/general/enums/os.enum.d.ts +9 -0
  78. package/dist/general/enums/os.enum.js +13 -0
  79. package/dist/general/enums/platform.enum.d.ts +6 -0
  80. package/dist/general/enums/platform.enum.js +10 -0
  81. package/dist/general/interfaces/i-carousel-image.d.ts +5 -0
  82. package/dist/general/interfaces/i-carousel-image.js +2 -0
  83. package/dist/general/interfaces/i-rating.d.ts +6 -0
  84. package/dist/general/interfaces/i-rating.js +2 -0
  85. package/dist/general/interfaces/index.d.ts +2 -0
  86. package/dist/index.d.ts +1 -1
  87. package/dist/index.js +1 -1
  88. package/dist/package.json +1 -1
  89. package/dist/partner/entities/partner.entity.d.ts +25 -0
  90. package/dist/partner/entities/partner.entity.js +40 -0
  91. package/dist/partner/interfaces/i-partner.d.ts +23 -0
  92. package/dist/partner/interfaces/i-partner.js +2 -0
  93. package/dist/partner/interfaces/index.js +2 -0
  94. package/package.json +1 -1
  95. package/dist/esm2022/device/entities/natigo.entity.mjs +0 -19
  96. package/dist/esm2022/device/interfaces/i-natigo.mjs +0 -2
  97. package/dist/esm2022/partners/entities/index.mjs +0 -2
  98. package/dist/esm2022/partners/entities/partner.entity.mjs +0 -23
  99. package/dist/esm2022/partners/index.mjs +0 -3
  100. package/dist/esm2022/partners/interfaces/i-partner.mjs +0 -2
  101. package/dist/esm2022/partners/interfaces/index.mjs +0 -2
  102. package/dist/partners/entities/partner.entity.d.ts +0 -11
  103. package/dist/partners/entities/partner.entity.js +0 -44
  104. package/dist/partners/interfaces/i-partner.d.ts +0 -9
  105. /package/dist/{device → app}/entities/natigo.entity.d.ts +0 -0
  106. /package/dist/{device → app}/entities/natigo.entity.js +0 -0
  107. /package/dist/{device/interfaces/i-natigo.js → app/interfaces/i-app.js} +0 -0
  108. /package/dist/{device → app}/interfaces/i-natigo.d.ts +0 -0
  109. /package/dist/{partners/interfaces/i-partner.js → app/interfaces/i-natigo.js} +0 -0
  110. /package/dist/{partners → app}/interfaces/index.js +0 -0
  111. /package/dist/{partners → partner}/entities/index.d.ts +0 -0
  112. /package/dist/{partners → partner}/entities/index.js +0 -0
  113. /package/dist/{partners → partner}/index.d.ts +0 -0
  114. /package/dist/{partners → partner}/index.js +0 -0
  115. /package/dist/{partners → partner}/interfaces/index.d.ts +0 -0
@@ -0,0 +1,7 @@
1
+ import { ICarouselImage } from '../interfaces';
2
+ export declare class CarouselImageEntity implements ICarouselImage {
3
+ caption?: string;
4
+ id: string;
5
+ url: string;
6
+ constructor(data?: Partial<CarouselImageEntity>);
7
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CarouselImageEntity = void 0;
4
+ var CarouselImageEntity = /** @class */ (function () {
5
+ // #endregion Properties (3)
6
+ // #region Constructors (1)
7
+ function CarouselImageEntity(data) {
8
+ // #region Properties (3)
9
+ this.caption = '';
10
+ this.id = '';
11
+ this.url = '';
12
+ if (data) {
13
+ for (var key in data) {
14
+ if (data.hasOwnProperty(key) && key in this) {
15
+ this[key] = data[key];
16
+ }
17
+ }
18
+ }
19
+ }
20
+ return CarouselImageEntity;
21
+ }());
22
+ exports.CarouselImageEntity = CarouselImageEntity;
@@ -2,7 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CoordsEntity = void 0;
4
4
  var CoordsEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
5
7
  function CoordsEntity(data) {
8
+ // #region Properties (2)
6
9
  this.latitude = 0;
7
10
  this.longitude = 0;
8
11
  if (data) {
@@ -1,5 +1,6 @@
1
1
  export { AddressEntity } from './address.entity';
2
2
  export { BaseEntity } from './base.entity';
3
+ export { CarouselImageEntity } from './carousel-image.entity';
3
4
  export { CoordsEntity } from './coords.entity';
4
5
  export { DeliveryAreaEntity } from './delivery-area.entity';
5
6
  export { DeliveryAreaFixedEntity } from './dellivery-area-fixed.entity';
@@ -11,3 +12,4 @@ export { PaymentProviderAgentEntity } from './payment-provider-agent.entity';
11
12
  export { PaymentProviderEntity } from './payment-provider.entity';
12
13
  export { PaymentTokenDataEntity } from './payment-token-data.entity';
13
14
  export { PaymentTokenEntity } from './payment-token.entity';
15
+ export { RatingEntity } from './rating.entity';
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentTokenEntity = exports.PaymentTokenDataEntity = exports.PaymentProviderEntity = exports.PaymentProviderAgentEntity = exports.PaymentMethodEntity = exports.OriginEntity = exports.MobyoApiConfigEntity = exports.MessagerChannelEntity = exports.DeliveryAreaFixedEntity = exports.DeliveryAreaEntity = exports.CoordsEntity = exports.BaseEntity = exports.AddressEntity = void 0;
3
+ exports.RatingEntity = exports.PaymentTokenEntity = exports.PaymentTokenDataEntity = exports.PaymentProviderEntity = exports.PaymentProviderAgentEntity = exports.PaymentMethodEntity = exports.OriginEntity = exports.MobyoApiConfigEntity = exports.MessagerChannelEntity = exports.DeliveryAreaFixedEntity = exports.DeliveryAreaEntity = 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");
7
7
  Object.defineProperty(exports, "BaseEntity", { enumerable: true, get: function () { return base_entity_1.BaseEntity; } });
8
+ var carousel_image_entity_1 = require("./carousel-image.entity");
9
+ Object.defineProperty(exports, "CarouselImageEntity", { enumerable: true, get: function () { return carousel_image_entity_1.CarouselImageEntity; } });
8
10
  var coords_entity_1 = require("./coords.entity");
9
11
  Object.defineProperty(exports, "CoordsEntity", { enumerable: true, get: function () { return coords_entity_1.CoordsEntity; } });
10
12
  var delivery_area_entity_1 = require("./delivery-area.entity");
@@ -27,3 +29,5 @@ var payment_token_data_entity_1 = require("./payment-token-data.entity");
27
29
  Object.defineProperty(exports, "PaymentTokenDataEntity", { enumerable: true, get: function () { return payment_token_data_entity_1.PaymentTokenDataEntity; } });
28
30
  var payment_token_entity_1 = require("./payment-token.entity");
29
31
  Object.defineProperty(exports, "PaymentTokenEntity", { enumerable: true, get: function () { return payment_token_entity_1.PaymentTokenEntity; } });
32
+ var rating_entity_1 = require("./rating.entity");
33
+ Object.defineProperty(exports, "RatingEntity", { enumerable: true, get: function () { return rating_entity_1.RatingEntity; } });
@@ -0,0 +1,8 @@
1
+ import { IRating } from '../interfaces/i-rating';
2
+ export declare class RatingEntity implements IRating {
3
+ comment?: string;
4
+ createdAt: number;
5
+ rating: number;
6
+ userId: string;
7
+ constructor(data?: Partial<RatingEntity>);
8
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RatingEntity = void 0;
4
+ var RatingEntity = /** @class */ (function () {
5
+ // #endregion Properties (4)
6
+ // #region Constructors (1)
7
+ function RatingEntity(data) {
8
+ // #region Properties (4)
9
+ this.comment = '';
10
+ this.createdAt = Date.now();
11
+ this.rating = 5;
12
+ this.userId = '';
13
+ if (data) {
14
+ for (var key in data) {
15
+ if (data.hasOwnProperty(key) && key in this) {
16
+ this[key] = data[key];
17
+ }
18
+ }
19
+ }
20
+ }
21
+ return RatingEntity;
22
+ }());
23
+ exports.RatingEntity = RatingEntity;
@@ -5,4 +5,5 @@ export { LeadOriginEnum } from './lead-origin.enum';
5
5
  export { PaymentChannelEnum } from './payment-channel.enum';
6
6
  export { PaymentModeEnum } from './payment-mode.enum';
7
7
  export { PaymentTypeEnum } from './payment-type.enum';
8
+ export { PlatfomrEnum } from './platform.enum';
8
9
  export { PaymentProviderEnum } from './providers.enum';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PaymentProviderEnum = exports.PaymentTypeEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.DocTypeEnum = exports.BooleanStringEnum = void 0;
3
+ exports.PaymentProviderEnum = exports.PlatfomrEnum = exports.PaymentTypeEnum = exports.PaymentModeEnum = exports.PaymentChannelEnum = exports.LeadOriginEnum = exports.IntervalTypeEnum = exports.DocTypeEnum = exports.BooleanStringEnum = void 0;
4
4
  var boolean_string_enum_1 = require("./boolean-string.enum");
5
5
  Object.defineProperty(exports, "BooleanStringEnum", { enumerable: true, get: function () { return boolean_string_enum_1.BooleanStringEnum; } });
6
6
  var doc_type_enum_1 = require("./doc-type.enum");
@@ -15,5 +15,7 @@ var payment_mode_enum_1 = require("./payment-mode.enum");
15
15
  Object.defineProperty(exports, "PaymentModeEnum", { enumerable: true, get: function () { return payment_mode_enum_1.PaymentModeEnum; } });
16
16
  var payment_type_enum_1 = require("./payment-type.enum");
17
17
  Object.defineProperty(exports, "PaymentTypeEnum", { enumerable: true, get: function () { return payment_type_enum_1.PaymentTypeEnum; } });
18
+ var platform_enum_1 = require("./platform.enum");
19
+ Object.defineProperty(exports, "PlatfomrEnum", { enumerable: true, get: function () { return platform_enum_1.PlatfomrEnum; } });
18
20
  var providers_enum_1 = require("./providers.enum");
19
21
  Object.defineProperty(exports, "PaymentProviderEnum", { enumerable: true, get: function () { return providers_enum_1.PaymentProviderEnum; } });
@@ -0,0 +1,9 @@
1
+ export declare enum OsEnum {
2
+ Android = "Android",
3
+ Ios = "Ios",
4
+ WindosPhone = "WindosPhone",
5
+ Windows = "Windows",
6
+ Linux = "Linux",
7
+ Other = "Other",
8
+ Unknown = "Unknown"
9
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OsEnum = void 0;
4
+ var OsEnum;
5
+ (function (OsEnum) {
6
+ OsEnum["Android"] = "Android";
7
+ OsEnum["Ios"] = "Ios";
8
+ OsEnum["WindosPhone"] = "WindosPhone";
9
+ OsEnum["Windows"] = "Windows";
10
+ OsEnum["Linux"] = "Linux";
11
+ OsEnum["Other"] = "Other";
12
+ OsEnum["Unknown"] = "Unknown";
13
+ })(OsEnum || (exports.OsEnum = OsEnum = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum PlatfomrEnum {
2
+ Mobile = "Mobile",
3
+ Web = "Web",
4
+ Desktop = "Desktop",
5
+ Other = "Other"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlatfomrEnum = void 0;
4
+ var PlatfomrEnum;
5
+ (function (PlatfomrEnum) {
6
+ PlatfomrEnum["Mobile"] = "Mobile";
7
+ PlatfomrEnum["Web"] = "Web";
8
+ PlatfomrEnum["Desktop"] = "Desktop";
9
+ PlatfomrEnum["Other"] = "Other";
10
+ })(PlatfomrEnum || (exports.PlatfomrEnum = PlatfomrEnum = {}));
@@ -0,0 +1,5 @@
1
+ export interface ICarouselImage {
2
+ caption?: string;
3
+ id: string;
4
+ url: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface IRating {
2
+ userId: string;
3
+ rating: number;
4
+ comment?: string;
5
+ createdAt: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +1,6 @@
1
1
  export { IAddress } from './i-address';
2
2
  export { IBase } from './i-base';
3
+ export { ICarouselImage } from './i-carousel-image';
3
4
  export { ICoords } from './i-coords';
4
5
  export { IDeliveryArea } from './i-delivery-area';
5
6
  export { IDeliveryAreaFixed } from './i-delivery-area-fixed';
@@ -11,3 +12,4 @@ export { IPaymentProvider } from './i-payment-provider';
11
12
  export { IPaymentProviderAgent } from './i-payment-provider-agent';
12
13
  export { IPaymentToken } from './i-payment-token';
13
14
  export { IPaymentTokenData } from './i-payment-token-data';
15
+ export { IRating } from './i-rating';
package/dist/index.d.ts CHANGED
@@ -7,7 +7,7 @@ export * from './iugu';
7
7
  export * from './lead';
8
8
  export * from './member';
9
9
  export * from './order';
10
- export * from './partners';
10
+ export * from './partner';
11
11
  export * from './plan';
12
12
  export * from './purchases';
13
13
  export * from './viacep';
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ __exportStar(require("./iugu"), exports);
23
23
  __exportStar(require("./lead"), exports);
24
24
  __exportStar(require("./member"), exports);
25
25
  __exportStar(require("./order"), exports);
26
- __exportStar(require("./partners"), exports);
26
+ __exportStar(require("./partner"), exports);
27
27
  __exportStar(require("./plan"), exports);
28
28
  __exportStar(require("./purchases"), exports);
29
29
  __exportStar(require("./viacep"), exports);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
@@ -0,0 +1,25 @@
1
+ import { AddressEntity, PaymentMethodEntity, PaymentProviderEntity } from '../../general';
2
+ import { DocTypeEnum } from '../../general/enums';
3
+ import { IPartner } from '../interfaces';
4
+ export declare class PartnerEntity implements IPartner {
5
+ active: boolean;
6
+ address: AddressEntity;
7
+ doc: string;
8
+ docType: DocTypeEnum;
9
+ email: string;
10
+ fullName: string;
11
+ id: string;
12
+ imageURL?: string;
13
+ internationalCode: string;
14
+ logoURL?: string;
15
+ name: string;
16
+ paymentProvider: PaymentProviderEntity;
17
+ paymentsMethods: PaymentMethodEntity[];
18
+ phoneNumber: string;
19
+ pubsubTopic: string;
20
+ sandbox: boolean;
21
+ tags: string[];
22
+ updatedAt: number;
23
+ version: string;
24
+ constructor(data?: Partial<PartnerEntity>);
25
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartnerEntity = void 0;
4
+ var general_1 = require("../../general");
5
+ var enums_1 = require("../../general/enums");
6
+ var PartnerEntity = /** @class */ (function () {
7
+ // #endregion Properties (18)
8
+ // #region Constructors (1)
9
+ function PartnerEntity(data) {
10
+ // #region Properties (18)
11
+ this.active = true;
12
+ this.address = new general_1.AddressEntity();
13
+ this.doc = '';
14
+ this.docType = enums_1.DocTypeEnum.CNPJ;
15
+ this.email = '';
16
+ this.fullName = '';
17
+ this.id = '';
18
+ this.imageURL = '';
19
+ this.internationalCode = '';
20
+ this.logoURL = '';
21
+ this.name = '';
22
+ this.paymentProvider = new general_1.PaymentProviderEntity();
23
+ this.paymentsMethods = [];
24
+ this.phoneNumber = '';
25
+ this.pubsubTopic = '';
26
+ this.sandbox = false;
27
+ this.tags = [];
28
+ this.updatedAt = 0;
29
+ this.version = '';
30
+ if (data) {
31
+ for (var key in data) {
32
+ if (data.hasOwnProperty(key) && key in this) {
33
+ this[key] = data[key];
34
+ }
35
+ }
36
+ }
37
+ }
38
+ return PartnerEntity;
39
+ }());
40
+ exports.PartnerEntity = PartnerEntity;
@@ -0,0 +1,23 @@
1
+ import { IAddress, IPaymentMethod, IPaymentProvider } from '../../general';
2
+ import { DocTypeEnum } from '../../general/enums';
3
+ export interface IPartner {
4
+ active: boolean;
5
+ address: IAddress;
6
+ doc: string;
7
+ docType: DocTypeEnum;
8
+ email: string;
9
+ fullName: string;
10
+ id: string;
11
+ imageURL?: string;
12
+ internationalCode: string;
13
+ logoURL?: string;
14
+ name: string;
15
+ paymentProvider: IPaymentProvider;
16
+ paymentsMethods: IPaymentMethod[];
17
+ phoneNumber: string;
18
+ pubsubTopic: string;
19
+ sandbox: boolean;
20
+ tags: string[];
21
+ updatedAt: number;
22
+ version: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {},
6
6
  "peerDependencies": {},
@@ -1,19 +0,0 @@
1
- export class NatiGoEntity {
2
- // #region Properties (4)
3
- isForAdultsOnly = false;
4
- logoUrl = '';
5
- openLockRequired = true;
6
- siteDescription = '';
7
- // #endregion Properties (4)
8
- // #region Constructors (1)
9
- constructor(data) {
10
- if (data) {
11
- for (let key in data) {
12
- if (data.hasOwnProperty(key) && key in this) {
13
- this[key] = data[key];
14
- }
15
- }
16
- }
17
- }
18
- }
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aWdvLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9kZXZpY2UvZW50aXRpZXMvbmF0aWdvLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQSxNQUFNLE9BQU8sWUFBWTtJQUNyQix5QkFBeUI7SUFFbEIsZUFBZSxHQUFZLEtBQUssQ0FBQztJQUNqQyxPQUFPLEdBQVcsRUFBRSxDQUFDO0lBQ3JCLGdCQUFnQixHQUFZLElBQUksQ0FBQztJQUNqQyxlQUFlLEdBQVcsRUFBRSxDQUFDO0lBRXBDLDRCQUE0QjtJQUU1QiwyQkFBMkI7SUFFM0IsWUFBWSxJQUE0QjtRQUNwQyxJQUFJLElBQUksRUFBRTtZQUNOLEtBQUssSUFBSSxHQUFHLElBQUksSUFBSSxFQUFFO2dCQUNsQixJQUFJLElBQUksQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLElBQU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KDEpXG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1uYXRpZ28uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZGV2aWNlL2ludGVyZmFjZXMvaS1uYXRpZ28udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSU5hdGlnbyB7XG4gICAgaXNGb3JBZHVsdHNPbmx5OiBib29sZWFuO1xuICAgIG9wZW5Mb2NrUmVxdWlyZWQ6IGJvb2xlYW47XG4gICAgc2l0ZURlc2NyaXB0aW9uOiBzdHJpbmc7XG4gICAgbG9nb1VybDogc3RyaW5nO1xufVxuIl19
@@ -1,2 +0,0 @@
1
- export { PartnerEntity } from './partner.entity';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGFydG5lcnMvZW50aXRpZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiXG5leHBvcnQgeyBQYXJ0bmVyRW50aXR5IH0gZnJvbSAnLi9wYXJ0bmVyLmVudGl0eSc7XG4iXX0=
@@ -1,23 +0,0 @@
1
- import { AddressEntity, BaseEntity, PaymentProviderEntity } from '../../general';
2
- import { DocTypeEnum } from '../../general/enums';
3
- export class PartnerEntity extends BaseEntity {
4
- // #region Properties (5)
5
- address = new AddressEntity();
6
- doc = '';
7
- docType = DocTypeEnum.CNPJ;
8
- name = '';
9
- paymentProvider = new PaymentProviderEntity();
10
- // #endregion Properties (5)
11
- // #region Constructors (1)
12
- constructor(data) {
13
- super(data);
14
- if (data) {
15
- for (let key in data) {
16
- if (data.hasOwnProperty(key) && key in this) {
17
- this[key] = data[key];
18
- }
19
- }
20
- }
21
- }
22
- }
23
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFydG5lci5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGFydG5lcnMvZW50aXRpZXMvcGFydG5lci5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxVQUFVLEVBQUUscUJBQXFCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakYsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBR2xELE1BQU0sT0FBTyxhQUFjLFNBQVEsVUFBVTtJQUN6Qyx5QkFBeUI7SUFFbEIsT0FBTyxHQUFrQixJQUFJLGFBQWEsRUFBRSxDQUFDO0lBQzdDLEdBQUcsR0FBVyxFQUFFLENBQUM7SUFDakIsT0FBTyxHQUFnQixXQUFXLENBQUMsSUFBSSxDQUFDO0lBQ3hDLElBQUksR0FBVyxFQUFFLENBQUM7SUFDbEIsZUFBZSxHQUEwQixJQUFJLHFCQUFxQixFQUFFLENBQUM7SUFFNUUsNEJBQTRCO0lBRTVCLDJCQUEyQjtJQUUzQixZQUFZLElBQTZCO1FBQ3JDLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUNaLElBQUksSUFBSSxFQUFFO1lBQ04sS0FBSyxJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUU7Z0JBQ2xCLElBQUksSUFBSSxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsSUFBSSxHQUFHLElBQUksSUFBSSxFQUFFO29CQUN4QyxJQUFZLENBQUMsR0FBRyxDQUFDLEdBQUksSUFBWSx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cclxuICAgICAgICAgICAgZm9yIChsZXQga2V5IGluIGRhdGEpIHtcclxuICAgICAgICAgICAgICAgIGlmIChkYXRhLmhhc093blByb3BlcnR5KGtleSkgJiYga2V5IGluIHRoaXMpIHtcclxuICAgICAgICAgICAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH1cclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXHJcbn1cclxuIl19
@@ -1,3 +0,0 @@
1
- export * from './entities';
2
- export * from './interfaces';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGFydG5lcnMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsY0FBYyxZQUFZLENBQUM7QUFDM0IsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJcbmV4cG9ydCAqIGZyb20gJy4vZW50aXRpZXMnO1xuZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzJztcblxuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1wYXJ0bmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3BhcnRuZXJzL2ludGVyZmFjZXMvaS1wYXJ0bmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJQWRkcmVzcywgSUJhc2UsIElQYXltZW50UHJvdmlkZXIgfSBmcm9tICcuLi8uLi9nZW5lcmFsJztcclxuaW1wb3J0IHsgRG9jVHlwZUVudW0gfSBmcm9tICcuLi8uLi9nZW5lcmFsL2VudW1zJztcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgSVBhcnRuZXIgZXh0ZW5kcyBJQmFzZSB7XHJcbiAgICAvLyAjcmVnaW9uIFByb3BlcnRpZXMgKDQpXHJcblxyXG4gICAgZG9jOiBzdHJpbmc7XHJcbiAgICBkb2NUeXBlOiBEb2NUeXBlRW51bTtcclxuICAgIG5hbWU6IHN0cmluZztcclxuICAgIHBheW1lbnRQcm92aWRlcjogSVBheW1lbnRQcm92aWRlcjtcclxuICAgIGFkZHJlc3M6IElBZGRyZXNzO1xyXG5cclxuICAgIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoNClcclxufVxyXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGFydG5lcnMvaW50ZXJmYWNlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiXG5leHBvcnQgeyBJUGFydG5lciB9IGZyb20gJy4vaS1wYXJ0bmVyJztcbiJdfQ==
@@ -1,11 +0,0 @@
1
- import { AddressEntity, BaseEntity, PaymentProviderEntity } from '../../general';
2
- import { DocTypeEnum } from '../../general/enums';
3
- import { IPartner } from '../interfaces';
4
- export declare class PartnerEntity extends BaseEntity implements IPartner {
5
- address: AddressEntity;
6
- doc: string;
7
- docType: DocTypeEnum;
8
- name: string;
9
- paymentProvider: PaymentProviderEntity;
10
- constructor(data?: Partial<PartnerEntity>);
11
- }
@@ -1,44 +0,0 @@
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.PartnerEntity = void 0;
19
- var general_1 = require("../../general");
20
- var enums_1 = require("../../general/enums");
21
- var PartnerEntity = /** @class */ (function (_super) {
22
- __extends(PartnerEntity, _super);
23
- // #endregion Properties (5)
24
- // #region Constructors (1)
25
- function PartnerEntity(data) {
26
- var _this = _super.call(this, data) || this;
27
- // #region Properties (5)
28
- _this.address = new general_1.AddressEntity();
29
- _this.doc = '';
30
- _this.docType = enums_1.DocTypeEnum.CNPJ;
31
- _this.name = '';
32
- _this.paymentProvider = new general_1.PaymentProviderEntity();
33
- if (data) {
34
- for (var key in data) {
35
- if (data.hasOwnProperty(key) && key in _this) {
36
- _this[key] = data[key];
37
- }
38
- }
39
- }
40
- return _this;
41
- }
42
- return PartnerEntity;
43
- }(general_1.BaseEntity));
44
- exports.PartnerEntity = PartnerEntity;
@@ -1,9 +0,0 @@
1
- import { IAddress, IBase, IPaymentProvider } from '../../general';
2
- import { DocTypeEnum } from '../../general/enums';
3
- export interface IPartner extends IBase {
4
- doc: string;
5
- docType: DocTypeEnum;
6
- name: string;
7
- paymentProvider: IPaymentProvider;
8
- address: IAddress;
9
- }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes