@voyantjs/crm 0.80.2 → 0.80.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../src/routes/accounts.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAsBjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAKD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA8TtB,CAAA"}
|
package/dist/routes/accounts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parseJsonBody, parseQuery, requireUserId } from "@voyantjs/hono";
|
|
1
|
+
import { idempotencyKey, parseJsonBody, parseQuery, requireUserId } from "@voyantjs/hono";
|
|
2
2
|
import { insertAddressSchema, insertContactPointSchema, updateAddressSchema, updateContactPointSchema, } from "@voyantjs/identity/validation";
|
|
3
3
|
import { Hono } from "hono";
|
|
4
4
|
import { crmService } from "../service/index.js";
|
|
@@ -11,7 +11,7 @@ export const accountRoutes = new Hono()
|
|
|
11
11
|
const query = parseQuery(c, organizationListQuerySchema);
|
|
12
12
|
return c.json(await crmService.listOrganizations(c.get("db"), query));
|
|
13
13
|
})
|
|
14
|
-
.post("/organizations", async (c) => {
|
|
14
|
+
.post("/organizations", idempotencyKey({ scope: "POST /v1/admin/crm/organizations" }), async (c) => {
|
|
15
15
|
return c.json({
|
|
16
16
|
data: await crmService.createOrganization(c.get("db"), await parseJsonBody(c, insertOrganizationSchema)),
|
|
17
17
|
}, 201);
|
|
@@ -84,7 +84,7 @@ export const accountRoutes = new Hono()
|
|
|
84
84
|
const query = parseQuery(c, personListQuerySchema);
|
|
85
85
|
return c.json(await crmService.listPeople(c.get("db"), query));
|
|
86
86
|
})
|
|
87
|
-
.post("/people", async (c) => {
|
|
87
|
+
.post("/people", idempotencyKey({ scope: "POST /v1/admin/crm/people" }), async (c) => {
|
|
88
88
|
return c.json({
|
|
89
89
|
data: await crmService.createPerson(c.get("db"), await parseJsonBody(c, insertPersonSchema)),
|
|
90
90
|
}, 201);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyantjs/crm",
|
|
3
|
-
"version": "0.80.
|
|
3
|
+
"version": "0.80.3",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"drizzle-orm": "^0.45.2",
|
|
40
40
|
"hono": "^4.12.10",
|
|
41
41
|
"zod": "^4.3.6",
|
|
42
|
-
"@voyantjs/action-ledger": "0.80.
|
|
43
|
-
"@voyantjs/core": "0.80.
|
|
44
|
-
"@voyantjs/db": "0.80.
|
|
45
|
-
"@voyantjs/hono": "0.80.
|
|
46
|
-
"@voyantjs/identity": "0.80.
|
|
47
|
-
"@voyantjs/utils": "0.80.
|
|
42
|
+
"@voyantjs/action-ledger": "0.80.3",
|
|
43
|
+
"@voyantjs/core": "0.80.3",
|
|
44
|
+
"@voyantjs/db": "0.80.3",
|
|
45
|
+
"@voyantjs/hono": "0.80.3",
|
|
46
|
+
"@voyantjs/identity": "0.80.3",
|
|
47
|
+
"@voyantjs/utils": "0.80.3"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"typescript": "^6.0.2",
|