@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,193 @@
|
|
|
1
|
+
export declare const identityUiRo: {
|
|
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=ro.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ro.d.ts","sourceRoot":"","sources":["../../src/i18n/ro.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiMK,CAAA"}
|
package/dist/i18n/ro.js
ADDED
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
export const identityUiRo = {
|
|
2
|
+
common: {
|
|
3
|
+
cancel: "Anuleaza",
|
|
4
|
+
saveChanges: "Salveaza Modificarile",
|
|
5
|
+
primary: "Principal",
|
|
6
|
+
addressLabelLabels: {
|
|
7
|
+
primary: "Principal",
|
|
8
|
+
billing: "Facturare",
|
|
9
|
+
shipping: "Livrare",
|
|
10
|
+
mailing: "Corespondenta",
|
|
11
|
+
meeting: "Intalnire",
|
|
12
|
+
service: "Serviciu",
|
|
13
|
+
legal: "Juridic",
|
|
14
|
+
other: "Altul",
|
|
15
|
+
},
|
|
16
|
+
contactPointKindLabels: {
|
|
17
|
+
email: "Email",
|
|
18
|
+
phone: "Telefon",
|
|
19
|
+
mobile: "Mobil",
|
|
20
|
+
whatsapp: "WhatsApp",
|
|
21
|
+
website: "Website",
|
|
22
|
+
sms: "SMS",
|
|
23
|
+
fax: "Fax",
|
|
24
|
+
social: "Social",
|
|
25
|
+
other: "Altul",
|
|
26
|
+
},
|
|
27
|
+
namedContactRoleLabels: {
|
|
28
|
+
general: "General",
|
|
29
|
+
primary: "Principal",
|
|
30
|
+
reservations: "Rezervari",
|
|
31
|
+
operations: "Operatiuni",
|
|
32
|
+
front_desk: "Receptie",
|
|
33
|
+
sales: "Vanzari",
|
|
34
|
+
emergency: "Urgenta",
|
|
35
|
+
accounting: "Contabilitate",
|
|
36
|
+
legal: "Juridic",
|
|
37
|
+
other: "Altul",
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
identityPage: {
|
|
41
|
+
title: "Identitate",
|
|
42
|
+
description: "Gestioneaza punctele de contact, adresele si contactele nominale atasate oricarei entitati.",
|
|
43
|
+
fields: {
|
|
44
|
+
entityType: "Tip entitate",
|
|
45
|
+
entity: "Entitate",
|
|
46
|
+
customEntityType: "Alt tip de entitate",
|
|
47
|
+
},
|
|
48
|
+
placeholders: {
|
|
49
|
+
entityType: "person, organization, supplier...",
|
|
50
|
+
entity: "Insereaza o referinta pentru tipuri custom",
|
|
51
|
+
},
|
|
52
|
+
entityTypeLabels: {
|
|
53
|
+
person: "Persoana",
|
|
54
|
+
organization: "Organizatie",
|
|
55
|
+
supplier: "Furnizor",
|
|
56
|
+
booking: "Rezervare",
|
|
57
|
+
product: "Produs",
|
|
58
|
+
},
|
|
59
|
+
emptyScope: "Alege o entitate mai sus pentru a vedea inregistrarile de identitate.",
|
|
60
|
+
tabs: {
|
|
61
|
+
contactPoints: "Puncte de contact",
|
|
62
|
+
addresses: "Adrese",
|
|
63
|
+
namedContacts: "Contacte nominale",
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
contactPointsTab: {
|
|
67
|
+
description: "Numere de telefon, emailuri si alte canale de comunicare pentru aceasta entitate.",
|
|
68
|
+
add: "Adauga punct de contact",
|
|
69
|
+
empty: {
|
|
70
|
+
loading: "Se incarca punctele de contact...",
|
|
71
|
+
none: "Nu exista puncte de contact inca.",
|
|
72
|
+
},
|
|
73
|
+
columns: {
|
|
74
|
+
kind: "Tip",
|
|
75
|
+
value: "Valoare",
|
|
76
|
+
label: "Eticheta",
|
|
77
|
+
primary: "Primar",
|
|
78
|
+
},
|
|
79
|
+
actions: {
|
|
80
|
+
deleteConfirm: "Stergi punctul de contact?",
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
addressesTab: {
|
|
84
|
+
description: "Adrese fizice si postale asociate acestei entitati.",
|
|
85
|
+
add: "Adauga adresa",
|
|
86
|
+
empty: {
|
|
87
|
+
loading: "Se incarca adresele...",
|
|
88
|
+
none: "Nu exista adrese inca.",
|
|
89
|
+
},
|
|
90
|
+
columns: {
|
|
91
|
+
label: "Eticheta",
|
|
92
|
+
street: "Strada",
|
|
93
|
+
city: "Oras",
|
|
94
|
+
country: "Tara",
|
|
95
|
+
primary: "Primara",
|
|
96
|
+
},
|
|
97
|
+
actions: {
|
|
98
|
+
deleteConfirm: "Stergi adresa?",
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
namedContactsTab: {
|
|
102
|
+
description: "Persoane nominale asociate acestei entitati.",
|
|
103
|
+
add: "Adauga contact nominal",
|
|
104
|
+
empty: {
|
|
105
|
+
loading: "Se incarca contactele nominale...",
|
|
106
|
+
none: "Nu exista contacte nominale inca.",
|
|
107
|
+
},
|
|
108
|
+
columns: {
|
|
109
|
+
role: "Rol",
|
|
110
|
+
name: "Nume",
|
|
111
|
+
title: "Titlu",
|
|
112
|
+
email: "Email",
|
|
113
|
+
phone: "Telefon",
|
|
114
|
+
primary: "Primar",
|
|
115
|
+
},
|
|
116
|
+
actions: {
|
|
117
|
+
deleteConfirm: "Stergi contactul nominal?",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
addressDialog: {
|
|
121
|
+
titles: {
|
|
122
|
+
create: "Adauga Adresa",
|
|
123
|
+
edit: "Editeaza Adresa",
|
|
124
|
+
},
|
|
125
|
+
fields: {
|
|
126
|
+
label: "Eticheta",
|
|
127
|
+
line1: "Linia 1",
|
|
128
|
+
line2: "Linia 2",
|
|
129
|
+
city: "Oras",
|
|
130
|
+
region: "Regiune",
|
|
131
|
+
postalCode: "Cod postal",
|
|
132
|
+
country: "Tara",
|
|
133
|
+
timezone: "Fus orar",
|
|
134
|
+
latitude: "Latitudine",
|
|
135
|
+
longitude: "Longitudine",
|
|
136
|
+
notes: "Note",
|
|
137
|
+
},
|
|
138
|
+
placeholders: {
|
|
139
|
+
timezone: "Europe/Istanbul",
|
|
140
|
+
},
|
|
141
|
+
actions: {
|
|
142
|
+
create: "Adauga Adresa",
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
contactPointDialog: {
|
|
146
|
+
titles: {
|
|
147
|
+
create: "Adauga Punct de Contact",
|
|
148
|
+
edit: "Editeaza Punctul de Contact",
|
|
149
|
+
},
|
|
150
|
+
fields: {
|
|
151
|
+
kind: "Tip",
|
|
152
|
+
label: "Eticheta",
|
|
153
|
+
value: "Valoare",
|
|
154
|
+
notes: "Note",
|
|
155
|
+
},
|
|
156
|
+
placeholders: {
|
|
157
|
+
label: "serviciu, personal...",
|
|
158
|
+
value: "nume@example.com",
|
|
159
|
+
},
|
|
160
|
+
actions: {
|
|
161
|
+
create: "Adauga Punct de Contact",
|
|
162
|
+
},
|
|
163
|
+
validation: {
|
|
164
|
+
valueRequired: "Valoarea este obligatorie",
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
namedContactDialog: {
|
|
168
|
+
titles: {
|
|
169
|
+
create: "Adauga Contact Nominal",
|
|
170
|
+
edit: "Editeaza Contactul Nominal",
|
|
171
|
+
},
|
|
172
|
+
fields: {
|
|
173
|
+
role: "Rol",
|
|
174
|
+
name: "Nume",
|
|
175
|
+
title: "Titlu",
|
|
176
|
+
email: "Email",
|
|
177
|
+
phone: "Telefon",
|
|
178
|
+
notes: "Note",
|
|
179
|
+
},
|
|
180
|
+
placeholders: {
|
|
181
|
+
name: "Jane Doe",
|
|
182
|
+
title: "Director de Vanzari",
|
|
183
|
+
email: "jane@example.com",
|
|
184
|
+
},
|
|
185
|
+
actions: {
|
|
186
|
+
create: "Adauga Contact Nominal",
|
|
187
|
+
},
|
|
188
|
+
validation: {
|
|
189
|
+
nameRequired: "Numele este obligatoriu",
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { useVoyantIdentityContext, type VoyantIdentityContextValue, VoyantIdentityProvider, type VoyantIdentityProviderProps, } from "./provider.js";
|
|
4
|
+
export { type AddressesListFilters, type ContactPointsListFilters, identityQueryKeys, type NamedContactsListFilters, } from "./query-keys.js";
|
|
5
|
+
export { getAddressesQueryOptions, getAddressQueryOptions, getContactPointQueryOptions, getContactPointsQueryOptions, getNamedContactQueryOptions, getNamedContactsQueryOptions, } from "./query-options.js";
|
|
6
|
+
export * from "./schemas.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,GACnB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EACL,wBAAwB,EACxB,KAAK,0BAA0B,EAC/B,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,wBAAwB,GAC9B,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,oBAAoB,CAAA;AAC3B,cAAc,cAAc,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { useVoyantIdentityContext, VoyantIdentityProvider, } from "./provider.js";
|
|
4
|
+
export { identityQueryKeys, } from "./query-keys.js";
|
|
5
|
+
export { getAddressesQueryOptions, getAddressQueryOptions, getContactPointQueryOptions, getContactPointsQueryOptions, getNamedContactQueryOptions, getNamedContactsQueryOptions, } from "./query-options.js";
|
|
6
|
+
export * from "./schemas.js";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantIdentityContext, type VoyantReactContextValue as VoyantIdentityContextValue, VoyantReactProvider as VoyantIdentityProvider, type VoyantReactProviderProps as VoyantIdentityProviderProps, } from "@voyant-travel/react";
|
|
2
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,wBAAwB,EACjD,KAAK,uBAAuB,IAAI,0BAA0B,EAC1D,mBAAmB,IAAI,sBAAsB,EAC7C,KAAK,wBAAwB,IAAI,2BAA2B,GAC7D,MAAM,sBAAsB,CAAA"}
|
package/dist/provider.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantIdentityContext, VoyantReactProvider as VoyantIdentityProvider, } from "@voyant-travel/react";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface ContactPointsListFilters {
|
|
2
|
+
entityType?: string | undefined;
|
|
3
|
+
entityId?: string | undefined;
|
|
4
|
+
kind?: string | undefined;
|
|
5
|
+
isPrimary?: boolean | undefined;
|
|
6
|
+
search?: string | undefined;
|
|
7
|
+
limit?: number | undefined;
|
|
8
|
+
offset?: number | undefined;
|
|
9
|
+
}
|
|
10
|
+
export interface AddressesListFilters {
|
|
11
|
+
entityType?: string | undefined;
|
|
12
|
+
entityId?: string | undefined;
|
|
13
|
+
label?: string | undefined;
|
|
14
|
+
isPrimary?: boolean | undefined;
|
|
15
|
+
search?: string | undefined;
|
|
16
|
+
limit?: number | undefined;
|
|
17
|
+
offset?: number | undefined;
|
|
18
|
+
}
|
|
19
|
+
export interface NamedContactsListFilters {
|
|
20
|
+
entityType?: string | undefined;
|
|
21
|
+
entityId?: string | undefined;
|
|
22
|
+
role?: string | undefined;
|
|
23
|
+
isPrimary?: boolean | undefined;
|
|
24
|
+
search?: string | undefined;
|
|
25
|
+
limit?: number | undefined;
|
|
26
|
+
offset?: number | undefined;
|
|
27
|
+
}
|
|
28
|
+
export declare const identityQueryKeys: {
|
|
29
|
+
all: readonly ["identity"];
|
|
30
|
+
contactPoints: () => readonly ["identity", "contact-points"];
|
|
31
|
+
contactPointsList: (filters: ContactPointsListFilters) => readonly ["identity", "contact-points", ContactPointsListFilters];
|
|
32
|
+
contactPoint: (id: string) => readonly ["identity", "contact-points", string];
|
|
33
|
+
addresses: () => readonly ["identity", "addresses"];
|
|
34
|
+
addressesList: (filters: AddressesListFilters) => readonly ["identity", "addresses", AddressesListFilters];
|
|
35
|
+
address: (id: string) => readonly ["identity", "addresses", string];
|
|
36
|
+
namedContacts: () => readonly ["identity", "named-contacts"];
|
|
37
|
+
namedContactsList: (filters: NamedContactsListFilters) => readonly ["identity", "named-contacts", NamedContactsListFilters];
|
|
38
|
+
namedContact: (id: string) => readonly ["identity", "named-contacts", string];
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=query-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,MAAM,WAAW,wBAAwB;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC5B;AAED,eAAO,MAAM,iBAAiB;;;iCAGC,wBAAwB;uBAElC,MAAM;;6BAEA,oBAAoB;kBAE/B,MAAM;;iCAES,wBAAwB;uBAElC,MAAM;CAC1B,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const identityQueryKeys = {
|
|
2
|
+
all: ["identity"],
|
|
3
|
+
contactPoints: () => [...identityQueryKeys.all, "contact-points"],
|
|
4
|
+
contactPointsList: (filters) => [...identityQueryKeys.contactPoints(), filters],
|
|
5
|
+
contactPoint: (id) => [...identityQueryKeys.contactPoints(), id],
|
|
6
|
+
addresses: () => [...identityQueryKeys.all, "addresses"],
|
|
7
|
+
addressesList: (filters) => [...identityQueryKeys.addresses(), filters],
|
|
8
|
+
address: (id) => [...identityQueryKeys.addresses(), id],
|
|
9
|
+
namedContacts: () => [...identityQueryKeys.all, "named-contacts"],
|
|
10
|
+
namedContactsList: (filters) => [...identityQueryKeys.namedContacts(), filters],
|
|
11
|
+
namedContact: (id) => [...identityQueryKeys.namedContacts(), id],
|
|
12
|
+
};
|