Skip to content

Commit e2150b1

Browse files
committed
chore(organization): remove dead code
1 parent f34011e commit e2150b1

File tree

6 files changed

+13
-131
lines changed

6 files changed

+13
-131
lines changed

packages/~/app/urls/src/pattern.d.ts

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ declare const app: import("hono/hono-base").HonoBase<
222222
};
223223
} & {
224224
query: {
225-
user_id: string;
226225
organization_id: string;
226+
user_id: string;
227227
};
228228
};
229229
output: {};
@@ -306,6 +306,17 @@ declare const app: import("hono/hono-base").HonoBase<
306306
add_member: "AS_INTERNAL" | "AS_EXTERNAL";
307307
add_domain?: string | undefined;
308308
send_notitfication?: string | undefined;
309+
verification_type?:
310+
| "null"
311+
| "code_sent_to_official_contact_email"
312+
| "in_liste_dirigeants_rna"
313+
| "no_validation_means_available"
314+
| "official_contact_domain"
315+
| "official_contact_email"
316+
| "trackdechets_email_domain"
317+
| "verified_by_coop_mediation_numerique"
318+
| "verified_email_domain"
319+
| undefined;
309320
};
310321
};
311322
output: {};
@@ -701,28 +712,6 @@ declare const app: import("hono/hono-base").HonoBase<
701712
};
702713
}),
703714
"/members"
704-
>
705-
| import("hono/types").MergeSchemaPath<
706-
| import("hono/types").BlankSchema
707-
| import("hono/types").MergeSchemaPath<
708-
{
709-
"/:domain": {
710-
$patch: {
711-
input: {
712-
param: {
713-
id: string;
714-
domain: string;
715-
};
716-
};
717-
output: "OK";
718-
outputFormat: "text";
719-
status: 200;
720-
};
721-
};
722-
},
723-
"/verify"
724-
>,
725-
"/$procedures"
726715
>,
727716
"/:id"
728717
>

packages/~/infra/moncomptepro/lib/src/fetch.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ type Options =
1717
user_id: string;
1818
};
1919
}
20-
| {
21-
endpoint: "/api/admin/mark-domain-as-verified";
22-
method: "POST";
23-
searchParams: { domain: string; organization_id: string };
24-
}
2520
| {
2621
endpoint: "/api/admin/send-moderation-processed-email";
2722
method: "POST";

packages/~/infra/moncomptepro/lib/src/index.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,6 @@ export const join_organization: JoinOrganizationHandler = async ({
3232
});
3333
};
3434

35-
export async function mark_domain_as_verified({
36-
domain,
37-
organization_id,
38-
}: {
39-
domain: string;
40-
organization_id: number;
41-
}): Promise<{}> {
42-
return fetch_mcp_admin_api({
43-
endpoint: "/api/admin/mark-domain-as-verified",
44-
method: "POST",
45-
searchParams: {
46-
domain: String(domain),
47-
organization_id: String(organization_id),
48-
},
49-
});
50-
}
51-
5235
export async function send_moderation_processed_email({
5336
organization_id,
5437
user_id,

packages/~/organizations/api/src/:id/$procedures/index.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

packages/~/organizations/api/src/:id/$procedures/verify_domain.ts

Lines changed: 0 additions & 75 deletions
This file was deleted.

packages/~/organizations/api/src/:id/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { to as await_to } from "await-to-js";
1313
import { Hono } from "hono";
1414
import { getContext } from "hono/context-storage";
1515
import { jsxRenderer } from "hono/jsx-renderer";
16-
import organization_procedures_router from "./$procedures";
1716
import type { ContextType, ContextVariablesType } from "./context";
1817
import organization_domains_router from "./domains";
1918
import organization_members_router from "./members";
@@ -108,5 +107,4 @@ export default new Hono<ContextType>()
108107
)
109108
//
110109
.route("/members", organization_members_router)
111-
.route("/domains", organization_domains_router)
112-
.route("/$procedures", organization_procedures_router);
110+
.route("/domains", organization_domains_router);

0 commit comments

Comments
 (0)