@vindentech/api-client 0.3.0-next.58 → 0.3.0-next.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (417) hide show
  1. package/dist/generated/account-credits/account-credits.d.ts +16 -15
  2. package/dist/generated/account-credits/account-credits.d.ts.map +1 -1
  3. package/dist/generated/account-credits/account-credits.js +28 -3
  4. package/dist/generated/account-credits/account-credits.js.map +1 -1
  5. package/dist/generated/addresses/addresses.d.ts +16 -15
  6. package/dist/generated/addresses/addresses.d.ts.map +1 -1
  7. package/dist/generated/addresses/addresses.js +41 -3
  8. package/dist/generated/addresses/addresses.js.map +1 -1
  9. package/dist/generated/articles/articles.d.ts +16 -15
  10. package/dist/generated/articles/articles.d.ts.map +1 -1
  11. package/dist/generated/articles/articles.js +37 -3
  12. package/dist/generated/articles/articles.js.map +1 -1
  13. package/dist/generated/billable-event-types/billable-event-types.d.ts +7 -6
  14. package/dist/generated/billable-event-types/billable-event-types.d.ts.map +1 -1
  15. package/dist/generated/billable-event-types/billable-event-types.js +4 -0
  16. package/dist/generated/billable-event-types/billable-event-types.js.map +1 -1
  17. package/dist/generated/billable-events/billable-events.d.ts +12 -11
  18. package/dist/generated/billable-events/billable-events.d.ts.map +1 -1
  19. package/dist/generated/billable-events/billable-events.js +23 -2
  20. package/dist/generated/billable-events/billable-events.js.map +1 -1
  21. package/dist/generated/billable-events-webhook/billable-events-webhook.d.ts +7 -6
  22. package/dist/generated/billable-events-webhook/billable-events-webhook.d.ts.map +1 -1
  23. package/dist/generated/billable-events-webhook/billable-events-webhook.js +14 -1
  24. package/dist/generated/billable-events-webhook/billable-events-webhook.js.map +1 -1
  25. package/dist/generated/billing-accounts/billing-accounts.d.ts +16 -15
  26. package/dist/generated/billing-accounts/billing-accounts.d.ts.map +1 -1
  27. package/dist/generated/billing-accounts/billing-accounts.js +37 -3
  28. package/dist/generated/billing-accounts/billing-accounts.js.map +1 -1
  29. package/dist/generated/billing-frequencies/billing-frequencies.d.ts +7 -6
  30. package/dist/generated/billing-frequencies/billing-frequencies.d.ts.map +1 -1
  31. package/dist/generated/billing-frequencies/billing-frequencies.js +5 -1
  32. package/dist/generated/billing-frequencies/billing-frequencies.js.map +1 -1
  33. package/dist/generated/billing-model-templates/billing-model-templates.d.ts +7 -6
  34. package/dist/generated/billing-model-templates/billing-model-templates.d.ts.map +1 -1
  35. package/dist/generated/billing-model-templates/billing-model-templates.js +4 -0
  36. package/dist/generated/billing-model-templates/billing-model-templates.js.map +1 -1
  37. package/dist/generated/binding-plans/binding-plans.d.ts +19 -18
  38. package/dist/generated/binding-plans/binding-plans.d.ts.map +1 -1
  39. package/dist/generated/binding-plans/binding-plans.js +61 -5
  40. package/dist/generated/binding-plans/binding-plans.js.map +1 -1
  41. package/dist/generated/bookings/bookings.d.ts +12 -11
  42. package/dist/generated/bookings/bookings.d.ts.map +1 -1
  43. package/dist/generated/bookings/bookings.js +22 -1
  44. package/dist/generated/bookings/bookings.js.map +1 -1
  45. package/dist/generated/capacity/capacity.d.ts +26 -25
  46. package/dist/generated/capacity/capacity.d.ts.map +1 -1
  47. package/dist/generated/capacity/capacity.js +68 -5
  48. package/dist/generated/capacity/capacity.js.map +1 -1
  49. package/dist/generated/carrier-bookings/carrier-bookings.d.ts +7 -6
  50. package/dist/generated/carrier-bookings/carrier-bookings.d.ts.map +1 -1
  51. package/dist/generated/carrier-bookings/carrier-bookings.js +5 -1
  52. package/dist/generated/carrier-bookings/carrier-bookings.js.map +1 -1
  53. package/dist/generated/carrier-methods/carrier-methods.d.ts +9 -8
  54. package/dist/generated/carrier-methods/carrier-methods.d.ts.map +1 -1
  55. package/dist/generated/carrier-methods/carrier-methods.js +18 -1
  56. package/dist/generated/carrier-methods/carrier-methods.js.map +1 -1
  57. package/dist/generated/carriers/carriers.d.ts +31 -30
  58. package/dist/generated/carriers/carriers.d.ts.map +1 -1
  59. package/dist/generated/carriers/carriers.js +73 -6
  60. package/dist/generated/carriers/carriers.js.map +1 -1
  61. package/dist/generated/carts/carts.d.ts +30 -29
  62. package/dist/generated/carts/carts.d.ts.map +1 -1
  63. package/dist/generated/carts/carts.js +86 -5
  64. package/dist/generated/carts/carts.js.map +1 -1
  65. package/dist/generated/categories/categories.d.ts +7 -6
  66. package/dist/generated/categories/categories.d.ts.map +1 -1
  67. package/dist/generated/categories/categories.js +4 -0
  68. package/dist/generated/categories/categories.js.map +1 -1
  69. package/dist/generated/check-in/check-in.d.ts +15 -14
  70. package/dist/generated/check-in/check-in.d.ts.map +1 -1
  71. package/dist/generated/check-in/check-in.js +56 -4
  72. package/dist/generated/check-in/check-in.js.map +1 -1
  73. package/dist/generated/checkout/checkout.d.ts +9 -8
  74. package/dist/generated/checkout/checkout.d.ts.map +1 -1
  75. package/dist/generated/checkout/checkout.js +10 -2
  76. package/dist/generated/checkout/checkout.js.map +1 -1
  77. package/dist/generated/client-config/client-config.d.ts +7 -6
  78. package/dist/generated/client-config/client-config.d.ts.map +1 -1
  79. package/dist/generated/client-config/client-config.js +5 -1
  80. package/dist/generated/client-config/client-config.js.map +1 -1
  81. package/dist/generated/container-types/container-types.d.ts +7 -6
  82. package/dist/generated/container-types/container-types.d.ts.map +1 -1
  83. package/dist/generated/container-types/container-types.js +14 -1
  84. package/dist/generated/container-types/container-types.js.map +1 -1
  85. package/dist/generated/containers/containers.d.ts +20 -19
  86. package/dist/generated/containers/containers.d.ts.map +1 -1
  87. package/dist/generated/containers/containers.js +45 -3
  88. package/dist/generated/containers/containers.js.map +1 -1
  89. package/dist/generated/coupons/coupons.d.ts +33 -32
  90. package/dist/generated/coupons/coupons.d.ts.map +1 -1
  91. package/dist/generated/coupons/coupons.js +102 -8
  92. package/dist/generated/coupons/coupons.js.map +1 -1
  93. package/dist/generated/damage-reports/damage-reports.d.ts +20 -19
  94. package/dist/generated/damage-reports/damage-reports.d.ts.map +1 -1
  95. package/dist/generated/damage-reports/damage-reports.js +45 -3
  96. package/dist/generated/damage-reports/damage-reports.js.map +1 -1
  97. package/dist/generated/discount-rules/discount-rules.d.ts +10 -9
  98. package/dist/generated/discount-rules/discount-rules.d.ts.map +1 -1
  99. package/dist/generated/discount-rules/discount-rules.js +19 -2
  100. package/dist/generated/discount-rules/discount-rules.js.map +1 -1
  101. package/dist/generated/employee-assignments/employee-assignments.d.ts +20 -19
  102. package/dist/generated/employee-assignments/employee-assignments.d.ts.map +1 -1
  103. package/dist/generated/employee-assignments/employee-assignments.js +55 -4
  104. package/dist/generated/employee-assignments/employee-assignments.js.map +1 -1
  105. package/dist/generated/files/files.d.ts +7 -6
  106. package/dist/generated/files/files.d.ts.map +1 -1
  107. package/dist/generated/files/files.js +14 -1
  108. package/dist/generated/files/files.js.map +1 -1
  109. package/dist/generated/folders/folders.d.ts +20 -19
  110. package/dist/generated/folders/folders.d.ts.map +1 -1
  111. package/dist/generated/folders/folders.js +55 -4
  112. package/dist/generated/folders/folders.js.map +1 -1
  113. package/dist/generated/forklift/forklift.d.ts +20 -19
  114. package/dist/generated/forklift/forklift.d.ts.map +1 -1
  115. package/dist/generated/forklift/forklift.js +80 -7
  116. package/dist/generated/forklift/forklift.js.map +1 -1
  117. package/dist/generated/fortnox-o-auth/fortnox-o-auth.d.ts +7 -6
  118. package/dist/generated/fortnox-o-auth/fortnox-o-auth.d.ts.map +1 -1
  119. package/dist/generated/fortnox-o-auth/fortnox-o-auth.js +4 -0
  120. package/dist/generated/fortnox-o-auth/fortnox-o-auth.js.map +1 -1
  121. package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.d.ts +7 -6
  122. package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.d.ts.map +1 -1
  123. package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.js +4 -0
  124. package/dist/generated/hasura-sales-order-webhook/hasura-sales-order-webhook.js.map +1 -1
  125. package/dist/generated/hasura-user-webhook/hasura-user-webhook.d.ts +7 -6
  126. package/dist/generated/hasura-user-webhook/hasura-user-webhook.d.ts.map +1 -1
  127. package/dist/generated/hasura-user-webhook/hasura-user-webhook.js +4 -0
  128. package/dist/generated/hasura-user-webhook/hasura-user-webhook.js.map +1 -1
  129. package/dist/generated/health/health.d.ts +7 -6
  130. package/dist/generated/health/health.d.ts.map +1 -1
  131. package/dist/generated/health/health.js +4 -0
  132. package/dist/generated/health/health.js.map +1 -1
  133. package/dist/generated/index.schemas.d.ts +1574 -1673
  134. package/dist/generated/index.schemas.d.ts.map +1 -1
  135. package/dist/generated/index.schemas.js +0 -271
  136. package/dist/generated/index.schemas.js.map +1 -1
  137. package/dist/generated/integrations/integrations.d.ts +29 -28
  138. package/dist/generated/integrations/integrations.d.ts.map +1 -1
  139. package/dist/generated/integrations/integrations.js +62 -3
  140. package/dist/generated/integrations/integrations.js.map +1 -1
  141. package/dist/generated/invoice-basis-rows/invoice-basis-rows.d.ts +7 -6
  142. package/dist/generated/invoice-basis-rows/invoice-basis-rows.d.ts.map +1 -1
  143. package/dist/generated/invoice-basis-rows/invoice-basis-rows.js +5 -1
  144. package/dist/generated/invoice-basis-rows/invoice-basis-rows.js.map +1 -1
  145. package/dist/generated/invoice-details/invoice-details.d.ts +10 -9
  146. package/dist/generated/invoice-details/invoice-details.d.ts.map +1 -1
  147. package/dist/generated/invoice-details/invoice-details.js +18 -1
  148. package/dist/generated/invoice-details/invoice-details.js.map +1 -1
  149. package/dist/generated/invoices/invoices.d.ts +28 -27
  150. package/dist/generated/invoices/invoices.d.ts.map +1 -1
  151. package/dist/generated/invoices/invoices.js +82 -6
  152. package/dist/generated/invoices/invoices.js.map +1 -1
  153. package/dist/generated/items/items.d.ts +12 -11
  154. package/dist/generated/items/items.d.ts.map +1 -1
  155. package/dist/generated/items/items.js +24 -3
  156. package/dist/generated/items/items.js.map +1 -1
  157. package/dist/generated/lookups/lookups.d.ts +7 -6
  158. package/dist/generated/lookups/lookups.d.ts.map +1 -1
  159. package/dist/generated/lookups/lookups.js +5 -1
  160. package/dist/generated/lookups/lookups.js.map +1 -1
  161. package/dist/generated/manual-billing-line/manual-billing-line.d.ts +7 -6
  162. package/dist/generated/manual-billing-line/manual-billing-line.d.ts.map +1 -1
  163. package/dist/generated/manual-billing-line/manual-billing-line.js +14 -1
  164. package/dist/generated/manual-billing-line/manual-billing-line.js.map +1 -1
  165. package/dist/generated/me/me.d.ts +17 -16
  166. package/dist/generated/me/me.d.ts.map +1 -1
  167. package/dist/generated/me/me.js +50 -3
  168. package/dist/generated/me/me.js.map +1 -1
  169. package/dist/generated/me-notification-preferences/me-notification-preferences.d.ts +10 -9
  170. package/dist/generated/me-notification-preferences/me-notification-preferences.d.ts.map +1 -1
  171. package/dist/generated/me-notification-preferences/me-notification-preferences.js +18 -1
  172. package/dist/generated/me-notification-preferences/me-notification-preferences.js.map +1 -1
  173. package/dist/generated/merchandise/merchandise.d.ts +28 -27
  174. package/dist/generated/merchandise/merchandise.d.ts.map +1 -1
  175. package/dist/generated/merchandise/merchandise.js +74 -6
  176. package/dist/generated/merchandise/merchandise.js.map +1 -1
  177. package/dist/generated/merchandise-checkout/merchandise-checkout.d.ts +10 -9
  178. package/dist/generated/merchandise-checkout/merchandise-checkout.d.ts.map +1 -1
  179. package/dist/generated/merchandise-checkout/merchandise-checkout.js +19 -2
  180. package/dist/generated/merchandise-checkout/merchandise-checkout.js.map +1 -1
  181. package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.d.ts +16 -15
  182. package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.d.ts.map +1 -1
  183. package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.js +37 -3
  184. package/dist/generated/merchandise-estimate-rules/merchandise-estimate-rules.js.map +1 -1
  185. package/dist/generated/move-adjust/move-adjust.d.ts +10 -9
  186. package/dist/generated/move-adjust/move-adjust.d.ts.map +1 -1
  187. package/dist/generated/move-adjust/move-adjust.js +28 -2
  188. package/dist/generated/move-adjust/move-adjust.js.map +1 -1
  189. package/dist/generated/notification-debug/notification-debug.d.ts +7 -6
  190. package/dist/generated/notification-debug/notification-debug.d.ts.map +1 -1
  191. package/dist/generated/notification-debug/notification-debug.js +14 -1
  192. package/dist/generated/notification-debug/notification-debug.js.map +1 -1
  193. package/dist/generated/notification-dispatches/notification-dispatches.d.ts +16 -15
  194. package/dist/generated/notification-dispatches/notification-dispatches.d.ts.map +1 -1
  195. package/dist/generated/notification-dispatches/notification-dispatches.js +27 -2
  196. package/dist/generated/notification-dispatches/notification-dispatches.js.map +1 -1
  197. package/dist/generated/notification-events/notification-events.d.ts +10 -9
  198. package/dist/generated/notification-events/notification-events.d.ts.map +1 -1
  199. package/dist/generated/notification-events/notification-events.js +10 -2
  200. package/dist/generated/notification-events/notification-events.js.map +1 -1
  201. package/dist/generated/notification-health/notification-health.d.ts +7 -6
  202. package/dist/generated/notification-health/notification-health.d.ts.map +1 -1
  203. package/dist/generated/notification-health/notification-health.js +4 -0
  204. package/dist/generated/notification-health/notification-health.js.map +1 -1
  205. package/dist/generated/notification-preferences/notification-preferences.d.ts +10 -9
  206. package/dist/generated/notification-preferences/notification-preferences.d.ts.map +1 -1
  207. package/dist/generated/notification-preferences/notification-preferences.js +19 -2
  208. package/dist/generated/notification-preferences/notification-preferences.js.map +1 -1
  209. package/dist/generated/notification-requests/notification-requests.d.ts +10 -9
  210. package/dist/generated/notification-requests/notification-requests.d.ts.map +1 -1
  211. package/dist/generated/notification-requests/notification-requests.js +8 -0
  212. package/dist/generated/notification-requests/notification-requests.js.map +1 -1
  213. package/dist/generated/notification-rules/notification-rules.d.ts +28 -27
  214. package/dist/generated/notification-rules/notification-rules.d.ts.map +1 -1
  215. package/dist/generated/notification-rules/notification-rules.js +63 -4
  216. package/dist/generated/notification-rules/notification-rules.js.map +1 -1
  217. package/dist/generated/notification-settings/notification-settings.d.ts +16 -15
  218. package/dist/generated/notification-settings/notification-settings.d.ts.map +1 -1
  219. package/dist/generated/notification-settings/notification-settings.js +46 -3
  220. package/dist/generated/notification-settings/notification-settings.js.map +1 -1
  221. package/dist/generated/notification-templates/notification-templates.d.ts +43 -42
  222. package/dist/generated/notification-templates/notification-templates.d.ts.map +1 -1
  223. package/dist/generated/notification-templates/notification-templates.js +113 -7
  224. package/dist/generated/notification-templates/notification-templates.js.map +1 -1
  225. package/dist/generated/order-groups/order-groups.d.ts +9 -8
  226. package/dist/generated/order-groups/order-groups.d.ts.map +1 -1
  227. package/dist/generated/order-groups/order-groups.js +9 -1
  228. package/dist/generated/order-groups/order-groups.js.map +1 -1
  229. package/dist/generated/orders/orders.d.ts +52 -51
  230. package/dist/generated/orders/orders.d.ts.map +1 -1
  231. package/dist/generated/orders/orders.js +216 -18
  232. package/dist/generated/orders/orders.js.map +1 -1
  233. package/dist/generated/org-contacts/org-contacts.d.ts +14 -13
  234. package/dist/generated/org-contacts/org-contacts.d.ts.map +1 -1
  235. package/dist/generated/org-contacts/org-contacts.js +37 -3
  236. package/dist/generated/org-contacts/org-contacts.js.map +1 -1
  237. package/dist/generated/organization-contracts/organization-contracts.d.ts +10 -9
  238. package/dist/generated/organization-contracts/organization-contracts.d.ts.map +1 -1
  239. package/dist/generated/organization-contracts/organization-contracts.js +18 -1
  240. package/dist/generated/organization-contracts/organization-contracts.js.map +1 -1
  241. package/dist/generated/organization-members/organization-members.d.ts +20 -19
  242. package/dist/generated/organization-members/organization-members.d.ts.map +1 -1
  243. package/dist/generated/organization-members/organization-members.js +54 -3
  244. package/dist/generated/organization-members/organization-members.js.map +1 -1
  245. package/dist/generated/organization-settings/organization-settings.d.ts +10 -9
  246. package/dist/generated/organization-settings/organization-settings.d.ts.map +1 -1
  247. package/dist/generated/organization-settings/organization-settings.js +18 -1
  248. package/dist/generated/organization-settings/organization-settings.js.map +1 -1
  249. package/dist/generated/organizations/organizations.d.ts +21 -20
  250. package/dist/generated/organizations/organizations.d.ts.map +1 -1
  251. package/dist/generated/organizations/organizations.js +47 -5
  252. package/dist/generated/organizations/organizations.js.map +1 -1
  253. package/dist/generated/outbound/outbound.d.ts +12 -11
  254. package/dist/generated/outbound/outbound.d.ts.map +1 -1
  255. package/dist/generated/outbound/outbound.js +42 -3
  256. package/dist/generated/outbound/outbound.js.map +1 -1
  257. package/dist/generated/payment-instruments/payment-instruments.d.ts +16 -15
  258. package/dist/generated/payment-instruments/payment-instruments.d.ts.map +1 -1
  259. package/dist/generated/payment-instruments/payment-instruments.js +16 -0
  260. package/dist/generated/payment-instruments/payment-instruments.js.map +1 -1
  261. package/dist/generated/payment-methods/payment-methods.d.ts +7 -6
  262. package/dist/generated/payment-methods/payment-methods.d.ts.map +1 -1
  263. package/dist/generated/payment-methods/payment-methods.js +5 -1
  264. package/dist/generated/payment-methods/payment-methods.js.map +1 -1
  265. package/dist/generated/payment-terms/payment-terms.d.ts +7 -6
  266. package/dist/generated/payment-terms/payment-terms.d.ts.map +1 -1
  267. package/dist/generated/payment-terms/payment-terms.js +5 -1
  268. package/dist/generated/payment-terms/payment-terms.js.map +1 -1
  269. package/dist/generated/pickup-label/pickup-label.d.ts +7 -6
  270. package/dist/generated/pickup-label/pickup-label.d.ts.map +1 -1
  271. package/dist/generated/pickup-label/pickup-label.js +4 -0
  272. package/dist/generated/pickup-label/pickup-label.js.map +1 -1
  273. package/dist/generated/pods/pods.d.ts +24 -23
  274. package/dist/generated/pods/pods.d.ts.map +1 -1
  275. package/dist/generated/pods/pods.js +74 -6
  276. package/dist/generated/pods/pods.js.map +1 -1
  277. package/dist/generated/positions/positions.d.ts +25 -24
  278. package/dist/generated/positions/positions.d.ts.map +1 -1
  279. package/dist/generated/positions/positions.js +53 -3
  280. package/dist/generated/positions/positions.js.map +1 -1
  281. package/dist/generated/price-lists/price-lists.d.ts +28 -27
  282. package/dist/generated/price-lists/price-lists.d.ts.map +1 -1
  283. package/dist/generated/price-lists/price-lists.js +84 -7
  284. package/dist/generated/price-lists/price-lists.js.map +1 -1
  285. package/dist/generated/price-suggestion/price-suggestion.d.ts +7 -6
  286. package/dist/generated/price-suggestion/price-suggestion.d.ts.map +1 -1
  287. package/dist/generated/price-suggestion/price-suggestion.js +5 -1
  288. package/dist/generated/price-suggestion/price-suggestion.js.map +1 -1
  289. package/dist/generated/pricing-rules/pricing-rules.d.ts +22 -21
  290. package/dist/generated/pricing-rules/pricing-rules.d.ts.map +1 -1
  291. package/dist/generated/pricing-rules/pricing-rules.js +65 -5
  292. package/dist/generated/pricing-rules/pricing-rules.js.map +1 -1
  293. package/dist/generated/products/products.d.ts +26 -25
  294. package/dist/generated/products/products.d.ts.map +1 -1
  295. package/dist/generated/products/products.js +74 -6
  296. package/dist/generated/products/products.js.map +1 -1
  297. package/dist/generated/provider-switch/provider-switch.d.ts +9 -8
  298. package/dist/generated/provider-switch/provider-switch.d.ts.map +1 -1
  299. package/dist/generated/provider-switch/provider-switch.js +28 -2
  300. package/dist/generated/provider-switch/provider-switch.js.map +1 -1
  301. package/dist/generated/receive/receive.d.ts +15 -14
  302. package/dist/generated/receive/receive.d.ts.map +1 -1
  303. package/dist/generated/receive/receive.js +56 -4
  304. package/dist/generated/receive/receive.js.map +1 -1
  305. package/dist/generated/recurring-fee-configs/recurring-fee-configs.d.ts +15 -14
  306. package/dist/generated/recurring-fee-configs/recurring-fee-configs.d.ts.map +1 -1
  307. package/dist/generated/recurring-fee-configs/recurring-fee-configs.js +37 -3
  308. package/dist/generated/recurring-fee-configs/recurring-fee-configs.js.map +1 -1
  309. package/dist/generated/route-stops/route-stops.d.ts +13 -12
  310. package/dist/generated/route-stops/route-stops.d.ts.map +1 -1
  311. package/dist/generated/route-stops/route-stops.js +56 -4
  312. package/dist/generated/route-stops/route-stops.js.map +1 -1
  313. package/dist/generated/routes/routes.d.ts +42 -41
  314. package/dist/generated/routes/routes.d.ts.map +1 -1
  315. package/dist/generated/routes/routes.js +171 -12
  316. package/dist/generated/routes/routes.js.map +1 -1
  317. package/dist/generated/sales-orders/sales-orders.d.ts +10 -9
  318. package/dist/generated/sales-orders/sales-orders.d.ts.map +1 -1
  319. package/dist/generated/sales-orders/sales-orders.js +9 -1
  320. package/dist/generated/sales-orders/sales-orders.js.map +1 -1
  321. package/dist/generated/sender-identities/sender-identities.d.ts +22 -21
  322. package/dist/generated/sender-identities/sender-identities.d.ts.map +1 -1
  323. package/dist/generated/sender-identities/sender-identities.js +45 -3
  324. package/dist/generated/sender-identities/sender-identities.js.map +1 -1
  325. package/dist/generated/service-catalog/service-catalog.d.ts +7 -6
  326. package/dist/generated/service-catalog/service-catalog.d.ts.map +1 -1
  327. package/dist/generated/service-catalog/service-catalog.js +4 -0
  328. package/dist/generated/service-catalog/service-catalog.js.map +1 -1
  329. package/dist/generated/service-points/service-points.d.ts +7 -6
  330. package/dist/generated/service-points/service-points.d.ts.map +1 -1
  331. package/dist/generated/service-points/service-points.js +5 -1
  332. package/dist/generated/service-points/service-points.js.map +1 -1
  333. package/dist/generated/service-zones/service-zones.d.ts +21 -20
  334. package/dist/generated/service-zones/service-zones.d.ts.map +1 -1
  335. package/dist/generated/service-zones/service-zones.js +46 -4
  336. package/dist/generated/service-zones/service-zones.js.map +1 -1
  337. package/dist/generated/sessions/sessions.d.ts +7 -6
  338. package/dist/generated/sessions/sessions.d.ts.map +1 -1
  339. package/dist/generated/sessions/sessions.js +4 -0
  340. package/dist/generated/sessions/sessions.js.map +1 -1
  341. package/dist/generated/shipments/shipments.d.ts +7 -6
  342. package/dist/generated/shipments/shipments.d.ts.map +1 -1
  343. package/dist/generated/shipments/shipments.js +4 -0
  344. package/dist/generated/shipments/shipments.js.map +1 -1
  345. package/dist/generated/slot-configs/slot-configs.d.ts +16 -15
  346. package/dist/generated/slot-configs/slot-configs.d.ts.map +1 -1
  347. package/dist/generated/slot-configs/slot-configs.js +51 -4
  348. package/dist/generated/slot-configs/slot-configs.js.map +1 -1
  349. package/dist/generated/stripe-webhook/stripe-webhook.d.ts +7 -6
  350. package/dist/generated/stripe-webhook/stripe-webhook.d.ts.map +1 -1
  351. package/dist/generated/stripe-webhook/stripe-webhook.js +4 -0
  352. package/dist/generated/stripe-webhook/stripe-webhook.js.map +1 -1
  353. package/dist/generated/subscription-configs/subscription-configs.d.ts +12 -11
  354. package/dist/generated/subscription-configs/subscription-configs.d.ts.map +1 -1
  355. package/dist/generated/subscription-configs/subscription-configs.js +32 -2
  356. package/dist/generated/subscription-configs/subscription-configs.js.map +1 -1
  357. package/dist/generated/suppressions/suppressions.d.ts +16 -15
  358. package/dist/generated/suppressions/suppressions.d.ts.map +1 -1
  359. package/dist/generated/suppressions/suppressions.js +38 -4
  360. package/dist/generated/suppressions/suppressions.js.map +1 -1
  361. package/dist/generated/sync-dimensions/sync-dimensions.d.ts +7 -6
  362. package/dist/generated/sync-dimensions/sync-dimensions.d.ts.map +1 -1
  363. package/dist/generated/sync-dimensions/sync-dimensions.js +14 -1
  364. package/dist/generated/sync-dimensions/sync-dimensions.js.map +1 -1
  365. package/dist/generated/tenant-config/tenant-config.d.ts +12 -11
  366. package/dist/generated/tenant-config/tenant-config.d.ts.map +1 -1
  367. package/dist/generated/tenant-config/tenant-config.js +32 -2
  368. package/dist/generated/tenant-config/tenant-config.js.map +1 -1
  369. package/dist/generated/tenant-maintenance/tenant-maintenance.d.ts +10 -9
  370. package/dist/generated/tenant-maintenance/tenant-maintenance.d.ts.map +1 -1
  371. package/dist/generated/tenant-maintenance/tenant-maintenance.js +18 -1
  372. package/dist/generated/tenant-maintenance/tenant-maintenance.js.map +1 -1
  373. package/dist/generated/tenant-modules/tenant-modules.d.ts +10 -9
  374. package/dist/generated/tenant-modules/tenant-modules.d.ts.map +1 -1
  375. package/dist/generated/tenant-modules/tenant-modules.js +18 -1
  376. package/dist/generated/tenant-modules/tenant-modules.js.map +1 -1
  377. package/dist/generated/tenant-services/tenant-services.d.ts +14 -13
  378. package/dist/generated/tenant-services/tenant-services.d.ts.map +1 -1
  379. package/dist/generated/tenant-services/tenant-services.js +36 -2
  380. package/dist/generated/tenant-services/tenant-services.js.map +1 -1
  381. package/dist/generated/transport-leg-booking/transport-leg-booking.d.ts +10 -9
  382. package/dist/generated/transport-leg-booking/transport-leg-booking.d.ts.map +1 -1
  383. package/dist/generated/transport-leg-booking/transport-leg-booking.js +18 -1
  384. package/dist/generated/transport-leg-booking/transport-leg-booking.js.map +1 -1
  385. package/dist/generated/transport-legs/transport-legs.d.ts +34 -33
  386. package/dist/generated/transport-legs/transport-legs.d.ts.map +1 -1
  387. package/dist/generated/transport-legs/transport-legs.js +149 -11
  388. package/dist/generated/transport-legs/transport-legs.js.map +1 -1
  389. package/dist/generated/transport-options/transport-options.d.ts +14 -13
  390. package/dist/generated/transport-options/transport-options.d.ts.map +1 -1
  391. package/dist/generated/transport-options/transport-options.js +37 -3
  392. package/dist/generated/transport-options/transport-options.js.map +1 -1
  393. package/dist/generated/transport-services/transport-services.d.ts +25 -24
  394. package/dist/generated/transport-services/transport-services.d.ts.map +1 -1
  395. package/dist/generated/transport-services/transport-services.js +54 -4
  396. package/dist/generated/transport-services/transport-services.js.map +1 -1
  397. package/dist/generated/units-of-measure/units-of-measure.d.ts +9 -8
  398. package/dist/generated/units-of-measure/units-of-measure.d.ts.map +1 -1
  399. package/dist/generated/units-of-measure/units-of-measure.js +9 -1
  400. package/dist/generated/units-of-measure/units-of-measure.js.map +1 -1
  401. package/dist/generated/unsubscribe/unsubscribe.d.ts +10 -9
  402. package/dist/generated/unsubscribe/unsubscribe.d.ts.map +1 -1
  403. package/dist/generated/unsubscribe/unsubscribe.js +18 -1
  404. package/dist/generated/unsubscribe/unsubscribe.js.map +1 -1
  405. package/dist/generated/users/users.d.ts +16 -15
  406. package/dist/generated/users/users.d.ts.map +1 -1
  407. package/dist/generated/users/users.js +47 -4
  408. package/dist/generated/users/users.js.map +1 -1
  409. package/dist/generated/warehouse-orders/warehouse-orders.d.ts +32 -31
  410. package/dist/generated/warehouse-orders/warehouse-orders.d.ts.map +1 -1
  411. package/dist/generated/warehouse-orders/warehouse-orders.js +125 -9
  412. package/dist/generated/warehouse-orders/warehouse-orders.js.map +1 -1
  413. package/dist/generated/warehouses/warehouses.d.ts +29 -28
  414. package/dist/generated/warehouses/warehouses.d.ts.map +1 -1
  415. package/dist/generated/warehouses/warehouses.js +78 -6
  416. package/dist/generated/warehouses/warehouses.js.map +1 -1
  417. package/package.json +2 -2
@@ -1,15 +1,12 @@
1
1
  /**
2
- * Generated by orval v7.21.0 🍺
2
+ * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Vinden Core API
5
5
  * Core API for the Vinden Platform
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
8
  import type { CouponBenefitDto, CouponDetailDto, CouponDto, CouponLifecycleActionDto, CouponRedemptionDto, CouponValidationDto, CouponsControllerListCouponsV1Params, CouponsControllerListRedemptionsV1Params, CreateCouponBenefitDto, CreateCouponDto, PaginatedCouponRedemptionsDto, RedeemCouponDto, UpdateCouponDto } from '../index.schemas.js';
9
- /**
10
- * 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
11
- * @summary List coupons (campaign metadata)
12
- */
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:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
25
- * @summary Create a coupon (created as draft)
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:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
46
- * @summary Get one coupon with its benefits
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,11 @@ 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
- * 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.
60
- * @summary Update a coupon's fields, isActive, code (draft only), or lifecycle housekeeping
55
+ * 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
56
+ * @summary Get one coupon with its benefits
61
57
  */
58
+ export declare const couponsControllerGetCouponV1: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerGetCouponV1Response>;
62
59
  export type couponsControllerUpdateCouponV1Response200 = {
63
60
  data: CouponDto;
64
61
  status: 200;
@@ -75,11 +72,11 @@ export type couponsControllerUpdateCouponV1ResponseError = (couponsControllerUpd
75
72
  };
76
73
  export type couponsControllerUpdateCouponV1Response = (couponsControllerUpdateCouponV1ResponseSuccess | couponsControllerUpdateCouponV1ResponseError);
77
74
  export declare const getCouponsControllerUpdateCouponV1Url: (id: string) => string;
78
- export declare const couponsControllerUpdateCouponV1: (id: string, updateCouponDto: UpdateCouponDto, options?: RequestInit) => Promise<couponsControllerUpdateCouponV1Response>;
79
75
  /**
80
- * 🎫 Guest-capable — accepts a verified anonymous-session token (X-Session-Token) or an authenticated session.
81
- * @summary Validate a coupon code for checkout pricing (guest-capable, advisory)
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
82
78
  */
79
+ export declare const couponsControllerUpdateCouponV1: (id: string, updateCouponDto: UpdateCouponDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerUpdateCouponV1Response>;
83
80
  export type couponsControllerValidateCouponV1Response200 = {
84
81
  data: CouponValidationDto;
85
82
  status: 200;
@@ -89,11 +86,11 @@ export type couponsControllerValidateCouponV1ResponseSuccess = (couponsControlle
89
86
  };
90
87
  export type couponsControllerValidateCouponV1Response = (couponsControllerValidateCouponV1ResponseSuccess);
91
88
  export declare const getCouponsControllerValidateCouponV1Url: (code: string) => string;
92
- export declare const couponsControllerValidateCouponV1: (code: string, options?: RequestInit) => Promise<couponsControllerValidateCouponV1Response>;
93
89
  /**
94
- * 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.
95
- * @summary Approve a pending coupon, activating it (idempotent; the only path to lifecycleStatus 'active')
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)
96
92
  */
93
+ export declare const couponsControllerValidateCouponV1: (code: string, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerValidateCouponV1Response>;
97
94
  export type couponsControllerApproveCouponV1Response200 = {
98
95
  data: CouponDto;
99
96
  status: 200;
@@ -110,11 +107,11 @@ export type couponsControllerApproveCouponV1ResponseError = (couponsControllerAp
110
107
  };
111
108
  export type couponsControllerApproveCouponV1Response = (couponsControllerApproveCouponV1ResponseSuccess | couponsControllerApproveCouponV1ResponseError);
112
109
  export declare const getCouponsControllerApproveCouponV1Url: (id: string) => string;
113
- export declare const couponsControllerApproveCouponV1: (id: string, couponLifecycleActionDto: CouponLifecycleActionDto, options?: RequestInit) => Promise<couponsControllerApproveCouponV1Response>;
114
110
  /**
115
- * 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.
116
- * @summary Archive a coupon, permanently ending it (idempotent; irreversible — the coupon code cannot be reused)
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')
117
113
  */
114
+ export declare const couponsControllerApproveCouponV1: (id: string, couponLifecycleActionDto: CouponLifecycleActionDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerApproveCouponV1Response>;
118
115
  export type couponsControllerArchiveCouponV1Response200 = {
119
116
  data: CouponDto;
120
117
  status: 200;
@@ -131,11 +128,11 @@ export type couponsControllerArchiveCouponV1ResponseError = (couponsControllerAr
131
128
  };
132
129
  export type couponsControllerArchiveCouponV1Response = (couponsControllerArchiveCouponV1ResponseSuccess | couponsControllerArchiveCouponV1ResponseError);
133
130
  export declare const getCouponsControllerArchiveCouponV1Url: (id: string) => string;
134
- export declare const couponsControllerArchiveCouponV1: (id: string, couponLifecycleActionDto: CouponLifecycleActionDto, options?: RequestInit) => Promise<couponsControllerArchiveCouponV1Response>;
135
131
  /**
136
- * 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
137
- * @summary Add a benefit (per-article/category effect) to a coupon
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)
138
134
  */
135
+ export declare const couponsControllerArchiveCouponV1: (id: string, couponLifecycleActionDto: CouponLifecycleActionDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerArchiveCouponV1Response>;
139
136
  export type couponsControllerAddBenefitV1Response201 = {
140
137
  data: CouponBenefitDto;
141
138
  status: 201;
@@ -145,11 +142,11 @@ export type couponsControllerAddBenefitV1ResponseSuccess = (couponsControllerAdd
145
142
  };
146
143
  export type couponsControllerAddBenefitV1Response = (couponsControllerAddBenefitV1ResponseSuccess);
147
144
  export declare const getCouponsControllerAddBenefitV1Url: (id: string) => string;
148
- export declare const couponsControllerAddBenefitV1: (id: string, createCouponBenefitDto: CreateCouponBenefitDto, options?: RequestInit) => Promise<couponsControllerAddBenefitV1Response>;
149
145
  /**
150
146
  * 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
151
- * @summary Redeem a coupon for a billing account (grants account credit for any grant_account_credit benefit)
147
+ * @summary Add a benefit (per-article/category effect) to a coupon
152
148
  */
149
+ export declare const couponsControllerAddBenefitV1: (id: string, createCouponBenefitDto: CreateCouponBenefitDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerAddBenefitV1Response>;
153
150
  export type couponsControllerRedeemCouponV1Response201 = {
154
151
  data: CouponRedemptionDto;
155
152
  status: 201;
@@ -166,11 +163,11 @@ export type couponsControllerRedeemCouponV1ResponseError = (couponsControllerRed
166
163
  };
167
164
  export type couponsControllerRedeemCouponV1Response = (couponsControllerRedeemCouponV1ResponseSuccess | couponsControllerRedeemCouponV1ResponseError);
168
165
  export declare const getCouponsControllerRedeemCouponV1Url: (id: string) => string;
169
- export declare const couponsControllerRedeemCouponV1: (id: string, redeemCouponDto: RedeemCouponDto, options?: RequestInit) => Promise<couponsControllerRedeemCouponV1Response>;
170
166
  /**
171
- * 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
172
- * @summary List coupon redemptions (optionally filtered by billing account)
167
+ * 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
168
+ * @summary Redeem a coupon for a billing account (grants account credit for any grant_account_credit benefit)
173
169
  */
170
+ export declare const couponsControllerRedeemCouponV1: (id: string, redeemCouponDto: RedeemCouponDto, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerRedeemCouponV1Response>;
174
171
  export type couponsControllerListRedemptionsV1Response200 = {
175
172
  data: PaginatedCouponRedemptionsDto;
176
173
  status: 200;
@@ -180,5 +177,9 @@ export type couponsControllerListRedemptionsV1ResponseSuccess = (couponsControll
180
177
  };
181
178
  export type couponsControllerListRedemptionsV1Response = (couponsControllerListRedemptionsV1ResponseSuccess);
182
179
  export declare const getCouponsControllerListRedemptionsV1Url: (params?: CouponsControllerListRedemptionsV1Params) => string;
183
- export declare const couponsControllerListRedemptionsV1: (params?: CouponsControllerListRedemptionsV1Params, options?: RequestInit) => Promise<couponsControllerListRedemptionsV1Response>;
180
+ /**
181
+ * 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
182
+ * @summary List coupon redemptions (optionally filtered by billing account)
183
+ */
184
+ export declare const couponsControllerListRedemptionsV1: (params?: CouponsControllerListRedemptionsV1Params, options?: Parameters<typeof customFetch>[1]) => Promise<couponsControllerListRedemptionsV1Response>;
184
185
  //# 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,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,oCAAoC,EACpC,wCAAwC,EACxC,sBAAsB,EACtB,eAAe,EACf,6BAA6B,EAC7B,eAAe,EACf,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAI7B;;;GAGG;AACH,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,eAAO,MAAM,8BAA8B,GAAU,SAAS,oCAAoC,EAAE,UAAU,WAAW,KAAG,OAAO,CAAC,sCAAsC,CASvK,CAAA;AAGH;;;GAGG;AACH,MAAM,MAAM,0CAA0C,GAAG;IACvD,IAAI,EAAE,SAAS,CAAA;IACf,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,0CAA0C,GAAG;IACvD,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,GAAG,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,8CAA8C,GAAG,CA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AGG;AACH,eAAO,MAAM,kCAAkC,GAAU,SAAS,wCAAwC,EAAE,UAAU,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.toString());
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,6 +48,10 @@ 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,
@@ -40,11 +61,24 @@ export const couponsControllerGetCouponV1 = async (id, options) => {
40
61
  export const getCouponsControllerUpdateCouponV1Url = (id) => {
41
62
  return `/v1/billing/coupons/${id}`;
42
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
+ */
43
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
+ };
44
78
  return customFetch(getCouponsControllerUpdateCouponV1Url(id), {
45
79
  ...options,
46
80
  method: 'PATCH',
47
- headers: { 'Content-Type': 'application/json', ...options?.headers },
81
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
48
82
  body: JSON.stringify(updateCouponDto)
49
83
  });
50
84
  };
@@ -52,6 +86,10 @@ export const couponsControllerUpdateCouponV1 = async (id, updateCouponDto, optio
52
86
  export const getCouponsControllerValidateCouponV1Url = (code) => {
53
87
  return `/v1/billing/coupons/${code}/validate`;
54
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
+ */
55
93
  export const couponsControllerValidateCouponV1 = async (code, options) => {
56
94
  return customFetch(getCouponsControllerValidateCouponV1Url(code), {
57
95
  ...options,
@@ -61,22 +99,48 @@ export const couponsControllerValidateCouponV1 = async (code, options) => {
61
99
  export const getCouponsControllerApproveCouponV1Url = (id) => {
62
100
  return `/v1/billing/coupons/${id}/approve`;
63
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
+ */
64
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
+ };
65
116
  return customFetch(getCouponsControllerApproveCouponV1Url(id), {
66
117
  ...options,
67
118
  method: 'POST',
68
- headers: { 'Content-Type': 'application/json', ...options?.headers },
119
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
69
120
  body: JSON.stringify(couponLifecycleActionDto)
70
121
  });
71
122
  };
72
123
  export const getCouponsControllerArchiveCouponV1Url = (id) => {
73
124
  return `/v1/billing/coupons/${id}/archive`;
74
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
+ */
75
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
+ };
76
140
  return customFetch(getCouponsControllerArchiveCouponV1Url(id), {
77
141
  ...options,
78
142
  method: 'POST',
79
- headers: { 'Content-Type': 'application/json', ...options?.headers },
143
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
80
144
  body: JSON.stringify(couponLifecycleActionDto)
81
145
  });
82
146
  };
@@ -84,22 +148,48 @@ export const couponsControllerArchiveCouponV1 = async (id, couponLifecycleAction
84
148
  export const getCouponsControllerAddBenefitV1Url = (id) => {
85
149
  return `/v1/billing/coupons/${id}/benefits`;
86
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
+ */
87
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
+ };
88
165
  return customFetch(getCouponsControllerAddBenefitV1Url(id), {
89
166
  ...options,
90
167
  method: 'POST',
91
- headers: { 'Content-Type': 'application/json', ...options?.headers },
168
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
92
169
  body: JSON.stringify(createCouponBenefitDto)
93
170
  });
94
171
  };
95
172
  export const getCouponsControllerRedeemCouponV1Url = (id) => {
96
173
  return `/v1/billing/coupons/${id}/redeem`;
97
174
  };
175
+ /**
176
+ * 🔒 Requires permission: coupon:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
177
+ * @summary Redeem a coupon for a billing account (grants account credit for any grant_account_credit benefit)
178
+ */
98
179
  export const couponsControllerRedeemCouponV1 = async (id, redeemCouponDto, 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
+ };
99
189
  return customFetch(getCouponsControllerRedeemCouponV1Url(id), {
100
190
  ...options,
101
191
  method: 'POST',
102
- headers: { 'Content-Type': 'application/json', ...options?.headers },
192
+ headers: { 'Content-Type': 'application/json', ...getHeaders(options?.headers) },
103
193
  body: JSON.stringify(redeemCouponDto)
104
194
  });
105
195
  };
@@ -108,12 +198,16 @@ export const getCouponsControllerListRedemptionsV1Url = (params) => {
108
198
  const normalizedParams = new URLSearchParams();
109
199
  Object.entries(params || {}).forEach(([key, value]) => {
110
200
  if (value !== undefined) {
111
- normalizedParams.append(key, value === null ? 'null' : value.toString());
201
+ normalizedParams.append(key, value === null ? 'null' : String(value));
112
202
  }
113
203
  });
114
204
  const stringifiedParams = normalizedParams.toString();
115
205
  return stringifiedParams.length > 0 ? `/v1/billing/coupon-redemptions?${stringifiedParams}` : `/v1/billing/coupon-redemptions`;
116
206
  };
207
+ /**
208
+ * 🔒 Requires permission: coupon:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
209
+ * @summary List coupon redemptions (optionally filtered by billing account)
210
+ */
117
211
  export const couponsControllerListRedemptionsV1 = async (params, options) => {
118
212
  return customFetch(getCouponsControllerListRedemptionsV1Url(params), {
119
213
  ...options,
@@ -1 +1 @@
1
- {"version":3,"file":"coupons.js","sourceRoot":"","sources":["../../../src/generated/coupons/coupons.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAc/C,CAAC;AAID,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,MAA6C,EAAG,EAAE;IACrG,MAAM,gBAAgB,GAAG,IAAI,eAAe,EAAE,CAAC;IAE/C,MAAM,CAAC,OAA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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,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"}
@@ -1,15 +1,12 @@
1
1
  /**
2
- * Generated by orval v7.21.0 🍺
2
+ * Generated by orval 🍺
3
3
  * Do not edit manually.
4
4
  * Vinden Core API
5
5
  * Core API for the Vinden Platform
6
6
  * OpenAPI spec version: 0.1.0
7
7
  */
8
8
  import type { AddDamageReportImagesDto, AddDamageReportImagesResultDto, CreateDamageReportDto, DamageReportDto, DamageReportsControllerListV1Params, PaginatedDamageReportsDto } from '../index.schemas.js';
9
- /**
10
- * 🔒 Requires permission: damagereport:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
11
- * @summary List damage reports visible to the caller (RLS-scoped)
12
- */
9
+ import { customFetch } from '../../mutator.js';
13
10
  export type damageReportsControllerListV1Response200 = {
14
11
  data: PaginatedDamageReportsDto;
15
12
  status: 200;
@@ -19,11 +16,11 @@ export type damageReportsControllerListV1ResponseSuccess = (damageReportsControl
19
16
  };
20
17
  export type damageReportsControllerListV1Response = (damageReportsControllerListV1ResponseSuccess);
21
18
  export declare const getDamageReportsControllerListV1Url: (params?: DamageReportsControllerListV1Params) => string;
22
- export declare const damageReportsControllerListV1: (params?: DamageReportsControllerListV1Params, options?: RequestInit) => Promise<damageReportsControllerListV1Response>;
23
19
  /**
24
- * 🔒 Requires permission: damagereport:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
25
- * @summary Save a standalone damage report (+ images, item.condition) for an existing item
20
+ * 🔒 Requires permission: damagereport:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
21
+ * @summary List damage reports visible to the caller (RLS-scoped)
26
22
  */
23
+ export declare const damageReportsControllerListV1: (params?: DamageReportsControllerListV1Params, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerListV1Response>;
27
24
  export type damageReportsControllerCreateV1Response201 = {
28
25
  data: DamageReportDto;
29
26
  status: 201;
@@ -33,11 +30,11 @@ export type damageReportsControllerCreateV1ResponseSuccess = (damageReportsContr
33
30
  };
34
31
  export type damageReportsControllerCreateV1Response = (damageReportsControllerCreateV1ResponseSuccess);
35
32
  export declare const getDamageReportsControllerCreateV1Url: () => string;
36
- export declare const damageReportsControllerCreateV1: (createDamageReportDto: CreateDamageReportDto, options?: RequestInit) => Promise<damageReportsControllerCreateV1Response>;
37
33
  /**
38
- * 🔒 Requires permission: damagereport:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
39
- * @summary Get one damage report
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
40
36
  */
37
+ export declare const damageReportsControllerCreateV1: (createDamageReportDto: CreateDamageReportDto, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerCreateV1Response>;
41
38
  export type damageReportsControllerGetByIdV1Response200 = {
42
39
  data: DamageReportDto;
43
40
  status: 200;
@@ -47,11 +44,11 @@ export type damageReportsControllerGetByIdV1ResponseSuccess = (damageReportsCont
47
44
  };
48
45
  export type damageReportsControllerGetByIdV1Response = (damageReportsControllerGetByIdV1ResponseSuccess);
49
46
  export declare const getDamageReportsControllerGetByIdV1Url: (id: string) => string;
50
- export declare const damageReportsControllerGetByIdV1: (id: string, options?: RequestInit) => Promise<damageReportsControllerGetByIdV1Response>;
51
47
  /**
52
- * 🔒 Requires permission: damagereport:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
53
- * @summary Soft-delete a damage report + its images
48
+ * 🔒 Requires permission: damagereport:read. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
49
+ * @summary Get one damage report
54
50
  */
51
+ export declare const damageReportsControllerGetByIdV1: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerGetByIdV1Response>;
55
52
  export type damageReportsControllerRemoveV1Response204 = {
56
53
  data: void;
57
54
  status: 204;
@@ -61,11 +58,11 @@ export type damageReportsControllerRemoveV1ResponseSuccess = (damageReportsContr
61
58
  };
62
59
  export type damageReportsControllerRemoveV1Response = (damageReportsControllerRemoveV1ResponseSuccess);
63
60
  export declare const getDamageReportsControllerRemoveV1Url: (id: string) => string;
64
- export declare const damageReportsControllerRemoveV1: (id: string, options?: RequestInit) => Promise<damageReportsControllerRemoveV1Response>;
65
61
  /**
66
62
  * 🔒 Requires permission: damagereport:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
67
- * @summary Attach a batch of images to an existing damage report (all-or-none)
63
+ * @summary Soft-delete a damage report + its images
68
64
  */
65
+ export declare const damageReportsControllerRemoveV1: (id: string, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerRemoveV1Response>;
69
66
  export type damageReportsControllerAddImagesV1Response201 = {
70
67
  data: AddDamageReportImagesResultDto;
71
68
  status: 201;
@@ -75,11 +72,11 @@ export type damageReportsControllerAddImagesV1ResponseSuccess = (damageReportsCo
75
72
  };
76
73
  export type damageReportsControllerAddImagesV1Response = (damageReportsControllerAddImagesV1ResponseSuccess);
77
74
  export declare const getDamageReportsControllerAddImagesV1Url: (id: string) => string;
78
- export declare const damageReportsControllerAddImagesV1: (id: string, addDamageReportImagesDto: AddDamageReportImagesDto, options?: RequestInit) => Promise<damageReportsControllerAddImagesV1Response>;
79
75
  /**
80
76
  * 🔒 Requires permission: damagereport:write. Gate UI with hasRequiredPermissions() from @vindentech/api-client.
81
- * @summary Soft-delete one image from a damage report (keeps at least one)
77
+ * @summary Attach a batch of images to an existing damage report (all-or-none)
82
78
  */
79
+ export declare const damageReportsControllerAddImagesV1: (id: string, addDamageReportImagesDto: AddDamageReportImagesDto, options?: Parameters<typeof customFetch>[1]) => Promise<damageReportsControllerAddImagesV1Response>;
83
80
  export type damageReportsControllerDeleteImageV1Response204 = {
84
81
  data: void;
85
82
  status: 204;
@@ -89,5 +86,9 @@ export type damageReportsControllerDeleteImageV1ResponseSuccess = (damageReports
89
86
  };
90
87
  export type damageReportsControllerDeleteImageV1Response = (damageReportsControllerDeleteImageV1ResponseSuccess);
91
88
  export declare const getDamageReportsControllerDeleteImageV1Url: (id: string, imageId: string) => string;
92
- export declare const damageReportsControllerDeleteImageV1: (id: string, imageId: string, options?: RequestInit) => Promise<damageReportsControllerDeleteImageV1Response>;
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>;
93
94
  //# sourceMappingURL=damage-reports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"damage-reports.d.ts","sourceRoot":"","sources":["../../../src/generated/damage-reports/damage-reports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,wBAAwB,EACxB,8BAA8B,EAC9B,qBAAqB,EACrB,eAAe,EACf,mCAAmC,EACnC,yBAAyB,EAC1B,MAAM,qBAAq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