@eleva-io/erp-sdk 0.1.7 → 0.1.9
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.d.ts +6 -4
- package/dist/erp.d.ts.map +1 -1
- package/dist/erp.js +7 -3
- package/dist/erp.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/modules/contacts/api.d.ts +2 -2
- package/dist/modules/contacts/api.d.ts.map +1 -1
- package/dist/modules/contacts/api.js.map +1 -1
- package/dist/modules/contacts/index.d.ts +2 -2
- package/dist/modules/contacts/index.d.ts.map +1 -1
- package/dist/modules/contacts/index.js.map +1 -1
- package/dist/modules/contacts/persons/api/addresses.d.ts +2 -2
- package/dist/modules/contacts/persons/api/addresses.d.ts.map +1 -1
- package/dist/modules/contacts/persons/api/addresses.js.map +1 -1
- package/dist/modules/contacts/persons/api/index.d.ts +2 -2
- package/dist/modules/contacts/persons/api/index.d.ts.map +1 -1
- package/dist/modules/contacts/persons/api/index.js.map +1 -1
- package/dist/modules/contacts/persons/api/persons.d.ts +4 -4
- package/dist/modules/contacts/persons/api/persons.d.ts.map +1 -1
- package/dist/modules/contacts/persons/api/persons.js +1 -1
- package/dist/modules/contacts/persons/api/persons.js.map +1 -1
- package/dist/modules/contacts/persons/index.d.ts +2 -2
- package/dist/modules/contacts/persons/index.d.ts.map +1 -1
- package/dist/modules/contacts/persons/index.js.map +1 -1
- package/dist/modules/contacts/persons/types/address.d.ts +1 -1
- package/dist/modules/contacts/persons/types/address.d.ts.map +1 -1
- package/dist/modules/contacts/persons/types/index.d.ts +3 -3
- package/dist/modules/contacts/persons/types/index.d.ts.map +1 -1
- package/dist/modules/contacts/persons/types/index.js.map +1 -1
- package/dist/modules/contacts/persons/types/person.d.ts +13 -4
- package/dist/modules/contacts/persons/types/person.d.ts.map +1 -1
- package/dist/modules/contacts/persons/types/person_address.d.ts +3 -3
- package/dist/modules/contacts/persons/types/person_address.d.ts.map +1 -1
- package/dist/modules/global/agents/index.d.ts +2 -0
- package/dist/modules/global/agents/index.d.ts.map +1 -0
- package/dist/modules/global/agents/index.js +18 -0
- package/dist/modules/global/agents/index.js.map +1 -0
- package/dist/modules/global/agents/types.d.ts +16 -0
- package/dist/modules/global/agents/types.d.ts.map +1 -0
- package/dist/modules/global/agents/types.js +10 -0
- package/dist/modules/global/agents/types.js.map +1 -0
- package/dist/modules/global/api.d.ts +9 -0
- package/dist/modules/global/api.d.ts.map +1 -0
- package/dist/modules/global/api.js +17 -0
- package/dist/modules/global/api.js.map +1 -0
- package/dist/modules/global/index.d.ts +3 -0
- package/dist/modules/global/index.d.ts.map +1 -0
- package/dist/modules/global/index.js +19 -0
- package/dist/modules/global/index.js.map +1 -0
- package/dist/modules/global/search/api.d.ts +10 -0
- package/dist/modules/global/search/api.d.ts.map +1 -0
- package/dist/modules/global/search/api.js +19 -0
- package/dist/modules/global/search/api.js.map +1 -0
- package/dist/modules/global/search/index.d.ts +3 -0
- package/dist/modules/global/search/index.d.ts.map +1 -0
- package/dist/modules/global/search/index.js +19 -0
- package/dist/modules/global/search/index.js.map +1 -0
- package/dist/modules/global/search/types.d.ts +37 -0
- package/dist/modules/global/search/types.d.ts.map +1 -0
- package/dist/modules/global/search/types.js +10 -0
- package/dist/modules/global/search/types.js.map +1 -0
- package/dist/modules/horizontal/api.d.ts +2 -2
- package/dist/modules/horizontal/api.d.ts.map +1 -1
- package/dist/modules/horizontal/api.js.map +1 -1
- package/dist/modules/horizontal/communities/api/agents.d.ts +2 -2
- package/dist/modules/horizontal/communities/api/agents.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/agents.js.map +1 -1
- package/dist/modules/horizontal/communities/api/blocks.d.ts +4 -4
- package/dist/modules/horizontal/communities/api/blocks.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/blocks.js +1 -1
- package/dist/modules/horizontal/communities/api/blocks.js.map +1 -1
- package/dist/modules/horizontal/communities/api/communities.d.ts +13 -11
- package/dist/modules/horizontal/communities/api/communities.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/communities.js +14 -7
- package/dist/modules/horizontal/communities/api/communities.js.map +1 -1
- package/dist/modules/horizontal/communities/api/communities_config.d.ts +3 -3
- package/dist/modules/horizontal/communities/api/communities_config.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/communities_config.js.map +1 -1
- package/dist/modules/horizontal/communities/api/documents.d.ts +3 -3
- package/dist/modules/horizontal/communities/api/documents.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/documents.js +6 -1
- package/dist/modules/horizontal/communities/api/documents.js.map +1 -1
- package/dist/modules/horizontal/communities/api/employees.d.ts +2 -2
- package/dist/modules/horizontal/communities/api/employees.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/employees.js.map +1 -1
- package/dist/modules/horizontal/communities/api/index.d.ts +11 -10
- package/dist/modules/horizontal/communities/api/index.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/index.js +1 -0
- package/dist/modules/horizontal/communities/api/index.js.map +1 -1
- package/dist/modules/horizontal/communities/api/properties.d.ts +3 -3
- package/dist/modules/horizontal/communities/api/properties.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/properties.js +1 -1
- package/dist/modules/horizontal/communities/api/properties.js.map +1 -1
- package/dist/modules/horizontal/communities/api/providers.d.ts +2 -2
- package/dist/modules/horizontal/communities/api/providers.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/providers.js.map +1 -1
- package/dist/modules/horizontal/communities/api/receipts.d.ts +4 -4
- package/dist/modules/horizontal/communities/api/receipts.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/receipts.js +1 -1
- package/dist/modules/horizontal/communities/api/receipts.js.map +1 -1
- package/dist/modules/horizontal/communities/api/roles.d.ts +2 -2
- package/dist/modules/horizontal/communities/api/roles.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/roles.js.map +1 -1
- package/dist/modules/horizontal/communities/api/route_trackings/index.d.ts +4 -0
- package/dist/modules/horizontal/communities/api/route_trackings/index.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/route_trackings/index.js +20 -0
- package/dist/modules/horizontal/communities/api/route_trackings/index.js.map +1 -0
- package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.d.ts +11 -0
- package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.js +21 -0
- package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.js.map +1 -0
- package/dist/modules/horizontal/communities/api/route_trackings/routes.d.ts +27 -0
- package/dist/modules/horizontal/communities/api/route_trackings/routes.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/route_trackings/routes.js +69 -0
- package/dist/modules/horizontal/communities/api/route_trackings/routes.js.map +1 -0
- package/dist/modules/horizontal/communities/api/route_trackings/zones.d.ts +11 -0
- package/dist/modules/horizontal/communities/api/route_trackings/zones.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/route_trackings/zones.js +26 -0
- package/dist/modules/horizontal/communities/api/route_trackings/zones.js.map +1 -0
- package/dist/modules/horizontal/communities/index.d.ts +2 -2
- package/dist/modules/horizontal/communities/index.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/index.js.map +1 -1
- package/dist/modules/horizontal/communities/types/address.d.ts +2 -2
- package/dist/modules/horizontal/communities/types/address.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/agent.d.ts +2 -2
- package/dist/modules/horizontal/communities/types/agent.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/block.d.ts +4 -5
- package/dist/modules/horizontal/communities/types/block.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/community.d.ts +12 -5
- package/dist/modules/horizontal/communities/types/community.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/community_config.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/document.d.ts +2 -2
- package/dist/modules/horizontal/communities/types/document.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/employee.d.ts +3 -3
- package/dist/modules/horizontal/communities/types/employee.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/index.d.ts +10 -9
- package/dist/modules/horizontal/communities/types/index.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/index.js +1 -0
- package/dist/modules/horizontal/communities/types/index.js.map +1 -1
- package/dist/modules/horizontal/communities/types/property.d.ts +6 -6
- package/dist/modules/horizontal/communities/types/property.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/property.js.map +1 -1
- package/dist/modules/horizontal/communities/types/provider.d.ts +3 -3
- package/dist/modules/horizontal/communities/types/provider.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/receipt.d.ts +7 -7
- package/dist/modules/horizontal/communities/types/receipt.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/roles.d.ts +2 -2
- package/dist/modules/horizontal/communities/types/roles.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/types/route_tracking.d.ts +53 -0
- package/dist/modules/horizontal/communities/types/route_tracking.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/route_tracking.js +19 -0
- package/dist/modules/horizontal/communities/types/route_tracking.js.map +1 -0
- package/dist/modules/horizontal/communities/types/tag.d.ts.map +1 -1
- package/dist/modules/horizontal/index.d.ts +2 -2
- package/dist/modules/horizontal/index.d.ts.map +1 -1
- package/dist/modules/horizontal/index.js.map +1 -1
- package/dist/modules/index.d.ts +4 -3
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js +1 -0
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/ticketing/api.d.ts +6 -15
- package/dist/modules/ticketing/api.d.ts.map +1 -1
- package/dist/modules/ticketing/api.js +9 -38
- package/dist/modules/ticketing/api.js.map +1 -1
- package/dist/modules/ticketing/index.d.ts +2 -2
- package/dist/modules/ticketing/index.d.ts.map +1 -1
- package/dist/modules/ticketing/index.js +1 -1
- package/dist/modules/ticketing/index.js.map +1 -1
- package/dist/modules/ticketing/tasks/api/activity_logs.d.ts +10 -0
- package/dist/modules/ticketing/tasks/api/activity_logs.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/api/activity_logs.js +21 -0
- package/dist/modules/ticketing/tasks/api/activity_logs.js.map +1 -0
- package/dist/modules/ticketing/tasks/api/attachments.d.ts +8 -0
- package/dist/modules/ticketing/tasks/api/attachments.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/api/attachments.js +16 -0
- package/dist/modules/ticketing/tasks/api/attachments.js.map +1 -0
- package/dist/modules/ticketing/tasks/api/conversations.d.ts +11 -0
- package/dist/modules/ticketing/tasks/api/conversations.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/api/conversations.js +35 -0
- package/dist/modules/ticketing/tasks/api/conversations.js.map +1 -0
- package/dist/modules/ticketing/tasks/api/followers.d.ts +11 -0
- package/dist/modules/ticketing/tasks/api/followers.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/api/followers.js +24 -0
- package/dist/modules/ticketing/tasks/api/followers.js.map +1 -0
- package/dist/modules/ticketing/tasks/api/index.d.ts +7 -0
- package/dist/modules/ticketing/tasks/api/index.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/api/index.js +23 -0
- package/dist/modules/ticketing/tasks/api/index.js.map +1 -0
- package/dist/modules/ticketing/tasks/api/resources.d.ts +11 -0
- package/dist/modules/ticketing/tasks/api/resources.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/api/resources.js +24 -0
- package/dist/modules/ticketing/tasks/api/resources.js.map +1 -0
- package/dist/modules/ticketing/tasks/api/tasks.d.ts +18 -0
- package/dist/modules/ticketing/tasks/api/tasks.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/api/tasks.js +51 -0
- package/dist/modules/ticketing/tasks/api/tasks.js.map +1 -0
- package/dist/modules/ticketing/tasks/index.d.ts +3 -0
- package/dist/modules/ticketing/tasks/index.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/index.js +19 -0
- package/dist/modules/ticketing/tasks/index.js.map +1 -0
- package/dist/modules/ticketing/tasks/types/activity_log.d.ts +28 -0
- package/dist/modules/ticketing/tasks/types/activity_log.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/types/activity_log.js +24 -0
- package/dist/modules/ticketing/tasks/types/activity_log.js.map +1 -0
- package/dist/modules/ticketing/tasks/types/converstation.d.ts +31 -0
- package/dist/modules/ticketing/tasks/types/converstation.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/types/converstation.js +11 -0
- package/dist/modules/ticketing/tasks/types/converstation.js.map +1 -0
- package/dist/modules/ticketing/tasks/types/follower.d.ts +8 -0
- package/dist/modules/ticketing/tasks/types/follower.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/types/follower.js +3 -0
- package/dist/modules/ticketing/tasks/types/follower.js.map +1 -0
- package/dist/modules/ticketing/tasks/types/index.d.ts +6 -0
- package/dist/modules/ticketing/tasks/types/index.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/types/index.js +22 -0
- package/dist/modules/ticketing/tasks/types/index.js.map +1 -0
- package/dist/modules/ticketing/tasks/types/resource.d.ts +18 -0
- package/dist/modules/ticketing/tasks/types/resource.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/types/resource.js +15 -0
- package/dist/modules/ticketing/tasks/types/resource.js.map +1 -0
- package/dist/modules/ticketing/tasks/types/task.d.ts +64 -0
- package/dist/modules/ticketing/tasks/types/task.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/types/task.js +25 -0
- package/dist/modules/ticketing/tasks/types/task.js.map +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/crud.d.ts +2 -2
- package/dist/utils/crud.d.ts.map +1 -1
- package/dist/utils/crud.js +6 -6
- package/dist/utils/crud.js.map +1 -1
- package/dist/utils/http.d.ts +16 -8
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/http.js +69 -23
- package/dist/utils/http.js.map +1 -1
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/signature.d.ts.map +1 -1
- package/dist/utils/signature.js +2 -5
- package/dist/utils/signature.js.map +1 -1
- package/dist/utils/types.d.ts.map +1 -1
- package/package.json +17 -3
package/dist/erp.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { HorizontalAPI } from
|
|
2
|
-
import { TicketingAPI } from
|
|
3
|
-
import { ContactsAPI } from
|
|
1
|
+
import { HorizontalAPI } from './modules/horizontal';
|
|
2
|
+
import { TicketingAPI } from './modules/ticketing';
|
|
3
|
+
import { ContactsAPI } from './modules/contacts/api';
|
|
4
|
+
import { GlobalAPI } from './modules/global/api';
|
|
4
5
|
export interface ERPClientConfig {
|
|
5
6
|
baseURL: string;
|
|
6
7
|
apiKey: string;
|
|
@@ -10,8 +11,9 @@ export declare class ERPClient {
|
|
|
10
11
|
private readonly _baseUrl;
|
|
11
12
|
private _httpClient;
|
|
12
13
|
constructor(config: ERPClientConfig);
|
|
14
|
+
global(): GlobalAPI;
|
|
13
15
|
contacts(): ContactsAPI;
|
|
14
16
|
horizontal(): HorizontalAPI;
|
|
15
|
-
|
|
17
|
+
ticketing(): TicketingAPI;
|
|
16
18
|
}
|
|
17
19
|
//# sourceMappingURL=erp.d.ts.map
|
package/dist/erp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erp.d.ts","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"erp.d.ts","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoB;IAE7C,OAAO,CAAC,WAAW,CAAY;gBAEnB,MAAM,EAAE,eAAe;IAYnC,MAAM,IAAI,SAAS;IAInB,QAAQ,IAAI,WAAW;IAIvB,UAAU,IAAI,aAAa;IAI3B,SAAS,IAAI,YAAY;CAG1B"}
|
package/dist/erp.js
CHANGED
|
@@ -5,12 +5,13 @@ const http_1 = require("./utils/http");
|
|
|
5
5
|
const horizontal_1 = require("./modules/horizontal");
|
|
6
6
|
const ticketing_1 = require("./modules/ticketing");
|
|
7
7
|
const api_1 = require("./modules/contacts/api");
|
|
8
|
+
const api_2 = require("./modules/global/api");
|
|
8
9
|
class ERPClient {
|
|
9
|
-
_baseUrl =
|
|
10
|
+
_baseUrl = '/api/v1';
|
|
10
11
|
_httpClient;
|
|
11
12
|
constructor(config) {
|
|
12
13
|
if (!config.baseURL || !config.apiKey || !config.apiSecret) {
|
|
13
|
-
throw new Error(
|
|
14
|
+
throw new Error('Missing required configuration');
|
|
14
15
|
}
|
|
15
16
|
this._httpClient = new http_1.HTTPClient({
|
|
16
17
|
baseURL: config.baseURL,
|
|
@@ -18,13 +19,16 @@ class ERPClient {
|
|
|
18
19
|
apiSecret: config.apiSecret,
|
|
19
20
|
});
|
|
20
21
|
}
|
|
22
|
+
global() {
|
|
23
|
+
return new api_2.GlobalAPI(this._httpClient, this._baseUrl);
|
|
24
|
+
}
|
|
21
25
|
contacts() {
|
|
22
26
|
return new api_1.ContactsAPI(this._httpClient, this._baseUrl);
|
|
23
27
|
}
|
|
24
28
|
horizontal() {
|
|
25
29
|
return new horizontal_1.HorizontalAPI(this._httpClient, this._baseUrl);
|
|
26
30
|
}
|
|
27
|
-
|
|
31
|
+
ticketing() {
|
|
28
32
|
return new ticketing_1.TicketingAPI(this._httpClient, this._baseUrl);
|
|
29
33
|
}
|
|
30
34
|
}
|
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,uCAAyC;AACzC,qDAAoD;AACpD,mDAAkD;AAClD,gDAAoD;AACpD,8CAAgD;AAQhD,MAAa,SAAS;IACH,QAAQ,GAAW,SAAS,CAAA;IAErC,WAAW,CAAY;IAE/B,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,CAAA;QACnD,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,CAAA;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,eAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACvD,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,iBAAW,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACzD,CAAC;IAED,UAAU;QACR,OAAO,IAAI,0BAAa,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC3D,CAAC;IAED,SAAS;QACP,OAAO,IAAI,wBAAY,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC1D,CAAC;CACF;AAhCD,8BAgCC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './utils';
|
|
3
|
+
export * from './modules';
|
|
4
|
+
export * from './erp';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA"}
|
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,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,wCAAqB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from
|
|
2
|
-
import { ContactsPersonsAPI } from
|
|
1
|
+
import { HTTPClient } from '../../utils/http';
|
|
2
|
+
import { ContactsPersonsAPI } from './persons';
|
|
3
3
|
export declare class ContactsAPI {
|
|
4
4
|
private _httpClient;
|
|
5
5
|
private readonly _baseUrl;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/modules/contacts/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/modules/contacts/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAE9C,qBAAa,WAAW;IAIpB,OAAO,CAAC,WAAW;IAHrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAGvB,WAAW,EAAE,UAAU,EAC/B,OAAO,EAAE,MAAM;IAKjB,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,kBAAkB;CAGzC"}
|
|
@@ -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,uCAA8C;AAE9C,MAAa,WAAW;IAIZ;IAHO,QAAQ,CAAQ;IAEjC,YACU,WAAuB,EAC/B,OAAe;QADP,gBAAW,GAAX,WAAW,CAAY;QAG/B,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,WAAW,CAAA;IACvC,CAAC;IAED,OAAO,CAAC,EAAW;QACjB,OAAO,IAAI,4BAAkB,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,UAAU,EAAE,EAAE,CAAC,CAAA;IACjF,CAAC;CACF;AAbD,kCAaC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './persons';
|
|
2
|
+
export * from './api';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/contacts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/contacts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA"}
|
|
@@ -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,4CAAyB;AACzB,wCAAqB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HTTPClient } from
|
|
2
|
-
import { ContactPersonAddress, CreateContactPersonAddressDTO, UpdateContactPersonAddressDTO } from
|
|
1
|
+
import { HTTPClient } from '../../../../utils/http';
|
|
2
|
+
import { ContactPersonAddress, CreateContactPersonAddressDTO, UpdateContactPersonAddressDTO } from '../types';
|
|
3
3
|
export declare class ContactsPersonsAddressesAPI {
|
|
4
4
|
private _crud;
|
|
5
5
|
constructor(httpClient: HTTPClient, baseUrl: string, addressId?: string);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,OAAO,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAE7G,qBAAa,2BAA2B;IACtC,OAAO,CAAC,KAAK,CAA0F;gBAE3F,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAOvE,MAAM,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI1E,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAItF,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlC,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;CAGvE"}
|
|
@@ -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,0CAAsC;AAGtC,MAAa,2BAA2B;IAC9B,KAAK,CAA0F;IAEvG,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,CAAA;IACJ,CAAC;IAED,MAAM,CAAC,IAAmC;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,IAAmC;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;IACpC,CAAC;IAED,MAAM,CAAC,EAAW;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IAC9B,CAAC;IAED,IAAI,CAAC,KAA+B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;CACF;AAzBD,kEAyBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './addresses';
|
|
2
|
+
export * from './persons';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA"}
|
|
@@ -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,8CAA2B;AAC3B,4CAAyB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { HTTPClient } from
|
|
2
|
-
import { CRUD } from
|
|
3
|
-
import { ContactPerson, ContactPersonExtended, CreateContactPersonDTO, UpdateContactPersonDTO } from
|
|
4
|
-
import { ContactsPersonsAddressesAPI } from
|
|
1
|
+
import { HTTPClient } from '../../../../utils/http';
|
|
2
|
+
import { CRUD } from '../../../../utils/crud';
|
|
3
|
+
import { ContactPerson, ContactPersonExtended, CreateContactPersonDTO, UpdateContactPersonDTO } from '../types';
|
|
4
|
+
import { ContactsPersonsAddressesAPI } from './addresses';
|
|
5
5
|
export declare class ContactsPersonsAPI extends CRUD<ContactPersonExtended, CreateContactPersonDTO, UpdateContactPersonDTO, ContactPerson | ContactPersonExtended> {
|
|
6
6
|
private readonly _personId?;
|
|
7
7
|
constructor(httpClient: HTTPClient, baseUrl: string, _personId?: string | undefined);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persons.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/persons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"persons.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/persons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAC/G,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAEzD,qBAAa,kBAAmB,SAAQ,IAAI,CAC1C,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,GAAG,qBAAqB,CACtC;IAIG,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;gBAF3B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,MAAM,EACE,SAAS,CAAC,EAAE,MAAM,YAAA;IAQrC,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,2BAA2B;CAOpD"}
|
|
@@ -14,7 +14,7 @@ class ContactsPersonsAPI extends crud_1.CRUD {
|
|
|
14
14
|
}
|
|
15
15
|
addresses(id) {
|
|
16
16
|
if (!this._personId) {
|
|
17
|
-
throw new Error(
|
|
17
|
+
throw new Error('Person ID is required');
|
|
18
18
|
}
|
|
19
19
|
return new addresses_1.ContactsPersonsAddressesAPI(this._httpClient, `${this._config.basePath}/${this._personId}/addresses`, id);
|
|
20
20
|
}
|
|
@@ -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,0CAAsC;AAEtC,2CAAyD;AAEzD,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,CAAA;QALe,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,CAAA;QAC1C,CAAC;QAED,OAAO,IAAI,uCAA2B,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,YAAY,EAAE,EAAE,CAAC,CAAA;IACtH,CAAC;CACF;AAxBD,gDAwBC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './api';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/contacts/persons/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/contacts/persons/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
|
@@ -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,0CAAuB;AACvB,wCAAqB"}
|
|
@@ -3,7 +3,7 @@ export interface ContactAddressGplacesRaw {
|
|
|
3
3
|
value: string;
|
|
4
4
|
updatedAt: Date;
|
|
5
5
|
}
|
|
6
|
-
export type CreateContactAddressGplacesRawDTO = Omit<ContactAddressGplacesRaw,
|
|
6
|
+
export type CreateContactAddressGplacesRawDTO = Omit<ContactAddressGplacesRaw, 'updatedAt'>;
|
|
7
7
|
export interface ContactAddress {
|
|
8
8
|
id: string;
|
|
9
9
|
gplacesRawId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/address.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/address.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAAC,wBAAwB,EAAE,WAAW,CAAC,CAAA;AAE3F,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,IAAI,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from './address';
|
|
2
|
+
export * from './person';
|
|
3
|
+
export * from './person_address';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
|
|
@@ -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,4CAAyB;AACzB,2CAAwB;AACxB,mDAAgC"}
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
-
import { CreateContactPersonAddressDTO } from
|
|
1
|
+
import { CreateContactPersonAddressDTO } from './person_address';
|
|
2
2
|
export declare enum ContactPersonType {
|
|
3
3
|
Natural = 1,
|
|
4
4
|
Legal = 2
|
|
5
5
|
}
|
|
6
|
+
export interface ContactPersonCollection {
|
|
7
|
+
id: string;
|
|
8
|
+
domain_id: string;
|
|
9
|
+
type_id: ContactPersonType;
|
|
10
|
+
full_name: string;
|
|
11
|
+
legal_id?: string;
|
|
12
|
+
phones?: string[];
|
|
13
|
+
emails?: string[];
|
|
14
|
+
}
|
|
6
15
|
export interface ContactPerson {
|
|
7
16
|
id: string;
|
|
8
17
|
domainId: string;
|
|
@@ -21,12 +30,12 @@ export interface ContactPerson {
|
|
|
21
30
|
tags?: [string, boolean][];
|
|
22
31
|
updatedAt: Date;
|
|
23
32
|
}
|
|
24
|
-
export interface ContactPersonExtended extends Omit<ContactPerson,
|
|
33
|
+
export interface ContactPersonExtended extends Omit<ContactPerson, 'legalRepresentative'> {
|
|
25
34
|
legalRepresentative?: ContactPerson;
|
|
26
35
|
}
|
|
27
36
|
export interface CreateContactPersonDTO {
|
|
28
|
-
entity: Omit<ContactPerson,
|
|
37
|
+
entity: Omit<ContactPerson, 'id' | 'domainId' | 'updatedAt' | 'isAuthorized'>;
|
|
29
38
|
addresses: CreateContactPersonAddressDTO[];
|
|
30
39
|
}
|
|
31
|
-
export type UpdateContactPersonDTO = Partial<Omit<ContactPerson,
|
|
40
|
+
export type UpdateContactPersonDTO = Partial<Omit<ContactPerson, 'id' | 'domainId' | 'updatedAt' | 'isAuthorized'>>;
|
|
32
41
|
//# sourceMappingURL=person.d.ts.map
|
|
@@ -1 +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,
|
|
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,CAAA;AAEhE,oBAAY,iBAAiB;IAC3B,OAAO,IAAI;IACX,KAAK,IAAI;CACV;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,iBAAiB,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,iBAAiB,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,MAAM,CAAC,EAAE,IAAI,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;IAC1B,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,aAAa,EAAE,qBAAqB,CAAC;IACvF,mBAAmB,CAAC,EAAE,aAAa,CAAA;CACpC;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC,CAAA;IAC7E,SAAS,EAAE,6BAA6B,EAAE,CAAA;CAC3C;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC,CAAC,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContactAddress, CreateContactAddressGplacesRawDTO } from
|
|
1
|
+
import { ContactAddress, CreateContactAddressGplacesRawDTO } from './address';
|
|
2
2
|
export type ContactPersonAddress = ContactAddress;
|
|
3
3
|
export interface ContactPersonAddressExtra {
|
|
4
4
|
id: string;
|
|
@@ -12,9 +12,9 @@ export interface ContactPersonAddressExtra {
|
|
|
12
12
|
updatedAt: Date;
|
|
13
13
|
}
|
|
14
14
|
export interface CreateContactPersonAddressDTO {
|
|
15
|
-
entity: Omit<ContactAddress,
|
|
15
|
+
entity: Omit<ContactAddress, 'id' | 'gplacesRawId' | 'updatedAt'>;
|
|
16
16
|
raw: CreateContactAddressGplacesRawDTO;
|
|
17
|
-
extra: Omit<ContactPersonAddressExtra,
|
|
17
|
+
extra: Omit<ContactPersonAddressExtra, 'id' | 'personId' | 'addressId' | 'updatedAt'>;
|
|
18
18
|
}
|
|
19
19
|
export type UpdateContactPersonAddressDTO = CreateContactPersonAddressDTO;
|
|
20
20
|
//# sourceMappingURL=person_address.d.ts.map
|
|
@@ -1 +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,
|
|
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,CAAA;AAE7E,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAA;AAEjD,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,cAAc,GAAG,WAAW,CAAC,CAAA;IACjE,GAAG,EAAE,iCAAiC,CAAA;IACtC,KAAK,EAAE,IAAI,CAAC,yBAAyB,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC,CAAA;CACtF;AAED,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/agents/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/global/agents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum AgentType {
|
|
2
|
+
AGENT = 1,
|
|
3
|
+
SUPERADMIN = 2,
|
|
4
|
+
SYSTEM = 3
|
|
5
|
+
}
|
|
6
|
+
export interface Agent {
|
|
7
|
+
id: string;
|
|
8
|
+
domainId: string;
|
|
9
|
+
typeId: AgentType;
|
|
10
|
+
email: string;
|
|
11
|
+
fullName: string;
|
|
12
|
+
enabled: boolean;
|
|
13
|
+
isOwner: boolean;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/agents/types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,KAAK,IAAI;IACT,UAAU,IAAI;IACd,MAAM,IAAI;CACX;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,SAAS,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,IAAI,CAAA;CAChB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgentType = void 0;
|
|
4
|
+
var AgentType;
|
|
5
|
+
(function (AgentType) {
|
|
6
|
+
AgentType[AgentType["AGENT"] = 1] = "AGENT";
|
|
7
|
+
AgentType[AgentType["SUPERADMIN"] = 2] = "SUPERADMIN";
|
|
8
|
+
AgentType[AgentType["SYSTEM"] = 3] = "SYSTEM";
|
|
9
|
+
})(AgentType || (exports.AgentType = AgentType = {}));
|
|
10
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/global/agents/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,2CAAS,CAAA;IACT,qDAAc,CAAA;IACd,6CAAU,CAAA;AACZ,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTTPClient } from '../../utils/http';
|
|
2
|
+
import { GlobalSearchAPI } from './search';
|
|
3
|
+
export declare class GlobalAPI {
|
|
4
|
+
private _httpClient;
|
|
5
|
+
private readonly _baseUrl;
|
|
6
|
+
constructor(_httpClient: HTTPClient, baseUrl: string);
|
|
7
|
+
search(): GlobalSearchAPI;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/modules/global/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,qBAAa,SAAS;IAIlB,OAAO,CAAC,WAAW;IAHrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAGvB,WAAW,EAAE,UAAU,EAC/B,OAAO,EAAE,MAAM;IAKjB,MAAM,IAAI,eAAe;CAG1B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlobalAPI = void 0;
|
|
4
|
+
const search_1 = require("./search");
|
|
5
|
+
class GlobalAPI {
|
|
6
|
+
_httpClient;
|
|
7
|
+
_baseUrl;
|
|
8
|
+
constructor(_httpClient, baseUrl) {
|
|
9
|
+
this._httpClient = _httpClient;
|
|
10
|
+
this._baseUrl = `${baseUrl}/global`;
|
|
11
|
+
}
|
|
12
|
+
search() {
|
|
13
|
+
return new search_1.GlobalSearchAPI(this._httpClient, `${this._baseUrl}/search`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.GlobalAPI = GlobalAPI;
|
|
17
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/global/api.ts"],"names":[],"mappings":";;;AACA,qCAA0C;AAE1C,MAAa,SAAS;IAIV;IAHO,QAAQ,CAAQ;IAEjC,YACU,WAAuB,EAC/B,OAAe;QADP,gBAAW,GAAX,WAAW,CAAY;QAG/B,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,SAAS,CAAA;IACrC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,wBAAe,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,SAAS,CAAC,CAAA;IACzE,CAAC;CACF;AAbD,8BAaC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./agents"), exports);
|
|
18
|
+
__exportStar(require("./search"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/global/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,2CAAwB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTTPClient } from '../../../utils/http';
|
|
2
|
+
import { GlobalSearchQueryContacts, GlobalSearchQueryMulti, GlobalSearchResult, GlobalSearchResultContactsPerson, GlobalSearchResultMulti } from './types';
|
|
3
|
+
export declare class GlobalSearchAPI {
|
|
4
|
+
private readonly _httpClient;
|
|
5
|
+
private readonly _baseUrl;
|
|
6
|
+
constructor(_httpClient: HTTPClient, _baseUrl: string);
|
|
7
|
+
multi(query: GlobalSearchQueryMulti): Promise<GlobalSearchResultMulti<GlobalSearchResult>>;
|
|
8
|
+
contacts(query: GlobalSearchQueryContacts): Promise<GlobalSearchResultContactsPerson>;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/search/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,kBAAkB,EAClB,gCAAgC,EAChC,uBAAuB,EACxB,MAAM,SAAS,CAAA;AAEhB,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAGnC,KAAK,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,CAAC;IAO1F,QAAQ,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,gCAAgC,CAAC;CAMtF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GlobalSearchAPI = void 0;
|
|
4
|
+
class GlobalSearchAPI {
|
|
5
|
+
_httpClient;
|
|
6
|
+
_baseUrl;
|
|
7
|
+
constructor(_httpClient, _baseUrl) {
|
|
8
|
+
this._httpClient = _httpClient;
|
|
9
|
+
this._baseUrl = _baseUrl;
|
|
10
|
+
}
|
|
11
|
+
multi(query) {
|
|
12
|
+
return this._httpClient.get(`${this._baseUrl}/multi`, query);
|
|
13
|
+
}
|
|
14
|
+
contacts(query) {
|
|
15
|
+
return this._httpClient.get(`${this._baseUrl}/contacts`, query);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.GlobalSearchAPI = GlobalSearchAPI;
|
|
19
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/modules/global/search/api.ts"],"names":[],"mappings":";;;AASA,MAAa,eAAe;IAEP;IACA;IAFnB,YACmB,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;IAChC,CAAC;IAEJ,KAAK,CAAC,KAA6B;QACjC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CACzB,GAAG,IAAI,CAAC,QAAQ,QAAQ,EACxB,KAAK,CACN,CAAA;IACH,CAAC;IAED,QAAQ,CAAC,KAAgC;QACvC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CACzB,GAAG,IAAI,CAAC,QAAQ,WAAW,EAC3B,KAAK,CACN,CAAA;IACH,CAAC;CACF;AAnBD,0CAmBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/search/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./api"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/global/search/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,wCAAqB"}
|