cecon-interfaces 1.1.3 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. package/dist/esm2022/general/enums/os.enum.mjs +2 -1
  2. package/dist/esm2022/index.mjs +2 -1
  3. package/dist/esm2022/resume/entities/index.mjs +8 -0
  4. package/dist/esm2022/resume/entities/resume-collection.entity.mjs +19 -0
  5. package/dist/esm2022/resume/entities/resume-day.entity.mjs +21 -0
  6. package/dist/esm2022/resume/entities/resume-hour.entity.mjs +19 -0
  7. package/dist/esm2022/resume/entities/resume-month.entity.mjs +21 -0
  8. package/dist/esm2022/resume/entities/resume-total.entity.mjs +20 -0
  9. package/dist/esm2022/resume/entities/resume-year.entity.mjs +20 -0
  10. package/dist/esm2022/resume/entities/resume.entity.mjs +17 -0
  11. package/dist/esm2022/resume/index.mjs +3 -0
  12. package/dist/esm2022/resume/interfaces/i-resume-collection.mjs +2 -0
  13. package/dist/esm2022/resume/interfaces/i-resume-day.mjs +2 -0
  14. package/dist/esm2022/resume/interfaces/i-resume-hour.mjs +2 -0
  15. package/dist/esm2022/resume/interfaces/i-resume-month.mjs +2 -0
  16. package/dist/esm2022/resume/interfaces/i-resume-total.mjs +2 -0
  17. package/dist/esm2022/resume/interfaces/i-resume-year.mjs +2 -0
  18. package/dist/esm2022/resume/interfaces/i-resume.mjs +2 -0
  19. package/dist/esm2022/resume/interfaces/index.mjs +2 -0
  20. package/dist/fesm2022/cecon-interfaces.mjs +139 -1
  21. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  22. package/dist/general/enums/os.enum.d.ts +1 -0
  23. package/dist/general/enums/os.enum.js +1 -0
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +1 -0
  26. package/dist/package.json +1 -1
  27. package/dist/resume/entities/index.d.ts +7 -0
  28. package/dist/resume/entities/index.js +17 -0
  29. package/dist/resume/entities/resume-collection.entity.d.ts +8 -0
  30. package/dist/resume/entities/resume-collection.entity.js +23 -0
  31. package/dist/resume/entities/resume-day.entity.d.ts +11 -0
  32. package/dist/resume/entities/resume-day.entity.js +25 -0
  33. package/dist/resume/entities/resume-hour.entity.d.ts +8 -0
  34. package/dist/resume/entities/resume-hour.entity.js +23 -0
  35. package/dist/resume/entities/resume-month.entity.d.ts +11 -0
  36. package/dist/resume/entities/resume-month.entity.js +25 -0
  37. package/dist/resume/entities/resume-total.entity.d.ts +10 -0
  38. package/dist/resume/entities/resume-total.entity.js +24 -0
  39. package/dist/resume/entities/resume-year.entity.d.ts +10 -0
  40. package/dist/resume/entities/resume-year.entity.js +24 -0
  41. package/dist/resume/entities/resume.entity.d.ts +8 -0
  42. package/dist/resume/entities/resume.entity.js +21 -0
  43. package/dist/resume/index.d.ts +2 -0
  44. package/dist/resume/index.js +18 -0
  45. package/dist/resume/interfaces/i-resume-collection.d.ts +6 -0
  46. package/dist/resume/interfaces/i-resume-collection.js +2 -0
  47. package/dist/resume/interfaces/i-resume-day.d.ts +9 -0
  48. package/dist/resume/interfaces/i-resume-day.js +2 -0
  49. package/dist/resume/interfaces/i-resume-hour.d.ts +6 -0
  50. package/dist/resume/interfaces/i-resume-hour.js +2 -0
  51. package/dist/resume/interfaces/i-resume-month.d.ts +9 -0
  52. package/dist/resume/interfaces/i-resume-month.js +2 -0
  53. package/dist/resume/interfaces/i-resume-total.d.ts +8 -0
  54. package/dist/resume/interfaces/i-resume-total.js +2 -0
  55. package/dist/resume/interfaces/i-resume-year.d.ts +8 -0
  56. package/dist/resume/interfaces/i-resume-year.js +2 -0
  57. package/dist/resume/interfaces/i-resume.d.ts +6 -0
  58. package/dist/resume/interfaces/i-resume.js +2 -0
  59. package/dist/resume/interfaces/index.d.ts +7 -0
  60. package/dist/resume/interfaces/index.js +2 -0
  61. package/package.json +1 -1
@@ -4,6 +4,7 @@ export declare enum OsEnum {
4
4
  WINDOWS_PHONE = "WINDOWS_PHONE",
5
5
  WINDOWS = "WINDOWS",
6
6
  LINUX = "LINUX",
7
+ ELECTRON = "ELECTRON",
7
8
  OTHER = "OTHER",
8
9
  UNKNOWN = "UNKNOWN"
9
10
  }
@@ -8,6 +8,7 @@ var OsEnum;
8
8
  OsEnum["WINDOWS_PHONE"] = "WINDOWS_PHONE";
9
9
  OsEnum["WINDOWS"] = "WINDOWS";
10
10
  OsEnum["LINUX"] = "LINUX";
11
+ OsEnum["ELECTRON"] = "ELECTRON";
11
12
  OsEnum["OTHER"] = "OTHER";
12
13
  OsEnum["UNKNOWN"] = "UNKNOWN";
13
14
  })(OsEnum || (exports.OsEnum = OsEnum = {}));
package/dist/index.d.ts CHANGED
@@ -15,6 +15,7 @@ export * from './order';
15
15
  export * from './partner';
16
16
  export * from './plan';
17
17
  export * from './purchases';
18
+ export * from './resume';
18
19
  export * from './subscription';
19
20
  export * from './token';
20
21
  export * from './viacep';
package/dist/index.js CHANGED
@@ -31,6 +31,7 @@ __exportStar(require("./order"), exports);
31
31
  __exportStar(require("./partner"), exports);
32
32
  __exportStar(require("./plan"), exports);
33
33
  __exportStar(require("./purchases"), exports);
34
+ __exportStar(require("./resume"), exports);
34
35
  __exportStar(require("./subscription"), exports);
35
36
  __exportStar(require("./token"), exports);
36
37
  __exportStar(require("./viacep"), exports);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.03",
3
+ "version": "1.1.05",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,7 @@
1
+ export { ResumeCollectionEntity } from './resume-collection.entity';
2
+ export { ResumeDayEntity } from './resume-day.entity';
3
+ export { ResumeHourEntity } from './resume-hour.entity';
4
+ export { ResumeMonthEntity } from './resume-month.entity';
5
+ export { ResumeTotalEntity } from './resume-total.entity';
6
+ export { ResumeYearEntity } from './resume-year.entity';
7
+ export { ResumeEntity } from './resume.entity';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResumeEntity = exports.ResumeYearEntity = exports.ResumeTotalEntity = exports.ResumeMonthEntity = exports.ResumeHourEntity = exports.ResumeDayEntity = exports.ResumeCollectionEntity = void 0;
4
+ var resume_collection_entity_1 = require("./resume-collection.entity");
5
+ Object.defineProperty(exports, "ResumeCollectionEntity", { enumerable: true, get: function () { return resume_collection_entity_1.ResumeCollectionEntity; } });
6
+ var resume_day_entity_1 = require("./resume-day.entity");
7
+ Object.defineProperty(exports, "ResumeDayEntity", { enumerable: true, get: function () { return resume_day_entity_1.ResumeDayEntity; } });
8
+ var resume_hour_entity_1 = require("./resume-hour.entity");
9
+ Object.defineProperty(exports, "ResumeHourEntity", { enumerable: true, get: function () { return resume_hour_entity_1.ResumeHourEntity; } });
10
+ var resume_month_entity_1 = require("./resume-month.entity");
11
+ Object.defineProperty(exports, "ResumeMonthEntity", { enumerable: true, get: function () { return resume_month_entity_1.ResumeMonthEntity; } });
12
+ var resume_total_entity_1 = require("./resume-total.entity");
13
+ Object.defineProperty(exports, "ResumeTotalEntity", { enumerable: true, get: function () { return resume_total_entity_1.ResumeTotalEntity; } });
14
+ var resume_year_entity_1 = require("./resume-year.entity");
15
+ Object.defineProperty(exports, "ResumeYearEntity", { enumerable: true, get: function () { return resume_year_entity_1.ResumeYearEntity; } });
16
+ var resume_entity_1 = require("./resume.entity");
17
+ Object.defineProperty(exports, "ResumeEntity", { enumerable: true, get: function () { return resume_entity_1.ResumeEntity; } });
@@ -0,0 +1,8 @@
1
+ import { IResumeCollection } from '../interfaces';
2
+ export declare class ResumeCollectionEntity implements IResumeCollection {
3
+ actived: number;
4
+ deactived: number;
5
+ name: string;
6
+ total: number;
7
+ constructor(data?: Partial<ResumeCollectionEntity>);
8
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResumeCollectionEntity = void 0;
4
+ var ResumeCollectionEntity = /** @class */ (function () {
5
+ // #endregion Properties (4)
6
+ // #region Constructors (1)
7
+ function ResumeCollectionEntity(data) {
8
+ // #region Properties (4)
9
+ this.actived = 0;
10
+ this.deactived = 0;
11
+ this.name = '';
12
+ this.total = 0;
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 ResumeCollectionEntity;
22
+ }());
23
+ exports.ResumeCollectionEntity = ResumeCollectionEntity;
@@ -0,0 +1,11 @@
1
+ import { IResumeDay } from '../interfaces';
2
+ import { ResumeHourEntity } from './resume-hour.entity';
3
+ export declare class ResumeDayEntity implements IResumeDay {
4
+ average: number;
5
+ count: number;
6
+ day: number;
7
+ dayName: string;
8
+ months: ResumeHourEntity[];
9
+ total: number;
10
+ constructor(data?: Partial<ResumeDayEntity>);
11
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResumeDayEntity = void 0;
4
+ var ResumeDayEntity = /** @class */ (function () {
5
+ // #endregion Properties (5)
6
+ // #region Constructors (1)
7
+ function ResumeDayEntity(data) {
8
+ // #region Properties (5)
9
+ this.average = 0;
10
+ this.count = 0;
11
+ this.day = new Date().getUTCDate();
12
+ this.dayName = new Date().toLocaleString('pt-BR', { weekday: 'long' });
13
+ this.months = [];
14
+ this.total = 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 ResumeDayEntity;
24
+ }());
25
+ exports.ResumeDayEntity = ResumeDayEntity;
@@ -0,0 +1,8 @@
1
+ import { IResumeHour } from '../interfaces';
2
+ export declare class ResumeHourEntity implements IResumeHour {
3
+ average: number;
4
+ count: number;
5
+ hour: number;
6
+ total: number;
7
+ constructor(data?: Partial<ResumeHourEntity>);
8
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResumeHourEntity = void 0;
4
+ var ResumeHourEntity = /** @class */ (function () {
5
+ // #endregion Properties (4)
6
+ // #region Constructors (1)
7
+ function ResumeHourEntity(data) {
8
+ // #region Properties (4)
9
+ this.average = 0;
10
+ this.count = 0;
11
+ this.hour = 0;
12
+ this.total = 0;
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 ResumeHourEntity;
22
+ }());
23
+ exports.ResumeHourEntity = ResumeHourEntity;
@@ -0,0 +1,11 @@
1
+ import { IResumeMonth } from '../interfaces';
2
+ import { ResumeDayEntity } from './resume-day.entity';
3
+ export declare class ResumeMonthEntity implements IResumeMonth {
4
+ average: number;
5
+ count: number;
6
+ days: ResumeDayEntity[];
7
+ month: number;
8
+ monthName: string;
9
+ total: number;
10
+ constructor(data?: Partial<ResumeMonthEntity>);
11
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResumeMonthEntity = void 0;
4
+ var ResumeMonthEntity = /** @class */ (function () {
5
+ // #endregion Properties (5)
6
+ // #region Constructors (1)
7
+ function ResumeMonthEntity(data) {
8
+ // #region Properties (5)
9
+ this.average = 0;
10
+ this.count = 0;
11
+ this.days = [];
12
+ this.month = new Date().getUTCMonth();
13
+ this.monthName = new Date().toLocaleString('pt-BR', { month: 'long' });
14
+ this.total = 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 ResumeMonthEntity;
24
+ }());
25
+ exports.ResumeMonthEntity = ResumeMonthEntity;
@@ -0,0 +1,10 @@
1
+ import { IResumeTotal } from '../interfaces';
2
+ import { ResumeYearEntity } from './resume-year.entity';
3
+ export declare class ResumeTotalEntity implements IResumeTotal {
4
+ average: number;
5
+ collectionName: string;
6
+ count: number;
7
+ total: number;
8
+ years: ResumeYearEntity[];
9
+ constructor(data?: Partial<ResumeTotalEntity>);
10
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResumeTotalEntity = void 0;
4
+ var ResumeTotalEntity = /** @class */ (function () {
5
+ // #endregion Properties (5)
6
+ // #region Constructors (1)
7
+ function ResumeTotalEntity(data) {
8
+ // #region Properties (5)
9
+ this.average = 0;
10
+ this.collectionName = '';
11
+ this.count = 0;
12
+ this.total = 0;
13
+ this.years = [];
14
+ if (data) {
15
+ for (var key in data) {
16
+ if (data.hasOwnProperty(key) && key in this) {
17
+ this[key] = data[key];
18
+ }
19
+ }
20
+ }
21
+ }
22
+ return ResumeTotalEntity;
23
+ }());
24
+ exports.ResumeTotalEntity = ResumeTotalEntity;
@@ -0,0 +1,10 @@
1
+ import { IResumeYear } from '../interfaces';
2
+ import { ResumeMonthEntity } from './resume-month.entity';
3
+ export declare class ResumeYearEntity implements IResumeYear {
4
+ average: number;
5
+ count: number;
6
+ months: ResumeMonthEntity[];
7
+ year: number;
8
+ total: number;
9
+ constructor(data?: Partial<ResumeYearEntity>);
10
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResumeYearEntity = void 0;
4
+ var ResumeYearEntity = /** @class */ (function () {
5
+ // #endregion Properties (5)
6
+ // #region Constructors (1)
7
+ function ResumeYearEntity(data) {
8
+ // #region Properties (5)
9
+ this.average = 0;
10
+ this.count = 0;
11
+ this.months = [];
12
+ this.year = new Date().getUTCFullYear();
13
+ this.total = 0;
14
+ if (data) {
15
+ for (var key in data) {
16
+ if (data.hasOwnProperty(key) && key in this) {
17
+ this[key] = data[key];
18
+ }
19
+ }
20
+ }
21
+ }
22
+ return ResumeYearEntity;
23
+ }());
24
+ exports.ResumeYearEntity = ResumeYearEntity;
@@ -0,0 +1,8 @@
1
+ import { IResume } from '../interfaces';
2
+ import { ResumeCollectionEntity } from './resume-collection.entity';
3
+ import { ResumeTotalEntity } from './resume-total.entity';
4
+ export declare class ResumeEntity implements IResume {
5
+ counts: ResumeCollectionEntity[];
6
+ totals: ResumeTotalEntity[];
7
+ constructor(data?: Partial<ResumeEntity>);
8
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResumeEntity = void 0;
4
+ var ResumeEntity = /** @class */ (function () {
5
+ // #endregion Properties (2)
6
+ // #region Constructors (1)
7
+ function ResumeEntity(data) {
8
+ // #region Properties (2)
9
+ this.counts = [];
10
+ this.totals = [];
11
+ if (data) {
12
+ for (var key in data) {
13
+ if (data.hasOwnProperty(key) && key in this) {
14
+ this[key] = data[key];
15
+ }
16
+ }
17
+ }
18
+ }
19
+ return ResumeEntity;
20
+ }());
21
+ exports.ResumeEntity = ResumeEntity;
@@ -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,6 @@
1
+ export interface IResumeCollection {
2
+ name: string;
3
+ total: number;
4
+ actived: number;
5
+ deactived: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { IResumeHour } from './i-resume-hour';
2
+ export interface IResumeDay {
3
+ total: number;
4
+ day: number;
5
+ dayName: string;
6
+ average: number;
7
+ count: number;
8
+ months: IResumeHour[];
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface IResumeHour {
2
+ total: number;
3
+ average: number;
4
+ count: number;
5
+ hour: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { IResumeDay } from './i-resume-day';
2
+ export interface IResumeMonth {
3
+ total: number;
4
+ month: number;
5
+ monthName: string;
6
+ average: number;
7
+ count: number;
8
+ days: IResumeDay[];
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { IResumeYear } from './i-resume-year';
2
+ export interface IResumeTotal {
3
+ collectionName: string;
4
+ total: number;
5
+ average: number;
6
+ count: number;
7
+ years: IResumeYear[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { IResumeMonth } from './i-resume-month';
2
+ export interface IResumeYear {
3
+ total: number;
4
+ year: number;
5
+ average: number;
6
+ count: number;
7
+ months: IResumeMonth[];
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IResumeCollection } from './i-resume-collection';
2
+ import { IResumeTotal } from './i-resume-total';
3
+ export interface IResume {
4
+ counts: IResumeCollection[];
5
+ totals: IResumeTotal[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ export { IResume } from './i-resume';
2
+ export { IResumeCollection } from './i-resume-collection';
3
+ export { IResumeDay } from './i-resume-day';
4
+ export { IResumeHour } from './i-resume-hour';
5
+ export { IResumeMonth } from './i-resume-month';
6
+ export { IResumeTotal } from './i-resume-total';
7
+ export { IResumeYear } from './i-resume-year';
@@ -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.1.03",
3
+ "version": "1.1.05",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",