@voyant-travel/distribution-react 0.127.0 → 0.127.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.
Files changed (28) hide show
  1. package/dist/components/booking-link-detail-page.js +1 -1
  2. package/dist/components/commission-rule-detail-page.d.ts.map +1 -1
  3. package/dist/components/commission-rule-detail-page.js +1 -1
  4. package/dist/components/contract-detail-page.js +1 -1
  5. package/dist/components/distribution-tabs-primary.js +7 -7
  6. package/dist/components/distribution-tabs-secondary.js +7 -7
  7. package/dist/components/mapping-detail-page.d.ts.map +1 -1
  8. package/dist/components/mapping-detail-page.js +1 -1
  9. package/dist/components/webhook-event-detail-page.js +1 -1
  10. package/dist/external-refs/hooks/use-external-ref-mutation.js +3 -3
  11. package/dist/external-refs/query-options.js +2 -2
  12. package/dist/hooks/use-channel-mutation.js +3 -3
  13. package/dist/query-options.d.ts.map +1 -1
  14. package/dist/query-options.js +18 -18
  15. package/dist/suppliers/hooks/use-supplier-mutation.d.ts +2 -2
  16. package/dist/suppliers/hooks/use-supplier-mutation.js +3 -3
  17. package/dist/suppliers/hooks/use-supplier-note-mutation.js +1 -1
  18. package/dist/suppliers/hooks/use-supplier-rate-mutation.js +3 -3
  19. package/dist/suppliers/hooks/use-supplier-service-mutation.d.ts +2 -2
  20. package/dist/suppliers/hooks/use-supplier-service-mutation.js +3 -3
  21. package/dist/suppliers/hooks/use-supplier-services.d.ts +1 -1
  22. package/dist/suppliers/hooks/use-supplier.d.ts +1 -1
  23. package/dist/suppliers/hooks/use-suppliers.d.ts +1 -1
  24. package/dist/suppliers/query-options.d.ts +12 -12
  25. package/dist/suppliers/query-options.d.ts.map +1 -1
  26. package/dist/suppliers/query-options.js +5 -5
  27. package/dist/suppliers/schemas.d.ts +16 -16
  28. package/package.json +12 -12
@@ -29,7 +29,7 @@ export function BookingLinkDetailPage({ id, className, onBack = noop, onDeleted
29
29
  enabled: Boolean(link?.bookingId),
30
30
  });
31
31
  const remove = useMutation({
32
- mutationFn: () => fetchWithValidation(`/v1/distribution/booking-links/${id}`, successEnvelope, client, {
32
+ mutationFn: () => fetchWithValidation(`/v1/admin/distribution/booking-links/${id}`, successEnvelope, client, {
33
33
  method: "DELETE", // i18n-literal-ok HTTP method
34
34
  }),
35
35
  onSuccess: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"commission-rule-detail-page.d.ts","sourceRoot":"","sources":["../../src/components/commission-rule-detail-page.tsx"],"names":[],"mappings":"AAyBA,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C;AAID,wBAAgB,wBAAwB,CAAC,EACvC,EAAE,EACF,SAAS,EACT,MAAa,EACb,SAAgB,EAChB,cAAqB,EACrB,aAAoB,GACrB,EAAE,6BAA6B,2CAgK/B"}
1
+ {"version":3,"file":"commission-rule-detail-page.d.ts","sourceRoot":"","sources":["../../src/components/commission-rule-detail-page.tsx"],"names":[],"mappings":"AAyBA,MAAM,WAAW,6BAA6B;IAC5C,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IAC7C,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C;AAID,wBAAgB,wBAAwB,CAAC,EACvC,EAAE,EACF,SAAS,EACT,MAAa,EACb,SAAgB,EAChB,cAAqB,EACrB,aAAoB,GACrB,EAAE,6BAA6B,2CAqK/B"}
@@ -35,7 +35,7 @@ export function CommissionRuleDetailPage({ id, className, onBack = noop, onDelet
35
35
  enabled: Boolean(rule?.productId),
36
36
  });
37
37
  const remove = useMutation({
38
- mutationFn: () => fetchWithValidation(`/v1/distribution/commission-rules/${id}`, successEnvelope, client, {
38
+ mutationFn: () => fetchWithValidation(`/v1/admin/distribution/commission-rules/${id}`, successEnvelope, client, {
39
39
  method: "DELETE", // i18n-literal-ok HTTP method
40
40
  }),
41
41
  onSuccess: () => {
@@ -34,7 +34,7 @@ export function ContractDetailPage({ id, className, onBack = noop, onDeleted = n
34
34
  });
35
35
  const productsQuery = useQuery(getProductsQueryOptions(client, { limit: 50, offset: 0 }));
36
36
  const remove = useMutation({
37
- mutationFn: () => fetchWithValidation(`/v1/distribution/contracts/${id}`, successEnvelope, client, {
37
+ mutationFn: () => fetchWithValidation(`/v1/admin/distribution/contracts/${id}`, successEnvelope, client, {
38
38
  method: "DELETE", // i18n-literal-ok HTTP method
39
39
  }),
40
40
  onSuccess: () => {
@@ -18,7 +18,7 @@ export function DistributionChannelsTab(props) {
18
18
  const countLabel = formatDistributionCount(messages, "channel", selectedRows.length);
19
19
  return (_jsxs(SelectionActionBar, { selectedCount: selectedRows.length, onClear: clearSelection, selectionSummary: getSelectionSummary(selectedRows.length, messages.common.selectionSummary), clearLabel: messages.common.clearSelection, children: [_jsx(ConfirmActionButton, { buttonLabel: tab.actions.activate.button, confirmLabel: tab.actions.activate.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.activate.title, { countLabel }), description: tab.actions.activate.description, disabled: props.bulkActionTarget === "channels-activate", onConfirm: () => props.handleBulkUpdate({
20
20
  ids: selectedRows.map((row) => row.original.id),
21
- endpoint: "/v1/distribution/channels",
21
+ endpoint: "/v1/admin/distribution/channels",
22
22
  target: "channels-activate",
23
23
  noun: "channel",
24
24
  payload: { status: "active" },
@@ -26,7 +26,7 @@ export function DistributionChannelsTab(props) {
26
26
  clearSelection,
27
27
  }) }), _jsx(ConfirmActionButton, { buttonLabel: tab.actions.archive.button, confirmLabel: tab.actions.archive.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.archive.title, { countLabel }), description: tab.actions.archive.description, disabled: props.bulkActionTarget === "channels-archive", onConfirm: () => props.handleBulkUpdate({
28
28
  ids: selectedRows.map((row) => row.original.id),
29
- endpoint: "/v1/distribution/channels",
29
+ endpoint: "/v1/admin/distribution/channels",
30
30
  target: "channels-archive",
31
31
  noun: "channel",
32
32
  payload: { status: "archived" },
@@ -34,7 +34,7 @@ export function DistributionChannelsTab(props) {
34
34
  clearSelection,
35
35
  }) }), _jsx(ConfirmActionButton, { buttonLabel: tab.actions.delete.button, confirmLabel: tab.actions.delete.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.delete.title, { countLabel }), description: tab.actions.delete.description, disabled: props.bulkActionTarget === "channels-delete", variant: "destructive", confirmVariant: "destructive", onConfirm: () => props.handleBulkDelete({
36
36
  ids: selectedRows.map((row) => row.original.id),
37
- endpoint: "/v1/distribution/channels",
37
+ endpoint: "/v1/admin/distribution/channels",
38
38
  target: "channels-delete",
39
39
  noun: "channel",
40
40
  clearSelection,
@@ -49,7 +49,7 @@ export function DistributionContractsTab(props) {
49
49
  const countLabel = formatDistributionCount(messages, "contract", selectedRows.length);
50
50
  return (_jsxs(SelectionActionBar, { selectedCount: selectedRows.length, onClear: clearSelection, selectionSummary: getSelectionSummary(selectedRows.length, messages.common.selectionSummary), clearLabel: messages.common.clearSelection, children: [_jsx(ConfirmActionButton, { buttonLabel: tab.actions.activate.button, confirmLabel: tab.actions.activate.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.activate.title, { countLabel }), description: tab.actions.activate.description, disabled: props.bulkActionTarget === "contracts-activate", onConfirm: () => props.handleBulkUpdate({
51
51
  ids: selectedRows.map((row) => row.original.id),
52
- endpoint: "/v1/distribution/contracts",
52
+ endpoint: "/v1/admin/distribution/contracts",
53
53
  target: "contracts-activate",
54
54
  noun: "contract",
55
55
  payload: { status: "active" },
@@ -57,7 +57,7 @@ export function DistributionContractsTab(props) {
57
57
  clearSelection,
58
58
  }) }), _jsx(ConfirmActionButton, { buttonLabel: tab.actions.expire.button, confirmLabel: tab.actions.expire.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.expire.title, { countLabel }), description: tab.actions.expire.description, disabled: props.bulkActionTarget === "contracts-expire", onConfirm: () => props.handleBulkUpdate({
59
59
  ids: selectedRows.map((row) => row.original.id),
60
- endpoint: "/v1/distribution/contracts",
60
+ endpoint: "/v1/admin/distribution/contracts",
61
61
  target: "contracts-expire",
62
62
  noun: "contract",
63
63
  payload: { status: "expired" },
@@ -65,7 +65,7 @@ export function DistributionContractsTab(props) {
65
65
  clearSelection,
66
66
  }) }), _jsx(ConfirmActionButton, { buttonLabel: tab.actions.delete.button, confirmLabel: tab.actions.delete.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.delete.title, { countLabel }), description: tab.actions.delete.description, disabled: props.bulkActionTarget === "contracts-delete", variant: "destructive", confirmVariant: "destructive", onConfirm: () => props.handleBulkDelete({
67
67
  ids: selectedRows.map((row) => row.original.id),
68
- endpoint: "/v1/distribution/contracts",
68
+ endpoint: "/v1/admin/distribution/contracts",
69
69
  target: "contracts-delete",
70
70
  noun: "contract",
71
71
  clearSelection,
@@ -80,7 +80,7 @@ export function DistributionCommissionsTab(props) {
80
80
  const countLabel = formatDistributionCount(messages, "commissionRule", selectedRows.length);
81
81
  return (_jsx(SelectionActionBar, { selectedCount: selectedRows.length, onClear: clearSelection, selectionSummary: getSelectionSummary(selectedRows.length, messages.common.selectionSummary), clearLabel: messages.common.clearSelection, children: _jsx(ConfirmActionButton, { buttonLabel: tab.actions.delete.button, confirmLabel: tab.actions.delete.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.delete.title, { countLabel }), description: tab.actions.delete.description, disabled: props.bulkActionTarget === "commission-rules-delete", variant: "destructive", confirmVariant: "destructive", onConfirm: () => props.handleBulkDelete({
82
82
  ids: selectedRows.map((row) => row.original.id),
83
- endpoint: "/v1/distribution/commission-rules",
83
+ endpoint: "/v1/admin/distribution/commission-rules",
84
84
  target: "commission-rules-delete",
85
85
  noun: "commissionRule",
86
86
  clearSelection,
@@ -18,7 +18,7 @@ export function DistributionMappingsTab(props) {
18
18
  const countLabel = formatDistributionCount(messages, "mapping", selectedRows.length);
19
19
  return (_jsxs(SelectionActionBar, { selectedCount: selectedRows.length, onClear: clearSelection, selectionSummary: getSelectionSummary(selectedRows.length, messages.common.selectionSummary), clearLabel: messages.common.clearSelection, children: [_jsx(ConfirmActionButton, { buttonLabel: tab.actions.activate.button, confirmLabel: tab.actions.activate.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.activate.title, { countLabel }), description: tab.actions.activate.description, disabled: props.bulkActionTarget === "mappings-activate", onConfirm: () => props.handleBulkUpdate({
20
20
  ids: selectedRows.map((row) => row.original.id),
21
- endpoint: "/v1/distribution/product-mappings",
21
+ endpoint: "/v1/admin/distribution/product-mappings",
22
22
  target: "mappings-activate",
23
23
  noun: "mapping",
24
24
  payload: { active: true },
@@ -26,7 +26,7 @@ export function DistributionMappingsTab(props) {
26
26
  clearSelection,
27
27
  }) }), _jsx(ConfirmActionButton, { buttonLabel: tab.actions.deactivate.button, confirmLabel: tab.actions.deactivate.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.deactivate.title, { countLabel }), description: tab.actions.deactivate.description, disabled: props.bulkActionTarget === "mappings-deactivate", onConfirm: () => props.handleBulkUpdate({
28
28
  ids: selectedRows.map((row) => row.original.id),
29
- endpoint: "/v1/distribution/product-mappings",
29
+ endpoint: "/v1/admin/distribution/product-mappings",
30
30
  target: "mappings-deactivate",
31
31
  noun: "mapping",
32
32
  payload: { active: false },
@@ -34,7 +34,7 @@ export function DistributionMappingsTab(props) {
34
34
  clearSelection,
35
35
  }) }), _jsx(ConfirmActionButton, { buttonLabel: tab.actions.delete.button, confirmLabel: tab.actions.delete.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.delete.title, { countLabel }), description: tab.actions.delete.description, disabled: props.bulkActionTarget === "mappings-delete", variant: "destructive", confirmVariant: "destructive", onConfirm: () => props.handleBulkDelete({
36
36
  ids: selectedRows.map((row) => row.original.id),
37
- endpoint: "/v1/distribution/product-mappings",
37
+ endpoint: "/v1/admin/distribution/product-mappings",
38
38
  target: "mappings-delete",
39
39
  noun: "mapping",
40
40
  clearSelection,
@@ -49,7 +49,7 @@ export function DistributionBookingLinksTab(props) {
49
49
  const countLabel = formatDistributionCount(messages, "bookingLink", selectedRows.length);
50
50
  return (_jsx(SelectionActionBar, { selectedCount: selectedRows.length, onClear: clearSelection, selectionSummary: getSelectionSummary(selectedRows.length, messages.common.selectionSummary), clearLabel: messages.common.clearSelection, children: _jsx(ConfirmActionButton, { buttonLabel: tab.actions.delete.button, confirmLabel: tab.actions.delete.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.delete.title, { countLabel }), description: tab.actions.delete.description, disabled: props.bulkActionTarget === "booking-links-delete", variant: "destructive", confirmVariant: "destructive", onConfirm: () => props.handleBulkDelete({
51
51
  ids: selectedRows.map((row) => row.original.id),
52
- endpoint: "/v1/distribution/booking-links",
52
+ endpoint: "/v1/admin/distribution/booking-links",
53
53
  target: "booking-links-delete",
54
54
  noun: "bookingLink",
55
55
  clearSelection,
@@ -64,7 +64,7 @@ export function DistributionWebhooksTab(props) {
64
64
  const countLabel = formatDistributionCount(messages, "webhookEvent", selectedRows.length);
65
65
  return (_jsxs(SelectionActionBar, { selectedCount: selectedRows.length, onClear: clearSelection, selectionSummary: getSelectionSummary(selectedRows.length, messages.common.selectionSummary), clearLabel: messages.common.clearSelection, children: [_jsx(ConfirmActionButton, { buttonLabel: tab.actions.markProcessed.button, confirmLabel: tab.actions.markProcessed.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.markProcessed.title, { countLabel }), description: tab.actions.markProcessed.description, disabled: props.bulkActionTarget === "webhook-events-processed", onConfirm: () => props.handleBulkUpdate({
66
66
  ids: selectedRows.map((row) => row.original.id),
67
- endpoint: "/v1/distribution/webhook-events",
67
+ endpoint: "/v1/admin/distribution/webhook-events",
68
68
  target: "webhook-events-processed",
69
69
  noun: "webhookEvent",
70
70
  payload: { status: "processed" },
@@ -72,7 +72,7 @@ export function DistributionWebhooksTab(props) {
72
72
  clearSelection,
73
73
  }) }), _jsx(ConfirmActionButton, { buttonLabel: tab.actions.ignore.button, confirmLabel: tab.actions.ignore.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.ignore.title, { countLabel }), description: tab.actions.ignore.description, disabled: props.bulkActionTarget === "webhook-events-ignored", onConfirm: () => props.handleBulkUpdate({
74
74
  ids: selectedRows.map((row) => row.original.id),
75
- endpoint: "/v1/distribution/webhook-events",
75
+ endpoint: "/v1/admin/distribution/webhook-events",
76
76
  target: "webhook-events-ignored",
77
77
  noun: "webhookEvent",
78
78
  payload: { status: "ignored" },
@@ -80,7 +80,7 @@ export function DistributionWebhooksTab(props) {
80
80
  clearSelection,
81
81
  }) }), _jsx(ConfirmActionButton, { buttonLabel: tab.actions.delete.button, confirmLabel: tab.actions.delete.confirm, cancelLabel: messages.common.cancel, title: formatMessage(tab.actions.delete.title, { countLabel }), description: tab.actions.delete.description, disabled: props.bulkActionTarget === "webhook-events-delete", variant: "destructive", confirmVariant: "destructive", onConfirm: () => props.handleBulkDelete({
82
82
  ids: selectedRows.map((row) => row.original.id),
83
- endpoint: "/v1/distribution/webhook-events",
83
+ endpoint: "/v1/admin/distribution/webhook-events",
84
84
  target: "webhook-events-delete",
85
85
  noun: "webhookEvent",
86
86
  clearSelection,
@@ -1 +1 @@
1
- {"version":3,"file":"mapping-detail-page.d.ts","sourceRoot":"","sources":["../../src/components/mapping-detail-page.tsx"],"names":[],"mappings":"AAwBA,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C;AAID,wBAAgB,iBAAiB,CAAC,EAChC,EAAE,EACF,SAAS,EACT,MAAa,EACb,SAAgB,EAChB,aAAoB,EACpB,aAAoB,GACrB,EAAE,sBAAsB,2CAoIxB"}
1
+ {"version":3,"file":"mapping-detail-page.d.ts","sourceRoot":"","sources":["../../src/components/mapping-detail-page.tsx"],"names":[],"mappings":"AAwBA,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5C;AAID,wBAAgB,iBAAiB,CAAC,EAChC,EAAE,EACF,SAAS,EACT,MAAa,EACb,SAAgB,EAChB,aAAoB,EACpB,aAAoB,GACrB,EAAE,sBAAsB,2CAyIxB"}
@@ -29,7 +29,7 @@ export function MappingDetailPage({ id, className, onBack = noop, onDeleted = no
29
29
  enabled: Boolean(mapping?.productId),
30
30
  });
31
31
  const remove = useMutation({
32
- mutationFn: () => fetchWithValidation(`/v1/distribution/product-mappings/${id}`, successEnvelope, client, {
32
+ mutationFn: () => fetchWithValidation(`/v1/admin/distribution/product-mappings/${id}`, successEnvelope, client, {
33
33
  method: "DELETE", // i18n-literal-ok HTTP method
34
34
  }),
35
35
  onSuccess: () => {
@@ -24,7 +24,7 @@ export function WebhookEventDetailPage({ id, className, onBack = noop, onDeleted
24
24
  enabled: Boolean(event?.channelId),
25
25
  });
26
26
  const remove = useMutation({
27
- mutationFn: () => fetchWithValidation(`/v1/distribution/webhook-events/${id}`, successEnvelope, client, {
27
+ mutationFn: () => fetchWithValidation(`/v1/admin/distribution/webhook-events/${id}`, successEnvelope, client, {
28
28
  method: "DELETE", // i18n-literal-ok HTTP method
29
29
  }),
30
30
  onSuccess: () => {
@@ -9,7 +9,7 @@ export function useExternalRefMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/external-refs/refs", externalRefSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/external-refs/refs", externalRefSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function useExternalRefMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/external-refs/refs/${id}`, externalRefSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/external-refs/refs/${id}`, externalRefSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function useExternalRefMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/external-refs/refs/${id}`, successEnvelope, { baseUrl, fetcher }, {
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/external-refs/refs/${id}`, successEnvelope, { baseUrl, fetcher }, {
32
32
  method: "DELETE",
33
33
  }),
34
34
  onSuccess: (_data, id) => {
@@ -17,14 +17,14 @@ export function getExternalRefsQueryOptions(client, options = {}) {
17
17
  const { enabled: _enabled = true, ...filters } = options;
18
18
  return queryOptions({
19
19
  queryKey: externalRefsQueryKeys.refsList(filters),
20
- queryFn: () => fetchWithValidation(`/v1/external-refs/refs${toQueryString(filters)}`, externalRefListResponse, client),
20
+ queryFn: () => fetchWithValidation(`/v1/admin/external-refs/refs${toQueryString(filters)}`, externalRefListResponse, client),
21
21
  });
22
22
  }
23
23
  export function getExternalRefQueryOptions(client, id) {
24
24
  return queryOptions({
25
25
  queryKey: externalRefsQueryKeys.ref(id),
26
26
  queryFn: async () => {
27
- const { data } = await fetchWithValidation(`/v1/external-refs/refs/${id}`, externalRefSingleResponse, client);
27
+ const { data } = await fetchWithValidation(`/v1/admin/external-refs/refs/${id}`, externalRefSingleResponse, client);
28
28
  return data;
29
29
  },
30
30
  });
@@ -20,7 +20,7 @@ export function useChannelMutation() {
20
20
  const queryClient = useQueryClient();
21
21
  const create = useMutation({
22
22
  mutationFn: async (input) => {
23
- const { data } = await fetchWithValidation("/v1/distribution/channels", channelSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
23
+ const { data } = await fetchWithValidation("/v1/admin/distribution/channels", channelSingleResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
24
24
  return data;
25
25
  },
26
26
  onSuccess: (data) => {
@@ -30,7 +30,7 @@ export function useChannelMutation() {
30
30
  });
31
31
  const update = useMutation({
32
32
  mutationFn: async ({ id, input }) => {
33
- const { data } = await fetchWithValidation(`/v1/distribution/channels/${id}`, channelSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
33
+ const { data } = await fetchWithValidation(`/v1/admin/distribution/channels/${id}`, channelSingleResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
34
34
  return data;
35
35
  },
36
36
  onSuccess: (data) => {
@@ -39,7 +39,7 @@ export function useChannelMutation() {
39
39
  },
40
40
  });
41
41
  const remove = useMutation({
42
- mutationFn: async (id) => fetchWithValidation(`/v1/distribution/channels/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
42
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/distribution/channels/${id}`, successEnvelope, { baseUrl, fetcher }, { method: "DELETE" }),
43
43
  onSuccess: (_data, id) => {
44
44
  void queryClient.invalidateQueries({ queryKey: distributionQueryKeys.channels() });
45
45
  queryClient.removeQueries({ queryKey: distributionQueryKeys.channel(id) });
@@ -1 +1 @@
1
- {"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../src/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AA4B5E,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYlC;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,0BAA0B,EAClC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS;;;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();
18
18
  appendPagination(params, filters);
19
19
  const qs = params.toString();
20
- return fetchWithValidation(`/v1/suppliers${qs ? `?${qs}` : ""}`, supplierListResponse, client);
20
+ return fetchWithValidation(`/v1/admin/suppliers${qs ? `?${qs}` : ""}`, supplierListResponse, client);
21
21
  },
22
22
  });
23
23
  }
@@ -27,7 +27,7 @@ export function getSupplierQueryOptions(client, id) {
27
27
  queryFn: async () => {
28
28
  if (!id)
29
29
  throw new Error("getSupplierQueryOptions requires an id");
30
- return fetchWithValidation(`/v1/suppliers/${id}`, supplierSingleResponse, client);
30
+ return fetchWithValidation(`/v1/admin/suppliers/${id}`, supplierSingleResponse, client);
31
31
  },
32
32
  });
33
33
  }
@@ -39,7 +39,7 @@ export function getProductsQueryOptions(client, options = {}) {
39
39
  const params = new URLSearchParams();
40
40
  appendPagination(params, filters);
41
41
  const qs = params.toString();
42
- return fetchWithValidation(`/v1/products${qs ? `?${qs}` : ""}`, productListResponse, client);
42
+ return fetchWithValidation(`/v1/admin/products${qs ? `?${qs}` : ""}`, productListResponse, client);
43
43
  },
44
44
  });
45
45
  }
@@ -49,7 +49,7 @@ export function getProductQueryOptions(client, id) {
49
49
  queryFn: async () => {
50
50
  if (!id)
51
51
  throw new Error("getProductQueryOptions requires an id");
52
- return fetchWithValidation(`/v1/products/${id}`, productSingleResponse, client);
52
+ return fetchWithValidation(`/v1/admin/products/${id}`, productSingleResponse, client);
53
53
  },
54
54
  });
55
55
  }
@@ -61,7 +61,7 @@ export function getBookingsQueryOptions(client, options = {}) {
61
61
  const params = new URLSearchParams();
62
62
  appendPagination(params, filters);
63
63
  const qs = params.toString();
64
- return fetchWithValidation(`/v1/bookings${qs ? `?${qs}` : ""}`, bookingListResponse, client);
64
+ return fetchWithValidation(`/v1/admin/bookings${qs ? `?${qs}` : ""}`, bookingListResponse, client);
65
65
  },
66
66
  });
67
67
  }
@@ -71,7 +71,7 @@ export function getBookingQueryOptions(client, id) {
71
71
  queryFn: async () => {
72
72
  if (!id)
73
73
  throw new Error("getBookingQueryOptions requires an id");
74
- return fetchWithValidation(`/v1/bookings/${id}`, bookingSingleResponse, client);
74
+ return fetchWithValidation(`/v1/admin/bookings/${id}`, bookingSingleResponse, client);
75
75
  },
76
76
  });
77
77
  }
@@ -83,7 +83,7 @@ export function getChannelsQueryOptions(client, options = {}) {
83
83
  const params = new URLSearchParams();
84
84
  appendPagination(params, filters);
85
85
  const qs = params.toString();
86
- return fetchWithValidation(`/v1/distribution/channels${qs ? `?${qs}` : ""}`, channelListResponse, client);
86
+ return fetchWithValidation(`/v1/admin/distribution/channels${qs ? `?${qs}` : ""}`, channelListResponse, client);
87
87
  },
88
88
  });
89
89
  }
@@ -93,7 +93,7 @@ export function getChannelQueryOptions(client, id) {
93
93
  queryFn: async () => {
94
94
  if (!id)
95
95
  throw new Error("getChannelQueryOptions requires an id");
96
- return fetchWithValidation(`/v1/distribution/channels/${id}`, channelSingleResponse, client);
96
+ return fetchWithValidation(`/v1/admin/distribution/channels/${id}`, channelSingleResponse, client);
97
97
  },
98
98
  });
99
99
  }
@@ -107,7 +107,7 @@ export function getContractsQueryOptions(client, options = {}) {
107
107
  params.set("channelId", filters.channelId);
108
108
  appendPagination(params, filters);
109
109
  const qs = params.toString();
110
- return fetchWithValidation(`/v1/distribution/contracts${qs ? `?${qs}` : ""}`, channelContractListResponse, client);
110
+ return fetchWithValidation(`/v1/admin/distribution/contracts${qs ? `?${qs}` : ""}`, channelContractListResponse, client);
111
111
  },
112
112
  });
113
113
  }
@@ -117,7 +117,7 @@ export function getContractQueryOptions(client, id) {
117
117
  queryFn: async () => {
118
118
  if (!id)
119
119
  throw new Error("getContractQueryOptions requires an id");
120
- return fetchWithValidation(`/v1/distribution/contracts/${id}`, channelContractSingleResponse, client);
120
+ return fetchWithValidation(`/v1/admin/distribution/contracts/${id}`, channelContractSingleResponse, client);
121
121
  },
122
122
  });
123
123
  }
@@ -131,7 +131,7 @@ export function getCommissionRulesQueryOptions(client, options = {}) {
131
131
  params.set("contractId", filters.contractId);
132
132
  appendPagination(params, filters);
133
133
  const qs = params.toString();
134
- return fetchWithValidation(`/v1/distribution/commission-rules${qs ? `?${qs}` : ""}`, channelCommissionRuleListResponse, client);
134
+ return fetchWithValidation(`/v1/admin/distribution/commission-rules${qs ? `?${qs}` : ""}`, channelCommissionRuleListResponse, client);
135
135
  },
136
136
  });
137
137
  }
@@ -141,7 +141,7 @@ export function getCommissionRuleQueryOptions(client, id) {
141
141
  queryFn: async () => {
142
142
  if (!id)
143
143
  throw new Error("getCommissionRuleQueryOptions requires an id");
144
- return fetchWithValidation(`/v1/distribution/commission-rules/${id}`, channelCommissionRuleSingleResponse, client);
144
+ return fetchWithValidation(`/v1/admin/distribution/commission-rules/${id}`, channelCommissionRuleSingleResponse, client);
145
145
  },
146
146
  });
147
147
  }
@@ -155,7 +155,7 @@ export function getMappingsQueryOptions(client, options = {}) {
155
155
  params.set("channelId", filters.channelId);
156
156
  appendPagination(params, filters);
157
157
  const qs = params.toString();
158
- return fetchWithValidation(`/v1/distribution/product-mappings${qs ? `?${qs}` : ""}`, channelProductMappingListResponse, client);
158
+ return fetchWithValidation(`/v1/admin/distribution/product-mappings${qs ? `?${qs}` : ""}`, channelProductMappingListResponse, client);
159
159
  },
160
160
  });
161
161
  }
@@ -165,7 +165,7 @@ export function getMappingQueryOptions(client, id) {
165
165
  queryFn: async () => {
166
166
  if (!id)
167
167
  throw new Error("getMappingQueryOptions requires an id");
168
- return fetchWithValidation(`/v1/distribution/product-mappings/${id}`, channelProductMappingSingleResponse, client);
168
+ return fetchWithValidation(`/v1/admin/distribution/product-mappings/${id}`, channelProductMappingSingleResponse, client);
169
169
  },
170
170
  });
171
171
  }
@@ -179,7 +179,7 @@ export function getBookingLinksQueryOptions(client, options = {}) {
179
179
  params.set("channelId", filters.channelId);
180
180
  appendPagination(params, filters);
181
181
  const qs = params.toString();
182
- return fetchWithValidation(`/v1/distribution/booking-links${qs ? `?${qs}` : ""}`, channelBookingLinkListResponse, client);
182
+ return fetchWithValidation(`/v1/admin/distribution/booking-links${qs ? `?${qs}` : ""}`, channelBookingLinkListResponse, client);
183
183
  },
184
184
  });
185
185
  }
@@ -189,7 +189,7 @@ export function getBookingLinkQueryOptions(client, id) {
189
189
  queryFn: async () => {
190
190
  if (!id)
191
191
  throw new Error("getBookingLinkQueryOptions requires an id");
192
- return fetchWithValidation(`/v1/distribution/booking-links/${id}`, channelBookingLinkSingleResponse, client);
192
+ return fetchWithValidation(`/v1/admin/distribution/booking-links/${id}`, channelBookingLinkSingleResponse, client);
193
193
  },
194
194
  });
195
195
  }
@@ -203,7 +203,7 @@ export function getWebhookEventsQueryOptions(client, options = {}) {
203
203
  params.set("channelId", filters.channelId);
204
204
  appendPagination(params, filters);
205
205
  const qs = params.toString();
206
- return fetchWithValidation(`/v1/distribution/webhook-events${qs ? `?${qs}` : ""}`, channelWebhookEventListResponse, client);
206
+ return fetchWithValidation(`/v1/admin/distribution/webhook-events${qs ? `?${qs}` : ""}`, channelWebhookEventListResponse, client);
207
207
  },
208
208
  });
209
209
  }
@@ -213,7 +213,7 @@ export function getWebhookEventQueryOptions(client, id) {
213
213
  queryFn: async () => {
214
214
  if (!id)
215
215
  throw new Error("getWebhookEventQueryOptions requires an id");
216
- return fetchWithValidation(`/v1/distribution/webhook-events/${id}`, channelWebhookEventSingleResponse, client);
216
+ return fetchWithValidation(`/v1/admin/distribution/webhook-events/${id}`, channelWebhookEventSingleResponse, client);
217
217
  },
218
218
  });
219
219
  }
@@ -24,7 +24,7 @@ export declare function useSupplierMutation(): {
24
24
  create: import("@tanstack/react-query").UseMutationResult<{
25
25
  id: string;
26
26
  name: string;
27
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
27
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
28
28
  status: "active" | "inactive" | "pending";
29
29
  description: string | null;
30
30
  email: string | null;
@@ -56,7 +56,7 @@ export declare function useSupplierMutation(): {
56
56
  update: import("@tanstack/react-query").UseMutationResult<{
57
57
  id: string;
58
58
  name: string;
59
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
59
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
60
60
  status: "active" | "inactive" | "pending";
61
61
  description: string | null;
62
62
  email: string | null;
@@ -9,7 +9,7 @@ export function useSupplierMutation() {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation("/v1/suppliers", supplierDetailResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation("/v1/admin/suppliers", supplierDetailResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (data) => {
@@ -19,7 +19,7 @@ export function useSupplierMutation() {
19
19
  });
20
20
  const update = useMutation({
21
21
  mutationFn: async ({ id, input }) => {
22
- const { data } = await fetchWithValidation(`/v1/suppliers/${id}`, supplierDetailResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
22
+ const { data } = await fetchWithValidation(`/v1/admin/suppliers/${id}`, supplierDetailResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
23
  return data;
24
24
  },
25
25
  onSuccess: (data) => {
@@ -28,7 +28,7 @@ export function useSupplierMutation() {
28
28
  },
29
29
  });
30
30
  const remove = useMutation({
31
- mutationFn: async (id) => fetchWithValidation(`/v1/suppliers/${id}`, deleteSuccessResponse, { baseUrl, fetcher }, { method: "DELETE" }),
31
+ mutationFn: async (id) => fetchWithValidation(`/v1/admin/suppliers/${id}`, deleteSuccessResponse, { baseUrl, fetcher }, { method: "DELETE" }),
32
32
  onSuccess: (_result, id) => {
33
33
  void queryClient.invalidateQueries({ queryKey: suppliersQueryKeys.suppliers() });
34
34
  queryClient.removeQueries({ queryKey: suppliersQueryKeys.supplierDetail(id) });
@@ -9,7 +9,7 @@ export function useSupplierNoteMutation(supplierId) {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation(`/v1/suppliers/${supplierId}/notes`, supplierNoteResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation(`/v1/admin/suppliers/${supplierId}/notes`, supplierNoteResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: () => {
@@ -9,7 +9,7 @@ export function useSupplierRateMutation(supplierId) {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async ({ serviceId, input, }) => {
12
- const { data } = await fetchWithValidation(`/v1/suppliers/${supplierId}/services/${serviceId}/rates`, supplierRateResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation(`/v1/admin/suppliers/${supplierId}/services/${serviceId}/rates`, supplierRateResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: (_data, { serviceId }) => {
@@ -20,7 +20,7 @@ export function useSupplierRateMutation(supplierId) {
20
20
  });
21
21
  const update = useMutation({
22
22
  mutationFn: async ({ serviceId, rateId, input, }) => {
23
- const { data } = await fetchWithValidation(`/v1/suppliers/${supplierId}/services/${serviceId}/rates/${rateId}`, supplierRateResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
+ const { data } = await fetchWithValidation(`/v1/admin/suppliers/${supplierId}/services/${serviceId}/rates/${rateId}`, supplierRateResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
24
24
  return data;
25
25
  },
26
26
  onSuccess: (_data, { serviceId }) => {
@@ -30,7 +30,7 @@ export function useSupplierRateMutation(supplierId) {
30
30
  },
31
31
  });
32
32
  const remove = useMutation({
33
- mutationFn: async ({ serviceId, rateId }) => fetchWithValidation(`/v1/suppliers/${supplierId}/services/${serviceId}/rates/${rateId}`, deleteSuccessResponse, { baseUrl, fetcher }, { method: "DELETE" }),
33
+ mutationFn: async ({ serviceId, rateId }) => fetchWithValidation(`/v1/admin/suppliers/${supplierId}/services/${serviceId}/rates/${rateId}`, deleteSuccessResponse, { baseUrl, fetcher }, { method: "DELETE" }),
34
34
  onSuccess: (_data, { serviceId }) => {
35
35
  void queryClient.invalidateQueries({
36
36
  queryKey: suppliersQueryKeys.supplierServiceRates(supplierId, serviceId),
@@ -12,7 +12,7 @@ export declare function useSupplierServiceMutation(supplierId: string): {
12
12
  create: import("@tanstack/react-query").UseMutationResult<{
13
13
  id: string;
14
14
  supplierId: string;
15
- serviceType: "other" | "guide" | "transfer" | "experience" | "accommodation" | "meal";
15
+ serviceType: "transfer" | "guide" | "experience" | "other" | "accommodation" | "meal";
16
16
  name: string;
17
17
  description: string | null;
18
18
  duration: string | null;
@@ -25,7 +25,7 @@ export declare function useSupplierServiceMutation(supplierId: string): {
25
25
  update: import("@tanstack/react-query").UseMutationResult<{
26
26
  id: string;
27
27
  supplierId: string;
28
- serviceType: "other" | "guide" | "transfer" | "experience" | "accommodation" | "meal";
28
+ serviceType: "transfer" | "guide" | "experience" | "other" | "accommodation" | "meal";
29
29
  name: string;
30
30
  description: string | null;
31
31
  duration: string | null;
@@ -9,7 +9,7 @@ export function useSupplierServiceMutation(supplierId) {
9
9
  const queryClient = useQueryClient();
10
10
  const create = useMutation({
11
11
  mutationFn: async (input) => {
12
- const { data } = await fetchWithValidation(`/v1/suppliers/${supplierId}/services`, supplierServiceResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
12
+ const { data } = await fetchWithValidation(`/v1/admin/suppliers/${supplierId}/services`, supplierServiceResponse, { baseUrl, fetcher }, { method: "POST", body: JSON.stringify(input) });
13
13
  return data;
14
14
  },
15
15
  onSuccess: () => {
@@ -20,7 +20,7 @@ export function useSupplierServiceMutation(supplierId) {
20
20
  });
21
21
  const update = useMutation({
22
22
  mutationFn: async ({ serviceId, input, }) => {
23
- const { data } = await fetchWithValidation(`/v1/suppliers/${supplierId}/services/${serviceId}`, supplierServiceResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
23
+ const { data } = await fetchWithValidation(`/v1/admin/suppliers/${supplierId}/services/${serviceId}`, supplierServiceResponse, { baseUrl, fetcher }, { method: "PATCH", body: JSON.stringify(input) });
24
24
  return data;
25
25
  },
26
26
  onSuccess: () => {
@@ -30,7 +30,7 @@ export function useSupplierServiceMutation(supplierId) {
30
30
  },
31
31
  });
32
32
  const remove = useMutation({
33
- mutationFn: async (serviceId) => fetchWithValidation(`/v1/suppliers/${supplierId}/services/${serviceId}`, deleteSuccessResponse, { baseUrl, fetcher }, { method: "DELETE" }),
33
+ mutationFn: async (serviceId) => fetchWithValidation(`/v1/admin/suppliers/${supplierId}/services/${serviceId}`, deleteSuccessResponse, { baseUrl, fetcher }, { method: "DELETE" }),
34
34
  onSuccess: (_result, serviceId) => {
35
35
  void queryClient.invalidateQueries({
36
36
  queryKey: suppliersQueryKeys.supplierServices(supplierId),
@@ -5,7 +5,7 @@ export declare function useSupplierServices(supplierId: string, options?: UseSup
5
5
  data: {
6
6
  id: string;
7
7
  supplierId: string;
8
- serviceType: "other" | "guide" | "transfer" | "experience" | "accommodation" | "meal";
8
+ serviceType: "transfer" | "guide" | "experience" | "other" | "accommodation" | "meal";
9
9
  name: string;
10
10
  description: string | null;
11
11
  duration: string | null;
@@ -5,7 +5,7 @@ export declare function useSupplier(id: string, options?: UseSupplierOptions): i
5
5
  data: {
6
6
  id: string;
7
7
  name: string;
8
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
8
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
9
9
  status: "active" | "inactive" | "pending";
10
10
  description: string | null;
11
11
  email: string | null;
@@ -6,7 +6,7 @@ export declare function useSuppliers(options?: UseSuppliersOptions): import("@ta
6
6
  data: {
7
7
  id: string;
8
8
  name: string;
9
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
9
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
10
10
  status: "active" | "inactive" | "pending";
11
11
  description: string | null;
12
12
  email: string | null;
@@ -4,7 +4,7 @@ export declare function getSuppliersQueryOptions(client: FetchWithValidationOpti
4
4
  data: {
5
5
  id: string;
6
6
  name: string;
7
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
7
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
8
8
  status: "active" | "inactive" | "pending";
9
9
  description: string | null;
10
10
  email: string | null;
@@ -40,7 +40,7 @@ export declare function getSuppliersQueryOptions(client: FetchWithValidationOpti
40
40
  data: {
41
41
  id: string;
42
42
  name: string;
43
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
43
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
44
44
  status: "active" | "inactive" | "pending";
45
45
  description: string | null;
46
46
  email: string | null;
@@ -77,7 +77,7 @@ export declare function getSuppliersQueryOptions(client: FetchWithValidationOpti
77
77
  data: {
78
78
  id: string;
79
79
  name: string;
80
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
80
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
81
81
  status: "active" | "inactive" | "pending";
82
82
  description: string | null;
83
83
  email: string | null;
@@ -116,7 +116,7 @@ export declare function getSuppliersQueryOptions(client: FetchWithValidationOpti
116
116
  data: {
117
117
  id: string;
118
118
  name: string;
119
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
119
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
120
120
  status: "active" | "inactive" | "pending";
121
121
  description: string | null;
122
122
  email: string | null;
@@ -156,7 +156,7 @@ export declare function getSupplierQueryOptions(client: FetchWithValidationOptio
156
156
  data: {
157
157
  id: string;
158
158
  name: string;
159
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
159
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
160
160
  status: "active" | "inactive" | "pending";
161
161
  description: string | null;
162
162
  email: string | null;
@@ -189,7 +189,7 @@ export declare function getSupplierQueryOptions(client: FetchWithValidationOptio
189
189
  data: {
190
190
  id: string;
191
191
  name: string;
192
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
192
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
193
193
  status: "active" | "inactive" | "pending";
194
194
  description: string | null;
195
195
  email: string | null;
@@ -223,7 +223,7 @@ export declare function getSupplierQueryOptions(client: FetchWithValidationOptio
223
223
  data: {
224
224
  id: string;
225
225
  name: string;
226
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
226
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
227
227
  status: "active" | "inactive" | "pending";
228
228
  description: string | null;
229
229
  email: string | null;
@@ -259,7 +259,7 @@ export declare function getSupplierQueryOptions(client: FetchWithValidationOptio
259
259
  data: {
260
260
  id: string;
261
261
  name: string;
262
- type: "other" | "guide" | "hotel" | "transfer" | "experience" | "airline" | "restaurant";
262
+ type: "hotel" | "transfer" | "guide" | "experience" | "airline" | "restaurant" | "other";
263
263
  status: "active" | "inactive" | "pending";
264
264
  description: string | null;
265
265
  email: string | null;
@@ -296,7 +296,7 @@ export declare function getSupplierServicesQueryOptions(client: FetchWithValidat
296
296
  data: {
297
297
  id: string;
298
298
  supplierId: string;
299
- serviceType: "other" | "guide" | "transfer" | "experience" | "accommodation" | "meal";
299
+ serviceType: "transfer" | "guide" | "experience" | "other" | "accommodation" | "meal";
300
300
  name: string;
301
301
  description: string | null;
302
302
  duration: string | null;
@@ -310,7 +310,7 @@ export declare function getSupplierServicesQueryOptions(client: FetchWithValidat
310
310
  data: {
311
311
  id: string;
312
312
  supplierId: string;
313
- serviceType: "other" | "guide" | "transfer" | "experience" | "accommodation" | "meal";
313
+ serviceType: "transfer" | "guide" | "experience" | "other" | "accommodation" | "meal";
314
314
  name: string;
315
315
  description: string | null;
316
316
  duration: string | null;
@@ -325,7 +325,7 @@ export declare function getSupplierServicesQueryOptions(client: FetchWithValidat
325
325
  data: {
326
326
  id: string;
327
327
  supplierId: string;
328
- serviceType: "other" | "guide" | "transfer" | "experience" | "accommodation" | "meal";
328
+ serviceType: "transfer" | "guide" | "experience" | "other" | "accommodation" | "meal";
329
329
  name: string;
330
330
  description: string | null;
331
331
  duration: string | null;
@@ -342,7 +342,7 @@ export declare function getSupplierServicesQueryOptions(client: FetchWithValidat
342
342
  data: {
343
343
  id: string;
344
344
  supplierId: string;
345
- serviceType: "other" | "guide" | "transfer" | "experience" | "accommodation" | "meal";
345
+ serviceType: "transfer" | "guide" | "experience" | "other" | "accommodation" | "meal";
346
346
  name: string;
347
347
  description: string | null;
348
348
  duration: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"query-options.d.ts","sourceRoot":"","sources":["../../src/suppliers/query-options.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,0BAA0B,EAAuB,MAAM,aAAa,CAAA;AAClF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAenE,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,0BAA0B,EAClC,OAAO,GAAE,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBlC;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,0BAA0B,EAAE,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrF;AAED,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWnB;AAED,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnB;AAED,wBAAgB,mCAAmC,CACjD,MAAM,EAAE,0BAA0B,EAClC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWlB"}
@@ -33,31 +33,31 @@ export function getSuppliersQueryOptions(client, options = {}) {
33
33
  params.set("sortDir", filters.sortDir);
34
34
  appendPagination(params, filters);
35
35
  const qs = params.toString();
36
- return fetchWithValidation(`/v1/suppliers${qs ? `?${qs}` : ""}`, supplierListResponse, client);
36
+ return fetchWithValidation(`/v1/admin/suppliers${qs ? `?${qs}` : ""}`, supplierListResponse, client);
37
37
  },
38
38
  });
39
39
  }
40
40
  export function getSupplierQueryOptions(client, id) {
41
41
  return queryOptions({
42
42
  queryKey: suppliersQueryKeys.supplierDetail(id),
43
- queryFn: () => fetchWithValidation(`/v1/suppliers/${id}`, supplierDetailResponse, client),
43
+ queryFn: () => fetchWithValidation(`/v1/admin/suppliers/${id}`, supplierDetailResponse, client),
44
44
  });
45
45
  }
46
46
  export function getSupplierServicesQueryOptions(client, supplierId) {
47
47
  return queryOptions({
48
48
  queryKey: suppliersQueryKeys.supplierServices(supplierId),
49
- queryFn: () => fetchWithValidation(`/v1/suppliers/${supplierId}/services`, supplierServicesResponse, client),
49
+ queryFn: () => fetchWithValidation(`/v1/admin/suppliers/${supplierId}/services`, supplierServicesResponse, client),
50
50
  });
51
51
  }
52
52
  export function getSupplierNotesQueryOptions(client, supplierId) {
53
53
  return queryOptions({
54
54
  queryKey: suppliersQueryKeys.supplierNotes(supplierId),
55
- queryFn: () => fetchWithValidation(`/v1/suppliers/${supplierId}/notes`, supplierNotesResponse, client),
55
+ queryFn: () => fetchWithValidation(`/v1/admin/suppliers/${supplierId}/notes`, supplierNotesResponse, client),
56
56
  });
57
57
  }
58
58
  export function getSupplierServiceRatesQueryOptions(client, supplierId, serviceId) {
59
59
  return queryOptions({
60
60
  queryKey: suppliersQueryKeys.supplierServiceRates(supplierId, serviceId),
61
- queryFn: () => fetchWithValidation(`/v1/suppliers/${supplierId}/services/${serviceId}/rates`, supplierRatesResponse, client),
61
+ queryFn: () => fetchWithValidation(`/v1/admin/suppliers/${supplierId}/services/${serviceId}/rates`, supplierRatesResponse, client),
62
62
  });
63
63
  }
@@ -2,13 +2,13 @@ import { listResponseSchema } from "@voyant-travel/types";
2
2
  import { z } from "zod";
3
3
  export declare const paginatedEnvelope: typeof listResponseSchema;
4
4
  export declare const supplierTypeSchema: z.ZodEnum<{
5
- other: "other";
6
- guide: "guide";
7
5
  hotel: "hotel";
8
6
  transfer: "transfer";
7
+ guide: "guide";
9
8
  experience: "experience";
10
9
  airline: "airline";
11
10
  restaurant: "restaurant";
11
+ other: "other";
12
12
  }>;
13
13
  export declare const supplierStatusSchema: z.ZodEnum<{
14
14
  active: "active";
@@ -16,10 +16,10 @@ export declare const supplierStatusSchema: z.ZodEnum<{
16
16
  pending: "pending";
17
17
  }>;
18
18
  export declare const serviceTypeSchema: z.ZodEnum<{
19
- other: "other";
20
- guide: "guide";
21
19
  transfer: "transfer";
20
+ guide: "guide";
22
21
  experience: "experience";
22
+ other: "other";
23
23
  accommodation: "accommodation";
24
24
  meal: "meal";
25
25
  }>;
@@ -49,13 +49,13 @@ export declare const supplierSchema: z.ZodObject<{
49
49
  id: z.ZodString;
50
50
  name: z.ZodString;
51
51
  type: z.ZodEnum<{
52
- other: "other";
53
- guide: "guide";
54
52
  hotel: "hotel";
55
53
  transfer: "transfer";
54
+ guide: "guide";
56
55
  experience: "experience";
57
56
  airline: "airline";
58
57
  restaurant: "restaurant";
58
+ other: "other";
59
59
  }>;
60
60
  status: z.ZodEnum<{
61
61
  active: "active";
@@ -98,10 +98,10 @@ export declare const supplierServiceSchema: z.ZodObject<{
98
98
  id: z.ZodString;
99
99
  supplierId: z.ZodString;
100
100
  serviceType: z.ZodEnum<{
101
- other: "other";
102
- guide: "guide";
103
101
  transfer: "transfer";
102
+ guide: "guide";
104
103
  experience: "experience";
104
+ other: "other";
105
105
  accommodation: "accommodation";
106
106
  meal: "meal";
107
107
  }>;
@@ -149,13 +149,13 @@ export declare const supplierListResponse: z.ZodObject<{
149
149
  id: z.ZodString;
150
150
  name: z.ZodString;
151
151
  type: z.ZodEnum<{
152
- other: "other";
153
- guide: "guide";
154
152
  hotel: "hotel";
155
153
  transfer: "transfer";
154
+ guide: "guide";
156
155
  experience: "experience";
157
156
  airline: "airline";
158
157
  restaurant: "restaurant";
158
+ other: "other";
159
159
  }>;
160
160
  status: z.ZodEnum<{
161
161
  active: "active";
@@ -202,13 +202,13 @@ export declare const supplierDetailResponse: z.ZodObject<{
202
202
  id: z.ZodString;
203
203
  name: z.ZodString;
204
204
  type: z.ZodEnum<{
205
- other: "other";
206
- guide: "guide";
207
205
  hotel: "hotel";
208
206
  transfer: "transfer";
207
+ guide: "guide";
209
208
  experience: "experience";
210
209
  airline: "airline";
211
210
  restaurant: "restaurant";
211
+ other: "other";
212
212
  }>;
213
213
  status: z.ZodEnum<{
214
214
  active: "active";
@@ -252,10 +252,10 @@ export declare const supplierServiceResponse: z.ZodObject<{
252
252
  id: z.ZodString;
253
253
  supplierId: z.ZodString;
254
254
  serviceType: z.ZodEnum<{
255
- other: "other";
256
- guide: "guide";
257
255
  transfer: "transfer";
256
+ guide: "guide";
258
257
  experience: "experience";
258
+ other: "other";
259
259
  accommodation: "accommodation";
260
260
  meal: "meal";
261
261
  }>;
@@ -274,10 +274,10 @@ export declare const supplierServicesResponse: z.ZodObject<{
274
274
  id: z.ZodString;
275
275
  supplierId: z.ZodString;
276
276
  serviceType: z.ZodEnum<{
277
- other: "other";
278
- guide: "guide";
279
277
  transfer: "transfer";
278
+ guide: "guide";
280
279
  experience: "experience";
280
+ other: "other";
281
281
  accommodation: "accommodation";
282
282
  meal: "meal";
283
283
  }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyant-travel/distribution-react",
3
- "version": "0.127.0",
3
+ "version": "0.127.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -187,12 +187,12 @@
187
187
  "react-dom": "^19.0.0",
188
188
  "zod": "^4.0.0",
189
189
  "react-hook-form": "^7.60.0",
190
- "@voyant-travel/admin": "^0.115.2",
191
- "@voyant-travel/distribution": "^0.127.0",
190
+ "@voyant-travel/admin": "^0.115.3",
191
+ "@voyant-travel/distribution": "^0.127.1",
192
192
  "@voyant-travel/ui": "^0.108.2",
193
- "@voyant-travel/bookings-react": "^0.137.0",
194
- "@voyant-travel/inventory-react": "^0.19.0",
195
- "@voyant-travel/relationships-react": "^0.137.0"
193
+ "@voyant-travel/bookings-react": "^0.137.1",
194
+ "@voyant-travel/inventory-react": "^0.19.1",
195
+ "@voyant-travel/relationships-react": "^0.137.1"
196
196
  },
197
197
  "peerDependenciesMeta": {
198
198
  "@tanstack/react-table": {
@@ -233,16 +233,16 @@
233
233
  "vitest": "^4.1.2",
234
234
  "zod": "^4.3.6",
235
235
  "react-hook-form": "^7.60.0",
236
- "@voyant-travel/admin": "^0.115.2",
237
- "@voyant-travel/distribution": "^0.127.0",
236
+ "@voyant-travel/admin": "^0.115.3",
237
+ "@voyant-travel/distribution": "^0.127.1",
238
238
  "@voyant-travel/i18n": "^0.109.0",
239
239
  "@voyant-travel/react": "^0.104.1",
240
240
  "@voyant-travel/types": "^0.106.0",
241
241
  "@voyant-travel/ui": "^0.108.2",
242
242
  "@voyant-travel/voyant-typescript-config": "^0.1.0",
243
- "@voyant-travel/bookings-react": "^0.137.0",
244
- "@voyant-travel/inventory-react": "^0.19.0",
245
- "@voyant-travel/relationships-react": "^0.137.0"
243
+ "@voyant-travel/bookings-react": "^0.137.1",
244
+ "@voyant-travel/inventory-react": "^0.19.1",
245
+ "@voyant-travel/relationships-react": "^0.137.1"
246
246
  },
247
247
  "files": [
248
248
  "dist",
@@ -255,7 +255,7 @@
255
255
  "scripts": {
256
256
  "build": "tsc -p tsconfig.build.json",
257
257
  "clean": "rm -rf dist tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo",
258
- "typecheck": "tsc --noEmit",
258
+ "typecheck": "tsc -p tsconfig.typecheck.json",
259
259
  "lint": "biome check src/",
260
260
  "test": "vitest run --passWithNoTests"
261
261
  },