@eleva-io/erp-sdk 0.1.1 → 0.1.4
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.
- package/dist/client/http.d.ts +1 -0
- package/dist/client/http.js +6 -0
- package/dist/client/resources/horizontal/api.d.ts +2 -2
- package/dist/client/resources/horizontal/api.js +3 -3
- package/dist/client/resources/horizontal/communities.d.ts +13 -0
- package/dist/client/resources/horizontal/communities.js +53 -0
- package/dist/client/resources/horizontal/types.d.ts +47 -0
- package/dist/client/resources/horizontal/types.js +2 -0
- package/dist/client/resources/ticketing/types.d.ts +0 -3
- package/dist/client/utils/crud.d.ts +22 -0
- package/dist/client/utils/crud.js +52 -0
- package/dist/erp.d.ts +15 -12
- package/dist/erp.d.ts.map +1 -0
- package/dist/erp.js +24 -19
- package/dist/erp.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -0
- package/dist/modules/contacts/api.d.ts +9 -0
- package/dist/modules/contacts/api.d.ts.map +1 -0
- package/dist/modules/contacts/api.js +17 -0
- package/dist/modules/contacts/api.js.map +1 -0
- package/dist/modules/contacts/index.d.ts +3 -0
- package/dist/modules/contacts/index.d.ts.map +1 -0
- package/dist/modules/contacts/index.js +19 -0
- package/dist/modules/contacts/index.js.map +1 -0
- package/dist/modules/contacts/persons/api/addresses.d.ts +11 -0
- package/dist/modules/contacts/persons/api/addresses.d.ts.map +1 -0
- package/dist/modules/contacts/persons/api/addresses.js +27 -0
- package/dist/modules/contacts/persons/api/addresses.js.map +1 -0
- package/dist/modules/contacts/persons/api/index.d.ts +3 -0
- package/dist/modules/contacts/persons/api/index.d.ts.map +1 -0
- package/dist/modules/contacts/persons/api/index.js +19 -0
- package/dist/modules/contacts/persons/api/index.js.map +1 -0
- package/dist/modules/contacts/persons/api/persons.d.ts +10 -0
- package/dist/modules/contacts/persons/api/persons.d.ts.map +1 -0
- package/dist/modules/contacts/persons/api/persons.js +23 -0
- package/dist/modules/contacts/persons/api/persons.js.map +1 -0
- package/dist/modules/contacts/persons/index.d.ts +3 -0
- package/dist/modules/contacts/persons/index.d.ts.map +1 -0
- package/dist/modules/contacts/persons/index.js +19 -0
- package/dist/modules/contacts/persons/index.js.map +1 -0
- package/dist/modules/contacts/persons/types/address.d.ts +21 -0
- package/dist/modules/contacts/persons/types/address.d.ts.map +1 -0
- package/dist/modules/contacts/persons/types/address.js +3 -0
- package/dist/modules/contacts/persons/types/address.js.map +1 -0
- package/dist/modules/contacts/persons/types/index.d.ts +4 -0
- package/dist/modules/contacts/persons/types/index.d.ts.map +1 -0
- package/dist/modules/contacts/persons/types/index.js +20 -0
- package/dist/modules/contacts/persons/types/index.js.map +1 -0
- package/dist/modules/contacts/persons/types/person.d.ts +32 -0
- package/dist/modules/contacts/persons/types/person.d.ts.map +1 -0
- package/dist/modules/contacts/persons/types/person.js +9 -0
- package/dist/modules/contacts/persons/types/person.js.map +1 -0
- package/dist/modules/contacts/persons/types/person_address.d.ts +20 -0
- package/dist/modules/contacts/persons/types/person_address.d.ts.map +1 -0
- package/dist/modules/contacts/persons/types/person_address.js +3 -0
- package/dist/modules/contacts/persons/types/person_address.js.map +1 -0
- package/dist/modules/horizontal/api.d.ts +9 -0
- package/dist/modules/horizontal/api.d.ts.map +1 -0
- package/dist/modules/horizontal/api.js +17 -0
- package/dist/modules/horizontal/api.js.map +1 -0
- package/dist/modules/horizontal/communities/api/agents.d.ts +5 -0
- package/dist/modules/horizontal/communities/api/agents.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/agents.js +8 -0
- package/dist/modules/horizontal/communities/api/agents.js.map +1 -0
- package/dist/modules/horizontal/communities/api/blocks.d.ts +10 -0
- package/dist/modules/horizontal/communities/api/blocks.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/blocks.js +23 -0
- package/dist/modules/horizontal/communities/api/blocks.js.map +1 -0
- package/dist/modules/horizontal/communities/api/communities.d.ts +24 -0
- package/dist/modules/horizontal/communities/api/communities.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/communities.js +79 -0
- package/dist/modules/horizontal/communities/api/communities.js.map +1 -0
- package/dist/modules/horizontal/communities/api/communities_config.d.ts +11 -0
- package/dist/modules/horizontal/communities/api/communities_config.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/communities_config.js +36 -0
- package/dist/modules/horizontal/communities/api/communities_config.js.map +1 -0
- package/dist/modules/horizontal/communities/api/documents.d.ts +17 -0
- package/dist/modules/horizontal/communities/api/documents.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/documents.js +40 -0
- package/dist/modules/horizontal/communities/api/documents.js.map +1 -0
- package/dist/modules/horizontal/communities/api/employees.d.ts +13 -0
- package/dist/modules/horizontal/communities/api/employees.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/employees.js +28 -0
- package/dist/modules/horizontal/communities/api/employees.js.map +1 -0
- package/dist/modules/horizontal/communities/api/index.d.ts +11 -0
- package/dist/modules/horizontal/communities/api/index.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/index.js +27 -0
- package/dist/modules/horizontal/communities/api/index.js.map +1 -0
- package/dist/modules/horizontal/communities/api/properties.d.ts +9 -0
- package/dist/modules/horizontal/communities/api/properties.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/properties.js +25 -0
- package/dist/modules/horizontal/communities/api/properties.js.map +1 -0
- package/dist/modules/horizontal/communities/api/providers.d.ts +13 -0
- package/dist/modules/horizontal/communities/api/providers.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/providers.js +28 -0
- package/dist/modules/horizontal/communities/api/providers.js.map +1 -0
- package/dist/modules/horizontal/communities/api/receipts.d.ts +20 -0
- package/dist/modules/horizontal/communities/api/receipts.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/receipts.js +45 -0
- package/dist/modules/horizontal/communities/api/receipts.js.map +1 -0
- package/dist/modules/horizontal/communities/api/roles.d.ts +5 -0
- package/dist/modules/horizontal/communities/api/roles.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/roles.js +8 -0
- package/dist/modules/horizontal/communities/api/roles.js.map +1 -0
- package/dist/modules/horizontal/communities/index.d.ts +3 -0
- package/dist/modules/horizontal/communities/index.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/index.js +19 -0
- package/dist/modules/horizontal/communities/index.js.map +1 -0
- package/dist/modules/horizontal/communities/types/address.d.ts +25 -0
- package/dist/modules/horizontal/communities/types/address.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/address.js +3 -0
- package/dist/modules/horizontal/communities/types/address.js.map +1 -0
- package/dist/modules/horizontal/communities/types/agent.d.ts +9 -0
- package/dist/modules/horizontal/communities/types/agent.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/agent.js +3 -0
- package/dist/modules/horizontal/communities/types/agent.js.map +1 -0
- package/dist/modules/horizontal/communities/types/block.d.ts +20 -0
- package/dist/modules/horizontal/communities/types/block.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/block.js +3 -0
- package/dist/modules/horizontal/communities/types/block.js.map +1 -0
- package/dist/modules/horizontal/communities/types/community.d.ts +34 -0
- package/dist/modules/horizontal/communities/types/community.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/community.js +3 -0
- package/dist/modules/horizontal/communities/types/community.js.map +1 -0
- package/dist/modules/horizontal/communities/types/community_config.d.ts +16 -0
- package/dist/modules/horizontal/communities/types/community_config.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/community_config.js +3 -0
- package/dist/modules/horizontal/communities/types/community_config.js.map +1 -0
- package/dist/modules/horizontal/communities/types/document.d.ts +42 -0
- package/dist/modules/horizontal/communities/types/document.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/document.js +26 -0
- package/dist/modules/horizontal/communities/types/document.js.map +1 -0
- package/dist/modules/horizontal/communities/types/employee.d.ts +40 -0
- package/dist/modules/horizontal/communities/types/employee.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/employee.js +32 -0
- package/dist/modules/horizontal/communities/types/employee.js.map +1 -0
- package/dist/modules/horizontal/communities/types/index.d.ts +10 -0
- package/dist/modules/horizontal/communities/types/index.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/index.js +26 -0
- package/dist/modules/horizontal/communities/types/index.js.map +1 -0
- package/dist/modules/horizontal/communities/types/property.d.ts +45 -0
- package/dist/modules/horizontal/communities/types/property.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/property.js +18 -0
- package/dist/modules/horizontal/communities/types/property.js.map +1 -0
- package/dist/modules/horizontal/communities/types/provider.d.ts +40 -0
- package/dist/modules/horizontal/communities/types/provider.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/provider.js +32 -0
- package/dist/modules/horizontal/communities/types/provider.js.map +1 -0
- package/dist/modules/horizontal/communities/types/receipt.d.ts +63 -0
- package/dist/modules/horizontal/communities/types/receipt.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/receipt.js +19 -0
- package/dist/modules/horizontal/communities/types/receipt.js.map +1 -0
- package/dist/modules/horizontal/communities/types/roles.d.ts +12 -0
- package/dist/modules/horizontal/communities/types/roles.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/roles.js +3 -0
- package/dist/modules/horizontal/communities/types/roles.js.map +1 -0
- package/dist/modules/horizontal/communities/types/tag.d.ts +2 -0
- package/dist/modules/horizontal/communities/types/tag.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/tag.js +3 -0
- package/dist/modules/horizontal/communities/types/tag.js.map +1 -0
- package/dist/modules/horizontal/index.d.ts +3 -0
- package/dist/modules/horizontal/index.d.ts.map +1 -0
- package/dist/modules/horizontal/index.js +19 -0
- package/dist/modules/horizontal/index.js.map +1 -0
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +20 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/ticketing/api.d.ts +18 -0
- package/dist/modules/ticketing/api.d.ts.map +1 -0
- package/dist/modules/ticketing/api.js +46 -0
- package/dist/modules/ticketing/api.js.map +1 -0
- package/dist/modules/ticketing/index.d.ts +3 -0
- package/dist/modules/ticketing/index.d.ts.map +1 -0
- package/dist/modules/ticketing/index.js +19 -0
- package/dist/modules/ticketing/index.js.map +1 -0
- package/dist/modules/ticketing/types.d.ts +59 -0
- package/dist/modules/ticketing/types.d.ts.map +1 -0
- package/dist/modules/ticketing/types.js +25 -0
- package/dist/modules/ticketing/types.js.map +1 -0
- package/dist/tasks/std.d.ts +3 -3
- package/dist/types.d.ts +1 -5
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/crud.d.ts +26 -0
- package/dist/utils/crud.d.ts.map +1 -0
- package/dist/utils/crud.js +72 -0
- package/dist/utils/crud.js.map +1 -0
- package/dist/utils/http.d.ts +19 -0
- package/dist/utils/http.d.ts.map +1 -0
- package/dist/utils/http.js +115 -0
- package/dist/utils/http.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +20 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/signature.d.ts +6 -0
- package/dist/utils/signature.d.ts.map +1 -0
- package/dist/utils/signature.js +20 -0
- package/dist/utils/signature.js.map +1 -0
- package/dist/utils/types.d.ts +7 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +3 -0
- package/dist/utils/types.js.map +1 -0
- package/package.json +8 -6
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ContactPerson } from "@src/modules/contacts/persons/types/person";
|
|
2
|
+
import { CommunitySimpleBlock } from "./block";
|
|
3
|
+
export declare enum CommunityPropertyPersonType {
|
|
4
|
+
Owner = 1,
|
|
5
|
+
Authorized = 2,
|
|
6
|
+
Tenant = 3
|
|
7
|
+
}
|
|
8
|
+
export interface CommunityPropertyPerson {
|
|
9
|
+
personId: string;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
typeId: CommunityPropertyPersonType;
|
|
12
|
+
propertyId: string;
|
|
13
|
+
ownerPercentage: number;
|
|
14
|
+
}
|
|
15
|
+
export interface CommunityPropertyPersonExtended extends CommunityPropertyPerson {
|
|
16
|
+
person?: ContactPerson;
|
|
17
|
+
}
|
|
18
|
+
export type CreateCommunityPropertyPersonDTO = Omit<CommunityPropertyPerson, "propertyId" | "updatedAt">;
|
|
19
|
+
export type UpdateCommunityPropertyPersonDTO = Partial<Omit<CommunityPropertyPerson, "updatedAt">>;
|
|
20
|
+
export declare enum CommunityPropertyType {
|
|
21
|
+
Residential = 1,
|
|
22
|
+
Office = 2,
|
|
23
|
+
Garage = 3,
|
|
24
|
+
StorageRoom = 4,
|
|
25
|
+
Commercial = 5
|
|
26
|
+
}
|
|
27
|
+
export interface CommunityProperty {
|
|
28
|
+
id: string;
|
|
29
|
+
domainId: string;
|
|
30
|
+
name: string;
|
|
31
|
+
updatedAt: Date;
|
|
32
|
+
typeId: CommunityPropertyType;
|
|
33
|
+
blockId: string;
|
|
34
|
+
coefficient: number;
|
|
35
|
+
}
|
|
36
|
+
export interface CommunityPropertyExtended extends CommunityProperty {
|
|
37
|
+
persons: CommunityPropertyPersonExtended[];
|
|
38
|
+
block: CommunitySimpleBlock;
|
|
39
|
+
}
|
|
40
|
+
export interface CreateCommunityPropertyDTO {
|
|
41
|
+
entity: Omit<CommunityProperty, "id" | "domainId" | "blockId" | "updatedAt">;
|
|
42
|
+
persons: CreateCommunityPropertyPersonDTO[];
|
|
43
|
+
}
|
|
44
|
+
export type UpdateCommunityPropertyDTO = Partial<Omit<CommunityProperty, "id" | "domainId" | "blockId" | "updatedAt">>;
|
|
45
|
+
//# sourceMappingURL=property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAA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,gCAAgC,EAAE,CAAC;CAC7C;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAC9C,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC,CACrE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunityPropertyType = exports.CommunityPropertyPersonType = void 0;
|
|
4
|
+
var CommunityPropertyPersonType;
|
|
5
|
+
(function (CommunityPropertyPersonType) {
|
|
6
|
+
CommunityPropertyPersonType[CommunityPropertyPersonType["Owner"] = 1] = "Owner";
|
|
7
|
+
CommunityPropertyPersonType[CommunityPropertyPersonType["Authorized"] = 2] = "Authorized";
|
|
8
|
+
CommunityPropertyPersonType[CommunityPropertyPersonType["Tenant"] = 3] = "Tenant";
|
|
9
|
+
})(CommunityPropertyPersonType || (exports.CommunityPropertyPersonType = CommunityPropertyPersonType = {}));
|
|
10
|
+
var CommunityPropertyType;
|
|
11
|
+
(function (CommunityPropertyType) {
|
|
12
|
+
CommunityPropertyType[CommunityPropertyType["Residential"] = 1] = "Residential";
|
|
13
|
+
CommunityPropertyType[CommunityPropertyType["Office"] = 2] = "Office";
|
|
14
|
+
CommunityPropertyType[CommunityPropertyType["Garage"] = 3] = "Garage";
|
|
15
|
+
CommunityPropertyType[CommunityPropertyType["StorageRoom"] = 4] = "StorageRoom";
|
|
16
|
+
CommunityPropertyType[CommunityPropertyType["Commercial"] = 5] = "Commercial";
|
|
17
|
+
})(CommunityPropertyType || (exports.CommunityPropertyType = CommunityPropertyType = {}));
|
|
18
|
+
//# sourceMappingURL=property.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/property.ts"],"names":[],"mappings":";;;AAIA,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACrC,+EAAS,CAAA;IACT,yFAAc,CAAA;IACd,iFAAU,CAAA;AACZ,CAAC,EAJW,2BAA2B,2CAA3B,2BAA2B,QAItC;AAwBD,IAAY,qBAMX;AAND,WAAY,qBAAqB;IAC/B,+EAAe,CAAA;IACf,qEAAU,CAAA;IACV,qEAAU,CAAA;IACV,+EAAe,CAAA;IACf,6EAAc,CAAA;AAChB,CAAC,EANW,qBAAqB,qCAArB,qBAAqB,QAMhC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ContactPerson } from "@src/modules/contacts/persons/types";
|
|
2
|
+
export declare enum CommunityProviderType {
|
|
3
|
+
CleaningServices = 1,
|
|
4
|
+
GardeningAndLandscaping = 2,
|
|
5
|
+
Plumbing = 3,
|
|
6
|
+
ElectricalServices = 4,
|
|
7
|
+
Masonry = 5,
|
|
8
|
+
Painting = 6,
|
|
9
|
+
Elevators = 7,
|
|
10
|
+
HeatingAndDHW = 8,
|
|
11
|
+
AirConditioning = 9,
|
|
12
|
+
SwimmingPools = 10,
|
|
13
|
+
LegalServices = 11,
|
|
14
|
+
EnergyAudits = 12,
|
|
15
|
+
GrantConsultancy = 13,
|
|
16
|
+
SurveillanceAndPrivateSecurity = 14,
|
|
17
|
+
AccessControlSystems = 15,
|
|
18
|
+
FireProtectionSystems = 16,
|
|
19
|
+
WaterSupply = 17,
|
|
20
|
+
Electricity = 18,
|
|
21
|
+
Gas = 19,
|
|
22
|
+
CleaningAndConsumableSupplies = 20,
|
|
23
|
+
ArchitectureAndRenovations = 21,
|
|
24
|
+
WaterproofingAndInsulation = 22,
|
|
25
|
+
PestControl = 23,
|
|
26
|
+
Insurance = 24,
|
|
27
|
+
WasteManagement = 25
|
|
28
|
+
}
|
|
29
|
+
export interface CommunityProvider {
|
|
30
|
+
communityId: string;
|
|
31
|
+
personId: string;
|
|
32
|
+
typeId: CommunityProviderType;
|
|
33
|
+
updatedAt: Date;
|
|
34
|
+
}
|
|
35
|
+
export interface CommunityProviderExtended extends CommunityProvider {
|
|
36
|
+
person?: ContactPerson;
|
|
37
|
+
}
|
|
38
|
+
export type CreateCommunityProviderDTO = Omit<CommunityProvider, "communityId" | "updatedAt">;
|
|
39
|
+
export type UpdateCommunityProviderDTO = Partial<Omit<CommunityProvider, "updatedAt">>;
|
|
40
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAEpE,oBAAY,qBAAqB;IAC/B,gBAAgB,IAAI;IACpB,uBAAuB,IAAI;IAC3B,QAAQ,IAAI;IACZ,kBAAkB,IAAI;IACtB,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,SAAS,IAAI;IACb,aAAa,IAAI;IACjB,eAAe,IAAI;IACnB,aAAa,KAAK;IAClB,aAAa,KAAK;IAClB,YAAY,KAAK;IACjB,gBAAgB,KAAK;IACrB,8BAA8B,KAAK;IACnC,oBAAoB,KAAK;IACzB,qBAAqB,KAAK;IAC1B,WAAW,KAAK;IAChB,WAAW,KAAK;IAChB,GAAG,KAAK;IACR,6BAA6B,KAAK;IAClC,0BAA0B,KAAK;IAC/B,0BAA0B,KAAK;IAC/B,WAAW,KAAK;IAChB,SAAS,KAAK;IACd,eAAe,KAAK;CACrB;AAED,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,qBAAqB,CAAC;IAC9B,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,yBAA0B,SAAQ,iBAAiB;IAClE,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAC3C,iBAAiB,EACjB,aAAa,GAAG,WAAW,CAC5B,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAC9C,IAAI,CAAC,iBAAiB,EAAE,WAAW,CAAC,CACrC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunityProviderType = void 0;
|
|
4
|
+
var CommunityProviderType;
|
|
5
|
+
(function (CommunityProviderType) {
|
|
6
|
+
CommunityProviderType[CommunityProviderType["CleaningServices"] = 1] = "CleaningServices";
|
|
7
|
+
CommunityProviderType[CommunityProviderType["GardeningAndLandscaping"] = 2] = "GardeningAndLandscaping";
|
|
8
|
+
CommunityProviderType[CommunityProviderType["Plumbing"] = 3] = "Plumbing";
|
|
9
|
+
CommunityProviderType[CommunityProviderType["ElectricalServices"] = 4] = "ElectricalServices";
|
|
10
|
+
CommunityProviderType[CommunityProviderType["Masonry"] = 5] = "Masonry";
|
|
11
|
+
CommunityProviderType[CommunityProviderType["Painting"] = 6] = "Painting";
|
|
12
|
+
CommunityProviderType[CommunityProviderType["Elevators"] = 7] = "Elevators";
|
|
13
|
+
CommunityProviderType[CommunityProviderType["HeatingAndDHW"] = 8] = "HeatingAndDHW";
|
|
14
|
+
CommunityProviderType[CommunityProviderType["AirConditioning"] = 9] = "AirConditioning";
|
|
15
|
+
CommunityProviderType[CommunityProviderType["SwimmingPools"] = 10] = "SwimmingPools";
|
|
16
|
+
CommunityProviderType[CommunityProviderType["LegalServices"] = 11] = "LegalServices";
|
|
17
|
+
CommunityProviderType[CommunityProviderType["EnergyAudits"] = 12] = "EnergyAudits";
|
|
18
|
+
CommunityProviderType[CommunityProviderType["GrantConsultancy"] = 13] = "GrantConsultancy";
|
|
19
|
+
CommunityProviderType[CommunityProviderType["SurveillanceAndPrivateSecurity"] = 14] = "SurveillanceAndPrivateSecurity";
|
|
20
|
+
CommunityProviderType[CommunityProviderType["AccessControlSystems"] = 15] = "AccessControlSystems";
|
|
21
|
+
CommunityProviderType[CommunityProviderType["FireProtectionSystems"] = 16] = "FireProtectionSystems";
|
|
22
|
+
CommunityProviderType[CommunityProviderType["WaterSupply"] = 17] = "WaterSupply";
|
|
23
|
+
CommunityProviderType[CommunityProviderType["Electricity"] = 18] = "Electricity";
|
|
24
|
+
CommunityProviderType[CommunityProviderType["Gas"] = 19] = "Gas";
|
|
25
|
+
CommunityProviderType[CommunityProviderType["CleaningAndConsumableSupplies"] = 20] = "CleaningAndConsumableSupplies";
|
|
26
|
+
CommunityProviderType[CommunityProviderType["ArchitectureAndRenovations"] = 21] = "ArchitectureAndRenovations";
|
|
27
|
+
CommunityProviderType[CommunityProviderType["WaterproofingAndInsulation"] = 22] = "WaterproofingAndInsulation";
|
|
28
|
+
CommunityProviderType[CommunityProviderType["PestControl"] = 23] = "PestControl";
|
|
29
|
+
CommunityProviderType[CommunityProviderType["Insurance"] = 24] = "Insurance";
|
|
30
|
+
CommunityProviderType[CommunityProviderType["WasteManagement"] = 25] = "WasteManagement";
|
|
31
|
+
})(CommunityProviderType || (exports.CommunityProviderType = CommunityProviderType = {}));
|
|
32
|
+
//# sourceMappingURL=provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/provider.ts"],"names":[],"mappings":";;;AAEA,IAAY,qBA0BX;AA1BD,WAAY,qBAAqB;IAC/B,yFAAoB,CAAA;IACpB,uGAA2B,CAAA;IAC3B,yEAAY,CAAA;IACZ,6FAAsB,CAAA;IACtB,uEAAW,CAAA;IACX,yEAAY,CAAA;IACZ,2EAAa,CAAA;IACb,mFAAiB,CAAA;IACjB,uFAAmB,CAAA;IACnB,oFAAkB,CAAA;IAClB,oFAAkB,CAAA;IAClB,kFAAiB,CAAA;IACjB,0FAAqB,CAAA;IACrB,sHAAmC,CAAA;IACnC,kGAAyB,CAAA;IACzB,oGAA0B,CAAA;IAC1B,gFAAgB,CAAA;IAChB,gFAAgB,CAAA;IAChB,gEAAQ,CAAA;IACR,oHAAkC,CAAA;IAClC,8GAA+B,CAAA;IAC/B,8GAA+B,CAAA;IAC/B,gFAAgB,CAAA;IAChB,4EAAc,CAAA;IACd,wFAAoB,CAAA;AACtB,CAAC,EA1BW,qBAAqB,qCAArB,qBAAqB,QA0BhC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export declare enum ReceiptEntityType {
|
|
2
|
+
community = "community"
|
|
3
|
+
}
|
|
4
|
+
export declare enum ReceiptStatus {
|
|
5
|
+
pending = "pending",
|
|
6
|
+
paid = "paid"
|
|
7
|
+
}
|
|
8
|
+
export declare enum ReceiptCurrency {
|
|
9
|
+
EUR = "EUR",
|
|
10
|
+
USD = "USD",
|
|
11
|
+
MXN = "MXN"
|
|
12
|
+
}
|
|
13
|
+
export interface ReceiptAmount {
|
|
14
|
+
value: number;
|
|
15
|
+
currency: ReceiptCurrency;
|
|
16
|
+
}
|
|
17
|
+
export interface Receipt {
|
|
18
|
+
id: string;
|
|
19
|
+
domainId: string;
|
|
20
|
+
entityType: ReceiptEntityType;
|
|
21
|
+
entityId: string;
|
|
22
|
+
propertyId: string;
|
|
23
|
+
no: string;
|
|
24
|
+
status: ReceiptStatus;
|
|
25
|
+
amount: ReceiptAmount;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
datetime: Date;
|
|
28
|
+
createdAt: Date;
|
|
29
|
+
updatedAt: Date;
|
|
30
|
+
}
|
|
31
|
+
export type CreateReceiptDTO = Omit<Receipt, "id" | "domainId" | "entityType" | "entityId" | "propertyId" | "status" | "disabled" | "createdAt" | "updatedAt"> & {
|
|
32
|
+
status?: ReceiptStatus;
|
|
33
|
+
};
|
|
34
|
+
export type UpdateReceiptDTO = Partial<Pick<Receipt, "no" | "status" | "datetime" | "disabled"> & {
|
|
35
|
+
amount: Pick<ReceiptAmount, "value">;
|
|
36
|
+
}>;
|
|
37
|
+
export interface ReceiptDetailReading {
|
|
38
|
+
period: {
|
|
39
|
+
startAt: Date;
|
|
40
|
+
endAt: Date;
|
|
41
|
+
};
|
|
42
|
+
counter: {
|
|
43
|
+
init: number;
|
|
44
|
+
end: number;
|
|
45
|
+
};
|
|
46
|
+
value: number;
|
|
47
|
+
}
|
|
48
|
+
export interface ReceiptDetail {
|
|
49
|
+
id: string;
|
|
50
|
+
concept: string;
|
|
51
|
+
amount: ReceiptAmount;
|
|
52
|
+
reading?: ReceiptDetailReading;
|
|
53
|
+
}
|
|
54
|
+
export type CreateReceiptDetailDTO = Omit<ReceiptDetail, "id" | "reading" | "updatedAt"> & {
|
|
55
|
+
reading?: Omit<ReceiptDetailReading, "value">;
|
|
56
|
+
};
|
|
57
|
+
export type UpdateReceiptDetailDTO = Partial<Omit<CreateReceiptDetailDTO, "amount" | "reading"> & {
|
|
58
|
+
amount: Pick<ReceiptAmount, "value">;
|
|
59
|
+
}>;
|
|
60
|
+
export interface ReceiptExtended extends Receipt {
|
|
61
|
+
details: ReceiptDetail[];
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=receipt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/receipt.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,SAAS,cAAc;CACxB;AAED,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;CACd;AAED,oBAAY,eAAe;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,iBAAiB,CAAC;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;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AAE,QAAQ,GAAG,SAAS,CAAC,GAAG;IACnD,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;CACtC,CACF,CAAC;AAEF,MAAM,WAAW,eAAgB,SAAQ,OAAO;IAC9C,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ReceiptCurrency = exports.ReceiptStatus = exports.ReceiptEntityType = void 0;
|
|
4
|
+
var ReceiptEntityType;
|
|
5
|
+
(function (ReceiptEntityType) {
|
|
6
|
+
ReceiptEntityType["community"] = "community";
|
|
7
|
+
})(ReceiptEntityType || (exports.ReceiptEntityType = ReceiptEntityType = {}));
|
|
8
|
+
var ReceiptStatus;
|
|
9
|
+
(function (ReceiptStatus) {
|
|
10
|
+
ReceiptStatus["pending"] = "pending";
|
|
11
|
+
ReceiptStatus["paid"] = "paid";
|
|
12
|
+
})(ReceiptStatus || (exports.ReceiptStatus = ReceiptStatus = {}));
|
|
13
|
+
var ReceiptCurrency;
|
|
14
|
+
(function (ReceiptCurrency) {
|
|
15
|
+
ReceiptCurrency["EUR"] = "EUR";
|
|
16
|
+
ReceiptCurrency["USD"] = "USD";
|
|
17
|
+
ReceiptCurrency["MXN"] = "MXN";
|
|
18
|
+
})(ReceiptCurrency || (exports.ReceiptCurrency = ReceiptCurrency = {}));
|
|
19
|
+
//# sourceMappingURL=receipt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipt.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/receipt.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC3B,4CAAuB,CAAA;AACzB,CAAC,EAFW,iBAAiB,iCAAjB,iBAAiB,QAE5B;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,oCAAmB,CAAA;IACnB,8BAAa,CAAA;AACf,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,8BAAW,CAAA;IACX,8BAAW,CAAA;AACb,CAAC,EAJW,eAAe,+BAAf,eAAe,QAI1B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface CommunityPerson {
|
|
2
|
+
personId: string;
|
|
3
|
+
updatedAt: Date;
|
|
4
|
+
communityId: string;
|
|
5
|
+
roleId: number;
|
|
6
|
+
hasFullRights: boolean;
|
|
7
|
+
startDate: Date;
|
|
8
|
+
endDate?: Date | undefined;
|
|
9
|
+
}
|
|
10
|
+
export type CreateCommunityPersonDTO = Omit<CommunityPerson, "communityId" | "updatedAt">;
|
|
11
|
+
export type UpdateCommunityPersonDTO = Partial<Omit<CommunityPerson, "personId" | "updatedAt">>;
|
|
12
|
+
//# sourceMappingURL=roles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/roles.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC5B;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,eAAe,EACf,aAAa,GAAG,WAAW,CAC5B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,CAAC,CAChD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"roles.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/roles.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/tag.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tag.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/tag.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/horizontal/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./communities"), exports);
|
|
18
|
+
__exportStar(require("./api"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/horizontal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,wCAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./contacts"), exports);
|
|
18
|
+
__exportStar(require("./horizontal"), exports);
|
|
19
|
+
__exportStar(require("./ticketing"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,+CAA6B;AAC7B,8CAA4B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTTPClient } from "@src/utils/http";
|
|
2
|
+
import { APIResponse } from "@src/types";
|
|
3
|
+
import { CreateTaskDTO, Task, TaskCategory } from "./types";
|
|
4
|
+
export declare class TicketingAPI {
|
|
5
|
+
private httpClient;
|
|
6
|
+
private readonly basePath;
|
|
7
|
+
constructor(httpClient: HTTPClient, baseUrl: string);
|
|
8
|
+
create(data: CreateTaskDTO): Promise<APIResponse<Task>>;
|
|
9
|
+
getAll(filters?: Record<string, unknown>): Promise<APIResponse<Task[]>>;
|
|
10
|
+
getById(id: string): Promise<APIResponse<Task>>;
|
|
11
|
+
update(id: string, data: Partial<Task>): Promise<APIResponse<Task>>;
|
|
12
|
+
delete(id: string): Promise<APIResponse<void>>;
|
|
13
|
+
downloadAttachment(taskId: string, documentId: string): Promise<Buffer>;
|
|
14
|
+
getCategories(filters?: Record<string, unknown>): Promise<APIResponse<TaskCategory[]>>;
|
|
15
|
+
getCategoryById(id: number): Promise<APIResponse<TaskCategory>>;
|
|
16
|
+
getSubtaskFromParentId(parentId: string): Promise<APIResponse<Task[]>>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/modules/ticketing/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5D,qBAAa,YAAY;IAGX,OAAO,CAAC,UAAU;IAF9B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEd,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM;IAIrD,MAAM,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAIvD,MAAM,CACV,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;IAIzB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAI/C,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAInE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAI9C,kBAAkB,CACtB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC;IAMZ,aAAa,CACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,CAAC;IAMjC,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAQ/D,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;CAK7E"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TicketingAPI = void 0;
|
|
4
|
+
class TicketingAPI {
|
|
5
|
+
httpClient;
|
|
6
|
+
basePath;
|
|
7
|
+
constructor(httpClient, baseUrl) {
|
|
8
|
+
this.httpClient = httpClient;
|
|
9
|
+
this.basePath = `${baseUrl}/ticketing`;
|
|
10
|
+
}
|
|
11
|
+
async create(data) {
|
|
12
|
+
return this.httpClient.post(`${this.basePath}/tasks`, data);
|
|
13
|
+
}
|
|
14
|
+
async getAll(filters) {
|
|
15
|
+
return this.httpClient.get(`${this.basePath}/tasks`, filters);
|
|
16
|
+
}
|
|
17
|
+
async getById(id) {
|
|
18
|
+
return this.httpClient.get(`${this.basePath}/tasks/${id}`);
|
|
19
|
+
}
|
|
20
|
+
async update(id, data) {
|
|
21
|
+
return this.httpClient.put(`${this.basePath}/tasks/${id}`, data);
|
|
22
|
+
}
|
|
23
|
+
async delete(id) {
|
|
24
|
+
return this.httpClient.delete(`${this.basePath}/tasks/${id}`);
|
|
25
|
+
}
|
|
26
|
+
async downloadAttachment(taskId, documentId) {
|
|
27
|
+
return this.httpClient.getBinary(`${this.basePath}/tasks/${taskId}/attachments/${documentId}`);
|
|
28
|
+
}
|
|
29
|
+
async getCategories(filters) {
|
|
30
|
+
return this.httpClient.get(`${this.basePath}/tasks/config/categories`, filters);
|
|
31
|
+
}
|
|
32
|
+
async getCategoryById(id) {
|
|
33
|
+
const response = await this.getCategories({ "id[]": [id] });
|
|
34
|
+
if (!response[0]) {
|
|
35
|
+
throw new Error(`Category with id ${id} not found`);
|
|
36
|
+
}
|
|
37
|
+
return response[0];
|
|
38
|
+
}
|
|
39
|
+
async getSubtaskFromParentId(parentId) {
|
|
40
|
+
return this.httpClient.get(`${this.basePath}/tasks`, {
|
|
41
|
+
"parentId[]": [parentId],
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.TicketingAPI = TicketingAPI;
|
|
46
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/ticketing/api.ts"],"names":[],"mappings":";;;AAIA,MAAa,YAAY;IAGH;IAFH,QAAQ,CAAS;IAElC,YAAoB,UAAsB,EAAE,OAAe;QAAvC,eAAU,GAAV,UAAU,CAAY;QACxC,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,YAAY,CAAC;IACzC,CAA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,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAC5D,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,sBAAsB,CAAC,QAAgB;QAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAS,GAAG,IAAI,CAAC,QAAQ,QAAQ,EAAE;YAC3D,YAAY,EAAE,CAAC,QAAQ,CAAC;SACzB,CAAC,CAAC;IACL,CAAC;CACF;AA3DD,oCA2DC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/ticketing/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
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("./types"), exports);
|
|
18
|
+
__exportStar(require("./api"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/ticketing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,wCAAsB"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare enum TaskPriority {
|
|
2
|
+
low = 1,
|
|
3
|
+
medium = 2,
|
|
4
|
+
high = 3
|
|
5
|
+
}
|
|
6
|
+
export declare enum TaskStatus {
|
|
7
|
+
todo = 1,
|
|
8
|
+
wip = 2,
|
|
9
|
+
done = 3,
|
|
10
|
+
discarded = 4
|
|
11
|
+
}
|
|
12
|
+
export declare enum TaskReporterType {
|
|
13
|
+
agent = 1,
|
|
14
|
+
contact = 2,
|
|
15
|
+
provider = 3,
|
|
16
|
+
system = 4,
|
|
17
|
+
ai = 5
|
|
18
|
+
}
|
|
19
|
+
export interface Task {
|
|
20
|
+
id: string;
|
|
21
|
+
domainId: string;
|
|
22
|
+
parentId: string | null;
|
|
23
|
+
contactId: string | null;
|
|
24
|
+
categoryId: number;
|
|
25
|
+
priorityId: TaskPriority;
|
|
26
|
+
statusId: TaskStatus;
|
|
27
|
+
code: string;
|
|
28
|
+
title: string;
|
|
29
|
+
description: string | null;
|
|
30
|
+
reporterTypeId: TaskReporterType;
|
|
31
|
+
reporterId: string;
|
|
32
|
+
responsibleId: string;
|
|
33
|
+
executorId: string;
|
|
34
|
+
providerId: string | null;
|
|
35
|
+
tags: string[] | null;
|
|
36
|
+
dueDate: string | null;
|
|
37
|
+
firstResponseDue: string | null;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
}
|
|
40
|
+
export interface CreateTaskDTO {
|
|
41
|
+
title: string;
|
|
42
|
+
categoryId: number;
|
|
43
|
+
priorityId: TaskPriority;
|
|
44
|
+
executorId: string;
|
|
45
|
+
responsibleId: string;
|
|
46
|
+
reporterId: string;
|
|
47
|
+
reporterTypeId: TaskReporterType;
|
|
48
|
+
parentId?: string;
|
|
49
|
+
dueDate?: string | null;
|
|
50
|
+
description?: string;
|
|
51
|
+
}
|
|
52
|
+
export interface TaskCategory {
|
|
53
|
+
id: number;
|
|
54
|
+
domainId: string;
|
|
55
|
+
name: string;
|
|
56
|
+
key: string;
|
|
57
|
+
icon: string;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/modules/ticketing/types.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY;IACtB,GAAG,IAAI;IACP,MAAM,IAAI;IACV,IAAI,IAAI;CACT;AAED,oBAAY,UAAU;IACpB,IAAI,IAAI;IACR,GAAG,IAAI;IACP,IAAI,IAAI;IACR,SAAS,IAAI;CACd;AAED,oBAAY,gBAAgB;IAC1B,KAAK,IAAI;IACT,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,MAAM,IAAI;IACV,EAAE,IAAI;CACP;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,YAAY,CAAC;IACzB,QAAQ,EAAE,UAAU,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,EAAE,gBAAgB,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,YAAY,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,gBAAgB,CAAC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;CACd"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TaskReporterType = exports.TaskStatus = exports.TaskPriority = void 0;
|
|
4
|
+
var TaskPriority;
|
|
5
|
+
(function (TaskPriority) {
|
|
6
|
+
TaskPriority[TaskPriority["low"] = 1] = "low";
|
|
7
|
+
TaskPriority[TaskPriority["medium"] = 2] = "medium";
|
|
8
|
+
TaskPriority[TaskPriority["high"] = 3] = "high";
|
|
9
|
+
})(TaskPriority || (exports.TaskPriority = TaskPriority = {}));
|
|
10
|
+
var TaskStatus;
|
|
11
|
+
(function (TaskStatus) {
|
|
12
|
+
TaskStatus[TaskStatus["todo"] = 1] = "todo";
|
|
13
|
+
TaskStatus[TaskStatus["wip"] = 2] = "wip";
|
|
14
|
+
TaskStatus[TaskStatus["done"] = 3] = "done";
|
|
15
|
+
TaskStatus[TaskStatus["discarded"] = 4] = "discarded";
|
|
16
|
+
})(TaskStatus || (exports.TaskStatus = TaskStatus = {}));
|
|
17
|
+
var TaskReporterType;
|
|
18
|
+
(function (TaskReporterType) {
|
|
19
|
+
TaskReporterType[TaskReporterType["agent"] = 1] = "agent";
|
|
20
|
+
TaskReporterType[TaskReporterType["contact"] = 2] = "contact";
|
|
21
|
+
TaskReporterType[TaskReporterType["provider"] = 3] = "provider";
|
|
22
|
+
TaskReporterType[TaskReporterType["system"] = 4] = "system";
|
|
23
|
+
TaskReporterType[TaskReporterType["ai"] = 5] = "ai";
|
|
24
|
+
})(TaskReporterType || (exports.TaskReporterType = TaskReporterType = {}));
|
|
25
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/modules/ticketing/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,6CAAO,CAAA;IACP,mDAAU,CAAA;IACV,+CAAQ,CAAA;AACV,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB;AAED,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,2CAAQ,CAAA;IACR,yCAAO,CAAA;IACP,2CAAQ,CAAA;IACR,qDAAa,CAAA;AACf,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB;AAED,IAAY,gBAMX;AAND,WAAY,gBAAgB;IAC1B,yDAAS,CAAA;IACT,6DAAW,CAAA;IACX,+DAAY,CAAA;IACZ,2DAAU,CAAA;IACV,mDAAM,CAAA;AACR,CAAC,EANW,gBAAgB,gCAAhB,gBAAgB,QAM3B"}
|
package/dist/tasks/std.d.ts
CHANGED
|
@@ -28,10 +28,10 @@ export declare class HOASTD extends STDBase {
|
|
|
28
28
|
private _categories;
|
|
29
29
|
static fromId(erp: ElevaERP, hoaId: string): Promise<HOASTD>;
|
|
30
30
|
constructor(_hoa: Community, _agents: HOAAgentWithRole[], _categories: TaskCategory[]);
|
|
31
|
-
agentLookupByRoleName(roleName: string): Promise<
|
|
31
|
+
agentLookupByRoleName(roleName: string): Promise<any>;
|
|
32
32
|
getCategoryIdByName(name: string): Promise<number>;
|
|
33
33
|
getCategoryIdByKey(key: string): Promise<number>;
|
|
34
|
-
getOrganizationUnitId(name?: string): Promise<
|
|
35
|
-
getOrganizationUnitName(name?: string): Promise<
|
|
34
|
+
getOrganizationUnitId(name?: string): Promise<any>;
|
|
35
|
+
getOrganizationUnitName(name?: string): Promise<any>;
|
|
36
36
|
}
|
|
37
37
|
export {};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
export interface ElevaERPConfig {
|
|
2
|
-
apiKey: string;
|
|
3
|
-
apiSecret: string;
|
|
4
|
-
baseURL?: string;
|
|
5
|
-
}
|
|
6
1
|
export type APIResponse<T> = T;
|
|
7
2
|
export interface APIError {
|
|
8
3
|
code: string;
|
|
9
4
|
message: string;
|
|
10
5
|
errors?: unknown[];
|
|
11
6
|
}
|
|
7
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC;AAE/B,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;CACpB"}
|
package/dist/types.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|