@eleva-io/erp-sdk 0.1.1 → 0.1.3

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 (209) hide show
  1. package/dist/client/http.d.ts +1 -0
  2. package/dist/client/http.js +6 -0
  3. package/dist/client/resources/horizontal/api.d.ts +2 -2
  4. package/dist/client/resources/horizontal/api.js +3 -3
  5. package/dist/client/resources/horizontal/communities.d.ts +13 -0
  6. package/dist/client/resources/horizontal/communities.js +53 -0
  7. package/dist/client/resources/horizontal/types.d.ts +47 -0
  8. package/dist/client/resources/horizontal/types.js +2 -0
  9. package/dist/client/resources/ticketing/types.d.ts +0 -3
  10. package/dist/client/utils/crud.d.ts +22 -0
  11. package/dist/client/utils/crud.js +52 -0
  12. package/dist/erp.d.ts +15 -12
  13. package/dist/erp.d.ts.map +1 -0
  14. package/dist/erp.js +22 -21
  15. package/dist/erp.js.map +1 -0
  16. package/dist/index.d.ts +4 -4
  17. package/dist/index.d.ts.map +1 -0
  18. package/dist/index.js +5 -21
  19. package/dist/index.js.map +1 -0
  20. package/dist/modules/contacts/api.d.ts +9 -0
  21. package/dist/modules/contacts/api.d.ts.map +1 -0
  22. package/dist/modules/contacts/api.js +13 -0
  23. package/dist/modules/contacts/api.js.map +1 -0
  24. package/dist/modules/contacts/index.d.ts +3 -0
  25. package/dist/modules/contacts/index.d.ts.map +1 -0
  26. package/dist/modules/contacts/index.js +3 -0
  27. package/dist/modules/contacts/index.js.map +1 -0
  28. package/dist/modules/contacts/persons/api/addresses.d.ts +11 -0
  29. package/dist/modules/contacts/persons/api/addresses.d.ts.map +1 -0
  30. package/dist/modules/contacts/persons/api/addresses.js +23 -0
  31. package/dist/modules/contacts/persons/api/addresses.js.map +1 -0
  32. package/dist/modules/contacts/persons/api/index.d.ts +3 -0
  33. package/dist/modules/contacts/persons/api/index.d.ts.map +1 -0
  34. package/dist/modules/contacts/persons/api/index.js +3 -0
  35. package/dist/modules/contacts/persons/api/index.js.map +1 -0
  36. package/dist/modules/contacts/persons/api/persons.d.ts +10 -0
  37. package/dist/modules/contacts/persons/api/persons.d.ts.map +1 -0
  38. package/dist/modules/contacts/persons/api/persons.js +19 -0
  39. package/dist/modules/contacts/persons/api/persons.js.map +1 -0
  40. package/dist/modules/contacts/persons/index.d.ts +3 -0
  41. package/dist/modules/contacts/persons/index.d.ts.map +1 -0
  42. package/dist/modules/contacts/persons/index.js +3 -0
  43. package/dist/modules/contacts/persons/index.js.map +1 -0
  44. package/dist/modules/contacts/persons/types/address.d.ts +21 -0
  45. package/dist/modules/contacts/persons/types/address.d.ts.map +1 -0
  46. package/dist/modules/contacts/persons/types/address.js +2 -0
  47. package/dist/modules/contacts/persons/types/address.js.map +1 -0
  48. package/dist/modules/contacts/persons/types/index.d.ts +4 -0
  49. package/dist/modules/contacts/persons/types/index.d.ts.map +1 -0
  50. package/dist/modules/contacts/persons/types/index.js +4 -0
  51. package/dist/modules/contacts/persons/types/index.js.map +1 -0
  52. package/dist/modules/contacts/persons/types/person.d.ts +32 -0
  53. package/dist/modules/contacts/persons/types/person.d.ts.map +1 -0
  54. package/dist/modules/contacts/persons/types/person.js +6 -0
  55. package/dist/modules/contacts/persons/types/person.js.map +1 -0
  56. package/dist/modules/contacts/persons/types/person_address.d.ts +20 -0
  57. package/dist/modules/contacts/persons/types/person_address.d.ts.map +1 -0
  58. package/dist/modules/contacts/persons/types/person_address.js +2 -0
  59. package/dist/modules/contacts/persons/types/person_address.js.map +1 -0
  60. package/dist/modules/horizontal/api.d.ts +9 -0
  61. package/dist/modules/horizontal/api.d.ts.map +1 -0
  62. package/dist/modules/horizontal/api.js +13 -0
  63. package/dist/modules/horizontal/api.js.map +1 -0
  64. package/dist/modules/horizontal/communities/api/agents.d.ts +5 -0
  65. package/dist/modules/horizontal/communities/api/agents.d.ts.map +1 -0
  66. package/dist/modules/horizontal/communities/api/agents.js +4 -0
  67. package/dist/modules/horizontal/communities/api/agents.js.map +1 -0
  68. package/dist/modules/horizontal/communities/api/blocks.d.ts +10 -0
  69. package/dist/modules/horizontal/communities/api/blocks.d.ts.map +1 -0
  70. package/dist/modules/horizontal/communities/api/blocks.js +19 -0
  71. package/dist/modules/horizontal/communities/api/blocks.js.map +1 -0
  72. package/dist/modules/horizontal/communities/api/communities.d.ts +24 -0
  73. package/dist/modules/horizontal/communities/api/communities.d.ts.map +1 -0
  74. package/dist/modules/horizontal/communities/api/communities.js +75 -0
  75. package/dist/modules/horizontal/communities/api/communities.js.map +1 -0
  76. package/dist/modules/horizontal/communities/api/communities_config.d.ts +11 -0
  77. package/dist/modules/horizontal/communities/api/communities_config.d.ts.map +1 -0
  78. package/dist/modules/horizontal/communities/api/communities_config.js +32 -0
  79. package/dist/modules/horizontal/communities/api/communities_config.js.map +1 -0
  80. package/dist/modules/horizontal/communities/api/documents.d.ts +17 -0
  81. package/dist/modules/horizontal/communities/api/documents.d.ts.map +1 -0
  82. package/dist/modules/horizontal/communities/api/documents.js +35 -0
  83. package/dist/modules/horizontal/communities/api/documents.js.map +1 -0
  84. package/dist/modules/horizontal/communities/api/employees.d.ts +13 -0
  85. package/dist/modules/horizontal/communities/api/employees.d.ts.map +1 -0
  86. package/dist/modules/horizontal/communities/api/employees.js +24 -0
  87. package/dist/modules/horizontal/communities/api/employees.js.map +1 -0
  88. package/dist/modules/horizontal/communities/api/index.d.ts +11 -0
  89. package/dist/modules/horizontal/communities/api/index.d.ts.map +1 -0
  90. package/dist/modules/horizontal/communities/api/index.js +11 -0
  91. package/dist/modules/horizontal/communities/api/index.js.map +1 -0
  92. package/dist/modules/horizontal/communities/api/properties.d.ts +9 -0
  93. package/dist/modules/horizontal/communities/api/properties.d.ts.map +1 -0
  94. package/dist/modules/horizontal/communities/api/properties.js +21 -0
  95. package/dist/modules/horizontal/communities/api/properties.js.map +1 -0
  96. package/dist/modules/horizontal/communities/api/providers.d.ts +13 -0
  97. package/dist/modules/horizontal/communities/api/providers.d.ts.map +1 -0
  98. package/dist/modules/horizontal/communities/api/providers.js +24 -0
  99. package/dist/modules/horizontal/communities/api/providers.js.map +1 -0
  100. package/dist/modules/horizontal/communities/api/receipts.d.ts +20 -0
  101. package/dist/modules/horizontal/communities/api/receipts.d.ts.map +1 -0
  102. package/dist/modules/horizontal/communities/api/receipts.js +40 -0
  103. package/dist/modules/horizontal/communities/api/receipts.js.map +1 -0
  104. package/dist/modules/horizontal/communities/api/roles.d.ts +5 -0
  105. package/dist/modules/horizontal/communities/api/roles.d.ts.map +1 -0
  106. package/dist/modules/horizontal/communities/api/roles.js +4 -0
  107. package/dist/modules/horizontal/communities/api/roles.js.map +1 -0
  108. package/dist/modules/horizontal/communities/index.d.ts +3 -0
  109. package/dist/modules/horizontal/communities/index.d.ts.map +1 -0
  110. package/dist/modules/horizontal/communities/index.js +3 -0
  111. package/dist/modules/horizontal/communities/index.js.map +1 -0
  112. package/dist/modules/horizontal/communities/types/address.d.ts +25 -0
  113. package/dist/modules/horizontal/communities/types/address.d.ts.map +1 -0
  114. package/dist/modules/horizontal/communities/types/address.js +2 -0
  115. package/dist/modules/horizontal/communities/types/address.js.map +1 -0
  116. package/dist/modules/horizontal/communities/types/agent.d.ts +9 -0
  117. package/dist/modules/horizontal/communities/types/agent.d.ts.map +1 -0
  118. package/dist/modules/horizontal/communities/types/agent.js +2 -0
  119. package/dist/modules/horizontal/communities/types/agent.js.map +1 -0
  120. package/dist/modules/horizontal/communities/types/block.d.ts +20 -0
  121. package/dist/modules/horizontal/communities/types/block.d.ts.map +1 -0
  122. package/dist/modules/horizontal/communities/types/block.js +2 -0
  123. package/dist/modules/horizontal/communities/types/block.js.map +1 -0
  124. package/dist/modules/horizontal/communities/types/community.d.ts +34 -0
  125. package/dist/modules/horizontal/communities/types/community.d.ts.map +1 -0
  126. package/dist/modules/horizontal/communities/types/community.js +2 -0
  127. package/dist/modules/horizontal/communities/types/community.js.map +1 -0
  128. package/dist/modules/horizontal/communities/types/community_config.d.ts +16 -0
  129. package/dist/modules/horizontal/communities/types/community_config.d.ts.map +1 -0
  130. package/dist/modules/horizontal/communities/types/community_config.js +2 -0
  131. package/dist/modules/horizontal/communities/types/community_config.js.map +1 -0
  132. package/dist/modules/horizontal/communities/types/document.d.ts +42 -0
  133. package/dist/modules/horizontal/communities/types/document.d.ts.map +1 -0
  134. package/dist/modules/horizontal/communities/types/document.js +23 -0
  135. package/dist/modules/horizontal/communities/types/document.js.map +1 -0
  136. package/dist/modules/horizontal/communities/types/employee.d.ts +40 -0
  137. package/dist/modules/horizontal/communities/types/employee.d.ts.map +1 -0
  138. package/dist/modules/horizontal/communities/types/employee.js +29 -0
  139. package/dist/modules/horizontal/communities/types/employee.js.map +1 -0
  140. package/dist/modules/horizontal/communities/types/index.d.ts +10 -0
  141. package/dist/modules/horizontal/communities/types/index.d.ts.map +1 -0
  142. package/dist/modules/horizontal/communities/types/index.js +10 -0
  143. package/dist/modules/horizontal/communities/types/index.js.map +1 -0
  144. package/dist/modules/horizontal/communities/types/property.d.ts +45 -0
  145. package/dist/modules/horizontal/communities/types/property.d.ts.map +1 -0
  146. package/dist/modules/horizontal/communities/types/property.js +15 -0
  147. package/dist/modules/horizontal/communities/types/property.js.map +1 -0
  148. package/dist/modules/horizontal/communities/types/provider.d.ts +40 -0
  149. package/dist/modules/horizontal/communities/types/provider.d.ts.map +1 -0
  150. package/dist/modules/horizontal/communities/types/provider.js +29 -0
  151. package/dist/modules/horizontal/communities/types/provider.js.map +1 -0
  152. package/dist/modules/horizontal/communities/types/receipt.d.ts +63 -0
  153. package/dist/modules/horizontal/communities/types/receipt.d.ts.map +1 -0
  154. package/dist/modules/horizontal/communities/types/receipt.js +16 -0
  155. package/dist/modules/horizontal/communities/types/receipt.js.map +1 -0
  156. package/dist/modules/horizontal/communities/types/roles.d.ts +12 -0
  157. package/dist/modules/horizontal/communities/types/roles.d.ts.map +1 -0
  158. package/dist/modules/horizontal/communities/types/roles.js +2 -0
  159. package/dist/modules/horizontal/communities/types/roles.js.map +1 -0
  160. package/dist/modules/horizontal/communities/types/tag.d.ts +2 -0
  161. package/dist/modules/horizontal/communities/types/tag.d.ts.map +1 -0
  162. package/dist/modules/horizontal/communities/types/tag.js +2 -0
  163. package/dist/modules/horizontal/communities/types/tag.js.map +1 -0
  164. package/dist/modules/horizontal/index.d.ts +3 -0
  165. package/dist/modules/horizontal/index.d.ts.map +1 -0
  166. package/dist/modules/horizontal/index.js +3 -0
  167. package/dist/modules/horizontal/index.js.map +1 -0
  168. package/dist/modules/index.d.ts +4 -0
  169. package/dist/modules/index.d.ts.map +1 -0
  170. package/dist/modules/index.js +4 -0
  171. package/dist/modules/index.js.map +1 -0
  172. package/dist/modules/ticketing/api.d.ts +18 -0
  173. package/dist/modules/ticketing/api.d.ts.map +1 -0
  174. package/dist/modules/ticketing/api.js +42 -0
  175. package/dist/modules/ticketing/api.js.map +1 -0
  176. package/dist/modules/ticketing/index.d.ts +3 -0
  177. package/dist/modules/ticketing/index.d.ts.map +1 -0
  178. package/dist/modules/ticketing/index.js +3 -0
  179. package/dist/modules/ticketing/index.js.map +1 -0
  180. package/dist/modules/ticketing/types.d.ts +59 -0
  181. package/dist/modules/ticketing/types.d.ts.map +1 -0
  182. package/dist/modules/ticketing/types.js +22 -0
  183. package/dist/modules/ticketing/types.js.map +1 -0
  184. package/dist/tasks/std.d.ts +3 -3
  185. package/dist/types.d.ts +1 -5
  186. package/dist/types.d.ts.map +1 -0
  187. package/dist/types.js +2 -2
  188. package/dist/types.js.map +1 -0
  189. package/dist/utils/crud.d.ts +26 -0
  190. package/dist/utils/crud.d.ts.map +1 -0
  191. package/dist/utils/crud.js +68 -0
  192. package/dist/utils/crud.js.map +1 -0
  193. package/dist/utils/http.d.ts +19 -0
  194. package/dist/utils/http.d.ts.map +1 -0
  195. package/dist/utils/http.js +108 -0
  196. package/dist/utils/http.js.map +1 -0
  197. package/dist/utils/index.d.ts +4 -0
  198. package/dist/utils/index.d.ts.map +1 -0
  199. package/dist/utils/index.js +4 -0
  200. package/dist/utils/index.js.map +1 -0
  201. package/dist/utils/signature.d.ts +6 -0
  202. package/dist/utils/signature.d.ts.map +1 -0
  203. package/dist/utils/signature.js +14 -0
  204. package/dist/utils/signature.js.map +1 -0
  205. package/dist/utils/types.d.ts +7 -0
  206. package/dist/utils/types.d.ts.map +1 -0
  207. package/dist/utils/types.js +2 -0
  208. package/dist/utils/types.js.map +1 -0
  209. package/package.json +8 -6
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/utils/http.ts"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,WAAW,MAAM,aAAa,CAAC;AACtC,OAAO,IAAI,MAAM,YAAY,CAAC;AAQ9B,MAAM,OAAO,UAAU;IAGD;IAFZ,OAAO,CAAgB;IAE/B,YAAoB,OAAyB;QAAzB,YAAO,GAAP,OAAO,CAAkB;QAC3C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC;YAC1B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO;YAC7B,OAAO,EAAE;gBACP,cAAc,EAAE,kBAAkB;aACnC;SACF,CAAC,CAAC;QAEH,oDAAoD;QACpD,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE;YAC/C,IAAI,IAAI,GAAG,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YAE7B,IAAI,MAAM,CAAC,IAAI,YAAY,QAAQ,EAAE,CAAC;gBACpC,IAAI,GAAG,EAAE,CAAC;gBAEV,oFAAoF;gBACpF,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;oBACnB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;gBACxC,CAAC;YACH,CAAC;YAED,MAAM,aAAa,GAAG,iBAAiB,CACrC,IAAI,EACJ,IAAI,CAAC,OAAO,CAAC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AI,CAAC,OAAO,CAAC,IAAI,CAAiB,IAAI,EAAE,QAAQ,EAAE;YACvE,MAAM;SACP,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ export * from "./http";
2
+ export * from "./signature";
3
+ export * from "./crud";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./http";
2
+ export * from "./signature";
3
+ export * from "./crud";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,6 @@
1
+ export interface SignatureData {
2
+ signature: string;
3
+ timestamp: number;
4
+ }
5
+ export declare function generateSignature(body: unknown, apiKey: string, apiSecret: string): SignatureData;
6
+ //# sourceMappingURL=signature.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["../../src/utils/signature.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,GAChB,aAAa,CAaf"}
@@ -0,0 +1,14 @@
1
+ import crypto from "crypto";
2
+ export function generateSignature(body, apiKey, apiSecret) {
3
+ const bodyStr = JSON.stringify(body, null, 0) || "";
4
+ const timestamp = Date.now();
5
+ const signature = crypto
6
+ .createHmac("sha256", apiSecret)
7
+ .update(`${bodyStr}:${timestamp}:${apiKey}`)
8
+ .digest("hex");
9
+ return {
10
+ signature,
11
+ timestamp,
12
+ };
13
+ }
14
+ //# sourceMappingURL=signature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signature.js","sourceRoot":"","sources":["../../src/utils/signature.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAO5B,MAAM,UAAU,iBAAiB,CAC/B,IAAa,EACb,MAAc,EACd,SAAiB;IAEjB,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;IACpD,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,MAAM,SAAS,GAAG,MAAM;SACrB,UAAU,CAAC,QAAQ,EAAE,SAAS,CAAC;SAC/B,MAAM,CAAC,GAAG,OAAO,IAAI,SAAS,IAAI,MAAM,EAAE,CAAC;SAC3C,MAAM,CAAC,KAAK,CAAC,CAAC;IAEjB,OAAO;QACL,SAAS;QACT,SAAS;KACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,7 @@
1
+ export interface PaginatedResponse<T> {
2
+ items: T[];
3
+ total: number;
4
+ page: number;
5
+ perPage: number;
6
+ }
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/utils/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eleva-io/erp-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "SDK oficial para el ERP de Eleva",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,13 +16,15 @@
16
16
  "author": "Eleva",
17
17
  "license": "MIT",
18
18
  "devDependencies": {
19
- "@types/node": "^20.0.0",
20
- "dotenv": "^16.4.5",
21
- "tsx": "^4.19.3",
22
- "typescript": "^5.0.0"
19
+ "@types/mime-types": "3.0.1",
20
+ "@types/node": "^20.19.1",
21
+ "dotenv": "^16.5.0",
22
+ "tsx": "^4.20.3",
23
+ "typescript": "^5.8.3"
23
24
  },
24
25
  "dependencies": {
25
- "axios": "^1.6.0",
26
+ "axios": "^1.10.0",
27
+ "mime-types": "3.0.1",
26
28
  "moment": "2.30.1"
27
29
  },
28
30
  "publishConfig": {