@voyant-travel/inventory-react 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/dist/admin/index.d.ts +91 -0
- package/dist/admin/index.d.ts.map +1 -0
- package/dist/admin/index.js +132 -0
- package/dist/admin/pages/product-detail-page.d.ts +18 -0
- package/dist/admin/pages/product-detail-page.d.ts.map +1 -0
- package/dist/admin/pages/product-detail-page.js +63 -0
- package/dist/admin/product-categories-host.d.ts +7 -0
- package/dist/admin/product-categories-host.d.ts.map +1 -0
- package/dist/admin/product-categories-host.js +11 -0
- package/dist/admin/product-detail-api.d.ts +22 -0
- package/dist/admin/product-detail-api.d.ts.map +1 -0
- package/dist/admin/product-detail-api.js +58 -0
- package/dist/admin/products-host.d.ts +11 -0
- package/dist/admin/products-host.d.ts.map +1 -0
- package/dist/admin/products-host.js +17 -0
- package/dist/admin/products-list-skeleton.d.ts +10 -0
- package/dist/admin/products-list-skeleton.d.ts.map +1 -0
- package/dist/admin/products-list-skeleton.js +23 -0
- package/dist/client.d.ts +16 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +79 -0
- package/dist/components/option-unit-dialog.d.ts +11 -0
- package/dist/components/option-unit-dialog.d.ts.map +1 -0
- package/dist/components/option-unit-dialog.js +17 -0
- package/dist/components/option-unit-form.d.ts +17 -0
- package/dist/components/option-unit-form.d.ts.map +1 -0
- package/dist/components/option-unit-form.js +123 -0
- package/dist/components/product-action-ledger-card.d.ts +17 -0
- package/dist/components/product-action-ledger-card.d.ts.map +1 -0
- package/dist/components/product-action-ledger-card.js +73 -0
- package/dist/components/product-catalog-card.d.ts +14 -0
- package/dist/components/product-catalog-card.d.ts.map +1 -0
- package/dist/components/product-catalog-card.js +44 -0
- package/dist/components/product-categories-page.d.ts +7 -0
- package/dist/components/product-categories-page.d.ts.map +1 -0
- package/dist/components/product-categories-page.js +9 -0
- package/dist/components/product-category-combobox.d.ts +10 -0
- package/dist/components/product-category-combobox.d.ts.map +1 -0
- package/dist/components/product-category-combobox.js +47 -0
- package/dist/components/product-category-dialog.d.ts +9 -0
- package/dist/components/product-category-dialog.d.ts.map +1 -0
- package/dist/components/product-category-dialog.js +17 -0
- package/dist/components/product-category-form.d.ts +15 -0
- package/dist/components/product-category-form.d.ts.map +1 -0
- package/dist/components/product-category-form.js +82 -0
- package/dist/components/product-category-list.d.ts +5 -0
- package/dist/components/product-category-list.d.ts.map +1 -0
- package/dist/components/product-category-list.js +48 -0
- package/dist/components/product-combobox.d.ts +13 -0
- package/dist/components/product-combobox.d.ts.map +1 -0
- package/dist/components/product-combobox.js +23 -0
- package/dist/components/product-contract-template-combobox.d.ts +9 -0
- package/dist/components/product-contract-template-combobox.d.ts.map +1 -0
- package/dist/components/product-contract-template-combobox.js +97 -0
- package/dist/components/product-day-dialog.d.ts +20 -0
- package/dist/components/product-day-dialog.d.ts.map +1 -0
- package/dist/components/product-day-dialog.js +20 -0
- package/dist/components/product-day-form.d.ts +19 -0
- package/dist/components/product-day-form.d.ts.map +1 -0
- package/dist/components/product-day-form.js +77 -0
- package/dist/components/product-day-media-tray.d.ts +11 -0
- package/dist/components/product-day-media-tray.d.ts.map +1 -0
- package/dist/components/product-day-media-tray.js +74 -0
- package/dist/components/product-day-service-dialog.d.ts +14 -0
- package/dist/components/product-day-service-dialog.d.ts.map +1 -0
- package/dist/components/product-day-service-dialog.js +19 -0
- package/dist/components/product-day-service-form.d.ts +44 -0
- package/dist/components/product-day-service-form.d.ts.map +1 -0
- package/dist/components/product-day-service-form.js +152 -0
- package/dist/components/product-detail/commerce-client.d.ts +314 -0
- package/dist/components/product-detail/commerce-client.d.ts.map +1 -0
- package/dist/components/product-detail/commerce-client.js +261 -0
- package/dist/components/product-detail/host.d.ts +54 -0
- package/dist/components/product-detail/host.d.ts.map +1 -0
- package/dist/components/product-detail/host.js +27 -0
- package/dist/components/product-detail/index.d.ts +6 -0
- package/dist/components/product-detail/index.d.ts.map +1 -0
- package/dist/components/product-detail/index.js +5 -0
- package/dist/components/product-detail/product-activity-section.d.ts +4 -0
- package/dist/components/product-detail/product-activity-section.d.ts.map +1 -0
- package/dist/components/product-detail/product-activity-section.js +37 -0
- package/dist/components/product-detail/product-day-sheet.d.ts +14 -0
- package/dist/components/product-detail/product-day-sheet.d.ts.map +1 -0
- package/dist/components/product-detail/product-day-sheet.js +75 -0
- package/dist/components/product-detail/product-day-translation.d.ts +41 -0
- package/dist/components/product-detail/product-day-translation.d.ts.map +1 -0
- package/dist/components/product-detail/product-day-translation.js +111 -0
- package/dist/components/product-detail/product-departure-dialog.d.ts +11 -0
- package/dist/components/product-detail/product-departure-dialog.d.ts.map +1 -0
- package/dist/components/product-detail/product-departure-dialog.js +10 -0
- package/dist/components/product-detail/product-departure-form.d.ts +25 -0
- package/dist/components/product-detail/product-departure-form.d.ts.map +1 -0
- package/dist/components/product-detail/product-departure-form.js +241 -0
- package/dist/components/product-detail/product-departure-pricing-override-dialog.d.ts +8 -0
- package/dist/components/product-detail/product-departure-pricing-override-dialog.d.ts.map +1 -0
- package/dist/components/product-detail/product-departure-pricing-override-dialog.js +126 -0
- package/dist/components/product-detail/product-detail-availability-sections.d.ts +19 -0
- package/dist/components/product-detail/product-detail-availability-sections.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-availability-sections.js +29 -0
- package/dist/components/product-detail/product-detail-channel-section.d.ts +8 -0
- package/dist/components/product-detail/product-detail-channel-section.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-channel-section.js +16 -0
- package/dist/components/product-detail/product-detail-day-row.d.ts +14 -0
- package/dist/components/product-detail/product-detail-day-row.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-day-row.js +43 -0
- package/dist/components/product-detail/product-detail-dialog.d.ts +10 -0
- package/dist/components/product-detail/product-detail-dialog.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-dialog.js +10 -0
- package/dist/components/product-detail/product-detail-form.d.ts +22 -0
- package/dist/components/product-detail/product-detail-form.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-form.js +205 -0
- package/dist/components/product-detail/product-detail-header.d.ts +12 -0
- package/dist/components/product-detail/product-detail-header.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-header.js +19 -0
- package/dist/components/product-detail/product-detail-itinerary-section.d.ts +4 -0
- package/dist/components/product-detail/product-detail-itinerary-section.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-itinerary-section.js +201 -0
- package/dist/components/product-detail/product-detail-media-sections.d.ts +15 -0
- package/dist/components/product-detail/product-detail-media-sections.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-media-sections.js +19 -0
- package/dist/components/product-detail/product-detail-organize-section.d.ts +6 -0
- package/dist/components/product-detail/product-detail-organize-section.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-organize-section.js +18 -0
- package/dist/components/product-detail/product-detail-page.d.ts +4 -0
- package/dist/components/product-detail/product-detail-page.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-page.js +95 -0
- package/dist/components/product-detail/product-detail-section-shell.d.ts +19 -0
- package/dist/components/product-detail/product-detail-section-shell.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-section-shell.js +23 -0
- package/dist/components/product-detail/product-detail-sections.d.ts +7 -0
- package/dist/components/product-detail/product-detail-sections.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-sections.js +6 -0
- package/dist/components/product-detail/product-detail-shared.d.ts +264 -0
- package/dist/components/product-detail/product-detail-shared.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-shared.js +157 -0
- package/dist/components/product-detail/product-detail-skeleton.d.ts +9 -0
- package/dist/components/product-detail/product-detail-skeleton.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-skeleton.js +53 -0
- package/dist/components/product-detail/product-detail-summary-section.d.ts +6 -0
- package/dist/components/product-detail/product-detail-summary-section.d.ts.map +1 -0
- package/dist/components/product-detail/product-detail-summary-section.js +66 -0
- package/dist/components/product-detail/product-extra-dialog.d.ts +21 -0
- package/dist/components/product-detail/product-extra-dialog.d.ts.map +1 -0
- package/dist/components/product-detail/product-extra-dialog.js +131 -0
- package/dist/components/product-detail/product-itinerary-form.d.ts +16 -0
- package/dist/components/product-detail/product-itinerary-form.d.ts.map +1 -0
- package/dist/components/product-detail/product-itinerary-form.js +38 -0
- package/dist/components/product-detail/product-market-rules-section.d.ts +6 -0
- package/dist/components/product-detail/product-market-rules-section.d.ts.map +1 -0
- package/dist/components/product-detail/product-market-rules-section.js +81 -0
- package/dist/components/product-detail/product-media-gallery.d.ts +19 -0
- package/dist/components/product-detail/product-media-gallery.d.ts.map +1 -0
- package/dist/components/product-detail/product-media-gallery.js +114 -0
- package/dist/components/product-detail/product-option-price-rule-dialog.d.ts +12 -0
- package/dist/components/product-detail/product-option-price-rule-dialog.d.ts.map +1 -0
- package/dist/components/product-detail/product-option-price-rule-dialog.js +10 -0
- package/dist/components/product-detail/product-option-price-rule-form.d.ts +29 -0
- package/dist/components/product-detail/product-option-price-rule-form.d.ts.map +1 -0
- package/dist/components/product-detail/product-option-price-rule-form.js +122 -0
- package/dist/components/product-detail/product-option-pricing-grid.d.ts +16 -0
- package/dist/components/product-detail/product-option-pricing-grid.d.ts.map +1 -0
- package/dist/components/product-detail/product-option-pricing-grid.js +236 -0
- package/dist/components/product-detail/product-options-extra-price-rules.d.ts +8 -0
- package/dist/components/product-detail/product-options-extra-price-rules.d.ts.map +1 -0
- package/dist/components/product-detail/product-options-extra-price-rules.js +123 -0
- package/dist/components/product-detail/product-options-pricing-helpers.d.ts +14 -0
- package/dist/components/product-detail/product-options-pricing-helpers.d.ts.map +1 -0
- package/dist/components/product-detail/product-options-pricing-helpers.js +49 -0
- package/dist/components/product-detail/product-options-pricing-panel.d.ts +17 -0
- package/dist/components/product-detail/product-options-pricing-panel.d.ts.map +1 -0
- package/dist/components/product-detail/product-options-pricing-panel.js +88 -0
- package/dist/components/product-detail/product-options-pricing.d.ts +5 -0
- package/dist/components/product-detail/product-options-pricing.d.ts.map +1 -0
- package/dist/components/product-detail/product-options-pricing.js +4 -0
- package/dist/components/product-detail/product-options-shared.d.ts +236 -0
- package/dist/components/product-detail/product-options-shared.d.ts.map +1 -0
- package/dist/components/product-detail/product-options-shared.js +57 -0
- package/dist/components/product-detail/product-options-traveler-category-dialog.d.ts +12 -0
- package/dist/components/product-detail/product-options-traveler-category-dialog.d.ts.map +1 -0
- package/dist/components/product-detail/product-options-traveler-category-dialog.js +132 -0
- package/dist/components/product-detail/product-options-unit-price-matrix.d.ts +10 -0
- package/dist/components/product-detail/product-options-unit-price-matrix.d.ts.map +1 -0
- package/dist/components/product-detail/product-options-unit-price-matrix.js +103 -0
- package/dist/components/product-detail/product-payment-policy-section.d.ts +17 -0
- package/dist/components/product-detail/product-payment-policy-section.d.ts.map +1 -0
- package/dist/components/product-detail/product-payment-policy-section.js +58 -0
- package/dist/components/product-detail/product-schedule-dialog.d.ts +11 -0
- package/dist/components/product-detail/product-schedule-dialog.d.ts.map +1 -0
- package/dist/components/product-detail/product-schedule-dialog.js +10 -0
- package/dist/components/product-detail/product-schedule-form.d.ts +17 -0
- package/dist/components/product-detail/product-schedule-form.d.ts.map +1 -0
- package/dist/components/product-detail/product-schedule-form.js +223 -0
- package/dist/components/product-detail/product-service-dialog.d.ts +12 -0
- package/dist/components/product-detail/product-service-dialog.d.ts.map +1 -0
- package/dist/components/product-detail/product-service-dialog.js +10 -0
- package/dist/components/product-detail/product-service-form.d.ts +22 -0
- package/dist/components/product-detail/product-service-form.d.ts.map +1 -0
- package/dist/components/product-detail/product-service-form.js +154 -0
- package/dist/components/product-detail/product-translation-popover.d.ts +94 -0
- package/dist/components/product-detail/product-translation-popover.d.ts.map +1 -0
- package/dist/components/product-detail/product-translation-popover.js +238 -0
- package/dist/components/product-detail/product-unit-dialog.d.ts +14 -0
- package/dist/components/product-detail/product-unit-dialog.d.ts.map +1 -0
- package/dist/components/product-detail/product-unit-dialog.js +10 -0
- package/dist/components/product-detail/product-unit-form.d.ts +34 -0
- package/dist/components/product-detail/product-unit-form.d.ts.map +1 -0
- package/dist/components/product-detail/product-unit-form.js +139 -0
- package/dist/components/product-detail/product-unit-price-rule-dialog.d.ts +17 -0
- package/dist/components/product-detail/product-unit-price-rule-dialog.d.ts.map +1 -0
- package/dist/components/product-detail/product-unit-price-rule-dialog.js +10 -0
- package/dist/components/product-detail/product-unit-price-rule-form.d.ts +29 -0
- package/dist/components/product-detail/product-unit-price-rule-form.d.ts.map +1 -0
- package/dist/components/product-detail/product-unit-price-rule-form.js +144 -0
- package/dist/components/product-detail/rrule-labels.d.ts +2 -0
- package/dist/components/product-detail/rrule-labels.d.ts.map +1 -0
- package/dist/components/product-detail/rrule-labels.js +65 -0
- package/dist/components/product-detail/timezone-options.d.ts +9 -0
- package/dist/components/product-detail/timezone-options.d.ts.map +1 -0
- package/dist/components/product-detail/timezone-options.js +28 -0
- package/dist/components/product-detail/use-product-detail-data.d.ts +41 -0
- package/dist/components/product-detail/use-product-detail-data.d.ts.map +1 -0
- package/dist/components/product-detail/use-product-detail-data.js +143 -0
- package/dist/components/product-detail/use-product-detail-dialogs.d.ts +24 -0
- package/dist/components/product-detail/use-product-detail-dialogs.d.ts.map +1 -0
- package/dist/components/product-detail/use-product-detail-dialogs.js +40 -0
- package/dist/components/product-detail/zod-resolver.d.ts +4 -0
- package/dist/components/product-detail/zod-resolver.d.ts.map +1 -0
- package/dist/components/product-detail/zod-resolver.js +39 -0
- package/dist/components/product-detail-page.d.ts +57 -0
- package/dist/components/product-detail-page.d.ts.map +1 -0
- package/dist/components/product-detail-page.js +118 -0
- package/dist/components/product-detail.d.ts +2 -0
- package/dist/components/product-detail.d.ts.map +1 -0
- package/dist/components/product-detail.js +1 -0
- package/dist/components/product-dialog.d.ts +9 -0
- package/dist/components/product-dialog.d.ts.map +1 -0
- package/dist/components/product-dialog.js +13 -0
- package/dist/components/product-facility-combobox.d.ts +9 -0
- package/dist/components/product-facility-combobox.d.ts.map +1 -0
- package/dist/components/product-facility-combobox.js +94 -0
- package/dist/components/product-form.d.ts +14 -0
- package/dist/components/product-form.d.ts.map +1 -0
- package/dist/components/product-form.js +191 -0
- package/dist/components/product-itinerary-day-row.d.ts +22 -0
- package/dist/components/product-itinerary-day-row.d.ts.map +1 -0
- package/dist/components/product-itinerary-day-row.js +17 -0
- package/dist/components/product-itinerary-dialog.d.ts +16 -0
- package/dist/components/product-itinerary-dialog.d.ts.map +1 -0
- package/dist/components/product-itinerary-dialog.js +85 -0
- package/dist/components/product-itinerary-section.d.ts +16 -0
- package/dist/components/product-itinerary-section.d.ts.map +1 -0
- package/dist/components/product-itinerary-section.js +105 -0
- package/dist/components/product-list.d.ts +7 -0
- package/dist/components/product-list.d.ts.map +1 -0
- package/dist/components/product-list.js +155 -0
- package/dist/components/product-media-dialog.d.ts +11 -0
- package/dist/components/product-media-dialog.d.ts.map +1 -0
- package/dist/components/product-media-dialog.js +17 -0
- package/dist/components/product-media-form.d.ts +17 -0
- package/dist/components/product-media-form.d.ts.map +1 -0
- package/dist/components/product-media-form.js +101 -0
- package/dist/components/product-media-lightbox.d.ts +7 -0
- package/dist/components/product-media-lightbox.d.ts.map +1 -0
- package/dist/components/product-media-lightbox.js +31 -0
- package/dist/components/product-media-section.d.ts +27 -0
- package/dist/components/product-media-section.d.ts.map +1 -0
- package/dist/components/product-media-section.js +130 -0
- package/dist/components/product-media-tile.d.ts +17 -0
- package/dist/components/product-media-tile.d.ts.map +1 -0
- package/dist/components/product-media-tile.js +16 -0
- package/dist/components/product-option-dialog.d.ts +11 -0
- package/dist/components/product-option-dialog.d.ts.map +1 -0
- package/dist/components/product-option-dialog.js +17 -0
- package/dist/components/product-option-form.d.ts +17 -0
- package/dist/components/product-option-form.d.ts.map +1 -0
- package/dist/components/product-option-form.js +91 -0
- package/dist/components/product-options-section.d.ts +13 -0
- package/dist/components/product-options-section.d.ts.map +1 -0
- package/dist/components/product-options-section.js +200 -0
- package/dist/components/product-quick-view-sheet.d.ts +23 -0
- package/dist/components/product-quick-view-sheet.d.ts.map +1 -0
- package/dist/components/product-quick-view-sheet.js +65 -0
- package/dist/components/product-tag-dialog.d.ts +9 -0
- package/dist/components/product-tag-dialog.d.ts.map +1 -0
- package/dist/components/product-tag-dialog.js +17 -0
- package/dist/components/product-tag-form.d.ts +15 -0
- package/dist/components/product-tag-form.d.ts.map +1 -0
- package/dist/components/product-tag-form.js +48 -0
- package/dist/components/product-tag-list.d.ts +5 -0
- package/dist/components/product-tag-list.d.ts.map +1 -0
- package/dist/components/product-tag-list.js +44 -0
- package/dist/components/product-tags-page.d.ts +7 -0
- package/dist/components/product-tags-page.d.ts.map +1 -0
- package/dist/components/product-tags-page.js +9 -0
- package/dist/components/product-tax-class-combobox.d.ts +9 -0
- package/dist/components/product-tax-class-combobox.d.ts.map +1 -0
- package/dist/components/product-tax-class-combobox.js +100 -0
- package/dist/components/product-translations-card.d.ts +7 -0
- package/dist/components/product-translations-card.d.ts.map +1 -0
- package/dist/components/product-translations-card.js +188 -0
- package/dist/components/product-type-combobox.d.ts +9 -0
- package/dist/components/product-type-combobox.d.ts.map +1 -0
- package/dist/components/product-type-combobox.js +48 -0
- package/dist/components/product-types-page.d.ts +6 -0
- package/dist/components/product-types-page.d.ts.map +1 -0
- package/dist/components/product-types-page.js +103 -0
- package/dist/components/product-version-dialog.d.ts +8 -0
- package/dist/components/product-version-dialog.d.ts.map +1 -0
- package/dist/components/product-version-dialog.js +39 -0
- package/dist/components/product-versions-section.d.ts +7 -0
- package/dist/components/product-versions-section.d.ts.map +1 -0
- package/dist/components/product-versions-section.js +19 -0
- package/dist/components/products-page.d.ts +8 -0
- package/dist/components/products-page.d.ts.map +1 -0
- package/dist/components/products-page.js +8 -0
- package/dist/extras/client.d.ts +14 -0
- package/dist/extras/client.d.ts.map +1 -0
- package/dist/extras/client.js +58 -0
- package/dist/extras/components/extra-catalog-card.d.ts +13 -0
- package/dist/extras/components/extra-catalog-card.d.ts.map +1 -0
- package/dist/extras/components/extra-catalog-card.js +52 -0
- package/dist/extras/components/product-combobox.d.ts +9 -0
- package/dist/extras/components/product-combobox.d.ts.map +1 -0
- package/dist/extras/components/product-combobox.js +46 -0
- package/dist/extras/hooks/index.d.ts +4 -0
- package/dist/extras/hooks/index.d.ts.map +1 -0
- package/dist/extras/hooks/index.js +3 -0
- package/dist/extras/hooks/use-product-extra-mutation.d.ts +70 -0
- package/dist/extras/hooks/use-product-extra-mutation.d.ts.map +1 -0
- package/dist/extras/hooks/use-product-extra-mutation.js +38 -0
- package/dist/extras/hooks/use-product-extra.d.ts +24 -0
- package/dist/extras/hooks/use-product-extra.d.ts.map +1 -0
- package/dist/extras/hooks/use-product-extra.js +12 -0
- package/dist/extras/hooks/use-product-extras.d.ts +30 -0
- package/dist/extras/hooks/use-product-extras.d.ts.map +1 -0
- package/dist/extras/hooks/use-product-extras.js +12 -0
- package/dist/extras/i18n/en.d.ts +52 -0
- package/dist/extras/i18n/en.d.ts.map +1 -0
- package/dist/extras/i18n/en.js +51 -0
- package/dist/extras/i18n/index.d.ts +5 -0
- package/dist/extras/i18n/index.d.ts.map +1 -0
- package/dist/extras/i18n/index.js +3 -0
- package/dist/extras/i18n/messages.d.ts +37 -0
- package/dist/extras/i18n/messages.d.ts.map +1 -0
- package/dist/extras/i18n/messages.js +1 -0
- package/dist/extras/i18n/provider.d.ts +126 -0
- package/dist/extras/i18n/provider.d.ts.map +1 -0
- package/dist/extras/i18n/provider.js +44 -0
- package/dist/extras/i18n/ro.d.ts +52 -0
- package/dist/extras/i18n/ro.d.ts.map +1 -0
- package/dist/extras/i18n/ro.js +51 -0
- package/dist/extras/index.d.ts +7 -0
- package/dist/extras/index.d.ts.map +1 -0
- package/dist/extras/index.js +6 -0
- package/dist/extras/provider.d.ts +2 -0
- package/dist/extras/provider.d.ts.map +1 -0
- package/dist/extras/provider.js +1 -0
- package/dist/extras/query-keys.d.ts +16 -0
- package/dist/extras/query-keys.d.ts.map +1 -0
- package/dist/extras/query-keys.js +8 -0
- package/dist/extras/query-options.d.ts +455 -0
- package/dist/extras/query-options.d.ts.map +1 -0
- package/dist/extras/query-options.js +44 -0
- package/dist/extras/schemas.d.ts +416 -0
- package/dist/extras/schemas.d.ts.map +1 -0
- package/dist/extras/schemas.js +89 -0
- package/dist/extras/ui.d.ts +3 -0
- package/dist/extras/ui.d.ts.map +1 -0
- package/dist/extras/ui.js +2 -0
- package/dist/extras-compat.d.ts +3 -0
- package/dist/extras-compat.d.ts.map +1 -0
- package/dist/extras-compat.js +1 -0
- package/dist/extras.d.ts +10 -0
- package/dist/extras.d.ts.map +1 -0
- package/dist/extras.js +9 -0
- package/dist/hooks/index.d.ts +36 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +35 -0
- package/dist/hooks/use-duplicate-product-option-mutation.d.ts +19 -0
- package/dist/hooks/use-duplicate-product-option-mutation.d.ts.map +1 -0
- package/dist/hooks/use-duplicate-product-option-mutation.js +65 -0
- package/dist/hooks/use-option-unit-mutation.d.ts +60 -0
- package/dist/hooks/use-option-unit-mutation.d.ts.map +1 -0
- package/dist/hooks/use-option-unit-mutation.js +41 -0
- package/dist/hooks/use-option-unit.d.ts +21 -0
- package/dist/hooks/use-option-unit.d.ts.map +1 -0
- package/dist/hooks/use-option-unit.js +12 -0
- package/dist/hooks/use-option-units.d.ts +27 -0
- package/dist/hooks/use-option-units.d.ts.map +1 -0
- package/dist/hooks/use-option-units.js +12 -0
- package/dist/hooks/use-product-action-ledger.d.ts +48 -0
- package/dist/hooks/use-product-action-ledger.d.ts.map +1 -0
- package/dist/hooks/use-product-action-ledger.js +12 -0
- package/dist/hooks/use-product-categories.d.ts +32 -0
- package/dist/hooks/use-product-categories.d.ts.map +1 -0
- package/dist/hooks/use-product-categories.js +29 -0
- package/dist/hooks/use-product-category-mutation.d.ts +65 -0
- package/dist/hooks/use-product-category-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-category-mutation.js +39 -0
- package/dist/hooks/use-product-category.d.ts +26 -0
- package/dist/hooks/use-product-category.d.ts.map +1 -0
- package/dist/hooks/use-product-category.js +18 -0
- package/dist/hooks/use-product-day-mutation.d.ts +43 -0
- package/dist/hooks/use-product-day-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-day-mutation.js +54 -0
- package/dist/hooks/use-product-day-service-mutation.d.ts +66 -0
- package/dist/hooks/use-product-day-service-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-day-service-mutation.js +41 -0
- package/dist/hooks/use-product-day-services.d.ts +21 -0
- package/dist/hooks/use-product-day-services.d.ts.map +1 -0
- package/dist/hooks/use-product-day-services.js +12 -0
- package/dist/hooks/use-product-day-translation-mutation.d.ts +49 -0
- package/dist/hooks/use-product-day-translation-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-day-translation-mutation.js +38 -0
- package/dist/hooks/use-product-day-translations.d.ts +19 -0
- package/dist/hooks/use-product-day-translations.d.ts.map +1 -0
- package/dist/hooks/use-product-day-translations.js +20 -0
- package/dist/hooks/use-product-days.d.ts +16 -0
- package/dist/hooks/use-product-days.d.ts.map +1 -0
- package/dist/hooks/use-product-days.js +12 -0
- package/dist/hooks/use-product-itineraries.d.ts +15 -0
- package/dist/hooks/use-product-itineraries.d.ts.map +1 -0
- package/dist/hooks/use-product-itineraries.js +12 -0
- package/dist/hooks/use-product-itinerary-days.d.ts +16 -0
- package/dist/hooks/use-product-itinerary-days.d.ts.map +1 -0
- package/dist/hooks/use-product-itinerary-days.js +12 -0
- package/dist/hooks/use-product-itinerary-mutation.d.ts +54 -0
- package/dist/hooks/use-product-itinerary-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-itinerary-mutation.js +63 -0
- package/dist/hooks/use-product-media-mutation.d.ts +101 -0
- package/dist/hooks/use-product-media-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-media-mutation.js +69 -0
- package/dist/hooks/use-product-media.d.ts +26 -0
- package/dist/hooks/use-product-media.d.ts.map +1 -0
- package/dist/hooks/use-product-media.js +12 -0
- package/dist/hooks/use-product-mutation.d.ts +121 -0
- package/dist/hooks/use-product-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-mutation.js +44 -0
- package/dist/hooks/use-product-option-mutation.d.ts +49 -0
- package/dist/hooks/use-product-option-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-option-mutation.js +39 -0
- package/dist/hooks/use-product-option.d.ts +18 -0
- package/dist/hooks/use-product-option.d.ts.map +1 -0
- package/dist/hooks/use-product-option.js +12 -0
- package/dist/hooks/use-product-options.d.ts +24 -0
- package/dist/hooks/use-product-options.d.ts.map +1 -0
- package/dist/hooks/use-product-options.js +12 -0
- package/dist/hooks/use-product-tag-mutation.d.ts +25 -0
- package/dist/hooks/use-product-tag-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-tag-mutation.js +39 -0
- package/dist/hooks/use-product-tag.d.ts +10 -0
- package/dist/hooks/use-product-tag.d.ts.map +1 -0
- package/dist/hooks/use-product-tag.js +18 -0
- package/dist/hooks/use-product-tags.d.ts +16 -0
- package/dist/hooks/use-product-tags.d.ts.map +1 -0
- package/dist/hooks/use-product-tags.js +25 -0
- package/dist/hooks/use-product-translation-mutation.d.ts +52 -0
- package/dist/hooks/use-product-translation-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-translation-mutation.js +47 -0
- package/dist/hooks/use-product-translations.d.ts +28 -0
- package/dist/hooks/use-product-translations.d.ts.map +1 -0
- package/dist/hooks/use-product-translations.js +24 -0
- package/dist/hooks/use-product-type-mutation.d.ts +50 -0
- package/dist/hooks/use-product-type-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-type-mutation.js +47 -0
- package/dist/hooks/use-product-type.d.ts +15 -0
- package/dist/hooks/use-product-type.d.ts.map +1 -0
- package/dist/hooks/use-product-type.js +12 -0
- package/dist/hooks/use-product-types.d.ts +21 -0
- package/dist/hooks/use-product-types.d.ts.map +1 -0
- package/dist/hooks/use-product-types.js +9 -0
- package/dist/hooks/use-product-version-mutation.d.ts +16 -0
- package/dist/hooks/use-product-version-mutation.d.ts.map +1 -0
- package/dist/hooks/use-product-version-mutation.js +22 -0
- package/dist/hooks/use-product-versions.d.ts +15 -0
- package/dist/hooks/use-product-versions.d.ts.map +1 -0
- package/dist/hooks/use-product-versions.js +12 -0
- package/dist/hooks/use-product.d.ts +45 -0
- package/dist/hooks/use-product.d.ts.map +1 -0
- package/dist/hooks/use-product.js +23 -0
- package/dist/hooks/use-products.d.ts +51 -0
- package/dist/hooks/use-products.d.ts.map +1 -0
- package/dist/hooks/use-products.js +38 -0
- package/dist/i18n/en-catalog.d.ts +199 -0
- package/dist/i18n/en-catalog.d.ts.map +1 -0
- package/dist/i18n/en-catalog.js +198 -0
- package/dist/i18n/en-core.d.ts +323 -0
- package/dist/i18n/en-core.d.ts.map +1 -0
- package/dist/i18n/en-core.js +322 -0
- package/dist/i18n/en-operations.d.ts +287 -0
- package/dist/i18n/en-operations.d.ts.map +1 -0
- package/dist/i18n/en-operations.js +286 -0
- package/dist/i18n/en.d.ts +803 -0
- package/dist/i18n/en.d.ts.map +1 -0
- package/dist/i18n/en.js +8 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.d.ts.map +1 -0
- package/dist/i18n/index.js +3 -0
- package/dist/i18n/message-shared.d.ts +6 -0
- package/dist/i18n/message-shared.d.ts.map +1 -0
- package/dist/i18n/message-shared.js +1 -0
- package/dist/i18n/messages-catalog.d.ts +199 -0
- package/dist/i18n/messages-catalog.d.ts.map +1 -0
- package/dist/i18n/messages-catalog.js +1 -0
- package/dist/i18n/messages-core.d.ts +304 -0
- package/dist/i18n/messages-core.d.ts.map +1 -0
- package/dist/i18n/messages-core.js +1 -0
- package/dist/i18n/messages-operations.d.ts +287 -0
- package/dist/i18n/messages-operations.d.ts.map +1 -0
- package/dist/i18n/messages-operations.js +1 -0
- package/dist/i18n/messages.d.ts +6 -0
- package/dist/i18n/messages.d.ts.map +1 -0
- package/dist/i18n/messages.js +1 -0
- package/dist/i18n/provider.d.ts +1628 -0
- package/dist/i18n/provider.d.ts.map +1 -0
- package/dist/i18n/provider.js +44 -0
- package/dist/i18n/ro-catalog.d.ts +199 -0
- package/dist/i18n/ro-catalog.d.ts.map +1 -0
- package/dist/i18n/ro-catalog.js +198 -0
- package/dist/i18n/ro-core.d.ts +323 -0
- package/dist/i18n/ro-core.d.ts.map +1 -0
- package/dist/i18n/ro-core.js +322 -0
- package/dist/i18n/ro-operations.d.ts +287 -0
- package/dist/i18n/ro-operations.d.ts.map +1 -0
- package/dist/i18n/ro-operations.js +286 -0
- package/dist/i18n/ro.d.ts +803 -0
- package/dist/i18n/ro.d.ts.map +1 -0
- package/dist/i18n/ro.js +8 -0
- package/dist/i18n-en.d.ts +2 -0
- package/dist/i18n-en.d.ts.map +1 -0
- package/dist/i18n-en.js +1 -0
- package/dist/i18n-ro.d.ts +2 -0
- package/dist/i18n-ro.d.ts.map +1 -0
- package/dist/i18n-ro.js +1 -0
- package/dist/i18n.d.ts +2 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/operations.d.ts +53 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +13 -0
- package/dist/provider.d.ts +2 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +1 -0
- package/dist/query-keys.d.ts +114 -0
- package/dist/query-keys.d.ts.map +1 -0
- package/dist/query-keys.js +34 -0
- package/dist/query-options-action-ledger.d.ts +194 -0
- package/dist/query-options-action-ledger.d.ts.map +1 -0
- package/dist/query-options-action-ledger.js +20 -0
- package/dist/query-options.d.ts +1313 -0
- package/dist/query-options.d.ts.map +1 -0
- package/dist/query-options.js +281 -0
- package/dist/schemas.d.ts +1098 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +320 -0
- package/dist/ui.d.ts +44 -0
- package/dist/ui.d.ts.map +1 -0
- package/dist/ui.js +42 -0
- package/package.json +159 -0
- package/src/styles.css +12 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ro.d.ts","sourceRoot":"","sources":["../../src/i18n/ro.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIK,CAAA"}
|
package/dist/i18n/ro.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { productsUiCatalogRo } from "./ro-catalog.js";
|
|
2
|
+
import { productsUiCoreRo } from "./ro-core.js";
|
|
3
|
+
import { productsUiOperationsRo } from "./ro-operations.js";
|
|
4
|
+
export const productsUiRo = {
|
|
5
|
+
...productsUiCoreRo,
|
|
6
|
+
...productsUiCatalogRo,
|
|
7
|
+
...productsUiOperationsRo,
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n-en.d.ts","sourceRoot":"","sources":["../src/i18n-en.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
package/dist/i18n-en.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./i18n/en.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n-ro.d.ts","sourceRoot":"","sources":["../src/i18n-ro.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
package/dist/i18n-ro.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./i18n/ro.js";
|
package/dist/i18n.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
package/dist/i18n.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./i18n/index.js";
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, type VoyantFetcher, withQueryParams, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { listProductActionLedger, type ProductActionLedgerListInput } from "./operations.js";
|
|
4
|
+
export { useVoyantProductsContext, type VoyantProductsContextValue, VoyantProductsProvider, type VoyantProductsProviderProps, } from "./provider.js";
|
|
5
|
+
export { type ProductActionLedgerListCursor, type ProductActionLedgerListFilters, type ProductsListFilters, type ProductsListSortDir, type ProductsListSortField, type ProductTranslationsListFilters, productsQueryKeys, } from "./query-keys.js";
|
|
6
|
+
export { getOptionUnitQueryOptions, getOptionUnitsQueryOptions, getProductCategoriesQueryOptions, getProductDayServicesQueryOptions, getProductDaysQueryOptions, getProductItinerariesQueryOptions, getProductItineraryDaysQueryOptions, getProductMediaQueryOptions, getProductOptionQueryOptions, getProductOptionsQueryOptions, getProductQueryOptions, getProductsQueryOptions, getProductTagsQueryOptions, getProductTypeQueryOptions, getProductTypesQueryOptions, getProductVersionsQueryOptions, } from "./query-options.js";
|
|
7
|
+
export { getProductActionLedgerQueryOptions } from "./query-options-action-ledger.js";
|
|
8
|
+
export * from "./schemas.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,KAAK,aAAa,EAClB,eAAe,GAChB,MAAM,aAAa,CAAA;AACpB,cAAc,kBAAkB,CAAA;AAChC,OAAO,EAAE,uBAAuB,EAAE,KAAK,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAC5F,OAAO,EACL,wBAAwB,EACxB,KAAK,0BAA0B,EAC/B,sBAAsB,EACtB,KAAK,2BAA2B,GACjC,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,iBAAiB,GAClB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,yBAAyB,EACzB,0BAA0B,EAC1B,gCAAgC,EAChC,iCAAiC,EACjC,0BAA0B,EAC1B,iCAAiC,EACjC,mCAAmC,EACnC,2BAA2B,EAC3B,4BAA4B,EAC5B,6BAA6B,EAC7B,sBAAsB,EACtB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,EAC3B,8BAA8B,GAC/B,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAAE,kCAAkC,EAAE,MAAM,kCAAkC,CAAA;AACrF,cAAc,cAAc,CAAA"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { defaultFetcher, fetchWithValidation, VoyantApiError, withQueryParams, } from "./client.js";
|
|
2
|
+
export * from "./hooks/index.js";
|
|
3
|
+
export { listProductActionLedger } from "./operations.js";
|
|
4
|
+
export { useVoyantProductsContext, VoyantProductsProvider, } from "./provider.js";
|
|
5
|
+
export { productsQueryKeys, } from "./query-keys.js";
|
|
6
|
+
export { getOptionUnitQueryOptions, getOptionUnitsQueryOptions, getProductCategoriesQueryOptions, getProductDayServicesQueryOptions, getProductDaysQueryOptions, getProductItinerariesQueryOptions, getProductItineraryDaysQueryOptions, getProductMediaQueryOptions, getProductOptionQueryOptions, getProductOptionsQueryOptions, getProductQueryOptions, getProductsQueryOptions, getProductTagsQueryOptions, getProductTypeQueryOptions, getProductTypesQueryOptions, getProductVersionsQueryOptions, } from "./query-options.js";
|
|
7
|
+
export { getProductActionLedgerQueryOptions } from "./query-options-action-ledger.js";
|
|
8
|
+
export * from "./schemas.js";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type FetchWithValidationOptions } from "./client.js";
|
|
2
|
+
import type { ProductActionLedgerListCursor } from "./query-keys.js";
|
|
3
|
+
export interface ProductActionLedgerListInput {
|
|
4
|
+
cursor?: ProductActionLedgerListCursor | null | undefined;
|
|
5
|
+
limit?: number | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare function listProductActionLedger(client: FetchWithValidationOptions, productId: string, input?: ProductActionLedgerListInput): Promise<{
|
|
8
|
+
data: {
|
|
9
|
+
id: string;
|
|
10
|
+
occurredAt: string;
|
|
11
|
+
actionName: string;
|
|
12
|
+
actionVersion: string;
|
|
13
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
14
|
+
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
15
|
+
evaluatedRisk: "low" | "medium" | "high" | "critical";
|
|
16
|
+
actorType: string | null;
|
|
17
|
+
principalType: "user" | "api_key" | "agent" | "workflow" | "system";
|
|
18
|
+
principalId: string;
|
|
19
|
+
principalSubtype: string | null;
|
|
20
|
+
sessionId: string | null;
|
|
21
|
+
apiTokenId: string | null;
|
|
22
|
+
internalRequest: boolean;
|
|
23
|
+
delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
|
|
24
|
+
delegatedByPrincipalId: string | null;
|
|
25
|
+
delegationId: string | null;
|
|
26
|
+
callerType: string | null;
|
|
27
|
+
organizationId: string | null;
|
|
28
|
+
routeOrToolName: string | null;
|
|
29
|
+
workflowRunId: string | null;
|
|
30
|
+
workflowStepId: string | null;
|
|
31
|
+
correlationId: string | null;
|
|
32
|
+
causationActionId: string | null;
|
|
33
|
+
idempotencyScope: string | null;
|
|
34
|
+
idempotencyKey: string | null;
|
|
35
|
+
idempotencyFingerprint: string | null;
|
|
36
|
+
targetType: string;
|
|
37
|
+
targetId: string;
|
|
38
|
+
capabilityId: string | null;
|
|
39
|
+
capabilityVersion: string | null;
|
|
40
|
+
authorizationSource: string | null;
|
|
41
|
+
approvalId: string | null;
|
|
42
|
+
amendsActionId: string | null;
|
|
43
|
+
createdAt: string;
|
|
44
|
+
mutationSummary: string | null;
|
|
45
|
+
}[];
|
|
46
|
+
pageInfo: {
|
|
47
|
+
nextCursor: {
|
|
48
|
+
occurredAt: string;
|
|
49
|
+
id: string;
|
|
50
|
+
} | null;
|
|
51
|
+
};
|
|
52
|
+
}>;
|
|
53
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,0BAA0B,EAAwC,MAAM,aAAa,CAAA;AACnG,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,iBAAiB,CAAA;AAGpE,MAAM,WAAW,4BAA4B;IAC3C,MAAM,CAAC,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAAA;IACzD,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC3B;AAUD,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,EACjB,KAAK,GAAE,4BAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAOzC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { fetchWithValidation, withQueryParams } from "./client.js";
|
|
3
|
+
import { productActionLedgerListResponse } from "./schemas.js";
|
|
4
|
+
function toProductActionLedgerQuery(input) {
|
|
5
|
+
return {
|
|
6
|
+
cursorOccurredAt: input?.cursor?.occurredAt,
|
|
7
|
+
cursorId: input?.cursor?.id,
|
|
8
|
+
limit: input?.limit,
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export function listProductActionLedger(client, productId, input = {}) {
|
|
12
|
+
return fetchWithValidation(withQueryParams(`/v1/products/${productId}/action-ledger`, toProductActionLedgerQuery(input)), productActionLedgerListResponse, client);
|
|
13
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantProductsContext, type VoyantReactContextValue as VoyantProductsContextValue, VoyantReactProvider as VoyantProductsProvider, type VoyantReactProviderProps as VoyantProductsProviderProps, } from "@voyant-travel/react";
|
|
2
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../src/provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,IAAI,wBAAwB,EACjD,KAAK,uBAAuB,IAAI,0BAA0B,EAC1D,mBAAmB,IAAI,sBAAsB,EAC7C,KAAK,wBAAwB,IAAI,2BAA2B,GAC7D,MAAM,sBAAsB,CAAA"}
|
package/dist/provider.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useVoyantReactContext as useVoyantProductsContext, VoyantReactProvider as VoyantProductsProvider, } from "@voyant-travel/react";
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
export type ProductsListSortField = "name" | "status" | "sellAmount" | "pax" | "startDate" | "endDate" | "createdAt";
|
|
2
|
+
export type ProductsListSortDir = "asc" | "desc";
|
|
3
|
+
export interface ProductsListFilters {
|
|
4
|
+
status?: string | undefined;
|
|
5
|
+
bookingMode?: string | undefined;
|
|
6
|
+
visibility?: string | undefined;
|
|
7
|
+
activated?: boolean | undefined;
|
|
8
|
+
facilityId?: string | undefined;
|
|
9
|
+
productTypeId?: string | undefined;
|
|
10
|
+
categoryId?: string | undefined;
|
|
11
|
+
tag?: string | undefined;
|
|
12
|
+
search?: string | undefined;
|
|
13
|
+
dateFrom?: string | undefined;
|
|
14
|
+
dateTo?: string | undefined;
|
|
15
|
+
paxMin?: number | undefined;
|
|
16
|
+
paxMax?: number | undefined;
|
|
17
|
+
sellAmountMin?: number | undefined;
|
|
18
|
+
sellAmountMax?: number | undefined;
|
|
19
|
+
sortBy?: ProductsListSortField | undefined;
|
|
20
|
+
sortDir?: ProductsListSortDir | undefined;
|
|
21
|
+
limit?: number | undefined;
|
|
22
|
+
offset?: number | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface ProductTypesListFilters {
|
|
25
|
+
active?: boolean | undefined;
|
|
26
|
+
search?: string | undefined;
|
|
27
|
+
limit?: number | undefined;
|
|
28
|
+
offset?: number | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface ProductCategoriesListFilters {
|
|
31
|
+
parentId?: string | undefined;
|
|
32
|
+
active?: boolean | undefined;
|
|
33
|
+
search?: string | undefined;
|
|
34
|
+
limit?: number | undefined;
|
|
35
|
+
offset?: number | undefined;
|
|
36
|
+
}
|
|
37
|
+
export interface ProductTagsListFilters {
|
|
38
|
+
search?: string | undefined;
|
|
39
|
+
limit?: number | undefined;
|
|
40
|
+
offset?: number | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface ProductOptionsListFilters {
|
|
43
|
+
productId?: string | undefined;
|
|
44
|
+
status?: string | undefined;
|
|
45
|
+
limit?: number | undefined;
|
|
46
|
+
offset?: number | undefined;
|
|
47
|
+
}
|
|
48
|
+
export interface OptionUnitsListFilters {
|
|
49
|
+
optionId?: string | undefined;
|
|
50
|
+
unitType?: string | undefined;
|
|
51
|
+
limit?: number | undefined;
|
|
52
|
+
offset?: number | undefined;
|
|
53
|
+
}
|
|
54
|
+
export interface ProductMediaListFilters {
|
|
55
|
+
dayId?: string | undefined;
|
|
56
|
+
mediaType?: string | undefined;
|
|
57
|
+
limit?: number | undefined;
|
|
58
|
+
offset?: number | undefined;
|
|
59
|
+
}
|
|
60
|
+
export interface ProductActionLedgerListCursor {
|
|
61
|
+
occurredAt: string;
|
|
62
|
+
id: string;
|
|
63
|
+
}
|
|
64
|
+
export interface ProductActionLedgerListFilters {
|
|
65
|
+
cursorOccurredAt?: string | undefined;
|
|
66
|
+
cursorId?: string | undefined;
|
|
67
|
+
limit?: number | undefined;
|
|
68
|
+
}
|
|
69
|
+
export interface ProductTranslationsListFilters {
|
|
70
|
+
productId?: string | undefined;
|
|
71
|
+
languageTag?: string | undefined;
|
|
72
|
+
limit?: number | undefined;
|
|
73
|
+
offset?: number | undefined;
|
|
74
|
+
}
|
|
75
|
+
export interface ProductDayTranslationsListFilters {
|
|
76
|
+
languageTag?: string | undefined;
|
|
77
|
+
limit?: number | undefined;
|
|
78
|
+
offset?: number | undefined;
|
|
79
|
+
}
|
|
80
|
+
export declare const productsQueryKeys: {
|
|
81
|
+
readonly all: readonly ["voyant", "products"];
|
|
82
|
+
readonly products: () => readonly ["voyant", "products", "products"];
|
|
83
|
+
readonly productsList: (filters: ProductsListFilters) => readonly ["voyant", "products", "products", "list", ProductsListFilters];
|
|
84
|
+
readonly product: (id: string) => readonly ["voyant", "products", "products", "detail", string];
|
|
85
|
+
readonly productTranslationsRoot: (productId: string) => readonly ["voyant", "products", "products", "detail", string, "translations"];
|
|
86
|
+
readonly productTranslations: (productId: string, filters?: ProductTranslationsListFilters) => readonly ["voyant", "products", "products", "detail", string, "translations", ProductTranslationsListFilters];
|
|
87
|
+
readonly productActionLedger: (id: string, filters?: ProductActionLedgerListFilters) => readonly ["voyant", "products", "products", "detail", string, "action-ledger", ProductActionLedgerListFilters];
|
|
88
|
+
readonly productTypes: () => readonly ["voyant", "products", "product-types"];
|
|
89
|
+
readonly productTypesList: (filters: ProductTypesListFilters) => readonly ["voyant", "products", "product-types", "list", ProductTypesListFilters];
|
|
90
|
+
readonly productType: (id: string) => readonly ["voyant", "products", "product-types", "detail", string];
|
|
91
|
+
readonly productCategories: () => readonly ["voyant", "products", "product-categories"];
|
|
92
|
+
readonly productCategoriesList: (filters: ProductCategoriesListFilters) => readonly ["voyant", "products", "product-categories", "list", ProductCategoriesListFilters];
|
|
93
|
+
readonly productCategory: (id: string) => readonly ["voyant", "products", "product-categories", "detail", string];
|
|
94
|
+
readonly productTags: () => readonly ["voyant", "products", "product-tags"];
|
|
95
|
+
readonly productTagsList: (filters: ProductTagsListFilters) => readonly ["voyant", "products", "product-tags", "list", ProductTagsListFilters];
|
|
96
|
+
readonly productTag: (id: string) => readonly ["voyant", "products", "product-tags", "detail", string];
|
|
97
|
+
readonly productOptions: () => readonly ["voyant", "products", "product-options"];
|
|
98
|
+
readonly productOptionsList: (filters: ProductOptionsListFilters) => readonly ["voyant", "products", "product-options", "list", ProductOptionsListFilters];
|
|
99
|
+
readonly productOption: (id: string) => readonly ["voyant", "products", "product-options", "detail", string];
|
|
100
|
+
readonly optionUnits: () => readonly ["voyant", "products", "option-units"];
|
|
101
|
+
readonly optionUnitsList: (filters: OptionUnitsListFilters) => readonly ["voyant", "products", "option-units", "list", OptionUnitsListFilters];
|
|
102
|
+
readonly optionUnit: (id: string) => readonly ["voyant", "products", "option-units", "detail", string];
|
|
103
|
+
readonly productItineraries: (productId: string) => readonly ["voyant", "products", "products", "detail", string, "itineraries"];
|
|
104
|
+
readonly productItineraryDays: (productId: string, itineraryId: string) => readonly ["voyant", "products", "products", "detail", string, "itineraries", string, "days"];
|
|
105
|
+
readonly productDays: (productId: string) => readonly ["voyant", "products", "products", "detail", string, "days"];
|
|
106
|
+
readonly productDayServices: (productId: string, dayId: string) => readonly ["voyant", "products", "products", "detail", string, "days", string, "services"];
|
|
107
|
+
readonly productDayTranslationsRoot: (productId: string, dayId: string) => readonly ["voyant", "products", "products", "detail", string, "days", string, "translations"];
|
|
108
|
+
readonly productDayTranslations: (productId: string, dayId: string, filters?: ProductDayTranslationsListFilters) => readonly ["voyant", "products", "products", "detail", string, "days", string, "translations", ProductDayTranslationsListFilters];
|
|
109
|
+
readonly productVersions: (productId: string) => readonly ["voyant", "products", "products", "detail", string, "versions"];
|
|
110
|
+
readonly productMedia: (productId: string) => readonly ["voyant", "products", "products", "detail", string, "media"];
|
|
111
|
+
readonly productMediaList: (productId: string, filters: ProductMediaListFilters) => readonly ["voyant", "products", "products", "detail", string, "media", "list", ProductMediaListFilters];
|
|
112
|
+
readonly productMediaItem: (mediaId: string) => readonly ["voyant", "products", "product-media", string];
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=query-keys.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-keys.d.ts","sourceRoot":"","sources":["../src/query-keys.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export const productsQueryKeys = {
|
|
2
|
+
all: ["voyant", "products"],
|
|
3
|
+
products: () => [...productsQueryKeys.all, "products"],
|
|
4
|
+
productsList: (filters) => [...productsQueryKeys.products(), "list", filters],
|
|
5
|
+
product: (id) => [...productsQueryKeys.products(), "detail", id],
|
|
6
|
+
productTranslationsRoot: (productId) => [...productsQueryKeys.product(productId), "translations"],
|
|
7
|
+
productTranslations: (productId, filters = {}) => [...productsQueryKeys.productTranslationsRoot(productId), filters],
|
|
8
|
+
productActionLedger: (id, filters = {}) => [...productsQueryKeys.product(id), "action-ledger", filters],
|
|
9
|
+
productTypes: () => [...productsQueryKeys.all, "product-types"],
|
|
10
|
+
productTypesList: (filters) => [...productsQueryKeys.productTypes(), "list", filters],
|
|
11
|
+
productType: (id) => [...productsQueryKeys.productTypes(), "detail", id],
|
|
12
|
+
productCategories: () => [...productsQueryKeys.all, "product-categories"],
|
|
13
|
+
productCategoriesList: (filters) => [...productsQueryKeys.productCategories(), "list", filters],
|
|
14
|
+
productCategory: (id) => [...productsQueryKeys.productCategories(), "detail", id],
|
|
15
|
+
productTags: () => [...productsQueryKeys.all, "product-tags"],
|
|
16
|
+
productTagsList: (filters) => [...productsQueryKeys.productTags(), "list", filters],
|
|
17
|
+
productTag: (id) => [...productsQueryKeys.productTags(), "detail", id],
|
|
18
|
+
productOptions: () => [...productsQueryKeys.all, "product-options"],
|
|
19
|
+
productOptionsList: (filters) => [...productsQueryKeys.productOptions(), "list", filters],
|
|
20
|
+
productOption: (id) => [...productsQueryKeys.productOptions(), "detail", id],
|
|
21
|
+
optionUnits: () => [...productsQueryKeys.all, "option-units"],
|
|
22
|
+
optionUnitsList: (filters) => [...productsQueryKeys.optionUnits(), "list", filters],
|
|
23
|
+
optionUnit: (id) => [...productsQueryKeys.optionUnits(), "detail", id],
|
|
24
|
+
productItineraries: (productId) => [...productsQueryKeys.product(productId), "itineraries"],
|
|
25
|
+
productItineraryDays: (productId, itineraryId) => [...productsQueryKeys.productItineraries(productId), itineraryId, "days"],
|
|
26
|
+
productDays: (productId) => [...productsQueryKeys.product(productId), "days"],
|
|
27
|
+
productDayServices: (productId, dayId) => [...productsQueryKeys.productDays(productId), dayId, "services"],
|
|
28
|
+
productDayTranslationsRoot: (productId, dayId) => [...productsQueryKeys.productDays(productId), dayId, "translations"],
|
|
29
|
+
productDayTranslations: (productId, dayId, filters = {}) => [...productsQueryKeys.productDayTranslationsRoot(productId, dayId), filters],
|
|
30
|
+
productVersions: (productId) => [...productsQueryKeys.product(productId), "versions"],
|
|
31
|
+
productMedia: (productId) => [...productsQueryKeys.product(productId), "media"],
|
|
32
|
+
productMediaList: (productId, filters) => [...productsQueryKeys.productMedia(productId), "list", filters],
|
|
33
|
+
productMediaItem: (mediaId) => [...productsQueryKeys.all, "product-media", mediaId],
|
|
34
|
+
};
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import type { FetchWithValidationOptions } from "./client.js";
|
|
2
|
+
import { type ProductActionLedgerListInput } from "./operations.js";
|
|
3
|
+
export interface UseProductActionLedgerOptions extends ProductActionLedgerListInput {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare function getProductActionLedgerQueryOptions(client: FetchWithValidationOptions, productId: string | null | undefined, options?: UseProductActionLedgerOptions): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
7
|
+
data: {
|
|
8
|
+
id: string;
|
|
9
|
+
occurredAt: string;
|
|
10
|
+
actionName: string;
|
|
11
|
+
actionVersion: string;
|
|
12
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
13
|
+
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
14
|
+
evaluatedRisk: "low" | "medium" | "high" | "critical";
|
|
15
|
+
actorType: string | null;
|
|
16
|
+
principalType: "user" | "api_key" | "agent" | "workflow" | "system";
|
|
17
|
+
principalId: string;
|
|
18
|
+
principalSubtype: string | null;
|
|
19
|
+
sessionId: string | null;
|
|
20
|
+
apiTokenId: string | null;
|
|
21
|
+
internalRequest: boolean;
|
|
22
|
+
delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
|
|
23
|
+
delegatedByPrincipalId: string | null;
|
|
24
|
+
delegationId: string | null;
|
|
25
|
+
callerType: string | null;
|
|
26
|
+
organizationId: string | null;
|
|
27
|
+
routeOrToolName: string | null;
|
|
28
|
+
workflowRunId: string | null;
|
|
29
|
+
workflowStepId: string | null;
|
|
30
|
+
correlationId: string | null;
|
|
31
|
+
causationActionId: string | null;
|
|
32
|
+
idempotencyScope: string | null;
|
|
33
|
+
idempotencyKey: string | null;
|
|
34
|
+
idempotencyFingerprint: string | null;
|
|
35
|
+
targetType: string;
|
|
36
|
+
targetId: string;
|
|
37
|
+
capabilityId: string | null;
|
|
38
|
+
capabilityVersion: string | null;
|
|
39
|
+
authorizationSource: string | null;
|
|
40
|
+
approvalId: string | null;
|
|
41
|
+
amendsActionId: string | null;
|
|
42
|
+
createdAt: string;
|
|
43
|
+
mutationSummary: string | null;
|
|
44
|
+
}[];
|
|
45
|
+
pageInfo: {
|
|
46
|
+
nextCursor: {
|
|
47
|
+
occurredAt: string;
|
|
48
|
+
id: string;
|
|
49
|
+
} | null;
|
|
50
|
+
};
|
|
51
|
+
}, Error, {
|
|
52
|
+
data: {
|
|
53
|
+
id: string;
|
|
54
|
+
occurredAt: string;
|
|
55
|
+
actionName: string;
|
|
56
|
+
actionVersion: string;
|
|
57
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
58
|
+
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
59
|
+
evaluatedRisk: "low" | "medium" | "high" | "critical";
|
|
60
|
+
actorType: string | null;
|
|
61
|
+
principalType: "user" | "api_key" | "agent" | "workflow" | "system";
|
|
62
|
+
principalId: string;
|
|
63
|
+
principalSubtype: string | null;
|
|
64
|
+
sessionId: string | null;
|
|
65
|
+
apiTokenId: string | null;
|
|
66
|
+
internalRequest: boolean;
|
|
67
|
+
delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
|
|
68
|
+
delegatedByPrincipalId: string | null;
|
|
69
|
+
delegationId: string | null;
|
|
70
|
+
callerType: string | null;
|
|
71
|
+
organizationId: string | null;
|
|
72
|
+
routeOrToolName: string | null;
|
|
73
|
+
workflowRunId: string | null;
|
|
74
|
+
workflowStepId: string | null;
|
|
75
|
+
correlationId: string | null;
|
|
76
|
+
causationActionId: string | null;
|
|
77
|
+
idempotencyScope: string | null;
|
|
78
|
+
idempotencyKey: string | null;
|
|
79
|
+
idempotencyFingerprint: string | null;
|
|
80
|
+
targetType: string;
|
|
81
|
+
targetId: string;
|
|
82
|
+
capabilityId: string | null;
|
|
83
|
+
capabilityVersion: string | null;
|
|
84
|
+
authorizationSource: string | null;
|
|
85
|
+
approvalId: string | null;
|
|
86
|
+
amendsActionId: string | null;
|
|
87
|
+
createdAt: string;
|
|
88
|
+
mutationSummary: string | null;
|
|
89
|
+
}[];
|
|
90
|
+
pageInfo: {
|
|
91
|
+
nextCursor: {
|
|
92
|
+
occurredAt: string;
|
|
93
|
+
id: string;
|
|
94
|
+
} | null;
|
|
95
|
+
};
|
|
96
|
+
}, readonly ["voyant", "products", "products", "detail", string, "action-ledger", import("./query-keys.js").ProductActionLedgerListFilters]>, "queryFn"> & {
|
|
97
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
98
|
+
data: {
|
|
99
|
+
id: string;
|
|
100
|
+
occurredAt: string;
|
|
101
|
+
actionName: string;
|
|
102
|
+
actionVersion: string;
|
|
103
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
104
|
+
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
105
|
+
evaluatedRisk: "low" | "medium" | "high" | "critical";
|
|
106
|
+
actorType: string | null;
|
|
107
|
+
principalType: "user" | "api_key" | "agent" | "workflow" | "system";
|
|
108
|
+
principalId: string;
|
|
109
|
+
principalSubtype: string | null;
|
|
110
|
+
sessionId: string | null;
|
|
111
|
+
apiTokenId: string | null;
|
|
112
|
+
internalRequest: boolean;
|
|
113
|
+
delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
|
|
114
|
+
delegatedByPrincipalId: string | null;
|
|
115
|
+
delegationId: string | null;
|
|
116
|
+
callerType: string | null;
|
|
117
|
+
organizationId: string | null;
|
|
118
|
+
routeOrToolName: string | null;
|
|
119
|
+
workflowRunId: string | null;
|
|
120
|
+
workflowStepId: string | null;
|
|
121
|
+
correlationId: string | null;
|
|
122
|
+
causationActionId: string | null;
|
|
123
|
+
idempotencyScope: string | null;
|
|
124
|
+
idempotencyKey: string | null;
|
|
125
|
+
idempotencyFingerprint: string | null;
|
|
126
|
+
targetType: string;
|
|
127
|
+
targetId: string;
|
|
128
|
+
capabilityId: string | null;
|
|
129
|
+
capabilityVersion: string | null;
|
|
130
|
+
authorizationSource: string | null;
|
|
131
|
+
approvalId: string | null;
|
|
132
|
+
amendsActionId: string | null;
|
|
133
|
+
createdAt: string;
|
|
134
|
+
mutationSummary: string | null;
|
|
135
|
+
}[];
|
|
136
|
+
pageInfo: {
|
|
137
|
+
nextCursor: {
|
|
138
|
+
occurredAt: string;
|
|
139
|
+
id: string;
|
|
140
|
+
} | null;
|
|
141
|
+
};
|
|
142
|
+
}, readonly ["voyant", "products", "products", "detail", string, "action-ledger", import("./query-keys.js").ProductActionLedgerListFilters], never> | undefined;
|
|
143
|
+
} & {
|
|
144
|
+
queryKey: readonly ["voyant", "products", "products", "detail", string, "action-ledger", import("./query-keys.js").ProductActionLedgerListFilters] & {
|
|
145
|
+
[dataTagSymbol]: {
|
|
146
|
+
data: {
|
|
147
|
+
id: string;
|
|
148
|
+
occurredAt: string;
|
|
149
|
+
actionName: string;
|
|
150
|
+
actionVersion: string;
|
|
151
|
+
actionKind: "read" | "create" | "update" | "delete" | "execute" | "approve" | "reject" | "reverse" | "compensate" | "duplicate";
|
|
152
|
+
status: "requested" | "awaiting_approval" | "approved" | "denied" | "succeeded" | "failed" | "reversed" | "compensated" | "expired" | "cancelled" | "superseded";
|
|
153
|
+
evaluatedRisk: "low" | "medium" | "high" | "critical";
|
|
154
|
+
actorType: string | null;
|
|
155
|
+
principalType: "user" | "api_key" | "agent" | "workflow" | "system";
|
|
156
|
+
principalId: string;
|
|
157
|
+
principalSubtype: string | null;
|
|
158
|
+
sessionId: string | null;
|
|
159
|
+
apiTokenId: string | null;
|
|
160
|
+
internalRequest: boolean;
|
|
161
|
+
delegatedByPrincipalType: "user" | "api_key" | "agent" | "workflow" | "system" | null;
|
|
162
|
+
delegatedByPrincipalId: string | null;
|
|
163
|
+
delegationId: string | null;
|
|
164
|
+
callerType: string | null;
|
|
165
|
+
organizationId: string | null;
|
|
166
|
+
routeOrToolName: string | null;
|
|
167
|
+
workflowRunId: string | null;
|
|
168
|
+
workflowStepId: string | null;
|
|
169
|
+
correlationId: string | null;
|
|
170
|
+
causationActionId: string | null;
|
|
171
|
+
idempotencyScope: string | null;
|
|
172
|
+
idempotencyKey: string | null;
|
|
173
|
+
idempotencyFingerprint: string | null;
|
|
174
|
+
targetType: string;
|
|
175
|
+
targetId: string;
|
|
176
|
+
capabilityId: string | null;
|
|
177
|
+
capabilityVersion: string | null;
|
|
178
|
+
authorizationSource: string | null;
|
|
179
|
+
approvalId: string | null;
|
|
180
|
+
amendsActionId: string | null;
|
|
181
|
+
createdAt: string;
|
|
182
|
+
mutationSummary: string | null;
|
|
183
|
+
}[];
|
|
184
|
+
pageInfo: {
|
|
185
|
+
nextCursor: {
|
|
186
|
+
occurredAt: string;
|
|
187
|
+
id: string;
|
|
188
|
+
} | null;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
[dataTagErrorSymbol]: Error;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
//# sourceMappingURL=query-options-action-ledger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-options-action-ledger.d.ts","sourceRoot":"","sources":["../src/query-options-action-ledger.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAA;AAC7D,OAAO,EAA2B,KAAK,4BAA4B,EAAE,MAAM,iBAAiB,CAAA;AAG5F,MAAM,WAAW,6BAA8B,SAAQ,4BAA4B;IACjF,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,0BAA0B,EAClC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,GAAE,6BAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkB5C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { queryOptions } from "@tanstack/react-query";
|
|
3
|
+
import { listProductActionLedger } from "./operations.js";
|
|
4
|
+
import { productsQueryKeys } from "./query-keys.js";
|
|
5
|
+
export function getProductActionLedgerQueryOptions(client, productId, options = {}) {
|
|
6
|
+
const { enabled: _enabled = true, ...ledgerOptions } = options;
|
|
7
|
+
return queryOptions({
|
|
8
|
+
queryKey: productsQueryKeys.productActionLedger(productId ?? "", {
|
|
9
|
+
cursorOccurredAt: ledgerOptions.cursor?.occurredAt,
|
|
10
|
+
cursorId: ledgerOptions.cursor?.id,
|
|
11
|
+
limit: ledgerOptions.limit,
|
|
12
|
+
}),
|
|
13
|
+
queryFn: async () => {
|
|
14
|
+
if (!productId) {
|
|
15
|
+
throw new Error("getProductActionLedgerQueryOptions requires a productId");
|
|
16
|
+
}
|
|
17
|
+
return listProductActionLedger(client, productId, ledgerOptions);
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
}
|