@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.
- package/dist/client/http.d.ts +1 -0
- package/dist/client/http.js +6 -0
- package/dist/client/resources/horizontal/api.d.ts +2 -2
- package/dist/client/resources/horizontal/api.js +3 -3
- package/dist/client/resources/horizontal/communities.d.ts +13 -0
- package/dist/client/resources/horizontal/communities.js +53 -0
- package/dist/client/resources/horizontal/types.d.ts +47 -0
- package/dist/client/resources/horizontal/types.js +2 -0
- package/dist/client/resources/ticketing/types.d.ts +0 -3
- package/dist/client/utils/crud.d.ts +22 -0
- package/dist/client/utils/crud.js +52 -0
- package/dist/erp.d.ts +15 -12
- package/dist/erp.d.ts.map +1 -0
- package/dist/erp.js +22 -21
- package/dist/erp.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -21
- package/dist/index.js.map +1 -0
- package/dist/modules/contacts/api.d.ts +9 -0
- package/dist/modules/contacts/api.d.ts.map +1 -0
- package/dist/modules/contacts/api.js +13 -0
- package/dist/modules/contacts/api.js.map +1 -0
- package/dist/modules/contacts/index.d.ts +3 -0
- package/dist/modules/contacts/index.d.ts.map +1 -0
- package/dist/modules/contacts/index.js +3 -0
- package/dist/modules/contacts/index.js.map +1 -0
- package/dist/modules/contacts/persons/api/addresses.d.ts +11 -0
- package/dist/modules/contacts/persons/api/addresses.d.ts.map +1 -0
- package/dist/modules/contacts/persons/api/addresses.js +23 -0
- package/dist/modules/contacts/persons/api/addresses.js.map +1 -0
- package/dist/modules/contacts/persons/api/index.d.ts +3 -0
- package/dist/modules/contacts/persons/api/index.d.ts.map +1 -0
- package/dist/modules/contacts/persons/api/index.js +3 -0
- package/dist/modules/contacts/persons/api/index.js.map +1 -0
- package/dist/modules/contacts/persons/api/persons.d.ts +10 -0
- package/dist/modules/contacts/persons/api/persons.d.ts.map +1 -0
- package/dist/modules/contacts/persons/api/persons.js +19 -0
- package/dist/modules/contacts/persons/api/persons.js.map +1 -0
- package/dist/modules/contacts/persons/index.d.ts +3 -0
- package/dist/modules/contacts/persons/index.d.ts.map +1 -0
- package/dist/modules/contacts/persons/index.js +3 -0
- package/dist/modules/contacts/persons/index.js.map +1 -0
- package/dist/modules/contacts/persons/types/address.d.ts +21 -0
- package/dist/modules/contacts/persons/types/address.d.ts.map +1 -0
- package/dist/modules/contacts/persons/types/address.js +2 -0
- package/dist/modules/contacts/persons/types/address.js.map +1 -0
- package/dist/modules/contacts/persons/types/index.d.ts +4 -0
- package/dist/modules/contacts/persons/types/index.d.ts.map +1 -0
- package/dist/modules/contacts/persons/types/index.js +4 -0
- package/dist/modules/contacts/persons/types/index.js.map +1 -0
- package/dist/modules/contacts/persons/types/person.d.ts +32 -0
- package/dist/modules/contacts/persons/types/person.d.ts.map +1 -0
- package/dist/modules/contacts/persons/types/person.js +6 -0
- package/dist/modules/contacts/persons/types/person.js.map +1 -0
- package/dist/modules/contacts/persons/types/person_address.d.ts +20 -0
- package/dist/modules/contacts/persons/types/person_address.d.ts.map +1 -0
- package/dist/modules/contacts/persons/types/person_address.js +2 -0
- package/dist/modules/contacts/persons/types/person_address.js.map +1 -0
- package/dist/modules/horizontal/api.d.ts +9 -0
- package/dist/modules/horizontal/api.d.ts.map +1 -0
- package/dist/modules/horizontal/api.js +13 -0
- package/dist/modules/horizontal/api.js.map +1 -0
- package/dist/modules/horizontal/communities/api/agents.d.ts +5 -0
- package/dist/modules/horizontal/communities/api/agents.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/agents.js +4 -0
- package/dist/modules/horizontal/communities/api/agents.js.map +1 -0
- package/dist/modules/horizontal/communities/api/blocks.d.ts +10 -0
- package/dist/modules/horizontal/communities/api/blocks.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/blocks.js +19 -0
- package/dist/modules/horizontal/communities/api/blocks.js.map +1 -0
- package/dist/modules/horizontal/communities/api/communities.d.ts +24 -0
- package/dist/modules/horizontal/communities/api/communities.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/communities.js +75 -0
- package/dist/modules/horizontal/communities/api/communities.js.map +1 -0
- package/dist/modules/horizontal/communities/api/communities_config.d.ts +11 -0
- package/dist/modules/horizontal/communities/api/communities_config.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/communities_config.js +32 -0
- package/dist/modules/horizontal/communities/api/communities_config.js.map +1 -0
- package/dist/modules/horizontal/communities/api/documents.d.ts +17 -0
- package/dist/modules/horizontal/communities/api/documents.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/documents.js +35 -0
- package/dist/modules/horizontal/communities/api/documents.js.map +1 -0
- package/dist/modules/horizontal/communities/api/employees.d.ts +13 -0
- package/dist/modules/horizontal/communities/api/employees.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/employees.js +24 -0
- package/dist/modules/horizontal/communities/api/employees.js.map +1 -0
- package/dist/modules/horizontal/communities/api/index.d.ts +11 -0
- package/dist/modules/horizontal/communities/api/index.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/index.js +11 -0
- package/dist/modules/horizontal/communities/api/index.js.map +1 -0
- package/dist/modules/horizontal/communities/api/properties.d.ts +9 -0
- package/dist/modules/horizontal/communities/api/properties.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/properties.js +21 -0
- package/dist/modules/horizontal/communities/api/properties.js.map +1 -0
- package/dist/modules/horizontal/communities/api/providers.d.ts +13 -0
- package/dist/modules/horizontal/communities/api/providers.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/providers.js +24 -0
- package/dist/modules/horizontal/communities/api/providers.js.map +1 -0
- package/dist/modules/horizontal/communities/api/receipts.d.ts +20 -0
- package/dist/modules/horizontal/communities/api/receipts.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/receipts.js +40 -0
- package/dist/modules/horizontal/communities/api/receipts.js.map +1 -0
- package/dist/modules/horizontal/communities/api/roles.d.ts +5 -0
- package/dist/modules/horizontal/communities/api/roles.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/api/roles.js +4 -0
- package/dist/modules/horizontal/communities/api/roles.js.map +1 -0
- package/dist/modules/horizontal/communities/index.d.ts +3 -0
- package/dist/modules/horizontal/communities/index.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/index.js +3 -0
- package/dist/modules/horizontal/communities/index.js.map +1 -0
- package/dist/modules/horizontal/communities/types/address.d.ts +25 -0
- package/dist/modules/horizontal/communities/types/address.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/address.js +2 -0
- package/dist/modules/horizontal/communities/types/address.js.map +1 -0
- package/dist/modules/horizontal/communities/types/agent.d.ts +9 -0
- package/dist/modules/horizontal/communities/types/agent.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/agent.js +2 -0
- package/dist/modules/horizontal/communities/types/agent.js.map +1 -0
- package/dist/modules/horizontal/communities/types/block.d.ts +20 -0
- package/dist/modules/horizontal/communities/types/block.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/block.js +2 -0
- package/dist/modules/horizontal/communities/types/block.js.map +1 -0
- package/dist/modules/horizontal/communities/types/community.d.ts +34 -0
- package/dist/modules/horizontal/communities/types/community.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/community.js +2 -0
- package/dist/modules/horizontal/communities/types/community.js.map +1 -0
- package/dist/modules/horizontal/communities/types/community_config.d.ts +16 -0
- package/dist/modules/horizontal/communities/types/community_config.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/community_config.js +2 -0
- package/dist/modules/horizontal/communities/types/community_config.js.map +1 -0
- package/dist/modules/horizontal/communities/types/document.d.ts +42 -0
- package/dist/modules/horizontal/communities/types/document.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/document.js +23 -0
- package/dist/modules/horizontal/communities/types/document.js.map +1 -0
- package/dist/modules/horizontal/communities/types/employee.d.ts +40 -0
- package/dist/modules/horizontal/communities/types/employee.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/employee.js +29 -0
- package/dist/modules/horizontal/communities/types/employee.js.map +1 -0
- package/dist/modules/horizontal/communities/types/index.d.ts +10 -0
- package/dist/modules/horizontal/communities/types/index.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/index.js +10 -0
- package/dist/modules/horizontal/communities/types/index.js.map +1 -0
- package/dist/modules/horizontal/communities/types/property.d.ts +45 -0
- package/dist/modules/horizontal/communities/types/property.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/property.js +15 -0
- package/dist/modules/horizontal/communities/types/property.js.map +1 -0
- package/dist/modules/horizontal/communities/types/provider.d.ts +40 -0
- package/dist/modules/horizontal/communities/types/provider.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/provider.js +29 -0
- package/dist/modules/horizontal/communities/types/provider.js.map +1 -0
- package/dist/modules/horizontal/communities/types/receipt.d.ts +63 -0
- package/dist/modules/horizontal/communities/types/receipt.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/receipt.js +16 -0
- package/dist/modules/horizontal/communities/types/receipt.js.map +1 -0
- package/dist/modules/horizontal/communities/types/roles.d.ts +12 -0
- package/dist/modules/horizontal/communities/types/roles.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/roles.js +2 -0
- package/dist/modules/horizontal/communities/types/roles.js.map +1 -0
- package/dist/modules/horizontal/communities/types/tag.d.ts +2 -0
- package/dist/modules/horizontal/communities/types/tag.d.ts.map +1 -0
- package/dist/modules/horizontal/communities/types/tag.js +2 -0
- package/dist/modules/horizontal/communities/types/tag.js.map +1 -0
- package/dist/modules/horizontal/index.d.ts +3 -0
- package/dist/modules/horizontal/index.d.ts.map +1 -0
- package/dist/modules/horizontal/index.js +3 -0
- package/dist/modules/horizontal/index.js.map +1 -0
- package/dist/modules/index.d.ts +4 -0
- package/dist/modules/index.d.ts.map +1 -0
- package/dist/modules/index.js +4 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/ticketing/api.d.ts +18 -0
- package/dist/modules/ticketing/api.d.ts.map +1 -0
- package/dist/modules/ticketing/api.js +42 -0
- package/dist/modules/ticketing/api.js.map +1 -0
- package/dist/modules/ticketing/index.d.ts +3 -0
- package/dist/modules/ticketing/index.d.ts.map +1 -0
- package/dist/modules/ticketing/index.js +3 -0
- package/dist/modules/ticketing/index.js.map +1 -0
- package/dist/modules/ticketing/types.d.ts +59 -0
- package/dist/modules/ticketing/types.d.ts.map +1 -0
- package/dist/modules/ticketing/types.js +22 -0
- package/dist/modules/ticketing/types.js.map +1 -0
- package/dist/tasks/std.d.ts +3 -3
- package/dist/types.d.ts +1 -5
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -2
- package/dist/types.js.map +1 -0
- package/dist/utils/crud.d.ts +26 -0
- package/dist/utils/crud.d.ts.map +1 -0
- package/dist/utils/crud.js +68 -0
- package/dist/utils/crud.js.map +1 -0
- package/dist/utils/http.d.ts +19 -0
- package/dist/utils/http.d.ts.map +1 -0
- package/dist/utils/http.js +108 -0
- package/dist/utils/http.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/signature.d.ts +6 -0
- package/dist/utils/signature.d.ts.map +1 -0
- package/dist/utils/signature.js +14 -0
- package/dist/utils/signature.js.map +1 -0
- package/dist/utils/types.d.ts +7 -0
- package/dist/utils/types.d.ts.map +1 -0
- package/dist/utils/types.js +2 -0
- package/dist/utils/types.js.map +1 -0
- 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,UA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ACvC,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE;YAC5C,MAAM;YACN,YAAY,EAAE,aAAa;SAC5B,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,UAAU,CACd,IAAY,EACZ,QAAgB,EAChB,QAAyB,EACzB,YAAoB,MAAM,EAC1B,MAAgC;QAEhC,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;QAErD,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE;YAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,EAAE;SACvC,CAAC,CAAC;QAEH,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAE3C,MAAM,QAAQ,GAAG,MAAM,IAAI,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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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.
|
|
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/
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
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.
|
|
26
|
+
"axios": "^1.10.0",
|
|
27
|
+
"mime-types": "3.0.1",
|
|
26
28
|
"moment": "2.30.1"
|
|
27
29
|
},
|
|
28
30
|
"publishConfig": {
|