@voyant-travel/identity-react 0.137.0 → 0.137.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.
@@ -6,7 +6,7 @@ export declare function useAddressMutation(): {
6
6
  create: import("@tanstack/react-query").UseMutationResult<{
7
7
  entityType: string;
8
8
  entityId: string;
9
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
9
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
10
10
  isPrimary: boolean;
11
11
  id: string;
12
12
  fullText: string | null;
@@ -26,7 +26,7 @@ export declare function useAddressMutation(): {
26
26
  }, Error, {
27
27
  entityType: string;
28
28
  entityId: string;
29
- label?: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting" | undefined;
29
+ label?: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal" | undefined;
30
30
  fullText?: string | null | undefined;
31
31
  line1?: string | null | undefined;
32
32
  line2?: string | null | undefined;
@@ -44,7 +44,7 @@ export declare function useAddressMutation(): {
44
44
  update: import("@tanstack/react-query").UseMutationResult<{
45
45
  entityType: string;
46
46
  entityId: string;
47
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
47
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
48
48
  isPrimary: boolean;
49
49
  id: string;
50
50
  fullText: string | null;
@@ -9,7 +9,7 @@ export function useAddressMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/identity/addresses", addressSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/identity/addresses", addressSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function useAddressMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/identity/addresses/${id}`, addressSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/identity/addresses/${id}`, addressSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function useAddressMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/identity/addresses/${id}`, successEnvelope, { baseUrl, fetcher }, {
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/identity/addresses/${id}`, successEnvelope, { baseUrl, fetcher }, {
32
32
  method: "DELETE",
33
33
  }),
34
34
  onSuccess: (_data, id) => {
@@ -6,7 +6,7 @@ export declare function useAddresses(options?: UseAddressesOptions): import("@ta
6
6
  data: {
7
7
  entityType: string;
8
8
  entityId: string;
9
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
9
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
10
10
  isPrimary: boolean;
11
11
  id: string;
12
12
  fullText: string | null;
@@ -6,7 +6,7 @@ export declare function useContactPointMutation(): {
6
6
  create: import("@tanstack/react-query").UseMutationResult<{
7
7
  entityType: string;
8
8
  entityId: string;
9
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
9
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
10
10
  value: string;
11
11
  isPrimary: boolean;
12
12
  id: string;
@@ -19,7 +19,7 @@ export declare function useContactPointMutation(): {
19
19
  }, Error, {
20
20
  entityType: string;
21
21
  entityId: string;
22
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
22
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
23
23
  value: string;
24
24
  label?: string | null | undefined;
25
25
  normalizedValue?: string | null | undefined;
@@ -30,7 +30,7 @@ export declare function useContactPointMutation(): {
30
30
  update: import("@tanstack/react-query").UseMutationResult<{
31
31
  entityType: string;
32
32
  entityId: string;
33
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
33
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
34
34
  value: string;
35
35
  isPrimary: boolean;
36
36
  id: string;
@@ -9,7 +9,7 @@ export function useContactPointMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/identity/contact-points", contactPointSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/identity/contact-points", contactPointSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function useContactPointMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/identity/contact-points/${id}`, contactPointSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/identity/contact-points/${id}`, contactPointSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function useContactPointMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/identity/contact-points/${id}`, successEnvelope, { baseUrl, fetcher }, {
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/identity/contact-points/${id}`, successEnvelope, { baseUrl, fetcher }, {
32
32
  method: "DELETE",
33
33
  }),
34
34
  onSuccess: (_data, id) => {
@@ -6,7 +6,7 @@ export declare function useContactPoints(options?: UseContactPointsOptions): imp
6
6
  data: {
7
7
  entityType: string;
8
8
  entityId: string;
9
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
9
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
10
10
  value: string;
11
11
  isPrimary: boolean;
12
12
  id: string;
@@ -6,7 +6,7 @@ export declare function useNamedContactMutation(): {
6
6
  create: import("@tanstack/react-query").UseMutationResult<{
7
7
  entityType: string;
8
8
  entityId: string;
9
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
9
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
10
10
  name: string;
11
11
  isPrimary: boolean;
12
12
  id: string;
@@ -21,7 +21,7 @@ export declare function useNamedContactMutation(): {
21
21
  entityType: string;
22
22
  entityId: string;
23
23
  name: string;
24
- role?: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting" | undefined;
24
+ role?: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting" | undefined;
25
25
  title?: string | null | undefined;
26
26
  email?: string | null | undefined;
27
27
  phone?: string | null | undefined;
@@ -32,7 +32,7 @@ export declare function useNamedContactMutation(): {
32
32
  update: import("@tanstack/react-query").UseMutationResult<{
33
33
  entityType: string;
34
34
  entityId: string;
35
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
35
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
36
36
  name: string;
37
37
  isPrimary: boolean;
38
38
  id: string;
@@ -9,7 +9,7 @@ export function useNamedContactMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/identity/named-contacts", namedContactSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/identity/named-contacts", namedContactSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function useNamedContactMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/identity/named-contacts/${id}`, namedContactSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/identity/named-contacts/${id}`, namedContactSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function useNamedContactMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/identity/named-contacts/${id}`, successEnvelope, { baseUrl, fetcher }, {
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/identity/named-contacts/${id}`, successEnvelope, { baseUrl, fetcher }, {
32
32
  method: "DELETE",
33
33
  }),
34
34
  onSuccess: (_data, id) => {
@@ -6,7 +6,7 @@ export declare function useNamedContacts(options?: UseNamedContactsOptions): imp
6
6
  data: {
7
7
  entityType: string;
8
8
  entityId: string;
9
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
9
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
10
10
  name: string;
11
11
  isPrimary: boolean;
12
12
  id: string;
@@ -6,7 +6,7 @@ export declare function getContactPointsQueryOptions(client: FetchWithValidation
6
6
  data: {
7
7
  entityType: string;
8
8
  entityId: string;
9
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
9
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
10
10
  value: string;
11
11
  isPrimary: boolean;
12
12
  id: string;
@@ -24,7 +24,7 @@ export declare function getContactPointsQueryOptions(client: FetchWithValidation
24
24
  data: {
25
25
  entityType: string;
26
26
  entityId: string;
27
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
27
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
28
28
  value: string;
29
29
  isPrimary: boolean;
30
30
  id: string;
@@ -43,7 +43,7 @@ export declare function getContactPointsQueryOptions(client: FetchWithValidation
43
43
  data: {
44
44
  entityType: string;
45
45
  entityId: string;
46
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
46
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
47
47
  value: string;
48
48
  isPrimary: boolean;
49
49
  id: string;
@@ -64,7 +64,7 @@ export declare function getContactPointsQueryOptions(client: FetchWithValidation
64
64
  data: {
65
65
  entityType: string;
66
66
  entityId: string;
67
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
67
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
68
68
  value: string;
69
69
  isPrimary: boolean;
70
70
  id: string;
@@ -85,7 +85,7 @@ export declare function getContactPointsQueryOptions(client: FetchWithValidation
85
85
  export declare function getContactPointQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
86
86
  entityType: string;
87
87
  entityId: string;
88
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
88
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
89
89
  value: string;
90
90
  isPrimary: boolean;
91
91
  id: string;
@@ -98,7 +98,7 @@ export declare function getContactPointQueryOptions(client: FetchWithValidationO
98
98
  }, Error, {
99
99
  entityType: string;
100
100
  entityId: string;
101
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
101
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
102
102
  value: string;
103
103
  isPrimary: boolean;
104
104
  id: string;
@@ -112,7 +112,7 @@ export declare function getContactPointQueryOptions(client: FetchWithValidationO
112
112
  queryFn?: import("@tanstack/react-query").QueryFunction<{
113
113
  entityType: string;
114
114
  entityId: string;
115
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
115
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
116
116
  value: string;
117
117
  isPrimary: boolean;
118
118
  id: string;
@@ -128,7 +128,7 @@ export declare function getContactPointQueryOptions(client: FetchWithValidationO
128
128
  [dataTagSymbol]: {
129
129
  entityType: string;
130
130
  entityId: string;
131
- kind: "email" | "other" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social";
131
+ kind: "email" | "phone" | "mobile" | "whatsapp" | "website" | "sms" | "fax" | "social" | "other";
132
132
  value: string;
133
133
  isPrimary: boolean;
134
134
  id: string;
@@ -146,7 +146,7 @@ export declare function getAddressesQueryOptions(client: FetchWithValidationOpti
146
146
  data: {
147
147
  entityType: string;
148
148
  entityId: string;
149
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
149
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
150
150
  isPrimary: boolean;
151
151
  id: string;
152
152
  fullText: string | null;
@@ -171,7 +171,7 @@ export declare function getAddressesQueryOptions(client: FetchWithValidationOpti
171
171
  data: {
172
172
  entityType: string;
173
173
  entityId: string;
174
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
174
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
175
175
  isPrimary: boolean;
176
176
  id: string;
177
177
  fullText: string | null;
@@ -197,7 +197,7 @@ export declare function getAddressesQueryOptions(client: FetchWithValidationOpti
197
197
  data: {
198
198
  entityType: string;
199
199
  entityId: string;
200
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
200
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
201
201
  isPrimary: boolean;
202
202
  id: string;
203
203
  fullText: string | null;
@@ -225,7 +225,7 @@ export declare function getAddressesQueryOptions(client: FetchWithValidationOpti
225
225
  data: {
226
226
  entityType: string;
227
227
  entityId: string;
228
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
228
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
229
229
  isPrimary: boolean;
230
230
  id: string;
231
231
  fullText: string | null;
@@ -253,7 +253,7 @@ export declare function getAddressesQueryOptions(client: FetchWithValidationOpti
253
253
  export declare function getAddressQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
254
254
  entityType: string;
255
255
  entityId: string;
256
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
256
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
257
257
  isPrimary: boolean;
258
258
  id: string;
259
259
  fullText: string | null;
@@ -273,7 +273,7 @@ export declare function getAddressQueryOptions(client: FetchWithValidationOption
273
273
  }, Error, {
274
274
  entityType: string;
275
275
  entityId: string;
276
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
276
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
277
277
  isPrimary: boolean;
278
278
  id: string;
279
279
  fullText: string | null;
@@ -294,7 +294,7 @@ export declare function getAddressQueryOptions(client: FetchWithValidationOption
294
294
  queryFn?: import("@tanstack/react-query").QueryFunction<{
295
295
  entityType: string;
296
296
  entityId: string;
297
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
297
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
298
298
  isPrimary: boolean;
299
299
  id: string;
300
300
  fullText: string | null;
@@ -317,7 +317,7 @@ export declare function getAddressQueryOptions(client: FetchWithValidationOption
317
317
  [dataTagSymbol]: {
318
318
  entityType: string;
319
319
  entityId: string;
320
- label: "service" | "primary" | "other" | "legal" | "billing" | "shipping" | "mailing" | "meeting";
320
+ label: "other" | "primary" | "billing" | "shipping" | "mailing" | "meeting" | "service" | "legal";
321
321
  isPrimary: boolean;
322
322
  id: string;
323
323
  fullText: string | null;
@@ -342,7 +342,7 @@ export declare function getNamedContactsQueryOptions(client: FetchWithValidation
342
342
  data: {
343
343
  entityType: string;
344
344
  entityId: string;
345
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
345
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
346
346
  name: string;
347
347
  isPrimary: boolean;
348
348
  id: string;
@@ -361,7 +361,7 @@ export declare function getNamedContactsQueryOptions(client: FetchWithValidation
361
361
  data: {
362
362
  entityType: string;
363
363
  entityId: string;
364
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
364
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
365
365
  name: string;
366
366
  isPrimary: boolean;
367
367
  id: string;
@@ -381,7 +381,7 @@ export declare function getNamedContactsQueryOptions(client: FetchWithValidation
381
381
  data: {
382
382
  entityType: string;
383
383
  entityId: string;
384
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
384
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
385
385
  name: string;
386
386
  isPrimary: boolean;
387
387
  id: string;
@@ -403,7 +403,7 @@ export declare function getNamedContactsQueryOptions(client: FetchWithValidation
403
403
  data: {
404
404
  entityType: string;
405
405
  entityId: string;
406
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
406
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
407
407
  name: string;
408
408
  isPrimary: boolean;
409
409
  id: string;
@@ -425,7 +425,7 @@ export declare function getNamedContactsQueryOptions(client: FetchWithValidation
425
425
  export declare function getNamedContactQueryOptions(client: FetchWithValidationOptions, id: string): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
426
426
  entityType: string;
427
427
  entityId: string;
428
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
428
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
429
429
  name: string;
430
430
  isPrimary: boolean;
431
431
  id: string;
@@ -439,7 +439,7 @@ export declare function getNamedContactQueryOptions(client: FetchWithValidationO
439
439
  }, Error, {
440
440
  entityType: string;
441
441
  entityId: string;
442
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
442
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
443
443
  name: string;
444
444
  isPrimary: boolean;
445
445
  id: string;
@@ -454,7 +454,7 @@ export declare function getNamedContactQueryOptions(client: FetchWithValidationO
454
454
  queryFn?: import("@tanstack/react-query").QueryFunction<{
455
455
  entityType: string;
456
456
  entityId: string;
457
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
457
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
458
458
  name: string;
459
459
  isPrimary: boolean;
460
460
  id: string;
@@ -471,7 +471,7 @@ export declare function getNamedContactQueryOptions(client: FetchWithValidationO
471
471
  [dataTagSymbol]: {
472
472
  entityType: string;
473
473
  entityId: string;
474
- role: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting";
474
+ role: "other" | "primary" | "legal" | "general" | "reservations" | "operations" | "front_desk" | "sales" | "emergency" | "accounting";
475
475
  name: string;
476
476
  isPrimary: boolean;
477
477
  id: string;
@@ -17,14 +17,14 @@ export function getContactPointsQueryOptions(client, options = {}) {
17
17
  const { enabled: _enabled = true, ...filters } = options;
18
18
  return queryOptions({
19
19
  queryKey: identityQueryKeys.contactPointsList(filters),
20
- queryFn: () => fetchWithValidation(`/v1/identity/contact-points${toQueryString(filters)}`, contactPointListResponse, client),
20
+ queryFn: () => fetchWithValidation(`/v1/admin/identity/contact-points${toQueryString(filters)}`, contactPointListResponse, client),
21
21
  });
22
22
  }
23
23
  export function getContactPointQueryOptions(client, id) {
24
24
  return queryOptions({
25
25
  queryKey: identityQueryKeys.contactPoint(id),
26
26
  queryFn: async () => {
27
- const { data } = await fetchWithValidation(`/v1/identity/contact-points/${id}`, contactPointSingleResponse, client);
27
+ const { data } = await fetchWithValidation(`/v1/admin/identity/contact-points/${id}`, contactPointSingleResponse, client);
28
28
  return data;
29
29
  },
30
30
  });
@@ -33,14 +33,14 @@ export function getAddressesQueryOptions(client, options = {}) {
33
33
  const { enabled: _enabled = true, ...filters } = options;
34
34
  return queryOptions({
35
35
  queryKey: identityQueryKeys.addressesList(filters),
36
- queryFn: () => fetchWithValidation(`/v1/identity/addresses${toQueryString(filters)}`, addressListResponse, client),
36
+ queryFn: () => fetchWithValidation(`/v1/admin/identity/addresses${toQueryString(filters)}`, addressListResponse, client),
37
37
  });
38
38
  }
39
39
  export function getAddressQueryOptions(client, id) {
40
40
  return queryOptions({
41
41
  queryKey: identityQueryKeys.address(id),
42
42
  queryFn: async () => {
43
- const { data } = await fetchWithValidation(`/v1/identity/addresses/${id}`, addressSingleResponse, client);
43
+ const { data } = await fetchWithValidation(`/v1/admin/identity/addresses/${id}`, addressSingleResponse, client);
44
44
  return data;
45
45
  },
46
46
  });
@@ -49,14 +49,14 @@ export function getNamedContactsQueryOptions(client, options = {}) {
49
49
  const { enabled: _enabled = true, ...filters } = options;
50
50
  return queryOptions({
51
51
  queryKey: identityQueryKeys.namedContactsList(filters),
52
- queryFn: () => fetchWithValidation(`/v1/identity/named-contacts${toQueryString(filters)}`, namedContactListResponse, client),
52
+ queryFn: () => fetchWithValidation(`/v1/admin/identity/named-contacts${toQueryString(filters)}`, namedContactListResponse, client),
53
53
  });
54
54
  }
55
55
  export function getNamedContactQueryOptions(client, id) {
56
56
  return queryOptions({
57
57
  queryKey: identityQueryKeys.namedContact(id),
58
58
  queryFn: async () => {
59
- const { data } = await fetchWithValidation(`/v1/identity/named-contacts/${id}`, namedContactSingleResponse, client);
59
+ const { data } = await fetchWithValidation(`/v1/admin/identity/named-contacts/${id}`, namedContactSingleResponse, client);
60
60
  return data;
61
61
  },
62
62
  });
package/dist/schemas.d.ts CHANGED
@@ -12,7 +12,6 @@ export declare const contactPointRecordSchema: z.ZodObject<{
12
12
  entityId: z.ZodString;
13
13
  kind: z.ZodEnum<{
14
14
  email: "email";
15
- other: "other";
16
15
  phone: "phone";
17
16
  mobile: "mobile";
18
17
  whatsapp: "whatsapp";
@@ -20,6 +19,7 @@ export declare const contactPointRecordSchema: z.ZodObject<{
20
19
  sms: "sms";
21
20
  fax: "fax";
22
21
  social: "social";
22
+ other: "other";
23
23
  }>;
24
24
  value: z.ZodString;
25
25
  isPrimary: z.ZodDefault<z.ZodBoolean>;
@@ -36,14 +36,14 @@ export declare const addressRecordSchema: z.ZodObject<{
36
36
  entityType: z.ZodString;
37
37
  entityId: z.ZodString;
38
38
  label: z.ZodDefault<z.ZodEnum<{
39
- service: "service";
40
- primary: "primary";
41
39
  other: "other";
42
- legal: "legal";
40
+ primary: "primary";
43
41
  billing: "billing";
44
42
  shipping: "shipping";
45
43
  mailing: "mailing";
46
44
  meeting: "meeting";
45
+ service: "service";
46
+ legal: "legal";
47
47
  }>>;
48
48
  isPrimary: z.ZodDefault<z.ZodBoolean>;
49
49
  id: z.ZodString;
@@ -67,12 +67,12 @@ export declare const namedContactRecordSchema: z.ZodObject<{
67
67
  entityType: z.ZodString;
68
68
  entityId: z.ZodString;
69
69
  role: z.ZodDefault<z.ZodEnum<{
70
- primary: "primary";
71
70
  other: "other";
71
+ primary: "primary";
72
72
  legal: "legal";
73
- operations: "operations";
74
73
  general: "general";
75
74
  reservations: "reservations";
75
+ operations: "operations";
76
76
  front_desk: "front_desk";
77
77
  sales: "sales";
78
78
  emergency: "emergency";
@@ -96,7 +96,6 @@ export declare const contactPointListResponse: z.ZodObject<{
96
96
  entityId: z.ZodString;
97
97
  kind: z.ZodEnum<{
98
98
  email: "email";
99
- other: "other";
100
99
  phone: "phone";
101
100
  mobile: "mobile";
102
101
  whatsapp: "whatsapp";
@@ -104,6 +103,7 @@ export declare const contactPointListResponse: z.ZodObject<{
104
103
  sms: "sms";
105
104
  fax: "fax";
106
105
  social: "social";
106
+ other: "other";
107
107
  }>;
108
108
  value: z.ZodString;
109
109
  isPrimary: z.ZodDefault<z.ZodBoolean>;
@@ -125,7 +125,6 @@ export declare const contactPointSingleResponse: z.ZodObject<{
125
125
  entityId: z.ZodString;
126
126
  kind: z.ZodEnum<{
127
127
  email: "email";
128
- other: "other";
129
128
  phone: "phone";
130
129
  mobile: "mobile";
131
130
  whatsapp: "whatsapp";
@@ -133,6 +132,7 @@ export declare const contactPointSingleResponse: z.ZodObject<{
133
132
  sms: "sms";
134
133
  fax: "fax";
135
134
  social: "social";
135
+ other: "other";
136
136
  }>;
137
137
  value: z.ZodString;
138
138
  isPrimary: z.ZodDefault<z.ZodBoolean>;
@@ -150,14 +150,14 @@ export declare const addressListResponse: z.ZodObject<{
150
150
  entityType: z.ZodString;
151
151
  entityId: z.ZodString;
152
152
  label: z.ZodDefault<z.ZodEnum<{
153
- service: "service";
154
- primary: "primary";
155
153
  other: "other";
156
- legal: "legal";
154
+ primary: "primary";
157
155
  billing: "billing";
158
156
  shipping: "shipping";
159
157
  mailing: "mailing";
160
158
  meeting: "meeting";
159
+ service: "service";
160
+ legal: "legal";
161
161
  }>>;
162
162
  isPrimary: z.ZodDefault<z.ZodBoolean>;
163
163
  id: z.ZodString;
@@ -185,14 +185,14 @@ export declare const addressSingleResponse: z.ZodObject<{
185
185
  entityType: z.ZodString;
186
186
  entityId: z.ZodString;
187
187
  label: z.ZodDefault<z.ZodEnum<{
188
- service: "service";
189
- primary: "primary";
190
188
  other: "other";
191
- legal: "legal";
189
+ primary: "primary";
192
190
  billing: "billing";
193
191
  shipping: "shipping";
194
192
  mailing: "mailing";
195
193
  meeting: "meeting";
194
+ service: "service";
195
+ legal: "legal";
196
196
  }>>;
197
197
  isPrimary: z.ZodDefault<z.ZodBoolean>;
198
198
  id: z.ZodString;
@@ -217,12 +217,12 @@ export declare const namedContactListResponse: z.ZodObject<{
217
217
  entityType: z.ZodString;
218
218
  entityId: z.ZodString;
219
219
  role: z.ZodDefault<z.ZodEnum<{
220
- primary: "primary";
221
220
  other: "other";
221
+ primary: "primary";
222
222
  legal: "legal";
223
- operations: "operations";
224
223
  general: "general";
225
224
  reservations: "reservations";
225
+ operations: "operations";
226
226
  front_desk: "front_desk";
227
227
  sales: "sales";
228
228
  emergency: "emergency";
@@ -248,12 +248,12 @@ export declare const namedContactSingleResponse: z.ZodObject<{
248
248
  entityType: z.ZodString;
249
249
  entityId: z.ZodString;
250
250
  role: z.ZodDefault<z.ZodEnum<{
251
- primary: "primary";
252
251
  other: "other";
252
+ primary: "primary";
253
253
  legal: "legal";
254
- operations: "operations";
255
254
  general: "general";
256
255
  reservations: "reservations";
256
+ operations: "operations";
257
257
  front_desk: "front_desk";
258
258
  sales: "sales";
259
259
  emergency: "emergency";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/identity-react",
3
- "version": "0.137.0",
3
+ "version": "0.137.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -71,11 +71,11 @@
71
71
  "react-dom": "^19.0.0",
72
72
  "react-hook-form": "^7.60.0",
73
73
  "zod": "^4.0.0",
74
- "@voyant-travel/bookings-react": "^0.137.0",
75
- "@voyant-travel/relationships-react": "^0.137.0",
76
- "@voyant-travel/identity": "^0.137.0",
77
- "@voyant-travel/inventory-react": "^0.19.0",
78
- "@voyant-travel/distribution-react": "^0.127.0",
74
+ "@voyant-travel/bookings-react": "^0.137.1",
75
+ "@voyant-travel/relationships-react": "^0.137.1",
76
+ "@voyant-travel/identity": "^0.137.1",
77
+ "@voyant-travel/inventory-react": "^0.19.1",
78
+ "@voyant-travel/distribution-react": "^0.127.1",
79
79
  "@voyant-travel/ui": "^0.108.2"
80
80
  },
81
81
  "peerDependenciesMeta": {
@@ -117,14 +117,14 @@
117
117
  "typescript": "^6.0.2",
118
118
  "vitest": "^4.1.2",
119
119
  "zod": "^4.3.6",
120
- "@voyant-travel/bookings-react": "^0.137.0",
121
- "@voyant-travel/relationships-react": "^0.137.0",
120
+ "@voyant-travel/bookings-react": "^0.137.1",
121
+ "@voyant-travel/relationships-react": "^0.137.1",
122
122
  "@voyant-travel/i18n": "^0.109.0",
123
- "@voyant-travel/identity": "^0.137.0",
124
- "@voyant-travel/inventory-react": "^0.19.0",
123
+ "@voyant-travel/identity": "^0.137.1",
124
+ "@voyant-travel/inventory-react": "^0.19.1",
125
125
  "@voyant-travel/react": "^0.104.1",
126
126
  "@voyant-travel/types": "^0.106.0",
127
- "@voyant-travel/distribution-react": "^0.127.0",
127
+ "@voyant-travel/distribution-react": "^0.127.1",
128
128
  "@voyant-travel/ui": "^0.108.2",
129
129
  "@voyant-travel/voyant-typescript-config": "^0.1.0"
130
130
  },
@@ -138,7 +138,7 @@
138
138
  "scripts": {
139
139
  "build": "tsc -p tsconfig.build.json",
140
140
  "clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
141
- "typecheck": "tsc --noEmit",
141
+ "typecheck": "tsc -p tsconfig.typecheck.json",
142
142
  "lint": "biome check src/",
143
143
  "test": "vitest run --passWithNoTests"
144
144
  },