@bentoforge/umami-iam 0.4.0 → 0.5.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/types.d.ts +11 -5
- package/package.json +1 -1
- package/src/types.ts +11 -5
package/dist/types.d.ts
CHANGED
|
@@ -55,14 +55,17 @@ export type Salutation = "" | "SIR" | "MADAM";
|
|
|
55
55
|
/** Structured name parts (editable) plus the server-composed display names (read-only). */
|
|
56
56
|
export interface NameParts {
|
|
57
57
|
title: string | null;
|
|
58
|
+
/** BCP-47 tag, or `null` for the deployment's `defaultLocale`. */
|
|
59
|
+
locale?: string | null;
|
|
58
60
|
salutation: Salutation;
|
|
59
61
|
firstname: string | null;
|
|
60
62
|
lastname: string | null;
|
|
61
|
-
/** `title firstname lastname
|
|
63
|
+
/** `title firstname lastname` — **no** salutation. Render this in a localized UI and prepend
|
|
64
|
+
* the salutation word from your own catalogue; the two fields below carry the server's word. */
|
|
62
65
|
name: string;
|
|
63
|
-
/** `salutation title firstname lastname
|
|
66
|
+
/** `salutation title firstname lastname`, salutation in the user's (or deployment's) language. */
|
|
64
67
|
fullName: string;
|
|
65
|
-
/** `salutation title lastname
|
|
68
|
+
/** `salutation title lastname`, same language rule. For addressing in mail/messaging. */
|
|
66
69
|
addressableName: string;
|
|
67
70
|
}
|
|
68
71
|
export interface UserView extends NameParts {
|
|
@@ -95,6 +98,8 @@ export interface UserView extends NameParts {
|
|
|
95
98
|
/** The editable structured name parts (all optional; omitted = unset, `""` clears). */
|
|
96
99
|
export interface NameInput {
|
|
97
100
|
title?: string;
|
|
101
|
+
/** BCP-47 tag; `""` clears it back to the deployment default. */
|
|
102
|
+
locale?: string;
|
|
98
103
|
salutation?: Salutation;
|
|
99
104
|
firstname?: string;
|
|
100
105
|
lastname?: string;
|
|
@@ -273,8 +278,9 @@ export interface Config {
|
|
|
273
278
|
features: FeatureDef[];
|
|
274
279
|
customTenantFields: CustomFieldDef[];
|
|
275
280
|
customUserFields: CustomFieldDef[];
|
|
276
|
-
/**
|
|
277
|
-
|
|
281
|
+
/** Language umami renders in when no user preference applies (BCP-47). A user's own `locale`
|
|
282
|
+
* wins. Salutation *words* are per-locale constants in umami, not configuration. */
|
|
283
|
+
defaultLocale: string;
|
|
278
284
|
security: SecuritySettings;
|
|
279
285
|
/** Messaging integration (Telegram/WhatsApp) settings. */
|
|
280
286
|
messaging?: MessagingConfig;
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -71,14 +71,17 @@ export type Salutation = "" | "SIR" | "MADAM";
|
|
|
71
71
|
/** Structured name parts (editable) plus the server-composed display names (read-only). */
|
|
72
72
|
export interface NameParts {
|
|
73
73
|
title: string | null;
|
|
74
|
+
/** BCP-47 tag, or `null` for the deployment's `defaultLocale`. */
|
|
75
|
+
locale?: string | null;
|
|
74
76
|
salutation: Salutation;
|
|
75
77
|
firstname: string | null;
|
|
76
78
|
lastname: string | null;
|
|
77
|
-
/** `title firstname lastname
|
|
79
|
+
/** `title firstname lastname` — **no** salutation. Render this in a localized UI and prepend
|
|
80
|
+
* the salutation word from your own catalogue; the two fields below carry the server's word. */
|
|
78
81
|
name: string;
|
|
79
|
-
/** `salutation title firstname lastname
|
|
82
|
+
/** `salutation title firstname lastname`, salutation in the user's (or deployment's) language. */
|
|
80
83
|
fullName: string;
|
|
81
|
-
/** `salutation title lastname
|
|
84
|
+
/** `salutation title lastname`, same language rule. For addressing in mail/messaging. */
|
|
82
85
|
addressableName: string;
|
|
83
86
|
}
|
|
84
87
|
|
|
@@ -113,6 +116,8 @@ export interface UserView extends NameParts {
|
|
|
113
116
|
/** The editable structured name parts (all optional; omitted = unset, `""` clears). */
|
|
114
117
|
export interface NameInput {
|
|
115
118
|
title?: string;
|
|
119
|
+
/** BCP-47 tag; `""` clears it back to the deployment default. */
|
|
120
|
+
locale?: string;
|
|
116
121
|
salutation?: Salutation;
|
|
117
122
|
firstname?: string;
|
|
118
123
|
lastname?: string;
|
|
@@ -309,8 +314,9 @@ export interface Config {
|
|
|
309
314
|
features: FeatureDef[];
|
|
310
315
|
customTenantFields: CustomFieldDef[];
|
|
311
316
|
customUserFields: CustomFieldDef[];
|
|
312
|
-
/**
|
|
313
|
-
|
|
317
|
+
/** Language umami renders in when no user preference applies (BCP-47). A user's own `locale`
|
|
318
|
+
* wins. Salutation *words* are per-locale constants in umami, not configuration. */
|
|
319
|
+
defaultLocale: string;
|
|
314
320
|
security: SecuritySettings;
|
|
315
321
|
/** Messaging integration (Telegram/WhatsApp) settings. */
|
|
316
322
|
messaging?: MessagingConfig;
|