@eleva-io/erp-sdk 0.1.3 → 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/erp.js +13 -9
- package/dist/erp.js.map +1 -1
- package/dist/index.js +20 -4
- package/dist/index.js.map +1 -1
- package/dist/modules/contacts/api.js +7 -3
- package/dist/modules/contacts/api.js.map +1 -1
- package/dist/modules/contacts/index.js +18 -2
- package/dist/modules/contacts/index.js.map +1 -1
- package/dist/modules/contacts/persons/api/addresses.js +7 -3
- package/dist/modules/contacts/persons/api/addresses.js.map +1 -1
- package/dist/modules/contacts/persons/api/index.js +18 -2
- package/dist/modules/contacts/persons/api/index.js.map +1 -1
- package/dist/modules/contacts/persons/api/persons.js +8 -4
- package/dist/modules/contacts/persons/api/persons.js.map +1 -1
- package/dist/modules/contacts/persons/index.js +18 -2
- package/dist/modules/contacts/persons/index.js.map +1 -1
- package/dist/modules/contacts/persons/types/address.js +2 -1
- package/dist/modules/contacts/persons/types/index.js +19 -3
- package/dist/modules/contacts/persons/types/index.js.map +1 -1
- package/dist/modules/contacts/persons/types/person.js +5 -2
- package/dist/modules/contacts/persons/types/person.js.map +1 -1
- package/dist/modules/contacts/persons/types/person_address.js +2 -1
- package/dist/modules/horizontal/api.js +7 -3
- package/dist/modules/horizontal/api.js.map +1 -1
- package/dist/modules/horizontal/communities/api/agents.js +6 -2
- package/dist/modules/horizontal/communities/api/agents.js.map +1 -1
- package/dist/modules/horizontal/communities/api/blocks.js +8 -4
- package/dist/modules/horizontal/communities/api/blocks.js.map +1 -1
- package/dist/modules/horizontal/communities/api/communities.js +22 -18
- package/dist/modules/horizontal/communities/api/communities.js.map +1 -1
- package/dist/modules/horizontal/communities/api/communities_config.js +8 -4
- package/dist/modules/horizontal/communities/api/communities_config.js.map +1 -1
- package/dist/modules/horizontal/communities/api/documents.js +8 -3
- package/dist/modules/horizontal/communities/api/documents.js.map +1 -1
- package/dist/modules/horizontal/communities/api/employees.js +7 -3
- package/dist/modules/horizontal/communities/api/employees.js.map +1 -1
- package/dist/modules/horizontal/communities/api/index.js +26 -10
- package/dist/modules/horizontal/communities/api/index.js.map +1 -1
- package/dist/modules/horizontal/communities/api/properties.js +7 -3
- package/dist/modules/horizontal/communities/api/properties.js.map +1 -1
- package/dist/modules/horizontal/communities/api/providers.js +7 -3
- package/dist/modules/horizontal/communities/api/providers.js.map +1 -1
- package/dist/modules/horizontal/communities/api/receipts.js +9 -4
- package/dist/modules/horizontal/communities/api/receipts.js.map +1 -1
- package/dist/modules/horizontal/communities/api/roles.js +6 -2
- package/dist/modules/horizontal/communities/api/roles.js.map +1 -1
- package/dist/modules/horizontal/communities/index.js +18 -2
- package/dist/modules/horizontal/communities/index.js.map +1 -1
- package/dist/modules/horizontal/communities/types/address.js +2 -1
- package/dist/modules/horizontal/communities/types/agent.js +2 -1
- package/dist/modules/horizontal/communities/types/block.js +2 -1
- package/dist/modules/horizontal/communities/types/community.js +2 -1
- package/dist/modules/horizontal/communities/types/community_config.js +2 -1
- package/dist/modules/horizontal/communities/types/document.js +11 -8
- package/dist/modules/horizontal/communities/types/document.js.map +1 -1
- package/dist/modules/horizontal/communities/types/employee.js +5 -2
- package/dist/modules/horizontal/communities/types/employee.js.map +1 -1
- package/dist/modules/horizontal/communities/types/index.js +25 -9
- package/dist/modules/horizontal/communities/types/index.js.map +1 -1
- package/dist/modules/horizontal/communities/types/property.js +7 -4
- package/dist/modules/horizontal/communities/types/property.js.map +1 -1
- package/dist/modules/horizontal/communities/types/provider.js +5 -2
- package/dist/modules/horizontal/communities/types/provider.js.map +1 -1
- package/dist/modules/horizontal/communities/types/receipt.js +9 -6
- package/dist/modules/horizontal/communities/types/receipt.js.map +1 -1
- package/dist/modules/horizontal/communities/types/roles.js +2 -1
- package/dist/modules/horizontal/communities/types/tag.js +2 -1
- package/dist/modules/horizontal/index.js +18 -2
- package/dist/modules/horizontal/index.js.map +1 -1
- package/dist/modules/index.js +19 -3
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/ticketing/api.js +5 -1
- package/dist/modules/ticketing/api.js.map +1 -1
- package/dist/modules/ticketing/index.js +18 -2
- package/dist/modules/ticketing/index.js.map +1 -1
- package/dist/modules/ticketing/types.js +9 -6
- package/dist/modules/ticketing/types.js.map +1 -1
- package/dist/types.js +2 -1
- package/dist/utils/crud.js +5 -1
- package/dist/utils/crud.js.map +1 -1
- package/dist/utils/http.js +16 -9
- package/dist/utils/http.js.map +1 -1
- package/dist/utils/index.js +19 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/signature.js +9 -3
- package/dist/utils/signature.js.map +1 -1
- package/dist/utils/types.js +2 -1
- package/package.json +1 -1
package/dist/erp.js
CHANGED
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ERPClient = void 0;
|
|
4
|
+
const http_1 = require("./utils/http");
|
|
5
|
+
const horizontal_1 = require("./modules/horizontal");
|
|
6
|
+
const ticketing_1 = require("./modules/ticketing");
|
|
7
|
+
const api_1 = require("./modules/contacts/api");
|
|
8
|
+
class ERPClient {
|
|
6
9
|
_baseUrl = "/api/v1";
|
|
7
10
|
_httpClient;
|
|
8
11
|
constructor(config) {
|
|
9
12
|
if (!config.baseURL || !config.apiKey || !config.apiSecret) {
|
|
10
13
|
throw new Error("Missing required configuration");
|
|
11
14
|
}
|
|
12
|
-
this._httpClient = new HTTPClient({
|
|
15
|
+
this._httpClient = new http_1.HTTPClient({
|
|
13
16
|
baseURL: config.baseURL,
|
|
14
17
|
apiKey: config.apiKey,
|
|
15
18
|
apiSecret: config.apiSecret,
|
|
16
19
|
});
|
|
17
20
|
}
|
|
18
21
|
contacts() {
|
|
19
|
-
return new ContactsAPI(this._httpClient, this._baseUrl);
|
|
22
|
+
return new api_1.ContactsAPI(this._httpClient, this._baseUrl);
|
|
20
23
|
}
|
|
21
24
|
horizontal() {
|
|
22
|
-
return new HorizontalAPI(this._httpClient, this._baseUrl);
|
|
25
|
+
return new horizontal_1.HorizontalAPI(this._httpClient, this._baseUrl);
|
|
23
26
|
}
|
|
24
27
|
tasks() {
|
|
25
|
-
return new TicketingAPI(this._httpClient, this._baseUrl);
|
|
28
|
+
return new ticketing_1.TicketingAPI(this._httpClient, this._baseUrl);
|
|
26
29
|
}
|
|
27
30
|
}
|
|
31
|
+
exports.ERPClient = ERPClient;
|
|
28
32
|
//# sourceMappingURL=erp.js.map
|
package/dist/erp.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erp.js","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"erp.js","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":";;;AAAA,uCAA0C;AAC1C,qDAAqD;AACrD,mDAAmD;AACnD,gDAAqD;AAQrD,MAAa,SAAS;IACH,QAAQ,GAAW,SAAS,CAAC;IAEtC,WAAW,CAAa;IAEhC,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YAC3D,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACpD,CAAC;QAED,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAU,CAAC;YAChC,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,iBAAW,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1D,CAAC;IAED,UAAU;QACR,OAAO,IAAI,0BAAa,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK;QACH,OAAO,IAAI,wBAAY,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC3D,CAAC;CACF;AA5BD,8BA4BC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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("./utils"), exports);
|
|
19
|
+
__exportStar(require("./modules"), exports);
|
|
20
|
+
__exportStar(require("./erp"), exports);
|
|
5
21
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,wCAAsB"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactsAPI = void 0;
|
|
4
|
+
const persons_1 = require("./persons");
|
|
5
|
+
class ContactsAPI {
|
|
3
6
|
_httpClient;
|
|
4
7
|
_baseUrl;
|
|
5
8
|
constructor(_httpClient, baseUrl) {
|
|
@@ -7,7 +10,8 @@ export class ContactsAPI {
|
|
|
7
10
|
this._baseUrl = `${baseUrl}/contacts`;
|
|
8
11
|
}
|
|
9
12
|
persons(id) {
|
|
10
|
-
return new ContactsPersonsAPI(this._httpClient, `${this._baseUrl}/persons`, id);
|
|
13
|
+
return new persons_1.ContactsPersonsAPI(this._httpClient, `${this._baseUrl}/persons`, id);
|
|
11
14
|
}
|
|
12
15
|
}
|
|
16
|
+
exports.ContactsAPI = ContactsAPI;
|
|
13
17
|
//# sourceMappingURL=api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/contacts/api.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/contacts/api.ts"],"names":[],"mappings":";;;AACA,uCAA+C;AAE/C,MAAa,WAAW;IAGF;IAFH,QAAQ,CAAS;IAElC,YAAoB,WAAuB,EAAE,OAAe;QAAxC,gBAAW,GAAX,WAAW,CAAY;QACzC,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,WAAW,CAAC;IACxC,CAAC;IAED,OAAO,CAAC,EAAW;QACjB,OAAO,IAAI,4BAAkB,CAC3B,IAAI,CAAC,WAAW,EAChB,GAAG,IAAI,CAAC,QAAQ,UAAU,EAC1B,EAAE,CACH,CAAC;IACJ,CAAC;CACF;AAdD,kCAcC"}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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("./persons"), exports);
|
|
18
|
+
__exportStar(require("./api"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/contacts/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/contacts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,wCAAsB"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactsPersonsAddressesAPI = void 0;
|
|
4
|
+
const crud_1 = require("@src/utils/crud");
|
|
5
|
+
class ContactsPersonsAddressesAPI {
|
|
3
6
|
_crud;
|
|
4
7
|
constructor(httpClient, baseUrl, addressId) {
|
|
5
|
-
this._crud = new CRUD(httpClient, {
|
|
8
|
+
this._crud = new crud_1.CRUD(httpClient, {
|
|
6
9
|
basePath: baseUrl,
|
|
7
10
|
id: addressId,
|
|
8
11
|
});
|
|
@@ -20,4 +23,5 @@ export class ContactsPersonsAddressesAPI {
|
|
|
20
23
|
return this._crud.find(query);
|
|
21
24
|
}
|
|
22
25
|
}
|
|
26
|
+
exports.ContactsPersonsAddressesAPI = ContactsPersonsAddressesAPI;
|
|
23
27
|
//# sourceMappingURL=addresses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/addresses.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/addresses.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAOvC,MAAa,2BAA2B;IAC9B,KAAK,CAIX;IAEF,YAAY,UAAsB,EAAE,OAAe,EAAE,SAAkB;QACrE,IAAI,CAAC,KAAK,GAAG,IAAI,WAAI,CAAC,UAAU,EAAE;YAChC,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,SAAS;SACd,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,IAAmC;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CACJ,EAAU,EACV,IAAmC;QAEnC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,EAAW;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IAED,IAAI,CAAC,KAA+B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACF;AAhCD,kEAgCC"}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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("./addresses"), exports);
|
|
18
|
+
__exportStar(require("./persons"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactsPersonsAPI = void 0;
|
|
4
|
+
const crud_1 = require("@src/utils/crud");
|
|
5
|
+
const addresses_1 = require("./addresses");
|
|
6
|
+
class ContactsPersonsAPI extends crud_1.CRUD {
|
|
4
7
|
_personId;
|
|
5
8
|
constructor(httpClient, baseUrl, _personId) {
|
|
6
9
|
super(httpClient, {
|
|
@@ -13,7 +16,8 @@ export class ContactsPersonsAPI extends CRUD {
|
|
|
13
16
|
if (!this._personId) {
|
|
14
17
|
throw new Error("Person ID is required");
|
|
15
18
|
}
|
|
16
|
-
return new ContactsPersonsAddressesAPI(this._httpClient, `${this._config.basePath}/${this._personId}/addresses`, id);
|
|
19
|
+
return new addresses_1.ContactsPersonsAddressesAPI(this._httpClient, `${this._config.basePath}/${this._personId}/addresses`, id);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
22
|
+
exports.ContactsPersonsAPI = ContactsPersonsAPI;
|
|
19
23
|
//# sourceMappingURL=persons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persons.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/persons.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"persons.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/persons.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAOvC,2CAA0D;AAE1D,MAAa,kBAAmB,SAAQ,WAKvC;IAIoB;IAHnB,YACE,UAAsB,EACtB,OAAe,EACE,SAAkB;QAEnC,KAAK,CAAC,UAAU,EAAE;YAChB,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,SAAS;SACd,CAAC,CAAC;QALc,cAAS,GAAT,SAAS,CAAS;IAMrC,CAAC;IAED,SAAS,CAAC,EAAW;QACnB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,IAAI,uCAA2B,CACpC,IAAI,CAAC,WAAW,EAChB,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,YAAY,EACtD,EAAE,CACH,CAAC;IACJ,CAAC;CACF;AA5BD,gDA4BC"}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/contacts/persons/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/contacts/persons/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,wCAAsB"}
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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("./address"), exports);
|
|
18
|
+
__exportStar(require("./person"), exports);
|
|
19
|
+
__exportStar(require("./person_address"), exports);
|
|
4
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB;AACzB,mDAAiC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContactPersonType = void 0;
|
|
4
|
+
var ContactPersonType;
|
|
2
5
|
(function (ContactPersonType) {
|
|
3
6
|
ContactPersonType[ContactPersonType["Natural"] = 1] = "Natural";
|
|
4
7
|
ContactPersonType[ContactPersonType["Legal"] = 2] = "Legal";
|
|
5
|
-
})(ContactPersonType || (ContactPersonType = {}));
|
|
8
|
+
})(ContactPersonType || (exports.ContactPersonType = ContactPersonType = {}));
|
|
6
9
|
//# sourceMappingURL=person.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"person.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person.ts"],"names":[],"mappings":";;;AAEA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,+DAAW,CAAA;IACX,2DAAS,CAAA;AACX,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HorizontalAPI = void 0;
|
|
4
|
+
const communities_1 = require("./communities");
|
|
5
|
+
class HorizontalAPI {
|
|
3
6
|
_httpClient;
|
|
4
7
|
_baseUrl;
|
|
5
8
|
constructor(_httpClient, baseUrl) {
|
|
@@ -7,7 +10,8 @@ export class HorizontalAPI {
|
|
|
7
10
|
this._baseUrl = `${baseUrl}/horizontal`;
|
|
8
11
|
}
|
|
9
12
|
communities(id) {
|
|
10
|
-
return new CommunitiesAPI(this._httpClient, `${this._baseUrl}/communities`, id);
|
|
13
|
+
return new communities_1.CommunitiesAPI(this._httpClient, `${this._baseUrl}/communities`, id);
|
|
11
14
|
}
|
|
12
15
|
}
|
|
16
|
+
exports.HorizontalAPI = HorizontalAPI;
|
|
13
17
|
//# sourceMappingURL=api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/horizontal/api.ts"],"names":[],"mappings":"AACA
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/horizontal/api.ts"],"names":[],"mappings":";;;AACA,+CAA+C;AAE/C,MAAa,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,4BAAc,CACvB,IAAI,CAAC,WAAW,EAChB,GAAG,IAAI,CAAC,QAAQ,cAAc,EAC9B,EAAE,CACH,CAAC;IACJ,CAAC;CACF;AAdD,sCAcC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunitiesAgentsAPI = void 0;
|
|
4
|
+
const crud_1 = require("@src/utils/crud");
|
|
5
|
+
class CommunitiesAgentsAPI extends crud_1.CRUD {
|
|
3
6
|
}
|
|
7
|
+
exports.CommunitiesAgentsAPI = CommunitiesAgentsAPI;
|
|
4
8
|
//# sourceMappingURL=agents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/agents.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/agents.ts"],"names":[],"mappings":";;;AAAA,0CAAuC;AAOvC,MAAa,oBAAqB,SAAQ,WAIzC;CAAG;AAJJ,oDAII"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunitiesBlocksAPI = void 0;
|
|
4
|
+
const crud_1 = require("@src/utils/crud");
|
|
5
|
+
const properties_1 = require("./properties");
|
|
6
|
+
class CommunitiesBlocksAPI extends crud_1.CRUD {
|
|
4
7
|
_blockId;
|
|
5
8
|
constructor(httpClient, baseUrl, _blockId) {
|
|
6
9
|
super(httpClient, {
|
|
@@ -13,7 +16,8 @@ export class CommunitiesBlocksAPI extends CRUD {
|
|
|
13
16
|
if (!this._blockId) {
|
|
14
17
|
throw new Error("Block ID is required");
|
|
15
18
|
}
|
|
16
|
-
return new CommunitiesPropertiesAPI(this._httpClient, `${this._config.basePath}/${this._blockId}/properties`, id);
|
|
19
|
+
return new properties_1.CommunitiesPropertiesAPI(this._httpClient, `${this._config.basePath}/${this._blockId}/properties`, id);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
22
|
+
exports.CommunitiesBlocksAPI = CommunitiesBlocksAPI;
|
|
19
23
|
//# sourceMappingURL=blocks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blocks.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/blocks.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"blocks.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/blocks.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AASvC,6CAAwD;AAExD,MAAa,oBAAqB,SAAQ,WAIzC;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,qCAAwB,CACjC,IAAI,CAAC,WAAW,EAChB,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,aAAa,EACtD,EAAE,CACH,CAAC;IACJ,CAAC;CACF;AA3BD,oDA2BC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunitiesAPI = void 0;
|
|
4
|
+
const crud_1 = require("@src/utils/crud");
|
|
5
|
+
const communities_config_1 = require("./communities_config");
|
|
6
|
+
const employees_1 = require("./employees");
|
|
7
|
+
const blocks_1 = require("./blocks");
|
|
8
|
+
const providers_1 = require("./providers");
|
|
9
|
+
const agents_1 = require("./agents");
|
|
10
|
+
const roles_1 = require("./roles");
|
|
11
|
+
const receipts_1 = require("./receipts");
|
|
12
|
+
const documents_1 = require("./documents");
|
|
13
|
+
class CommunitiesAPI extends crud_1.CRUD {
|
|
11
14
|
_communityId;
|
|
12
15
|
constructor(httpClient, baseUrl, _communityId) {
|
|
13
16
|
super(httpClient, {
|
|
@@ -17,13 +20,13 @@ export class CommunitiesAPI extends CRUD {
|
|
|
17
20
|
this._communityId = _communityId;
|
|
18
21
|
}
|
|
19
22
|
config() {
|
|
20
|
-
return new CommunitiesConfigAPI(this._httpClient, `${this._config.basePath}/config`);
|
|
23
|
+
return new communities_config_1.CommunitiesConfigAPI(this._httpClient, `${this._config.basePath}/config`);
|
|
21
24
|
}
|
|
22
25
|
agents() {
|
|
23
26
|
if (!this._communityId) {
|
|
24
27
|
throw new Error("Community ID is required");
|
|
25
28
|
}
|
|
26
|
-
return new CommunitiesAgentsAPI(this._httpClient, {
|
|
29
|
+
return new agents_1.CommunitiesAgentsAPI(this._httpClient, {
|
|
27
30
|
basePath: `${this._config.basePath}/${this._communityId}/agents`,
|
|
28
31
|
methods: {
|
|
29
32
|
isReadEnabled: false,
|
|
@@ -34,7 +37,7 @@ export class CommunitiesAPI extends CRUD {
|
|
|
34
37
|
if (!this._communityId) {
|
|
35
38
|
throw new Error("Community ID is required");
|
|
36
39
|
}
|
|
37
|
-
return new CommunitiesRolesAPI(this._httpClient, {
|
|
40
|
+
return new roles_1.CommunitiesRolesAPI(this._httpClient, {
|
|
38
41
|
basePath: `${this._config.basePath}/${this._communityId}/roles`,
|
|
39
42
|
methods: {
|
|
40
43
|
isReadEnabled: false,
|
|
@@ -45,31 +48,32 @@ export class CommunitiesAPI extends CRUD {
|
|
|
45
48
|
if (!this._communityId) {
|
|
46
49
|
throw new Error("Community ID is required");
|
|
47
50
|
}
|
|
48
|
-
return new CommunitiesEmployeesAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/employees`);
|
|
51
|
+
return new employees_1.CommunitiesEmployeesAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/employees`);
|
|
49
52
|
}
|
|
50
53
|
providers() {
|
|
51
54
|
if (!this._communityId) {
|
|
52
55
|
throw new Error("Community ID is required");
|
|
53
56
|
}
|
|
54
|
-
return new CommunitiesProvidersAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/providers`);
|
|
57
|
+
return new providers_1.CommunitiesProvidersAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/providers`);
|
|
55
58
|
}
|
|
56
59
|
blocks(id) {
|
|
57
60
|
if (!this._communityId) {
|
|
58
61
|
throw new Error("Community ID is required");
|
|
59
62
|
}
|
|
60
|
-
return new CommunitiesBlocksAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/blocks`, id);
|
|
63
|
+
return new blocks_1.CommunitiesBlocksAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/blocks`, id);
|
|
61
64
|
}
|
|
62
65
|
documents(id) {
|
|
63
66
|
if (!this._communityId) {
|
|
64
67
|
throw new Error("Community ID is required");
|
|
65
68
|
}
|
|
66
|
-
return new DocumentsAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/documents`, id);
|
|
69
|
+
return new documents_1.DocumentsAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/documents`, id);
|
|
67
70
|
}
|
|
68
71
|
receipts(id) {
|
|
69
72
|
if (!this._communityId) {
|
|
70
73
|
throw new Error("Community ID is required");
|
|
71
74
|
}
|
|
72
|
-
return new ReceiptsAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/receipts`, id);
|
|
75
|
+
return new receipts_1.ReceiptsAPI(this._httpClient, `${this._config.basePath}/${this._communityId}/receipts`, id);
|
|
73
76
|
}
|
|
74
77
|
}
|
|
78
|
+
exports.CommunitiesAPI = CommunitiesAPI;
|
|
75
79
|
//# sourceMappingURL=communities.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communities.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/communities.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"communities.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/communities.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunitiesConfigAPI = void 0;
|
|
4
|
+
const crud_1 = require("@src/utils/crud");
|
|
5
|
+
class CommunitiesConfigAPI {
|
|
3
6
|
_httpClient;
|
|
4
7
|
_baseUrl;
|
|
5
8
|
constructor(_httpClient, _baseUrl) {
|
|
@@ -7,7 +10,7 @@ export class CommunitiesConfigAPI {
|
|
|
7
10
|
this._baseUrl = _baseUrl;
|
|
8
11
|
}
|
|
9
12
|
agents() {
|
|
10
|
-
return new CRUD(this._httpClient, {
|
|
13
|
+
return new crud_1.CRUD(this._httpClient, {
|
|
11
14
|
basePath: `${this._baseUrl}/agents`,
|
|
12
15
|
methods: {
|
|
13
16
|
isCreateEnabled: false,
|
|
@@ -18,7 +21,7 @@ export class CommunitiesConfigAPI {
|
|
|
18
21
|
});
|
|
19
22
|
}
|
|
20
23
|
roles() {
|
|
21
|
-
return new CRUD(this._httpClient, {
|
|
24
|
+
return new crud_1.CRUD(this._httpClient, {
|
|
22
25
|
basePath: `${this._baseUrl}/roles`,
|
|
23
26
|
methods: {
|
|
24
27
|
isCreateEnabled: false,
|
|
@@ -29,4 +32,5 @@ export class CommunitiesConfigAPI {
|
|
|
29
32
|
});
|
|
30
33
|
}
|
|
31
34
|
}
|
|
35
|
+
exports.CommunitiesConfigAPI = CommunitiesConfigAPI;
|
|
32
36
|
//# sourceMappingURL=communities_config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"communities_config.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/communities_config.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"communities_config.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/communities_config.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAGvC,MAAa,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,WAAI,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,WAAI,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;AA1BD,oDA0BC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DocumentsBinAPI = exports.DocumentsAPI = void 0;
|
|
4
|
+
const crud_1 = require("@src/utils/crud");
|
|
5
|
+
class DocumentsAPI extends crud_1.CRUD {
|
|
3
6
|
constructor(httpClient, baseUrl, documentId) {
|
|
4
7
|
super(httpClient, { basePath: baseUrl, id: documentId });
|
|
5
8
|
}
|
|
@@ -16,7 +19,8 @@ export class DocumentsAPI extends CRUD {
|
|
|
16
19
|
return this._httpClient.getBinary(path);
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
|
-
|
|
22
|
+
exports.DocumentsAPI = DocumentsAPI;
|
|
23
|
+
class DocumentsBinAPI {
|
|
20
24
|
_httpClient;
|
|
21
25
|
_baseUrl;
|
|
22
26
|
constructor(_httpClient, _baseUrl) {
|
|
@@ -32,4 +36,5 @@ export class DocumentsBinAPI {
|
|
|
32
36
|
return this._httpClient.put(path);
|
|
33
37
|
}
|
|
34
38
|
}
|
|
39
|
+
exports.DocumentsBinAPI = DocumentsBinAPI;
|
|
35
40
|
//# sourceMappingURL=documents.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/documents.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"documents.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/documents.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAOvC,MAAa,YAAa,SAAQ,WAIjC;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;AAjCD,oCAiCC;AAED,MAAa,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;AAjBD,0CAiBC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CommunitiesEmployeesAPI = void 0;
|
|
4
|
+
const crud_1 = require("@src/utils/crud");
|
|
5
|
+
class CommunitiesEmployeesAPI {
|
|
3
6
|
_httpClient;
|
|
4
7
|
_baseUrl;
|
|
5
8
|
_crud;
|
|
6
9
|
constructor(_httpClient, _baseUrl) {
|
|
7
10
|
this._httpClient = _httpClient;
|
|
8
11
|
this._baseUrl = _baseUrl;
|
|
9
|
-
this._crud = new CRUD(this._httpClient, { basePath: this._baseUrl });
|
|
12
|
+
this._crud = new crud_1.CRUD(this._httpClient, { basePath: this._baseUrl });
|
|
10
13
|
}
|
|
11
14
|
create(data) {
|
|
12
15
|
return this._crud.create(data);
|
|
@@ -21,4 +24,5 @@ export class CommunitiesEmployeesAPI {
|
|
|
21
24
|
return this._crud.find(query);
|
|
22
25
|
}
|
|
23
26
|
}
|
|
27
|
+
exports.CommunitiesEmployeesAPI = CommunitiesEmployeesAPI;
|
|
24
28
|
//# sourceMappingURL=employees.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"employees.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/employees.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"employees.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/api/employees.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AASvC,MAAa,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,WAAI,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;AA3CD,0DA2CC"}
|