@voyantjs/crm 0.19.0 → 0.21.0
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/routes/accounts.d.ts +138 -0
- package/dist/routes/accounts.d.ts.map +1 -1
- package/dist/routes/accounts.js +25 -1
- package/dist/routes/index.d.ts +138 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/schema-accounts.d.ts +237 -0
- package/dist/schema-accounts.d.ts.map +1 -1
- package/dist/schema-accounts.js +34 -1
- package/dist/service/accounts-organizations.d.ts +4 -0
- package/dist/service/accounts-organizations.d.ts.map +1 -1
- package/dist/service/accounts-people.d.ts +399 -0
- package/dist/service/accounts-people.d.ts.map +1 -1
- package/dist/service/accounts-people.js +58 -1
- package/dist/service/accounts-shared.d.ts +2 -0
- package/dist/service/accounts-shared.d.ts.map +1 -1
- package/dist/service/accounts-shared.js +2 -0
- package/dist/service/accounts.d.ts +402 -0
- package/dist/service/accounts.d.ts.map +1 -1
- package/dist/service/index.d.ts +402 -0
- package/dist/service/index.d.ts.map +1 -1
- package/dist/validation.d.ts +60 -0
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js +22 -0
- package/package.json +5 -5
|
@@ -15,6 +15,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
15
15
|
name: string;
|
|
16
16
|
legalName: string | null;
|
|
17
17
|
website: string | null;
|
|
18
|
+
vatNumber: string | null;
|
|
18
19
|
industry: string | null;
|
|
19
20
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
20
21
|
ownerId: string | null;
|
|
@@ -54,6 +55,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
54
55
|
notes: string | null;
|
|
55
56
|
website: string | null;
|
|
56
57
|
legalName: string | null;
|
|
58
|
+
vatNumber: string | null;
|
|
57
59
|
industry: string | null;
|
|
58
60
|
ownerId: string | null;
|
|
59
61
|
defaultCurrency: string | null;
|
|
@@ -93,6 +95,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
93
95
|
name: string;
|
|
94
96
|
legalName: string | null;
|
|
95
97
|
website: string | null;
|
|
98
|
+
vatNumber: string | null;
|
|
96
99
|
industry: string | null;
|
|
97
100
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
98
101
|
ownerId: string | null;
|
|
@@ -138,6 +141,7 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
138
141
|
name: string;
|
|
139
142
|
legalName: string | null;
|
|
140
143
|
website: string | null;
|
|
144
|
+
vatNumber: string | null;
|
|
141
145
|
industry: string | null;
|
|
142
146
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
143
147
|
ownerId: string | null;
|
|
@@ -438,7 +442,9 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
438
442
|
id: string;
|
|
439
443
|
organizationId: string | null;
|
|
440
444
|
firstName: string;
|
|
445
|
+
middleName: string | null;
|
|
441
446
|
lastName: string;
|
|
447
|
+
gender: string | null;
|
|
442
448
|
jobTitle: string | null;
|
|
443
449
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
444
450
|
preferredLanguage: string | null;
|
|
@@ -474,7 +480,9 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
474
480
|
id: string;
|
|
475
481
|
organizationId: string | null;
|
|
476
482
|
firstName: string;
|
|
483
|
+
middleName: string | null;
|
|
477
484
|
lastName: string;
|
|
485
|
+
gender: string | null;
|
|
478
486
|
jobTitle: string | null;
|
|
479
487
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
480
488
|
preferredLanguage: string | null;
|
|
@@ -522,7 +530,9 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
522
530
|
id: string;
|
|
523
531
|
organizationId: string | null;
|
|
524
532
|
firstName: string;
|
|
533
|
+
middleName: string | null;
|
|
525
534
|
lastName: string;
|
|
535
|
+
gender: string | null;
|
|
526
536
|
jobTitle: string | null;
|
|
527
537
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
528
538
|
preferredLanguage: string | null;
|
|
@@ -570,7 +580,9 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
570
580
|
id: string;
|
|
571
581
|
organizationId: string | null;
|
|
572
582
|
firstName: string;
|
|
583
|
+
middleName: string | null;
|
|
573
584
|
lastName: string;
|
|
585
|
+
gender: string | null;
|
|
574
586
|
jobTitle: string | null;
|
|
575
587
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
576
588
|
preferredLanguage: string | null;
|
|
@@ -865,6 +877,132 @@ export declare const accountRoutes: import("hono/hono-base").HonoBase<Env, {
|
|
|
865
877
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
866
878
|
};
|
|
867
879
|
};
|
|
880
|
+
} & {
|
|
881
|
+
"/people/:id/payment-methods": {
|
|
882
|
+
$get: {
|
|
883
|
+
input: {
|
|
884
|
+
param: {
|
|
885
|
+
id: string;
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
output: {
|
|
889
|
+
data: {
|
|
890
|
+
id: string;
|
|
891
|
+
personId: string;
|
|
892
|
+
brand: string;
|
|
893
|
+
last4: string | null;
|
|
894
|
+
holderName: string | null;
|
|
895
|
+
expMonth: number | null;
|
|
896
|
+
expYear: number | null;
|
|
897
|
+
processorToken: string;
|
|
898
|
+
isDefault: boolean;
|
|
899
|
+
createdAt: string;
|
|
900
|
+
}[];
|
|
901
|
+
};
|
|
902
|
+
outputFormat: "json";
|
|
903
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
} & {
|
|
907
|
+
"/people/:id/payment-methods": {
|
|
908
|
+
$post: {
|
|
909
|
+
input: {
|
|
910
|
+
param: {
|
|
911
|
+
id: string;
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
output: {
|
|
915
|
+
error: string;
|
|
916
|
+
};
|
|
917
|
+
outputFormat: "json";
|
|
918
|
+
status: 404;
|
|
919
|
+
} | {
|
|
920
|
+
input: {
|
|
921
|
+
param: {
|
|
922
|
+
id: string;
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
output: {
|
|
926
|
+
data: {
|
|
927
|
+
id: string;
|
|
928
|
+
brand: string;
|
|
929
|
+
createdAt: string;
|
|
930
|
+
personId: string;
|
|
931
|
+
last4: string | null;
|
|
932
|
+
holderName: string | null;
|
|
933
|
+
expMonth: number | null;
|
|
934
|
+
expYear: number | null;
|
|
935
|
+
processorToken: string;
|
|
936
|
+
isDefault: boolean;
|
|
937
|
+
};
|
|
938
|
+
};
|
|
939
|
+
outputFormat: "json";
|
|
940
|
+
status: 201;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
} & {
|
|
944
|
+
"/person-payment-methods/:id": {
|
|
945
|
+
$patch: {
|
|
946
|
+
input: {
|
|
947
|
+
param: {
|
|
948
|
+
id: string;
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
output: {
|
|
952
|
+
error: string;
|
|
953
|
+
};
|
|
954
|
+
outputFormat: "json";
|
|
955
|
+
status: 404;
|
|
956
|
+
} | {
|
|
957
|
+
input: {
|
|
958
|
+
param: {
|
|
959
|
+
id: string;
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
output: {
|
|
963
|
+
data: {
|
|
964
|
+
id: string;
|
|
965
|
+
personId: string;
|
|
966
|
+
brand: string;
|
|
967
|
+
last4: string | null;
|
|
968
|
+
holderName: string | null;
|
|
969
|
+
expMonth: number | null;
|
|
970
|
+
expYear: number | null;
|
|
971
|
+
processorToken: string;
|
|
972
|
+
isDefault: boolean;
|
|
973
|
+
createdAt: string;
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
outputFormat: "json";
|
|
977
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
978
|
+
};
|
|
979
|
+
};
|
|
980
|
+
} & {
|
|
981
|
+
"/person-payment-methods/:id": {
|
|
982
|
+
$delete: {
|
|
983
|
+
input: {
|
|
984
|
+
param: {
|
|
985
|
+
id: string;
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
output: {
|
|
989
|
+
error: string;
|
|
990
|
+
};
|
|
991
|
+
outputFormat: "json";
|
|
992
|
+
status: 404;
|
|
993
|
+
} | {
|
|
994
|
+
input: {
|
|
995
|
+
param: {
|
|
996
|
+
id: string;
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
output: {
|
|
1000
|
+
success: true;
|
|
1001
|
+
};
|
|
1002
|
+
outputFormat: "json";
|
|
1003
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
868
1006
|
} & {
|
|
869
1007
|
"/people/:id/communications": {
|
|
870
1008
|
$get: {
|
|
@@ -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;
|
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA0TtB,CAAA"}
|
package/dist/routes/accounts.js
CHANGED
|
@@ -2,7 +2,7 @@ import { 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";
|
|
5
|
-
import { communicationListQuerySchema, insertCommunicationLogSchema, insertOrganizationNoteSchema, insertOrganizationSchema, insertPersonNoteSchema, insertPersonSchema, insertSegmentSchema, organizationListQuerySchema, personListQuerySchema, updateOrganizationNoteSchema, updateOrganizationSchema, updatePersonNoteSchema, updatePersonSchema, } from "../validation.js";
|
|
5
|
+
import { communicationListQuerySchema, insertCommunicationLogSchema, insertOrganizationNoteSchema, insertOrganizationSchema, insertPersonNoteSchema, insertPersonPaymentMethodSchema, insertPersonSchema, insertSegmentSchema, organizationListQuerySchema, personListQuerySchema, updateOrganizationNoteSchema, updateOrganizationSchema, updatePersonNoteSchema, updatePersonPaymentMethodSchema, updatePersonSchema, } from "../validation.js";
|
|
6
6
|
const organizationEntity = "organization";
|
|
7
7
|
const personEntity = "person";
|
|
8
8
|
export const accountRoutes = new Hono()
|
|
@@ -151,6 +151,30 @@ export const accountRoutes = new Hono()
|
|
|
151
151
|
if (!row)
|
|
152
152
|
return c.json({ error: "Note not found" }, 404);
|
|
153
153
|
return c.json({ success: true });
|
|
154
|
+
})
|
|
155
|
+
// Payment methods on file for a person.
|
|
156
|
+
.get("/people/:id/payment-methods", async (c) => {
|
|
157
|
+
return c.json({
|
|
158
|
+
data: await crmService.listPersonPaymentMethods(c.get("db"), c.req.param("id")),
|
|
159
|
+
});
|
|
160
|
+
})
|
|
161
|
+
.post("/people/:id/payment-methods", async (c) => {
|
|
162
|
+
const row = await crmService.createPersonPaymentMethod(c.get("db"), c.req.param("id"), await parseJsonBody(c, insertPersonPaymentMethodSchema));
|
|
163
|
+
if (!row)
|
|
164
|
+
return c.json({ error: "Person not found" }, 404);
|
|
165
|
+
return c.json({ data: row }, 201);
|
|
166
|
+
})
|
|
167
|
+
.patch("/person-payment-methods/:id", async (c) => {
|
|
168
|
+
const row = await crmService.updatePersonPaymentMethod(c.get("db"), c.req.param("id"), await parseJsonBody(c, updatePersonPaymentMethodSchema));
|
|
169
|
+
if (!row)
|
|
170
|
+
return c.json({ error: "Payment method not found" }, 404);
|
|
171
|
+
return c.json({ data: row });
|
|
172
|
+
})
|
|
173
|
+
.delete("/person-payment-methods/:id", async (c) => {
|
|
174
|
+
const row = await crmService.deletePersonPaymentMethod(c.get("db"), c.req.param("id"));
|
|
175
|
+
if (!row)
|
|
176
|
+
return c.json({ error: "Payment method not found" }, 404);
|
|
177
|
+
return c.json({ success: true });
|
|
154
178
|
})
|
|
155
179
|
.get("/people/:id/communications", async (c) => {
|
|
156
180
|
const query = parseQuery(c, communicationListQuerySchema);
|
package/dist/routes/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
15
15
|
name: string;
|
|
16
16
|
legalName: string | null;
|
|
17
17
|
website: string | null;
|
|
18
|
+
vatNumber: string | null;
|
|
18
19
|
industry: string | null;
|
|
19
20
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
20
21
|
ownerId: string | null;
|
|
@@ -54,6 +55,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
54
55
|
notes: string | null;
|
|
55
56
|
website: string | null;
|
|
56
57
|
legalName: string | null;
|
|
58
|
+
vatNumber: string | null;
|
|
57
59
|
industry: string | null;
|
|
58
60
|
ownerId: string | null;
|
|
59
61
|
defaultCurrency: string | null;
|
|
@@ -93,6 +95,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
93
95
|
name: string;
|
|
94
96
|
legalName: string | null;
|
|
95
97
|
website: string | null;
|
|
98
|
+
vatNumber: string | null;
|
|
96
99
|
industry: string | null;
|
|
97
100
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
98
101
|
ownerId: string | null;
|
|
@@ -138,6 +141,7 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
138
141
|
name: string;
|
|
139
142
|
legalName: string | null;
|
|
140
143
|
website: string | null;
|
|
144
|
+
vatNumber: string | null;
|
|
141
145
|
industry: string | null;
|
|
142
146
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
143
147
|
ownerId: string | null;
|
|
@@ -438,7 +442,9 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
438
442
|
id: string;
|
|
439
443
|
organizationId: string | null;
|
|
440
444
|
firstName: string;
|
|
445
|
+
middleName: string | null;
|
|
441
446
|
lastName: string;
|
|
447
|
+
gender: string | null;
|
|
442
448
|
jobTitle: string | null;
|
|
443
449
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
444
450
|
preferredLanguage: string | null;
|
|
@@ -474,7 +480,9 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
474
480
|
id: string;
|
|
475
481
|
organizationId: string | null;
|
|
476
482
|
firstName: string;
|
|
483
|
+
middleName: string | null;
|
|
477
484
|
lastName: string;
|
|
485
|
+
gender: string | null;
|
|
478
486
|
jobTitle: string | null;
|
|
479
487
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
480
488
|
preferredLanguage: string | null;
|
|
@@ -522,7 +530,9 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
522
530
|
id: string;
|
|
523
531
|
organizationId: string | null;
|
|
524
532
|
firstName: string;
|
|
533
|
+
middleName: string | null;
|
|
525
534
|
lastName: string;
|
|
535
|
+
gender: string | null;
|
|
526
536
|
jobTitle: string | null;
|
|
527
537
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
528
538
|
preferredLanguage: string | null;
|
|
@@ -570,7 +580,9 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
570
580
|
id: string;
|
|
571
581
|
organizationId: string | null;
|
|
572
582
|
firstName: string;
|
|
583
|
+
middleName: string | null;
|
|
573
584
|
lastName: string;
|
|
585
|
+
gender: string | null;
|
|
574
586
|
jobTitle: string | null;
|
|
575
587
|
relation: "partner" | "supplier" | "other" | "client" | null;
|
|
576
588
|
preferredLanguage: string | null;
|
|
@@ -865,6 +877,132 @@ export declare const crmRoutes: import("hono/hono-base").HonoBase<Env, import("h
|
|
|
865
877
|
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
866
878
|
};
|
|
867
879
|
};
|
|
880
|
+
} & {
|
|
881
|
+
"/people/:id/payment-methods": {
|
|
882
|
+
$get: {
|
|
883
|
+
input: {
|
|
884
|
+
param: {
|
|
885
|
+
id: string;
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
output: {
|
|
889
|
+
data: {
|
|
890
|
+
id: string;
|
|
891
|
+
personId: string;
|
|
892
|
+
brand: string;
|
|
893
|
+
last4: string | null;
|
|
894
|
+
holderName: string | null;
|
|
895
|
+
expMonth: number | null;
|
|
896
|
+
expYear: number | null;
|
|
897
|
+
processorToken: string;
|
|
898
|
+
isDefault: boolean;
|
|
899
|
+
createdAt: string;
|
|
900
|
+
}[];
|
|
901
|
+
};
|
|
902
|
+
outputFormat: "json";
|
|
903
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
904
|
+
};
|
|
905
|
+
};
|
|
906
|
+
} & {
|
|
907
|
+
"/people/:id/payment-methods": {
|
|
908
|
+
$post: {
|
|
909
|
+
input: {
|
|
910
|
+
param: {
|
|
911
|
+
id: string;
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
output: {
|
|
915
|
+
error: string;
|
|
916
|
+
};
|
|
917
|
+
outputFormat: "json";
|
|
918
|
+
status: 404;
|
|
919
|
+
} | {
|
|
920
|
+
input: {
|
|
921
|
+
param: {
|
|
922
|
+
id: string;
|
|
923
|
+
};
|
|
924
|
+
};
|
|
925
|
+
output: {
|
|
926
|
+
data: {
|
|
927
|
+
id: string;
|
|
928
|
+
brand: string;
|
|
929
|
+
createdAt: string;
|
|
930
|
+
personId: string;
|
|
931
|
+
last4: string | null;
|
|
932
|
+
holderName: string | null;
|
|
933
|
+
expMonth: number | null;
|
|
934
|
+
expYear: number | null;
|
|
935
|
+
processorToken: string;
|
|
936
|
+
isDefault: boolean;
|
|
937
|
+
};
|
|
938
|
+
};
|
|
939
|
+
outputFormat: "json";
|
|
940
|
+
status: 201;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
} & {
|
|
944
|
+
"/person-payment-methods/:id": {
|
|
945
|
+
$patch: {
|
|
946
|
+
input: {
|
|
947
|
+
param: {
|
|
948
|
+
id: string;
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
output: {
|
|
952
|
+
error: string;
|
|
953
|
+
};
|
|
954
|
+
outputFormat: "json";
|
|
955
|
+
status: 404;
|
|
956
|
+
} | {
|
|
957
|
+
input: {
|
|
958
|
+
param: {
|
|
959
|
+
id: string;
|
|
960
|
+
};
|
|
961
|
+
};
|
|
962
|
+
output: {
|
|
963
|
+
data: {
|
|
964
|
+
id: string;
|
|
965
|
+
personId: string;
|
|
966
|
+
brand: string;
|
|
967
|
+
last4: string | null;
|
|
968
|
+
holderName: string | null;
|
|
969
|
+
expMonth: number | null;
|
|
970
|
+
expYear: number | null;
|
|
971
|
+
processorToken: string;
|
|
972
|
+
isDefault: boolean;
|
|
973
|
+
createdAt: string;
|
|
974
|
+
};
|
|
975
|
+
};
|
|
976
|
+
outputFormat: "json";
|
|
977
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
978
|
+
};
|
|
979
|
+
};
|
|
980
|
+
} & {
|
|
981
|
+
"/person-payment-methods/:id": {
|
|
982
|
+
$delete: {
|
|
983
|
+
input: {
|
|
984
|
+
param: {
|
|
985
|
+
id: string;
|
|
986
|
+
};
|
|
987
|
+
};
|
|
988
|
+
output: {
|
|
989
|
+
error: string;
|
|
990
|
+
};
|
|
991
|
+
outputFormat: "json";
|
|
992
|
+
status: 404;
|
|
993
|
+
} | {
|
|
994
|
+
input: {
|
|
995
|
+
param: {
|
|
996
|
+
id: string;
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
output: {
|
|
1000
|
+
success: true;
|
|
1001
|
+
};
|
|
1002
|
+
outputFormat: "json";
|
|
1003
|
+
status: import("hono/utils/http-status").ContentfulStatusCode;
|
|
1004
|
+
};
|
|
1005
|
+
};
|
|
868
1006
|
} & {
|
|
869
1007
|
"/people/:id/communications": {
|
|
870
1008
|
$get: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAUjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routes/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAUjE,KAAK,GAAG,GAAG;IACT,SAAS,EAAE;QACT,EAAE,EAAE,kBAAkB,CAAA;QACtB,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;CACF,CAAA;AAED,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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