@eleva-io/erp-sdk 0.1.10 → 0.1.12
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 +2 -5
- package/dist/erp.d.ts.map +1 -1
- package/dist/erp.js +25 -23
- package/dist/erp.js.map +1 -1
- package/dist/index.js +4 -20
- package/dist/index.js.map +1 -1
- package/dist/modules/contacts/api.js +3 -7
- package/dist/modules/contacts/api.js.map +1 -1
- package/dist/modules/contacts/index.js +2 -18
- package/dist/modules/contacts/index.js.map +1 -1
- package/dist/modules/contacts/persons/api/addresses.js +3 -7
- package/dist/modules/contacts/persons/api/addresses.js.map +1 -1
- package/dist/modules/contacts/persons/api/index.js +2 -18
- package/dist/modules/contacts/persons/api/index.js.map +1 -1
- package/dist/modules/contacts/persons/api/persons.js +4 -8
- package/dist/modules/contacts/persons/api/persons.js.map +1 -1
- package/dist/modules/contacts/persons/index.js +2 -18
- package/dist/modules/contacts/persons/index.js.map +1 -1
- package/dist/modules/contacts/persons/types/address.js +1 -2
- package/dist/modules/contacts/persons/types/index.js +3 -19
- package/dist/modules/contacts/persons/types/index.js.map +1 -1
- package/dist/modules/contacts/persons/types/person.js +2 -5
- package/dist/modules/contacts/persons/types/person.js.map +1 -1
- package/dist/modules/contacts/persons/types/person_address.js +1 -2
- package/dist/modules/domain/agent/index.d.ts +2 -0
- package/dist/modules/domain/agent/index.d.ts.map +1 -0
- package/dist/{client/resources/horizontal/api.js → modules/domain/agent/index.js} +1 -11
- package/dist/modules/domain/agent/index.js.map +1 -0
- package/dist/modules/domain/agent/types.d.ts +26 -0
- package/dist/modules/domain/agent/types.d.ts.map +1 -0
- package/dist/modules/domain/agent/types.js +10 -0
- package/dist/modules/domain/agent/types.js.map +1 -0
- package/dist/modules/domain/agents/api.js +3 -7
- package/dist/modules/domain/agents/api.js.map +1 -1
- package/dist/modules/domain/agents/index.js +2 -18
- package/dist/modules/domain/agents/index.js.map +1 -1
- package/dist/modules/domain/agents/types.js +2 -5
- package/dist/modules/domain/agents/types.js.map +1 -1
- package/dist/modules/domain/api/domain.d.ts +9 -0
- package/dist/modules/domain/api/domain.d.ts.map +1 -0
- package/dist/modules/domain/api/domain.js +17 -0
- package/dist/modules/domain/api/domain.js.map +1 -0
- package/dist/modules/domain/api/iam.d.ts +7 -0
- package/dist/modules/domain/api/iam.d.ts.map +1 -0
- package/dist/modules/domain/api/iam.js +13 -0
- package/dist/modules/domain/api/iam.js.map +1 -0
- package/dist/modules/domain/api/index.d.ts +3 -0
- package/dist/modules/domain/api/index.d.ts.map +1 -0
- package/dist/{client/resources/horizontal/communities/api.js → modules/domain/api/index.js} +3 -18
- package/dist/modules/domain/api/index.js.map +1 -0
- package/dist/modules/domain/api.js +5 -9
- package/dist/modules/domain/api.js.map +1 -1
- package/dist/modules/domain/iam/api/agents.js +3 -7
- package/dist/modules/domain/iam/api/agents.js.map +1 -1
- package/dist/modules/domain/iam/api/iam.js +5 -9
- package/dist/modules/domain/iam/api/iam.js.map +1 -1
- package/dist/modules/domain/iam/api/index.js +3 -19
- package/dist/modules/domain/iam/api/index.js.map +1 -1
- package/dist/modules/domain/iam/api/roles.js +2 -6
- package/dist/modules/domain/iam/api/roles.js.map +1 -1
- package/dist/modules/domain/iam/index.js +2 -18
- package/dist/modules/domain/iam/index.js.map +1 -1
- package/dist/modules/domain/iam/types/index.js +1 -17
- package/dist/modules/domain/iam/types/index.js.map +1 -1
- package/dist/modules/domain/iam/types/roles.js +1 -2
- package/dist/modules/domain/index.js +3 -19
- package/dist/modules/domain/index.js.map +1 -1
- package/dist/modules/domain/types/agent.d.ts +26 -0
- package/dist/modules/domain/types/agent.d.ts.map +1 -0
- package/dist/modules/domain/types/agent.js +10 -0
- package/dist/modules/domain/types/agent.js.map +1 -0
- package/dist/modules/domain/types/index.d.ts +2 -0
- package/dist/modules/domain/types/index.d.ts.map +1 -0
- package/dist/modules/domain/types/index.js +18 -0
- package/dist/modules/domain/types/index.js.map +1 -0
- package/dist/modules/global/api.js +3 -7
- package/dist/modules/global/api.js.map +1 -1
- package/dist/modules/global/index.js +2 -18
- package/dist/modules/global/index.js.map +1 -1
- package/dist/modules/global/search/api.js +1 -5
- package/dist/modules/global/search/api.js.map +1 -1
- package/dist/modules/global/search/index.js +2 -18
- package/dist/modules/global/search/index.js.map +1 -1
- package/dist/modules/global/search/types.js +2 -5
- package/dist/modules/global/search/types.js.map +1 -1
- package/dist/modules/horizontal/api.js +3 -7
- package/dist/modules/horizontal/api.js.map +1 -1
- package/dist/modules/horizontal/communities/api/agents.js +2 -6
- package/dist/modules/horizontal/communities/api/agents.js.map +1 -1
- package/dist/modules/horizontal/communities/api/blocks.js +4 -8
- package/dist/modules/horizontal/communities/api/blocks.js.map +1 -1
- package/dist/modules/horizontal/communities/api/communities.js +20 -24
- package/dist/modules/horizontal/communities/api/communities.js.map +1 -1
- package/dist/modules/horizontal/communities/api/communities_config.js +4 -8
- package/dist/modules/horizontal/communities/api/communities_config.js.map +1 -1
- package/dist/modules/horizontal/communities/api/documents.js +3 -8
- package/dist/modules/horizontal/communities/api/documents.js.map +1 -1
- package/dist/modules/horizontal/communities/api/employees.js +3 -7
- package/dist/modules/horizontal/communities/api/employees.js.map +1 -1
- package/dist/modules/horizontal/communities/api/index.js +11 -27
- package/dist/modules/horizontal/communities/api/index.js.map +1 -1
- package/dist/modules/horizontal/communities/api/properties.js +3 -7
- package/dist/modules/horizontal/communities/api/properties.js.map +1 -1
- package/dist/modules/horizontal/communities/api/providers.js +3 -7
- package/dist/modules/horizontal/communities/api/providers.js.map +1 -1
- package/dist/modules/horizontal/communities/api/receipts.d.ts +1 -1
- package/dist/modules/horizontal/communities/api/receipts.d.ts.map +1 -1
- package/dist/modules/horizontal/communities/api/receipts.js +4 -9
- package/dist/modules/horizontal/communities/api/receipts.js.map +1 -1
- package/dist/modules/horizontal/communities/api/roles.js +2 -6
- package/dist/modules/horizontal/communities/api/roles.js.map +1 -1
- package/dist/modules/horizontal/communities/api/route_trackings/index.js +3 -19
- package/dist/modules/horizontal/communities/api/route_trackings/index.js.map +1 -1
- package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.js +5 -9
- package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.js.map +1 -1
- package/dist/modules/horizontal/communities/api/route_trackings/routes.js +6 -12
- package/dist/modules/horizontal/communities/api/route_trackings/routes.js.map +1 -1
- package/dist/modules/horizontal/communities/api/route_trackings/zones.js +3 -7
- package/dist/modules/horizontal/communities/api/route_trackings/zones.js.map +1 -1
- package/dist/modules/horizontal/communities/index.js +2 -18
- package/dist/modules/horizontal/communities/index.js.map +1 -1
- package/dist/modules/horizontal/communities/types/address.js +1 -2
- package/dist/modules/horizontal/communities/types/agent.js +1 -2
- package/dist/modules/horizontal/communities/types/block.js +1 -2
- package/dist/modules/horizontal/communities/types/community.js +1 -2
- package/dist/modules/horizontal/communities/types/community_config.js +1 -2
- package/dist/modules/horizontal/communities/types/document.js +8 -11
- package/dist/modules/horizontal/communities/types/document.js.map +1 -1
- package/dist/modules/horizontal/communities/types/employee.js +2 -5
- package/dist/modules/horizontal/communities/types/employee.js.map +1 -1
- package/dist/modules/horizontal/communities/types/index.js +10 -26
- package/dist/modules/horizontal/communities/types/index.js.map +1 -1
- package/dist/modules/horizontal/communities/types/property.js +4 -7
- package/dist/modules/horizontal/communities/types/property.js.map +1 -1
- package/dist/modules/horizontal/communities/types/provider.js +2 -5
- package/dist/modules/horizontal/communities/types/provider.js.map +1 -1
- package/dist/modules/horizontal/communities/types/receipt.js +6 -9
- package/dist/modules/horizontal/communities/types/receipt.js.map +1 -1
- package/dist/modules/horizontal/communities/types/roles.js +1 -2
- package/dist/modules/horizontal/communities/types/route_tracking.js +6 -9
- package/dist/modules/horizontal/communities/types/route_tracking.js.map +1 -1
- package/dist/modules/horizontal/communities/types/tag.js +1 -2
- package/dist/modules/horizontal/communities/types/visit.d.ts +54 -0
- package/dist/modules/horizontal/communities/types/visit.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/visit.js +39 -0
- package/dist/modules/horizontal/communities/types/visit.js.map +1 -0
- package/dist/modules/horizontal/index.js +2 -18
- package/dist/modules/horizontal/index.js.map +1 -1
- package/dist/modules/index.js +5 -21
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/ticketing/api.js +3 -7
- package/dist/modules/ticketing/api.js.map +1 -1
- package/dist/modules/ticketing/index.js +2 -18
- 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/activity_logs.js +3 -7
- package/dist/modules/ticketing/tasks/api/activity_logs.js.map +1 -1
- package/dist/modules/ticketing/tasks/api/attachments.js +1 -5
- package/dist/modules/ticketing/tasks/api/attachments.js.map +1 -1
- package/dist/modules/ticketing/tasks/api/conversation.d.ts +11 -0
- package/dist/modules/ticketing/tasks/api/conversation.d.ts.map +1 -0
- package/dist/modules/ticketing/tasks/api/conversation.js +35 -0
- package/dist/modules/ticketing/tasks/api/conversation.js.map +1 -0
- package/dist/modules/ticketing/tasks/api/conversations.js +3 -7
- package/dist/modules/ticketing/tasks/api/conversations.js.map +1 -1
- package/dist/modules/ticketing/tasks/api/followers.js +3 -7
- package/dist/modules/ticketing/tasks/api/followers.js.map +1 -1
- package/dist/modules/ticketing/tasks/api/index.js +6 -22
- package/dist/modules/ticketing/tasks/api/index.js.map +1 -1
- package/dist/modules/ticketing/tasks/api/resources.js +3 -7
- package/dist/modules/ticketing/tasks/api/resources.js.map +1 -1
- package/dist/modules/ticketing/tasks/api/tasks.js +12 -16
- package/dist/modules/ticketing/tasks/api/tasks.js.map +1 -1
- package/dist/modules/ticketing/tasks/index.js +2 -18
- package/dist/modules/ticketing/tasks/index.js.map +1 -1
- 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/activity_log.js +4 -7
- package/dist/modules/ticketing/tasks/types/activity_log.js.map +1 -1
- package/dist/modules/ticketing/tasks/types/converstation.js +2 -5
- package/dist/modules/ticketing/tasks/types/converstation.js.map +1 -1
- package/dist/modules/ticketing/tasks/types/follower.js +1 -2
- package/dist/modules/ticketing/tasks/types/index.js +5 -21
- package/dist/modules/ticketing/tasks/types/index.js.map +1 -1
- package/dist/modules/ticketing/tasks/types/resource.js +4 -7
- package/dist/modules/ticketing/tasks/types/resource.js.map +1 -1
- package/dist/modules/ticketing/tasks/types/task.js +6 -9
- package/dist/modules/ticketing/tasks/types/task.js.map +1 -1
- package/dist/types.js +1 -2
- package/dist/utils/crud.js +1 -5
- package/dist/utils/crud.js.map +1 -1
- package/dist/utils/http.d.ts +6 -1
- package/dist/utils/http.d.ts.map +1 -1
- package/dist/utils/http.js +22 -27
- package/dist/utils/http.js.map +1 -1
- package/dist/utils/index.js +3 -19
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/signature.js +3 -9
- package/dist/utils/signature.js.map +1 -1
- package/dist/utils/types.js +1 -2
- package/package.json +1 -1
- package/dist/client/client.d.ts +0 -11
- package/dist/client/client.js +0 -41
- package/dist/client/http.d.ts +0 -13
- package/dist/client/http.js +0 -86
- package/dist/client/resources/horizontal/api.d.ts +0 -8
- package/dist/client/resources/horizontal/communities/api.d.ts +0 -12
- package/dist/client/resources/horizontal/communities/types.d.ts +0 -49
- package/dist/client/resources/horizontal/communities/types.js +0 -2
- package/dist/client/resources/horizontal/communities.d.ts +0 -13
- package/dist/client/resources/horizontal/communities.js +0 -53
- package/dist/client/resources/horizontal/types.d.ts +0 -47
- package/dist/client/resources/horizontal/types.js +0 -2
- package/dist/client/resources/tasks/api.d.ts +0 -18
- package/dist/client/resources/tasks/api.js +0 -54
- package/dist/client/resources/tasks/types.d.ts +0 -58
- package/dist/client/resources/tasks/types.js +0 -24
- package/dist/client/resources/ticketing/api.d.ts +0 -18
- package/dist/client/resources/ticketing/api.js +0 -54
- package/dist/client/resources/ticketing/types.d.ts +0 -58
- package/dist/client/resources/ticketing/types.js +0 -24
- package/dist/client/resources/types.d.ts +0 -12
- package/dist/client/resources/types.js +0 -2
- package/dist/client/utils/crud.d.ts +0 -22
- package/dist/client/utils/crud.js +0 -52
- package/dist/client/utils/signature.d.ts +0 -5
- package/dist/client/utils/signature.js +0 -19
- package/dist/tasks/creator.d.ts +0 -9
- package/dist/tasks/creator.js +0 -25
- package/dist/tasks/std.d.ts +0 -37
- package/dist/tasks/std.js +0 -83
- package/dist/tasks/template.d.ts +0 -43
- package/dist/tasks/template.js +0 -56
- package/dist/types/index.d.ts +0 -14
- package/dist/types/index.js +0 -2
package/dist/erp.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
+
import { HTTPClientConfig } from './utils/http';
|
|
1
2
|
import { HorizontalAPI } from './modules/horizontal';
|
|
2
3
|
import { TicketingAPI } from './modules/ticketing';
|
|
3
4
|
import { ContactsAPI } from './modules/contacts/api';
|
|
4
5
|
import { GlobalAPI } from './modules/global/api';
|
|
5
6
|
import { DomainAPI } from './modules/domain/api';
|
|
6
|
-
export
|
|
7
|
-
baseURL: string;
|
|
8
|
-
apiKey: string;
|
|
9
|
-
apiSecret: string;
|
|
10
|
-
}
|
|
7
|
+
export type ERPClientConfig = HTTPClientConfig;
|
|
11
8
|
export declare class ERPClient {
|
|
12
9
|
private readonly _baseUrl;
|
|
13
10
|
private _httpClient;
|
package/dist/erp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"erp.d.ts","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"erp.d.ts","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC3D,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;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAA;AAE9C,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoB;IAE7C,OAAO,CAAC,WAAW,CAAY;gBAEnB,MAAM,EAAE,eAAe;IAkBnC,MAAM,IAAI,SAAS;IAInB,MAAM,IAAI,SAAS;IAInB,QAAQ,IAAI,WAAW;IAIvB,UAAU,IAAI,aAAa;IAI3B,SAAS,IAAI,YAAY;CAG1B"}
|
package/dist/erp.js
CHANGED
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const api_2 = require("./modules/global/api");
|
|
9
|
-
const api_3 = require("./modules/domain/api");
|
|
10
|
-
class ERPClient {
|
|
1
|
+
import { HTTPClient } from './utils/http';
|
|
2
|
+
import { HorizontalAPI } from './modules/horizontal';
|
|
3
|
+
import { TicketingAPI } from './modules/ticketing';
|
|
4
|
+
import { ContactsAPI } from './modules/contacts/api';
|
|
5
|
+
import { GlobalAPI } from './modules/global/api';
|
|
6
|
+
import { DomainAPI } from './modules/domain/api';
|
|
7
|
+
export class ERPClient {
|
|
11
8
|
_baseUrl = '/api/v1';
|
|
12
9
|
_httpClient;
|
|
13
10
|
constructor(config) {
|
|
14
|
-
if (!config.baseURL
|
|
15
|
-
throw new Error('Missing required configuration');
|
|
11
|
+
if (!config.baseURL) {
|
|
12
|
+
throw new Error('Missing required baseURL configuration');
|
|
16
13
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
14
|
+
if ('token' in config) {
|
|
15
|
+
if (!config.token) {
|
|
16
|
+
throw new Error('Token is required when using token authentication');
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
if (!config.apiKey || !config.apiSecret) {
|
|
21
|
+
throw new Error('API key and secret are required when using API key authentication');
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
this._httpClient = new HTTPClient(config);
|
|
22
25
|
}
|
|
23
26
|
domain() {
|
|
24
|
-
return new
|
|
27
|
+
return new DomainAPI(this._httpClient, this._baseUrl); // TODO: auth http client
|
|
25
28
|
}
|
|
26
29
|
global() {
|
|
27
|
-
return new
|
|
30
|
+
return new GlobalAPI(this._httpClient, this._baseUrl);
|
|
28
31
|
}
|
|
29
32
|
contacts() {
|
|
30
|
-
return new
|
|
33
|
+
return new ContactsAPI(this._httpClient, this._baseUrl);
|
|
31
34
|
}
|
|
32
35
|
horizontal() {
|
|
33
|
-
return new
|
|
36
|
+
return new HorizontalAPI(this._httpClient, this._baseUrl);
|
|
34
37
|
}
|
|
35
38
|
ticketing() {
|
|
36
|
-
return new
|
|
39
|
+
return new TicketingAPI(this._httpClient, this._baseUrl);
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
|
-
exports.ERPClient = ERPClient;
|
|
40
42
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"erp.js","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAoB,MAAM,cAAc,CAAA;AAC3D,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;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAIhD,MAAM,OAAO,SAAS;IACH,QAAQ,GAAW,SAAS,CAAA;IAErC,WAAW,CAAY;IAE/B,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAA;QAC3D,CAAC;QAED,IAAI,OAAO,IAAI,MAAM,EAAE,CAAC;YACtB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;gBAClB,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAA;YACtE,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;gBACxC,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAA;YACtF,CAAC;QACH,CAAC;QAED,IAAI,CAAC,WAAW,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3C,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA,CAAC,yBAAyB;IACjF,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACvD,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACzD,CAAC;IAED,UAAU;QACR,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC3D,CAAC;IAED,SAAS;QACP,OAAO,IAAI,YAAY,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC1D,CAAC;CACF"}
|
package/dist/index.js
CHANGED
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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);
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './utils';
|
|
3
|
+
export * from './modules';
|
|
4
|
+
export * from './erp';
|
|
21
5
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ContactsAPI = void 0;
|
|
4
|
-
const persons_1 = require("./persons");
|
|
5
|
-
class ContactsAPI {
|
|
1
|
+
import { ContactsPersonsAPI } from './persons';
|
|
2
|
+
export class ContactsAPI {
|
|
6
3
|
_httpClient;
|
|
7
4
|
_baseUrl;
|
|
8
5
|
constructor(_httpClient, baseUrl) {
|
|
@@ -10,8 +7,7 @@ class ContactsAPI {
|
|
|
10
7
|
this._baseUrl = `${baseUrl}/contacts`;
|
|
11
8
|
}
|
|
12
9
|
persons(id) {
|
|
13
|
-
return new
|
|
10
|
+
return new ContactsPersonsAPI(this._httpClient, `${this._baseUrl}/persons`, id);
|
|
14
11
|
}
|
|
15
12
|
}
|
|
16
|
-
exports.ContactsAPI = ContactsAPI;
|
|
17
13
|
//# sourceMappingURL=api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/contacts/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/contacts/api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAE9C,MAAM,OAAO,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,kBAAkB,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,UAAU,EAAE,EAAE,CAAC,CAAA;IACjF,CAAC;CACF"}
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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);
|
|
1
|
+
export * from './persons';
|
|
2
|
+
export * from './api';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/contacts/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/contacts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ContactsPersonsAddressesAPI = void 0;
|
|
4
|
-
const crud_1 = require("../../../../utils/crud");
|
|
5
|
-
class ContactsPersonsAddressesAPI {
|
|
1
|
+
import { CRUD } from '../../../../utils/crud';
|
|
2
|
+
export class ContactsPersonsAddressesAPI {
|
|
6
3
|
_crud;
|
|
7
4
|
constructor(httpClient, baseUrl, addressId) {
|
|
8
|
-
this._crud = new
|
|
5
|
+
this._crud = new CRUD(httpClient, {
|
|
9
6
|
basePath: baseUrl,
|
|
10
7
|
id: addressId,
|
|
11
8
|
});
|
|
@@ -23,5 +20,4 @@ class ContactsPersonsAddressesAPI {
|
|
|
23
20
|
return this._crud.find(query);
|
|
24
21
|
}
|
|
25
22
|
}
|
|
26
|
-
exports.ContactsPersonsAddressesAPI = ContactsPersonsAddressesAPI;
|
|
27
23
|
//# sourceMappingURL=addresses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/addresses.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/addresses.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAGtC,MAAM,OAAO,2BAA2B;IAC9B,KAAK,CAA0F;IAEvG,YAAY,UAAsB,EAAE,OAAe,EAAE,SAAkB;QACrE,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,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"}
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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);
|
|
1
|
+
export * from './addresses';
|
|
2
|
+
export * from './persons';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const crud_1 = require("../../../../utils/crud");
|
|
5
|
-
const addresses_1 = require("./addresses");
|
|
6
|
-
class ContactsPersonsAPI extends crud_1.CRUD {
|
|
1
|
+
import { CRUD } from '../../../../utils/crud';
|
|
2
|
+
import { ContactsPersonsAddressesAPI } from './addresses';
|
|
3
|
+
export class ContactsPersonsAPI extends CRUD {
|
|
7
4
|
_personId;
|
|
8
5
|
constructor(httpClient, baseUrl, _personId) {
|
|
9
6
|
super(httpClient, {
|
|
@@ -16,8 +13,7 @@ class ContactsPersonsAPI extends crud_1.CRUD {
|
|
|
16
13
|
if (!this._personId) {
|
|
17
14
|
throw new Error('Person ID is required');
|
|
18
15
|
}
|
|
19
|
-
return new
|
|
16
|
+
return new ContactsPersonsAddressesAPI(this._httpClient, `${this._config.basePath}/${this._personId}/addresses`, id);
|
|
20
17
|
}
|
|
21
18
|
}
|
|
22
|
-
exports.ContactsPersonsAPI = ContactsPersonsAPI;
|
|
23
19
|
//# sourceMappingURL=persons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"persons.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/persons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"persons.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/persons.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAEtC,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAEzD,MAAM,OAAO,kBAAmB,SAAQ,IAKvC;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,2BAA2B,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,YAAY,EAAE,EAAE,CAAC,CAAA;IACtH,CAAC;CACF"}
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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);
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './api';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/contacts/persons/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/contacts/persons/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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);
|
|
1
|
+
export * from './address';
|
|
2
|
+
export * from './person';
|
|
3
|
+
export * from './person_address';
|
|
20
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContactPersonType = void 0;
|
|
4
|
-
var ContactPersonType;
|
|
1
|
+
export var ContactPersonType;
|
|
5
2
|
(function (ContactPersonType) {
|
|
6
3
|
ContactPersonType[ContactPersonType["Natural"] = 1] = "Natural";
|
|
7
4
|
ContactPersonType[ContactPersonType["Legal"] = 2] = "Legal";
|
|
8
|
-
})(ContactPersonType || (
|
|
5
|
+
})(ContactPersonType || (ContactPersonType = {}));
|
|
9
6
|
//# sourceMappingURL=person.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"person.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,+DAAW,CAAA;IACX,2DAAS,CAAA;AACX,CAAC,EAHW,iBAAiB,KAAjB,iBAAiB,QAG5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/domain/agent/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
|
|
@@ -14,15 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.HorizontalAPI = void 0;
|
|
18
|
-
const communities_1 = require("./communities");
|
|
19
|
-
class HorizontalAPI {
|
|
20
|
-
constructor(httpClient) {
|
|
21
|
-
this.httpClient = httpClient;
|
|
22
|
-
}
|
|
23
|
-
communities() {
|
|
24
|
-
return new communities_1.CommunitiesAPI(this.httpClient);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.HorizontalAPI = HorizontalAPI;
|
|
28
17
|
__exportStar(require("./types"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/domain/agent/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare enum AgentType {
|
|
2
|
+
AGENT = 1,
|
|
3
|
+
SUPERADMIN = 2,
|
|
4
|
+
SYSTEM = 3
|
|
5
|
+
}
|
|
6
|
+
export interface Agent {
|
|
7
|
+
id: string;
|
|
8
|
+
email: string;
|
|
9
|
+
typeId: AgentType;
|
|
10
|
+
fullName: string;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
export interface AgentDomain {
|
|
14
|
+
agentId: string;
|
|
15
|
+
domainId: string;
|
|
16
|
+
enabled: boolean;
|
|
17
|
+
isOwner: boolean;
|
|
18
|
+
supervisorId?: string | null;
|
|
19
|
+
jobTitle?: string | null;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
}
|
|
22
|
+
export type AgentExtended = Omit<Agent, 'updatedAt'> & Omit<AgentDomain, 'agentId'> & {
|
|
23
|
+
roles: string[];
|
|
24
|
+
};
|
|
25
|
+
export type AgentDomainExtended = Omit<Agent, 'updatedAt'> & Omit<AgentDomain, 'agentId' | 'updatedAt'>;
|
|
26
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/domain/agent/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,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,SAAS,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAClD,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAC7B,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB,CAAA;AAEH,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,WAAW,CAAC,CAAA"}
|
|
@@ -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/domain/agent/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"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.AgentsAPI = void 0;
|
|
4
|
-
const utils_1 = require("../../../utils");
|
|
5
|
-
class AgentsAPI {
|
|
1
|
+
import { CRUD } from '../../../utils';
|
|
2
|
+
export class AgentsAPI {
|
|
6
3
|
_httpClient;
|
|
7
4
|
_baseUrl;
|
|
8
5
|
_crud;
|
|
9
6
|
constructor(_httpClient, _baseUrl) {
|
|
10
7
|
this._httpClient = _httpClient;
|
|
11
8
|
this._baseUrl = _baseUrl;
|
|
12
|
-
this._crud = new
|
|
9
|
+
this._crud = new CRUD(this._httpClient, {
|
|
13
10
|
basePath: this._baseUrl,
|
|
14
11
|
});
|
|
15
12
|
}
|
|
@@ -27,5 +24,4 @@ class AgentsAPI {
|
|
|
27
24
|
});
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
|
-
exports.AgentsAPI = AgentsAPI;
|
|
31
27
|
//# sourceMappingURL=api.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/modules/domain/agents/api.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/modules/domain/agents/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAIjC,MAAM,OAAO,SAAS;IAID;IACA;IAJF,KAAK,CAAqB;IAE3C,YACmB,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;QAEjC,IAAI,CAAC,KAAK,GAAG,IAAI,IAAI,CAAgB,IAAI,CAAC,WAAW,EAAE;YACrD,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CAAC,KAA+B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;IAED,cAAc,CAAC,GAAa;QAC1B,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,cAAc,EAAE;YAC1D,OAAO,EAAE,GAAG;SACb,CAAC,CAAA;IACJ,CAAC;IAED,eAAe,CAAC,GAAa;QAC3B,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,QAAQ,eAAe,EAAE;YAC3D,OAAO,EAAE,GAAG;SACb,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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);
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './api';
|
|
19
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/domain/agents/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/domain/agents/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentType = void 0;
|
|
4
|
-
var AgentType;
|
|
1
|
+
export var AgentType;
|
|
5
2
|
(function (AgentType) {
|
|
6
3
|
AgentType[AgentType["AGENT"] = 1] = "AGENT";
|
|
7
4
|
AgentType[AgentType["SUPERADMIN"] = 2] = "SUPERADMIN";
|
|
8
5
|
AgentType[AgentType["SYSTEM"] = 3] = "SYSTEM";
|
|
9
|
-
})(AgentType || (
|
|
6
|
+
})(AgentType || (AgentType = {}));
|
|
10
7
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/domain/agents/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/domain/agents/types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,2CAAS,CAAA;IACT,qDAAc,CAAA;IACd,6CAAU,CAAA;AACZ,CAAC,EAJW,SAAS,KAAT,SAAS,QAIpB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { HTTPClient } from '../../../utils/http';
|
|
2
|
+
import { IAMAPI } from './iam';
|
|
3
|
+
export declare class DomainAPI {
|
|
4
|
+
private _httpClient;
|
|
5
|
+
private readonly _baseUrl;
|
|
6
|
+
constructor(_httpClient: HTTPClient, baseUrl: string);
|
|
7
|
+
iam(): IAMAPI;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=domain.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain.d.ts","sourceRoot":"","sources":["../../../../src/modules/domain/api/domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAE9B,qBAAa,SAAS;IAIlB,OAAO,CAAC,WAAW;IAHrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAGvB,WAAW,EAAE,UAAU,EAC/B,OAAO,EAAE,MAAM;IAKjB,GAAG,IAAI,MAAM;CAGd"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DomainAPI = void 0;
|
|
4
|
+
const iam_1 = require("./iam");
|
|
5
|
+
class DomainAPI {
|
|
6
|
+
_httpClient;
|
|
7
|
+
_baseUrl;
|
|
8
|
+
constructor(_httpClient, baseUrl) {
|
|
9
|
+
this._httpClient = _httpClient;
|
|
10
|
+
this._baseUrl = `${baseUrl}/domain`;
|
|
11
|
+
}
|
|
12
|
+
iam() {
|
|
13
|
+
return new iam_1.IAMAPI(this._httpClient, `${this._baseUrl}/iam`);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.DomainAPI = DomainAPI;
|
|
17
|
+
//# sourceMappingURL=domain.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain.js","sourceRoot":"","sources":["../../../../src/modules/domain/api/domain.ts"],"names":[],"mappings":";;;AACA,+BAA8B;AAE9B,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,GAAG;QACD,OAAO,IAAI,YAAM,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,MAAM,CAAC,CAAA;IAC7D,CAAC;CACF;AAbD,8BAaC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iam.d.ts","sourceRoot":"","sources":["../../../../src/modules/domain/api/iam.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,qBAAa,MAAM;IAEf,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;CAEpC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IAMAPI = void 0;
|
|
4
|
+
class IAMAPI {
|
|
5
|
+
_httpClient;
|
|
6
|
+
_baseUrl;
|
|
7
|
+
constructor(_httpClient, _baseUrl) {
|
|
8
|
+
this._httpClient = _httpClient;
|
|
9
|
+
this._baseUrl = _baseUrl;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.IAMAPI = IAMAPI;
|
|
13
|
+
//# sourceMappingURL=iam.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iam.js","sourceRoot":"","sources":["../../../../src/modules/domain/api/iam.ts"],"names":[],"mappings":";;;AAEA,MAAa,MAAM;IAEE;IACA;IAFnB,YACmB,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;IAChC,CAAC;CACL;AALD,wBAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/domain/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,OAAO,CAAA"}
|