@eleva-io/erp-sdk 0.1.1 → 0.1.3
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 +22 -21
- 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 +5 -21
- 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 +13 -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 +3 -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 +23 -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 +3 -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 +19 -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 +3 -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 +2 -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 +4 -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 +6 -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 +2 -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 +13 -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 +4 -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 +19 -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 +75 -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 +32 -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 +35 -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 +24 -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 +11 -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 +21 -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 +24 -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 +40 -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 +4 -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 +3 -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 +2 -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 +2 -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 +2 -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 +2 -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 +2 -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 +23 -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 +29 -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 +10 -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 +15 -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 +29 -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 +16 -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 +2 -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 +2 -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 +3 -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 +4 -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 +42 -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 +3 -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 +22 -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 +2 -2
- 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 +68 -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 +108 -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 +4 -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 +14 -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 +2 -0
- package/dist/utils/types.js.map +1 -0
- package/package.json +8 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CreateContactPersonAddressDTO } from "./person_address";
|
|
2
|
+
export declare enum ContactPersonType {
|
|
3
|
+
Natural = 1,
|
|
4
|
+
Legal = 2
|
|
5
|
+
}
|
|
6
|
+
export interface ContactPerson {
|
|
7
|
+
id: string;
|
|
8
|
+
domainId: string;
|
|
9
|
+
typeId: ContactPersonType;
|
|
10
|
+
fullName: string;
|
|
11
|
+
isAuthorized: boolean;
|
|
12
|
+
langId?: number;
|
|
13
|
+
legalId?: string;
|
|
14
|
+
legalRepresentative?: string;
|
|
15
|
+
bornAt?: Date;
|
|
16
|
+
phones?: string[];
|
|
17
|
+
emails?: string[];
|
|
18
|
+
notificationEmail: boolean;
|
|
19
|
+
notificationPhone: boolean;
|
|
20
|
+
notificationPostal: boolean;
|
|
21
|
+
tags?: [string, boolean][];
|
|
22
|
+
updatedAt: Date;
|
|
23
|
+
}
|
|
24
|
+
export interface ContactPersonExtended extends Omit<ContactPerson, "legalRepresentative"> {
|
|
25
|
+
legalRepresentative?: ContactPerson;
|
|
26
|
+
}
|
|
27
|
+
export interface CreateContactPersonDTO {
|
|
28
|
+
entity: Omit<ContactPerson, "id" | "domainId" | "updatedAt" | "isAuthorized">;
|
|
29
|
+
addresses: CreateContactPersonAddressDTO[];
|
|
30
|
+
}
|
|
31
|
+
export type UpdateContactPersonDTO = Partial<Omit<ContactPerson, "id" | "domainId" | "updatedAt" | "isAuthorized">>;
|
|
32
|
+
//# sourceMappingURL=person.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAEjE,oBAAY,iBAAiB;IAC3B,OAAO,IAAI;IACX,KAAK,IAAI;CACV;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAC3B,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,aAAa,EAAE,qBAAqB,CAAC;IAClD,mBAAmB,CAAC,EAAE,aAAa,CAAC;CACrC;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC,CAAC;IAC9E,SAAS,EAAE,6BAA6B,EAAE,CAAC;CAC5C;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC,CACtE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export var ContactPersonType;
|
|
2
|
+
(function (ContactPersonType) {
|
|
3
|
+
ContactPersonType[ContactPersonType["Natural"] = 1] = "Natural";
|
|
4
|
+
ContactPersonType[ContactPersonType["Legal"] = 2] = "Legal";
|
|
5
|
+
})(ContactPersonType || (ContactPersonType = {}));
|
|
6
|
+
//# sourceMappingURL=person.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,+DAAW,CAAA;IACX,2DAAS,CAAA;AACX,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ContactAddress, CreateContactAddressGplacesRawDTO } from "./address";
|
|
2
|
+
export type ContactPersonAddress = ContactAddress;
|
|
3
|
+
export interface ContactPersonAddressExtra {
|
|
4
|
+
id: string;
|
|
5
|
+
personId: string;
|
|
6
|
+
addressId: string;
|
|
7
|
+
alias: string;
|
|
8
|
+
blockNumber?: string | null;
|
|
9
|
+
buildingNumber?: string | null;
|
|
10
|
+
floor?: string | null;
|
|
11
|
+
unitId?: string | null;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|
|
14
|
+
export interface CreateContactPersonAddressDTO {
|
|
15
|
+
entity: Omit<ContactAddress, "id" | "gplacesRawId" | "updatedAt">;
|
|
16
|
+
raw: CreateContactAddressGplacesRawDTO;
|
|
17
|
+
extra: Omit<ContactPersonAddressExtra, "id" | "personId" | "addressId" | "updatedAt">;
|
|
18
|
+
}
|
|
19
|
+
export type UpdateContactPersonAddressDTO = CreateContactPersonAddressDTO;
|
|
20
|
+
//# sourceMappingURL=person_address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person_address.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person_address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iCAAiC,EAAE,MAAM,WAAW,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAElD,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,cAAc,GAAG,WAAW,CAAC,CAAC;IAClE,GAAG,EAAE,iCAAiC,CAAC;IACvC,KAAK,EAAE,IAAI,CACT,yBAAyB,EACzB,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAC9C,CAAC;CACH;AAED,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"person_address.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person_address.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTTPClient } from "@src/utils/http";
|
|
2
|
+
import { CommunitiesAPI } from "./communities";
|
|
3
|
+
export declare class HorizontalAPI {
|
|
4
|
+
private _httpClient;
|
|
5
|
+
private readonly _baseUrl;
|
|
6
|
+
constructor(_httpClient: HTTPClient, baseUrl: string);
|
|
7
|
+
communities(id?: string): CommunitiesAPI;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/modules/horizontal/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,qBAAa,aAAa;IAGZ,OAAO,CAAC,WAAW;IAF/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEd,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM;IAI5D,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,cAAc;CAOzC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CommunitiesAPI } from "./communities";
|
|
2
|
+
export class HorizontalAPI {
|
|
3
|
+
_httpClient;
|
|
4
|
+
_baseUrl;
|
|
5
|
+
constructor(_httpClient, baseUrl) {
|
|
6
|
+
this._httpClient = _httpClient;
|
|
7
|
+
this._baseUrl = `${baseUrl}/horizontal`;
|
|
8
|
+
}
|
|
9
|
+
communities(id) {
|
|
10
|
+
return new CommunitiesAPI(this._httpClient, `${this._baseUrl}/communities`, id);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/horizontal/api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,OAAO,aAAa;IAGJ;IAFH,QAAQ,CAAS;IAElC,YAAoB,WAAuB,EAAE,OAAe;QAAxC,gBAAW,GAAX,WAAW,CAAY;QACzC,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,aAAa,CAAC;IAC1C,CAAC;IAED,WAAW,CAAC,EAAW;QACrB,OAAO,IAAI,cAAc,CACvB,IAAI,CAAC,WAAW,EAChB,GAAG,IAAI,CAAC,QAAQ,cAAc,EAC9B,EAAE,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CRUD } from "@src/utils/crud";
|
|
2
|
+
import { CommunityAgent, CreateCommunityAgentDTO, UpdateCommunityAgentDTO } from "../types";
|
|
3
|
+
export declare class CommunitiesAgentsAPI extends CRUD<CommunityAgent, CreateCommunityAgentDTO, UpdateCommunityAgentDTO> {
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAElB,qBAAa,oBAAqB,SAAQ,IAAI,CAC5C,cAAc,EACd,uBAAuB,EACvB,uBAAuB,CACxB;CAAG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/agents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAOvC,MAAM,OAAO,oBAAqB,SAAQ,IAIzC;CAAG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTTPClient } from "@src/utils/http";
|
|
2
|
+
import { CRUD } from "@src/utils/crud";
|
|
3
|
+
import { CommunityBlock, CreateCommunityBlockDTO, UpdateCommunityBlockDTO } from "../types";
|
|
4
|
+
import { CommunitiesPropertiesAPI } from "./properties";
|
|
5
|
+
export declare class CommunitiesBlocksAPI extends CRUD<CommunityBlock, CreateCommunityBlockDTO, UpdateCommunityBlockDTO> {
|
|
6
|
+
private readonly _blockId?;
|
|
7
|
+
constructor(httpClient: HTTPClient, baseUrl: string, _blockId?: string | undefined);
|
|
8
|
+
properties(id?: string): CommunitiesPropertiesAPI;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=blocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blocks.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/blocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,cAAc,EAEd,uBAAuB,EAEvB,uBAAuB,EAExB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAExD,qBAAa,oBAAqB,SAAQ,IAAI,CAC5C,cAAc,EACd,uBAAuB,EACvB,uBAAuB,CACxB;IAIG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBAF1B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,MAAM,EACE,QAAQ,CAAC,EAAE,MAAM,YAAA;IAQpC,UAAU,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,wBAAwB;CAWlD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CRUD } from "@src/utils/crud";
|
|
2
|
+
import { CommunitiesPropertiesAPI } from "./properties";
|
|
3
|
+
export class CommunitiesBlocksAPI extends CRUD {
|
|
4
|
+
_blockId;
|
|
5
|
+
constructor(httpClient, baseUrl, _blockId) {
|
|
6
|
+
super(httpClient, {
|
|
7
|
+
basePath: baseUrl,
|
|
8
|
+
id: _blockId,
|
|
9
|
+
});
|
|
10
|
+
this._blockId = _blockId;
|
|
11
|
+
}
|
|
12
|
+
properties(id) {
|
|
13
|
+
if (!this._blockId) {
|
|
14
|
+
throw new Error("Block ID is required");
|
|
15
|
+
}
|
|
16
|
+
return new CommunitiesPropertiesAPI(this._httpClient, `${this._config.basePath}/${this._blockId}/properties`, id);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=blocks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blocks.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/blocks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AASvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AAExD,MAAM,OAAO,oBAAqB,SAAQ,IAIzC;IAIoB;IAHnB,YACE,UAAsB,EACtB,OAAe,EACE,QAAiB;QAElC,KAAK,CAAC,UAAU,EAAE;YAChB,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,QAAQ;SACb,CAAC,CAAC;QALc,aAAQ,GAAR,QAAQ,CAAS;IAMpC,CAAC;IAED,UAAU,CAAC,EAAW;QACpB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;QAC1C,CAAC;QAED,OAAO,IAAI,wBAAwB,CACjC,IAAI,CAAC,WAAW,EAChB,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,aAAa,EACtD,EAAE,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HTTPClient } from "@src/utils/http";
|
|
2
|
+
import { CRUD } from "@src/utils/crud";
|
|
3
|
+
import { Community, CommunityExtended, CreateCommunityDTO, UpdateCommunityDTO } from "../types";
|
|
4
|
+
import { CommunitiesConfigAPI } from "./communities_config";
|
|
5
|
+
import { CommunitiesEmployeesAPI } from "./employees";
|
|
6
|
+
import { CommunitiesBlocksAPI } from "./blocks";
|
|
7
|
+
import { CommunitiesProvidersAPI } from "./providers";
|
|
8
|
+
import { CommunitiesAgentsAPI } from "./agents";
|
|
9
|
+
import { CommunitiesRolesAPI } from "./roles";
|
|
10
|
+
import { ReceiptsAPI } from "./receipts";
|
|
11
|
+
import { DocumentsAPI } from "./documents";
|
|
12
|
+
export declare class CommunitiesAPI extends CRUD<CommunityExtended, CreateCommunityDTO, UpdateCommunityDTO, Community> {
|
|
13
|
+
private readonly _communityId?;
|
|
14
|
+
constructor(httpClient: HTTPClient, baseUrl: string, _communityId?: string | undefined);
|
|
15
|
+
config(): CommunitiesConfigAPI;
|
|
16
|
+
agents(): CommunitiesAgentsAPI;
|
|
17
|
+
roles(): CommunitiesRolesAPI;
|
|
18
|
+
employees(): CommunitiesEmployeesAPI;
|
|
19
|
+
providers(): CommunitiesProvidersAPI;
|
|
20
|
+
blocks(id?: string): CommunitiesBlocksAPI;
|
|
21
|
+
documents(id?: string): DocumentsAPI;
|
|
22
|
+
receipts(id?: string): ReceiptsAPI;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=communities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communities.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/communities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,qBAAa,cAAe,SAAQ,IAAI,CACtC,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,SAAS,CACV;IAIG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC;gBAF9B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,MAAM,EACE,YAAY,CAAC,EAAE,MAAM,YAAA;IAQxC,MAAM,IAAI,oBAAoB;IAO9B,MAAM,IAAI,oBAAoB;IAa9B,KAAK,IAAI,mBAAmB;IAa5B,SAAS,IAAI,uBAAuB;IAWpC,SAAS,IAAI,uBAAuB;IAWpC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,oBAAoB;IAYzC,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,YAAY;IAYpC,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW;CAWnC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { CRUD } from "@src/utils/crud";
|
|
2
|
+
import { CommunitiesConfigAPI } from "./communities_config";
|
|
3
|
+
import { CommunitiesEmployeesAPI } from "./employees";
|
|
4
|
+
import { CommunitiesBlocksAPI } from "./blocks";
|
|
5
|
+
import { CommunitiesProvidersAPI } from "./providers";
|
|
6
|
+
import { CommunitiesAgentsAPI } from "./agents";
|
|
7
|
+
import { CommunitiesRolesAPI } from "./roles";
|
|
8
|
+
import { ReceiptsAPI } from "./receipts";
|
|
9
|
+
import { DocumentsAPI } from "./documents";
|
|
10
|
+
export class CommunitiesAPI extends CRUD {
|
|
11
|
+
_communityId;
|
|
12
|
+
constructor(httpClient, baseUrl, _communityId) {
|
|
13
|
+
super(httpClient, {
|
|
14
|
+
basePath: baseUrl,
|
|
15
|
+
id: _communityId,
|
|
16
|
+
});
|
|
17
|
+
this._communityId = _communityId;
|
|
18
|
+
}
|
|
19
|
+
config() {
|
|
20
|
+
return new CommunitiesConfigAPI(this._httpClient, `${this._config.basePath}/config`);
|
|
21
|
+
}
|
|
22
|
+
agents() {
|
|
23
|
+
if (!this._communityId) {
|
|
24
|
+
throw new Error("Community ID is required");
|
|
25
|
+
}
|
|
26
|
+
return new CommunitiesAgentsAPI(this._httpClient, {
|
|
27
|
+
basePath: `${this._config.basePath}/${this._communityId}/agents`,
|
|
28
|
+
methods: {
|
|
29
|
+
isReadEnabled: false,
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
roles() {
|
|
34
|
+
if (!this._communityId) {
|
|
35
|
+
throw new Error("Community ID is required");
|
|
36
|
+
}
|
|
37
|
+
return new CommunitiesRolesAPI(this._httpClient, {
|
|
38
|
+
basePath: `${this._config.basePath}/${this._communityId}/roles`,
|
|
39
|
+
methods: {
|
|
40
|
+
isReadEnabled: false,
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
employees() {
|
|
45
|
+
if (!this._communityId) {
|
|
46
|
+
throw new Error("Community ID is required");
|
|
47
|
+
}
|
|
48
|
+
return new CommunitiesEmployeesAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/employees`);
|
|
49
|
+
}
|
|
50
|
+
providers() {
|
|
51
|
+
if (!this._communityId) {
|
|
52
|
+
throw new Error("Community ID is required");
|
|
53
|
+
}
|
|
54
|
+
return new CommunitiesProvidersAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/providers`);
|
|
55
|
+
}
|
|
56
|
+
blocks(id) {
|
|
57
|
+
if (!this._communityId) {
|
|
58
|
+
throw new Error("Community ID is required");
|
|
59
|
+
}
|
|
60
|
+
return new CommunitiesBlocksAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/blocks`, id);
|
|
61
|
+
}
|
|
62
|
+
documents(id) {
|
|
63
|
+
if (!this._communityId) {
|
|
64
|
+
throw new Error("Community ID is required");
|
|
65
|
+
}
|
|
66
|
+
return new DocumentsAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/documents`, id);
|
|
67
|
+
}
|
|
68
|
+
receipts(id) {
|
|
69
|
+
if (!this._communityId) {
|
|
70
|
+
throw new Error("Community ID is required");
|
|
71
|
+
}
|
|
72
|
+
return new ReceiptsAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/receipts`, id);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=communities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communities.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/communities.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HTTPClient } from "@src/utils/http";
|
|
2
|
+
import { CRUD } from "@src/utils/crud";
|
|
3
|
+
import { CommunityConfigAgent, CommunityConfigRole } from "../types";
|
|
4
|
+
export declare class CommunitiesConfigAPI {
|
|
5
|
+
private _httpClient;
|
|
6
|
+
private _baseUrl;
|
|
7
|
+
constructor(_httpClient: HTTPClient, _baseUrl: string);
|
|
8
|
+
agents(): CRUD<CommunityConfigAgent>;
|
|
9
|
+
roles(): CRUD<CommunityConfigRole>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=communities_config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communities_config.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/communities_config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAErE,qBAAa,oBAAoB;IACnB,OAAO,CAAC,WAAW;IAAc,OAAO,CAAC,QAAQ;gBAAzC,WAAW,EAAE,UAAU,EAAU,QAAQ,EAAE,MAAM;IAErE,MAAM,IAAI,IAAI,CAAC,oBAAoB,CAAC;IAYpC,KAAK,IAAI,IAAI,CAAC,mBAAmB,CAAC;CAWnC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CRUD } from "@src/utils/crud";
|
|
2
|
+
export class CommunitiesConfigAPI {
|
|
3
|
+
_httpClient;
|
|
4
|
+
_baseUrl;
|
|
5
|
+
constructor(_httpClient, _baseUrl) {
|
|
6
|
+
this._httpClient = _httpClient;
|
|
7
|
+
this._baseUrl = _baseUrl;
|
|
8
|
+
}
|
|
9
|
+
agents() {
|
|
10
|
+
return new CRUD(this._httpClient, {
|
|
11
|
+
basePath: `${this._baseUrl}/agents`,
|
|
12
|
+
methods: {
|
|
13
|
+
isCreateEnabled: false,
|
|
14
|
+
isUpdateEnabled: false,
|
|
15
|
+
isDeleteEnabled: false,
|
|
16
|
+
isReadEnabled: false,
|
|
17
|
+
},
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
roles() {
|
|
21
|
+
return new CRUD(this._httpClient, {
|
|
22
|
+
basePath: `${this._baseUrl}/roles`,
|
|
23
|
+
methods: {
|
|
24
|
+
isCreateEnabled: false,
|
|
25
|
+
isUpdateEnabled: false,
|
|
26
|
+
isDeleteEnabled: false,
|
|
27
|
+
isReadEnabled: false,
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=communities_config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"communities_config.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/communities_config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAGvC,MAAM,OAAO,oBAAoB;IACX;IAAiC;IAArD,YAAoB,WAAuB,EAAU,QAAgB;QAAjD,gBAAW,GAAX,WAAW,CAAY;QAAU,aAAQ,GAAR,QAAQ,CAAQ;IAAG,CAAC;IAEzE,MAAM;QACJ,OAAO,IAAI,IAAI,CAAuB,IAAI,CAAC,WAAW,EAAE;YACtD,QAAQ,EAAE,GAAG,IAAI,CAAC,QAAQ,SAAS;YACnC,OAAO,EAAE;gBACP,eAAe,EAAE,KAAK;gBACtB,eAAe,EAAE,KAAK;gBACtB,eAAe,EAAE,KAAK;gBACtB,aAAa,EAAE,KAAK;aACrB;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK;QACH,OAAO,IAAI,IAAI,CAAsB,IAAI,CAAC,WAAW,EAAE;YACrD,QAAQ,EAAE,GAAG,IAAI,CAAC,QAAQ,QAAQ;YAClC,OAAO,EAAE;gBACP,eAAe,EAAE,KAAK;gBACtB,eAAe,EAAE,KAAK;gBACtB,eAAe,EAAE,KAAK;gBACtB,aAAa,EAAE,KAAK;aACrB;SACF,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HTTPClient } from "@src/utils/http";
|
|
2
|
+
import { CRUD } from "@src/utils/crud";
|
|
3
|
+
import { CreateDocumentDTO, Document, UpdateDocumentDTO } from "../types/document";
|
|
4
|
+
export declare class DocumentsAPI extends CRUD<Document, CreateDocumentDTO, UpdateDocumentDTO> {
|
|
5
|
+
constructor(httpClient: HTTPClient, baseUrl: string, documentId?: string);
|
|
6
|
+
bin(): DocumentsBinAPI;
|
|
7
|
+
create(data: CreateDocumentDTO): Promise<Document>;
|
|
8
|
+
download(id?: string): Promise<Buffer>;
|
|
9
|
+
}
|
|
10
|
+
export declare class DocumentsBinAPI {
|
|
11
|
+
private readonly _httpClient;
|
|
12
|
+
private readonly _baseUrl;
|
|
13
|
+
constructor(_httpClient: HTTPClient, _baseUrl: string);
|
|
14
|
+
find(): Promise<Document[]>;
|
|
15
|
+
restore(id: string): Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=documents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/documents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,iBAAiB,EAClB,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,YAAa,SAAQ,IAAI,CACpC,QAAQ,EACR,iBAAiB,EACjB,iBAAiB,CAClB;gBACa,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;IAIxE,GAAG,IAAI,eAAe;IAOtB,MAAM,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC;IAWlD,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAMvC;AAED,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAG7B,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAM3B,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAKzC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { CRUD } from "@src/utils/crud";
|
|
2
|
+
export class DocumentsAPI extends CRUD {
|
|
3
|
+
constructor(httpClient, baseUrl, documentId) {
|
|
4
|
+
super(httpClient, { basePath: baseUrl, id: documentId });
|
|
5
|
+
}
|
|
6
|
+
bin() {
|
|
7
|
+
return new DocumentsBinAPI(this._httpClient, `${this._config.basePath}/bin`);
|
|
8
|
+
}
|
|
9
|
+
create(data) {
|
|
10
|
+
const path = `${this._config.basePath}`;
|
|
11
|
+
return this._httpClient.uploadFile(path, data.fileName, data.fileData, "file");
|
|
12
|
+
}
|
|
13
|
+
download(id) {
|
|
14
|
+
const idParam = this._getIdParam(id);
|
|
15
|
+
const path = `${this._config.basePath}/${idParam}/download`;
|
|
16
|
+
return this._httpClient.getBinary(path);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export class DocumentsBinAPI {
|
|
20
|
+
_httpClient;
|
|
21
|
+
_baseUrl;
|
|
22
|
+
constructor(_httpClient, _baseUrl) {
|
|
23
|
+
this._httpClient = _httpClient;
|
|
24
|
+
this._baseUrl = _baseUrl;
|
|
25
|
+
}
|
|
26
|
+
async find() {
|
|
27
|
+
const path = `${this._baseUrl}`;
|
|
28
|
+
return this._httpClient.get(path);
|
|
29
|
+
}
|
|
30
|
+
async restore(id) {
|
|
31
|
+
const path = `${this._baseUrl}/${id}/restore`;
|
|
32
|
+
return this._httpClient.put(path);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=documents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/documents.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAOvC,MAAM,OAAO,YAAa,SAAQ,IAIjC;IACC,YAAY,UAAsB,EAAE,OAAe,EAAE,UAAmB;QACtE,KAAK,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC;IAC3D,CAAC;IAED,GAAG;QACD,OAAO,IAAI,eAAe,CACxB,IAAI,CAAC,WAAW,EAChB,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,MAAM,CAC/B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,IAAuB;QAC5B,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;QAExC,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAChC,IAAI,EACJ,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,QAAQ,EACb,MAAM,CACP,CAAC;IACJ,CAAC;IAED,QAAQ,CAAC,EAAW;QAClB,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QACrC,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,OAAO,WAAW,CAAC;QAE5D,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;CACF;AAED,MAAM,OAAO,eAAe;IAEP;IACA;IAFnB,YACmB,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;IAChC,CAAC;IAEJ,KAAK,CAAC,IAAI;QACR,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QAEhC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAa,IAAI,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,EAAU;QACtB,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,UAAU,CAAC;QAE9C,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAO,IAAI,CAAC,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTTPClient } from "@src/utils/http";
|
|
2
|
+
import { CommunityEmployee, CommunityEmployeeExtended, CommunityEmployeeType, CreateCommunityEmployeeDTO, UpdateCommunityEmployeeDTO } from "../types";
|
|
3
|
+
export declare class CommunitiesEmployeesAPI {
|
|
4
|
+
private _httpClient;
|
|
5
|
+
private _baseUrl;
|
|
6
|
+
private _crud;
|
|
7
|
+
constructor(_httpClient: HTTPClient, _baseUrl: string);
|
|
8
|
+
create(data: CreateCommunityEmployeeDTO): Promise<CommunityEmployee>;
|
|
9
|
+
update(id: string, typeId: CommunityEmployeeType, data: UpdateCommunityEmployeeDTO): Promise<CommunityEmployee>;
|
|
10
|
+
delete(id: string, typeId: CommunityEmployeeType): Promise<void>;
|
|
11
|
+
find(query?: Record<string, unknown>): Promise<(CommunityEmployee | CommunityEmployeeExtended)[]>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=employees.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employees.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/employees.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,UAAU,CAAC;AAElB,qBAAa,uBAAuB;IAQtB,OAAO,CAAC,WAAW;IAAc,OAAO,CAAC,QAAQ;IAP7D,OAAO,CAAC,KAAK,CAKX;gBAEkB,WAAW,EAAE,UAAU,EAAU,QAAQ,EAAE,MAAM;IASrE,MAAM,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIpE,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,qBAAqB,EAC7B,IAAI,EAAE,0BAA0B,GAC/B,OAAO,CAAC,iBAAiB,CAAC;IAO7B,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IAMhE,IAAI,CACF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,CAAC,iBAAiB,GAAG,yBAAyB,CAAC,EAAE,CAAC;CAG9D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CRUD } from "@src/utils/crud";
|
|
2
|
+
export class CommunitiesEmployeesAPI {
|
|
3
|
+
_httpClient;
|
|
4
|
+
_baseUrl;
|
|
5
|
+
_crud;
|
|
6
|
+
constructor(_httpClient, _baseUrl) {
|
|
7
|
+
this._httpClient = _httpClient;
|
|
8
|
+
this._baseUrl = _baseUrl;
|
|
9
|
+
this._crud = new CRUD(this._httpClient, { basePath: this._baseUrl });
|
|
10
|
+
}
|
|
11
|
+
create(data) {
|
|
12
|
+
return this._crud.create(data);
|
|
13
|
+
}
|
|
14
|
+
update(id, typeId, data) {
|
|
15
|
+
return this._httpClient.patch(`${this._baseUrl}/${typeId}/employee/${id}`, data);
|
|
16
|
+
}
|
|
17
|
+
delete(id, typeId) {
|
|
18
|
+
return this._httpClient.delete(`${this._baseUrl}/${typeId}/employee/${id}`);
|
|
19
|
+
}
|
|
20
|
+
find(query) {
|
|
21
|
+
return this._crud.find(query);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=employees.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"employees.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/employees.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AASvC,MAAM,OAAO,uBAAuB;IAQd;IAAiC;IAP7C,KAAK,CAKX;IAEF,YAAoB,WAAuB,EAAU,QAAgB;QAAjD,gBAAW,GAAX,WAAW,CAAY;QAAU,aAAQ,GAAR,QAAQ,CAAQ;QACnE,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,CAKnB,IAAI,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnD,CAAC;IAED,MAAM,CAAC,IAAgC;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CACJ,EAAU,EACV,MAA6B,EAC7B,IAAgC;QAEhC,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAC3B,GAAG,IAAI,CAAC,QAAQ,IAAI,MAAM,aAAa,EAAE,EAAE,EAC3C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAA6B;QAC9C,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAC5B,GAAG,IAAI,CAAC,QAAQ,IAAI,MAAM,aAAa,EAAE,EAAE,CAC5C,CAAC;IACJ,CAAC;IAED,IAAI,CACF,KAA+B;QAE/B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./communities_config";
|
|
2
|
+
export * from "./communities";
|
|
3
|
+
export * from "./employees";
|
|
4
|
+
export * from "./blocks";
|
|
5
|
+
export * from "./properties";
|
|
6
|
+
export * from "./providers";
|
|
7
|
+
export * from "./agents";
|
|
8
|
+
export * from "./roles";
|
|
9
|
+
export * from "./documents";
|
|
10
|
+
export * from "./receipts";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./communities_config";
|
|
2
|
+
export * from "./communities";
|
|
3
|
+
export * from "./employees";
|
|
4
|
+
export * from "./blocks";
|
|
5
|
+
export * from "./properties";
|
|
6
|
+
export * from "./providers";
|
|
7
|
+
export * from "./agents";
|
|
8
|
+
export * from "./roles";
|
|
9
|
+
export * from "./documents";
|
|
10
|
+
export * from "./receipts";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTTPClient } from "@src/utils/http";
|
|
2
|
+
import { CRUD } from "@src/utils/crud";
|
|
3
|
+
import { CommunityProperty, CommunityPropertyPerson, CommunityPropertyPersonExtended, CreateCommunityPropertyDTO, CreateCommunityPropertyPersonDTO, UpdateCommunityPropertyDTO, UpdateCommunityPropertyPersonDTO } from "../types";
|
|
4
|
+
export declare class CommunitiesPropertiesAPI extends CRUD<CommunityProperty, CreateCommunityPropertyDTO, UpdateCommunityPropertyDTO> {
|
|
5
|
+
private readonly _propertyId?;
|
|
6
|
+
constructor(httpClient: HTTPClient, baseUrl: string, _propertyId?: string | undefined);
|
|
7
|
+
persons(id?: string): CRUD<CommunityPropertyPersonExtended, CreateCommunityPropertyPersonDTO, UpdateCommunityPropertyPersonDTO, CommunityPropertyPerson>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,+BAA+B,EAC/B,0BAA0B,EAC1B,gCAAgC,EAChC,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,UAAU,CAAC;AAElB,qBAAa,wBAAyB,SAAQ,IAAI,CAChD,iBAAiB,EACjB,0BAA0B,EAC1B,0BAA0B,CAC3B;IAIG,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;gBAF7B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,MAAM,EACE,WAAW,CAAC,EAAE,MAAM,YAAA;IAQvC,OAAO,CACL,EAAE,CAAC,EAAE,MAAM,GACV,IAAI,CACL,+BAA+B,EAC/B,gCAAgC,EAChC,gCAAgC,EAChC,uBAAuB,CACxB;CAeF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { CRUD } from "@src/utils/crud";
|
|
2
|
+
export class CommunitiesPropertiesAPI extends CRUD {
|
|
3
|
+
_propertyId;
|
|
4
|
+
constructor(httpClient, baseUrl, _propertyId) {
|
|
5
|
+
super(httpClient, {
|
|
6
|
+
basePath: baseUrl,
|
|
7
|
+
id: _propertyId,
|
|
8
|
+
});
|
|
9
|
+
this._propertyId = _propertyId;
|
|
10
|
+
}
|
|
11
|
+
persons(id) {
|
|
12
|
+
if (!this._propertyId) {
|
|
13
|
+
throw new Error("Property ID is required");
|
|
14
|
+
}
|
|
15
|
+
return new CRUD(this._httpClient, {
|
|
16
|
+
basePath: `${this._config.basePath}/${this._propertyId}/persons`,
|
|
17
|
+
id: id,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/properties.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAWvC,MAAM,OAAO,wBAAyB,SAAQ,IAI7C;IAIoB;IAHnB,YACE,UAAsB,EACtB,OAAe,EACE,WAAoB;QAErC,KAAK,CAAC,UAAU,EAAE;YAChB,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,WAAW;SAChB,CAAC,CAAC;QALc,gBAAW,GAAX,WAAW,CAAS;IAMvC,CAAC;IAED,OAAO,CACL,EAAW;QAOX,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAC7C,CAAC;QAED,OAAO,IAAI,IAAI,CAKb,IAAI,CAAC,WAAW,EAAE;YAClB,QAAQ,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,WAAW,UAAU;YAChE,EAAE,EAAE,EAAE;SACP,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTTPClient } from "@src/utils/http";
|
|
2
|
+
import { CommunityProvider, CommunityProviderExtended, CommunityProviderType, CreateCommunityProviderDTO, UpdateCommunityProviderDTO } from "../types";
|
|
3
|
+
export declare class CommunitiesProvidersAPI {
|
|
4
|
+
private _httpClient;
|
|
5
|
+
private _baseUrl;
|
|
6
|
+
private _crud;
|
|
7
|
+
constructor(_httpClient: HTTPClient, _baseUrl: string);
|
|
8
|
+
create(data: CreateCommunityProviderDTO): Promise<CommunityProvider>;
|
|
9
|
+
update(id: string, typeId: CommunityProviderType, data: UpdateCommunityProviderDTO): Promise<CommunityProvider>;
|
|
10
|
+
delete(id: string, typeId: CommunityProviderType): Promise<void>;
|
|
11
|
+
find(query?: Record<string, unknown>): Promise<(CommunityProvider | CommunityProviderExtended)[]>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,UAAU,CAAC;AAElB,qBAAa,uBAAuB;IAQtB,OAAO,CAAC,WAAW;IAAc,OAAO,CAAC,QAAQ;IAP7D,OAAO,CAAC,KAAK,CAKX;gBAEkB,WAAW,EAAE,UAAU,EAAU,QAAQ,EAAE,MAAM;IASrE,MAAM,CAAC,IAAI,EAAE,0BAA0B,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIpE,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,qBAAqB,EAC7B,IAAI,EAAE,0BAA0B,GAC/B,OAAO,CAAC,iBAAiB,CAAC;IAO7B,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IAMhE,IAAI,CACF,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,CAAC,iBAAiB,GAAG,yBAAyB,CAAC,EAAE,CAAC;CAG9D"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CRUD } from "@src/utils/crud";
|
|
2
|
+
export class CommunitiesProvidersAPI {
|
|
3
|
+
_httpClient;
|
|
4
|
+
_baseUrl;
|
|
5
|
+
_crud;
|
|
6
|
+
constructor(_httpClient, _baseUrl) {
|
|
7
|
+
this._httpClient = _httpClient;
|
|
8
|
+
this._baseUrl = _baseUrl;
|
|
9
|
+
this._crud = new CRUD(this._httpClient, { basePath: this._baseUrl });
|
|
10
|
+
}
|
|
11
|
+
create(data) {
|
|
12
|
+
return this._crud.create(data);
|
|
13
|
+
}
|
|
14
|
+
update(id, typeId, data) {
|
|
15
|
+
return this._httpClient.patch(`${this._baseUrl}/${typeId}/provider/${id}`, data);
|
|
16
|
+
}
|
|
17
|
+
delete(id, typeId) {
|
|
18
|
+
return this._httpClient.delete(`${this._baseUrl}/${typeId}/provider/${id}`);
|
|
19
|
+
}
|
|
20
|
+
find(query) {
|
|
21
|
+
return this._crud.find(query);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/providers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AASvC,MAAM,OAAO,uBAAuB;IAQd;IAAiC;IAP7C,KAAK,CAKX;IAEF,YAAoB,WAAuB,EAAU,QAAgB;QAAjD,gBAAW,GAAX,WAAW,CAAY;QAAU,aAAQ,GAAR,QAAQ,CAAQ;QACnE,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,CAKnB,IAAI,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnD,CAAC;IAED,MAAM,CAAC,IAAgC;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CACJ,EAAU,EACV,MAA6B,EAC7B,IAAgC;QAEhC,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,CAC3B,GAAG,IAAI,CAAC,QAAQ,IAAI,MAAM,aAAa,EAAE,EAAE,EAC3C,IAAI,CACL,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,MAA6B;QAC9C,OAAO,IAAI,CAAC,WAAW,CAAC,MAAM,CAC5B,GAAG,IAAI,CAAC,QAAQ,IAAI,MAAM,aAAa,EAAE,EAAE,CAC5C,CAAC;IACJ,CAAC;IAED,IAAI,CACF,KAA+B;QAE/B,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { HTTPClient } from "@src/utils/http";
|
|
2
|
+
import { CRUD } from "@src/utils/crud";
|
|
3
|
+
import { CreateReceiptDetailDTO, CreateReceiptDTO, ReceiptDetail, ReceiptExtended, UpdateReceiptDetailDTO, UpdateReceiptDTO } from "../types/receipt";
|
|
4
|
+
import { PaginatedResponse } from "@src/utils/types";
|
|
5
|
+
export declare class ReceiptsAPI {
|
|
6
|
+
private readonly _httpClient;
|
|
7
|
+
private readonly _baseUrl;
|
|
8
|
+
private readonly _receiptId?;
|
|
9
|
+
private _crud;
|
|
10
|
+
constructor(_httpClient: HTTPClient, _baseUrl: string, _receiptId?: string | undefined);
|
|
11
|
+
get(id?: string): Promise<ReceiptExtended>;
|
|
12
|
+
create(propertyId: string, data: CreateReceiptDTO): Promise<ReceiptExtended>;
|
|
13
|
+
update(id: string, data: UpdateReceiptDTO): Promise<ReceiptExtended>;
|
|
14
|
+
delete(id: string): Promise<void>;
|
|
15
|
+
find(query?: Record<string, unknown>): Promise<PaginatedResponse<ReceiptExtended>>;
|
|
16
|
+
details(id?: string): ReceiptsDetailsAPI;
|
|
17
|
+
}
|
|
18
|
+
export declare class ReceiptsDetailsAPI extends CRUD<ReceiptDetail, CreateReceiptDetailDTO, UpdateReceiptDetailDTO> {
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=receipts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"receipts.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/receipts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,sBAAsB,EACtB,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,qBAAa,WAAW;IASpB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC;IAV9B,OAAO,CAAC,KAAK,CAKX;gBAGiB,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM,EAChB,UAAU,CAAC,EAAE,MAAM,YAAA;IAUtC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAI1C,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAO5E,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIpE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjC,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IAIlF,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,kBAAkB;CAUzC;AAED,qBAAa,kBAAmB,SAAQ,IAAI,CAC1C,aAAa,EACb,sBAAsB,EACtB,sBAAsB,CACvB;CAAG"}
|