@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
@@ -7,6 +7,6 @@ export interface CommunityPerson {
7
7
  startDate: Date;
8
8
  endDate?: Date | undefined;
9
9
  }
10
- export type CreateCommunityPersonDTO = Omit<CommunityPerson, "communityId" | "updatedAt">;
11
- export type UpdateCommunityPersonDTO = Partial<Omit<CommunityPerson, "personId" | "updatedAt">>;
10
+ export type CreateCommunityPersonDTO = Omit<CommunityPerson, 'communityId' | 'updatedAt'>;
11
+ export type UpdateCommunityPersonDTO = Partial<Omit<CommunityPerson, 'personId' | 'updatedAt'>>;
12
12
  //# sourceMappingURL=roles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/roles.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,IAAI,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,IAAI,CAAC;IAChB,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;CAC5B;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CACzC,eAAe,EACf,aAAa,GAAG,WAAW,CAC5B,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAC5C,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,CAAC,CAChD,CAAC"}
1
+ {"version":3,"file":"roles.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/roles.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,IAAI,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,EAAE,OAAO,CAAA;IACtB,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;CAC3B;AAED,MAAM,MAAM,wBAAwB,GAAG,IAAI,CAAC,eAAe,EAAE,aAAa,GAAG,WAAW,CAAC,CAAA;AAEzF,MAAM,MAAM,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,WAAW,CAAC,CAAC,CAAA"}
@@ -0,0 +1,53 @@
1
+ export declare enum RouteTrackingModule {
2
+ horizontal = 1
3
+ }
4
+ export declare enum RouteTrackingEntityType {
5
+ Macrocommunity = 1,
6
+ Community = 2
7
+ }
8
+ export declare enum RouteTrackingFrequency {
9
+ Daily = 1,
10
+ Weekly = 2,
11
+ Monthly = 3
12
+ }
13
+ export interface RouteTrackingRoute {
14
+ id: string;
15
+ domainId: string;
16
+ moduleId: RouteTrackingModule;
17
+ entityTypeId: RouteTrackingEntityType;
18
+ entityId: string;
19
+ name: string;
20
+ frequencyId: RouteTrackingFrequency | null;
21
+ updatedAt: Date;
22
+ }
23
+ export type CreateRouteTrackingRouteDTO = Pick<RouteTrackingRoute, 'name'>;
24
+ export type UpdateRouteTrackingRouteDTO = Partial<Pick<RouteTrackingRoute, 'name' | 'frequencyId'>>;
25
+ export interface RouteTrackingRouteAgent {
26
+ agentId: string;
27
+ routeId: string;
28
+ }
29
+ export type CreateRouteTrackingRouteAgentDTO = Pick<RouteTrackingRouteAgent, 'agentId'>;
30
+ export interface RouteTrackingRouteZone {
31
+ routeId: string;
32
+ zoneId: string;
33
+ tagId?: string;
34
+ updatedAt: Date;
35
+ }
36
+ export type CreateRouteTrackingRouteZoneDTO = Pick<RouteTrackingRouteZone, 'zoneId' | 'tagId'>;
37
+ export interface RouteTrackingRouteExtended extends RouteTrackingRoute {
38
+ agents?: RouteTrackingRouteAgent[];
39
+ zones?: RouteTrackingRouteZone[];
40
+ }
41
+ export interface RouteTrackingZone {
42
+ id: string;
43
+ domainId: string;
44
+ moduleId: RouteTrackingModule;
45
+ entityTypeId: RouteTrackingEntityType;
46
+ entityId: string;
47
+ name: string;
48
+ tagId: string;
49
+ updatedAt: Date;
50
+ }
51
+ export type CreateRouteTrackingZoneDTO = Pick<RouteTrackingZone, 'name'> & Partial<Pick<RouteTrackingZone, 'tagId'>>;
52
+ export type UpdateRouteTrackingZoneDTO = Partial<Pick<RouteTrackingZone, 'tagId'>>;
53
+ //# sourceMappingURL=route_tracking.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route_tracking.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/route_tracking.ts"],"names":[],"mappings":"AAAA,oBAAY,mBAAmB;IAC7B,UAAU,IAAI;CACf;AAED,oBAAY,uBAAuB;IACjC,cAAc,IAAI;IAClB,SAAS,IAAI;CACd;AAED,oBAAY,sBAAsB;IAChC,KAAK,IAAI;IACT,MAAM,IAAI;IACV,OAAO,IAAI;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,YAAY,EAAE,uBAAuB,CAAA;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,sBAAsB,GAAG,IAAI,CAAA;IAC1C,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,MAAM,2BAA2B,GAAG,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;AAE1E,MAAM,MAAM,2BAA2B,GAAG,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,aAAa,CAAC,CAAC,CAAA;AAEnG,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,MAAM,gCAAgC,GAAG,IAAI,CAAC,uBAAuB,EAAE,SAAS,CAAC,CAAA;AAEvF,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,MAAM,+BAA+B,GAAG,IAAI,CAAC,sBAAsB,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAA;AAE9F,MAAM,WAAW,0BAA2B,SAAQ,kBAAkB;IACpE,MAAM,CAAC,EAAE,uBAAuB,EAAE,CAAA;IAClC,KAAK,CAAC,EAAE,sBAAsB,EAAE,CAAA;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,YAAY,EAAE,uBAAuB,CAAA;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,IAAI,CAAA;CAChB;AAED,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC,CAAA;AAEpH,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC,CAAA"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RouteTrackingFrequency = exports.RouteTrackingEntityType = exports.RouteTrackingModule = void 0;
4
+ var RouteTrackingModule;
5
+ (function (RouteTrackingModule) {
6
+ RouteTrackingModule[RouteTrackingModule["horizontal"] = 1] = "horizontal";
7
+ })(RouteTrackingModule || (exports.RouteTrackingModule = RouteTrackingModule = {}));
8
+ var RouteTrackingEntityType;
9
+ (function (RouteTrackingEntityType) {
10
+ RouteTrackingEntityType[RouteTrackingEntityType["Macrocommunity"] = 1] = "Macrocommunity";
11
+ RouteTrackingEntityType[RouteTrackingEntityType["Community"] = 2] = "Community";
12
+ })(RouteTrackingEntityType || (exports.RouteTrackingEntityType = RouteTrackingEntityType = {}));
13
+ var RouteTrackingFrequency;
14
+ (function (RouteTrackingFrequency) {
15
+ RouteTrackingFrequency[RouteTrackingFrequency["Daily"] = 1] = "Daily";
16
+ RouteTrackingFrequency[RouteTrackingFrequency["Weekly"] = 2] = "Weekly";
17
+ RouteTrackingFrequency[RouteTrackingFrequency["Monthly"] = 3] = "Monthly";
18
+ })(RouteTrackingFrequency || (exports.RouteTrackingFrequency = RouteTrackingFrequency = {}));
19
+ //# sourceMappingURL=route_tracking.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"route_tracking.js","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/route_tracking.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAEX;AAFD,WAAY,mBAAmB;IAC7B,yEAAc,CAAA;AAChB,CAAC,EAFW,mBAAmB,mCAAnB,mBAAmB,QAE9B;AAED,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IACjC,yFAAkB,CAAA;IAClB,+EAAa,CAAA;AACf,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,qEAAS,CAAA;IACT,uEAAU,CAAA;IACV,yEAAW,CAAA;AACb,CAAC,EAJW,sBAAsB,sCAAtB,sBAAsB,QAIjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/tag.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC"}
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../../../src/modules/horizontal/communities/types/tag.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA"}
@@ -1,3 +1,3 @@
1
- export * from "./communities";
2
- export * from "./api";
1
+ export * from './communities';
2
+ export * from './api';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/horizontal/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/horizontal/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,OAAO,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/horizontal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/horizontal/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,wCAAqB"}
@@ -1,4 +1,5 @@
1
- export * from "./contacts";
2
- export * from "./horizontal";
3
- export * from "./ticketing";
1
+ export * from './contacts';
2
+ export * from './horizontal';
3
+ export * from './ticketing';
4
+ export * from './global';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,UAAU,CAAA"}
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./contacts"), exports);
18
18
  __exportStar(require("./horizontal"), exports);
19
19
  __exportStar(require("./ticketing"), exports);
20
+ __exportStar(require("./global"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,+CAA6B;AAC7B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,+CAA4B;AAC5B,8CAA2B;AAC3B,2CAAwB"}
@@ -1,18 +1,9 @@
1
- import { HTTPClient } from "../../utils/http";
2
- import { APIResponse } from "../../types";
3
- import { CreateTaskDTO, Task, TaskCategory } from "./types";
1
+ import { HTTPClient } from '../../utils/http';
2
+ import { TicketingTasksAPI } from './tasks';
4
3
  export declare class TicketingAPI {
5
- private httpClient;
6
- private readonly basePath;
7
- constructor(httpClient: HTTPClient, baseUrl: string);
8
- create(data: CreateTaskDTO): Promise<APIResponse<Task>>;
9
- getAll(filters?: Record<string, unknown>): Promise<APIResponse<Task[]>>;
10
- getById(id: string): Promise<APIResponse<Task>>;
11
- update(id: string, data: Partial<Task>): Promise<APIResponse<Task>>;
12
- delete(id: string): Promise<APIResponse<void>>;
13
- downloadAttachment(taskId: string, documentId: string): Promise<Buffer>;
14
- getCategories(filters?: Record<string, unknown>): Promise<APIResponse<TaskCategory[]>>;
15
- getCategoryById(id: number): Promise<APIResponse<TaskCategory>>;
16
- getSubtaskFromParentId(parentId: string): Promise<APIResponse<Task[]>>;
4
+ private _httpClient;
5
+ private readonly _baseUrl;
6
+ constructor(_httpClient: HTTPClient, baseUrl: string);
7
+ tasks(id?: string): TicketingTasksAPI;
17
8
  }
18
9
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/modules/ticketing/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5D,qBAAa,YAAY;IAGX,OAAO,CAAC,UAAU;IAF9B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;gBAEd,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM;IAIrD,MAAM,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAIvD,MAAM,CACV,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;IAIzB,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAI/C,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAInE,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAI9C,kBAAkB,CACtB,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,MAAM,CAAC;IAMZ,aAAa,CACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAChC,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,CAAC;IAMjC,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAQ/D,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;CAK7E"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/modules/ticketing/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAE3C,qBAAa,YAAY;IAIrB,OAAO,CAAC,WAAW;IAHrB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAQ;gBAGvB,WAAW,EAAE,UAAU,EAC/B,OAAO,EAAE,MAAM;IAKjB,KAAK,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,iBAAiB;CAGtC"}
@@ -1,45 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TicketingAPI = void 0;
4
+ const tasks_1 = require("./tasks");
4
5
  class TicketingAPI {
5
- httpClient;
6
- basePath;
7
- constructor(httpClient, baseUrl) {
8
- this.httpClient = httpClient;
9
- this.basePath = `${baseUrl}/ticketing`;
10
- }
11
- async create(data) {
12
- return this.httpClient.post(`${this.basePath}/tasks`, data);
13
- }
14
- async getAll(filters) {
15
- return this.httpClient.get(`${this.basePath}/tasks`, filters);
16
- }
17
- async getById(id) {
18
- return this.httpClient.get(`${this.basePath}/tasks/${id}`);
19
- }
20
- async update(id, data) {
21
- return this.httpClient.put(`${this.basePath}/tasks/${id}`, data);
22
- }
23
- async delete(id) {
24
- return this.httpClient.delete(`${this.basePath}/tasks/${id}`);
25
- }
26
- async downloadAttachment(taskId, documentId) {
27
- return this.httpClient.getBinary(`${this.basePath}/tasks/${taskId}/attachments/${documentId}`);
28
- }
29
- async getCategories(filters) {
30
- return this.httpClient.get(`${this.basePath}/tasks/config/categories`, filters);
31
- }
32
- async getCategoryById(id) {
33
- const response = await this.getCategories({ "id[]": [id] });
34
- if (!response[0]) {
35
- throw new Error(`Category with id ${id} not found`);
36
- }
37
- return response[0];
38
- }
39
- async getSubtaskFromParentId(parentId) {
40
- return this.httpClient.get(`${this.basePath}/tasks`, {
41
- "parentId[]": [parentId],
42
- });
6
+ _httpClient;
7
+ _baseUrl;
8
+ constructor(_httpClient, baseUrl) {
9
+ this._httpClient = _httpClient;
10
+ this._baseUrl = `${baseUrl}/ticketing`;
11
+ }
12
+ tasks(id) {
13
+ return new tasks_1.TicketingTasksAPI(this._httpClient, `${this._baseUrl}/tasks`, id);
43
14
  }
44
15
  }
45
16
  exports.TicketingAPI = TicketingAPI;
@@ -1 +1 @@
1
- {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/ticketing/api.ts"],"names":[],"mappings":";;;AAIA,MAAa,YAAY;IAGH;IAFH,QAAQ,CAAS;IAElC,YAAoB,UAAsB,EAAE,OAAe;QAAvC,eAAU,GAAV,UAAU,CAAY;QACxC,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,YAAY,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAmB;QAC9B,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAO,GAAG,IAAI,CAAC,QAAQ,QAAQ,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;IAED,KAAK,CAAC,MAAM,CACV,OAAiC;QAEjC,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAS,GAAG,IAAI,CAAC,QAAQ,QAAQ,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,EAAU;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAO,GAAG,IAAI,CAAC,QAAQ,UAAU,EAAE,EAAE,CAAC,CAAC;IACnE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,IAAmB;QAC1C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAO,GAAG,IAAI,CAAC,QAAQ,UAAU,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACzE,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAO,GAAG,IAAI,CAAC,QAAQ,UAAU,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,MAAc,EACd,UAAkB;QAElB,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,CAC9B,GAAG,IAAI,CAAC,QAAQ,UAAU,MAAM,gBAAgB,UAAU,EAAE,CAC7D,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,OAAiC;QAEjC,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CACxB,GAAG,IAAI,CAAC,QAAQ,0BAA0B,EAC1C,OAAO,CACR,CAAC;IACJ,CAAC;IACD,KAAK,CAAC,eAAe,CAAC,EAAU;QAC9B,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QAC5D,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,oBAAoB,EAAE,YAAY,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,sBAAsB,CAAC,QAAgB;QAC3C,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,CAAS,GAAG,IAAI,CAAC,QAAQ,QAAQ,EAAE;YAC3D,YAAY,EAAE,CAAC,QAAQ,CAAC;SACzB,CAAC,CAAC;IACL,CAAC;CACF;AA3DD,oCA2DC"}
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/modules/ticketing/api.ts"],"names":[],"mappings":";;;AACA,mCAA2C;AAE3C,MAAa,YAAY;IAIb;IAHO,QAAQ,CAAQ;IAEjC,YACU,WAAuB,EAC/B,OAAe;QADP,gBAAW,GAAX,WAAW,CAAY;QAG/B,IAAI,CAAC,QAAQ,GAAG,GAAG,OAAO,YAAY,CAAA;IACxC,CAAC;IAED,KAAK,CAAC,EAAW;QACf,OAAO,IAAI,yBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,QAAQ,QAAQ,EAAE,EAAE,CAAC,CAAA;IAC9E,CAAC;CACF;AAbD,oCAaC"}
@@ -1,3 +1,3 @@
1
- export * from "./types";
2
- export * from "./api";
1
+ export * from './tasks';
2
+ export * from './api';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/ticketing/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/ticketing/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,OAAO,CAAA"}
@@ -14,6 +14,6 @@ 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
- __exportStar(require("./types"), exports);
17
+ __exportStar(require("./tasks"), exports);
18
18
  __exportStar(require("./api"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/ticketing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,wCAAsB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/ticketing/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,wCAAqB"}
@@ -0,0 +1,10 @@
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ import { TicketingTaskActivityLog } from '../types';
3
+ export declare class TicketingTaskActivityLogsAPI {
4
+ private _httpClient;
5
+ private _baseUrl;
6
+ private readonly _crud;
7
+ constructor(_httpClient: HTTPClient, _baseUrl: string);
8
+ find(query?: Record<string, unknown>): Promise<TicketingTaskActivityLog[]>;
9
+ }
10
+ //# sourceMappingURL=activity_logs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity_logs.d.ts","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/activity_logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAA;AAGnD,qBAAa,4BAA4B;IAIrC,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,QAAQ;IAJlB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAgC;gBAG5C,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAOpB,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,wBAAwB,EAAE,CAAC;CAGjF"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TicketingTaskActivityLogsAPI = void 0;
4
+ const utils_1 = require("../../../../utils");
5
+ class TicketingTaskActivityLogsAPI {
6
+ _httpClient;
7
+ _baseUrl;
8
+ _crud;
9
+ constructor(_httpClient, _baseUrl) {
10
+ this._httpClient = _httpClient;
11
+ this._baseUrl = _baseUrl;
12
+ this._crud = new utils_1.CRUD(this._httpClient, {
13
+ basePath: this._baseUrl,
14
+ });
15
+ }
16
+ async find(query) {
17
+ return this._crud.find(query);
18
+ }
19
+ }
20
+ exports.TicketingTaskActivityLogsAPI = TicketingTaskActivityLogsAPI;
21
+ //# sourceMappingURL=activity_logs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"activity_logs.js","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/activity_logs.ts"],"names":[],"mappings":";;;AAEA,sCAAiC;AAEjC,MAAa,4BAA4B;IAI7B;IACA;IAJO,KAAK,CAAgC;IAEtD,YACU,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;QAExB,IAAI,CAAC,KAAK,GAAG,IAAI,YAAI,CAA2B,IAAI,CAAC,WAAW,EAAE;YAChE,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,KAA+B;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;CACF;AAfD,oEAeC"}
@@ -0,0 +1,8 @@
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ export declare class TicketingTaskAttachmentsAPI {
3
+ private _httpClient;
4
+ private _baseUrl;
5
+ constructor(_httpClient: HTTPClient, _baseUrl: string);
6
+ download(id: string): Promise<Buffer>;
7
+ }
8
+ //# sourceMappingURL=attachments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachments.d.ts","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/attachments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE5C,qBAAa,2BAA2B;IAEpC,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,QAAQ;gBADR,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAGpB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAG5C"}
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TicketingTaskAttachmentsAPI = void 0;
4
+ class TicketingTaskAttachmentsAPI {
5
+ _httpClient;
6
+ _baseUrl;
7
+ constructor(_httpClient, _baseUrl) {
8
+ this._httpClient = _httpClient;
9
+ this._baseUrl = _baseUrl;
10
+ }
11
+ async download(id) {
12
+ return this._httpClient.getBinary(`${this._baseUrl}/${id}`);
13
+ }
14
+ }
15
+ exports.TicketingTaskAttachmentsAPI = TicketingTaskAttachmentsAPI;
16
+ //# sourceMappingURL=attachments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachments.js","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/attachments.ts"],"names":[],"mappings":";;;AAEA,MAAa,2BAA2B;IAE5B;IACA;IAFV,YACU,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;IACvB,CAAC;IAEJ,KAAK,CAAC,QAAQ,CAAC,EAAU;QACvB,OAAO,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE,EAAE,CAAC,CAAA;IAC7D,CAAC;CACF;AATD,kEASC"}
@@ -0,0 +1,11 @@
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ import { CreateTicketingTaskConversationItemDTO, TicketingTaskConversationItem, TicketingTaskConversationItemExtended } from '../types';
3
+ export declare class TicketingTaskConversationsAPI {
4
+ private _httpClient;
5
+ private _baseUrl;
6
+ private readonly _crud;
7
+ constructor(_httpClient: HTTPClient, _baseUrl: string);
8
+ create(data: CreateTicketingTaskConversationItemDTO): Promise<TicketingTaskConversationItemExtended>;
9
+ find(query?: Record<string, unknown>): Promise<TicketingTaskConversationItem[]>;
10
+ }
11
+ //# sourceMappingURL=conversations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EACL,sCAAsC,EACtC,6BAA6B,EAC7B,qCAAqC,EACtC,MAAM,UAAU,CAAA;AAGjB,qBAAa,6BAA6B;IAItC,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,QAAQ;IAJlB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA6C;gBAGzD,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAOpB,MAAM,CAAC,IAAI,EAAE,sCAAsC,GAAG,OAAO,CAAC,qCAAqC,CAAC;IAiBpG,IAAI,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,6BAA6B,EAAE,CAAC;CAGtF"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TicketingTaskConversationsAPI = void 0;
4
+ const utils_1 = require("../../../../utils");
5
+ class TicketingTaskConversationsAPI {
6
+ _httpClient;
7
+ _baseUrl;
8
+ _crud;
9
+ constructor(_httpClient, _baseUrl) {
10
+ this._httpClient = _httpClient;
11
+ this._baseUrl = _baseUrl;
12
+ this._crud = new utils_1.CRUD(this._httpClient, {
13
+ basePath: this._baseUrl,
14
+ });
15
+ }
16
+ async create(data) {
17
+ const path = `${this._baseUrl}`;
18
+ if (data.attachment) {
19
+ return this._httpClient.uploadFile(path, {
20
+ file: {
21
+ name: data.attachment.fileName,
22
+ data: data.attachment.fileData,
23
+ },
24
+ message: data.message,
25
+ mentions: data.mentions,
26
+ });
27
+ }
28
+ return this._httpClient.post(path, data);
29
+ }
30
+ async find(query) {
31
+ return this._crud.find(query);
32
+ }
33
+ }
34
+ exports.TicketingTaskConversationsAPI = TicketingTaskConversationsAPI;
35
+ //# sourceMappingURL=conversations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/conversations.ts"],"names":[],"mappings":";;;AAMA,sCAAiC;AAEjC,MAAa,6BAA6B;IAI9B;IACA;IAJO,KAAK,CAA6C;IAEnE,YACU,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;QAExB,IAAI,CAAC,KAAK,GAAG,IAAI,YAAI,CAAwC,IAAI,CAAC,WAAW,EAAE;YAC7E,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAA4C;QACvD,MAAM,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAA;QAE/B,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC,WAAW,CAAC,UAAU,CAAwC,IAAI,EAAE;gBAC9E,IAAI,EAAE;oBACJ,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ;oBAC9B,IAAI,EAAE,IAAI,CAAC,UAAU,CAAC,QAAQ;iBAC/B;gBACD,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACxB,CAAC,CAAA;QACJ,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAC,IAAI,CAAwC,IAAI,EAAE,IAAI,CAAC,CAAA;IACjF,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,KAA+B;QACxC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IAC/B,CAAC;CACF;AAhCD,sEAgCC"}
@@ -0,0 +1,11 @@
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ import { CreateTicketingTaskFollowerDTO, TicketingTaskFollower } from '../types';
3
+ export declare class TicketingTaskFollowersAPI {
4
+ private _httpClient;
5
+ private _baseUrl;
6
+ private readonly _crud;
7
+ constructor(_httpClient: HTTPClient, _baseUrl: string);
8
+ create(data: CreateTicketingTaskFollowerDTO): Promise<TicketingTaskFollower>;
9
+ delete(id: string): Promise<void>;
10
+ }
11
+ //# sourceMappingURL=followers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followers.d.ts","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/followers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAGhF,qBAAa,yBAAyB;IAIlC,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,QAAQ;IAJlB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA6D;gBAGzE,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAOpB,MAAM,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAI5E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAGxC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TicketingTaskFollowersAPI = void 0;
4
+ const utils_1 = require("../../../../utils");
5
+ class TicketingTaskFollowersAPI {
6
+ _httpClient;
7
+ _baseUrl;
8
+ _crud;
9
+ constructor(_httpClient, _baseUrl) {
10
+ this._httpClient = _httpClient;
11
+ this._baseUrl = _baseUrl;
12
+ this._crud = new utils_1.CRUD(this._httpClient, {
13
+ basePath: this._baseUrl,
14
+ });
15
+ }
16
+ async create(data) {
17
+ return this._crud.create(data);
18
+ }
19
+ async delete(id) {
20
+ return this._crud.delete(id);
21
+ }
22
+ }
23
+ exports.TicketingTaskFollowersAPI = TicketingTaskFollowersAPI;
24
+ //# sourceMappingURL=followers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"followers.js","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/followers.ts"],"names":[],"mappings":";;;AAEA,sCAAiC;AAEjC,MAAa,yBAAyB;IAI1B;IACA;IAJO,KAAK,CAA6D;IAEnF,YACU,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;QAExB,IAAI,CAAC,KAAK,GAAG,IAAI,YAAI,CAAwD,IAAI,CAAC,WAAW,EAAE;YAC7F,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAoC;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAU;QACrB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IAC9B,CAAC;CACF;AAnBD,8DAmBC"}
@@ -0,0 +1,7 @@
1
+ export * from './tasks';
2
+ export * from './followers';
3
+ export * from './conversations';
4
+ export * from './activity_logs';
5
+ export * from './attachments';
6
+ export * from './resources';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA"}
@@ -0,0 +1,23 @@
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("./tasks"), exports);
18
+ __exportStar(require("./followers"), exports);
19
+ __exportStar(require("./conversations"), exports);
20
+ __exportStar(require("./activity_logs"), exports);
21
+ __exportStar(require("./attachments"), exports);
22
+ __exportStar(require("./resources"), exports);
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,8CAA2B;AAC3B,kDAA+B;AAC/B,kDAA+B;AAC/B,gDAA6B;AAC7B,8CAA2B"}
@@ -0,0 +1,11 @@
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ import { CreateTicketingTaskResourceDTO, TicketingTaskResource } from '../types';
3
+ export declare class TicketingTaskResourcesAPI {
4
+ private _httpClient;
5
+ private _baseUrl;
6
+ private readonly _crud;
7
+ constructor(_httpClient: HTTPClient, _baseUrl: string);
8
+ create(data: CreateTicketingTaskResourceDTO): Promise<TicketingTaskResource>;
9
+ delete(refId: string): Promise<void>;
10
+ }
11
+ //# sourceMappingURL=resources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.d.ts","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAGhF,qBAAa,yBAAyB;IAIlC,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,QAAQ;IAJlB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA6D;gBAGzE,WAAW,EAAE,UAAU,EACvB,QAAQ,EAAE,MAAM;IAOpB,MAAM,CAAC,IAAI,EAAE,8BAA8B,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAI5E,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAG3C"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TicketingTaskResourcesAPI = void 0;
4
+ const utils_1 = require("../../../../utils");
5
+ class TicketingTaskResourcesAPI {
6
+ _httpClient;
7
+ _baseUrl;
8
+ _crud;
9
+ constructor(_httpClient, _baseUrl) {
10
+ this._httpClient = _httpClient;
11
+ this._baseUrl = _baseUrl;
12
+ this._crud = new utils_1.CRUD(this._httpClient, {
13
+ basePath: this._baseUrl,
14
+ });
15
+ }
16
+ async create(data) {
17
+ return this._crud.create(data);
18
+ }
19
+ async delete(refId) {
20
+ return this._crud.delete(refId);
21
+ }
22
+ }
23
+ exports.TicketingTaskResourcesAPI = TicketingTaskResourcesAPI;
24
+ //# sourceMappingURL=resources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resources.js","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/resources.ts"],"names":[],"mappings":";;;AAEA,sCAAiC;AAEjC,MAAa,yBAAyB;IAI1B;IACA;IAJO,KAAK,CAA6D;IAEnF,YACU,WAAuB,EACvB,QAAgB;QADhB,gBAAW,GAAX,WAAW,CAAY;QACvB,aAAQ,GAAR,QAAQ,CAAQ;QAExB,IAAI,CAAC,KAAK,GAAG,IAAI,YAAI,CAAwD,IAAI,CAAC,WAAW,EAAE;YAC7F,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAoC;QAC/C,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAAa;QACxB,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;IACjC,CAAC;CACF;AAnBD,8DAmBC"}
@@ -0,0 +1,18 @@
1
+ import { HTTPClient } from '../../../../utils/http';
2
+ import { CRUD } from '../../../../utils/crud';
3
+ import { TicketingTask, CreateTicketingTaskDTO, UpdateTicketingTaskDTO, TicketingTaskExtended } from '../types';
4
+ import { TicketingTaskFollowersAPI } from './followers';
5
+ import { TicketingTaskConversationsAPI } from './conversations';
6
+ import { TicketingTaskActivityLogsAPI } from './activity_logs';
7
+ import { TicketingTaskAttachmentsAPI } from './attachments';
8
+ import { TicketingTaskResourcesAPI } from './resources';
9
+ export declare class TicketingTasksAPI extends CRUD<TicketingTask, CreateTicketingTaskDTO, UpdateTicketingTaskDTO, (TicketingTask | TicketingTaskExtended)[]> {
10
+ private readonly _taskId?;
11
+ constructor(httpClient: HTTPClient, baseUrl: string, _taskId?: string | undefined);
12
+ followers(): TicketingTaskFollowersAPI;
13
+ conversations(): TicketingTaskConversationsAPI;
14
+ activityLogs(): TicketingTaskActivityLogsAPI;
15
+ attachments(): TicketingTaskAttachmentsAPI;
16
+ resources(): TicketingTaskResourcesAPI;
17
+ }
18
+ //# sourceMappingURL=tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../../../../src/modules/ticketing/tasks/api/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAC/G,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAA;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AAEvD,qBAAa,iBAAkB,SAAQ,IAAI,CACzC,aAAa,EACb,sBAAsB,EACtB,sBAAsB,EACtB,CAAC,aAAa,GAAG,qBAAqB,CAAC,EAAE,CAC1C;IAIG,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAFzB,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,MAAM,EACE,OAAO,CAAC,EAAE,MAAM,YAAA;IAQnC,SAAS,IAAI,yBAAyB;IAQtC,aAAa,IAAI,6BAA6B;IAQ9C,YAAY,IAAI,4BAA4B;IAQ5C,WAAW,IAAI,2BAA2B;IAQ1C,SAAS,IAAI,yBAAyB;CAOvC"}