sowell-models 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +1 -1
  2. package/build/index.d.ts +28 -0
  3. package/build/index.d.ts.map +1 -0
  4. package/build/index.js +27 -0
  5. package/build/models/Agency/index.d.ts +26 -0
  6. package/build/models/Agency/index.d.ts.map +1 -0
  7. package/build/models/Agency/index.js +61 -0
  8. package/build/models/ApplicationRecord/index.d.ts +7 -0
  9. package/build/models/ApplicationRecord/index.d.ts.map +1 -0
  10. package/build/models/ApplicationRecord/index.js +18 -0
  11. package/build/models/AreaItem/index.d.ts +51 -0
  12. package/build/models/AreaItem/index.d.ts.map +1 -0
  13. package/build/models/AreaItem/index.js +101 -0
  14. package/build/models/Assignation/index.d.ts +17 -0
  15. package/build/models/Assignation/index.d.ts.map +1 -0
  16. package/build/models/Assignation/index.js +24 -0
  17. package/build/models/Author/index.d.ts +8 -0
  18. package/build/models/Author/index.d.ts.map +1 -0
  19. package/build/models/Author/index.js +22 -0
  20. package/build/models/Checklist/index.d.ts +41 -0
  21. package/build/models/Checklist/index.d.ts.map +1 -0
  22. package/build/models/Checklist/index.js +79 -0
  23. package/build/models/Checkpoint/index.d.ts +45 -0
  24. package/build/models/Checkpoint/index.d.ts.map +1 -0
  25. package/build/models/Checkpoint/index.js +85 -0
  26. package/build/models/Company/index.d.ts +22 -0
  27. package/build/models/Company/index.d.ts.map +1 -0
  28. package/build/models/Company/index.js +33 -0
  29. package/build/models/Export/index.d.ts +22 -0
  30. package/build/models/Export/index.d.ts.map +1 -0
  31. package/build/models/Export/index.js +34 -0
  32. package/build/models/Family/index.d.ts +20 -0
  33. package/build/models/Family/index.d.ts.map +1 -0
  34. package/build/models/Family/index.js +55 -0
  35. package/build/models/IssueReport/index.d.ts +135 -0
  36. package/build/models/IssueReport/index.d.ts.map +1 -0
  37. package/build/models/IssueReport/index.js +193 -0
  38. package/build/models/Location/index.d.ts +24 -0
  39. package/build/models/Location/index.d.ts.map +1 -0
  40. package/build/models/Location/index.js +33 -0
  41. package/build/models/Origin/index.d.ts +23 -0
  42. package/build/models/Origin/index.d.ts.map +1 -0
  43. package/build/models/Origin/index.js +58 -0
  44. package/build/models/Place/index.d.ts +49 -0
  45. package/build/models/Place/index.d.ts.map +1 -0
  46. package/build/models/Place/index.js +89 -0
  47. package/build/models/Provider/index.d.ts +22 -0
  48. package/build/models/Provider/index.d.ts.map +1 -0
  49. package/build/models/Provider/index.js +58 -0
  50. package/build/models/Reason/index.d.ts +24 -0
  51. package/build/models/Reason/index.d.ts.map +1 -0
  52. package/build/models/Reason/index.js +58 -0
  53. package/build/models/Residence/index.d.ts +30 -0
  54. package/build/models/Residence/index.d.ts.map +1 -0
  55. package/build/models/Residence/index.js +64 -0
  56. package/build/models/Sector/index.d.ts +33 -0
  57. package/build/models/Sector/index.d.ts.map +1 -0
  58. package/build/models/Sector/index.js +72 -0
  59. package/build/models/Spot/index.d.ts +28 -0
  60. package/build/models/Spot/index.d.ts.map +1 -0
  61. package/build/models/Spot/index.js +61 -0
  62. package/build/models/UnseenIssue/index.d.ts +14 -0
  63. package/build/models/UnseenIssue/index.d.ts.map +1 -0
  64. package/build/models/UnseenIssue/index.js +21 -0
  65. package/build/models/User/index.d.ts +53 -0
  66. package/build/models/User/index.d.ts.map +1 -0
  67. package/build/models/User/index.js +116 -0
  68. package/build/models/VisitProp/index.d.ts +31 -0
  69. package/build/models/VisitProp/index.d.ts.map +1 -0
  70. package/build/models/VisitProp/index.js +42 -0
  71. package/build/models/VisitReport/index.d.ts +95 -0
  72. package/build/models/VisitReport/index.d.ts.map +1 -0
  73. package/build/models/VisitReport/index.js +110 -0
  74. package/build/models/VisitSchedule/index.d.ts +42 -0
  75. package/build/models/VisitSchedule/index.d.ts.map +1 -0
  76. package/build/models/VisitSchedule/index.js +82 -0
  77. package/build/models/category/index.d.ts +34 -0
  78. package/build/models/category/index.d.ts.map +1 -0
  79. package/build/models/category/index.js +70 -0
  80. package/build/models/interfaces.d.ts +8 -0
  81. package/build/models/interfaces.d.ts.map +1 -0
  82. package/build/models/interfaces.js +1 -0
  83. package/build/models/types.d.ts +7 -0
  84. package/build/models/types.d.ts.map +1 -0
  85. package/build/models/types.js +9 -0
  86. package/build/utils/arrayDiffBy.d.ts +7 -0
  87. package/build/utils/arrayDiffBy.d.ts.map +1 -0
  88. package/build/utils/arrayDiffBy.js +9 -0
  89. package/package.json +24 -2
  90. package/src/index.ts +1 -0
  91. package/.editorconfig +0 -15
  92. package/.github/workflows/publish.yml +0 -24
  93. package/.github/workflows/remove-stale-branches.yml +0 -19
  94. package/.prettierrc +0 -6
  95. package/eslint.config.mjs +0 -43
  96. package/index.ts +0 -1
  97. package/tsconfig.json +0 -13
  98. package/tsconfig.release.json +0 -9
package/README.md CHANGED
@@ -17,4 +17,4 @@ Welcome to the **SoWell Models** repository! This project serves as a core libra
17
17
  To use the library in your project, add it as a dependency:
18
18
 
19
19
  ```bash
20
- yarn install @sowell/sowell-models
20
+ yarn install @sowell/sowell-models
@@ -0,0 +1,28 @@
1
+ export * from './models/Agency';
2
+ export * from './models/ApplicationRecord';
3
+ export * from './models/Author';
4
+ export * from './models/Checklist';
5
+ export * from './models/Checkpoint';
6
+ export * from './models/Company';
7
+ export * from './models/IssueReport';
8
+ export * from './models/category';
9
+ export * from './models/Reason';
10
+ export * from './models/AreaItem';
11
+ export * from './models/Place';
12
+ export * from './models/Residence';
13
+ export * from './models/User';
14
+ export * from './models/VisitReport';
15
+ export * from './models/VisitSchedule';
16
+ export * from './models/Spot';
17
+ export * from './models/interfaces';
18
+ export * from './models/types';
19
+ export * from './models/Sector';
20
+ export * from './models/Assignation';
21
+ export * from './models/Export';
22
+ export * from './models/VisitProp';
23
+ export * from './models/Family';
24
+ export * from './models/Location';
25
+ export * from './models/Origin';
26
+ export * from './models/Provider';
27
+ export * from './models/UnseenIssue';
28
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC"}
package/build/index.js ADDED
@@ -0,0 +1,27 @@
1
+ export * from './models/Agency';
2
+ export * from './models/ApplicationRecord';
3
+ export * from './models/Author';
4
+ export * from './models/Checklist';
5
+ export * from './models/Checkpoint';
6
+ export * from './models/Company';
7
+ export * from './models/IssueReport';
8
+ export * from './models/category';
9
+ export * from './models/Reason';
10
+ export * from './models/AreaItem';
11
+ export * from './models/Place';
12
+ export * from './models/Residence';
13
+ export * from './models/User';
14
+ export * from './models/VisitReport';
15
+ export * from './models/VisitSchedule';
16
+ export * from './models/Spot';
17
+ export * from './models/interfaces';
18
+ export * from './models/types';
19
+ export * from './models/Sector';
20
+ export * from './models/Assignation';
21
+ export * from './models/Export';
22
+ export * from './models/VisitProp';
23
+ export * from './models/Family';
24
+ export * from './models/Location';
25
+ export * from './models/Origin';
26
+ export * from './models/Provider';
27
+ export * from './models/UnseenIssue';
@@ -0,0 +1,26 @@
1
+ import { IModel, PouchCollection } from 'pouchorm';
2
+ import { ICompany, SPCompany } from '../Company';
3
+ import { ApplicationRecord } from '../ApplicationRecord';
4
+ import { IResidence, SPResidenceItem } from '../Residence';
5
+ import { CollectionFindOptions, IClearable } from '../interfaces';
6
+ export interface IAgency extends IModel {
7
+ _id?: string;
8
+ name: string;
9
+ hasScheduledVisit?: boolean;
10
+ residences?: IResidence[];
11
+ company?: ICompany;
12
+ }
13
+ export declare class AgencyCollection extends PouchCollection<IAgency> implements IClearable {
14
+ beforeInit(): Promise<void>;
15
+ clear(): Promise<void>;
16
+ find(selector?: Record<string, any> | Partial<IAgency> | undefined, opts?: CollectionFindOptions): Promise<IAgency[]>;
17
+ }
18
+ export declare class SPAgencyItem extends ApplicationRecord implements IAgency {
19
+ static jsonapiType: string;
20
+ name: string;
21
+ hasScheduledVisit: boolean;
22
+ company: SPCompany;
23
+ residences: SPResidenceItem[];
24
+ get _id(): string | undefined;
25
+ }
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/Agency/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAY,MAAM,UAAU,CAAC;AAG7D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAElE,MAAM,WAAW,OAAQ,SAAQ,MAAM;IACrC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;IAC1B,OAAO,CAAC,EAAE,QAAQ,CAAC;CACpB;AAED,qBAAa,gBACX,SAAQ,eAAe,CAAC,OAAO,CAC/B,YAAW,UAAU;IAEf,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,IAAI,CACR,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,SAAS,EAC7D,IAAI,CAAC,EAAE,qBAAqB;CAK/B;AACD,qBACa,YAAa,SAAQ,iBAAkB,YAAW,OAAO;IACpE,MAAM,CAAC,WAAW,SAAc;IACxB,IAAI,EAAG,MAAM,CAAC;IACd,iBAAiB,EAAG,OAAO,CAAC;IACvB,OAAO,EAAG,SAAS,CAAC;IACtB,UAAU,EAAG,eAAe,EAAE,CAAC;IAC1C,IAAI,GAAG,IAAI,MAAM,GAAG,SAAS,CAE5B;CACF"}
@@ -0,0 +1,61 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
8
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
+ return new (P || (P = Promise))(function (resolve, reject) {
10
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
13
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
14
+ });
15
+ };
16
+ import { Attr, BelongsTo, HasMany, Model } from 'spraypaint';
17
+ import { PouchCollection, PouchORM } from 'pouchorm';
18
+ import { orderBy } from 'lodash';
19
+ import { ApplicationRecord } from '../ApplicationRecord';
20
+ export class AgencyCollection extends PouchCollection {
21
+ beforeInit() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ });
24
+ }
25
+ clear() {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ yield PouchORM.clearDatabase('agencies');
28
+ });
29
+ }
30
+ find(selector, opts) {
31
+ const _super = Object.create(null, {
32
+ find: { get: () => super.find }
33
+ });
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ const result = yield _super.find.call(this, selector, opts);
36
+ return orderBy(result, ['name'], ['asc']);
37
+ });
38
+ }
39
+ }
40
+ let SPAgencyItem = class SPAgencyItem extends ApplicationRecord {
41
+ get _id() {
42
+ return this.id;
43
+ }
44
+ };
45
+ SPAgencyItem.jsonapiType = 'agencies';
46
+ __decorate([
47
+ Attr()
48
+ ], SPAgencyItem.prototype, "name", void 0);
49
+ __decorate([
50
+ Attr()
51
+ ], SPAgencyItem.prototype, "hasScheduledVisit", void 0);
52
+ __decorate([
53
+ BelongsTo()
54
+ ], SPAgencyItem.prototype, "company", void 0);
55
+ __decorate([
56
+ HasMany()
57
+ ], SPAgencyItem.prototype, "residences", void 0);
58
+ SPAgencyItem = __decorate([
59
+ Model()
60
+ ], SPAgencyItem);
61
+ export { SPAgencyItem };
@@ -0,0 +1,7 @@
1
+ import { SpraypaintBase } from "spraypaint";
2
+ export declare class ApplicationRecord extends SpraypaintBase {
3
+ static baseUrl: string;
4
+ static apiNamespace: string;
5
+ static generateAuthHeader(token: string): string;
6
+ }
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/ApplicationRecord/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,cAAc,EAAE,MAAM,YAAY,CAAA;AAElD,qBACa,iBAAkB,SAAQ,cAAc;IACnD,MAAM,CAAC,OAAO,EAA0B,MAAM,CAAA;IAC9C,MAAM,CAAC,YAAY,SAAK;IACxB,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,MAAM;CAGxC"}
@@ -0,0 +1,18 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { Model, SpraypaintBase } from "spraypaint";
8
+ let ApplicationRecord = class ApplicationRecord extends SpraypaintBase {
9
+ static generateAuthHeader(token) {
10
+ return `Bearer ${token}`;
11
+ }
12
+ };
13
+ ApplicationRecord.baseUrl = process.env.API_URL;
14
+ ApplicationRecord.apiNamespace = "";
15
+ ApplicationRecord = __decorate([
16
+ Model()
17
+ ], ApplicationRecord);
18
+ export { ApplicationRecord };
@@ -0,0 +1,51 @@
1
+ import { IModel, PouchCollection } from "pouchorm";
2
+ import { ICompany, SPCompany } from "../Company";
3
+ import { ApplicationRecord } from "../ApplicationRecord";
4
+ import { SPCategoryItem } from "../category";
5
+ import { CollectionFindOptions, IClearable } from "../interfaces";
6
+ import { SPSpotItem } from "../Spot";
7
+ import { SPChecklistItem } from "../Checklist";
8
+ import { ILocation, SPLocationItem } from "../Location";
9
+ export interface IAreaType extends IModel {
10
+ _id?: string;
11
+ name?: string;
12
+ iconUrl?: string;
13
+ depthLevel?: string;
14
+ locations?: ILocation[];
15
+ }
16
+ export interface IArea extends IModel {
17
+ _id?: string;
18
+ name?: string;
19
+ iconUrl?: string;
20
+ company?: ICompany;
21
+ areaType?: IAreaType;
22
+ nature?: "housing" | "other_spots" | "common_areas" | "zone";
23
+ }
24
+ export declare class AreaCollection extends PouchCollection<IArea> implements IClearable {
25
+ beforeInit(): Promise<void>;
26
+ clear(): Promise<void>;
27
+ find(selector?: Record<string, any> | Partial<IArea> | undefined, opts?: CollectionFindOptions): Promise<IArea[]>;
28
+ }
29
+ export declare class SPAreaType extends ApplicationRecord implements IAreaType {
30
+ static jsonapiType: string;
31
+ name: string;
32
+ iconUrl: string;
33
+ depthLevel: string;
34
+ locationTypes: SPAreaItem[];
35
+ locations: SPLocationItem[];
36
+ get _id(): string | undefined;
37
+ }
38
+ export declare class SPAreaItem extends ApplicationRecord implements IArea {
39
+ static jsonapiType: string;
40
+ name: string;
41
+ iconUrl: string;
42
+ nature: "housing" | "other_spots" | "common_areas" | "zone";
43
+ depthLevel: string;
44
+ company: SPCompany;
45
+ areaType: SPAreaType;
46
+ checklists: SPChecklistItem[];
47
+ spcategoryItems: SPCategoryItem[];
48
+ spSpots: SPSpotItem[];
49
+ get _id(): string | undefined;
50
+ }
51
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/AreaItem/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAY,eAAe,EAAE,MAAM,UAAU,CAAA;AAG5D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAC5C,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEvD,MAAM,WAAW,SAAU,SAAQ,MAAM;IACvC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,SAAS,CAAC,EAAE,SAAS,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,KAAM,SAAQ,MAAM;IACnC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,MAAM,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,cAAc,GAAG,MAAM,CAAA;CAC7D;AAED,qBAAa,cACX,SAAQ,eAAe,CAAC,KAAK,CAC7B,YAAW,UAAU;IACf,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,IAAI,CACR,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,SAAS,EAC3D,IAAI,CAAC,EAAE,qBAAqB;CAK/B;AAED,qBACa,UACX,SAAQ,iBACR,YAAW,SAAS;IACpB,MAAM,CAAC,WAAW,SAAe;IACzB,IAAI,EAAG,MAAM,CAAA;IACf,OAAO,EAAG,MAAM,CAAA;IAChB,UAAU,EAAG,MAAM,CAAA;IACd,aAAa,EAAG,UAAU,EAAE,CAAA;IAC5B,SAAS,EAAG,cAAc,EAAE,CAAA;IACvC,IAAI,GAAG,IAAI,MAAM,GAAG,SAAS,CAE5B;CACF;AAED,qBACa,UAAW,SAAQ,iBAAkB,YAAW,KAAK;IAChE,MAAM,CAAC,WAAW,SAAU;IACpB,IAAI,EAAG,MAAM,CAAA;IACf,OAAO,EAAG,MAAM,CAAA;IAChB,MAAM,EAAG,SAAS,GAAG,aAAa,GAAG,cAAc,GAAG,MAAM,CAAA;IAC5D,UAAU,EAAG,MAAM,CAAA;IACZ,OAAO,EAAG,SAAS,CAAA;IACtB,QAAQ,EAAG,UAAU,CAAA;IACpB,UAAU,EAAG,eAAe,EAAE,CAAA;IAC9B,eAAe,EAAG,cAAc,EAAE,CAAA;IAClC,OAAO,EAAG,UAAU,EAAE,CAAA;IACjC,IAAI,GAAG,IAAI,MAAM,GAAG,SAAS,CAE5B;CACF"}
@@ -0,0 +1,101 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
8
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
+ return new (P || (P = Promise))(function (resolve, reject) {
10
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
13
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
14
+ });
15
+ };
16
+ import { Model, Attr, BelongsTo, HasMany, HasOne } from "spraypaint";
17
+ import { PouchORM, PouchCollection } from "pouchorm";
18
+ import { orderBy } from "lodash";
19
+ import { ApplicationRecord } from "../ApplicationRecord";
20
+ export class AreaCollection extends PouchCollection {
21
+ beforeInit() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ });
24
+ }
25
+ clear() {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ yield PouchORM.clearDatabase("areas");
28
+ });
29
+ }
30
+ find(selector, opts) {
31
+ const _super = Object.create(null, {
32
+ find: { get: () => super.find }
33
+ });
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ const result = yield _super.find.call(this, selector, opts);
36
+ return orderBy(result, ["name"], ["asc"]);
37
+ });
38
+ }
39
+ }
40
+ let SPAreaType = class SPAreaType extends ApplicationRecord {
41
+ get _id() {
42
+ return this.id;
43
+ }
44
+ };
45
+ SPAreaType.jsonapiType = "area_types";
46
+ __decorate([
47
+ Attr()
48
+ ], SPAreaType.prototype, "name", void 0);
49
+ __decorate([
50
+ Attr
51
+ ], SPAreaType.prototype, "iconUrl", void 0);
52
+ __decorate([
53
+ Attr
54
+ ], SPAreaType.prototype, "depthLevel", void 0);
55
+ __decorate([
56
+ HasMany()
57
+ ], SPAreaType.prototype, "locationTypes", void 0);
58
+ __decorate([
59
+ HasMany()
60
+ ], SPAreaType.prototype, "locations", void 0);
61
+ SPAreaType = __decorate([
62
+ Model()
63
+ ], SPAreaType);
64
+ export { SPAreaType };
65
+ let SPAreaItem = class SPAreaItem extends ApplicationRecord {
66
+ get _id() {
67
+ return this.id;
68
+ }
69
+ };
70
+ SPAreaItem.jsonapiType = "areas";
71
+ __decorate([
72
+ Attr()
73
+ ], SPAreaItem.prototype, "name", void 0);
74
+ __decorate([
75
+ Attr
76
+ ], SPAreaItem.prototype, "iconUrl", void 0);
77
+ __decorate([
78
+ Attr
79
+ ], SPAreaItem.prototype, "nature", void 0);
80
+ __decorate([
81
+ Attr
82
+ ], SPAreaItem.prototype, "depthLevel", void 0);
83
+ __decorate([
84
+ BelongsTo()
85
+ ], SPAreaItem.prototype, "company", void 0);
86
+ __decorate([
87
+ HasOne()
88
+ ], SPAreaItem.prototype, "areaType", void 0);
89
+ __decorate([
90
+ HasMany()
91
+ ], SPAreaItem.prototype, "checklists", void 0);
92
+ __decorate([
93
+ HasMany()
94
+ ], SPAreaItem.prototype, "spcategoryItems", void 0);
95
+ __decorate([
96
+ HasMany()
97
+ ], SPAreaItem.prototype, "spSpots", void 0);
98
+ SPAreaItem = __decorate([
99
+ Model()
100
+ ], SPAreaItem);
101
+ export { SPAreaItem };
@@ -0,0 +1,17 @@
1
+ import { ISector, SPSectorItem } from "../Sector";
2
+ import { IUser, SPUserItem } from "../User";
3
+ import { ApplicationRecord } from "../ApplicationRecord";
4
+ import { IModel } from "pouchorm";
5
+ export interface IAssignation extends IModel {
6
+ id?: string;
7
+ roles: string[];
8
+ user?: IUser;
9
+ sector?: ISector;
10
+ }
11
+ export declare class SPAssignation extends ApplicationRecord implements IAssignation {
12
+ static jsonapiType: string;
13
+ roles: string[];
14
+ user: SPUserItem;
15
+ sector: SPSectorItem;
16
+ }
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/Assignation/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAE3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,MAAM,WAAW,YAAa,SAAQ,MAAM;IAC1C,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAED,qBACa,aAAc,SAAQ,iBAAkB,YAAW,YAAY;IAC1E,MAAM,CAAC,WAAW,SAAiB;IAC3B,KAAK,EAAG,MAAM,EAAE,CAAA;IACX,IAAI,EAAG,UAAU,CAAA;IACjB,MAAM,EAAG,YAAY,CAAA;CACnC"}
@@ -0,0 +1,24 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { Attr, BelongsTo, Model } from "spraypaint";
8
+ import { ApplicationRecord } from "../ApplicationRecord";
9
+ let SPAssignation = class SPAssignation extends ApplicationRecord {
10
+ };
11
+ SPAssignation.jsonapiType = "assignations";
12
+ __decorate([
13
+ Attr()
14
+ ], SPAssignation.prototype, "roles", void 0);
15
+ __decorate([
16
+ BelongsTo()
17
+ ], SPAssignation.prototype, "user", void 0);
18
+ __decorate([
19
+ BelongsTo()
20
+ ], SPAssignation.prototype, "sector", void 0);
21
+ SPAssignation = __decorate([
22
+ Model()
23
+ ], SPAssignation);
24
+ export { SPAssignation };
@@ -0,0 +1,8 @@
1
+ import { SPUserItem } from "../User";
2
+ export declare class SPAuthor extends SPUserItem {
3
+ static jsonapiType: string;
4
+ }
5
+ export declare class SPAssignee extends SPUserItem {
6
+ static jsonapiType: string;
7
+ }
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/Author/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACpC,qBACa,QAAS,SAAQ,UAAU;IACtC,MAAM,CAAC,WAAW,SAAY;CAC/B;AAED,qBACa,UAAW,SAAQ,UAAU;IACxC,MAAM,CAAC,WAAW,SAAc;CACjC"}
@@ -0,0 +1,22 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { Model } from "spraypaint";
8
+ import { SPUserItem } from "../User";
9
+ let SPAuthor = class SPAuthor extends SPUserItem {
10
+ };
11
+ SPAuthor.jsonapiType = "authors";
12
+ SPAuthor = __decorate([
13
+ Model()
14
+ ], SPAuthor);
15
+ export { SPAuthor };
16
+ let SPAssignee = class SPAssignee extends SPUserItem {
17
+ };
18
+ SPAssignee.jsonapiType = "assignees";
19
+ SPAssignee = __decorate([
20
+ Model()
21
+ ], SPAssignee);
22
+ export { SPAssignee };
@@ -0,0 +1,41 @@
1
+ import { IModel, PouchCollection } from "pouchorm";
2
+ import { ICompany, SPCompany } from "../Company";
3
+ import { ApplicationRecord } from "../ApplicationRecord";
4
+ import { ICheckpoint, SPCheckpointItem } from "../Checkpoint";
5
+ import { CollectionFindOptions, IClearable } from "../interfaces";
6
+ import { IArea, SPAreaItem } from "../AreaItem";
7
+ import { IFamily, SPFamily } from "../Family";
8
+ export interface IChecklist extends IModel {
9
+ _id?: string;
10
+ id?: string;
11
+ name: string;
12
+ isPlanned?: boolean;
13
+ iconUrl?: string;
14
+ updatedAt?: Date;
15
+ company?: ICompany;
16
+ area?: IArea;
17
+ checkpoints?: ICheckpoint[];
18
+ family?: IFamily;
19
+ periodicity?: string;
20
+ allowedAgents?: string[];
21
+ }
22
+ export declare class ChecklistCollection extends PouchCollection<IChecklist> implements IClearable {
23
+ beforeInit(): Promise<void>;
24
+ clear(): Promise<void>;
25
+ find(selector?: Record<string, any> | Partial<IChecklist> | undefined, opts?: CollectionFindOptions): Promise<IChecklist[]>;
26
+ }
27
+ export declare class SPChecklistItem extends ApplicationRecord implements IChecklist {
28
+ static jsonapiType: string;
29
+ name: string;
30
+ isPlanned: boolean;
31
+ iconUrl: string;
32
+ updatedAt: Date;
33
+ periodicity: string;
34
+ allowedAgents: string[];
35
+ company: SPCompany;
36
+ family: SPFamily;
37
+ area: SPAreaItem;
38
+ checkpoints?: SPCheckpointItem[] | undefined;
39
+ get _id(): string | undefined;
40
+ }
41
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/Checklist/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAY,MAAM,UAAU,CAAA;AAG5D,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEhD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAC7D,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AAC7C,MAAM,WAAW,UAAW,SAAQ,MAAM;IACxC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ,WAAW,CAAC,EAAE,WAAW,EAAE,CAAA;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;CACzB;AAED,qBAAa,mBACX,SAAQ,eAAe,CAAC,UAAU,CAClC,YAAW,UAAU;IAEf,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,IAAI,CACR,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG,SAAS,EAChE,IAAI,CAAC,EAAE,qBAAqB,GAC3B,OAAO,CAAC,UAAU,EAAE,CAAC;CAIzB;AACD,qBACa,eAAgB,SAAQ,iBAAkB,YAAW,UAAU;IAC1E,MAAM,CAAC,WAAW,SAAe;IACzB,IAAI,EAAG,MAAM,CAAA;IACb,SAAS,EAAG,OAAO,CAAA;IACnB,OAAO,EAAG,MAAM,CAAA;IACE,SAAS,EAAG,IAAI,CAAA;IAClC,WAAW,EAAG,MAAM,CAAA;IACpB,aAAa,EAAG,MAAM,EAAE,CAAA;IACnB,OAAO,EAAG,SAAS,CAAA;IACnB,MAAM,EAAG,QAAQ,CAAA;IACpB,IAAI,EAAG,UAAU,CAAA;IAChB,WAAW,CAAC,EAAE,gBAAgB,EAAE,GAAG,SAAS,CAAA;IACvD,IAAI,GAAG,IAAI,MAAM,GAAG,SAAS,CAE5B;CACF"}
@@ -0,0 +1,79 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
8
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
+ return new (P || (P = Promise))(function (resolve, reject) {
10
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
13
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
14
+ });
15
+ };
16
+ import { Model, Attr, BelongsTo, HasMany, HasOne } from "spraypaint";
17
+ import { PouchCollection, PouchORM } from "pouchorm";
18
+ import { orderBy } from "lodash";
19
+ import { ApplicationRecord } from "../ApplicationRecord";
20
+ export class ChecklistCollection extends PouchCollection {
21
+ beforeInit() {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ });
24
+ }
25
+ clear() {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ yield PouchORM.clearDatabase("checklists");
28
+ });
29
+ }
30
+ find(selector, opts) {
31
+ const _super = Object.create(null, {
32
+ find: { get: () => super.find }
33
+ });
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ const result = yield _super.find.call(this, selector, opts);
36
+ return orderBy(result, ["name"], ["asc"]);
37
+ });
38
+ }
39
+ }
40
+ let SPChecklistItem = class SPChecklistItem extends ApplicationRecord {
41
+ get _id() {
42
+ return this.id;
43
+ }
44
+ };
45
+ SPChecklistItem.jsonapiType = "checklists";
46
+ __decorate([
47
+ Attr()
48
+ ], SPChecklistItem.prototype, "name", void 0);
49
+ __decorate([
50
+ Attr()
51
+ ], SPChecklistItem.prototype, "isPlanned", void 0);
52
+ __decorate([
53
+ Attr()
54
+ ], SPChecklistItem.prototype, "iconUrl", void 0);
55
+ __decorate([
56
+ Attr({ persist: false })
57
+ ], SPChecklistItem.prototype, "updatedAt", void 0);
58
+ __decorate([
59
+ Attr()
60
+ ], SPChecklistItem.prototype, "periodicity", void 0);
61
+ __decorate([
62
+ Attr()
63
+ ], SPChecklistItem.prototype, "allowedAgents", void 0);
64
+ __decorate([
65
+ BelongsTo()
66
+ ], SPChecklistItem.prototype, "company", void 0);
67
+ __decorate([
68
+ BelongsTo()
69
+ ], SPChecklistItem.prototype, "family", void 0);
70
+ __decorate([
71
+ HasOne()
72
+ ], SPChecklistItem.prototype, "area", void 0);
73
+ __decorate([
74
+ HasMany()
75
+ ], SPChecklistItem.prototype, "checkpoints", void 0);
76
+ SPChecklistItem = __decorate([
77
+ Model()
78
+ ], SPChecklistItem);
79
+ export { SPChecklistItem };
@@ -0,0 +1,45 @@
1
+ import { IModel, PouchCollection } from "pouchorm";
2
+ import { ICategory, SPCategoryItem } from "../category";
3
+ import { ApplicationRecord } from "../ApplicationRecord";
4
+ import { IChecklist, SPChecklistItem } from "../Checklist";
5
+ import { CollectionFindOptions, IClearable } from "../interfaces";
6
+ import { IVisitProp, SPVisitPropItem } from "../VisitProp";
7
+ import { ILocation, SPLocationItem } from "../Location";
8
+ export interface ICheckpoint extends IModel {
9
+ _id?: string;
10
+ question?: string;
11
+ description?: string;
12
+ descriptionImgs?: string[];
13
+ checklist?: IChecklist;
14
+ categoryId?: number;
15
+ category?: ICategory;
16
+ defaultReasonId?: number;
17
+ visitProps?: IVisitProp[];
18
+ locationId?: number;
19
+ location?: ILocation;
20
+ coefficient?: number;
21
+ order?: number;
22
+ disallowExclusion?: boolean;
23
+ }
24
+ export declare class CheckpointCollection extends PouchCollection<ICheckpoint> implements IClearable {
25
+ beforeInit(): Promise<void>;
26
+ clear(): Promise<void>;
27
+ find(selector?: Record<string, any> | Partial<ICheckpoint> | undefined, opts?: CollectionFindOptions): Promise<ICheckpoint[]>;
28
+ }
29
+ export declare class SPCheckpointItem extends ApplicationRecord implements ICheckpoint {
30
+ static jsonapiType: string;
31
+ question: string;
32
+ description: string;
33
+ descriptionImgs: string[];
34
+ categoryId: number;
35
+ defaultReasonId: number;
36
+ locationId: number;
37
+ coefficient: number;
38
+ order: number;
39
+ disallowExclusion: boolean;
40
+ category: SPCategoryItem;
41
+ checklist: SPChecklistItem;
42
+ location?: SPLocationItem | undefined;
43
+ visitProps?: SPVisitPropItem[] | undefined;
44
+ }
45
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/Checkpoint/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAY,MAAM,UAAU,CAAA;AAG5D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEvD,MAAM,WAAW,WAAY,SAAQ,MAAM;IACzC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,EAAE,CAAA;IAC1B,SAAS,CAAC,EAAE,UAAU,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,UAAU,EAAE,CAAA;IACzB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,iBAAiB,CAAC,EAAE,OAAO,CAAA;CAC5B;AAED,qBAAa,oBACX,SAAQ,eAAe,CAAC,WAAW,CACnC,YAAW,UAAU;IACf,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAI3B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,IAAI,CACR,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,SAAS,EACjE,IAAI,CAAC,EAAE,qBAAqB;CAK/B;AAED,qBACa,gBAAiB,SAAQ,iBAAkB,YAAW,WAAW;IAC5E,MAAM,CAAC,WAAW,SAAgB;IAC1B,QAAQ,EAAG,MAAM,CAAA;IACjB,WAAW,EAAG,MAAM,CAAA;IACpB,eAAe,EAAG,MAAM,EAAE,CAAA;IAC1B,UAAU,EAAG,MAAM,CAAA;IACnB,eAAe,EAAG,MAAM,CAAA;IACxB,UAAU,EAAG,MAAM,CAAA;IACnB,WAAW,EAAG,MAAM,CAAA;IACpB,KAAK,EAAG,MAAM,CAAA;IACd,iBAAiB,EAAG,OAAO,CAAA;IACtB,QAAQ,EAAG,cAAc,CAAA;IACzB,SAAS,EAAG,eAAe,CAAA;IAC3B,QAAQ,CAAC,EAAE,cAAc,GAAG,SAAS,CAAA;IACvC,UAAU,CAAC,EAAE,eAAe,EAAE,GAAG,SAAS,CAAA;CACtD"}