@proconnect-gouv/proconnect.identite 1.5.0 → 1.6.2
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/CHANGELOG.md +12 -0
- package/dist/managers/certification/certification-score.js +2 -2
- package/dist/managers/organization/adapters/index.d.ts +2 -0
- package/dist/managers/organization/adapters/index.d.ts.map +1 -0
- package/dist/managers/organization/adapters/index.js +1 -0
- package/dist/managers/organization/force-join-organization.d.ts +1 -1
- package/dist/managers/organization/index.d.ts +1 -0
- package/dist/managers/organization/index.d.ts.map +1 -1
- package/dist/managers/organization/index.js +1 -0
- package/dist/managers/organization/mark-domain-as-verified.d.ts +4 -5
- package/dist/managers/organization/mark-domain-as-verified.d.ts.map +1 -1
- package/dist/managers/organization/mark-domain-as-verified.js +1 -1
- package/dist/managers/user/assign-user-verification-type-to-domain.js +2 -2
- package/dist/repositories/organization/find-by-user-id.d.ts +1 -1
- package/dist/repositories/organization/get-users-by-organization.d.ts +1 -1
- package/dist/repositories/organization/link-user-to-organization.d.ts +1 -1
- package/dist/repositories/user/update-user-organization-link.d.ts +1 -1
- package/dist/services/organization/is-domain-allowed-for-organization.js +1 -1
- package/dist/services/organization/is-public-service.d.ts +1 -1
- package/dist/services/organization/is-public-service.d.ts.map +1 -1
- package/dist/types/user-organization-link.d.ts +10 -10
- package/dist/types/user-organization-link.d.ts.map +1 -1
- package/dist/types/user-organization-link.js +9 -4
- package/package.json +12 -11
- package/src/managers/certification/certification-score.ts +2 -2
- package/src/managers/certification/process-certification-dirigeant.test.ts +83 -18
- package/src/managers/organization/adapters/index.ts +1 -0
- package/src/managers/organization/index.ts +1 -0
- package/src/managers/organization/mark-domain-as-verified.ts +7 -5
- package/src/managers/user/assign-user-verification-type-to-domain.ts +2 -2
- package/src/services/organization/is-domain-allowed-for-organization.ts +1 -1
- package/src/services/organization/is-public-service.ts +1 -1
- package/src/types/user-organization-link.ts +10 -4
- package/testing/seed/franceconnect/index.ts +14 -0
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
|
+
export const StrongLinkTypes = ["organization_dirigeant"] as const;
|
|
4
|
+
|
|
3
5
|
export const WeakLinkTypes = [
|
|
4
6
|
"code_sent_to_official_contact_email",
|
|
5
7
|
"domain",
|
|
6
|
-
"domain_not_verified_yet",
|
|
7
8
|
"imported_from_coop_mediation_numerique",
|
|
8
9
|
"imported_from_inclusion_connect",
|
|
9
10
|
"in_liste_dirigeants_rna",
|
|
@@ -16,11 +17,16 @@ export const WeakLinkTypes = [
|
|
|
16
17
|
"bypassed",
|
|
17
18
|
] as const;
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
// This link type should be considered as unverified.
|
|
21
|
+
// However, doing so would trigger a FranceConnect authentication requirement for the user.
|
|
22
|
+
// Users shouldn't face inconvenience while waiting for domain review completion.
|
|
23
|
+
// Instead, we should remove these unverified domains and then eliminate this special case from the codebase.
|
|
24
|
+
export const SuperWeakLinkTypes = ["domain_not_verified_yet"] as const;
|
|
20
25
|
|
|
21
|
-
|
|
22
|
-
...WeakLinkTypes,
|
|
26
|
+
const VerifiedLinkTypes = [
|
|
23
27
|
...StrongLinkTypes,
|
|
28
|
+
...WeakLinkTypes,
|
|
29
|
+
...SuperWeakLinkTypes,
|
|
24
30
|
] as const;
|
|
25
31
|
|
|
26
32
|
export const UnverifiedLinkTypes = [
|
|
@@ -41,3 +41,17 @@ export const RogalDornFranceConnectUserInfo: FranceConnectUserInfo = {
|
|
|
41
41
|
updated_at: new Date(),
|
|
42
42
|
user_id: NaN,
|
|
43
43
|
};
|
|
44
|
+
|
|
45
|
+
export const AmberleyVailFranceConnectUserInfo: FranceConnectUserInfo = {
|
|
46
|
+
birthcountry: "99102",
|
|
47
|
+
birthdate: new Date(Date.UTC(29000, 6, 7)),
|
|
48
|
+
birthplace: "",
|
|
49
|
+
created_at: new Date("2023-04-10"),
|
|
50
|
+
family_name: "Vail",
|
|
51
|
+
gender: "female",
|
|
52
|
+
given_name: "Amberley",
|
|
53
|
+
preferred_username: "Holy Inquisition",
|
|
54
|
+
sub: "ORDOS546",
|
|
55
|
+
updated_at: new Date(),
|
|
56
|
+
user_id: NaN,
|
|
57
|
+
};
|