@voyant-travel/identity-react 0.119.1
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/LICENSE +201 -0
- package/README.md +39 -0
- package/dist/client.d.ts +14 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +58 -0
- package/dist/components/address-dialog.d.ts +11 -0
- package/dist/components/address-dialog.d.ts.map +1 -0
- package/dist/components/address-dialog.js +130 -0
- package/dist/components/contact-point-dialog.d.ts +11 -0
- package/dist/components/contact-point-dialog.d.ts.map +1 -0
- package/dist/components/contact-point-dialog.js +78 -0
- package/dist/components/entity-ref-picker.d.ts +21 -0
- package/dist/components/entity-ref-picker.d.ts.map +1 -0
- package/dist/components/entity-ref-picker.js +38 -0
- package/dist/components/identity-page.d.ts +20 -0
- package/dist/components/identity-page.d.ts.map +1 -0
- package/dist/components/identity-page.js +230 -0
- package/dist/components/named-contact-dialog.d.ts +11 -0
- package/dist/components/named-contact-dialog.d.ts.map +1 -0
- package/dist/components/named-contact-dialog.js +101 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/use-address-mutation.d.ts +72 -0
- package/dist/hooks/use-address-mutation.d.ts.map +1 -0
- package/dist/hooks/use-address-mutation.js +40 -0
- package/dist/hooks/use-addresses.d.ts +31 -0
- package/dist/hooks/use-addresses.d.ts.map +1 -0
- package/dist/hooks/use-addresses.js +12 -0
- package/dist/hooks/use-contact-point-mutation.d.ts +51 -0
- package/dist/hooks/use-contact-point-mutation.d.ts.map +1 -0
- package/dist/hooks/use-contact-point-mutation.js +40 -0
- package/dist/hooks/use-contact-points.d.ts +24 -0
- package/dist/hooks/use-contact-points.d.ts.map +1 -0
- package/dist/hooks/use-contact-points.js +12 -0
- package/dist/hooks/use-named-contact-mutation.d.ts +54 -0
- package/dist/hooks/use-named-contact-mutation.d.ts.map +1 -0
- package/dist/hooks/use-named-contact-mutation.js +40 -0
- package/dist/hooks/use-named-contacts.d.ts +25 -0
- package/dist/hooks/use-named-contacts.d.ts.map +1 -0
- package/dist/hooks/use-named-contacts.js +12 -0
- package/dist/i18n/en.d.ts +193 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +192 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/messages.d.ts +161 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/provider.d.ts +408 -0
- package/dist/i18n/provider.d.ts.map +1 -0
- package/dist/i18n/provider.js +44 -0
- package/dist/i18n/ro.d.ts +193 -0
- package/dist/i18n/ro.d.ts.map +1 -0
- package/dist/i18n/ro.js +192 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +1 -0
- package/dist/query-keys.d.ts +40 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +12 -0
- package/dist/query-options.d.ts +489 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +63 -0
- package/dist/schemas.d.ts +278 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +52 -0
- package/dist/ui.d.ts +7 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +6 -0
- package/package.json +146 -0
- package/src/styles.css +11 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { fetchWithValidation } from "../client.js";
|
|
4
|
+
import { useVoyantIdentityContext } from "../provider.js";
|
|
5
|
+
import { identityQueryKeys } from "../query-keys.js";
|
|
6
|
+
import { contactPointSingleResponse, successEnvelope } from "../schemas.js";
|
|
7
|
+
export function useContactPointMutation() {
|
|
8
|
+
const { baseUrl, fetcher } = useVoyantIdentityContext();
|
|
9
|
+
const queryClient = useQueryClient();
|
|
10
|
+
const create = useMutation({
|
|
11
|
+
mutationFn: async (input) => {
|
|
12
|
+
const { data } = await fetchWithValidation("/v1/identity/contact-points", contactPointSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
13
|
+
return data;
|
|
14
|
+
},
|
|
15
|
+
onSuccess: (data) => {
|
|
16
|
+
void queryClient.invalidateQueries({ queryKey: identityQueryKeys.contactPoints() });
|
|
17
|
+
queryClient.setQueryData(identityQueryKeys.contactPoint(data.id), data);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
const update = useMutation({
|
|
21
|
+
mutationFn: async ({ id, input }) => {
|
|
22
|
+
const { data } = await fetchWithValidation(`/v1/identity/contact-points/${id}`, contactPointSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
23
|
+
return data;
|
|
24
|
+
},
|
|
25
|
+
onSuccess: (data) => {
|
|
26
|
+
void queryClient.invalidateQueries({ queryKey: identityQueryKeys.contactPoints() });
|
|
27
|
+
queryClient.setQueryData(identityQueryKeys.contactPoint(data.id), data);
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
const remove = useMutation({
|
|
31
|
+
mutationFn: async (id) => fetchWithValidation(`/v1/identity/contact-points/${id}`, successEnvelope, { baseUrl, fetcher }, {
|
|
32
|
+
method: "DELETE",
|
|
33
|
+
}),
|
|
34
|
+
onSuccess: (_data, id) => {
|
|
35
|
+
void queryClient.invalidateQueries({ queryKey: identityQueryKeys.contactPoints() });
|
|
36
|
+
queryClient.removeQueries({ queryKey: identityQueryKeys.contactPoint(id) });
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
return { create, update, remove };
|
|
40
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ContactPointsListFilters } from "../query-keys.js";
|
|
2
|
+
export interface UseContactPointsOptions extends ContactPointsListFilters {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useContactPoints(options?: UseContactPointsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
data: {
|
|
7
|
+
entityType: string;
|
|
8
|
+
entityId: string;
|
|
9
|
+
kind: "other" | "email" | "phone" | "mobile" | "website" | "whatsapp" | "sms" | "fax" | "social";
|
|
10
|
+
value: string;
|
|
11
|
+
isPrimary: boolean;
|
|
12
|
+
id: string;
|
|
13
|
+
label: string | null;
|
|
14
|
+
normalizedValue: string | null;
|
|
15
|
+
notes: string | null;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
19
|
+
}[];
|
|
20
|
+
total: number;
|
|
21
|
+
limit: number;
|
|
22
|
+
offset: number;
|
|
23
|
+
}, Error>;
|
|
24
|
+
//# sourceMappingURL=use-contact-points.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-contact-points.d.ts","sourceRoot":"","sources":["../../src/hooks/use-contact-points.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AAGhE,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACvE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B;;;;;;;;;;;;;;;;;;UAQrE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantIdentityContext } from "../provider.js";
|
|
4
|
+
import { getContactPointsQueryOptions } from "../query-options.js";
|
|
5
|
+
export function useContactPoints(options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantIdentityContext();
|
|
7
|
+
const { enabled = true, ...filters } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getContactPointsQueryOptions({ baseUrl, fetcher }, filters),
|
|
10
|
+
enabled,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { insertNamedContactSchema, updateNamedContactSchema } from "@voyant-travel/identity";
|
|
2
|
+
import type { z } from "zod";
|
|
3
|
+
export type CreateNamedContactInput = z.input<typeof insertNamedContactSchema>;
|
|
4
|
+
export type UpdateNamedContactInput = z.input<typeof updateNamedContactSchema>;
|
|
5
|
+
export declare function useNamedContactMutation(): {
|
|
6
|
+
create: import("@tanstack/react-query").UseMutationResult<{
|
|
7
|
+
entityType: string;
|
|
8
|
+
entityId: string;
|
|
9
|
+
role: "other" | "primary" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
10
|
+
name: string;
|
|
11
|
+
isPrimary: boolean;
|
|
12
|
+
id: string;
|
|
13
|
+
title: string | null;
|
|
14
|
+
email: string | null;
|
|
15
|
+
phone: string | null;
|
|
16
|
+
notes: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
20
|
+
}, Error, {
|
|
21
|
+
entityType: string;
|
|
22
|
+
entityId: string;
|
|
23
|
+
name: string;
|
|
24
|
+
role?: "other" | "primary" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting" | undefined;
|
|
25
|
+
title?: string | null | undefined;
|
|
26
|
+
email?: string | null | undefined;
|
|
27
|
+
phone?: string | null | undefined;
|
|
28
|
+
isPrimary?: boolean | undefined;
|
|
29
|
+
notes?: string | null | undefined;
|
|
30
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
31
|
+
}, unknown>;
|
|
32
|
+
update: import("@tanstack/react-query").UseMutationResult<{
|
|
33
|
+
entityType: string;
|
|
34
|
+
entityId: string;
|
|
35
|
+
role: "other" | "primary" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
36
|
+
name: string;
|
|
37
|
+
isPrimary: boolean;
|
|
38
|
+
id: string;
|
|
39
|
+
title: string | null;
|
|
40
|
+
email: string | null;
|
|
41
|
+
phone: string | null;
|
|
42
|
+
notes: string | null;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
46
|
+
}, Error, {
|
|
47
|
+
id: string;
|
|
48
|
+
input: UpdateNamedContactInput;
|
|
49
|
+
}, unknown>;
|
|
50
|
+
remove: import("@tanstack/react-query").UseMutationResult<{
|
|
51
|
+
success: boolean;
|
|
52
|
+
}, Error, string, unknown>;
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=use-named-contact-mutation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-named-contact-mutation.d.ts","sourceRoot":"","sources":["../../src/hooks/use-named-contact-mutation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AACjG,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAO5B,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAC9E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAE9E,wBAAgB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqBK,MAAM;eAAS,uBAAuB;;;;;EAgCjF"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { fetchWithValidation } from "../client.js";
|
|
4
|
+
import { useVoyantIdentityContext } from "../provider.js";
|
|
5
|
+
import { identityQueryKeys } from "../query-keys.js";
|
|
6
|
+
import { namedContactSingleResponse, successEnvelope } from "../schemas.js";
|
|
7
|
+
export function useNamedContactMutation() {
|
|
8
|
+
const { baseUrl, fetcher } = useVoyantIdentityContext();
|
|
9
|
+
const queryClient = useQueryClient();
|
|
10
|
+
const create = useMutation({
|
|
11
|
+
mutationFn: async (input) => {
|
|
12
|
+
const { data } = await fetchWithValidation("/v1/identity/named-contacts", namedContactSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
|
|
13
|
+
return data;
|
|
14
|
+
},
|
|
15
|
+
onSuccess: (data) => {
|
|
16
|
+
void queryClient.invalidateQueries({ queryKey: identityQueryKeys.namedContacts() });
|
|
17
|
+
queryClient.setQueryData(identityQueryKeys.namedContact(data.id), data);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
const update = useMutation({
|
|
21
|
+
mutationFn: async ({ id, input }) => {
|
|
22
|
+
const { data } = await fetchWithValidation(`/v1/identity/named-contacts/${id}`, namedContactSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
|
|
23
|
+
return data;
|
|
24
|
+
},
|
|
25
|
+
onSuccess: (data) => {
|
|
26
|
+
void queryClient.invalidateQueries({ queryKey: identityQueryKeys.namedContacts() });
|
|
27
|
+
queryClient.setQueryData(identityQueryKeys.namedContact(data.id), data);
|
|
28
|
+
},
|
|
29
|
+
});
|
|
30
|
+
const remove = useMutation({
|
|
31
|
+
mutationFn: async (id) => fetchWithValidation(`/v1/identity/named-contacts/${id}`, successEnvelope, { baseUrl, fetcher }, {
|
|
32
|
+
method: "DELETE",
|
|
33
|
+
}),
|
|
34
|
+
onSuccess: (_data, id) => {
|
|
35
|
+
void queryClient.invalidateQueries({ queryKey: identityQueryKeys.namedContacts() });
|
|
36
|
+
queryClient.removeQueries({ queryKey: identityQueryKeys.namedContact(id) });
|
|
37
|
+
},
|
|
38
|
+
});
|
|
39
|
+
return { create, update, remove };
|
|
40
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { NamedContactsListFilters } from "../query-keys.js";
|
|
2
|
+
export interface UseNamedContactsOptions extends NamedContactsListFilters {
|
|
3
|
+
enabled?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function useNamedContacts(options?: UseNamedContactsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
6
|
+
data: {
|
|
7
|
+
entityType: string;
|
|
8
|
+
entityId: string;
|
|
9
|
+
role: "other" | "primary" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
|
|
10
|
+
name: string;
|
|
11
|
+
isPrimary: boolean;
|
|
12
|
+
id: string;
|
|
13
|
+
title: string | null;
|
|
14
|
+
email: string | null;
|
|
15
|
+
phone: string | null;
|
|
16
|
+
notes: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
20
|
+
}[];
|
|
21
|
+
total: number;
|
|
22
|
+
limit: number;
|
|
23
|
+
offset: number;
|
|
24
|
+
}, Error>;
|
|
25
|
+
//# sourceMappingURL=use-named-contacts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-named-contacts.d.ts","sourceRoot":"","sources":["../../src/hooks/use-named-contacts.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAA;AAGhE,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACvE,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAAC,OAAO,GAAE,uBAA4B;;;;;;;;;;;;;;;;;;;UAQrE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useQuery } from "@tanstack/react-query";
|
|
3
|
+
import { useVoyantIdentityContext } from "../provider.js";
|
|
4
|
+
import { getNamedContactsQueryOptions } from "../query-options.js";
|
|
5
|
+
export function useNamedContacts(options = {}) {
|
|
6
|
+
const { baseUrl, fetcher } = useVoyantIdentityContext();
|
|
7
|
+
const { enabled = true, ...filters } = options;
|
|
8
|
+
return useQuery({
|
|
9
|
+
...getNamedContactsQueryOptions({ baseUrl, fetcher }, filters),
|
|
10
|
+
enabled,
|
|
11
|
+
});
|
|
12
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
export declare const identityUiEn: {
|
|
2
|
+
common: {
|
|
3
|
+
cancel: string;
|
|
4
|
+
saveChanges: string;
|
|
5
|
+
primary: string;
|
|
6
|
+
addressLabelLabels: {
|
|
7
|
+
primary: string;
|
|
8
|
+
billing: string;
|
|
9
|
+
shipping: string;
|
|
10
|
+
mailing: string;
|
|
11
|
+
meeting: string;
|
|
12
|
+
service: string;
|
|
13
|
+
legal: string;
|
|
14
|
+
other: string;
|
|
15
|
+
};
|
|
16
|
+
contactPointKindLabels: {
|
|
17
|
+
email: string;
|
|
18
|
+
phone: string;
|
|
19
|
+
mobile: string;
|
|
20
|
+
whatsapp: string;
|
|
21
|
+
website: string;
|
|
22
|
+
sms: string;
|
|
23
|
+
fax: string;
|
|
24
|
+
social: string;
|
|
25
|
+
other: string;
|
|
26
|
+
};
|
|
27
|
+
namedContactRoleLabels: {
|
|
28
|
+
general: string;
|
|
29
|
+
primary: string;
|
|
30
|
+
reservations: string;
|
|
31
|
+
operations: string;
|
|
32
|
+
front_desk: string;
|
|
33
|
+
sales: string;
|
|
34
|
+
emergency: string;
|
|
35
|
+
accounting: string;
|
|
36
|
+
legal: string;
|
|
37
|
+
other: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
identityPage: {
|
|
41
|
+
title: string;
|
|
42
|
+
description: string;
|
|
43
|
+
fields: {
|
|
44
|
+
entityType: string;
|
|
45
|
+
entity: string;
|
|
46
|
+
customEntityType: string;
|
|
47
|
+
};
|
|
48
|
+
placeholders: {
|
|
49
|
+
entityType: string;
|
|
50
|
+
entity: string;
|
|
51
|
+
};
|
|
52
|
+
entityTypeLabels: {
|
|
53
|
+
person: string;
|
|
54
|
+
organization: string;
|
|
55
|
+
supplier: string;
|
|
56
|
+
booking: string;
|
|
57
|
+
product: string;
|
|
58
|
+
};
|
|
59
|
+
emptyScope: string;
|
|
60
|
+
tabs: {
|
|
61
|
+
contactPoints: string;
|
|
62
|
+
addresses: string;
|
|
63
|
+
namedContacts: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
contactPointsTab: {
|
|
67
|
+
description: string;
|
|
68
|
+
add: string;
|
|
69
|
+
empty: {
|
|
70
|
+
loading: string;
|
|
71
|
+
none: string;
|
|
72
|
+
};
|
|
73
|
+
columns: {
|
|
74
|
+
kind: string;
|
|
75
|
+
value: string;
|
|
76
|
+
label: string;
|
|
77
|
+
primary: string;
|
|
78
|
+
};
|
|
79
|
+
actions: {
|
|
80
|
+
deleteConfirm: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
addressesTab: {
|
|
84
|
+
description: string;
|
|
85
|
+
add: string;
|
|
86
|
+
empty: {
|
|
87
|
+
loading: string;
|
|
88
|
+
none: string;
|
|
89
|
+
};
|
|
90
|
+
columns: {
|
|
91
|
+
label: string;
|
|
92
|
+
street: string;
|
|
93
|
+
city: string;
|
|
94
|
+
country: string;
|
|
95
|
+
primary: string;
|
|
96
|
+
};
|
|
97
|
+
actions: {
|
|
98
|
+
deleteConfirm: string;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
namedContactsTab: {
|
|
102
|
+
description: string;
|
|
103
|
+
add: string;
|
|
104
|
+
empty: {
|
|
105
|
+
loading: string;
|
|
106
|
+
none: string;
|
|
107
|
+
};
|
|
108
|
+
columns: {
|
|
109
|
+
role: string;
|
|
110
|
+
name: string;
|
|
111
|
+
title: string;
|
|
112
|
+
email: string;
|
|
113
|
+
phone: string;
|
|
114
|
+
primary: string;
|
|
115
|
+
};
|
|
116
|
+
actions: {
|
|
117
|
+
deleteConfirm: string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
addressDialog: {
|
|
121
|
+
titles: {
|
|
122
|
+
create: string;
|
|
123
|
+
edit: string;
|
|
124
|
+
};
|
|
125
|
+
fields: {
|
|
126
|
+
label: string;
|
|
127
|
+
line1: string;
|
|
128
|
+
line2: string;
|
|
129
|
+
city: string;
|
|
130
|
+
region: string;
|
|
131
|
+
postalCode: string;
|
|
132
|
+
country: string;
|
|
133
|
+
timezone: string;
|
|
134
|
+
latitude: string;
|
|
135
|
+
longitude: string;
|
|
136
|
+
notes: string;
|
|
137
|
+
};
|
|
138
|
+
placeholders: {
|
|
139
|
+
timezone: string;
|
|
140
|
+
};
|
|
141
|
+
actions: {
|
|
142
|
+
create: string;
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
contactPointDialog: {
|
|
146
|
+
titles: {
|
|
147
|
+
create: string;
|
|
148
|
+
edit: string;
|
|
149
|
+
};
|
|
150
|
+
fields: {
|
|
151
|
+
kind: string;
|
|
152
|
+
label: string;
|
|
153
|
+
value: string;
|
|
154
|
+
notes: string;
|
|
155
|
+
};
|
|
156
|
+
placeholders: {
|
|
157
|
+
label: string;
|
|
158
|
+
value: string;
|
|
159
|
+
};
|
|
160
|
+
actions: {
|
|
161
|
+
create: string;
|
|
162
|
+
};
|
|
163
|
+
validation: {
|
|
164
|
+
valueRequired: string;
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
namedContactDialog: {
|
|
168
|
+
titles: {
|
|
169
|
+
create: string;
|
|
170
|
+
edit: string;
|
|
171
|
+
};
|
|
172
|
+
fields: {
|
|
173
|
+
role: string;
|
|
174
|
+
name: string;
|
|
175
|
+
title: string;
|
|
176
|
+
email: string;
|
|
177
|
+
phone: string;
|
|
178
|
+
notes: string;
|
|
179
|
+
};
|
|
180
|
+
placeholders: {
|
|
181
|
+
name: string;
|
|
182
|
+
title: string;
|
|
183
|
+
email: string;
|
|
184
|
+
};
|
|
185
|
+
actions: {
|
|
186
|
+
create: string;
|
|
187
|
+
};
|
|
188
|
+
validation: {
|
|
189
|
+
nameRequired: string;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
};
|
|
193
|
+
//# sourceMappingURL=en.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/i18n/en.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+LK,CAAA"}
|
package/dist/i18n/en.js
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
export const identityUiEn = {
|
|
2
|
+
common: {
|
|
3
|
+
cancel: "Cancel",
|
|
4
|
+
saveChanges: "Save Changes",
|
|
5
|
+
primary: "Primary",
|
|
6
|
+
addressLabelLabels: {
|
|
7
|
+
primary: "Primary",
|
|
8
|
+
billing: "Billing",
|
|
9
|
+
shipping: "Shipping",
|
|
10
|
+
mailing: "Mailing",
|
|
11
|
+
meeting: "Meeting",
|
|
12
|
+
service: "Service",
|
|
13
|
+
legal: "Legal",
|
|
14
|
+
other: "Other",
|
|
15
|
+
},
|
|
16
|
+
contactPointKindLabels: {
|
|
17
|
+
email: "Email",
|
|
18
|
+
phone: "Phone",
|
|
19
|
+
mobile: "Mobile",
|
|
20
|
+
whatsapp: "WhatsApp",
|
|
21
|
+
website: "Website",
|
|
22
|
+
sms: "SMS",
|
|
23
|
+
fax: "Fax",
|
|
24
|
+
social: "Social",
|
|
25
|
+
other: "Other",
|
|
26
|
+
},
|
|
27
|
+
namedContactRoleLabels: {
|
|
28
|
+
general: "General",
|
|
29
|
+
primary: "Primary",
|
|
30
|
+
reservations: "Reservations",
|
|
31
|
+
operations: "Operations",
|
|
32
|
+
front_desk: "Front desk",
|
|
33
|
+
sales: "Sales",
|
|
34
|
+
emergency: "Emergency",
|
|
35
|
+
accounting: "Accounting",
|
|
36
|
+
legal: "Legal",
|
|
37
|
+
other: "Other",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
identityPage: {
|
|
41
|
+
title: "Identity",
|
|
42
|
+
description: "Manage contact points, addresses and named contacts attached to any entity.",
|
|
43
|
+
fields: {
|
|
44
|
+
entityType: "Entity type",
|
|
45
|
+
entity: "Entity",
|
|
46
|
+
customEntityType: "Other entity type",
|
|
47
|
+
},
|
|
48
|
+
placeholders: {
|
|
49
|
+
entityType: "person, organization, supplier...",
|
|
50
|
+
entity: "Paste a reference for custom entity types",
|
|
51
|
+
},
|
|
52
|
+
entityTypeLabels: {
|
|
53
|
+
person: "Person",
|
|
54
|
+
organization: "Organization",
|
|
55
|
+
supplier: "Supplier",
|
|
56
|
+
booking: "Booking",
|
|
57
|
+
product: "Product",
|
|
58
|
+
},
|
|
59
|
+
emptyScope: "Choose an entity above to browse its identity records.",
|
|
60
|
+
tabs: {
|
|
61
|
+
contactPoints: "Contact Points",
|
|
62
|
+
addresses: "Addresses",
|
|
63
|
+
namedContacts: "Named Contacts",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
contactPointsTab: {
|
|
67
|
+
description: "Phone numbers, emails and other communication channels for this entity.",
|
|
68
|
+
add: "Add Contact Point",
|
|
69
|
+
empty: {
|
|
70
|
+
loading: "Loading contact points...",
|
|
71
|
+
none: "No contact points yet.",
|
|
72
|
+
},
|
|
73
|
+
columns: {
|
|
74
|
+
kind: "Kind",
|
|
75
|
+
value: "Value",
|
|
76
|
+
label: "Label",
|
|
77
|
+
primary: "Primary",
|
|
78
|
+
},
|
|
79
|
+
actions: {
|
|
80
|
+
deleteConfirm: "Delete contact point?",
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
addressesTab: {
|
|
84
|
+
description: "Physical and postal addresses associated with this entity.",
|
|
85
|
+
add: "Add Address",
|
|
86
|
+
empty: {
|
|
87
|
+
loading: "Loading addresses...",
|
|
88
|
+
none: "No addresses yet.",
|
|
89
|
+
},
|
|
90
|
+
columns: {
|
|
91
|
+
label: "Label",
|
|
92
|
+
street: "Street",
|
|
93
|
+
city: "City",
|
|
94
|
+
country: "Country",
|
|
95
|
+
primary: "Primary",
|
|
96
|
+
},
|
|
97
|
+
actions: {
|
|
98
|
+
deleteConfirm: "Delete address?",
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
namedContactsTab: {
|
|
102
|
+
description: "Named people associated with this entity.",
|
|
103
|
+
add: "Add Named Contact",
|
|
104
|
+
empty: {
|
|
105
|
+
loading: "Loading named contacts...",
|
|
106
|
+
none: "No named contacts yet.",
|
|
107
|
+
},
|
|
108
|
+
columns: {
|
|
109
|
+
role: "Role",
|
|
110
|
+
name: "Name",
|
|
111
|
+
title: "Title",
|
|
112
|
+
email: "Email",
|
|
113
|
+
phone: "Phone",
|
|
114
|
+
primary: "Primary",
|
|
115
|
+
},
|
|
116
|
+
actions: {
|
|
117
|
+
deleteConfirm: "Delete named contact?",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
addressDialog: {
|
|
121
|
+
titles: {
|
|
122
|
+
create: "Add Address",
|
|
123
|
+
edit: "Edit Address",
|
|
124
|
+
},
|
|
125
|
+
fields: {
|
|
126
|
+
label: "Label",
|
|
127
|
+
line1: "Line 1",
|
|
128
|
+
line2: "Line 2",
|
|
129
|
+
city: "City",
|
|
130
|
+
region: "Region",
|
|
131
|
+
postalCode: "Postal code",
|
|
132
|
+
country: "Country",
|
|
133
|
+
timezone: "Timezone",
|
|
134
|
+
latitude: "Latitude",
|
|
135
|
+
longitude: "Longitude",
|
|
136
|
+
notes: "Notes",
|
|
137
|
+
},
|
|
138
|
+
placeholders: {
|
|
139
|
+
timezone: "Europe/Istanbul",
|
|
140
|
+
},
|
|
141
|
+
actions: {
|
|
142
|
+
create: "Add Address",
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
contactPointDialog: {
|
|
146
|
+
titles: {
|
|
147
|
+
create: "Add Contact Point",
|
|
148
|
+
edit: "Edit Contact Point",
|
|
149
|
+
},
|
|
150
|
+
fields: {
|
|
151
|
+
kind: "Kind",
|
|
152
|
+
label: "Label",
|
|
153
|
+
value: "Value",
|
|
154
|
+
notes: "Notes",
|
|
155
|
+
},
|
|
156
|
+
placeholders: {
|
|
157
|
+
label: "work, personal...",
|
|
158
|
+
value: "name@example.com",
|
|
159
|
+
},
|
|
160
|
+
actions: {
|
|
161
|
+
create: "Add Contact Point",
|
|
162
|
+
},
|
|
163
|
+
validation: {
|
|
164
|
+
valueRequired: "Value is required",
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
namedContactDialog: {
|
|
168
|
+
titles: {
|
|
169
|
+
create: "Add Named Contact",
|
|
170
|
+
edit: "Edit Named Contact",
|
|
171
|
+
},
|
|
172
|
+
fields: {
|
|
173
|
+
role: "Role",
|
|
174
|
+
name: "Name",
|
|
175
|
+
title: "Title",
|
|
176
|
+
email: "Email",
|
|
177
|
+
phone: "Phone",
|
|
178
|
+
notes: "Notes",
|
|
179
|
+
},
|
|
180
|
+
placeholders: {
|
|
181
|
+
name: "Jane Doe",
|
|
182
|
+
title: "Director of Sales",
|
|
183
|
+
email: "jane@example.com",
|
|
184
|
+
},
|
|
185
|
+
actions: {
|
|
186
|
+
create: "Add Named Contact",
|
|
187
|
+
},
|
|
188
|
+
validation: {
|
|
189
|
+
nameRequired: "Name is required",
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { identityUiEn } from "./en.js";
|
|
2
|
+
export type { AddressLabel, ContactPointKind, IdentityUiMessages, NamedContactRole, } from "./messages.js";
|
|
3
|
+
export { getIdentityUiI18n, type IdentityUiMessageOverrides, IdentityUiMessagesProvider, identityUiMessageDefinitions, resolveIdentityUiMessages, useIdentityUiI18n, useIdentityUiI18nOrDefault, useIdentityUiMessages, useIdentityUiMessagesOrDefault, } from "./provider.js";
|
|
4
|
+
export { identityUiRo } from "./ro.js";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,iBAAiB,EACjB,KAAK,0BAA0B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC5B,yBAAyB,EACzB,iBAAiB,EACjB,0BAA0B,EAC1B,qBAAqB,EACrB,8BAA8B,GAC/B,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { identityUiEn } from "./en.js";
|
|
2
|
+
export { getIdentityUiI18n, IdentityUiMessagesProvider, identityUiMessageDefinitions, resolveIdentityUiMessages, useIdentityUiI18n, useIdentityUiI18nOrDefault, useIdentityUiMessages, useIdentityUiMessagesOrDefault, } from "./provider.js";
|
|
3
|
+
export { identityUiRo } from "./ro.js";
|