cecon-interfaces 1.0.25 → 1.0.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) 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/i-natigo.js +2 -0
  15. package/dist/app/interfaces/index.d.ts +2 -0
  16. package/dist/app/interfaces/index.js +2 -0
  17. package/dist/app/types/app-config.type.d.ts +2 -0
  18. package/dist/app/types/app-config.type.js +2 -0
  19. package/dist/app/types/index.d.ts +1 -0
  20. package/dist/app/types/index.js +2 -0
  21. package/dist/device/entities/device.entity.d.ts +5 -4
  22. package/dist/device/entities/device.entity.js +6 -7
  23. package/dist/device/entities/index.d.ts +0 -1
  24. package/dist/device/entities/index.js +1 -3
  25. package/dist/device/entities/installed-apps.entity.d.ts +18 -0
  26. package/dist/device/entities/installed-apps.entity.js +32 -0
  27. package/dist/device/entities/metadata.entity.d.ts +1 -1
  28. package/dist/device/entities/metadata.entity.js +1 -1
  29. package/dist/device/interfaces/i-device.d.ts +5 -4
  30. package/dist/device/interfaces/i-installed-apps.d.ts +16 -0
  31. package/dist/device/interfaces/i-installed-apps.js +2 -0
  32. package/dist/device/interfaces/index.d.ts +0 -1
  33. package/dist/esm2022/app/entities/app.entity.mjs +33 -0
  34. package/dist/esm2022/app/entities/index.mjs +3 -0
  35. package/dist/esm2022/app/entities/natigo.entity.mjs +19 -0
  36. package/dist/esm2022/app/enums/app-category.enum.mjs +32 -0
  37. package/dist/esm2022/app/enums/header-type.enum.mjs +6 -0
  38. package/dist/esm2022/app/enums/index.mjs +3 -0
  39. package/dist/esm2022/app/index.mjs +5 -0
  40. package/dist/esm2022/app/interfaces/i-app.mjs +2 -0
  41. package/dist/esm2022/app/interfaces/i-natigo.mjs +2 -0
  42. package/dist/esm2022/app/interfaces/index.mjs +2 -0
  43. package/dist/esm2022/app/types/app-config.type.mjs +2 -0
  44. package/dist/esm2022/app/types/index.mjs +2 -0
  45. package/dist/esm2022/device/entities/device.entity.mjs +7 -8
  46. package/dist/esm2022/device/entities/index.mjs +1 -2
  47. package/dist/esm2022/device/entities/installed-apps.entity.mjs +28 -0
  48. package/dist/esm2022/device/entities/metadata.entity.mjs +2 -2
  49. package/dist/esm2022/device/interfaces/i-device.mjs +1 -1
  50. package/dist/esm2022/device/interfaces/i-installed-apps.mjs +2 -0
  51. package/dist/esm2022/device/interfaces/index.mjs +1 -1
  52. package/dist/esm2022/general/entities/carousel-image.entity.mjs +18 -0
  53. package/dist/esm2022/general/entities/coords.entity.mjs +4 -1
  54. package/dist/esm2022/general/entities/index.mjs +3 -1
  55. package/dist/esm2022/general/entities/rating.entity.mjs +19 -0
  56. package/dist/esm2022/general/enums/index.mjs +2 -1
  57. package/dist/esm2022/general/enums/os.enum.mjs +11 -0
  58. package/dist/esm2022/general/enums/platform.enum.mjs +8 -0
  59. package/dist/esm2022/general/interfaces/i-carousel-image.mjs +2 -0
  60. package/dist/esm2022/general/interfaces/i-rating.mjs +2 -0
  61. package/dist/esm2022/general/interfaces/index.mjs +1 -1
  62. package/dist/fesm2022/cecon-interfaces.mjs +98 -39
  63. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  64. package/dist/general/entities/carousel-image.entity.d.ts +7 -0
  65. package/dist/general/entities/carousel-image.entity.js +22 -0
  66. package/dist/general/entities/coords.entity.js +3 -0
  67. package/dist/general/entities/index.d.ts +2 -0
  68. package/dist/general/entities/index.js +5 -1
  69. package/dist/general/entities/rating.entity.d.ts +8 -0
  70. package/dist/general/entities/rating.entity.js +23 -0
  71. package/dist/general/enums/index.d.ts +1 -0
  72. package/dist/general/enums/index.js +3 -1
  73. package/dist/general/enums/os.enum.d.ts +9 -0
  74. package/dist/general/enums/os.enum.js +13 -0
  75. package/dist/general/enums/platform.enum.d.ts +6 -0
  76. package/dist/general/enums/platform.enum.js +10 -0
  77. package/dist/general/interfaces/i-carousel-image.d.ts +5 -0
  78. package/dist/general/interfaces/i-carousel-image.js +2 -0
  79. package/dist/general/interfaces/i-rating.d.ts +6 -0
  80. package/dist/general/interfaces/i-rating.js +2 -0
  81. package/dist/general/interfaces/index.d.ts +2 -0
  82. package/dist/package.json +1 -1
  83. package/package.json +1 -1
  84. package/dist/esm2022/device/entities/natigo.entity.mjs +0 -19
  85. package/dist/esm2022/device/interfaces/i-natigo.mjs +0 -2
  86. /package/dist/{device → app}/entities/natigo.entity.d.ts +0 -0
  87. /package/dist/{device → app}/entities/natigo.entity.js +0 -0
  88. /package/dist/{device/interfaces/i-natigo.js → app/interfaces/i-app.js} +0 -0
  89. /package/dist/{device → app}/interfaces/i-natigo.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "dependencies": {
6
6
  "tslib": "^2.3.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.25",
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF0aWdvLmVudGl0eS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Ny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pZXMgKDQpXG5cbiAgICAvLyAjcmVnaW9uIENvbnN0cnVjdG9ycyAoMSlcblxuICAgIGNvbnN0cnVjdG9yKGRhdGE/OiBQYXJ0aWFsPE5hdGlHb0VudGl0eT4pIHtcbiAgICAgICAgaWYgKGRhdGEpIHtcbiAgICAgICAgICAgIGZvciAobGV0IGtleSBpbiBkYXRhKSB7XG4gICAgICAgICAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xuICAgICAgICAgICAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuXG4gICAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXG59XG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1uYXRpZ28uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvZGV2aWNlL2ludGVyZmFjZXMvaS1uYXRpZ28udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgSU5hdGlnbyB7XG4gICAgaXNGb3JBZHVsdHNPbmx5OiBib29sZWFuO1xuICAgIG9wZW5Mb2NrUmVxdWlyZWQ6IGJvb2xlYW47XG4gICAgc2l0ZURlc2NyaXB0aW9uOiBzdHJpbmc7XG4gICAgbG9nb1VybDogc3RyaW5nO1xufVxuIl19
File without changes
File without changes