@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.
Files changed (240) hide show
  1. package/dist/erp.d.ts +2 -5
  2. package/dist/erp.d.ts.map +1 -1
  3. package/dist/erp.js +25 -23
  4. package/dist/erp.js.map +1 -1
  5. package/dist/index.js +4 -20
  6. package/dist/index.js.map +1 -1
  7. package/dist/modules/contacts/api.js +3 -7
  8. package/dist/modules/contacts/api.js.map +1 -1
  9. package/dist/modules/contacts/index.js +2 -18
  10. package/dist/modules/contacts/index.js.map +1 -1
  11. package/dist/modules/contacts/persons/api/addresses.js +3 -7
  12. package/dist/modules/contacts/persons/api/addresses.js.map +1 -1
  13. package/dist/modules/contacts/persons/api/index.js +2 -18
  14. package/dist/modules/contacts/persons/api/index.js.map +1 -1
  15. package/dist/modules/contacts/persons/api/persons.js +4 -8
  16. package/dist/modules/contacts/persons/api/persons.js.map +1 -1
  17. package/dist/modules/contacts/persons/index.js +2 -18
  18. package/dist/modules/contacts/persons/index.js.map +1 -1
  19. package/dist/modules/contacts/persons/types/address.js +1 -2
  20. package/dist/modules/contacts/persons/types/index.js +3 -19
  21. package/dist/modules/contacts/persons/types/index.js.map +1 -1
  22. package/dist/modules/contacts/persons/types/person.js +2 -5
  23. package/dist/modules/contacts/persons/types/person.js.map +1 -1
  24. package/dist/modules/contacts/persons/types/person_address.js +1 -2
  25. package/dist/modules/domain/agent/index.d.ts +2 -0
  26. package/dist/modules/domain/agent/index.d.ts.map +1 -0
  27. package/dist/{client/resources/horizontal/api.js → modules/domain/agent/index.js} +1 -11
  28. package/dist/modules/domain/agent/index.js.map +1 -0
  29. package/dist/modules/domain/agent/types.d.ts +26 -0
  30. package/dist/modules/domain/agent/types.d.ts.map +1 -0
  31. package/dist/modules/domain/agent/types.js +10 -0
  32. package/dist/modules/domain/agent/types.js.map +1 -0
  33. package/dist/modules/domain/agents/api.js +3 -7
  34. package/dist/modules/domain/agents/api.js.map +1 -1
  35. package/dist/modules/domain/agents/index.js +2 -18
  36. package/dist/modules/domain/agents/index.js.map +1 -1
  37. package/dist/modules/domain/agents/types.js +2 -5
  38. package/dist/modules/domain/agents/types.js.map +1 -1
  39. package/dist/modules/domain/api/domain.d.ts +9 -0
  40. package/dist/modules/domain/api/domain.d.ts.map +1 -0
  41. package/dist/modules/domain/api/domain.js +17 -0
  42. package/dist/modules/domain/api/domain.js.map +1 -0
  43. package/dist/modules/domain/api/iam.d.ts +7 -0
  44. package/dist/modules/domain/api/iam.d.ts.map +1 -0
  45. package/dist/modules/domain/api/iam.js +13 -0
  46. package/dist/modules/domain/api/iam.js.map +1 -0
  47. package/dist/modules/domain/api/index.d.ts +3 -0
  48. package/dist/modules/domain/api/index.d.ts.map +1 -0
  49. package/dist/{client/resources/horizontal/communities/api.js → modules/domain/api/index.js} +3 -18
  50. package/dist/modules/domain/api/index.js.map +1 -0
  51. package/dist/modules/domain/api.js +5 -9
  52. package/dist/modules/domain/api.js.map +1 -1
  53. package/dist/modules/domain/iam/api/agents.js +3 -7
  54. package/dist/modules/domain/iam/api/agents.js.map +1 -1
  55. package/dist/modules/domain/iam/api/iam.js +5 -9
  56. package/dist/modules/domain/iam/api/iam.js.map +1 -1
  57. package/dist/modules/domain/iam/api/index.js +3 -19
  58. package/dist/modules/domain/iam/api/index.js.map +1 -1
  59. package/dist/modules/domain/iam/api/roles.js +2 -6
  60. package/dist/modules/domain/iam/api/roles.js.map +1 -1
  61. package/dist/modules/domain/iam/index.js +2 -18
  62. package/dist/modules/domain/iam/index.js.map +1 -1
  63. package/dist/modules/domain/iam/types/index.js +1 -17
  64. package/dist/modules/domain/iam/types/index.js.map +1 -1
  65. package/dist/modules/domain/iam/types/roles.js +1 -2
  66. package/dist/modules/domain/index.js +3 -19
  67. package/dist/modules/domain/index.js.map +1 -1
  68. package/dist/modules/domain/types/agent.d.ts +26 -0
  69. package/dist/modules/domain/types/agent.d.ts.map +1 -0
  70. package/dist/modules/domain/types/agent.js +10 -0
  71. package/dist/modules/domain/types/agent.js.map +1 -0
  72. package/dist/modules/domain/types/index.d.ts +2 -0
  73. package/dist/modules/domain/types/index.d.ts.map +1 -0
  74. package/dist/modules/domain/types/index.js +18 -0
  75. package/dist/modules/domain/types/index.js.map +1 -0
  76. package/dist/modules/global/api.js +3 -7
  77. package/dist/modules/global/api.js.map +1 -1
  78. package/dist/modules/global/index.js +2 -18
  79. package/dist/modules/global/index.js.map +1 -1
  80. package/dist/modules/global/search/api.js +1 -5
  81. package/dist/modules/global/search/api.js.map +1 -1
  82. package/dist/modules/global/search/index.js +2 -18
  83. package/dist/modules/global/search/index.js.map +1 -1
  84. package/dist/modules/global/search/types.js +2 -5
  85. package/dist/modules/global/search/types.js.map +1 -1
  86. package/dist/modules/horizontal/api.js +3 -7
  87. package/dist/modules/horizontal/api.js.map +1 -1
  88. package/dist/modules/horizontal/communities/api/agents.js +2 -6
  89. package/dist/modules/horizontal/communities/api/agents.js.map +1 -1
  90. package/dist/modules/horizontal/communities/api/blocks.js +4 -8
  91. package/dist/modules/horizontal/communities/api/blocks.js.map +1 -1
  92. package/dist/modules/horizontal/communities/api/communities.js +20 -24
  93. package/dist/modules/horizontal/communities/api/communities.js.map +1 -1
  94. package/dist/modules/horizontal/communities/api/communities_config.js +4 -8
  95. package/dist/modules/horizontal/communities/api/communities_config.js.map +1 -1
  96. package/dist/modules/horizontal/communities/api/documents.js +3 -8
  97. package/dist/modules/horizontal/communities/api/documents.js.map +1 -1
  98. package/dist/modules/horizontal/communities/api/employees.js +3 -7
  99. package/dist/modules/horizontal/communities/api/employees.js.map +1 -1
  100. package/dist/modules/horizontal/communities/api/index.js +11 -27
  101. package/dist/modules/horizontal/communities/api/index.js.map +1 -1
  102. package/dist/modules/horizontal/communities/api/properties.js +3 -7
  103. package/dist/modules/horizontal/communities/api/properties.js.map +1 -1
  104. package/dist/modules/horizontal/communities/api/providers.js +3 -7
  105. package/dist/modules/horizontal/communities/api/providers.js.map +1 -1
  106. package/dist/modules/horizontal/communities/api/receipts.d.ts +1 -1
  107. package/dist/modules/horizontal/communities/api/receipts.d.ts.map +1 -1
  108. package/dist/modules/horizontal/communities/api/receipts.js +4 -9
  109. package/dist/modules/horizontal/communities/api/receipts.js.map +1 -1
  110. package/dist/modules/horizontal/communities/api/roles.js +2 -6
  111. package/dist/modules/horizontal/communities/api/roles.js.map +1 -1
  112. package/dist/modules/horizontal/communities/api/route_trackings/index.js +3 -19
  113. package/dist/modules/horizontal/communities/api/route_trackings/index.js.map +1 -1
  114. package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.js +5 -9
  115. package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.js.map +1 -1
  116. package/dist/modules/horizontal/communities/api/route_trackings/routes.js +6 -12
  117. package/dist/modules/horizontal/communities/api/route_trackings/routes.js.map +1 -1
  118. package/dist/modules/horizontal/communities/api/route_trackings/zones.js +3 -7
  119. package/dist/modules/horizontal/communities/api/route_trackings/zones.js.map +1 -1
  120. package/dist/modules/horizontal/communities/index.js +2 -18
  121. package/dist/modules/horizontal/communities/index.js.map +1 -1
  122. package/dist/modules/horizontal/communities/types/address.js +1 -2
  123. package/dist/modules/horizontal/communities/types/agent.js +1 -2
  124. package/dist/modules/horizontal/communities/types/block.js +1 -2
  125. package/dist/modules/horizontal/communities/types/community.js +1 -2
  126. package/dist/modules/horizontal/communities/types/community_config.js +1 -2
  127. package/dist/modules/horizontal/communities/types/document.js +8 -11
  128. package/dist/modules/horizontal/communities/types/document.js.map +1 -1
  129. package/dist/modules/horizontal/communities/types/employee.js +2 -5
  130. package/dist/modules/horizontal/communities/types/employee.js.map +1 -1
  131. package/dist/modules/horizontal/communities/types/index.js +10 -26
  132. package/dist/modules/horizontal/communities/types/index.js.map +1 -1
  133. package/dist/modules/horizontal/communities/types/property.js +4 -7
  134. package/dist/modules/horizontal/communities/types/property.js.map +1 -1
  135. package/dist/modules/horizontal/communities/types/provider.js +2 -5
  136. package/dist/modules/horizontal/communities/types/provider.js.map +1 -1
  137. package/dist/modules/horizontal/communities/types/receipt.js +6 -9
  138. package/dist/modules/horizontal/communities/types/receipt.js.map +1 -1
  139. package/dist/modules/horizontal/communities/types/roles.js +1 -2
  140. package/dist/modules/horizontal/communities/types/route_tracking.js +6 -9
  141. package/dist/modules/horizontal/communities/types/route_tracking.js.map +1 -1
  142. package/dist/modules/horizontal/communities/types/tag.js +1 -2
  143. package/dist/modules/horizontal/communities/types/visit.d.ts +54 -0
  144. package/dist/modules/horizontal/communities/types/visit.d.ts.map +1 -0
  145. package/dist/modules/horizontal/communities/types/visit.js +39 -0
  146. package/dist/modules/horizontal/communities/types/visit.js.map +1 -0
  147. package/dist/modules/horizontal/index.js +2 -18
  148. package/dist/modules/horizontal/index.js.map +1 -1
  149. package/dist/modules/index.js +5 -21
  150. package/dist/modules/index.js.map +1 -1
  151. package/dist/modules/ticketing/api.js +3 -7
  152. package/dist/modules/ticketing/api.js.map +1 -1
  153. package/dist/modules/ticketing/index.js +2 -18
  154. package/dist/modules/ticketing/index.js.map +1 -1
  155. package/dist/modules/ticketing/tasks/api/activity-logs.d.ts +10 -0
  156. package/dist/modules/ticketing/tasks/api/activity-logs.d.ts.map +1 -0
  157. package/dist/modules/ticketing/tasks/api/activity-logs.js +21 -0
  158. package/dist/modules/ticketing/tasks/api/activity-logs.js.map +1 -0
  159. package/dist/modules/ticketing/tasks/api/activity_logs.js +3 -7
  160. package/dist/modules/ticketing/tasks/api/activity_logs.js.map +1 -1
  161. package/dist/modules/ticketing/tasks/api/attachments.js +1 -5
  162. package/dist/modules/ticketing/tasks/api/attachments.js.map +1 -1
  163. package/dist/modules/ticketing/tasks/api/conversation.d.ts +11 -0
  164. package/dist/modules/ticketing/tasks/api/conversation.d.ts.map +1 -0
  165. package/dist/modules/ticketing/tasks/api/conversation.js +35 -0
  166. package/dist/modules/ticketing/tasks/api/conversation.js.map +1 -0
  167. package/dist/modules/ticketing/tasks/api/conversations.js +3 -7
  168. package/dist/modules/ticketing/tasks/api/conversations.js.map +1 -1
  169. package/dist/modules/ticketing/tasks/api/followers.js +3 -7
  170. package/dist/modules/ticketing/tasks/api/followers.js.map +1 -1
  171. package/dist/modules/ticketing/tasks/api/index.js +6 -22
  172. package/dist/modules/ticketing/tasks/api/index.js.map +1 -1
  173. package/dist/modules/ticketing/tasks/api/resources.js +3 -7
  174. package/dist/modules/ticketing/tasks/api/resources.js.map +1 -1
  175. package/dist/modules/ticketing/tasks/api/tasks.js +12 -16
  176. package/dist/modules/ticketing/tasks/api/tasks.js.map +1 -1
  177. package/dist/modules/ticketing/tasks/index.js +2 -18
  178. package/dist/modules/ticketing/tasks/index.js.map +1 -1
  179. package/dist/modules/ticketing/tasks/types/activity-log.d.ts +28 -0
  180. package/dist/modules/ticketing/tasks/types/activity-log.d.ts.map +1 -0
  181. package/dist/modules/ticketing/tasks/types/activity-log.js +24 -0
  182. package/dist/modules/ticketing/tasks/types/activity-log.js.map +1 -0
  183. package/dist/modules/ticketing/tasks/types/activity_log.js +4 -7
  184. package/dist/modules/ticketing/tasks/types/activity_log.js.map +1 -1
  185. package/dist/modules/ticketing/tasks/types/converstation.js +2 -5
  186. package/dist/modules/ticketing/tasks/types/converstation.js.map +1 -1
  187. package/dist/modules/ticketing/tasks/types/follower.js +1 -2
  188. package/dist/modules/ticketing/tasks/types/index.js +5 -21
  189. package/dist/modules/ticketing/tasks/types/index.js.map +1 -1
  190. package/dist/modules/ticketing/tasks/types/resource.js +4 -7
  191. package/dist/modules/ticketing/tasks/types/resource.js.map +1 -1
  192. package/dist/modules/ticketing/tasks/types/task.js +6 -9
  193. package/dist/modules/ticketing/tasks/types/task.js.map +1 -1
  194. package/dist/types.js +1 -2
  195. package/dist/utils/crud.js +1 -5
  196. package/dist/utils/crud.js.map +1 -1
  197. package/dist/utils/http.d.ts +6 -1
  198. package/dist/utils/http.d.ts.map +1 -1
  199. package/dist/utils/http.js +22 -27
  200. package/dist/utils/http.js.map +1 -1
  201. package/dist/utils/index.js +3 -19
  202. package/dist/utils/index.js.map +1 -1
  203. package/dist/utils/signature.js +3 -9
  204. package/dist/utils/signature.js.map +1 -1
  205. package/dist/utils/types.js +1 -2
  206. package/package.json +1 -1
  207. package/dist/client/client.d.ts +0 -11
  208. package/dist/client/client.js +0 -41
  209. package/dist/client/http.d.ts +0 -13
  210. package/dist/client/http.js +0 -86
  211. package/dist/client/resources/horizontal/api.d.ts +0 -8
  212. package/dist/client/resources/horizontal/communities/api.d.ts +0 -12
  213. package/dist/client/resources/horizontal/communities/types.d.ts +0 -49
  214. package/dist/client/resources/horizontal/communities/types.js +0 -2
  215. package/dist/client/resources/horizontal/communities.d.ts +0 -13
  216. package/dist/client/resources/horizontal/communities.js +0 -53
  217. package/dist/client/resources/horizontal/types.d.ts +0 -47
  218. package/dist/client/resources/horizontal/types.js +0 -2
  219. package/dist/client/resources/tasks/api.d.ts +0 -18
  220. package/dist/client/resources/tasks/api.js +0 -54
  221. package/dist/client/resources/tasks/types.d.ts +0 -58
  222. package/dist/client/resources/tasks/types.js +0 -24
  223. package/dist/client/resources/ticketing/api.d.ts +0 -18
  224. package/dist/client/resources/ticketing/api.js +0 -54
  225. package/dist/client/resources/ticketing/types.d.ts +0 -58
  226. package/dist/client/resources/ticketing/types.js +0 -24
  227. package/dist/client/resources/types.d.ts +0 -12
  228. package/dist/client/resources/types.js +0 -2
  229. package/dist/client/utils/crud.d.ts +0 -22
  230. package/dist/client/utils/crud.js +0 -52
  231. package/dist/client/utils/signature.d.ts +0 -5
  232. package/dist/client/utils/signature.js +0 -19
  233. package/dist/tasks/creator.d.ts +0 -9
  234. package/dist/tasks/creator.js +0 -25
  235. package/dist/tasks/std.d.ts +0 -37
  236. package/dist/tasks/std.js +0 -83
  237. package/dist/tasks/template.d.ts +0 -43
  238. package/dist/tasks/template.js +0 -56
  239. package/dist/types/index.d.ts +0 -14
  240. 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 interface ERPClientConfig {
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":"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;AAChD,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,MAAM,IAAI,SAAS;IAInB,QAAQ,IAAI,WAAW;IAIvB,UAAU,IAAI,aAAa;IAI3B,SAAS,IAAI,YAAY;CAG1B"}
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
- "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
- 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 || !config.apiKey || !config.apiSecret) {
15
- throw new Error('Missing required configuration');
11
+ if (!config.baseURL) {
12
+ throw new Error('Missing required baseURL configuration');
16
13
  }
17
- this._httpClient = new http_1.HTTPClient({
18
- baseURL: config.baseURL,
19
- apiKey: config.apiKey,
20
- apiSecret: config.apiSecret,
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 api_3.DomainAPI(this._httpClient, this._baseUrl); // TODO: auth http client
27
+ return new DomainAPI(this._httpClient, this._baseUrl); // TODO: auth http client
25
28
  }
26
29
  global() {
27
- return new api_2.GlobalAPI(this._httpClient, this._baseUrl);
30
+ return new GlobalAPI(this._httpClient, this._baseUrl);
28
31
  }
29
32
  contacts() {
30
- return new api_1.ContactsAPI(this._httpClient, this._baseUrl);
33
+ return new ContactsAPI(this._httpClient, this._baseUrl);
31
34
  }
32
35
  horizontal() {
33
- return new horizontal_1.HorizontalAPI(this._httpClient, this._baseUrl);
36
+ return new HorizontalAPI(this._httpClient, this._baseUrl);
34
37
  }
35
38
  ticketing() {
36
- return new ticketing_1.TicketingAPI(this._httpClient, this._baseUrl);
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":";;;AAAA,uCAAyC;AACzC,qDAAoD;AACpD,mDAAkD;AAClD,gDAAoD;AACpD,8CAAgD;AAChD,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,CAAC,yBAAyB;IACjF,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;AApCD,8BAoCC"}
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
- "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);
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":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,wCAAqB"}
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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 persons_1.ContactsPersonsAPI(this._httpClient, `${this._baseUrl}/persons`, id);
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":";;;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
+ {"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
- "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);
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":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,wCAAqB"}
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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 crud_1.CRUD(httpClient, {
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":";;;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
+ {"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
- "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);
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":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,4CAAyB"}
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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContactsPersonsAPI = void 0;
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 addresses_1.ContactsPersonsAddressesAPI(this._httpClient, `${this._config.basePath}/${this._personId}/addresses`, id);
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":";;;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
+ {"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
- "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);
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":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,wCAAqB"}
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,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=address.js.map
@@ -1,20 +1,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("./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":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,2CAAwB;AACxB,mDAAgC"}
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
- "use strict";
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 || (exports.ContactPersonType = 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":";;;AAEA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,+DAAW,CAAA;IACX,2DAAS,CAAA;AACX,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B"}
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"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=person_address.js.map
@@ -0,0 +1,2 @@
1
+ export * from './types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
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 utils_1.CRUD(this._httpClient, {
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":";;;AAAA,sCAAiC;AAIjC,MAAa,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,YAAI,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;AA3BD,8BA2BC"}
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
- "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);
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":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,wCAAqB"}
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
- "use strict";
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 || (exports.AgentType = 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":";;;AAAA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,2CAAS,CAAA;IACT,qDAAc,CAAA;IACd,6CAAU,CAAA;AACZ,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB"}
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,7 @@
1
+ import { HTTPClient } from '../../../utils/http';
2
+ export declare class IAMAPI {
3
+ private readonly _httpClient;
4
+ private readonly _baseUrl;
5
+ constructor(_httpClient: HTTPClient, _baseUrl: string);
6
+ }
7
+ //# sourceMappingURL=iam.d.ts.map
@@ -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,3 @@
1
+ export * from './domain';
2
+ export * from './iam';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -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"}