@eleva-io/erp-sdk 0.1.4 → 0.1.6
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/modules/contacts/api.d.ts +1 -1
- package/dist/modules/contacts/persons/api/addresses.d.ts +1 -1
- package/dist/modules/contacts/persons/api/addresses.js +1 -1
- package/dist/modules/contacts/persons/api/persons.d.ts +2 -2
- package/dist/modules/contacts/persons/api/persons.js +1 -1
- package/dist/modules/horizontal/api.d.ts +1 -1
- package/dist/modules/horizontal/communities/api/agents.d.ts +1 -1
- package/dist/modules/horizontal/communities/api/agents.js +1 -1
- package/dist/modules/horizontal/communities/api/blocks.d.ts +2 -2
- package/dist/modules/horizontal/communities/api/blocks.js +1 -1
- package/dist/modules/horizontal/communities/api/communities.d.ts +2 -2
- package/dist/modules/horizontal/communities/api/communities.js +1 -1
- package/dist/modules/horizontal/communities/api/communities_config.d.ts +2 -2
- package/dist/modules/horizontal/communities/api/communities_config.js +1 -1
- package/dist/modules/horizontal/communities/api/documents.d.ts +2 -2
- package/dist/modules/horizontal/communities/api/documents.js +1 -1
- package/dist/modules/horizontal/communities/api/employees.d.ts +1 -1
- package/dist/modules/horizontal/communities/api/employees.js +1 -1
- package/dist/modules/horizontal/communities/api/properties.d.ts +2 -2
- package/dist/modules/horizontal/communities/api/properties.js +1 -1
- package/dist/modules/horizontal/communities/api/providers.d.ts +1 -1
- package/dist/modules/horizontal/communities/api/providers.js +1 -1
- package/dist/modules/horizontal/communities/api/receipts.d.ts +3 -3
- package/dist/modules/horizontal/communities/api/receipts.js +1 -1
- package/dist/modules/horizontal/communities/api/roles.d.ts +1 -1
- package/dist/modules/horizontal/communities/api/roles.js +1 -1
- package/dist/modules/horizontal/communities/types/block.d.ts +1 -1
- package/dist/modules/horizontal/communities/types/block.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/community.d.ts +1 -1
- package/dist/modules/horizontal/communities/types/employee.d.ts +1 -1
- package/dist/modules/horizontal/communities/types/property.d.ts +1 -1
- package/dist/modules/horizontal/communities/types/provider.d.ts +1 -1
- package/dist/modules/ticketing/api.d.ts +2 -2
- package/dist/utils/crud.d.ts +1 -1
- package/dist/utils/http.d.ts +1 -1
- package/package.json +3 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
1
|
+
import { HTTPClient } from "../../../../utils/http";
|
|
2
2
|
import { ContactPersonAddress, CreateContactPersonAddressDTO, UpdateContactPersonAddressDTO } from "../types";
|
|
3
3
|
export declare class ContactsPersonsAddressesAPI {
|
|
4
4
|
private _crud;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContactsPersonsAddressesAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
class ContactsPersonsAddressesAPI {
|
|
6
6
|
_crud;
|
|
7
7
|
constructor(httpClient, baseUrl, addressId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
2
|
-
import { CRUD } from "
|
|
1
|
+
import { HTTPClient } from "../../../../utils/http";
|
|
2
|
+
import { CRUD } from "../../../../utils/crud";
|
|
3
3
|
import { ContactPerson, ContactPersonExtended, CreateContactPersonDTO, UpdateContactPersonDTO } from "../types";
|
|
4
4
|
import { ContactsPersonsAddressesAPI } from "./addresses";
|
|
5
5
|
export declare class ContactsPersonsAPI extends CRUD<ContactPersonExtended, CreateContactPersonDTO, UpdateContactPersonDTO, ContactPerson | ContactPersonExtended> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ContactsPersonsAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
const addresses_1 = require("./addresses");
|
|
6
6
|
class ContactsPersonsAPI extends crud_1.CRUD {
|
|
7
7
|
_personId;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CRUD } from "
|
|
1
|
+
import { CRUD } from "../../../../utils/crud";
|
|
2
2
|
import { CommunityAgent, CreateCommunityAgentDTO, UpdateCommunityAgentDTO } from "../types";
|
|
3
3
|
export declare class CommunitiesAgentsAPI extends CRUD<CommunityAgent, CreateCommunityAgentDTO, UpdateCommunityAgentDTO> {
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommunitiesAgentsAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
class CommunitiesAgentsAPI extends crud_1.CRUD {
|
|
6
6
|
}
|
|
7
7
|
exports.CommunitiesAgentsAPI = CommunitiesAgentsAPI;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
2
|
-
import { CRUD } from "
|
|
1
|
+
import { HTTPClient } from "../../../../utils/http";
|
|
2
|
+
import { CRUD } from "../../../../utils/crud";
|
|
3
3
|
import { CommunityBlock, CreateCommunityBlockDTO, UpdateCommunityBlockDTO } from "../types";
|
|
4
4
|
import { CommunitiesPropertiesAPI } from "./properties";
|
|
5
5
|
export declare class CommunitiesBlocksAPI extends CRUD<CommunityBlock, CreateCommunityBlockDTO, UpdateCommunityBlockDTO> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommunitiesBlocksAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
const properties_1 = require("./properties");
|
|
6
6
|
class CommunitiesBlocksAPI extends crud_1.CRUD {
|
|
7
7
|
_blockId;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
2
|
-
import { CRUD } from "
|
|
1
|
+
import { HTTPClient } from "../../../../utils/http";
|
|
2
|
+
import { CRUD } from "../../../../utils/crud";
|
|
3
3
|
import { Community, CommunityExtended, CreateCommunityDTO, UpdateCommunityDTO } from "../types";
|
|
4
4
|
import { CommunitiesConfigAPI } from "./communities_config";
|
|
5
5
|
import { CommunitiesEmployeesAPI } from "./employees";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommunitiesAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
const communities_config_1 = require("./communities_config");
|
|
6
6
|
const employees_1 = require("./employees");
|
|
7
7
|
const blocks_1 = require("./blocks");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
2
|
-
import { CRUD } from "
|
|
1
|
+
import { HTTPClient } from "../../../../utils/http";
|
|
2
|
+
import { CRUD } from "../../../../utils/crud";
|
|
3
3
|
import { CommunityConfigAgent, CommunityConfigRole } from "../types";
|
|
4
4
|
export declare class CommunitiesConfigAPI {
|
|
5
5
|
private _httpClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommunitiesConfigAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
class CommunitiesConfigAPI {
|
|
6
6
|
_httpClient;
|
|
7
7
|
_baseUrl;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
2
|
-
import { CRUD } from "
|
|
1
|
+
import { HTTPClient } from "../../../../utils/http";
|
|
2
|
+
import { CRUD } from "../../../../utils/crud";
|
|
3
3
|
import { CreateDocumentDTO, Document, UpdateDocumentDTO } from "../types/document";
|
|
4
4
|
export declare class DocumentsAPI extends CRUD<Document, CreateDocumentDTO, UpdateDocumentDTO> {
|
|
5
5
|
constructor(httpClient: HTTPClient, baseUrl: string, documentId?: string);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DocumentsBinAPI = exports.DocumentsAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
class DocumentsAPI extends crud_1.CRUD {
|
|
6
6
|
constructor(httpClient, baseUrl, documentId) {
|
|
7
7
|
super(httpClient, { basePath: baseUrl, id: documentId });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
1
|
+
import { HTTPClient } from "../../../../utils/http";
|
|
2
2
|
import { CommunityEmployee, CommunityEmployeeExtended, CommunityEmployeeType, CreateCommunityEmployeeDTO, UpdateCommunityEmployeeDTO } from "../types";
|
|
3
3
|
export declare class CommunitiesEmployeesAPI {
|
|
4
4
|
private _httpClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommunitiesEmployeesAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
class CommunitiesEmployeesAPI {
|
|
6
6
|
_httpClient;
|
|
7
7
|
_baseUrl;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
2
|
-
import { CRUD } from "
|
|
1
|
+
import { HTTPClient } from "../../../../utils/http";
|
|
2
|
+
import { CRUD } from "../../../../utils/crud";
|
|
3
3
|
import { CommunityProperty, CommunityPropertyPerson, CommunityPropertyPersonExtended, CreateCommunityPropertyDTO, CreateCommunityPropertyPersonDTO, UpdateCommunityPropertyDTO, UpdateCommunityPropertyPersonDTO } from "../types";
|
|
4
4
|
export declare class CommunitiesPropertiesAPI extends CRUD<CommunityProperty, CreateCommunityPropertyDTO, UpdateCommunityPropertyDTO> {
|
|
5
5
|
private readonly _propertyId?;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommunitiesPropertiesAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
class CommunitiesPropertiesAPI extends crud_1.CRUD {
|
|
6
6
|
_propertyId;
|
|
7
7
|
constructor(httpClient, baseUrl, _propertyId) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
1
|
+
import { HTTPClient } from "../../../../utils/http";
|
|
2
2
|
import { CommunityProvider, CommunityProviderExtended, CommunityProviderType, CreateCommunityProviderDTO, UpdateCommunityProviderDTO } from "../types";
|
|
3
3
|
export declare class CommunitiesProvidersAPI {
|
|
4
4
|
private _httpClient;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommunitiesProvidersAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
class CommunitiesProvidersAPI {
|
|
6
6
|
_httpClient;
|
|
7
7
|
_baseUrl;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
2
|
-
import { CRUD } from "
|
|
1
|
+
import { HTTPClient } from "../../../../utils/http";
|
|
2
|
+
import { CRUD } from "../../../../utils/crud";
|
|
3
3
|
import { CreateReceiptDetailDTO, CreateReceiptDTO, ReceiptDetail, ReceiptExtended, UpdateReceiptDetailDTO, UpdateReceiptDTO } from "../types/receipt";
|
|
4
|
-
import { PaginatedResponse } from "
|
|
4
|
+
import { PaginatedResponse } from "../../../../utils/types";
|
|
5
5
|
export declare class ReceiptsAPI {
|
|
6
6
|
private readonly _httpClient;
|
|
7
7
|
private readonly _baseUrl;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReceiptsDetailsAPI = exports.ReceiptsAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
class ReceiptsAPI {
|
|
6
6
|
_httpClient;
|
|
7
7
|
_baseUrl;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CRUD } from "
|
|
1
|
+
import { CRUD } from "../../../../utils/crud";
|
|
2
2
|
import { CommunityPerson, CreateCommunityPersonDTO, UpdateCommunityPersonDTO } from "../types";
|
|
3
3
|
export declare class CommunitiesRolesAPI extends CRUD<CommunityPerson, CreateCommunityPersonDTO, UpdateCommunityPersonDTO> {
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CommunitiesRolesAPI = void 0;
|
|
4
|
-
const crud_1 = require("
|
|
4
|
+
const crud_1 = require("../../../../utils/crud");
|
|
5
5
|
class CommunitiesRolesAPI extends crud_1.CRUD {
|
|
6
6
|
}
|
|
7
7
|
exports.CommunitiesRolesAPI = CommunitiesRolesAPI;
|
|
@@ -10,7 +10,7 @@ export interface CommunityBlock {
|
|
|
10
10
|
}
|
|
11
11
|
export type CommunitySimpleBlock = Pick<CommunityBlock, "id" | "name">;
|
|
12
12
|
export interface CreateCommunityBlockDTO {
|
|
13
|
-
entity: Omit<CommunityBlock, "id" | "domainId" | "updatedAt">;
|
|
13
|
+
entity: Omit<CommunityBlock, "id" | "domainId" | "addressId" | "updatedAt">;
|
|
14
14
|
address: CreateCommunityAddressDTO;
|
|
15
15
|
}
|
|
16
16
|
export type UpdateCommunityBlockDTO = Partial<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;AAEvE,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAExE,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,EAAE,gBAAgB,CAAC;CAC3B;AAED,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,MAAM,CAAC,CAAC;AAEvE,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC,CAAC;IAC5E,OAAO,EAAE,yBAAyB,CAAC;CACpC;AAED,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC;IAC5C,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;IACrC,OAAO,EAAE,yBAAyB,CAAC;CACpC,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContactPerson } from "
|
|
1
|
+
import { ContactPerson } from "../../../../modules/contacts/persons/types/person";
|
|
2
2
|
import { CommunitySimpleBlock } from "./block";
|
|
3
3
|
export declare enum CommunityPropertyPersonType {
|
|
4
4
|
Owner = 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from "
|
|
2
|
-
import { APIResponse } from "
|
|
1
|
+
import { HTTPClient } from "../../utils/http";
|
|
2
|
+
import { APIResponse } from "../../types";
|
|
3
3
|
import { CreateTaskDTO, Task, TaskCategory } from "./types";
|
|
4
4
|
export declare class TicketingAPI {
|
|
5
5
|
private httpClient;
|
package/dist/utils/crud.d.ts
CHANGED
package/dist/utils/http.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eleva-io/erp-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "SDK oficial para el ERP de Eleva",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"@types/mime-types": "3.0.1",
|
|
20
20
|
"@types/node": "^20.19.1",
|
|
21
21
|
"dotenv": "^16.5.0",
|
|
22
|
+
"tsc-alias": "1.8.16",
|
|
22
23
|
"tsx": "^4.20.3",
|
|
23
24
|
"typescript": "^5.8.3"
|
|
24
25
|
},
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
"pnpm": ">=8"
|
|
36
37
|
},
|
|
37
38
|
"scripts": {
|
|
38
|
-
"build": "pnpm tsc",
|
|
39
|
+
"build": "pnpm tsc && pnpm tsc-alias",
|
|
39
40
|
"test": "jest",
|
|
40
41
|
"dev": "pnpm tsc --watch",
|
|
41
42
|
"sandbox": "tsx sandbox/index.ts",
|