@eleva-io/erp-sdk 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/erp.d.ts +6 -4
  2. package/dist/erp.d.ts.map +1 -1
  3. package/dist/erp.js +7 -3
  4. package/dist/erp.js.map +1 -1
  5. package/dist/index.d.ts +4 -4
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js.map +1 -1
  8. package/dist/modules/contacts/api.d.ts +2 -2
  9. package/dist/modules/contacts/api.d.ts.map +1 -1
  10. package/dist/modules/contacts/api.js.map +1 -1
  11. package/dist/modules/contacts/index.d.ts +2 -2
  12. package/dist/modules/contacts/index.d.ts.map +1 -1
  13. package/dist/modules/contacts/index.js.map +1 -1
  14. package/dist/modules/contacts/persons/api/addresses.d.ts +2 -2
  15. package/dist/modules/contacts/persons/api/addresses.d.ts.map +1 -1
  16. package/dist/modules/contacts/persons/api/addresses.js.map +1 -1
  17. package/dist/modules/contacts/persons/api/index.d.ts +2 -2
  18. package/dist/modules/contacts/persons/api/index.d.ts.map +1 -1
  19. package/dist/modules/contacts/persons/api/index.js.map +1 -1
  20. package/dist/modules/contacts/persons/api/persons.d.ts +4 -4
  21. package/dist/modules/contacts/persons/api/persons.d.ts.map +1 -1
  22. package/dist/modules/contacts/persons/api/persons.js +1 -1
  23. package/dist/modules/contacts/persons/api/persons.js.map +1 -1
  24. package/dist/modules/contacts/persons/index.d.ts +2 -2
  25. package/dist/modules/contacts/persons/index.d.ts.map +1 -1
  26. package/dist/modules/contacts/persons/index.js.map +1 -1
  27. package/dist/modules/contacts/persons/types/address.d.ts +1 -1
  28. package/dist/modules/contacts/persons/types/address.d.ts.map +1 -1
  29. package/dist/modules/contacts/persons/types/index.d.ts +3 -3
  30. package/dist/modules/contacts/persons/types/index.d.ts.map +1 -1
  31. package/dist/modules/contacts/persons/types/index.js.map +1 -1
  32. package/dist/modules/contacts/persons/types/person.d.ts +13 -4
  33. package/dist/modules/contacts/persons/types/person.d.ts.map +1 -1
  34. package/dist/modules/contacts/persons/types/person_address.d.ts +3 -3
  35. package/dist/modules/contacts/persons/types/person_address.d.ts.map +1 -1
  36. package/dist/modules/global/agents/index.d.ts +2 -0
  37. package/dist/modules/global/agents/index.d.ts.map +1 -0
  38. package/dist/modules/global/agents/index.js +18 -0
  39. package/dist/modules/global/agents/index.js.map +1 -0
  40. package/dist/modules/global/agents/types.d.ts +16 -0
  41. package/dist/modules/global/agents/types.d.ts.map +1 -0
  42. package/dist/modules/global/agents/types.js +10 -0
  43. package/dist/modules/global/agents/types.js.map +1 -0
  44. package/dist/modules/global/api.d.ts +9 -0
  45. package/dist/modules/global/api.d.ts.map +1 -0
  46. package/dist/modules/global/api.js +17 -0
  47. package/dist/modules/global/api.js.map +1 -0
  48. package/dist/modules/global/index.d.ts +3 -0
  49. package/dist/modules/global/index.d.ts.map +1 -0
  50. package/dist/modules/global/index.js +19 -0
  51. package/dist/modules/global/index.js.map +1 -0
  52. package/dist/modules/global/search/api.d.ts +10 -0
  53. package/dist/modules/global/search/api.d.ts.map +1 -0
  54. package/dist/modules/global/search/api.js +19 -0
  55. package/dist/modules/global/search/api.js.map +1 -0
  56. package/dist/modules/global/search/index.d.ts +3 -0
  57. package/dist/modules/global/search/index.d.ts.map +1 -0
  58. package/dist/modules/global/search/index.js +19 -0
  59. package/dist/modules/global/search/index.js.map +1 -0
  60. package/dist/modules/global/search/types.d.ts +37 -0
  61. package/dist/modules/global/search/types.d.ts.map +1 -0
  62. package/dist/modules/global/search/types.js +10 -0
  63. package/dist/modules/global/search/types.js.map +1 -0
  64. package/dist/modules/horizontal/api.d.ts +2 -2
  65. package/dist/modules/horizontal/api.d.ts.map +1 -1
  66. package/dist/modules/horizontal/api.js.map +1 -1
  67. package/dist/modules/horizontal/communities/api/agents.d.ts +2 -2
  68. package/dist/modules/horizontal/communities/api/agents.d.ts.map +1 -1
  69. package/dist/modules/horizontal/communities/api/agents.js.map +1 -1
  70. package/dist/modules/horizontal/communities/api/blocks.d.ts +4 -4
  71. package/dist/modules/horizontal/communities/api/blocks.d.ts.map +1 -1
  72. package/dist/modules/horizontal/communities/api/blocks.js +1 -1
  73. package/dist/modules/horizontal/communities/api/blocks.js.map +1 -1
  74. package/dist/modules/horizontal/communities/api/communities.d.ts +13 -11
  75. package/dist/modules/horizontal/communities/api/communities.d.ts.map +1 -1
  76. package/dist/modules/horizontal/communities/api/communities.js +14 -7
  77. package/dist/modules/horizontal/communities/api/communities.js.map +1 -1
  78. package/dist/modules/horizontal/communities/api/communities_config.d.ts +3 -3
  79. package/dist/modules/horizontal/communities/api/communities_config.d.ts.map +1 -1
  80. package/dist/modules/horizontal/communities/api/communities_config.js.map +1 -1
  81. package/dist/modules/horizontal/communities/api/documents.d.ts +3 -3
  82. package/dist/modules/horizontal/communities/api/documents.d.ts.map +1 -1
  83. package/dist/modules/horizontal/communities/api/documents.js +6 -1
  84. package/dist/modules/horizontal/communities/api/documents.js.map +1 -1
  85. package/dist/modules/horizontal/communities/api/employees.d.ts +2 -2
  86. package/dist/modules/horizontal/communities/api/employees.d.ts.map +1 -1
  87. package/dist/modules/horizontal/communities/api/employees.js.map +1 -1
  88. package/dist/modules/horizontal/communities/api/index.d.ts +11 -10
  89. package/dist/modules/horizontal/communities/api/index.d.ts.map +1 -1
  90. package/dist/modules/horizontal/communities/api/index.js +1 -0
  91. package/dist/modules/horizontal/communities/api/index.js.map +1 -1
  92. package/dist/modules/horizontal/communities/api/properties.d.ts +3 -3
  93. package/dist/modules/horizontal/communities/api/properties.d.ts.map +1 -1
  94. package/dist/modules/horizontal/communities/api/properties.js +1 -1
  95. package/dist/modules/horizontal/communities/api/properties.js.map +1 -1
  96. package/dist/modules/horizontal/communities/api/providers.d.ts +2 -2
  97. package/dist/modules/horizontal/communities/api/providers.d.ts.map +1 -1
  98. package/dist/modules/horizontal/communities/api/providers.js.map +1 -1
  99. package/dist/modules/horizontal/communities/api/receipts.d.ts +4 -4
  100. package/dist/modules/horizontal/communities/api/receipts.d.ts.map +1 -1
  101. package/dist/modules/horizontal/communities/api/receipts.js +1 -1
  102. package/dist/modules/horizontal/communities/api/receipts.js.map +1 -1
  103. package/dist/modules/horizontal/communities/api/roles.d.ts +2 -2
  104. package/dist/modules/horizontal/communities/api/roles.d.ts.map +1 -1
  105. package/dist/modules/horizontal/communities/api/roles.js.map +1 -1
  106. package/dist/modules/horizontal/communities/api/route_trackings/index.d.ts +4 -0
  107. package/dist/modules/horizontal/communities/api/route_trackings/index.d.ts.map +1 -0
  108. package/dist/modules/horizontal/communities/api/route_trackings/index.js +20 -0
  109. package/dist/modules/horizontal/communities/api/route_trackings/index.js.map +1 -0
  110. package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.d.ts +11 -0
  111. package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.d.ts.map +1 -0
  112. package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.js +21 -0
  113. package/dist/modules/horizontal/communities/api/route_trackings/route_trackings.js.map +1 -0
  114. package/dist/modules/horizontal/communities/api/route_trackings/routes.d.ts +27 -0
  115. package/dist/modules/horizontal/communities/api/route_trackings/routes.d.ts.map +1 -0
  116. package/dist/modules/horizontal/communities/api/route_trackings/routes.js +69 -0
  117. package/dist/modules/horizontal/communities/api/route_trackings/routes.js.map +1 -0
  118. package/dist/modules/horizontal/communities/api/route_trackings/zones.d.ts +11 -0
  119. package/dist/modules/horizontal/communities/api/route_trackings/zones.d.ts.map +1 -0
  120. package/dist/modules/horizontal/communities/api/route_trackings/zones.js +26 -0
  121. package/dist/modules/horizontal/communities/api/route_trackings/zones.js.map +1 -0
  122. package/dist/modules/horizontal/communities/index.d.ts +2 -2
  123. package/dist/modules/horizontal/communities/index.d.ts.map +1 -1
  124. package/dist/modules/horizontal/communities/index.js.map +1 -1
  125. package/dist/modules/horizontal/communities/types/address.d.ts +2 -2
  126. package/dist/modules/horizontal/communities/types/address.d.ts.map +1 -1
  127. package/dist/modules/horizontal/communities/types/agent.d.ts +2 -2
  128. package/dist/modules/horizontal/communities/types/agent.d.ts.map +1 -1
  129. package/dist/modules/horizontal/communities/types/block.d.ts +4 -5
  130. package/dist/modules/horizontal/communities/types/block.d.ts.map +1 -1
  131. package/dist/modules/horizontal/communities/types/community.d.ts +12 -5
  132. package/dist/modules/horizontal/communities/types/community.d.ts.map +1 -1
  133. package/dist/modules/horizontal/communities/types/community_config.d.ts.map +1 -1
  134. package/dist/modules/horizontal/communities/types/document.d.ts +2 -2
  135. package/dist/modules/horizontal/communities/types/document.d.ts.map +1 -1
  136. package/dist/modules/horizontal/communities/types/employee.d.ts +3 -3
  137. package/dist/modules/horizontal/communities/types/employee.d.ts.map +1 -1
  138. package/dist/modules/horizontal/communities/types/index.d.ts +10 -9
  139. package/dist/modules/horizontal/communities/types/index.d.ts.map +1 -1
  140. package/dist/modules/horizontal/communities/types/index.js +1 -0
  141. package/dist/modules/horizontal/communities/types/index.js.map +1 -1
  142. package/dist/modules/horizontal/communities/types/property.d.ts +6 -6
  143. package/dist/modules/horizontal/communities/types/property.d.ts.map +1 -1
  144. package/dist/modules/horizontal/communities/types/property.js.map +1 -1
  145. package/dist/modules/horizontal/communities/types/provider.d.ts +3 -3
  146. package/dist/modules/horizontal/communities/types/provider.d.ts.map +1 -1
  147. package/dist/modules/horizontal/communities/types/receipt.d.ts +7 -7
  148. package/dist/modules/horizontal/communities/types/receipt.d.ts.map +1 -1
  149. package/dist/modules/horizontal/communities/types/roles.d.ts +2 -2
  150. package/dist/modules/horizontal/communities/types/roles.d.ts.map +1 -1
  151. package/dist/modules/horizontal/communities/types/route_tracking.d.ts +53 -0
  152. package/dist/modules/horizontal/communities/types/route_tracking.d.ts.map +1 -0
  153. package/dist/modules/horizontal/communities/types/route_tracking.js +19 -0
  154. package/dist/modules/horizontal/communities/types/route_tracking.js.map +1 -0
  155. package/dist/modules/horizontal/communities/types/tag.d.ts.map +1 -1
  156. package/dist/modules/horizontal/index.d.ts +2 -2
  157. package/dist/modules/horizontal/index.d.ts.map +1 -1
  158. package/dist/modules/horizontal/index.js.map +1 -1
  159. package/dist/modules/index.d.ts +4 -3
  160. package/dist/modules/index.d.ts.map +1 -1
  161. package/dist/modules/index.js +1 -0
  162. package/dist/modules/index.js.map +1 -1
  163. package/dist/modules/ticketing/api.d.ts +6 -15
  164. package/dist/modules/ticketing/api.d.ts.map +1 -1
  165. package/dist/modules/ticketing/api.js +9 -38
  166. package/dist/modules/ticketing/api.js.map +1 -1
  167. package/dist/modules/ticketing/index.d.ts +2 -2
  168. package/dist/modules/ticketing/index.d.ts.map +1 -1
  169. package/dist/modules/ticketing/index.js +1 -1
  170. package/dist/modules/ticketing/index.js.map +1 -1
  171. package/dist/modules/ticketing/tasks/api/activity_logs.d.ts +10 -0
  172. package/dist/modules/ticketing/tasks/api/activity_logs.d.ts.map +1 -0
  173. package/dist/modules/ticketing/tasks/api/activity_logs.js +21 -0
  174. package/dist/modules/ticketing/tasks/api/activity_logs.js.map +1 -0
  175. package/dist/modules/ticketing/tasks/api/attachments.d.ts +8 -0
  176. package/dist/modules/ticketing/tasks/api/attachments.d.ts.map +1 -0
  177. package/dist/modules/ticketing/tasks/api/attachments.js +16 -0
  178. package/dist/modules/ticketing/tasks/api/attachments.js.map +1 -0
  179. package/dist/modules/ticketing/tasks/api/conversations.d.ts +11 -0
  180. package/dist/modules/ticketing/tasks/api/conversations.d.ts.map +1 -0
  181. package/dist/modules/ticketing/tasks/api/conversations.js +35 -0
  182. package/dist/modules/ticketing/tasks/api/conversations.js.map +1 -0
  183. package/dist/modules/ticketing/tasks/api/followers.d.ts +11 -0
  184. package/dist/modules/ticketing/tasks/api/followers.d.ts.map +1 -0
  185. package/dist/modules/ticketing/tasks/api/followers.js +24 -0
  186. package/dist/modules/ticketing/tasks/api/followers.js.map +1 -0
  187. package/dist/modules/ticketing/tasks/api/index.d.ts +7 -0
  188. package/dist/modules/ticketing/tasks/api/index.d.ts.map +1 -0
  189. package/dist/modules/ticketing/tasks/api/index.js +23 -0
  190. package/dist/modules/ticketing/tasks/api/index.js.map +1 -0
  191. package/dist/modules/ticketing/tasks/api/resources.d.ts +11 -0
  192. package/dist/modules/ticketing/tasks/api/resources.d.ts.map +1 -0
  193. package/dist/modules/ticketing/tasks/api/resources.js +24 -0
  194. package/dist/modules/ticketing/tasks/api/resources.js.map +1 -0
  195. package/dist/modules/ticketing/tasks/api/tasks.d.ts +18 -0
  196. package/dist/modules/ticketing/tasks/api/tasks.d.ts.map +1 -0
  197. package/dist/modules/ticketing/tasks/api/tasks.js +51 -0
  198. package/dist/modules/ticketing/tasks/api/tasks.js.map +1 -0
  199. package/dist/modules/ticketing/tasks/index.d.ts +3 -0
  200. package/dist/modules/ticketing/tasks/index.d.ts.map +1 -0
  201. package/dist/modules/ticketing/tasks/index.js +19 -0
  202. package/dist/modules/ticketing/tasks/index.js.map +1 -0
  203. package/dist/modules/ticketing/tasks/types/activity_log.d.ts +28 -0
  204. package/dist/modules/ticketing/tasks/types/activity_log.d.ts.map +1 -0
  205. package/dist/modules/ticketing/tasks/types/activity_log.js +24 -0
  206. package/dist/modules/ticketing/tasks/types/activity_log.js.map +1 -0
  207. package/dist/modules/ticketing/tasks/types/converstation.d.ts +31 -0
  208. package/dist/modules/ticketing/tasks/types/converstation.d.ts.map +1 -0
  209. package/dist/modules/ticketing/tasks/types/converstation.js +11 -0
  210. package/dist/modules/ticketing/tasks/types/converstation.js.map +1 -0
  211. package/dist/modules/ticketing/tasks/types/follower.d.ts +8 -0
  212. package/dist/modules/ticketing/tasks/types/follower.d.ts.map +1 -0
  213. package/dist/modules/ticketing/tasks/types/follower.js +3 -0
  214. package/dist/modules/ticketing/tasks/types/follower.js.map +1 -0
  215. package/dist/modules/ticketing/tasks/types/index.d.ts +6 -0
  216. package/dist/modules/ticketing/tasks/types/index.d.ts.map +1 -0
  217. package/dist/modules/ticketing/tasks/types/index.js +22 -0
  218. package/dist/modules/ticketing/tasks/types/index.js.map +1 -0
  219. package/dist/modules/ticketing/tasks/types/resource.d.ts +18 -0
  220. package/dist/modules/ticketing/tasks/types/resource.d.ts.map +1 -0
  221. package/dist/modules/ticketing/tasks/types/resource.js +15 -0
  222. package/dist/modules/ticketing/tasks/types/resource.js.map +1 -0
  223. package/dist/modules/ticketing/tasks/types/task.d.ts +64 -0
  224. package/dist/modules/ticketing/tasks/types/task.d.ts.map +1 -0
  225. package/dist/modules/ticketing/tasks/types/task.js +25 -0
  226. package/dist/modules/ticketing/tasks/types/task.js.map +1 -0
  227. package/dist/types.d.ts.map +1 -1
  228. package/dist/utils/crud.d.ts +2 -2
  229. package/dist/utils/crud.d.ts.map +1 -1
  230. package/dist/utils/crud.js +6 -6
  231. package/dist/utils/crud.js.map +1 -1
  232. package/dist/utils/http.d.ts +16 -8
  233. package/dist/utils/http.d.ts.map +1 -1
  234. package/dist/utils/http.js +69 -23
  235. package/dist/utils/http.js.map +1 -1
  236. package/dist/utils/index.d.ts +3 -3
  237. package/dist/utils/index.d.ts.map +1 -1
  238. package/dist/utils/index.js.map +1 -1
  239. package/dist/utils/signature.d.ts.map +1 -1
  240. package/dist/utils/signature.js +2 -5
  241. package/dist/utils/signature.js.map +1 -1
  242. package/dist/utils/types.d.ts.map +1 -1
  243. package/package.json +17 -3
package/dist/erp.d.ts CHANGED
@@ -1,6 +1,7 @@
1
- import { HorizontalAPI } from "./modules/horizontal";
2
- import { TicketingAPI } from "./modules/ticketing";
3
- import { ContactsAPI } from "./modules/contacts/api";
1
+ import { HorizontalAPI } from './modules/horizontal';
2
+ import { TicketingAPI } from './modules/ticketing';
3
+ import { ContactsAPI } from './modules/contacts/api';
4
+ import { GlobalAPI } from './modules/global/api';
4
5
  export interface ERPClientConfig {
5
6
  baseURL: string;
6
7
  apiKey: string;
@@ -10,8 +11,9 @@ export declare class ERPClient {
10
11
  private readonly _baseUrl;
11
12
  private _httpClient;
12
13
  constructor(config: ERPClientConfig);
14
+ global(): GlobalAPI;
13
15
  contacts(): ContactsAPI;
14
16
  horizontal(): HorizontalAPI;
15
- tasks(): TicketingAPI;
17
+ ticketing(): TicketingAPI;
16
18
  }
17
19
  //# sourceMappingURL=erp.d.ts.map
package/dist/erp.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"erp.d.ts","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqB;IAE9C,OAAO,CAAC,WAAW,CAAa;gBAEpB,MAAM,EAAE,eAAe;IAYnC,QAAQ,IAAI,WAAW;IAIvB,UAAU,IAAI,aAAa;IAI3B,KAAK,IAAI,YAAY;CAGtB"}
1
+ {"version":3,"file":"erp.d.ts","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAEhD,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,qBAAa,SAAS;IACpB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoB;IAE7C,OAAO,CAAC,WAAW,CAAY;gBAEnB,MAAM,EAAE,eAAe;IAYnC,MAAM,IAAI,SAAS;IAInB,QAAQ,IAAI,WAAW;IAIvB,UAAU,IAAI,aAAa;IAI3B,SAAS,IAAI,YAAY;CAG1B"}
package/dist/erp.js CHANGED
@@ -5,12 +5,13 @@ const http_1 = require("./utils/http");
5
5
  const horizontal_1 = require("./modules/horizontal");
6
6
  const ticketing_1 = require("./modules/ticketing");
7
7
  const api_1 = require("./modules/contacts/api");
8
+ const api_2 = require("./modules/global/api");
8
9
  class ERPClient {
9
- _baseUrl = "/api/v1";
10
+ _baseUrl = '/api/v1';
10
11
  _httpClient;
11
12
  constructor(config) {
12
13
  if (!config.baseURL || !config.apiKey || !config.apiSecret) {
13
- throw new Error("Missing required configuration");
14
+ throw new Error('Missing required configuration');
14
15
  }
15
16
  this._httpClient = new http_1.HTTPClient({
16
17
  baseURL: config.baseURL,
@@ -18,13 +19,16 @@ class ERPClient {
18
19
  apiSecret: config.apiSecret,
19
20
  });
20
21
  }
22
+ global() {
23
+ return new api_2.GlobalAPI(this._httpClient, this._baseUrl);
24
+ }
21
25
  contacts() {
22
26
  return new api_1.ContactsAPI(this._httpClient, this._baseUrl);
23
27
  }
24
28
  horizontal() {
25
29
  return new horizontal_1.HorizontalAPI(this._httpClient, this._baseUrl);
26
30
  }
27
- tasks() {
31
+ ticketing() {
28
32
  return new ticketing_1.TicketingAPI(this._httpClient, this._baseUrl);
29
33
  }
30
34
  }
package/dist/erp.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"erp.js","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":";;;AAAA,uCAA0C;AAC1C,qDAAqD;AACrD,mDAAmD;AACnD,gDAAqD;AAQrD,MAAa,SAAS;IACH,QAAQ,GAAW,SAAS,CAAC;IAEtC,WAAW,CAAa;IAEhC,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YAC3D,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACpD,CAAC;QAED,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAU,CAAC;YAChC,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,iBAAW,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1D,CAAC;IAED,UAAU;QACR,OAAO,IAAI,0BAAa,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK;QACH,OAAO,IAAI,wBAAY,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC3D,CAAC;CACF;AA5BD,8BA4BC"}
1
+ {"version":3,"file":"erp.js","sourceRoot":"","sources":["../src/erp.ts"],"names":[],"mappings":";;;AAAA,uCAAyC;AACzC,qDAAoD;AACpD,mDAAkD;AAClD,gDAAoD;AACpD,8CAAgD;AAQhD,MAAa,SAAS;IACH,QAAQ,GAAW,SAAS,CAAA;IAErC,WAAW,CAAY;IAE/B,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;YAC3D,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;QACnD,CAAC;QAED,IAAI,CAAC,WAAW,GAAG,IAAI,iBAAU,CAAC;YAChC,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,MAAM,EAAE,MAAM,CAAC,MAAM;YACrB,SAAS,EAAE,MAAM,CAAC,SAAS;SAC5B,CAAC,CAAA;IACJ,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,eAAS,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACvD,CAAC;IAED,QAAQ;QACN,OAAO,IAAI,iBAAW,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IACzD,CAAC;IAED,UAAU;QACR,OAAO,IAAI,0BAAa,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC3D,CAAC;IAED,SAAS;QACP,OAAO,IAAI,wBAAY,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;IAC1D,CAAC;CACF;AAhCD,8BAgCC"}
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from "./types";
2
- export * from "./utils";
3
- export * from "./modules";
4
- export * from "./erp";
1
+ export * from './types';
2
+ export * from './utils';
3
+ export * from './modules';
4
+ export * from './erp';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,4CAA0B;AAC1B,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,wCAAqB"}
@@ -1,5 +1,5 @@
1
- import { HTTPClient } from "../../utils/http";
2
- import { ContactsPersonsAPI } from "./persons";
1
+ import { HTTPClient } from '../../utils/http';
2
+ import { ContactsPersonsAPI } from './persons';
3
3
  export declare class ContactsAPI {
4
4
  private _httpClient;
5
5
  private readonly _baseUrl;
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/modules/contacts/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,qBAAa,WAAW;IAGV,OAAO,CAAC,WAAW;IAF/B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEd,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM;IAI5D,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,kBAAkB;CAOzC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/modules/contacts/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAA;AAE9C,qBAAa,WAAW;IAIpB,OAAO,CAAC,WAAW;IAHrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAGvB,WAAW,EAAE,UAAU,EAC/B,OAAO,EAAE,MAAM;IAKjB,OAAO,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,kBAAkB;CAGzC"}
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/contacts/api.ts"],"names":[],"mappings":";;;AACA,uCAA+C;AAE/C,MAAa,WAAW;IAGF;IAFH,QAAQ,CAAS;IAElC,YAAoB,WAAuB,EAAE,OAAe;QAAxC,gBAAW,GAAX,WAAW,CAAY;QACzC,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,WAAW,CAAC;IACxC,CAAC;IAED,OAAO,CAAC,EAAW;QACjB,OAAO,IAAI,4BAAkB,CAC3B,IAAI,CAAC,WAAW,EAChB,GAAG,IAAI,CAAC,QAAQ,UAAU,EAC1B,EAAE,CACH,CAAC;IACJ,CAAC;CACF;AAdD,kCAcC"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/contacts/api.ts"],"names":[],"mappings":";;;AACA,uCAA8C;AAE9C,MAAa,WAAW;IAIZ;IAHO,QAAQ,CAAQ;IAEjC,YACU,WAAuB,EAC/B,OAAe;QADP,gBAAW,GAAX,WAAW,CAAY;QAG/B,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,WAAW,CAAA;IACvC,CAAC;IAED,OAAO,CAAC,EAAW;QACjB,OAAO,IAAI,4BAAkB,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,UAAU,EAAE,EAAE,CAAC,CAAA;IACjF,CAAC;CACF;AAbD,kCAaC"}
@@ -1,3 +1,3 @@
1
- export * from "./persons";
2
- export * from "./api";
1
+ export * from './persons';
2
+ export * from './api';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/contacts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/contacts/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,OAAO,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/contacts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/contacts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,wCAAqB"}
@@ -1,5 +1,5 @@
1
- import { HTTPClient } from "../../../../utils/http";
2
- import { ContactPersonAddress, CreateContactPersonAddressDTO, UpdateContactPersonAddressDTO } from "../types";
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ import { ContactPersonAddress, CreateContactPersonAddressDTO, UpdateContactPersonAddressDTO } from '../types';
3
3
  export declare class ContactsPersonsAddressesAPI {
4
4
  private _crud;
5
5
  constructor(httpClient: HTTPClient, baseUrl: string, addressId?: string);
@@ -1 +1 @@
1
- {"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EACL,oBAAoB,EACpB,6BAA6B,EAC7B,6BAA6B,EAC9B,MAAM,UAAU,CAAC;AAElB,qBAAa,2BAA2B;IACtC,OAAO,CAAC,KAAK,CAIX;gBAEU,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAOvE,MAAM,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI1E,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,6BAA6B,GAClC,OAAO,CAAC,oBAAoB,CAAC;IAIhC,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlC,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;CAGvE"}
1
+ {"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/addresses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,OAAO,EAAE,oBAAoB,EAAE,6BAA6B,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAA;AAE7G,qBAAa,2BAA2B;IACtC,OAAO,CAAC,KAAK,CAA0F;gBAE3F,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM;IAOvE,MAAM,CAAC,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAI1E,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,6BAA6B,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAItF,MAAM,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlC,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;CAGvE"}
@@ -1 +1 @@
1
- {"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/addresses.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAOvC,MAAa,2BAA2B;IAC9B,KAAK,CAIX;IAEF,YAAY,UAAsB,EAAE,OAAe,EAAE,SAAkB;QACrE,IAAI,CAAC,KAAK,GAAG,IAAI,WAAI,CAAC,UAAU,EAAE;YAChC,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,SAAS;SACd,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,IAAmC;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACjC,CAAC;IAED,MAAM,CACJ,EAAU,EACV,IAAmC;QAEnC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,EAAW;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IAED,IAAI,CAAC,KAA+B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;CACF;AAhCD,kEAgCC"}
1
+ {"version":3,"file":"addresses.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/addresses.ts"],"names":[],"mappings":";;;AACA,0CAAsC;AAGtC,MAAa,2BAA2B;IAC9B,KAAK,CAA0F;IAEvG,YAAY,UAAsB,EAAE,OAAe,EAAE,SAAkB;QACrE,IAAI,CAAC,KAAK,GAAG,IAAI,WAAI,CAAC,UAAU,EAAE;YAChC,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,SAAS;SACd,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CAAC,IAAmC;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED,MAAM,CAAC,EAAU,EAAE,IAAmC;QACpD,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;IACpC,CAAC;IAED,MAAM,CAAC,EAAW;QAChB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IAC9B,CAAC;IAED,IAAI,CAAC,KAA+B;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;CACF;AAzBD,kEAyBC"}
@@ -1,3 +1,3 @@
1
- export * from "./addresses";
2
- export * from "./persons";
1
+ export * from './addresses';
2
+ export * from './persons';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,4CAA0B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,4CAAyB"}
@@ -1,7 +1,7 @@
1
- import { HTTPClient } from "../../../../utils/http";
2
- import { CRUD } from "../../../../utils/crud";
3
- import { ContactPerson, ContactPersonExtended, CreateContactPersonDTO, UpdateContactPersonDTO } from "../types";
4
- import { ContactsPersonsAddressesAPI } from "./addresses";
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ import { CRUD } from '../../../../utils/crud';
3
+ import { ContactPerson, ContactPersonExtended, CreateContactPersonDTO, UpdateContactPersonDTO } from '../types';
4
+ import { ContactsPersonsAddressesAPI } from './addresses';
5
5
  export declare class ContactsPersonsAPI extends CRUD<ContactPersonExtended, CreateContactPersonDTO, UpdateContactPersonDTO, ContactPerson | ContactPersonExtended> {
6
6
  private readonly _personId?;
7
7
  constructor(httpClient: HTTPClient, baseUrl: string, _personId?: string | undefined);
@@ -1 +1 @@
1
- {"version":3,"file":"persons.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/persons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EACL,aAAa,EACb,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACvB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAE1D,qBAAa,kBAAmB,SAAQ,IAAI,CAC1C,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,GAAG,qBAAqB,CACtC;IAIG,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;gBAF3B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,MAAM,EACE,SAAS,CAAC,EAAE,MAAM,YAAA;IAQrC,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,2BAA2B;CAWpD"}
1
+ {"version":3,"file":"persons.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/persons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAC/G,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAA;AAEzD,qBAAa,kBAAmB,SAAQ,IAAI,CAC1C,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,GAAG,qBAAqB,CACtC;IAIG,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;gBAF3B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,MAAM,EACE,SAAS,CAAC,EAAE,MAAM,YAAA;IAQrC,SAAS,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,2BAA2B;CAOpD"}
@@ -14,7 +14,7 @@ class ContactsPersonsAPI extends crud_1.CRUD {
14
14
  }
15
15
  addresses(id) {
16
16
  if (!this._personId) {
17
- throw new Error("Person ID is required");
17
+ throw new Error('Person ID is required');
18
18
  }
19
19
  return new addresses_1.ContactsPersonsAddressesAPI(this._httpClient, `${this._config.basePath}/${this._personId}/addresses`, id);
20
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"persons.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/persons.ts"],"names":[],"mappings":";;;AACA,0CAAuC;AAOvC,2CAA0D;AAE1D,MAAa,kBAAmB,SAAQ,WAKvC;IAIoB;IAHnB,YACE,UAAsB,EACtB,OAAe,EACE,SAAkB;QAEnC,KAAK,CAAC,UAAU,EAAE;YAChB,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,SAAS;SACd,CAAC,CAAC;QALc,cAAS,GAAT,SAAS,CAAS;IAMrC,CAAC;IAED,SAAS,CAAC,EAAW;QACnB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,IAAI,uCAA2B,CACpC,IAAI,CAAC,WAAW,EAChB,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,YAAY,EACtD,EAAE,CACH,CAAC;IACJ,CAAC;CACF;AA5BD,gDA4BC"}
1
+ {"version":3,"file":"persons.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/api/persons.ts"],"names":[],"mappings":";;;AACA,0CAAsC;AAEtC,2CAAyD;AAEzD,MAAa,kBAAmB,SAAQ,WAKvC;IAIoB;IAHnB,YACE,UAAsB,EACtB,OAAe,EACE,SAAkB;QAEnC,KAAK,CAAC,UAAU,EAAE;YAChB,QAAQ,EAAE,OAAO;YACjB,EAAE,EAAE,SAAS;SACd,CAAC,CAAA;QALe,cAAS,GAAT,SAAS,CAAS;IAMrC,CAAC;IAED,SAAS,CAAC,EAAW;QACnB,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAA;QAC1C,CAAC;QAED,OAAO,IAAI,uCAA2B,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAC,SAAS,YAAY,EAAE,EAAE,CAAC,CAAA;IACtH,CAAC;CACF;AAxBD,gDAwBC"}
@@ -1,3 +1,3 @@
1
- export * from "./types";
2
- export * from "./api";
1
+ export * from './types';
2
+ export * from './api';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/contacts/persons/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/contacts/persons/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/contacts/persons/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/contacts/persons/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,wCAAqB"}
@@ -3,7 +3,7 @@ export interface ContactAddressGplacesRaw {
3
3
  value: string;
4
4
  updatedAt: Date;
5
5
  }
6
- export type CreateContactAddressGplacesRawDTO = Omit<ContactAddressGplacesRaw, "updatedAt">;
6
+ export type CreateContactAddressGplacesRawDTO = Omit<ContactAddressGplacesRaw, 'updatedAt'>;
7
7
  export interface ContactAddress {
8
8
  id: string;
9
9
  gplacesRawId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/address.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAClD,wBAAwB,EACxB,WAAW,CACZ,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/address.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,MAAM,iCAAiC,GAAG,IAAI,CAAC,wBAAwB,EAAE,WAAW,CAAC,CAAA;AAE3F,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAA;IACV,YAAY,EAAE,MAAM,CAAA;IACpB,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACxB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,IAAI,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB"}
@@ -1,4 +1,4 @@
1
- export * from "./address";
2
- export * from "./person";
3
- export * from "./person_address";
1
+ export * from './address';
2
+ export * from './person';
3
+ export * from './person_address';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,kBAAkB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB;AACzB,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,2CAAwB;AACxB,mDAAgC"}
@@ -1,8 +1,17 @@
1
- import { CreateContactPersonAddressDTO } from "./person_address";
1
+ import { CreateContactPersonAddressDTO } from './person_address';
2
2
  export declare enum ContactPersonType {
3
3
  Natural = 1,
4
4
  Legal = 2
5
5
  }
6
+ export interface ContactPersonCollection {
7
+ id: string;
8
+ domain_id: string;
9
+ type_id: ContactPersonType;
10
+ full_name: string;
11
+ legal_id?: string;
12
+ phones?: string[];
13
+ emails?: string[];
14
+ }
6
15
  export interface ContactPerson {
7
16
  id: string;
8
17
  domainId: string;
@@ -21,12 +30,12 @@ export interface ContactPerson {
21
30
  tags?: [string, boolean][];
22
31
  updatedAt: Date;
23
32
  }
24
- export interface ContactPersonExtended extends Omit<ContactPerson, "legalRepresentative"> {
33
+ export interface ContactPersonExtended extends Omit<ContactPerson, 'legalRepresentative'> {
25
34
  legalRepresentative?: ContactPerson;
26
35
  }
27
36
  export interface CreateContactPersonDTO {
28
- entity: Omit<ContactPerson, "id" | "domainId" | "updatedAt" | "isAuthorized">;
37
+ entity: Omit<ContactPerson, 'id' | 'domainId' | 'updatedAt' | 'isAuthorized'>;
29
38
  addresses: CreateContactPersonAddressDTO[];
30
39
  }
31
- export type UpdateContactPersonDTO = Partial<Omit<ContactPerson, "id" | "domainId" | "updatedAt" | "isAuthorized">>;
40
+ export type UpdateContactPersonDTO = Partial<Omit<ContactPerson, 'id' | 'domainId' | 'updatedAt' | 'isAuthorized'>>;
32
41
  //# sourceMappingURL=person.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"person.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAEjE,oBAAY,iBAAiB;IAC3B,OAAO,IAAI;IACX,KAAK,IAAI;CACV;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAC3B,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,qBACf,SAAQ,IAAI,CAAC,aAAa,EAAE,qBAAqB,CAAC;IAClD,mBAAmB,CAAC,EAAE,aAAa,CAAC;CACrC;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC,CAAC;IAC9E,SAAS,EAAE,6BAA6B,EAAE,CAAC;CAC5C;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAC1C,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC,CACtE,CAAC"}
1
+ {"version":3,"file":"person.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAEhE,oBAAY,iBAAiB;IAC3B,OAAO,IAAI;IACX,KAAK,IAAI;CACV;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,iBAAiB,CAAA;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,iBAAiB,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,OAAO,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,MAAM,CAAC,EAAE,IAAI,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;IAC1B,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,aAAa,EAAE,qBAAqB,CAAC;IACvF,mBAAmB,CAAC,EAAE,aAAa,CAAA;CACpC;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC,CAAA;IAC7E,SAAS,EAAE,6BAA6B,EAAE,CAAA;CAC3C;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,cAAc,CAAC,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { ContactAddress, CreateContactAddressGplacesRawDTO } from "./address";
1
+ import { ContactAddress, CreateContactAddressGplacesRawDTO } from './address';
2
2
  export type ContactPersonAddress = ContactAddress;
3
3
  export interface ContactPersonAddressExtra {
4
4
  id: string;
@@ -12,9 +12,9 @@ export interface ContactPersonAddressExtra {
12
12
  updatedAt: Date;
13
13
  }
14
14
  export interface CreateContactPersonAddressDTO {
15
- entity: Omit<ContactAddress, "id" | "gplacesRawId" | "updatedAt">;
15
+ entity: Omit<ContactAddress, 'id' | 'gplacesRawId' | 'updatedAt'>;
16
16
  raw: CreateContactAddressGplacesRawDTO;
17
- extra: Omit<ContactPersonAddressExtra, "id" | "personId" | "addressId" | "updatedAt">;
17
+ extra: Omit<ContactPersonAddressExtra, 'id' | 'personId' | 'addressId' | 'updatedAt'>;
18
18
  }
19
19
  export type UpdateContactPersonAddressDTO = CreateContactPersonAddressDTO;
20
20
  //# sourceMappingURL=person_address.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"person_address.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person_address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iCAAiC,EAAE,MAAM,WAAW,CAAC;AAE9E,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC;AAElD,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,cAAc,GAAG,WAAW,CAAC,CAAC;IAClE,GAAG,EAAE,iCAAiC,CAAC;IACvC,KAAK,EAAE,IAAI,CACT,yBAAyB,EACzB,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAC9C,CAAC;CACH;AAED,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,CAAC"}
1
+ {"version":3,"file":"person_address.d.ts","sourceRoot":"","sources":["../../../../../src/modules/contacts/persons/types/person_address.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iCAAiC,EAAE,MAAM,WAAW,CAAA;AAE7E,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAA;AAEjD,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,6BAA6B;IAC5C,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,GAAG,cAAc,GAAG,WAAW,CAAC,CAAA;IACjE,GAAG,EAAE,iCAAiC,CAAA;IACtC,KAAK,EAAE,IAAI,CAAC,yBAAyB,EAAE,IAAI,GAAG,UAAU,GAAG,WAAW,GAAG,WAAW,CAAC,CAAA;CACtF;AAED,MAAM,MAAM,6BAA6B,GAAG,6BAA6B,CAAA"}
@@ -0,0 +1,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/global/agents/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/global/agents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
@@ -0,0 +1,16 @@
1
+ export declare enum AgentType {
2
+ AGENT = 1,
3
+ SUPERADMIN = 2,
4
+ SYSTEM = 3
5
+ }
6
+ export interface Agent {
7
+ id: string;
8
+ domainId: string;
9
+ typeId: AgentType;
10
+ email: string;
11
+ fullName: string;
12
+ enabled: boolean;
13
+ isOwner: boolean;
14
+ updatedAt: Date;
15
+ }
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/agents/types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,KAAK,IAAI;IACT,UAAU,IAAI;IACd,MAAM,IAAI;CACX;AAED,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,EAAE,SAAS,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,IAAI,CAAA;CAChB"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentType = void 0;
4
+ var AgentType;
5
+ (function (AgentType) {
6
+ AgentType[AgentType["AGENT"] = 1] = "AGENT";
7
+ AgentType[AgentType["SUPERADMIN"] = 2] = "SUPERADMIN";
8
+ AgentType[AgentType["SYSTEM"] = 3] = "SYSTEM";
9
+ })(AgentType || (exports.AgentType = AgentType = {}));
10
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/modules/global/agents/types.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,2CAAS,CAAA;IACT,qDAAc,CAAA;IACd,6CAAU,CAAA;AACZ,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB"}
@@ -0,0 +1,9 @@
1
+ import { HTTPClient } from '../../utils/http';
2
+ import { GlobalSearchAPI } from './search';
3
+ export declare class GlobalAPI {
4
+ private _httpClient;
5
+ private readonly _baseUrl;
6
+ constructor(_httpClient: HTTPClient, baseUrl: string);
7
+ search(): GlobalSearchAPI;
8
+ }
9
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/modules/global/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE1C,qBAAa,SAAS;IAIlB,OAAO,CAAC,WAAW;IAHrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAGvB,WAAW,EAAE,UAAU,EAC/B,OAAO,EAAE,MAAM;IAKjB,MAAM,IAAI,eAAe;CAG1B"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GlobalAPI = void 0;
4
+ const search_1 = require("./search");
5
+ class GlobalAPI {
6
+ _httpClient;
7
+ _baseUrl;
8
+ constructor(_httpClient, baseUrl) {
9
+ this._httpClient = _httpClient;
10
+ this._baseUrl = `${baseUrl}/global`;
11
+ }
12
+ search() {
13
+ return new search_1.GlobalSearchAPI(this._httpClient, `${this._baseUrl}/search`);
14
+ }
15
+ }
16
+ exports.GlobalAPI = GlobalAPI;
17
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/global/api.ts"],"names":[],"mappings":";;;AACA,qCAA0C;AAE1C,MAAa,SAAS;IAIV;IAHO,QAAQ,CAAQ;IAEjC,YACU,WAAuB,EAC/B,OAAe;QADP,gBAAW,GAAX,WAAW,CAAY;QAG/B,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,SAAS,CAAA;IACrC,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,wBAAe,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,SAAS,CAAC,CAAA;IACzE,CAAC;CACF;AAbD,8BAaC"}
@@ -0,0 +1,3 @@
1
+ export * from './agents';
2
+ export * from './search';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/global/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./agents"), exports);
18
+ __exportStar(require("./search"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/global/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,2CAAwB"}
@@ -0,0 +1,10 @@
1
+ import { HTTPClient } from '../../../utils/http';
2
+ import { GlobalSearchQueryContacts, GlobalSearchQueryMulti, GlobalSearchResult, GlobalSearchResultContactsPerson, GlobalSearchResultMulti } from './types';
3
+ export declare class GlobalSearchAPI {
4
+ private readonly _httpClient;
5
+ private readonly _baseUrl;
6
+ constructor(_httpClient: HTTPClient, _baseUrl: string);
7
+ multi(query: GlobalSearchQueryMulti): Promise<GlobalSearchResultMulti<GlobalSearchResult>>;
8
+ contacts(query: GlobalSearchQueryContacts): Promise<GlobalSearchResultContactsPerson>;
9
+ }
10
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/search/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,kBAAkB,EAClB,gCAAgC,EAChC,uBAAuB,EACxB,MAAM,SAAS,CAAA;AAEhB,qBAAa,eAAe;IAExB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAGnC,KAAK,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,uBAAuB,CAAC,kBAAkB,CAAC,CAAC;IAO1F,QAAQ,CAAC,KAAK,EAAE,yBAAyB,GAAG,OAAO,CAAC,gCAAgC,CAAC;CAMtF"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GlobalSearchAPI = void 0;
4
+ class GlobalSearchAPI {
5
+ _httpClient;
6
+ _baseUrl;
7
+ constructor(_httpClient, _baseUrl) {
8
+ this._httpClient = _httpClient;
9
+ this._baseUrl = _baseUrl;
10
+ }
11
+ multi(query) {
12
+ return this._httpClient.get(`${this._baseUrl}/multi`, query);
13
+ }
14
+ contacts(query) {
15
+ return this._httpClient.get(`${this._baseUrl}/contacts`, query);
16
+ }
17
+ }
18
+ exports.GlobalSearchAPI = GlobalSearchAPI;
19
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../../src/modules/global/search/api.ts"],"names":[],"mappings":";;;AASA,MAAa,eAAe;IAEP;IACA;IAFnB,YACmB,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;IAChC,CAAC;IAEJ,KAAK,CAAC,KAA6B;QACjC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CACzB,GAAG,IAAI,CAAC,QAAQ,QAAQ,EACxB,KAAK,CACN,CAAA;IACH,CAAC;IAED,QAAQ,CAAC,KAAgC;QACvC,OAAO,IAAI,CAAC,WAAW,CAAC,GAAG,CACzB,GAAG,IAAI,CAAC,QAAQ,WAAW,EAC3B,KAAK,CACN,CAAA;IACH,CAAC;CACF;AAnBD,0CAmBC"}
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './api';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/modules/global/search/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./api"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/global/search/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,wCAAqB"}