@voyant-travel/distribution-react 0.127.0 → 0.127.2

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 (130) hide show
  1. package/dist/components/booking-link-detail-page.d.ts +1 -1
  2. package/dist/components/booking-link-detail-page.d.ts.map +1 -1
  3. package/dist/components/booking-link-detail-page.js +1 -1
  4. package/dist/components/channel-detail-page.d.ts +1 -1
  5. package/dist/components/channel-detail-page.d.ts.map +1 -1
  6. package/dist/components/channel-sync-controls.d.ts +2 -2
  7. package/dist/components/channel-sync-controls.d.ts.map +1 -1
  8. package/dist/components/channel-sync-deliveries-drawer.d.ts +1 -1
  9. package/dist/components/channel-sync-deliveries-drawer.d.ts.map +1 -1
  10. package/dist/components/channel-sync-deliveries-drawer.js +2 -2
  11. package/dist/components/channel-sync-page-utils.d.ts +7 -0
  12. package/dist/components/channel-sync-page-utils.d.ts.map +1 -1
  13. package/dist/components/channel-sync-page-utils.js +7 -0
  14. package/dist/components/channel-sync-page.d.ts +1 -1
  15. package/dist/components/channel-sync-page.d.ts.map +1 -1
  16. package/dist/components/channel-sync-page.js +5 -5
  17. package/dist/components/channels-page.d.ts +1 -1
  18. package/dist/components/channels-page.d.ts.map +1 -1
  19. package/dist/components/commission-rule-detail-page.d.ts +1 -1
  20. package/dist/components/commission-rule-detail-page.d.ts.map +1 -1
  21. package/dist/components/commission-rule-detail-page.js +1 -1
  22. package/dist/components/contract-detail-page.d.ts +1 -1
  23. package/dist/components/contract-detail-page.d.ts.map +1 -1
  24. package/dist/components/contract-detail-page.js +1 -1
  25. package/dist/components/distribution-overview.d.ts +1 -1
  26. package/dist/components/distribution-overview.d.ts.map +1 -1
  27. package/dist/components/distribution-page.d.ts +1 -1
  28. package/dist/components/distribution-page.d.ts.map +1 -1
  29. package/dist/components/distribution-section-header.d.ts +1 -1
  30. package/dist/components/distribution-section-header.d.ts.map +1 -1
  31. package/dist/components/distribution-tabs-primary.d.ts +3 -3
  32. package/dist/components/distribution-tabs-primary.d.ts.map +1 -1
  33. package/dist/components/distribution-tabs-primary.js +7 -7
  34. package/dist/components/distribution-tabs-secondary.d.ts +3 -3
  35. package/dist/components/distribution-tabs-secondary.d.ts.map +1 -1
  36. package/dist/components/distribution-tabs-secondary.js +7 -7
  37. package/dist/components/mapping-detail-page.d.ts +1 -1
  38. package/dist/components/mapping-detail-page.d.ts.map +1 -1
  39. package/dist/components/mapping-detail-page.js +1 -1
  40. package/dist/components/webhook-event-detail-page.d.ts +1 -1
  41. package/dist/components/webhook-event-detail-page.d.ts.map +1 -1
  42. package/dist/components/webhook-event-detail-page.js +1 -1
  43. package/dist/external-refs/components/entity-ref-picker.d.ts +1 -1
  44. package/dist/external-refs/components/entity-ref-picker.d.ts.map +1 -1
  45. package/dist/external-refs/components/external-ref-dialog.d.ts +1 -1
  46. package/dist/external-refs/components/external-ref-dialog.d.ts.map +1 -1
  47. package/dist/external-refs/components/external-ref-dialog.js +1 -1
  48. package/dist/external-refs/components/external-refs-page.d.ts +2 -2
  49. package/dist/external-refs/components/external-refs-page.d.ts.map +1 -1
  50. package/dist/external-refs/hooks/use-external-ref-mutation.js +3 -3
  51. package/dist/external-refs/hooks/use-external-refs.d.ts +2 -2
  52. package/dist/external-refs/hooks/use-external-refs.d.ts.map +1 -1
  53. package/dist/external-refs/i18n/provider.d.ts +1 -1
  54. package/dist/external-refs/i18n/provider.d.ts.map +1 -1
  55. package/dist/external-refs/query-options.js +2 -2
  56. package/dist/hooks/use-booking-links.d.ts +2 -2
  57. package/dist/hooks/use-booking-links.d.ts.map +1 -1
  58. package/dist/hooks/use-bookings.d.ts +2 -2
  59. package/dist/hooks/use-bookings.d.ts.map +1 -1
  60. package/dist/hooks/use-channel-mutation.js +3 -3
  61. package/dist/hooks/use-channel.d.ts +2 -2
  62. package/dist/hooks/use-channel.d.ts.map +1 -1
  63. package/dist/hooks/use-channels.d.ts +2 -2
  64. package/dist/hooks/use-channels.d.ts.map +1 -1
  65. package/dist/hooks/use-commission-rules.d.ts +2 -2
  66. package/dist/hooks/use-commission-rules.d.ts.map +1 -1
  67. package/dist/hooks/use-contracts.d.ts +2 -2
  68. package/dist/hooks/use-contracts.d.ts.map +1 -1
  69. package/dist/hooks/use-mappings.d.ts +2 -2
  70. package/dist/hooks/use-mappings.d.ts.map +1 -1
  71. package/dist/hooks/use-products.d.ts +2 -2
  72. package/dist/hooks/use-products.d.ts.map +1 -1
  73. package/dist/hooks/use-suppliers.d.ts +2 -2
  74. package/dist/hooks/use-suppliers.d.ts.map +1 -1
  75. package/dist/hooks/use-webhook-events.d.ts +2 -2
  76. package/dist/hooks/use-webhook-events.d.ts.map +1 -1
  77. package/dist/i18n/provider.d.ts +1 -1
  78. package/dist/i18n/provider.d.ts.map +1 -1
  79. package/dist/query-options.d.ts.map +1 -1
  80. package/dist/query-options.js +18 -18
  81. package/dist/suppliers/admin/pages/supplier-detail-page.d.ts +1 -1
  82. package/dist/suppliers/admin/pages/supplier-detail-page.d.ts.map +1 -1
  83. package/dist/suppliers/admin/supplier-detail-host.d.ts +1 -1
  84. package/dist/suppliers/admin/supplier-detail-host.d.ts.map +1 -1
  85. package/dist/suppliers/admin/supplier-detail-skeleton.d.ts +1 -1
  86. package/dist/suppliers/admin/supplier-detail-skeleton.d.ts.map +1 -1
  87. package/dist/suppliers/admin/suppliers-host.d.ts +1 -1
  88. package/dist/suppliers/admin/suppliers-host.d.ts.map +1 -1
  89. package/dist/suppliers/admin/suppliers-list-skeleton.d.ts +1 -1
  90. package/dist/suppliers/admin/suppliers-list-skeleton.d.ts.map +1 -1
  91. package/dist/suppliers/components/rate-dialog.d.ts +2 -1
  92. package/dist/suppliers/components/rate-dialog.d.ts.map +1 -1
  93. package/dist/suppliers/components/rate-dialog.js +1 -1
  94. package/dist/suppliers/components/service-dialog.d.ts +2 -1
  95. package/dist/suppliers/components/service-dialog.d.ts.map +1 -1
  96. package/dist/suppliers/components/service-dialog.js +1 -1
  97. package/dist/suppliers/components/supplier-combobox.d.ts +2 -1
  98. package/dist/suppliers/components/supplier-combobox.d.ts.map +1 -1
  99. package/dist/suppliers/components/supplier-detail-page.d.ts +1 -1
  100. package/dist/suppliers/components/supplier-detail-page.d.ts.map +1 -1
  101. package/dist/suppliers/components/supplier-dialog.d.ts +2 -1
  102. package/dist/suppliers/components/supplier-dialog.d.ts.map +1 -1
  103. package/dist/suppliers/components/supplier-dialog.js +3 -2
  104. package/dist/suppliers/components/supplier-service-row.d.ts +1 -1
  105. package/dist/suppliers/components/supplier-service-row.d.ts.map +1 -1
  106. package/dist/suppliers/components/suppliers-page.d.ts +2 -1
  107. package/dist/suppliers/components/suppliers-page.d.ts.map +1 -1
  108. package/dist/suppliers/hooks/use-supplier-mutation.d.ts +2 -2
  109. package/dist/suppliers/hooks/use-supplier-mutation.js +3 -3
  110. package/dist/suppliers/hooks/use-supplier-note-mutation.js +1 -1
  111. package/dist/suppliers/hooks/use-supplier-notes.d.ts +2 -2
  112. package/dist/suppliers/hooks/use-supplier-notes.d.ts.map +1 -1
  113. package/dist/suppliers/hooks/use-supplier-rate-mutation.js +3 -3
  114. package/dist/suppliers/hooks/use-supplier-service-mutation.d.ts +2 -2
  115. package/dist/suppliers/hooks/use-supplier-service-mutation.js +3 -3
  116. package/dist/suppliers/hooks/use-supplier-service-rates.d.ts +2 -2
  117. package/dist/suppliers/hooks/use-supplier-service-rates.d.ts.map +1 -1
  118. package/dist/suppliers/hooks/use-supplier-services.d.ts +3 -3
  119. package/dist/suppliers/hooks/use-supplier-services.d.ts.map +1 -1
  120. package/dist/suppliers/hooks/use-supplier.d.ts +3 -3
  121. package/dist/suppliers/hooks/use-supplier.d.ts.map +1 -1
  122. package/dist/suppliers/hooks/use-suppliers.d.ts +3 -3
  123. package/dist/suppliers/hooks/use-suppliers.d.ts.map +1 -1
  124. package/dist/suppliers/i18n/provider.d.ts +1 -1
  125. package/dist/suppliers/i18n/provider.d.ts.map +1 -1
  126. package/dist/suppliers/query-options.d.ts +12 -12
  127. package/dist/suppliers/query-options.d.ts.map +1 -1
  128. package/dist/suppliers/query-options.js +5 -5
  129. package/dist/suppliers/schemas.d.ts +16 -16
  130. package/package.json +24 -24
@@ -1 +1 @@
1
- {"version":3,"file":"supplier-detail-page.d.ts","sourceRoot":"","sources":["../../../../src/suppliers/admin/pages/supplier-detail-page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAI/D;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,2CAEzE"}
1
+ {"version":3,"file":"supplier-detail-page.d.ts","sourceRoot":"","sources":["../../../../src/suppliers/admin/pages/supplier-detail-page.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAI/D;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,mBAAmB,+BAEzE"}
@@ -26,5 +26,5 @@ export interface SupplierDetailHostProps {
26
26
  * {@link supplierDetailPaymentPolicySlot} whenever a widget contribution
27
27
  * targets it (finance-ui contributes its card there).
28
28
  */
29
- export declare function SupplierDetailHost({ id }: SupplierDetailHostProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare function SupplierDetailHost({ id }: SupplierDetailHostProps): import("react").JSX.Element;
30
30
  //# sourceMappingURL=supplier-detail-host.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"supplier-detail-host.d.ts","sourceRoot":"","sources":["../../../src/suppliers/admin/supplier-detail-host.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAA;AAM5D,OAAO,EAAE,+BAA+B,EAAE,CAAA;AAE1C;;;;;GAKG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,QAAQ,CAAA;IAClB,cAAc,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;IACjE,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;CACX;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,EAAE,EAAE,uBAAuB,2CA6BjE"}
1
+ {"version":3,"file":"supplier-detail-host.d.ts","sourceRoot":"","sources":["../../../src/suppliers/admin/supplier-detail-host.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAA;AAM5D,OAAO,EAAE,+BAA+B,EAAE,CAAA;AAE1C;;;;;GAKG;AACH,MAAM,WAAW,6BAA6B;IAC5C,QAAQ,EAAE,QAAQ,CAAA;IAClB,cAAc,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;IACjE,UAAU,EAAE,OAAO,CAAA;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;CACX;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,EAAE,EAAE,uBAAuB,+BA6BjE"}
@@ -5,5 +5,5 @@
5
5
  * - Services card (full width) with expandable rows
6
6
  * - Notes card (full width)
7
7
  */
8
- export declare function SupplierDetailSkeleton(): import("react/jsx-runtime").JSX.Element;
8
+ export declare function SupplierDetailSkeleton(): import("react").JSX.Element;
9
9
  //# sourceMappingURL=supplier-detail-skeleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"supplier-detail-skeleton.d.ts","sourceRoot":"","sources":["../../../src/suppliers/admin/supplier-detail-skeleton.tsx"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,sBAAsB,4CA6CrC"}
1
+ {"version":3,"file":"supplier-detail-skeleton.d.ts","sourceRoot":"","sources":["../../../src/suppliers/admin/supplier-detail-skeleton.tsx"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,wBAAgB,sBAAsB,gCA6CrC"}
@@ -7,5 +7,5 @@
7
7
  * state locally (no URL search contract), so the host takes no props and
8
8
  * route files can attach it as a zero-prop `component:` directly.
9
9
  */
10
- export declare function SuppliersHost(): import("react/jsx-runtime").JSX.Element;
10
+ export declare function SuppliersHost(): import("react").JSX.Element;
11
11
  //# sourceMappingURL=suppliers-host.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"suppliers-host.d.ts","sourceRoot":"","sources":["../../../src/suppliers/admin/suppliers-host.tsx"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,wBAAgB,aAAa,4CAQ5B"}
1
+ {"version":3,"file":"suppliers-host.d.ts","sourceRoot":"","sources":["../../../src/suppliers/admin/suppliers-host.tsx"],"names":[],"mappings":"AAMA;;;;;;;;GAQG;AACH,wBAAgB,aAAa,gCAQ5B"}
@@ -5,5 +5,5 @@
5
5
  * - 5-column table: Name / Type / Status / Country / Currency
6
6
  * - Summary + pagination footer
7
7
  */
8
- export declare function SuppliersListSkeleton(): import("react/jsx-runtime").JSX.Element;
8
+ export declare function SuppliersListSkeleton(): import("react").JSX.Element;
9
9
  //# sourceMappingURL=suppliers-list-skeleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"suppliers-list-skeleton.d.ts","sourceRoot":"","sources":["../../../src/suppliers/admin/suppliers-list-skeleton.tsx"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,wBAAgB,qBAAqB,4CAmDpC"}
1
+ {"version":3,"file":"suppliers-list-skeleton.d.ts","sourceRoot":"","sources":["../../../src/suppliers/admin/suppliers-list-skeleton.tsx"],"names":[],"mappings":"AAYA;;;;;;GAMG;AACH,wBAAgB,qBAAqB,gCAmDpC"}
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { type SupplierRate } from "../index.js";
2
3
  export type RateDialogProps = {
3
4
  open: boolean;
@@ -7,5 +8,5 @@ export type RateDialogProps = {
7
8
  rate?: SupplierRate;
8
9
  onSuccess?: (rate: SupplierRate) => void;
9
10
  };
10
- export declare function RateDialog({ open, onOpenChange, supplierId, serviceId, rate, onSuccess, }: RateDialogProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function RateDialog({ open, onOpenChange, supplierId, serviceId, rate, onSuccess, }: RateDialogProps): React.JSX.Element;
11
12
  //# sourceMappingURL=rate-dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rate-dialog.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/rate-dialog.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAAc,KAAK,YAAY,EAA2B,MAAM,aAAa,CAAA;AAiBpF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,SAAS,EACT,IAAI,EACJ,SAAS,GACV,EAAE,eAAe,2CA0KjB"}
1
+ {"version":3,"file":"rate-dialog.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/rate-dialog.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAc,KAAK,YAAY,EAA2B,MAAM,aAAa,CAAA;AAiBpF,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,SAAS,EACT,IAAI,EACJ,SAAS,GACV,EAAE,eAAe,qBA6KjB"}
@@ -77,7 +77,7 @@ export function RateDialog({ open, onOpenChange, supplierId, serviceId, rate, on
77
77
  onSuccess?.(saved);
78
78
  onOpenChange(false);
79
79
  }
80
- return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: isEditing ? dialog.editTitle : dialog.newTitle }) }), _jsxs("form", { onSubmit: form.handleSubmit(onSubmit), children: [_jsxs(DialogBody, { className: "grid gap-4", children: [_jsx(Field, { label: dialog.seasonNameLabel, error: form.formState.errors.name?.message, children: _jsx(Input, { ...form.register("name"), placeholder: dialog.seasonNamePlaceholder }) }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-3", children: [_jsx(Field, { label: dialog.currencyLabel, error: form.formState.errors.currency?.message, children: _jsx(CurrencyCombobox, { value: form.watch("currency") || null, onChange: (next) => form.setValue("currency", next ?? "", {
80
+ return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: isEditing ? dialog.editTitle : dialog.newTitle }) }), _jsxs("form", { onSubmit: form.handleSubmit(onSubmit), className: "flex min-h-0 flex-1 flex-col overflow-hidden", children: [_jsxs(DialogBody, { className: "grid gap-4", children: [_jsx(Field, { label: dialog.seasonNameLabel, error: form.formState.errors.name?.message, children: _jsx(Input, { ...form.register("name"), placeholder: dialog.seasonNamePlaceholder }) }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-3", children: [_jsx(Field, { label: dialog.currencyLabel, error: form.formState.errors.currency?.message, children: _jsx(CurrencyCombobox, { value: form.watch("currency") || null, onChange: (next) => form.setValue("currency", next ?? "", {
81
81
  shouldValidate: true,
82
82
  shouldDirty: true,
83
83
  }), placeholder: dialog.currencyPlaceholder }) }), _jsx(Field, { label: dialog.amountLabel, error: form.formState.errors.amount?.message, children: _jsx(Input, { ...form.register("amount"), type: "number", min: "0", step: "0.01", placeholder: dialog.amountPlaceholder }) }), _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(Label, { children: dialog.unitLabel }), _jsxs(Select, { value: form.watch("unit"), onValueChange: (value) => form.setValue("unit", value), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: RATE_UNITS.map((unit) => (_jsx(SelectItem, { value: unit.value, children: messages.common.rateUnitLabels[unit.value] }, unit.value))) })] })] })] }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx(Field, { label: dialog.validFromLabel, children: _jsx(DatePicker, { value: form.watch("validFrom") || null, onChange: (nextValue) => form.setValue("validFrom", nextValue ?? "", {
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { type SupplierService } from "../index.js";
2
3
  export type ServiceDialogProps = {
3
4
  open: boolean;
@@ -6,5 +7,5 @@ export type ServiceDialogProps = {
6
7
  service?: SupplierService;
7
8
  onSuccess?: (service: SupplierService) => void;
8
9
  };
9
- export declare function ServiceDialog({ open, onOpenChange, supplierId, service, onSuccess, }: ServiceDialogProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function ServiceDialog({ open, onOpenChange, supplierId, service, onSuccess, }: ServiceDialogProps): React.JSX.Element;
10
11
  //# sourceMappingURL=service-dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service-dialog.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/service-dialog.tsx"],"names":[],"mappings":"AA0BA,OAAO,EAAiB,KAAK,eAAe,EAA8B,MAAM,aAAa,CAAA;AAa7F,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,OAAO,EACP,SAAS,GACV,EAAE,kBAAkB,2CAuHpB"}
1
+ {"version":3,"file":"service-dialog.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/service-dialog.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAiB,KAAK,eAAe,EAA8B,MAAM,aAAa,CAAA;AAa7F,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,eAAe,CAAA;IACzB,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,IAAI,CAAA;CAC/C,CAAA;AAED,wBAAgB,aAAa,CAAC,EAC5B,IAAI,EACJ,YAAY,EACZ,UAAU,EACV,OAAO,EACP,SAAS,GACV,EAAE,kBAAkB,qBA0HpB"}
@@ -62,7 +62,7 @@ export function ServiceDialog({ open, onOpenChange, supplierId, service, onSucce
62
62
  onSuccess?.(saved);
63
63
  onOpenChange(false);
64
64
  }
65
- return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: isEditing ? dialog.editTitle : dialog.newTitle }) }), _jsxs("form", { onSubmit: form.handleSubmit(onSubmit), children: [_jsxs(DialogBody, { className: "grid gap-4", children: [_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(Label, { children: dialog.serviceTypeLabel }), _jsxs(Select, { value: form.watch("serviceType"), onValueChange: (value) => form.setValue("serviceType", value), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: SERVICE_TYPES.map((type) => (_jsx(SelectItem, { value: type.value, children: messages.common.serviceTypeLabels[type.value] }, type.value))) })] })] }), _jsx(Field, { label: dialog.nameLabel, error: form.formState.errors.name?.message, children: _jsx(Input, { ...form.register("name"), placeholder: dialog.namePlaceholder }) }), _jsx(Field, { label: dialog.descriptionLabel, children: _jsx(Textarea, { ...form.register("description"), placeholder: dialog.descriptionPlaceholder }) }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx(Field, { label: dialog.durationLabel, children: _jsx(Input, { ...form.register("duration"), placeholder: dialog.durationPlaceholder }) }), _jsx(Field, { label: dialog.capacityLabel, children: _jsx(Input, { ...form.register("capacity"), type: "number", min: "1", placeholder: dialog.capacityPlaceholder }) })] }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Switch, { checked: form.watch("active"), onCheckedChange: (value) => form.setValue("active", value) }), _jsx(Label, { children: dialog.activeLabel })] })] }), _jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "ghost", onClick: () => onOpenChange(false), children: messages.common.cancel }), _jsxs(Button, { type: "submit", disabled: form.formState.isSubmitting, children: [form.formState.isSubmitting && _jsx(Loader2, { className: "animate-spin" }), isEditing ? messages.common.save : messages.common.create] })] })] })] }) }));
65
+ return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: isEditing ? dialog.editTitle : dialog.newTitle }) }), _jsxs("form", { onSubmit: form.handleSubmit(onSubmit), className: "flex min-h-0 flex-1 flex-col overflow-hidden", children: [_jsxs(DialogBody, { className: "grid gap-4", children: [_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(Label, { children: dialog.serviceTypeLabel }), _jsxs(Select, { value: form.watch("serviceType"), onValueChange: (value) => form.setValue("serviceType", value), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: SERVICE_TYPES.map((type) => (_jsx(SelectItem, { value: type.value, children: messages.common.serviceTypeLabels[type.value] }, type.value))) })] })] }), _jsx(Field, { label: dialog.nameLabel, error: form.formState.errors.name?.message, children: _jsx(Input, { ...form.register("name"), placeholder: dialog.namePlaceholder }) }), _jsx(Field, { label: dialog.descriptionLabel, children: _jsx(Textarea, { ...form.register("description"), placeholder: dialog.descriptionPlaceholder }) }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx(Field, { label: dialog.durationLabel, children: _jsx(Input, { ...form.register("duration"), placeholder: dialog.durationPlaceholder }) }), _jsx(Field, { label: dialog.capacityLabel, children: _jsx(Input, { ...form.register("capacity"), type: "number", min: "1", placeholder: dialog.capacityPlaceholder }) })] }), _jsxs("div", { className: "flex items-center gap-3", children: [_jsx(Switch, { checked: form.watch("active"), onCheckedChange: (value) => form.setValue("active", value) }), _jsx(Label, { children: dialog.activeLabel })] })] }), _jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "ghost", onClick: () => onOpenChange(false), children: messages.common.cancel }), _jsxs(Button, { type: "submit", disabled: form.formState.isSubmitting, children: [form.formState.isSubmitting && _jsx(Loader2, { className: "animate-spin" }), isEditing ? messages.common.save : messages.common.create] })] })] })] }) }));
66
66
  }
67
67
  function Field({ label, error, children, }) {
68
68
  return (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(Label, { children: label }), children, error && _jsx("p", { className: "text-xs text-destructive", children: error })] }));
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  export interface SupplierComboboxProps {
2
3
  value: string | null | undefined;
3
4
  onChange: (value: string | null) => void;
@@ -9,5 +10,5 @@ export interface SupplierComboboxProps {
9
10
  clearable?: boolean;
10
11
  limit?: number;
11
12
  }
12
- export declare function SupplierCombobox({ value, onChange, placeholder, emptyText, disabled, className, triggerClassName, clearable, limit, }: SupplierComboboxProps): import("react/jsx-runtime").JSX.Element;
13
+ export declare function SupplierCombobox({ value, onChange, placeholder, emptyText, disabled, className, triggerClassName, clearable, limit, }: SupplierComboboxProps): React.JSX.Element;
13
14
  //# sourceMappingURL=supplier-combobox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"supplier-combobox.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/supplier-combobox.tsx"],"names":[],"mappings":"AAOA,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAYD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,SAAgB,EAChB,KAAqB,GACtB,EAAE,qBAAqB,2CA6BvB"}
1
+ {"version":3,"file":"supplier-combobox.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/supplier-combobox.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAChC,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAA;IACxC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAYD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,gBAAgB,EAChB,SAAgB,EAChB,KAAqB,GACtB,EAAE,qBAAqB,qBA6BvB"}
@@ -13,5 +13,5 @@ export type SupplierDetailPageProps = {
13
13
  isUpdating: boolean;
14
14
  }) => React.ReactNode;
15
15
  };
16
- export declare function SupplierDetailPage({ id, locale, onBack, onDeleted, confirmAction, className, renderCustomerPaymentPolicy, }: SupplierDetailPageProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function SupplierDetailPage({ id, locale, onBack, onDeleted, confirmAction, className, renderCustomerPaymentPolicy, }: SupplierDetailPageProps): React.JSX.Element;
17
17
  //# sourceMappingURL=supplier-detail-page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"supplier-detail-page.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/supplier-detail-page.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EACL,KAAK,QAAQ,EAIb,KAAK,mBAAmB,EAQzB,MAAM,aAAa,CAAA;AAMpB,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2BAA2B,CAAC,EAAE,CAAC,IAAI,EAAE;QACnC,QAAQ,EAAE,QAAQ,CAAA;QAClB,cAAc,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;QACjE,UAAU,EAAE,OAAO,CAAA;KACpB,KAAK,KAAK,CAAC,SAAS,CAAA;CACtB,CAAA;AAED,wBAAgB,kBAAkB,CAAC,EACjC,EAAE,EACF,MAAgB,EAChB,MAAM,EACN,SAAS,EACT,aAAkE,EAClE,SAAS,EACT,2BAA2B,GAC5B,EAAE,uBAAuB,2CA6SzB"}
1
+ {"version":3,"file":"supplier-detail-page.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/supplier-detail-page.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EACL,KAAK,QAAQ,EAIb,KAAK,mBAAmB,EAQzB,MAAM,aAAa,CAAA;AAMpB,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2BAA2B,CAAC,EAAE,CAAC,IAAI,EAAE;QACnC,QAAQ,EAAE,QAAQ,CAAA;QAClB,cAAc,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;QACjE,UAAU,EAAE,OAAO,CAAA;KACpB,KAAK,KAAK,CAAC,SAAS,CAAA;CACtB,CAAA;AAED,wBAAgB,kBAAkB,CAAC,EACjC,EAAE,EACF,MAAgB,EAChB,MAAM,EACN,SAAS,EACT,aAAkE,EAClE,SAAS,EACT,2BAA2B,GAC5B,EAAE,uBAAuB,qBA6SzB"}
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { type Supplier } from "../index.js";
2
3
  export type SupplierDialogProps = {
3
4
  open: boolean;
@@ -5,5 +6,5 @@ export type SupplierDialogProps = {
5
6
  supplier?: Supplier;
6
7
  onSuccess?: (supplier: Supplier) => void;
7
8
  };
8
- export declare function SupplierDialog({ open, onOpenChange, supplier, onSuccess }: SupplierDialogProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function SupplierDialog({ open, onOpenChange, supplier, onSuccess }: SupplierDialogProps): React.JSX.Element;
9
10
  //# sourceMappingURL=supplier-dialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"supplier-dialog.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/supplier-dialog.tsx"],"names":[],"mappings":"AA2BA,OAAO,EAAqC,KAAK,QAAQ,EAAuB,MAAM,aAAa,CAAA;AA0BnG,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,2CA6O9F"}
1
+ {"version":3,"file":"supplier-dialog.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/supplier-dialog.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,EAAqC,KAAK,QAAQ,EAAuB,MAAM,aAAa,CAAA;AA0BnG,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,OAAO,CAAA;IACb,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACrC,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,SAAS,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;CACzC,CAAA;AAED,wBAAgB,cAAc,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,mBAAmB,qBAqP9F"}
@@ -3,6 +3,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Button, Dialog, DialogBody, DialogContent, DialogFooter, DialogHeader, DialogTitle, Input, Label, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Textarea, } from "@voyant-travel/ui/components";
4
4
  import { CountryCombobox } from "@voyant-travel/ui/components/country-combobox";
5
5
  import { CurrencyCombobox } from "@voyant-travel/ui/components/currency-combobox";
6
+ import { PhoneInput } from "@voyant-travel/ui/components/phone-input";
6
7
  import { zodResolver } from "@voyant-travel/ui/lib/zod-resolver";
7
8
  import { Loader2 } from "lucide-react";
8
9
  import * as React from "react";
@@ -108,10 +109,10 @@ export function SupplierDialog({ open, onOpenChange, supplier, onSuccess }) {
108
109
  onSuccess?.(saved);
109
110
  onOpenChange(false);
110
111
  }
111
- return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { size: "lg", children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: isEditing ? dialog.editTitle : dialog.newTitle }) }), _jsxs("form", { onSubmit: form.handleSubmit(onSubmit), children: [_jsxs(DialogBody, { className: "grid gap-4", children: [_jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(Label, { children: dialog.typeLabel }), _jsxs(Select, { value: form.watch("type"), onValueChange: (value) => form.setValue("type", value), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: SUPPLIER_TYPES.map((type) => (_jsx(SelectItem, { value: type.value, children: messages.common.supplierTypeLabels[type.value] }, type.value))) })] })] }), _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(Label, { children: dialog.statusLabel }), _jsxs(Select, { value: form.watch("status"), onValueChange: (value) => form.setValue("status", value), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: SUPPLIER_STATUSES.map((status) => (_jsx(SelectItem, { value: status.value, children: messages.common.supplierStatusLabels[status.value] }, status.value))) })] })] })] }), _jsx(Field, { label: dialog.nameLabel, error: form.formState.errors.name?.message, children: _jsx(Input, { ...form.register("name"), placeholder: dialog.namePlaceholder }) }), _jsx(Field, { label: dialog.descriptionLabel, children: _jsx(Textarea, { ...form.register("description"), placeholder: dialog.descriptionPlaceholder }) }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx(Field, { label: dialog.emailLabel, error: form.formState.errors.email?.message, children: _jsx(Input, { ...form.register("email"), type: "email", placeholder: dialog.emailPlaceholder }) }), _jsx(Field, { label: dialog.phoneLabel, children: _jsx(Input, { ...form.register("phone"), placeholder: dialog.phonePlaceholder }) })] }), _jsx(Field, { label: dialog.websiteLabel, error: form.formState.errors.website?.message, children: _jsx(Input, { ...form.register("website"), placeholder: dialog.websitePlaceholder }) }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx(Field, { label: dialog.cityLabel, children: _jsx(Input, { ...form.register("city"), placeholder: dialog.cityPlaceholder }) }), _jsx(Field, { label: dialog.countryLabel, children: _jsx(CountryCombobox, { value: form.watch("country"), onChange: (value) => form.setValue("country", value ?? ""), placeholder: dialog.countryPlaceholder }) })] }), _jsx(Field, { label: dialog.addressLabel, children: _jsx(Textarea, { ...form.register("address"), placeholder: dialog.addressPlaceholder }) }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx(Field, { label: dialog.defaultCurrencyLabel, error: form.formState.errors.defaultCurrency?.message, children: _jsx(CurrencyCombobox, { value: form.watch("defaultCurrency") || null, onChange: (next) => form.setValue("defaultCurrency", next ?? "", {
112
+ return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { size: "lg", children: [_jsx(DialogHeader, { children: _jsx(DialogTitle, { children: isEditing ? dialog.editTitle : dialog.newTitle }) }), _jsxs("form", { onSubmit: form.handleSubmit(onSubmit), className: "flex min-h-0 flex-1 flex-col overflow-hidden", children: [_jsxs(DialogBody, { className: "grid gap-4", children: [_jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(Label, { children: dialog.typeLabel }), _jsxs(Select, { value: form.watch("type"), onValueChange: (value) => form.setValue("type", value), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: SUPPLIER_TYPES.map((type) => (_jsx(SelectItem, { value: type.value, children: messages.common.supplierTypeLabels[type.value] }, type.value))) })] })] }), _jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(Label, { children: dialog.statusLabel }), _jsxs(Select, { value: form.watch("status"), onValueChange: (value) => form.setValue("status", value), children: [_jsx(SelectTrigger, { className: "w-full", children: _jsx(SelectValue, {}) }), _jsx(SelectContent, { children: SUPPLIER_STATUSES.map((status) => (_jsx(SelectItem, { value: status.value, children: messages.common.supplierStatusLabels[status.value] }, status.value))) })] })] })] }), _jsx(Field, { label: dialog.nameLabel, error: form.formState.errors.name?.message, children: _jsx(Input, { ...form.register("name"), placeholder: dialog.namePlaceholder }) }), _jsx(Field, { label: dialog.descriptionLabel, children: _jsx(Textarea, { ...form.register("description"), placeholder: dialog.descriptionPlaceholder }) }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx(Field, { label: dialog.emailLabel, error: form.formState.errors.email?.message, children: _jsx(Input, { ...form.register("email"), type: "email", placeholder: dialog.emailPlaceholder }) }), _jsx(Field, { label: dialog.phoneLabel, children: _jsx(PhoneInput, { value: form.watch("phone") ?? "", onChange: (next) => form.setValue("phone", next, { shouldDirty: true }), placeholder: dialog.phonePlaceholder }) })] }), _jsx(Field, { label: dialog.websiteLabel, error: form.formState.errors.website?.message, children: _jsx(Input, { ...form.register("website"), placeholder: dialog.websitePlaceholder }) }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx(Field, { label: dialog.cityLabel, children: _jsx(Input, { ...form.register("city"), placeholder: dialog.cityPlaceholder }) }), _jsx(Field, { label: dialog.countryLabel, children: _jsx(CountryCombobox, { value: form.watch("country"), onChange: (value) => form.setValue("country", value ?? ""), placeholder: dialog.countryPlaceholder }) })] }), _jsx(Field, { label: dialog.addressLabel, children: _jsx(Textarea, { ...form.register("address"), placeholder: dialog.addressPlaceholder }) }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-2", children: [_jsx(Field, { label: dialog.defaultCurrencyLabel, error: form.formState.errors.defaultCurrency?.message, children: _jsx(CurrencyCombobox, { value: form.watch("defaultCurrency") || null, onChange: (next) => form.setValue("defaultCurrency", next ?? "", {
112
113
  shouldValidate: true,
113
114
  shouldDirty: true,
114
- }), placeholder: dialog.defaultCurrencyPlaceholder }) }), _jsx(Field, { label: dialog.reservationTimeoutLabel, error: form.formState.errors.reservationTimeoutMinutes?.message, children: _jsx(Input, { ...form.register("reservationTimeoutMinutes"), type: "number", min: "0", placeholder: dialog.reservationTimeoutPlaceholder }) })] }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-3", children: [_jsx(Field, { label: dialog.contactNameLabel, children: _jsx(Input, { ...form.register("contactName"), placeholder: dialog.contactNamePlaceholder }) }), _jsx(Field, { label: dialog.contactEmailLabel, error: form.formState.errors.contactEmail?.message, children: _jsx(Input, { ...form.register("contactEmail"), type: "email", placeholder: dialog.contactEmailPlaceholder }) }), _jsx(Field, { label: dialog.contactPhoneLabel, children: _jsx(Input, { ...form.register("contactPhone"), placeholder: dialog.contactPhonePlaceholder }) })] })] }), _jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "ghost", onClick: () => onOpenChange(false), children: messages.common.cancel }), _jsxs(Button, { type: "submit", disabled: form.formState.isSubmitting, children: [form.formState.isSubmitting && _jsx(Loader2, { className: "animate-spin" }), isEditing ? messages.common.save : messages.common.create] })] })] })] }) }));
115
+ }), placeholder: dialog.defaultCurrencyPlaceholder }) }), _jsx(Field, { label: dialog.reservationTimeoutLabel, error: form.formState.errors.reservationTimeoutMinutes?.message, children: _jsx(Input, { ...form.register("reservationTimeoutMinutes"), type: "number", min: "0", placeholder: dialog.reservationTimeoutPlaceholder }) })] }), _jsxs("div", { className: "grid gap-4 sm:grid-cols-3", children: [_jsx(Field, { label: dialog.contactNameLabel, children: _jsx(Input, { ...form.register("contactName"), placeholder: dialog.contactNamePlaceholder }) }), _jsx(Field, { label: dialog.contactEmailLabel, error: form.formState.errors.contactEmail?.message, children: _jsx(Input, { ...form.register("contactEmail"), type: "email", placeholder: dialog.contactEmailPlaceholder }) }), _jsx(Field, { label: dialog.contactPhoneLabel, children: _jsx(PhoneInput, { value: form.watch("contactPhone") ?? "", onChange: (next) => form.setValue("contactPhone", next, { shouldDirty: true }), placeholder: dialog.contactPhonePlaceholder }) })] })] }), _jsxs(DialogFooter, { children: [_jsx(Button, { type: "button", variant: "ghost", onClick: () => onOpenChange(false), children: messages.common.cancel }), _jsxs(Button, { type: "submit", disabled: form.formState.isSubmitting, children: [form.formState.isSubmitting && _jsx(Loader2, { className: "animate-spin" }), isEditing ? messages.common.save : messages.common.create] })] })] })] }) }));
115
116
  }
116
117
  function Field({ label, error, children, }) {
117
118
  return (_jsxs("div", { className: "flex flex-col gap-2", children: [_jsx(Label, { children: label }), children, error && _jsx("p", { className: "text-xs text-destructive", children: error })] }));
@@ -18,5 +18,5 @@ export declare function SupplierServiceRow({ service, supplierId, rates, expande
18
18
  onAddRate: () => void;
19
19
  onEditRate: (rate: SupplierRate) => void;
20
20
  onDeleteRate: (rateId: string) => void;
21
- }): import("react/jsx-runtime").JSX.Element;
21
+ }): import("react").JSX.Element;
22
22
  //# sourceMappingURL=supplier-service-row.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"supplier-service-row.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/supplier-service-row.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAA2B,MAAM,aAAa,CAAA;AAE9F,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,UAAU,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,YAAY,GACb,EAAE;IACD,OAAO,EAAE,eAAe,CAAA;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;IACtB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,UAAU,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACxC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC,2CA0JA"}
1
+ {"version":3,"file":"supplier-service-row.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/supplier-service-row.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,eAAe,EAA2B,MAAM,aAAa,CAAA;AAE9F,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,UAAU,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,SAAS,EACT,UAAU,EACV,YAAY,GACb,EAAE;IACD,OAAO,EAAE,eAAe,CAAA;IACxB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,YAAY,EAAE,CAAA;IACtB,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,UAAU,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAA;IACxC,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC,+BA0JA"}
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { type Supplier } from "../index.js";
2
3
  export type SuppliersPageProps = {
3
4
  pageSize?: number;
@@ -6,5 +7,5 @@ export type SuppliersPageProps = {
6
7
  initialSearch?: string;
7
8
  className?: string;
8
9
  };
9
- export declare function SuppliersPage({ pageSize, onSupplierOpen, onSupplierCreated, initialSearch, className, }?: SuppliersPageProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function SuppliersPage({ pageSize, onSupplierOpen, onSupplierCreated, initialSearch, className, }?: SuppliersPageProps): React.JSX.Element;
10
11
  //# sourceMappingURL=suppliers-page.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"suppliers-page.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/suppliers-page.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAGL,KAAK,QAAQ,EAKd,MAAM,aAAa,CAAA;AAMpB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;IAC7C,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;IAChD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAa,EACb,cAAc,EACd,iBAAiB,EACjB,aAAkB,EAClB,SAAS,GACV,GAAE,kBAAuB,2CA6TzB"}
1
+ {"version":3,"file":"suppliers-page.d.ts","sourceRoot":"","sources":["../../../src/suppliers/components/suppliers-page.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAGL,KAAK,QAAQ,EAKd,MAAM,aAAa,CAAA;AAMpB,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;IAC7C,iBAAiB,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,KAAK,IAAI,CAAA;IAChD,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAa,EACb,cAAc,EACd,iBAAiB,EACjB,aAAkB,EAClB,SAAS,GACV,GAAE,kBAAuB,qBA6TzB"}
@@ -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: () => {
@@ -1,7 +1,7 @@
1
1
  export interface UseSupplierNotesOptions {
2
2
  enabled?: boolean;
3
3
  }
4
- export declare function useSupplierNotes(supplierId: string, options?: UseSupplierNotesOptions): import("@tanstack/react-query").UseQueryResult<{
4
+ export declare function useSupplierNotes(supplierId: string, options?: UseSupplierNotesOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
5
5
  data: {
6
6
  id: string;
7
7
  supplierId: string;
@@ -9,5 +9,5 @@ export declare function useSupplierNotes(supplierId: string, options?: UseSuppli
9
9
  content: string;
10
10
  createdAt: string;
11
11
  }[];
12
- }, Error>;
12
+ }>, Error>;
13
13
  //# sourceMappingURL=use-supplier-notes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-supplier-notes.d.ts","sourceRoot":"","sources":["../../../src/suppliers/hooks/use-supplier-notes.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B;;;;;;;;UAOzF"}
1
+ {"version":3,"file":"use-supplier-notes.d.ts","sourceRoot":"","sources":["../../../src/suppliers/hooks/use-supplier-notes.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B;;;;;;;;WAOzF"}
@@ -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),
@@ -1,7 +1,7 @@
1
1
  export interface UseSupplierServiceRatesOptions {
2
2
  enabled?: boolean;
3
3
  }
4
- export declare function useSupplierServiceRates(supplierId: string, serviceId: string, options?: UseSupplierServiceRatesOptions): import("@tanstack/react-query").UseQueryResult<{
4
+ export declare function useSupplierServiceRates(supplierId: string, serviceId: string, options?: UseSupplierServiceRatesOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
5
5
  data: {
6
6
  id: string;
7
7
  serviceId: string;
@@ -16,5 +16,5 @@ export declare function useSupplierServiceRates(supplierId: string, serviceId: s
16
16
  notes: string | null;
17
17
  createdAt: string;
18
18
  }[];
19
- }, Error>;
19
+ }>, Error>;
20
20
  //# sourceMappingURL=use-supplier-service-rates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-supplier-service-rates.d.ts","sourceRoot":"","sources":["../../../src/suppliers/hooks/use-supplier-service-rates.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,8BAAmC;;;;;;;;;;;;;;;UAQ7C"}
1
+ {"version":3,"file":"use-supplier-service-rates.d.ts","sourceRoot":"","sources":["../../../src/suppliers/hooks/use-supplier-service-rates.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE,8BAAmC;;;;;;;;;;;;;;;WAQ7C"}
@@ -1,11 +1,11 @@
1
1
  export interface UseSupplierServicesOptions {
2
2
  enabled?: boolean;
3
3
  }
4
- export declare function useSupplierServices(supplierId: string, options?: UseSupplierServicesOptions): import("@tanstack/react-query").UseQueryResult<{
4
+ export declare function useSupplierServices(supplierId: string, options?: UseSupplierServicesOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
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;
@@ -15,5 +15,5 @@ export declare function useSupplierServices(supplierId: string, options?: UseSup
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
17
  }[];
18
- }, Error>;
18
+ }>, Error>;
19
19
  //# sourceMappingURL=use-supplier-services.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-supplier-services.d.ts","sourceRoot":"","sources":["../../../src/suppliers/hooks/use-supplier-services.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,0BAA+B;;;;;;;;;;;;;;UAO/F"}
1
+ {"version":3,"file":"use-supplier-services.d.ts","sourceRoot":"","sources":["../../../src/suppliers/hooks/use-supplier-services.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,0BAA0B;IACzC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,GAAE,0BAA+B;;;;;;;;;;;;;;WAO/F"}
@@ -1,11 +1,11 @@
1
1
  export interface UseSupplierOptions {
2
2
  enabled?: boolean;
3
3
  }
4
- export declare function useSupplier(id: string, options?: UseSupplierOptions): import("@tanstack/react-query").UseQueryResult<{
4
+ export declare function useSupplier(id: string, options?: UseSupplierOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
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;
@@ -34,5 +34,5 @@ export declare function useSupplier(id: string, options?: UseSupplierOptions): i
34
34
  balanceDueMinDaysFromNow: number;
35
35
  } | null | undefined;
36
36
  };
37
- }, Error>;
37
+ }>, Error>;
38
38
  //# sourceMappingURL=use-supplier.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-supplier.d.ts","sourceRoot":"","sources":["../../../src/suppliers/hooks/use-supplier.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAIvE"}
1
+ {"version":3,"file":"use-supplier.d.ts","sourceRoot":"","sources":["../../../src/suppliers/hooks/use-supplier.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,kBAAkB;IACjC,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,GAAE,kBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIvE"}
@@ -2,11 +2,11 @@ import type { SuppliersListFilters } from "../query-keys.js";
2
2
  export interface UseSuppliersOptions extends SuppliersListFilters {
3
3
  enabled?: boolean;
4
4
  }
5
- export declare function useSuppliers(options?: UseSuppliersOptions): import("@tanstack/react-query").UseQueryResult<{
5
+ export declare function useSuppliers(options?: UseSuppliersOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<{
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;
@@ -38,5 +38,5 @@ export declare function useSuppliers(options?: UseSuppliersOptions): import("@ta
38
38
  total: number;
39
39
  limit: number;
40
40
  offset: number;
41
- }, Error>;
41
+ }>, Error>;
42
42
  //# sourceMappingURL=use-suppliers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-suppliers.d.ts","sourceRoot":"","sources":["../../../src/suppliers/hooks/use-suppliers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAG5D,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAI7D"}
1
+ {"version":3,"file":"use-suppliers.d.ts","sourceRoot":"","sources":["../../../src/suppliers/hooks/use-suppliers.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AAG5D,MAAM,WAAW,mBAAoB,SAAQ,oBAAoB;IAC/D,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,YAAY,CAAC,OAAO,GAAE,mBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAI7D"}
@@ -422,7 +422,7 @@ export declare function SuppliersUiMessagesProvider({ children, locale, override
422
422
  children: ReactNode;
423
423
  locale: string | null | undefined;
424
424
  overrides?: SuppliersUiMessageOverrides | null;
425
- }): import("react/jsx-runtime").JSX.Element;
425
+ }): import("react").JSX.Element;
426
426
  export declare const useSuppliersUiI18n: () => PackageI18nValue<SuppliersUiMessages>;
427
427
  export declare const useSuppliersUiMessages: () => SuppliersUiMessages;
428
428
  export declare function useSuppliersUiI18nOrDefault(): PackageI18nValue<SuppliersUiMessages>;
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/suppliers/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAKxD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGe,CAAA;AAEzD,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,CAAA;AASrF,wBAAgB,0BAA0B,CAAC,EACzC,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAA;CAC/C,uBAOA;AAED,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAClC,SAAS,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAA;CAC/C,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,CASxC;AAED,wBAAgB,2BAA2B,CAAC,EAC1C,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAA;CAC/C,2CAWA;AAED,eAAO,MAAM,kBAAkB,6CAA6B,CAAA;AAC5D,eAAO,MAAM,sBAAsB,2BAAiC,CAAA;AAEpE,wBAAgB,2BAA2B,0CAE1C;AAED,wBAAgB,+BAA+B,wBAE9C"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../../src/suppliers/i18n/provider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EAEtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAKxD,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGe,CAAA;AAEzD,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,CAAA;AASrF,wBAAgB,0BAA0B,CAAC,EACzC,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAA;CAC/C,uBAOA;AAED,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,SAAS,GACV,EAAE;IACD,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IAClC,SAAS,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAA;CAC/C,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,CASxC;AAED,wBAAgB,2BAA2B,CAAC,EAC1C,QAAQ,EACR,MAAM,EACN,SAAS,GACV,EAAE;IACD,QAAQ,EAAE,SAAS,CAAA;IACnB,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACjC,SAAS,CAAC,EAAE,2BAA2B,GAAG,IAAI,CAAA;CAC/C,+BAWA;AAED,eAAO,MAAM,kBAAkB,6CAA6B,CAAA;AAC5D,eAAO,MAAM,sBAAsB,2BAAiC,CAAA;AAEpE,wBAAgB,2BAA2B,0CAE1C;AAED,wBAAgB,+BAA+B,wBAE9C"}