@vindentech/api-client 0.3.0-next.9 → 1.0.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/README.md +1 -1
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +2 -2
- package/dist/client.js.map +1 -1
- package/dist/generated/_all.d.ts +84 -1
- package/dist/generated/_all.d.ts.map +1 -1
- package/dist/generated/_all.js +84 -1
- package/dist/generated/_all.js.map +1 -1
- package/dist/generated/_permissions.d.ts +1535 -32
- package/dist/generated/_permissions.d.ts.map +1 -1
- package/dist/generated/_permissions.js +385 -7
- package/dist/generated/_permissions.js.map +1 -1
- package/dist/generated/account-credits/account-credits.d.ts +19 -18
- package/dist/generated/account-credits/account-credits.d.ts.map +1 -1
- package/dist/generated/account-credits/account-credits.js +28 -3
- package/dist/generated/account-credits/account-credits.js.map +1 -1
- package/dist/generated/addresses/addresses.d.ts +87 -0
- package/dist/generated/addresses/addresses.d.ts.map +1 -0
- package/dist/generated/addresses/addresses.js +100 -0
- package/dist/generated/addresses/addresses.js.map +1 -0
- package/dist/generated/articles/articles.d.ts +17 -16
- package/dist/generated/articles/articles.d.ts.map +1 -1
- package/dist/generated/articles/articles.js +37 -3
- package/dist/generated/articles/articles.js.map +1 -1
- package/dist/generated/billable-event-types/billable-event-types.d.ts +8 -7
- package/dist/generated/billable-event-types/billable-event-types.d.ts.map +1 -1
- package/dist/generated/billable-event-types/billable-event-types.js +4 -0
- package/dist/generated/billable-event-types/billable-event-types.js.map +1 -1
- package/dist/generated/billable-events/billable-events.d.ts +59 -0
- package/dist/generated/billable-events/billable-events.d.ts.map +1 -0
- package/dist/generated/billable-events/billable-events.js +61 -0
- package/dist/generated/billable-events/billable-events.js.map +1 -0
- package/dist/generated/billable-events-webhook/billable-events-webhook.d.ts +8 -7
- package/dist/generated/billable-events-webhook/billable-events-webhook.d.ts.map +1 -1
- package/dist/generated/billable-events-webhook/billable-events-webhook.js +14 -1
- package/dist/generated/billable-events-webhook/billable-events-webhook.js.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.d.ts +47 -17
- package/dist/generated/billing-accounts/billing-accounts.d.ts.map +1 -1
- package/dist/generated/billing-accounts/billing-accounts.js +61 -3
- package/dist/generated/billing-accounts/billing-accounts.js.map +1 -1
- package/dist/generated/billing-frequencies/billing-frequencies.d.ts +24 -0
- package/dist/generated/billing-frequencies/billing-frequencies.d.ts.map +1 -0
- package/dist/generated/billing-frequencies/billing-frequencies.js +23 -0
- package/dist/generated/billing-frequencies/billing-frequencies.js.map +1 -0
- package/dist/generated/billing-model-templates/billing-model-templates.d.ts +8 -7
- package/dist/generated/billing-model-templates/billing-model-templates.d.ts.map +1 -1
- package/dist/generated/billing-model-templates/billing-model-templates.js +4 -0
- package/dist/generated/billing-model-templates/billing-model-templates.js.map +1 -1
- package/dist/generated/binding-plans/binding-plans.d.ts +75 -11
- package/dist/generated/binding-plans/binding-plans.d.ts.map +1 -1
- package/dist/generated/binding-plans/binding-plans.js +91 -2
- package/dist/generated/binding-plans/binding-plans.js.map +1 -1
- package/dist/generated/bookings/bookings.d.ts +52 -0
- package/dist/generated/bookings/bookings.d.ts.map +1 -0
- package/dist/generated/bookings/bookings.js +55 -0
- package/dist/generated/bookings/bookings.js.map +1 -0
- package/dist/generated/capacity/capacity.d.ts +136 -0
- package/dist/generated/capacity/capacity.d.ts.map +1 -0
- package/dist/generated/capacity/capacity.js +175 -0
- package/dist/generated/capacity/capacity.js.map +1 -0
- package/dist/generated/carrier-bookings/carrier-bookings.d.ts +24 -0
- package/dist/generated/carrier-bookings/carrier-bookings.d.ts.map +1 -0
- package/dist/generated/carrier-bookings/carrier-bookings.js +23 -0
- package/dist/generated/carrier-bookings/carrier-bookings.js.map +1 -0
- package/dist/generated/carrier-methods/carrier-methods.d.ts +38 -0
- package/dist/generated/carrier-methods/carrier-methods.d.ts.map +1 -0
- package/dist/generated/carrier-methods/carrier-methods.js +41 -0
- package/dist/generated/carrier-methods/carrier-methods.js.map +1 -0
- package/dist/generated/carriers/carriers.d.ts +150 -0
- package/dist/generated/carriers/carriers.d.ts.map +1 -0
- package/dist/generated/carriers/carriers.js +196 -0
- package/dist/generated/carriers/carriers.js.map +1 -0
- package/dist/generated/carts/carts.d.ts +143 -0
- package/dist/generated/carts/carts.d.ts.map +1 -0
- package/dist/generated/carts/carts.js +182 -0
- package/dist/generated/carts/carts.js.map +1 -0
- package/dist/generated/categories/categories.d.ts +24 -0
- package/dist/generated/categories/categories.d.ts.map +1 -0
- package/dist/generated/categories/categories.js +16 -0
- package/dist/generated/categories/categories.js.map +1 -0
- package/dist/generated/check-in/check-in.d.ts +66 -0
- package/dist/generated/check-in/check-in.d.ts.map +1 -0
- package/dist/generated/check-in/check-in.js +102 -0
- package/dist/generated/check-in/check-in.js.map +1 -0
- package/dist/generated/checkout/checkout.d.ts +45 -0
- package/dist/generated/checkout/checkout.d.ts.map +1 -0
- package/dist/generated/checkout/checkout.js +43 -0
- package/dist/generated/checkout/checkout.js.map +1 -0
- package/dist/generated/client-config/client-config.d.ts +35 -0
- package/dist/generated/client-config/client-config.d.ts.map +1 -0
- package/dist/generated/client-config/client-config.js +22 -0
- package/dist/generated/client-config/client-config.js.map +1 -0
- package/dist/generated/container-types/container-types.d.ts +31 -0
- package/dist/generated/container-types/container-types.d.ts.map +1 -0
- package/dist/generated/container-types/container-types.js +26 -0
- package/dist/generated/container-types/container-types.js.map +1 -0
- package/dist/generated/containers/containers.d.ts +101 -0
- package/dist/generated/containers/containers.d.ts.map +1 -0
- package/dist/generated/containers/containers.js +114 -0
- package/dist/generated/containers/containers.js.map +1 -0
- package/dist/generated/coupons/coupons.d.ts +155 -23
- package/dist/generated/coupons/coupons.d.ts.map +1 -1
- package/dist/generated/coupons/coupons.js +179 -5
- package/dist/generated/coupons/coupons.js.map +1 -1
- package/dist/generated/damage-reports/damage-reports.d.ts +94 -0
- package/dist/generated/damage-reports/damage-reports.d.ts.map +1 -0
- package/dist/generated/damage-reports/damage-reports.js +115 -0
- package/dist/generated/damage-reports/damage-reports.js.map +1 -0
- package/dist/generated/discount-rules/discount-rules.d.ts +11 -10
- package/dist/generated/discount-rules/discount-rules.d.ts.map +1 -1
- package/dist/generated/discount-rules/discount-rules.js +19 -2
- package/dist/generated/discount-rules/discount-rules.js.map +1 -1
- package/dist/generated/employee-assignments/employee-assignments.d.ts +153 -0
- package/dist/generated/employee-assignments/employee-assignments.d.ts.map +1 -0
- package/dist/generated/employee-assignments/employee-assignments.js +121 -0
- package/dist/generated/employee-assignments/employee-assignments.js.map +1 -0
- package/dist/generated/files/files.d.ts +31 -0
- package/dist/generated/files/files.d.ts.map +1 -0
- package/dist/generated/files/files.js +26 -0
- package/dist/generated/files/files.js.map +1 -0
- package/dist/generated/folders/folders.d.ts +101 -0
- package/dist/generated/folders/folders.d.ts.map +1 -0
- package/dist/generated/folders/folders.js +125 -0
- package/dist/generated/folders/folders.js.map +1 -0
- package/dist/generated/forklift/forklift.d.ts +213 -0
- package/dist/generated/forklift/forklift.d.ts.map +1 -0
- package/dist/generated/forklift/forklift.js +162 -0
- package/dist/generated/forklift/forklift.js.map +1 -0
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.d.ts +8 -7
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.d.ts.map +1 -1
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.js +4 -0
- package/dist/generated/fortnox-o-auth/fortnox-o-auth.js.map +1 -1
- package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.d.ts +8 -7
- package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.d.ts.map +1 -1
- package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.js +4 -0
- package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.js.map +1 -1
- package/dist/generated/hasura-user-webhook/hasura-user-webhook.d.ts +8 -7
- package/dist/generated/hasura-user-webhook/hasura-user-webhook.d.ts.map +1 -1
- package/dist/generated/hasura-user-webhook/hasura-user-webhook.js +4 -0
- package/dist/generated/hasura-user-webhook/hasura-user-webhook.js.map +1 -1
- package/dist/generated/health/health.d.ts +8 -7
- package/dist/generated/health/health.d.ts.map +1 -1
- package/dist/generated/health/health.js +4 -0
- package/dist/generated/health/health.js.map +1 -1
- package/dist/generated/index.schemas.d.ts +14585 -1147
- package/dist/generated/index.schemas.d.ts.map +1 -1
- package/dist/generated/index.schemas.js +1830 -19
- package/dist/generated/index.schemas.js.map +1 -1
- package/dist/generated/integration-requests/integration-requests.d.ts +24 -0
- package/dist/generated/integration-requests/integration-requests.d.ts.map +1 -0
- package/dist/generated/integration-requests/integration-requests.js +23 -0
- package/dist/generated/integration-requests/integration-requests.js.map +1 -0
- package/dist/generated/integrations/integrations.d.ts +44 -29
- package/dist/generated/integrations/integrations.d.ts.map +1 -1
- package/dist/generated/integrations/integrations.js +87 -3
- package/dist/generated/integrations/integrations.js.map +1 -1
- package/dist/generated/invoice-basis-rows/invoice-basis-rows.d.ts +24 -0
- package/dist/generated/invoice-basis-rows/invoice-basis-rows.d.ts.map +1 -0
- package/dist/generated/invoice-basis-rows/invoice-basis-rows.js +23 -0
- package/dist/generated/invoice-basis-rows/invoice-basis-rows.js.map +1 -0
- package/dist/generated/invoice-details/invoice-details.d.ts +60 -0
- package/dist/generated/invoice-details/invoice-details.d.ts.map +1 -0
- package/dist/generated/invoice-details/invoice-details.js +39 -0
- package/dist/generated/invoice-details/invoice-details.js.map +1 -0
- package/dist/generated/invoices/invoices.d.ts +108 -28
- package/dist/generated/invoices/invoices.d.ts.map +1 -1
- package/dist/generated/invoices/invoices.js +140 -5
- package/dist/generated/invoices/invoices.js.map +1 -1
- package/dist/generated/items/items.d.ts +59 -0
- package/dist/generated/items/items.d.ts.map +1 -0
- package/dist/generated/items/items.js +68 -0
- package/dist/generated/items/items.js.map +1 -0
- package/dist/generated/lookups/lookups.d.ts +24 -0
- package/dist/generated/lookups/lookups.d.ts.map +1 -0
- package/dist/generated/lookups/lookups.js +23 -0
- package/dist/generated/lookups/lookups.js.map +1 -0
- package/dist/generated/manual-billing-line/manual-billing-line.d.ts +24 -0
- package/dist/generated/manual-billing-line/manual-billing-line.d.ts.map +1 -0
- package/dist/generated/manual-billing-line/manual-billing-line.js +27 -0
- package/dist/generated/manual-billing-line/manual-billing-line.js.map +1 -0
- package/dist/generated/me/me.d.ts +159 -8
- package/dist/generated/me/me.d.ts.map +1 -1
- package/dist/generated/me/me.js +142 -0
- package/dist/generated/me/me.js.map +1 -1
- package/dist/generated/me-campaign/me-campaign.d.ts +31 -0
- package/dist/generated/me-campaign/me-campaign.d.ts.map +1 -0
- package/dist/generated/me-campaign/me-campaign.js +22 -0
- package/dist/generated/me-campaign/me-campaign.js.map +1 -0
- package/dist/generated/me-notification-preferences/me-notification-preferences.d.ts +45 -0
- package/dist/generated/me-notification-preferences/me-notification-preferences.d.ts.map +1 -0
- package/dist/generated/me-notification-preferences/me-notification-preferences.js +40 -0
- package/dist/generated/me-notification-preferences/me-notification-preferences.js.map +1 -0
- package/dist/generated/merchandise/merchandise.d.ts +211 -0
- package/dist/generated/merchandise/merchandise.d.ts.map +1 -0
- package/dist/generated/merchandise/merchandise.js +220 -0
- package/dist/generated/merchandise/merchandise.js.map +1 -0
- package/dist/generated/merchandise-checkout/merchandise-checkout.d.ts +38 -0
- package/dist/generated/merchandise-checkout/merchandise-checkout.d.ts.map +1 -0
- package/dist/generated/merchandise-checkout/merchandise-checkout.js +48 -0
- package/dist/generated/merchandise-checkout/merchandise-checkout.js.map +1 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.d.ts +84 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.d.ts.map +1 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.js +85 -0
- package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.js.map +1 -0
- package/dist/generated/move-adjust/move-adjust.d.ts +38 -0
- package/dist/generated/move-adjust/move-adjust.d.ts.map +1 -0
- package/dist/generated/move-adjust/move-adjust.js +52 -0
- package/dist/generated/move-adjust/move-adjust.js.map +1 -0
- package/dist/generated/notification-debug/notification-debug.d.ts +35 -0
- package/dist/generated/notification-debug/notification-debug.d.ts.map +1 -0
- package/dist/generated/notification-debug/notification-debug.js +26 -0
- package/dist/generated/notification-debug/notification-debug.js.map +1 -0
- package/dist/generated/notification-dispatches/notification-dispatches.d.ts +102 -0
- package/dist/generated/notification-dispatches/notification-dispatches.d.ts.map +1 -0
- package/dist/generated/notification-dispatches/notification-dispatches.js +72 -0
- package/dist/generated/notification-dispatches/notification-dispatches.js.map +1 -0
- package/dist/generated/notification-events/notification-events.d.ts +45 -0
- package/dist/generated/notification-events/notification-events.d.ts.map +1 -0
- package/dist/generated/notification-events/notification-events.js +43 -0
- package/dist/generated/notification-events/notification-events.js.map +1 -0
- package/dist/generated/notification-failures/notification-failures.d.ts +77 -0
- package/dist/generated/notification-failures/notification-failures.d.ts.map +1 -0
- package/dist/generated/notification-failures/notification-failures.js +48 -0
- package/dist/generated/notification-failures/notification-failures.js.map +1 -0
- package/dist/generated/notification-health/notification-health.d.ts +24 -0
- package/dist/generated/notification-health/notification-health.d.ts.map +1 -0
- package/dist/generated/notification-health/notification-health.js +16 -0
- package/dist/generated/notification-health/notification-health.js.map +1 -0
- package/dist/generated/notification-preferences/notification-preferences.d.ts +56 -0
- package/dist/generated/notification-preferences/notification-preferences.d.ts.map +1 -0
- package/dist/generated/notification-preferences/notification-preferences.js +46 -0
- package/dist/generated/notification-preferences/notification-preferences.js.map +1 -0
- package/dist/generated/notification-requests/notification-requests.d.ts +52 -0
- package/dist/generated/notification-requests/notification-requests.d.ts.map +1 -0
- package/dist/generated/notification-requests/notification-requests.js +28 -0
- package/dist/generated/notification-requests/notification-requests.js.map +1 -0
- package/dist/generated/notification-rules/notification-rules.d.ts +187 -0
- package/dist/generated/notification-rules/notification-rules.d.ts.map +1 -0
- package/dist/generated/notification-rules/notification-rules.js +147 -0
- package/dist/generated/notification-rules/notification-rules.js.map +1 -0
- package/dist/generated/notification-settings/notification-settings.d.ts +73 -0
- package/dist/generated/notification-settings/notification-settings.d.ts.map +1 -0
- package/dist/generated/notification-settings/notification-settings.js +90 -0
- package/dist/generated/notification-settings/notification-settings.js.map +1 -0
- package/dist/generated/notification-templates/notification-templates.d.ts +352 -0
- package/dist/generated/notification-templates/notification-templates.d.ts.map +1 -0
- package/dist/generated/notification-templates/notification-templates.js +245 -0
- package/dist/generated/notification-templates/notification-templates.js.map +1 -0
- package/dist/generated/order-audit/order-audit.d.ts +24 -0
- package/dist/generated/order-audit/order-audit.d.ts.map +1 -0
- package/dist/generated/order-audit/order-audit.js +23 -0
- package/dist/generated/order-audit/order-audit.js.map +1 -0
- package/dist/generated/order-groups/order-groups.d.ts +38 -0
- package/dist/generated/order-groups/order-groups.d.ts.map +1 -0
- package/dist/generated/order-groups/order-groups.js +37 -0
- package/dist/generated/order-groups/order-groups.js.map +1 -0
- package/dist/generated/orders/orders.d.ts +249 -10
- package/dist/generated/orders/orders.d.ts.map +1 -1
- package/dist/generated/orders/orders.js +428 -4
- package/dist/generated/orders/orders.js.map +1 -1
- package/dist/generated/org-contacts/org-contacts.d.ts +66 -0
- package/dist/generated/org-contacts/org-contacts.d.ts.map +1 -0
- package/dist/generated/org-contacts/org-contacts.js +87 -0
- package/dist/generated/org-contacts/org-contacts.js.map +1 -0
- package/dist/generated/organization-contracts/organization-contracts.d.ts +60 -0
- package/dist/generated/organization-contracts/organization-contracts.d.ts.map +1 -0
- package/dist/generated/organization-contracts/organization-contracts.js +39 -0
- package/dist/generated/organization-contracts/organization-contracts.js.map +1 -0
- package/dist/generated/organization-members/organization-members.d.ts +164 -0
- package/dist/generated/organization-members/organization-members.d.ts.map +1 -0
- package/dist/generated/organization-members/organization-members.js +113 -0
- package/dist/generated/organization-members/organization-members.js.map +1 -0
- package/dist/generated/organization-settings/organization-settings.d.ts +38 -0
- package/dist/generated/organization-settings/organization-settings.d.ts.map +1 -0
- package/dist/generated/organization-settings/organization-settings.js +41 -0
- package/dist/generated/organization-settings/organization-settings.js.map +1 -0
- package/dist/generated/organizations/organizations.d.ts +101 -0
- package/dist/generated/organizations/organizations.d.ts.map +1 -0
- package/dist/generated/organizations/organizations.js +128 -0
- package/dist/generated/organizations/organizations.js.map +1 -0
- package/dist/generated/outbound/outbound.d.ts +52 -0
- package/dist/generated/outbound/outbound.d.ts.map +1 -0
- package/dist/generated/outbound/outbound.js +77 -0
- package/dist/generated/outbound/outbound.js.map +1 -0
- package/dist/generated/payment-instruments/payment-instruments.d.ts +60 -6
- package/dist/generated/payment-instruments/payment-instruments.d.ts.map +1 -1
- package/dist/generated/payment-instruments/payment-instruments.js +45 -0
- package/dist/generated/payment-instruments/payment-instruments.js.map +1 -1
- package/dist/generated/payment-methods/payment-methods.d.ts +24 -0
- package/dist/generated/payment-methods/payment-methods.d.ts.map +1 -0
- package/dist/generated/payment-methods/payment-methods.js +23 -0
- package/dist/generated/payment-methods/payment-methods.js.map +1 -0
- package/dist/generated/payment-terms/payment-terms.d.ts +24 -0
- package/dist/generated/payment-terms/payment-terms.d.ts.map +1 -0
- package/dist/generated/payment-terms/payment-terms.js +23 -0
- package/dist/generated/payment-terms/payment-terms.js.map +1 -0
- package/dist/generated/pickup-label/pickup-label.d.ts +24 -0
- package/dist/generated/pickup-label/pickup-label.d.ts.map +1 -0
- package/dist/generated/pickup-label/pickup-label.js +16 -0
- package/dist/generated/pickup-label/pickup-label.js.map +1 -0
- package/dist/generated/pods/pods.d.ts +122 -0
- package/dist/generated/pods/pods.d.ts.map +1 -0
- package/dist/generated/pods/pods.js +172 -0
- package/dist/generated/pods/pods.js.map +1 -0
- package/dist/generated/positions/positions.d.ts +136 -0
- package/dist/generated/positions/positions.d.ts.map +1 -0
- package/dist/generated/positions/positions.js +141 -0
- package/dist/generated/positions/positions.js.map +1 -0
- package/dist/generated/posti-integration-mode/posti-integration-mode.d.ts +45 -0
- package/dist/generated/posti-integration-mode/posti-integration-mode.d.ts.map +1 -0
- package/dist/generated/posti-integration-mode/posti-integration-mode.js +40 -0
- package/dist/generated/posti-integration-mode/posti-integration-mode.js.map +1 -0
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.d.ts +99 -0
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.d.ts.map +1 -0
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.js +88 -0
- package/dist/generated/posti-oma-posti-pro-ops/posti-oma-posti-pro-ops.js.map +1 -0
- package/dist/generated/posti-wms-ops/posti-wms-ops.d.ts +24 -0
- package/dist/generated/posti-wms-ops/posti-wms-ops.d.ts.map +1 -0
- package/dist/generated/posti-wms-ops/posti-wms-ops.js +16 -0
- package/dist/generated/posti-wms-ops/posti-wms-ops.js.map +1 -0
- package/dist/generated/price-book/price-book.d.ts +165 -0
- package/dist/generated/price-book/price-book.d.ts.map +1 -0
- package/dist/generated/price-book/price-book.js +136 -0
- package/dist/generated/price-book/price-book.js.map +1 -0
- package/dist/generated/pricing-rules/pricing-rules.d.ts +122 -12
- package/dist/generated/pricing-rules/pricing-rules.d.ts.map +1 -1
- package/dist/generated/pricing-rules/pricing-rules.js +129 -3
- package/dist/generated/pricing-rules/pricing-rules.js.map +1 -1
- package/dist/generated/products/products.d.ts +179 -0
- package/dist/generated/products/products.d.ts.map +1 -0
- package/dist/generated/products/products.js +195 -0
- package/dist/generated/products/products.js.map +1 -0
- package/dist/generated/provider-switch/provider-switch.d.ts +10 -9
- package/dist/generated/provider-switch/provider-switch.d.ts.map +1 -1
- package/dist/generated/provider-switch/provider-switch.js +28 -2
- package/dist/generated/provider-switch/provider-switch.js.map +1 -1
- package/dist/generated/receive/receive.d.ts +66 -0
- package/dist/generated/receive/receive.d.ts.map +1 -0
- package/dist/generated/receive/receive.js +102 -0
- package/dist/generated/receive/receive.js.map +1 -0
- package/dist/generated/recurring-fee-configs/recurring-fee-configs.d.ts +66 -0
- package/dist/generated/recurring-fee-configs/recurring-fee-configs.d.ts.map +1 -0
- package/dist/generated/recurring-fee-configs/recurring-fee-configs.js +87 -0
- package/dist/generated/recurring-fee-configs/recurring-fee-configs.js.map +1 -0
- package/dist/generated/route-stops/route-stops.d.ts +66 -0
- package/dist/generated/route-stops/route-stops.d.ts.map +1 -0
- package/dist/generated/route-stops/route-stops.js +102 -0
- package/dist/generated/route-stops/route-stops.js.map +1 -0
- package/dist/generated/routes/routes.d.ts +220 -0
- package/dist/generated/routes/routes.d.ts.map +1 -0
- package/dist/generated/routes/routes.js +340 -0
- package/dist/generated/routes/routes.js.map +1 -0
- package/dist/generated/sales-orders/sales-orders.d.ts +38 -0
- package/dist/generated/sales-orders/sales-orders.d.ts.map +1 -0
- package/dist/generated/sales-orders/sales-orders.js +37 -0
- package/dist/generated/sales-orders/sales-orders.js.map +1 -0
- package/dist/generated/sender-identities/sender-identities.d.ts +141 -0
- package/dist/generated/sender-identities/sender-identities.d.ts.map +1 -0
- package/dist/generated/sender-identities/sender-identities.js +110 -0
- package/dist/generated/sender-identities/sender-identities.js.map +1 -0
- package/dist/generated/service-points/service-points.d.ts +35 -0
- package/dist/generated/service-points/service-points.d.ts.map +1 -0
- package/dist/generated/service-points/service-points.js +22 -0
- package/dist/generated/service-points/service-points.js.map +1 -0
- package/dist/generated/service-zones/service-zones.d.ts +94 -0
- package/dist/generated/service-zones/service-zones.d.ts.map +1 -0
- package/dist/generated/service-zones/service-zones.js +122 -0
- package/dist/generated/service-zones/service-zones.js.map +1 -0
- package/dist/generated/sessions/sessions.d.ts +24 -0
- package/dist/generated/sessions/sessions.d.ts.map +1 -0
- package/dist/generated/sessions/sessions.js +16 -0
- package/dist/generated/sessions/sessions.js.map +1 -0
- package/dist/generated/shipments/shipments.d.ts +24 -0
- package/dist/generated/shipments/shipments.d.ts.map +1 -0
- package/dist/generated/shipments/shipments.js +16 -0
- package/dist/generated/shipments/shipments.js.map +1 -0
- package/dist/generated/slot-configs/slot-configs.d.ts +80 -0
- package/dist/generated/slot-configs/slot-configs.d.ts.map +1 -0
- package/dist/generated/slot-configs/slot-configs.js +112 -0
- package/dist/generated/slot-configs/slot-configs.js.map +1 -0
- package/dist/generated/stripe-webhook/stripe-webhook.d.ts +8 -7
- package/dist/generated/stripe-webhook/stripe-webhook.d.ts.map +1 -1
- package/dist/generated/stripe-webhook/stripe-webhook.js +4 -0
- package/dist/generated/stripe-webhook/stripe-webhook.js.map +1 -1
- package/dist/generated/subscription-configs/subscription-configs.d.ts +13 -12
- package/dist/generated/subscription-configs/subscription-configs.d.ts.map +1 -1
- package/dist/generated/subscription-configs/subscription-configs.js +32 -2
- package/dist/generated/subscription-configs/subscription-configs.js.map +1 -1
- package/dist/generated/suppressions/suppressions.d.ts +92 -0
- package/dist/generated/suppressions/suppressions.d.ts.map +1 -0
- package/dist/generated/suppressions/suppressions.js +92 -0
- package/dist/generated/suppressions/suppressions.js.map +1 -0
- package/dist/generated/sync-dimensions/sync-dimensions.d.ts +24 -0
- package/dist/generated/sync-dimensions/sync-dimensions.d.ts.map +1 -0
- package/dist/generated/sync-dimensions/sync-dimensions.js +27 -0
- package/dist/generated/sync-dimensions/sync-dimensions.js.map +1 -0
- package/dist/generated/tenant-client-version/tenant-client-version.d.ts +45 -0
- package/dist/generated/tenant-client-version/tenant-client-version.d.ts.map +1 -0
- package/dist/generated/tenant-client-version/tenant-client-version.js +40 -0
- package/dist/generated/tenant-client-version/tenant-client-version.js.map +1 -0
- package/dist/generated/tenant-config/tenant-config.d.ts +26 -11
- package/dist/generated/tenant-config/tenant-config.d.ts.map +1 -1
- package/dist/generated/tenant-config/tenant-config.js +43 -1
- package/dist/generated/tenant-config/tenant-config.js.map +1 -1
- package/dist/generated/tenant-maintenance/tenant-maintenance.d.ts +38 -0
- package/dist/generated/tenant-maintenance/tenant-maintenance.d.ts.map +1 -0
- package/dist/generated/tenant-maintenance/tenant-maintenance.js +41 -0
- package/dist/generated/tenant-maintenance/tenant-maintenance.js.map +1 -0
- package/dist/generated/tenant-modules/tenant-modules.d.ts +38 -0
- package/dist/generated/tenant-modules/tenant-modules.d.ts.map +1 -0
- package/dist/generated/tenant-modules/tenant-modules.js +41 -0
- package/dist/generated/tenant-modules/tenant-modules.js.map +1 -0
- package/dist/generated/transport-leg-booking/transport-leg-booking.d.ts +38 -0
- package/dist/generated/transport-leg-booking/transport-leg-booking.d.ts.map +1 -0
- package/dist/generated/transport-leg-booking/transport-leg-booking.js +41 -0
- package/dist/generated/transport-leg-booking/transport-leg-booking.js.map +1 -0
- package/dist/generated/transport-legs/transport-legs.d.ts +178 -0
- package/dist/generated/transport-legs/transport-legs.d.ts.map +1 -0
- package/dist/generated/transport-legs/transport-legs.js +287 -0
- package/dist/generated/transport-legs/transport-legs.js.map +1 -0
- package/dist/generated/transport-options/transport-options.d.ts +73 -0
- package/dist/generated/transport-options/transport-options.d.ts.map +1 -0
- package/dist/generated/transport-options/transport-options.js +86 -0
- package/dist/generated/transport-options/transport-options.js.map +1 -0
- package/dist/generated/transport-services/transport-services.d.ts +122 -0
- package/dist/generated/transport-services/transport-services.d.ts.map +1 -0
- package/dist/generated/transport-services/transport-services.js +127 -0
- package/dist/generated/transport-services/transport-services.js.map +1 -0
- package/dist/generated/units-of-measure/units-of-measure.d.ts +10 -9
- package/dist/generated/units-of-measure/units-of-measure.d.ts.map +1 -1
- package/dist/generated/units-of-measure/units-of-measure.js +9 -1
- package/dist/generated/units-of-measure/units-of-measure.js.map +1 -1
- package/dist/generated/unsubscribe/unsubscribe.d.ts +56 -0
- package/dist/generated/unsubscribe/unsubscribe.d.ts.map +1 -0
- package/dist/generated/unsubscribe/unsubscribe.js +39 -0
- package/dist/generated/unsubscribe/unsubscribe.js.map +1 -0
- package/dist/generated/users/users.d.ts +99 -0
- package/dist/generated/users/users.d.ts.map +1 -0
- package/dist/generated/users/users.js +95 -0
- package/dist/generated/users/users.js.map +1 -0
- package/dist/generated/warehouse-orders/warehouse-orders.d.ts +178 -0
- package/dist/generated/warehouse-orders/warehouse-orders.d.ts.map +1 -0
- package/dist/generated/warehouse-orders/warehouse-orders.js +276 -0
- package/dist/generated/warehouse-orders/warehouse-orders.js.map +1 -0
- package/dist/generated/warehouses/warehouses.d.ts +217 -0
- package/dist/generated/warehouses/warehouses.d.ts.map +1 -0
- package/dist/generated/warehouses/warehouses.js +238 -0
- package/dist/generated/warehouses/warehouses.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/permissions.d.ts +10 -3
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +11 -4
- package/dist/permissions.js.map +1 -1
- package/package.json +3 -3
- package/dist/generated/price-lists/price-lists.d.ts +0 -93
- package/dist/generated/price-lists/price-lists.d.ts.map +0 -1
- package/dist/generated/price-lists/price-lists.js +0 -82
- package/dist/generated/price-lists/price-lists.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containers.js","sourceRoot":"","sources":["../../../src/generated/containers/containers.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAU/C,CAAC;AAID,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC,MAAyC,EAAG,EAAE;IAC7F,MAAM,gBAAgB,GAAG,IAAI,eAAe,EAAE,CAAC;IAE/C,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QAEpD,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;YACxB,gBAAgB,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAA;QACvE,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,QAAQ,EAAE,CAAC;IAEtD,OAAO,iBAAiB,CAAC,MAAM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ACJ,OAAO,WAAW,CAAuC,kCAAkC,CAAC,EAAE,CAAC,EAC7F;QACE,GAAG,OAAO;QACV,MAAM,EAAE,OAAO;QACf,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,UAAU,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE;QAChF,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC;KACzC,CACF,CAAC;AAAA,CAAC,CAAA;AAWH,CAAC;AAID,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,EAAU,EAAG,EAAE;IAKhE,OAAO,kBAAkB,EAAE,EAAE,CAAA;AAC/B,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,KAAK,EAAE,EAAU,EAAE,OAA2C,EAAiD,EAAE;IAE3J,OAAO,WAAW,CAAuC,kCAAkC,CAAC,EAAE,CAAC,EAC/F;QACE,GAAG,OAAO;QACV,MAAM,EAAE,QAAQ;KAGjB,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Generated by orval
|
|
2
|
+
* Generated by orval 🍺
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Vinden Core API
|
|
5
5
|
* Core API for the Vinden Platform
|
|
6
|
-
* OpenAPI spec version:
|
|
7
|
-
*/
|
|
8
|
-
import type { CouponBenefitDto, CouponDetailDto, CouponDto, CouponRedemptionDto, CouponsControllerListCouponsV1Params, CouponsControllerListRedemptionsV1Params, CreateCouponBenefitDto, CreateCouponDto, RedeemCouponDto } from '../index.schemas.js';
|
|
9
|
-
/**
|
|
10
|
-
* 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
11
|
-
* @summary List coupons (campaign metadata)
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
12
7
|
*/
|
|
8
|
+
import type { CouponBenefitDto, CouponDetailDto, CouponDto, CouponLifecycleActionDto, CouponRedemptionDto, CouponTextDto, CouponValidationDto, CouponsControllerListCouponsV1Params, CouponsControllerListRedemptionsV1Params, CreateCouponBenefitDto, CreateCouponDto, PaginatedCouponRedemptionsDto, RedeemCouponDto, UpdateCouponDto, UpsertCouponTextDto } from '../index.schemas.js';
|
|
9
|
+
import { customFetch } from '../../mutator.js';
|
|
13
10
|
export type couponsControllerListCouponsV1Response200 = {
|
|
14
11
|
data: CouponDto[];
|
|
15
12
|
status: 200;
|
|
@@ -19,11 +16,11 @@ export type couponsControllerListCouponsV1ResponseSuccess = (couponsControllerLi
|
|
|
19
16
|
};
|
|
20
17
|
export type couponsControllerListCouponsV1Response = (couponsControllerListCouponsV1ResponseSuccess);
|
|
21
18
|
export declare const getCouponsControllerListCouponsV1Url: (params?: CouponsControllerListCouponsV1Params) => string;
|
|
22
|
-
export declare const couponsControllerListCouponsV1: (params?: CouponsControllerListCouponsV1Params, options?: RequestInit) => Promise<couponsControllerListCouponsV1Response>;
|
|
23
19
|
/**
|
|
24
|
-
* 🔒 Requires permission: coupon:
|
|
25
|
-
* @summary
|
|
20
|
+
* 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
21
|
+
* @summary List coupons (campaign metadata)
|
|
26
22
|
*/
|
|
23
|
+
export declare const couponsControllerListCouponsV1: (params?: CouponsControllerListCouponsV1Params, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerListCouponsV1Response>;
|
|
27
24
|
export type couponsControllerCreateCouponV1Response201 = {
|
|
28
25
|
data: CouponDto;
|
|
29
26
|
status: 201;
|
|
@@ -40,11 +37,11 @@ export type couponsControllerCreateCouponV1ResponseError = (couponsControllerCre
|
|
|
40
37
|
};
|
|
41
38
|
export type couponsControllerCreateCouponV1Response = (couponsControllerCreateCouponV1ResponseSuccess | couponsControllerCreateCouponV1ResponseError);
|
|
42
39
|
export declare const getCouponsControllerCreateCouponV1Url: () => string;
|
|
43
|
-
export declare const couponsControllerCreateCouponV1: (createCouponDto: CreateCouponDto, options?: RequestInit) => Promise<couponsControllerCreateCouponV1Response>;
|
|
44
40
|
/**
|
|
45
|
-
* 🔒 Requires permission: coupon:
|
|
46
|
-
* @summary
|
|
41
|
+
* 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
42
|
+
* @summary Create a coupon (created as draft)
|
|
47
43
|
*/
|
|
44
|
+
export declare const couponsControllerCreateCouponV1: (createCouponDto: CreateCouponDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerCreateCouponV1Response>;
|
|
48
45
|
export type couponsControllerGetCouponV1Response200 = {
|
|
49
46
|
data: CouponDetailDto;
|
|
50
47
|
status: 200;
|
|
@@ -54,11 +51,88 @@ export type couponsControllerGetCouponV1ResponseSuccess = (couponsControllerGetC
|
|
|
54
51
|
};
|
|
55
52
|
export type couponsControllerGetCouponV1Response = (couponsControllerGetCouponV1ResponseSuccess);
|
|
56
53
|
export declare const getCouponsControllerGetCouponV1Url: (id: string) => string;
|
|
57
|
-
export declare const couponsControllerGetCouponV1: (id: string, options?: RequestInit) => Promise<couponsControllerGetCouponV1Response>;
|
|
58
54
|
/**
|
|
59
|
-
* 🔒 Requires permission: coupon:
|
|
60
|
-
* @summary
|
|
55
|
+
* 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
56
|
+
* @summary Get one coupon with its benefits
|
|
57
|
+
*/
|
|
58
|
+
export declare const couponsControllerGetCouponV1: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerGetCouponV1Response>;
|
|
59
|
+
export type couponsControllerUpdateCouponV1Response200 = {
|
|
60
|
+
data: CouponDto;
|
|
61
|
+
status: 200;
|
|
62
|
+
};
|
|
63
|
+
export type couponsControllerUpdateCouponV1Response409 = {
|
|
64
|
+
data: void;
|
|
65
|
+
status: 409;
|
|
66
|
+
};
|
|
67
|
+
export type couponsControllerUpdateCouponV1ResponseSuccess = (couponsControllerUpdateCouponV1Response200) & {
|
|
68
|
+
headers: Headers;
|
|
69
|
+
};
|
|
70
|
+
export type couponsControllerUpdateCouponV1ResponseError = (couponsControllerUpdateCouponV1Response409) & {
|
|
71
|
+
headers: Headers;
|
|
72
|
+
};
|
|
73
|
+
export type couponsControllerUpdateCouponV1Response = (couponsControllerUpdateCouponV1ResponseSuccess | couponsControllerUpdateCouponV1ResponseError);
|
|
74
|
+
export declare const getCouponsControllerUpdateCouponV1Url: (id: string) => string;
|
|
75
|
+
/**
|
|
76
|
+
* Partial update. lifecycleStatus may move only between draft and pending_approval here — activation is POST /coupons/:id/approve, archiving is POST /coupons/:id/archive (both coupon:approve, tenant-admin only). Deactivating (isActive:false) or archiving stops NEW redemptions only; it does not affect redemptions already issued. 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
77
|
+
* @summary Update a coupon's fields, isActive, code (draft only), or lifecycle housekeeping
|
|
78
|
+
*/
|
|
79
|
+
export declare const couponsControllerUpdateCouponV1: (id: string, updateCouponDto: UpdateCouponDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerUpdateCouponV1Response>;
|
|
80
|
+
export type couponsControllerValidateCouponV1Response200 = {
|
|
81
|
+
data: CouponValidationDto;
|
|
82
|
+
status: 200;
|
|
83
|
+
};
|
|
84
|
+
export type couponsControllerValidateCouponV1ResponseSuccess = (couponsControllerValidateCouponV1Response200) & {
|
|
85
|
+
headers: Headers;
|
|
86
|
+
};
|
|
87
|
+
export type couponsControllerValidateCouponV1Response = (couponsControllerValidateCouponV1ResponseSuccess);
|
|
88
|
+
export declare const getCouponsControllerValidateCouponV1Url: (code: string) => string;
|
|
89
|
+
/**
|
|
90
|
+
* 🎫 Guest-capable — accepts a verified anonymous-session token (X-Session-Token) or an authenticated session.
|
|
91
|
+
* @summary Validate a coupon code for checkout pricing (guest-capable, advisory)
|
|
92
|
+
*/
|
|
93
|
+
export declare const couponsControllerValidateCouponV1: (code: string, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerValidateCouponV1Response>;
|
|
94
|
+
export type couponsControllerApproveCouponV1Response200 = {
|
|
95
|
+
data: CouponDto;
|
|
96
|
+
status: 200;
|
|
97
|
+
};
|
|
98
|
+
export type couponsControllerApproveCouponV1Response409 = {
|
|
99
|
+
data: void;
|
|
100
|
+
status: 409;
|
|
101
|
+
};
|
|
102
|
+
export type couponsControllerApproveCouponV1ResponseSuccess = (couponsControllerApproveCouponV1Response200) & {
|
|
103
|
+
headers: Headers;
|
|
104
|
+
};
|
|
105
|
+
export type couponsControllerApproveCouponV1ResponseError = (couponsControllerApproveCouponV1Response409) & {
|
|
106
|
+
headers: Headers;
|
|
107
|
+
};
|
|
108
|
+
export type couponsControllerApproveCouponV1Response = (couponsControllerApproveCouponV1ResponseSuccess | couponsControllerApproveCouponV1ResponseError);
|
|
109
|
+
export declare const getCouponsControllerApproveCouponV1Url: (id: string) => string;
|
|
110
|
+
/**
|
|
111
|
+
* Legal only from pending_approval (already-active is a no-op success). Stamps approvedByUserSub/approvedAt. 🔒 Requires permission: coupon:approve. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
112
|
+
* @summary Approve a pending coupon, activating it (idempotent; the only path to lifecycleStatus 'active')
|
|
61
113
|
*/
|
|
114
|
+
export declare const couponsControllerApproveCouponV1: (id: string, couponLifecycleActionDto: CouponLifecycleActionDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerApproveCouponV1Response>;
|
|
115
|
+
export type couponsControllerArchiveCouponV1Response200 = {
|
|
116
|
+
data: CouponDto;
|
|
117
|
+
status: 200;
|
|
118
|
+
};
|
|
119
|
+
export type couponsControllerArchiveCouponV1Response409 = {
|
|
120
|
+
data: void;
|
|
121
|
+
status: 409;
|
|
122
|
+
};
|
|
123
|
+
export type couponsControllerArchiveCouponV1ResponseSuccess = (couponsControllerArchiveCouponV1Response200) & {
|
|
124
|
+
headers: Headers;
|
|
125
|
+
};
|
|
126
|
+
export type couponsControllerArchiveCouponV1ResponseError = (couponsControllerArchiveCouponV1Response409) & {
|
|
127
|
+
headers: Headers;
|
|
128
|
+
};
|
|
129
|
+
export type couponsControllerArchiveCouponV1Response = (couponsControllerArchiveCouponV1ResponseSuccess | couponsControllerArchiveCouponV1ResponseError);
|
|
130
|
+
export declare const getCouponsControllerArchiveCouponV1Url: (id: string) => string;
|
|
131
|
+
/**
|
|
132
|
+
* Legal from draft, pending_approval, or active (already-archived is a no-op success). 🔒 Requires permission: coupon:approve. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
133
|
+
* @summary Archive a coupon, permanently ending it (idempotent; irreversible — the coupon code cannot be reused)
|
|
134
|
+
*/
|
|
135
|
+
export declare const couponsControllerArchiveCouponV1: (id: string, couponLifecycleActionDto: CouponLifecycleActionDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerArchiveCouponV1Response>;
|
|
62
136
|
export type couponsControllerAddBenefitV1Response201 = {
|
|
63
137
|
data: CouponBenefitDto;
|
|
64
138
|
status: 201;
|
|
@@ -68,11 +142,65 @@ export type couponsControllerAddBenefitV1ResponseSuccess = (couponsControllerAdd
|
|
|
68
142
|
};
|
|
69
143
|
export type couponsControllerAddBenefitV1Response = (couponsControllerAddBenefitV1ResponseSuccess);
|
|
70
144
|
export declare const getCouponsControllerAddBenefitV1Url: (id: string) => string;
|
|
71
|
-
export declare const couponsControllerAddBenefitV1: (id: string, createCouponBenefitDto: CreateCouponBenefitDto, options?: RequestInit) => Promise<couponsControllerAddBenefitV1Response>;
|
|
72
145
|
/**
|
|
73
146
|
* 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
74
|
-
* @summary
|
|
147
|
+
* @summary Add a benefit (per-article/category effect) to a coupon
|
|
148
|
+
*/
|
|
149
|
+
export declare const couponsControllerAddBenefitV1: (id: string, createCouponBenefitDto: CreateCouponBenefitDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerAddBenefitV1Response>;
|
|
150
|
+
export type couponsControllerUpsertTextV1Response200 = {
|
|
151
|
+
data: CouponTextDto;
|
|
152
|
+
status: 200;
|
|
153
|
+
};
|
|
154
|
+
export type couponsControllerUpsertTextV1Response400 = {
|
|
155
|
+
data: void;
|
|
156
|
+
status: 400;
|
|
157
|
+
};
|
|
158
|
+
export type couponsControllerUpsertTextV1Response404 = {
|
|
159
|
+
data: void;
|
|
160
|
+
status: 404;
|
|
161
|
+
};
|
|
162
|
+
export type couponsControllerUpsertTextV1Response409 = {
|
|
163
|
+
data: void;
|
|
164
|
+
status: 409;
|
|
165
|
+
};
|
|
166
|
+
export type couponsControllerUpsertTextV1ResponseSuccess = (couponsControllerUpsertTextV1Response200) & {
|
|
167
|
+
headers: Headers;
|
|
168
|
+
};
|
|
169
|
+
export type couponsControllerUpsertTextV1ResponseError = (couponsControllerUpsertTextV1Response400 | couponsControllerUpsertTextV1Response404 | couponsControllerUpsertTextV1Response409) & {
|
|
170
|
+
headers: Headers;
|
|
171
|
+
};
|
|
172
|
+
export type couponsControllerUpsertTextV1Response = (couponsControllerUpsertTextV1ResponseSuccess | couponsControllerUpsertTextV1ResponseError);
|
|
173
|
+
export declare const getCouponsControllerUpsertTextV1Url: (id: string, locale: "sv-SE" | "en-GB" | "fi-FI") => string;
|
|
174
|
+
/**
|
|
175
|
+
* Replaces the locale's whole text: an omitted summary or terms is cleared. Creates the text when the locale has none. A change bumps the coupon's `version`, because customers enrolled in a campaign keep the texts they enrolled under; resending the same text changes nothing and bumps nothing. The title also labels the invoice rows the coupon reduces, which is why it is capped at 80 characters. 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
176
|
+
* @summary Set one locale's customer-facing text of a coupon (title, summary, terms)
|
|
75
177
|
*/
|
|
178
|
+
export declare const couponsControllerUpsertTextV1: (id: string, locale: "sv-SE" | "en-GB" | "fi-FI", upsertCouponTextDto: UpsertCouponTextDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerUpsertTextV1Response>;
|
|
179
|
+
export type couponsControllerDeleteTextV1Response204 = {
|
|
180
|
+
data: void;
|
|
181
|
+
status: 204;
|
|
182
|
+
};
|
|
183
|
+
export type couponsControllerDeleteTextV1Response400 = {
|
|
184
|
+
data: void;
|
|
185
|
+
status: 400;
|
|
186
|
+
};
|
|
187
|
+
export type couponsControllerDeleteTextV1Response404 = {
|
|
188
|
+
data: void;
|
|
189
|
+
status: 404;
|
|
190
|
+
};
|
|
191
|
+
export type couponsControllerDeleteTextV1ResponseSuccess = (couponsControllerDeleteTextV1Response204) & {
|
|
192
|
+
headers: Headers;
|
|
193
|
+
};
|
|
194
|
+
export type couponsControllerDeleteTextV1ResponseError = (couponsControllerDeleteTextV1Response400 | couponsControllerDeleteTextV1Response404) & {
|
|
195
|
+
headers: Headers;
|
|
196
|
+
};
|
|
197
|
+
export type couponsControllerDeleteTextV1Response = (couponsControllerDeleteTextV1ResponseSuccess | couponsControllerDeleteTextV1ResponseError);
|
|
198
|
+
export declare const getCouponsControllerDeleteTextV1Url: (id: string, locale: "sv-SE" | "en-GB" | "fi-FI") => string;
|
|
199
|
+
/**
|
|
200
|
+
* Readers fall back to another locale (same language, then the tenant's default, then en-GB). Bumps the coupon's `version`; enrolled customers keep their copy. 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
201
|
+
* @summary Remove one locale's text of a coupon
|
|
202
|
+
*/
|
|
203
|
+
export declare const couponsControllerDeleteTextV1: (id: string, locale: "sv-SE" | "en-GB" | "fi-FI", options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerDeleteTextV1Response>;
|
|
76
204
|
export type couponsControllerRedeemCouponV1Response201 = {
|
|
77
205
|
data: CouponRedemptionDto;
|
|
78
206
|
status: 201;
|
|
@@ -89,13 +217,13 @@ export type couponsControllerRedeemCouponV1ResponseError = (couponsControllerRed
|
|
|
89
217
|
};
|
|
90
218
|
export type couponsControllerRedeemCouponV1Response = (couponsControllerRedeemCouponV1ResponseSuccess | couponsControllerRedeemCouponV1ResponseError);
|
|
91
219
|
export declare const getCouponsControllerRedeemCouponV1Url: (id: string) => string;
|
|
92
|
-
export declare const couponsControllerRedeemCouponV1: (id: string, redeemCouponDto: RedeemCouponDto, options?: RequestInit) => Promise<couponsControllerRedeemCouponV1Response>;
|
|
93
220
|
/**
|
|
94
|
-
* 🔒 Requires permission: coupon:
|
|
95
|
-
* @summary
|
|
221
|
+
* 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
222
|
+
* @summary Redeem a coupon for a billing account (grants account credit for any grant_account_credit benefit)
|
|
96
223
|
*/
|
|
224
|
+
export declare const couponsControllerRedeemCouponV1: (id: string, redeemCouponDto: RedeemCouponDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerRedeemCouponV1Response>;
|
|
97
225
|
export type couponsControllerListRedemptionsV1Response200 = {
|
|
98
|
-
data:
|
|
226
|
+
data: PaginatedCouponRedemptionsDto;
|
|
99
227
|
status: 200;
|
|
100
228
|
};
|
|
101
229
|
export type couponsControllerListRedemptionsV1ResponseSuccess = (couponsControllerListRedemptionsV1Response200) & {
|
|
@@ -103,5 +231,9 @@ export type couponsControllerListRedemptionsV1ResponseSuccess = (couponsControll
|
|
|
103
231
|
};
|
|
104
232
|
export type couponsControllerListRedemptionsV1Response = (couponsControllerListRedemptionsV1ResponseSuccess);
|
|
105
233
|
export declare const getCouponsControllerListRedemptionsV1Url: (params?: CouponsControllerListRedemptionsV1Params) => string;
|
|
106
|
-
|
|
234
|
+
/**
|
|
235
|
+
* `total` is the exact count matching the filters, so `couponId` with `limit=1` counts one coupon's redemptions. An automatic coupon (`autoApply`) enrols accounts in its campaign instead of redeeming, so its enrolments are not in this list. 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
236
|
+
* @summary List coupon redemptions (optionally filtered by billing account, coupon, and status)
|
|
237
|
+
*/
|
|
238
|
+
export declare const couponsControllerListRedemptionsV1: (params?: CouponsControllerListRedemptionsV1Params, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerListRedemptionsV1Response>;
|
|
107
239
|
//# sourceMappingURL=coupons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons.d.ts","sourceRoot":"","sources":["../../../src/generated/coupons/coupons.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,mBAAmB,EACnB,oCAAoC,EACpC,wCAAwC,EACxC,sBAAsB,EACtB,eAAe,EACf,eAAe,
|
|
1
|
+
{"version":3,"file":"coupons.d.ts","sourceRoot":"","sources":["../../../src/generated/coupons/coupons.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,eAAe,EACf,SAAS,EACT,wBAAwB,EACxB,mBAAmB,EACnB,aAAa,EACb,mBAAmB,EACnB,oCAAoC,EACpC,wCAAwC,EACxC,sBAAsB,EACtB,eAAe,EACf,6BAA6B,EAC7B,eAAe,EACf,eAAe,EACf,mBAAmB,EACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,MAAM,yCAAyC,GAAG;IACtD,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,6CAA6C,GAAG,CAAC,yCAAyC,CAAC,GAAG;IACxG,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAGF,MAAM,MAAM,sCAAsC,GAAG,CAAC,6CAA6C,CAAC,CAAA;AAEpG,eAAO,MAAM,oCAAoC,GAAI,SAAS,oCAAoC,WAajG,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,8BAA8B,GAAU,SAAS,oCAAoC,EAAE,UAAU,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,KAA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U,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,KAAG,OAAO,CAAC,0CAA0C,CASzM,CAAA"}
|
|
@@ -4,12 +4,16 @@ export const getCouponsControllerListCouponsV1Url = (params) => {
|
|
|
4
4
|
const normalizedParams = new URLSearchParams();
|
|
5
5
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
6
6
|
if (value !== undefined) {
|
|
7
|
-
normalizedParams.append(key, value === null ? 'null' : value
|
|
7
|
+
normalizedParams.append(key, value === null ? 'null' : String(value));
|
|
8
8
|
}
|
|
9
9
|
});
|
|
10
10
|
const stringifiedParams = normalizedParams.toString();
|
|
11
11
|
return stringifiedParams.length > 0 ? `/v1/billing/coupons?${stringifiedParams}` : `/v1/billing/coupons`;
|
|
12
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
15
|
+
* @summary List coupons (campaign metadata)
|
|
16
|
+
*/
|
|
13
17
|
export const couponsControllerListCouponsV1 = async (params, options) => {
|
|
14
18
|
return customFetch(getCouponsControllerListCouponsV1Url(params), {
|
|
15
19
|
...options,
|
|
@@ -19,11 +23,24 @@ export const couponsControllerListCouponsV1 = async (params, options) => {
|
|
|
19
23
|
export const getCouponsControllerCreateCouponV1Url = () => {
|
|
20
24
|
return `/v1/billing/coupons`;
|
|
21
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
28
|
+
* @summary Create a coupon (created as draft)
|
|
29
|
+
*/
|
|
22
30
|
export const couponsControllerCreateCouponV1 = async (createCouponDto, options) => {
|
|
31
|
+
const getHeaders = (h) => {
|
|
32
|
+
if (!h)
|
|
33
|
+
return {};
|
|
34
|
+
if (h instanceof Headers)
|
|
35
|
+
return Object.fromEntries(h.entries());
|
|
36
|
+
if (Array.isArray(h))
|
|
37
|
+
return Object.fromEntries(h);
|
|
38
|
+
return h;
|
|
39
|
+
};
|
|
23
40
|
return customFetch(getCouponsControllerCreateCouponV1Url(), {
|
|
24
41
|
...options,
|
|
25
42
|
method: 'POST',
|
|
26
|
-
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
43
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
27
44
|
body: JSON.stringify(createCouponDto)
|
|
28
45
|
});
|
|
29
46
|
};
|
|
@@ -31,32 +48,185 @@ export const couponsControllerCreateCouponV1 = async (createCouponDto, options)
|
|
|
31
48
|
export const getCouponsControllerGetCouponV1Url = (id) => {
|
|
32
49
|
return `/v1/billing/coupons/${id}`;
|
|
33
50
|
};
|
|
51
|
+
/**
|
|
52
|
+
* 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
53
|
+
* @summary Get one coupon with its benefits
|
|
54
|
+
*/
|
|
34
55
|
export const couponsControllerGetCouponV1 = async (id, options) => {
|
|
35
56
|
return customFetch(getCouponsControllerGetCouponV1Url(id), {
|
|
36
57
|
...options,
|
|
37
58
|
method: 'GET'
|
|
38
59
|
});
|
|
39
60
|
};
|
|
61
|
+
export const getCouponsControllerUpdateCouponV1Url = (id) => {
|
|
62
|
+
return `/v1/billing/coupons/${id}`;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Partial update. lifecycleStatus may move only between draft and pending_approval here — activation is POST /coupons/:id/approve, archiving is POST /coupons/:id/archive (both coupon:approve, tenant-admin only). Deactivating (isActive:false) or archiving stops NEW redemptions only; it does not affect redemptions already issued. 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
66
|
+
* @summary Update a coupon's fields, isActive, code (draft only), or lifecycle housekeeping
|
|
67
|
+
*/
|
|
68
|
+
export const couponsControllerUpdateCouponV1 = async (id, updateCouponDto, options) => {
|
|
69
|
+
const getHeaders = (h) => {
|
|
70
|
+
if (!h)
|
|
71
|
+
return {};
|
|
72
|
+
if (h instanceof Headers)
|
|
73
|
+
return Object.fromEntries(h.entries());
|
|
74
|
+
if (Array.isArray(h))
|
|
75
|
+
return Object.fromEntries(h);
|
|
76
|
+
return h;
|
|
77
|
+
};
|
|
78
|
+
return customFetch(getCouponsControllerUpdateCouponV1Url(id), {
|
|
79
|
+
...options,
|
|
80
|
+
method: 'PATCH',
|
|
81
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
82
|
+
body: JSON.stringify(updateCouponDto)
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
;
|
|
86
|
+
export const getCouponsControllerValidateCouponV1Url = (code) => {
|
|
87
|
+
return `/v1/billing/coupons/${code}/validate`;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* 🎫 Guest-capable — accepts a verified anonymous-session token (X-Session-Token) or an authenticated session.
|
|
91
|
+
* @summary Validate a coupon code for checkout pricing (guest-capable, advisory)
|
|
92
|
+
*/
|
|
93
|
+
export const couponsControllerValidateCouponV1 = async (code, options) => {
|
|
94
|
+
return customFetch(getCouponsControllerValidateCouponV1Url(code), {
|
|
95
|
+
...options,
|
|
96
|
+
method: 'GET'
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
export const getCouponsControllerApproveCouponV1Url = (id) => {
|
|
100
|
+
return `/v1/billing/coupons/${id}/approve`;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Legal only from pending_approval (already-active is a no-op success). Stamps approvedByUserSub/approvedAt. 🔒 Requires permission: coupon:approve. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
104
|
+
* @summary Approve a pending coupon, activating it (idempotent; the only path to lifecycleStatus 'active')
|
|
105
|
+
*/
|
|
106
|
+
export const couponsControllerApproveCouponV1 = async (id, couponLifecycleActionDto, options) => {
|
|
107
|
+
const getHeaders = (h) => {
|
|
108
|
+
if (!h)
|
|
109
|
+
return {};
|
|
110
|
+
if (h instanceof Headers)
|
|
111
|
+
return Object.fromEntries(h.entries());
|
|
112
|
+
if (Array.isArray(h))
|
|
113
|
+
return Object.fromEntries(h);
|
|
114
|
+
return h;
|
|
115
|
+
};
|
|
116
|
+
return customFetch(getCouponsControllerApproveCouponV1Url(id), {
|
|
117
|
+
...options,
|
|
118
|
+
method: 'POST',
|
|
119
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
120
|
+
body: JSON.stringify(couponLifecycleActionDto)
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
export const getCouponsControllerArchiveCouponV1Url = (id) => {
|
|
124
|
+
return `/v1/billing/coupons/${id}/archive`;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Legal from draft, pending_approval, or active (already-archived is a no-op success). 🔒 Requires permission: coupon:approve. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
128
|
+
* @summary Archive a coupon, permanently ending it (idempotent; irreversible — the coupon code cannot be reused)
|
|
129
|
+
*/
|
|
130
|
+
export const couponsControllerArchiveCouponV1 = async (id, couponLifecycleActionDto, options) => {
|
|
131
|
+
const getHeaders = (h) => {
|
|
132
|
+
if (!h)
|
|
133
|
+
return {};
|
|
134
|
+
if (h instanceof Headers)
|
|
135
|
+
return Object.fromEntries(h.entries());
|
|
136
|
+
if (Array.isArray(h))
|
|
137
|
+
return Object.fromEntries(h);
|
|
138
|
+
return h;
|
|
139
|
+
};
|
|
140
|
+
return customFetch(getCouponsControllerArchiveCouponV1Url(id), {
|
|
141
|
+
...options,
|
|
142
|
+
method: 'POST',
|
|
143
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
144
|
+
body: JSON.stringify(couponLifecycleActionDto)
|
|
145
|
+
});
|
|
146
|
+
};
|
|
40
147
|
;
|
|
41
148
|
export const getCouponsControllerAddBenefitV1Url = (id) => {
|
|
42
149
|
return `/v1/billing/coupons/${id}/benefits`;
|
|
43
150
|
};
|
|
151
|
+
/**
|
|
152
|
+
* 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
153
|
+
* @summary Add a benefit (per-article/category effect) to a coupon
|
|
154
|
+
*/
|
|
44
155
|
export const couponsControllerAddBenefitV1 = async (id, createCouponBenefitDto, options) => {
|
|
156
|
+
const getHeaders = (h) => {
|
|
157
|
+
if (!h)
|
|
158
|
+
return {};
|
|
159
|
+
if (h instanceof Headers)
|
|
160
|
+
return Object.fromEntries(h.entries());
|
|
161
|
+
if (Array.isArray(h))
|
|
162
|
+
return Object.fromEntries(h);
|
|
163
|
+
return h;
|
|
164
|
+
};
|
|
45
165
|
return customFetch(getCouponsControllerAddBenefitV1Url(id), {
|
|
46
166
|
...options,
|
|
47
167
|
method: 'POST',
|
|
48
|
-
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
168
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
49
169
|
body: JSON.stringify(createCouponBenefitDto)
|
|
50
170
|
});
|
|
51
171
|
};
|
|
172
|
+
export const getCouponsControllerUpsertTextV1Url = (id, locale) => {
|
|
173
|
+
return `/v1/billing/coupons/${id}/texts/${locale}`;
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Replaces the locale's whole text: an omitted summary or terms is cleared. Creates the text when the locale has none. A change bumps the coupon's `version`, because customers enrolled in a campaign keep the texts they enrolled under; resending the same text changes nothing and bumps nothing. The title also labels the invoice rows the coupon reduces, which is why it is capped at 80 characters. 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
177
|
+
* @summary Set one locale's customer-facing text of a coupon (title, summary, terms)
|
|
178
|
+
*/
|
|
179
|
+
export const couponsControllerUpsertTextV1 = async (id, locale, upsertCouponTextDto, options) => {
|
|
180
|
+
const getHeaders = (h) => {
|
|
181
|
+
if (!h)
|
|
182
|
+
return {};
|
|
183
|
+
if (h instanceof Headers)
|
|
184
|
+
return Object.fromEntries(h.entries());
|
|
185
|
+
if (Array.isArray(h))
|
|
186
|
+
return Object.fromEntries(h);
|
|
187
|
+
return h;
|
|
188
|
+
};
|
|
189
|
+
return customFetch(getCouponsControllerUpsertTextV1Url(id, locale), {
|
|
190
|
+
...options,
|
|
191
|
+
method: 'PUT',
|
|
192
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
193
|
+
body: JSON.stringify(upsertCouponTextDto)
|
|
194
|
+
});
|
|
195
|
+
};
|
|
196
|
+
export const getCouponsControllerDeleteTextV1Url = (id, locale) => {
|
|
197
|
+
return `/v1/billing/coupons/${id}/texts/${locale}`;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Readers fall back to another locale (same language, then the tenant's default, then en-GB). Bumps the coupon's `version`; enrolled customers keep their copy. 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
201
|
+
* @summary Remove one locale's text of a coupon
|
|
202
|
+
*/
|
|
203
|
+
export const couponsControllerDeleteTextV1 = async (id, locale, options) => {
|
|
204
|
+
return customFetch(getCouponsControllerDeleteTextV1Url(id, locale), {
|
|
205
|
+
...options,
|
|
206
|
+
method: 'DELETE'
|
|
207
|
+
});
|
|
208
|
+
};
|
|
52
209
|
export const getCouponsControllerRedeemCouponV1Url = (id) => {
|
|
53
210
|
return `/v1/billing/coupons/${id}/redeem`;
|
|
54
211
|
};
|
|
212
|
+
/**
|
|
213
|
+
* 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
214
|
+
* @summary Redeem a coupon for a billing account (grants account credit for any grant_account_credit benefit)
|
|
215
|
+
*/
|
|
55
216
|
export const couponsControllerRedeemCouponV1 = async (id, redeemCouponDto, options) => {
|
|
217
|
+
const getHeaders = (h) => {
|
|
218
|
+
if (!h)
|
|
219
|
+
return {};
|
|
220
|
+
if (h instanceof Headers)
|
|
221
|
+
return Object.fromEntries(h.entries());
|
|
222
|
+
if (Array.isArray(h))
|
|
223
|
+
return Object.fromEntries(h);
|
|
224
|
+
return h;
|
|
225
|
+
};
|
|
56
226
|
return customFetch(getCouponsControllerRedeemCouponV1Url(id), {
|
|
57
227
|
...options,
|
|
58
228
|
method: 'POST',
|
|
59
|
-
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
229
|
+
headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
|
|
60
230
|
body: JSON.stringify(redeemCouponDto)
|
|
61
231
|
});
|
|
62
232
|
};
|
|
@@ -65,12 +235,16 @@ export const getCouponsControllerListRedemptionsV1Url = (params) => {
|
|
|
65
235
|
const normalizedParams = new URLSearchParams();
|
|
66
236
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
67
237
|
if (value !== undefined) {
|
|
68
|
-
normalizedParams.append(key, value === null ? 'null' : value
|
|
238
|
+
normalizedParams.append(key, value === null ? 'null' : String(value));
|
|
69
239
|
}
|
|
70
240
|
});
|
|
71
241
|
const stringifiedParams = normalizedParams.toString();
|
|
72
242
|
return stringifiedParams.length > 0 ? `/v1/billing/coupon-redemptions?${stringifiedParams}` : `/v1/billing/coupon-redemptions`;
|
|
73
243
|
};
|
|
244
|
+
/**
|
|
245
|
+
* `total` is the exact count matching the filters, so `couponId` with `limit=1` counts one coupon's redemptions. An automatic coupon (`autoApply`) enrols accounts in its campaign instead of redeeming, so its enrolments are not in this list. 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
246
|
+
* @summary List coupon redemptions (optionally filtered by billing account, coupon, and status)
|
|
247
|
+
*/
|
|
74
248
|
export const couponsControllerListRedemptionsV1 = async (params, options) => {
|
|
75
249
|
return customFetch(getCouponsControllerListRedemptionsV1Url(params), {
|
|
76
250
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"coupons.js","sourceRoot":"","sources":["../../../src/generated/coupons/coupons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"coupons.js","sourceRoot":"","sources":["../../../src/generated/coupons/coupons.ts"],"names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EH,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,QAAQ,EAAE,CAAC;IAEtD,OAAO,iBAAiB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,kCAAkC,iBAAiB,EAAE,CAAC,CAAC,CAAC,gCAAgC,CAAA;AAChI,CAAC,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAAG,KAAK,EAAE,MAAiD,EAAE,OAA2C,EAAuD,EAAE;IAE9M,OAAO,WAAW,CAA6C,wCAAwC,CAAC,MAAM,CAAC,EAC/G;QACE,GAAG,OAAO;QACV,MAAM,EAAE,KAAK;KAGd,CACF,CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Vinden Core API
|
|
5
|
+
* Core API for the Vinden Platform
|
|
6
|
+
* OpenAPI spec version: 1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { AddDamageReportImagesDto, AddDamageReportImagesResultDto, CreateDamageReportDto, DamageReportDto, DamageReportsControllerListV1Params, PaginatedDamageReportsDto } from '../index.schemas.js';
|
|
9
|
+
import { customFetch } from '../../mutator.js';
|
|
10
|
+
export type damageReportsControllerListV1Response200 = {
|
|
11
|
+
data: PaginatedDamageReportsDto;
|
|
12
|
+
status: 200;
|
|
13
|
+
};
|
|
14
|
+
export type damageReportsControllerListV1ResponseSuccess = (damageReportsControllerListV1Response200) & {
|
|
15
|
+
headers: Headers;
|
|
16
|
+
};
|
|
17
|
+
export type damageReportsControllerListV1Response = (damageReportsControllerListV1ResponseSuccess);
|
|
18
|
+
export declare const getDamageReportsControllerListV1Url: (params?: DamageReportsControllerListV1Params) => string;
|
|
19
|
+
/**
|
|
20
|
+
* 🔒 Requires permission: damagereport:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
21
|
+
* @summary List damage reports visible to the caller (RLS-scoped)
|
|
22
|
+
*/
|
|
23
|
+
export declare const damageReportsControllerListV1: (params?: DamageReportsControllerListV1Params, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerListV1Response>;
|
|
24
|
+
export type damageReportsControllerCreateV1Response201 = {
|
|
25
|
+
data: DamageReportDto;
|
|
26
|
+
status: 201;
|
|
27
|
+
};
|
|
28
|
+
export type damageReportsControllerCreateV1ResponseSuccess = (damageReportsControllerCreateV1Response201) & {
|
|
29
|
+
headers: Headers;
|
|
30
|
+
};
|
|
31
|
+
export type damageReportsControllerCreateV1Response = (damageReportsControllerCreateV1ResponseSuccess);
|
|
32
|
+
export declare const getDamageReportsControllerCreateV1Url: () => string;
|
|
33
|
+
/**
|
|
34
|
+
* 🔒 Requires permission: damagereport:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
35
|
+
* @summary Save a standalone damage report (+ images, item.condition) for an existing item
|
|
36
|
+
*/
|
|
37
|
+
export declare const damageReportsControllerCreateV1: (createDamageReportDto: CreateDamageReportDto, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerCreateV1Response>;
|
|
38
|
+
export type damageReportsControllerGetByIdV1Response200 = {
|
|
39
|
+
data: DamageReportDto;
|
|
40
|
+
status: 200;
|
|
41
|
+
};
|
|
42
|
+
export type damageReportsControllerGetByIdV1ResponseSuccess = (damageReportsControllerGetByIdV1Response200) & {
|
|
43
|
+
headers: Headers;
|
|
44
|
+
};
|
|
45
|
+
export type damageReportsControllerGetByIdV1Response = (damageReportsControllerGetByIdV1ResponseSuccess);
|
|
46
|
+
export declare const getDamageReportsControllerGetByIdV1Url: (id: string) => string;
|
|
47
|
+
/**
|
|
48
|
+
* 🔒 Requires permission: damagereport:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
49
|
+
* @summary Get one damage report
|
|
50
|
+
*/
|
|
51
|
+
export declare const damageReportsControllerGetByIdV1: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerGetByIdV1Response>;
|
|
52
|
+
export type damageReportsControllerRemoveV1Response204 = {
|
|
53
|
+
data: void;
|
|
54
|
+
status: 204;
|
|
55
|
+
};
|
|
56
|
+
export type damageReportsControllerRemoveV1ResponseSuccess = (damageReportsControllerRemoveV1Response204) & {
|
|
57
|
+
headers: Headers;
|
|
58
|
+
};
|
|
59
|
+
export type damageReportsControllerRemoveV1Response = (damageReportsControllerRemoveV1ResponseSuccess);
|
|
60
|
+
export declare const getDamageReportsControllerRemoveV1Url: (id: string) => string;
|
|
61
|
+
/**
|
|
62
|
+
* 🔒 Requires permission: damagereport:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
63
|
+
* @summary Soft-delete a damage report + its images
|
|
64
|
+
*/
|
|
65
|
+
export declare const damageReportsControllerRemoveV1: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerRemoveV1Response>;
|
|
66
|
+
export type damageReportsControllerAddImagesV1Response201 = {
|
|
67
|
+
data: AddDamageReportImagesResultDto;
|
|
68
|
+
status: 201;
|
|
69
|
+
};
|
|
70
|
+
export type damageReportsControllerAddImagesV1ResponseSuccess = (damageReportsControllerAddImagesV1Response201) & {
|
|
71
|
+
headers: Headers;
|
|
72
|
+
};
|
|
73
|
+
export type damageReportsControllerAddImagesV1Response = (damageReportsControllerAddImagesV1ResponseSuccess);
|
|
74
|
+
export declare const getDamageReportsControllerAddImagesV1Url: (id: string) => string;
|
|
75
|
+
/**
|
|
76
|
+
* 🔒 Requires permission: damagereport:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
77
|
+
* @summary Attach a batch of images to an existing damage report (all-or-none)
|
|
78
|
+
*/
|
|
79
|
+
export declare const damageReportsControllerAddImagesV1: (id: string, addDamageReportImagesDto: AddDamageReportImagesDto, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerAddImagesV1Response>;
|
|
80
|
+
export type damageReportsControllerDeleteImageV1Response204 = {
|
|
81
|
+
data: void;
|
|
82
|
+
status: 204;
|
|
83
|
+
};
|
|
84
|
+
export type damageReportsControllerDeleteImageV1ResponseSuccess = (damageReportsControllerDeleteImageV1Response204) & {
|
|
85
|
+
headers: Headers;
|
|
86
|
+
};
|
|
87
|
+
export type damageReportsControllerDeleteImageV1Response = (damageReportsControllerDeleteImageV1ResponseSuccess);
|
|
88
|
+
export declare const getDamageReportsControllerDeleteImageV1Url: (id: string, imageId: string) => string;
|
|
89
|
+
/**
|
|
90
|
+
* 🔒 Requires permission: damagereport:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
|
|
91
|
+
* @summary Soft-delete one image from a damage report (keeps at least one)
|
|
92
|
+
*/
|
|
93
|
+
export declare const damageReportsControllerDeleteImageV1: (id: string, imageId: string, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerDeleteImageV1Response>;
|
|
94
|
+
//# sourceMappingURL=damage-reports.d.ts.map
|