@myparcel-dev/pdk-admin 1.14.1 → 1.14.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (394) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/package.json +3 -3
  3. package/dist/__tests__/doComponentTestSetup.d.ts +0 -2
  4. package/dist/__tests__/doComponentTestTeardown.d.ts +0 -1
  5. package/dist/__tests__/index.d.ts +0 -3
  6. package/dist/__tests__/mocks/index.d.ts +0 -14
  7. package/dist/__tests__/mocks/mockDefaultAccount.d.ts +0 -2
  8. package/dist/__tests__/mocks/mockDefaultAppConfig.d.ts +0 -2
  9. package/dist/__tests__/mocks/mockDefaultAppInfo.d.ts +0 -2
  10. package/dist/__tests__/mocks/mockDefaultCarriers.d.ts +0 -2
  11. package/dist/__tests__/mocks/mockDefaultConfig.d.ts +0 -2
  12. package/dist/__tests__/mocks/mockDefaultDynamicContext.d.ts +0 -2
  13. package/dist/__tests__/mocks/mockDefaultEndpoints.d.ts +0 -2
  14. package/dist/__tests__/mocks/mockDefaultGlobalContext.d.ts +0 -2
  15. package/dist/__tests__/mocks/mockDefaultLogger.d.ts +0 -1
  16. package/dist/__tests__/mocks/mockDefaultPlatform.d.ts +0 -2
  17. package/dist/__tests__/mocks/mockDefaultPluginSettings.d.ts +0 -2
  18. package/dist/__tests__/mocks/mockDefaultPrintOptionsView.d.ts +0 -2
  19. package/dist/__tests__/mocks/mockDefaultShop.d.ts +0 -2
  20. package/dist/__tests__/mocks/mockDefaultTranslations.d.ts +0 -2
  21. package/dist/actions/composables/index.d.ts +0 -2
  22. package/dist/actions/composables/mutations/account/index.d.ts +0 -2
  23. package/dist/actions/composables/mutations/account/useDeleteAccountMutation.d.ts +0 -3
  24. package/dist/actions/composables/mutations/account/useUpdateAccountMutation.d.ts +0 -3
  25. package/dist/actions/composables/mutations/debug/index.d.ts +0 -3
  26. package/dist/actions/composables/mutations/debug/useDownloadLogsMutation.d.ts +0 -3
  27. package/dist/actions/composables/mutations/debug/useSwitchToAcceptanceApiMutation.d.ts +0 -3
  28. package/dist/actions/composables/mutations/debug/useSwitchToProductionApiMutation.d.ts +0 -3
  29. package/dist/actions/composables/mutations/index.d.ts +0 -7
  30. package/dist/actions/composables/mutations/orders/index.d.ts +0 -3
  31. package/dist/actions/composables/mutations/orders/useExportOrdersMutation.d.ts +0 -5
  32. package/dist/actions/composables/mutations/orders/usePrintOrdersMutation.d.ts +0 -4
  33. package/dist/actions/composables/mutations/orders/useUpdateOrdersMutation.d.ts +0 -4
  34. package/dist/actions/composables/mutations/settings/index.d.ts +0 -2
  35. package/dist/actions/composables/mutations/settings/useUpdatePluginSettingsMutation.d.ts +0 -3
  36. package/dist/actions/composables/mutations/settings/useUpdateProductSettingsMutation.d.ts +0 -3
  37. package/dist/actions/composables/mutations/shipments/index.d.ts +0 -4
  38. package/dist/actions/composables/mutations/shipments/useDeleteShipmentsMutation.d.ts +0 -4
  39. package/dist/actions/composables/mutations/shipments/useExportReturnMutation.d.ts +0 -4
  40. package/dist/actions/composables/mutations/shipments/usePrintShipmentsMutation.d.ts +0 -4
  41. package/dist/actions/composables/mutations/shipments/useUpdateShipmentsMutation.d.ts +0 -4
  42. package/dist/actions/composables/mutations/usePdkMutation.d.ts +0 -15
  43. package/dist/actions/composables/mutations/webhooks/index.d.ts +0 -2
  44. package/dist/actions/composables/mutations/webhooks/useCreateWebhooksMutation.d.ts +0 -1
  45. package/dist/actions/composables/mutations/webhooks/useDeleteWebhooksMutation.d.ts +0 -3
  46. package/dist/actions/composables/queries/account/index.d.ts +0 -1
  47. package/dist/actions/composables/queries/account/useFetchContextQuery.d.ts +0 -3
  48. package/dist/actions/composables/queries/index.d.ts +0 -6
  49. package/dist/actions/composables/queries/orders/index.d.ts +0 -1
  50. package/dist/actions/composables/queries/orders/useFetchOrdersQuery.d.ts +0 -3
  51. package/dist/actions/composables/queries/products/index.d.ts +0 -1
  52. package/dist/actions/composables/queries/products/useFetchProductsQuery.d.ts +0 -3
  53. package/dist/actions/composables/queries/queryKeys.d.ts +0 -2
  54. package/dist/actions/composables/queries/shipments/index.d.ts +0 -1
  55. package/dist/actions/composables/queries/shipments/useFetchShipmentsQuery.d.ts +0 -4
  56. package/dist/actions/composables/queries/webhooks/index.d.ts +0 -1
  57. package/dist/actions/composables/queries/webhooks/useFetchWebhooksQuery.d.ts +0 -3
  58. package/dist/actions/defineAction.d.ts +0 -8
  59. package/dist/actions/definitions/account.d.ts +0 -13
  60. package/dist/actions/definitions/context.d.ts +0 -6
  61. package/dist/actions/definitions/debug.d.ts +0 -13
  62. package/dist/actions/definitions/index.d.ts +0 -8
  63. package/dist/actions/definitions/modal.d.ts +0 -17
  64. package/dist/actions/definitions/orders.d.ts +0 -38
  65. package/dist/actions/definitions/settings.d.ts +0 -2
  66. package/dist/actions/definitions/shipments.d.ts +0 -15
  67. package/dist/actions/definitions/webhooks.d.ts +0 -4
  68. package/dist/actions/executors/createHandlerWithParameters.d.ts +0 -5
  69. package/dist/actions/executors/createMutationHandler.d.ts +0 -3
  70. package/dist/actions/executors/createOrdersMutationHandler.d.ts +0 -2
  71. package/dist/actions/executors/createQueryHandler.d.ts +0 -3
  72. package/dist/actions/executors/createShipmentsMutationHandler.d.ts +0 -2
  73. package/dist/actions/executors/doMutate.d.ts +0 -4
  74. package/dist/actions/executors/executeAction.d.ts +0 -6
  75. package/dist/actions/executors/executeAfterHandle.d.ts +0 -3
  76. package/dist/actions/executors/executeBeforeHandle.d.ts +0 -4
  77. package/dist/actions/executors/executeHandler.d.ts +0 -3
  78. package/dist/actions/executors/executeNextAction.d.ts +0 -6
  79. package/dist/actions/executors/index.d.ts +0 -14
  80. package/dist/actions/executors/resolveOrderParameters.d.ts +0 -3
  81. package/dist/actions/executors/resolveQuerySuffix.d.ts +0 -3
  82. package/dist/actions/executors/types.d.ts +0 -19
  83. package/dist/actions/index.d.ts +0 -6
  84. package/dist/actions/print/index.d.ts +0 -3
  85. package/dist/actions/print/openOrPrintPdf.d.ts +0 -3
  86. package/dist/actions/print/resolvePrintParameters.d.ts +0 -3
  87. package/dist/actions/print/waitForLabelPrompt.d.ts +0 -3
  88. package/dist/actions/stopActionHandler.d.ts +0 -2
  89. package/dist/components/OrderBox/OrderShipmentsTable.vue.d.ts +0 -6
  90. package/dist/components/OrderBox/OrderShipmentsTableRow.vue.d.ts +0 -21
  91. package/dist/components/OrderBox/ShipmentOptionsBox.vue.d.ts +0 -2
  92. package/dist/components/OrderBox/ShipmentTableBox.vue.d.ts +0 -2
  93. package/dist/components/OrderListItem/OrderModeOrderListItem.vue.d.ts +0 -2
  94. package/dist/components/OrderListItem/ShipmentLabel.vue.d.ts +0 -15
  95. package/dist/components/OrderListItem/ShipmentModeOrderListItem.vue.d.ts +0 -2
  96. package/dist/components/PluginSettings/AccountSettings.vue.d.ts +0 -2
  97. package/dist/components/PluginSettings/DebugOptions.vue.d.ts +0 -2
  98. package/dist/components/PluginSettings/EditApiKeyForm.vue.d.ts +0 -7
  99. package/dist/components/PluginSettings/PluginSettingsForms.vue.d.ts +0 -2
  100. package/dist/components/PluginSettings/WebhooksStatus.vue.d.ts +0 -2
  101. package/dist/components/PluginSettings/createUpdateAccountSettingsValidator.d.ts +0 -4
  102. package/dist/components/common/ActionButton.vue.d.ts +0 -52
  103. package/dist/components/common/BulkSelectCheckbox.vue.d.ts +0 -22
  104. package/dist/components/common/CarrierLogo.vue.d.ts +0 -16
  105. package/dist/components/common/DateRelative.vue.d.ts +0 -16
  106. package/dist/components/common/DeliveryOptionsDeliveryType.vue.d.ts +0 -16
  107. package/dist/components/common/DeliveryOptionsExcerpt.vue.d.ts +0 -2
  108. package/dist/components/common/DeliveryOptionsExcerptCarrierName.vue.d.ts +0 -16
  109. package/dist/components/common/DeliveryOptionsPackageType.vue.d.ts +0 -16
  110. package/dist/components/common/DigitalStampWeightRange.vue.d.ts +0 -15
  111. package/dist/components/common/NotificationContainer.vue.d.ts +0 -19
  112. package/dist/components/common/PackageType.vue.d.ts +0 -16
  113. package/dist/components/common/PlainElement.d.ts +0 -2
  114. package/dist/components/common/ResetButton.vue.d.ts +0 -15
  115. package/dist/components/common/ReturnsForm.vue.d.ts +0 -14
  116. package/dist/components/common/ShipmentBarcode.vue.d.ts +0 -15
  117. package/dist/components/common/ShipmentOptionsForm.vue.d.ts +0 -16
  118. package/dist/components/common/ShipmentStatus.vue.d.ts +0 -15
  119. package/dist/components/common/StatusIndicator.vue.d.ts +0 -23
  120. package/dist/components/common/SubmitButton.vue.d.ts +0 -15
  121. package/dist/components/common/TabNavigation.vue.d.ts +0 -66
  122. package/dist/components/common/index.d.ts +0 -20
  123. package/dist/components/index.d.ts +0 -1
  124. package/dist/components/modals/PrintOptionsModal.vue.d.ts +0 -2
  125. package/dist/components/modals/PrintOptionsModalForm.vue.d.ts +0 -2
  126. package/dist/components/modals/ShipmentOptionsModal.vue.d.ts +0 -2
  127. package/dist/components/modals/ShipmentOptionsModalForm.vue.d.ts +0 -16
  128. package/dist/composables/components/index.d.ts +0 -15
  129. package/dist/composables/components/useBulkSelectCheckbox.d.ts +0 -9
  130. package/dist/composables/components/useCheckboxGroupContext.d.ts +0 -4
  131. package/dist/composables/components/useDropOffInputContext.d.ts +0 -13
  132. package/dist/composables/components/useDropdownButtonContext.d.ts +0 -15
  133. package/dist/composables/components/useElementContext.d.ts +0 -7
  134. package/dist/composables/components/useElementOptions.d.ts +0 -6
  135. package/dist/composables/components/useInputWithOptionsContext.d.ts +0 -10
  136. package/dist/composables/components/useModalElementContext.d.ts +0 -11
  137. package/dist/composables/components/useMultiSelectInputContext.d.ts +0 -4
  138. package/dist/composables/components/useRadioGroupContext.d.ts +0 -10
  139. package/dist/composables/components/useSelectInputContext.d.ts +0 -4
  140. package/dist/composables/components/useShippingMethodsInputContext.d.ts +0 -13
  141. package/dist/composables/components/useTableContext.d.ts +0 -7
  142. package/dist/composables/components/useToggleInputContext.d.ts +0 -11
  143. package/dist/composables/components/useTriStateInputContext.d.ts +0 -17
  144. package/dist/composables/context/index.d.ts +0 -7
  145. package/dist/composables/context/useAppInfo.d.ts +0 -2
  146. package/dist/composables/context/useContext.d.ts +0 -3
  147. package/dist/composables/context/useGlobalContext.d.ts +0 -2
  148. package/dist/composables/context/useInstanceContext.d.ts +0 -8
  149. package/dist/composables/context/useModalContext.d.ts +0 -11
  150. package/dist/composables/context/useModalOrder.d.ts +0 -1
  151. package/dist/composables/context/usePluginSettings.d.ts +0 -2
  152. package/dist/composables/formatter/default/createCurrencyFormat.d.ts +0 -1
  153. package/dist/composables/formatter/default/createLongDateFormat.d.ts +0 -1
  154. package/dist/composables/formatter/default/createRelativeTimeFormat.d.ts +0 -1
  155. package/dist/composables/formatter/default/defaultCurrencyFormatters.d.ts +0 -2
  156. package/dist/composables/formatter/default/defaultDateFormatters.d.ts +0 -4
  157. package/dist/composables/formatter/default/index.d.ts +0 -6
  158. package/dist/composables/formatter/default/parseDate.d.ts +0 -1
  159. package/dist/composables/formatter/formatter.types.d.ts +0 -23
  160. package/dist/composables/formatter/index.d.ts +0 -4
  161. package/dist/composables/formatter/useFormatter.d.ts +0 -2
  162. package/dist/composables/formatter/useLocalizedFormatter.d.ts +0 -2
  163. package/dist/composables/index.d.ts +0 -17
  164. package/dist/composables/language/index.d.ts +0 -4
  165. package/dist/composables/language/resolveTranslatedString.d.ts +0 -3
  166. package/dist/composables/language/resolveTranslationKey.d.ts +0 -2
  167. package/dist/composables/language/types.d.ts +0 -1
  168. package/dist/composables/language/useLanguage.d.ts +0 -23
  169. package/dist/composables/orders/index.d.ts +0 -3
  170. package/dist/composables/orders/useOrder.d.ts +0 -3
  171. package/dist/composables/orders/useOrderData.d.ts +0 -9
  172. package/dist/composables/orders/useOrdersData.d.ts +0 -3
  173. package/dist/composables/products/index.d.ts +0 -1
  174. package/dist/composables/products/useProductData.d.ts +0 -8
  175. package/dist/composables/shipments/index.d.ts +0 -3
  176. package/dist/composables/shipments/useShipment.d.ts +0 -3
  177. package/dist/composables/shipments/useShipmentData.d.ts +0 -12
  178. package/dist/composables/shipments/useShipmentsData.d.ts +0 -2
  179. package/dist/composables/useAdminConfig.d.ts +0 -2
  180. package/dist/composables/useAdminInstance.d.ts +0 -2
  181. package/dist/composables/useDigitalStampRanges.d.ts +0 -12
  182. package/dist/composables/useGlobalPdkAdmin.d.ts +0 -2
  183. package/dist/composables/useLoadMore.d.ts +0 -14
  184. package/dist/composables/useLoading.d.ts +0 -10
  185. package/dist/composables/useLogger.d.ts +0 -2
  186. package/dist/composables/useStoreContextQuery.d.ts +0 -3
  187. package/dist/composables/useStoreQuery.d.ts +0 -4
  188. package/dist/composables/useWeekdays.d.ts +0 -9
  189. package/dist/data/components.d.ts +0 -195
  190. package/dist/data/constants.d.ts +0 -63
  191. package/dist/data/endpoints.d.ts +0 -5
  192. package/dist/data/index.d.ts +0 -4
  193. package/dist/data/view.d.ts +0 -9
  194. package/dist/deprecated.d.ts +0 -6
  195. package/dist/forms/createReturnsForm.d.ts +0 -1
  196. package/dist/forms/form-builder/builders/buildAfterUpdate.d.ts +0 -3
  197. package/dist/forms/form-builder/builders/buildFormStateWatcher.d.ts +0 -3
  198. package/dist/forms/form-builder/builders/index.d.ts +0 -2
  199. package/dist/forms/form-builder/conditions/index.d.ts +0 -3
  200. package/dist/forms/form-builder/conditions/validateIfCondition.d.ts +0 -2
  201. package/dist/forms/form-builder/conditions/validateIfConditions.d.ts +0 -2
  202. package/dist/forms/form-builder/conditions/validateIsTruthy.d.ts +0 -2
  203. package/dist/forms/form-builder/index.d.ts +0 -5
  204. package/dist/forms/form-builder/operations/executeCustomOperationHandlers.d.ts +0 -2
  205. package/dist/forms/form-builder/operations/executeOperation.d.ts +0 -2
  206. package/dist/forms/form-builder/operations/executeOperations.d.ts +0 -2
  207. package/dist/forms/form-builder/operations/executeSetPropOperation.d.ts +0 -2
  208. package/dist/forms/form-builder/operations/executeSetValueOperation.d.ts +0 -2
  209. package/dist/forms/form-builder/operations/index.d.ts +0 -5
  210. package/dist/forms/form-builder/operations/parseBuilders.d.ts +0 -3
  211. package/dist/forms/form-builder/types/FormCondition.types.d.ts +0 -36
  212. package/dist/forms/form-builder/types/FormOperations.types.d.ts +0 -16
  213. package/dist/forms/form-builder/types/SubOperationBuilder.types.d.ts +0 -13
  214. package/dist/forms/form-builder/types/common.types.d.ts +0 -21
  215. package/dist/forms/form-builder/types/index.d.ts +0 -4
  216. package/dist/forms/form-builder/utils/createPropSetter.d.ts +0 -4
  217. package/dist/forms/form-builder/utils/createValueGetter.d.ts +0 -4
  218. package/dist/forms/form-builder/utils/createValueSetter.d.ts +0 -4
  219. package/dist/forms/form-builder/utils/index.d.ts +0 -4
  220. package/dist/forms/formKeys.d.ts +0 -10
  221. package/dist/forms/helpers/addBulkEditNotification.d.ts +0 -1
  222. package/dist/forms/helpers/createDefaultOption.d.ts +0 -3
  223. package/dist/forms/helpers/createHasShipmentOptionWatcher.d.ts +0 -3
  224. package/dist/forms/helpers/createLabel.d.ts +0 -1
  225. package/dist/forms/helpers/defineFormField.d.ts +0 -2
  226. package/dist/forms/helpers/getCarrier.d.ts +0 -3
  227. package/dist/forms/helpers/getDeliveryTypes.d.ts +0 -3
  228. package/dist/forms/helpers/getFieldLabel.d.ts +0 -2
  229. package/dist/forms/helpers/getFormCarrierName.d.ts +0 -2
  230. package/dist/forms/helpers/getInsuranceOptions.d.ts +0 -3
  231. package/dist/forms/helpers/getPackageTypes.d.ts +0 -3
  232. package/dist/forms/helpers/hasPostNlAgeCheck.d.ts +0 -2
  233. package/dist/forms/helpers/hasShipmentOption.d.ts +0 -3
  234. package/dist/forms/helpers/index.d.ts +0 -21
  235. package/dist/forms/helpers/isPackageTypeMailbox.d.ts +0 -2
  236. package/dist/forms/helpers/isPackageTypePackage.d.ts +0 -2
  237. package/dist/forms/helpers/isPackageTypePackageOrSmall.d.ts +0 -2
  238. package/dist/forms/helpers/isPackageTypeSmallPackage.d.ts +0 -2
  239. package/dist/forms/helpers/resolveFormComponent.d.ts +0 -3
  240. package/dist/forms/helpers/setFieldProp.d.ts +0 -8
  241. package/dist/forms/helpers/setPostNlAgeCheckSubtext.d.ts +0 -2
  242. package/dist/forms/helpers/triStateFieldIsEnabled.d.ts +0 -2
  243. package/dist/forms/helpers/updateFieldsDefaults.d.ts +0 -6
  244. package/dist/forms/index.d.ts +0 -6
  245. package/dist/forms/pluginSettings/createFormTab.d.ts +0 -3
  246. package/dist/forms/pluginSettings/createPluginSettingsForm.d.ts +0 -4
  247. package/dist/forms/pluginSettings/createPluginSettingsTabs.d.ts +0 -4
  248. package/dist/forms/pluginSettings/createPluginSettingsTabsComponent.d.ts +0 -4
  249. package/dist/forms/pluginSettings/generateFormFields.d.ts +0 -8
  250. package/dist/forms/pluginSettings/index.d.ts +0 -6
  251. package/dist/forms/pluginSettings/types.d.ts +0 -13
  252. package/dist/forms/shipmentOptions/createShipmentOptionsForm.d.ts +0 -4
  253. package/dist/forms/shipmentOptions/field.d.ts +0 -36
  254. package/dist/forms/shipmentOptions/fields/createAgeCheckField.d.ts +0 -3
  255. package/dist/forms/shipmentOptions/fields/createCarrierField.d.ts +0 -4
  256. package/dist/forms/shipmentOptions/fields/createDeliveryTypeField.d.ts +0 -3
  257. package/dist/forms/shipmentOptions/fields/createDigitalStampRangeField.d.ts +0 -4
  258. package/dist/forms/shipmentOptions/fields/createDirectReturnField.d.ts +0 -3
  259. package/dist/forms/shipmentOptions/fields/createHideSenderField.d.ts +0 -3
  260. package/dist/forms/shipmentOptions/fields/createInsuranceField.d.ts +0 -3
  261. package/dist/forms/shipmentOptions/fields/createLabelAmountField.d.ts +0 -3
  262. package/dist/forms/shipmentOptions/fields/createLargeFormatField.d.ts +0 -3
  263. package/dist/forms/shipmentOptions/fields/createOnlyRecipientField.d.ts +0 -3
  264. package/dist/forms/shipmentOptions/fields/createPackageTypeField.d.ts +0 -3
  265. package/dist/forms/shipmentOptions/fields/createPriorityDeliveryField.d.ts +0 -3
  266. package/dist/forms/shipmentOptions/fields/createReceiptCodeField.d.ts +0 -3
  267. package/dist/forms/shipmentOptions/fields/createRef.d.ts +0 -3
  268. package/dist/forms/shipmentOptions/fields/createSameDayDeliveryField.d.ts +0 -3
  269. package/dist/forms/shipmentOptions/fields/createShipmentOptionField.d.ts +0 -4
  270. package/dist/forms/shipmentOptions/fields/createSignatureField.d.ts +0 -3
  271. package/dist/forms/shipmentOptions/fields/index.d.ts +0 -15
  272. package/dist/forms/shipmentOptions/index.d.ts +0 -4
  273. package/dist/forms/shipmentOptions/types.d.ts +0 -2
  274. package/dist/index.d.ts +0 -19
  275. package/dist/pdk/PdkAdmin.d.ts +0 -18
  276. package/dist/pdk/boot.d.ts +0 -3
  277. package/dist/pdk/createAdminConfig.d.ts +0 -2
  278. package/dist/pdk/createPdkAdmin.d.ts +0 -8
  279. package/dist/pdk/createPdkAdminPlugin.d.ts +0 -3
  280. package/dist/pdk/fillShipmentsQueryData.d.ts +0 -4
  281. package/dist/pdk/index.d.ts +0 -11
  282. package/dist/pdk/instance/createInstanceContext.d.ts +0 -5
  283. package/dist/pdk/instance/createQueryClient.d.ts +0 -2
  284. package/dist/pdk/instance/index.d.ts +0 -3
  285. package/dist/pdk/instance/plugins/createContextPlugin.d.ts +0 -2
  286. package/dist/pdk/instance/plugins/createLoggerPlugin.d.ts +0 -2
  287. package/dist/pdk/instance/plugins/createRegisterComponentsPlugin.d.ts +0 -5
  288. package/dist/pdk/instance/plugins/createStorePlugin.d.ts +0 -2
  289. package/dist/pdk/instance/plugins/createVueQueryPlugin.d.ts +0 -5
  290. package/dist/pdk/instance/plugins/index.d.ts +0 -6
  291. package/dist/pdk/instance/plugins/plugins.types.d.ts +0 -3
  292. package/dist/pdk/renderMap.d.ts +0 -3
  293. package/dist/pdk/sendBootEvent.d.ts +0 -3
  294. package/dist/pdk/setupAdminApp.d.ts +0 -3
  295. package/dist/pdk/testIdDirective.d.ts +0 -5
  296. package/dist/sdk/PdkFetchClient.d.ts +0 -11
  297. package/dist/sdk/composables/api/index.d.ts +0 -1
  298. package/dist/sdk/composables/api/useFetchCarrier.d.ts +0 -2
  299. package/dist/sdk/composables/index.d.ts +0 -3
  300. package/dist/sdk/composables/useMyParcelApi.d.ts +0 -5
  301. package/dist/sdk/composables/usePdkAdminApi.d.ts +0 -6
  302. package/dist/sdk/endpoints/abstractPdkEndpoint.d.ts +0 -7
  303. package/dist/sdk/endpoints/index.d.ts +0 -1
  304. package/dist/sdk/index.d.ts +0 -3
  305. package/dist/services/actions/createAction.d.ts +0 -4
  306. package/dist/services/actions/createActionContext.d.ts +0 -3
  307. package/dist/services/actions/downloadFile.d.ts +0 -4
  308. package/dist/services/actions/getActionIdentifier.d.ts +0 -2
  309. package/dist/services/actions/index.d.ts +0 -4
  310. package/dist/services/addErrorToNotifications.d.ts +0 -2
  311. package/dist/services/context/getElementContext.d.ts +0 -2
  312. package/dist/services/context/index.d.ts +0 -1
  313. package/dist/services/createNotification.d.ts +0 -5
  314. package/dist/services/index.d.ts +0 -9
  315. package/dist/services/instantiateAction.d.ts +0 -2
  316. package/dist/services/instantiateActions.d.ts +0 -8
  317. package/dist/services/logger.d.ts +0 -19
  318. package/dist/services/mutations/getCallbackForMutationMode.d.ts +0 -4
  319. package/dist/services/mutations/getModalMutationOptions.d.ts +0 -2
  320. package/dist/services/mutations/index.d.ts +0 -3
  321. package/dist/services/mutations/mutationMode.d.ts +0 -4
  322. package/dist/services/print/index.d.ts +0 -1
  323. package/dist/services/print/openPdfInNewWindow.d.ts +0 -4
  324. package/dist/stores/createQueryCacheKey.d.ts +0 -3
  325. package/dist/stores/index.d.ts +0 -6
  326. package/dist/stores/types.d.ts +0 -13
  327. package/dist/stores/useActionStore.d.ts +0 -25
  328. package/dist/stores/useModalStore.d.ts +0 -16
  329. package/dist/stores/useNotificationStore.d.ts +0 -60
  330. package/dist/stores/useQueryStore.d.ts +0 -77
  331. package/dist/symbols.d.ts +0 -5
  332. package/dist/testing.d.ts +0 -1
  333. package/dist/types/actions/actions.types.d.ts +0 -31
  334. package/dist/types/actions/endpoints.types.d.ts +0 -9
  335. package/dist/types/actions/index.d.ts +0 -4
  336. package/dist/types/actions/parameters.types.d.ts +0 -55
  337. package/dist/types/actions/response.types.d.ts +0 -7
  338. package/dist/types/actions.types.d.ts +0 -45
  339. package/dist/types/admin.types.d.ts +0 -26
  340. package/dist/types/common.types.d.ts +0 -53
  341. package/dist/types/components-form.types.d.ts +0 -107
  342. package/dist/types/components.types.d.ts +0 -273
  343. package/dist/types/configuration.types.d.ts +0 -95
  344. package/dist/types/context.types.d.ts +0 -20
  345. package/dist/types/endpoints.types.d.ts +0 -7
  346. package/dist/types/form.types.d.ts +0 -39
  347. package/dist/types/index.d.ts +0 -12
  348. package/dist/types/language.types.d.ts +0 -9
  349. package/dist/types/sdk.types.d.ts +0 -155
  350. package/dist/utils/booleanToTriState.d.ts +0 -2
  351. package/dist/utils/convertDotNotationToObject.d.ts +0 -1
  352. package/dist/utils/createAssetUrl.d.ts +0 -1
  353. package/dist/utils/createClasses.d.ts +0 -8
  354. package/dist/utils/createObjectWithKeys.d.ts +0 -3
  355. package/dist/utils/decodeHtmlEntities.d.ts +0 -7
  356. package/dist/utils/downloadBlob.d.ts +0 -1
  357. package/dist/utils/downloadFileFromUrl.d.ts +0 -1
  358. package/dist/utils/encodeArrayParameter.d.ts +0 -2
  359. package/dist/utils/extendAdminInstance.d.ts +0 -2
  360. package/dist/utils/fakeLinkClick.d.ts +0 -4
  361. package/dist/utils/forms/createFormElement.d.ts +0 -3
  362. package/dist/utils/forms/createShipmentFormName.d.ts +0 -1
  363. package/dist/utils/forms/formToBody.d.ts +0 -2
  364. package/dist/utils/forms/generateFieldId.d.ts +0 -3
  365. package/dist/utils/forms/index.d.ts +0 -4
  366. package/dist/utils/generateLabelFilename.d.ts +0 -3
  367. package/dist/utils/getOrderId.d.ts +0 -3
  368. package/dist/utils/getOrderShipmentIds.d.ts +0 -2
  369. package/dist/utils/index.d.ts +0 -22
  370. package/dist/utils/openUrlInNewTab.d.ts +0 -1
  371. package/dist/utils/prefixComponent.d.ts +0 -3
  372. package/dist/utils/query/index.d.ts +0 -3
  373. package/dist/utils/query/setQueryData.d.ts +0 -2
  374. package/dist/utils/query/setQueryOrder.d.ts +0 -10
  375. package/dist/utils/query/setQueryShipment.d.ts +0 -3
  376. package/dist/utils/resolveCarrier.d.ts +0 -1
  377. package/dist/utils/translations/getDeliveryTypeTranslation.d.ts +0 -2
  378. package/dist/utils/translations/getDynamicTranslation.d.ts +0 -1
  379. package/dist/utils/translations/getPackageTypeTranslation.d.ts +0 -2
  380. package/dist/utils/translations/index.d.ts +0 -4
  381. package/dist/utils/translations/translateSelectOption.d.ts +0 -3
  382. package/dist/utils/triStateToBoolean.d.ts +0 -2
  383. package/dist/utils/unprefixComponent.d.ts +0 -3
  384. package/dist/utils/validateId.d.ts +0 -2
  385. package/dist/views/ChildProductSettings.vue.d.ts +0 -2
  386. package/dist/views/Modals.vue.d.ts +0 -2
  387. package/dist/views/Notifications.vue.d.ts +0 -2
  388. package/dist/views/OrderBox.vue.d.ts +0 -2
  389. package/dist/views/OrderListItem.vue.d.ts +0 -2
  390. package/dist/views/PluginSettings.vue.d.ts +0 -2
  391. package/dist/views/ProductSettings.vue.d.ts +0 -35
  392. package/dist/views/integrated/OrderBoxView.vue.d.ts +0 -12
  393. package/dist/views/integrated/OrderListItemView.vue.d.ts +0 -12
  394. package/dist/views/integrated/index.d.ts +0 -7
@@ -1,13 +0,0 @@
1
- import { type UseMutationReturnType, type UseQueryReturnType } from '@tanstack/vue-query';
2
- import { type AdminContextKey, type BackendEndpoint } from '@myparcel-dev/pdk-common';
3
- import { type ApiException } from '@myparcel-dev/sdk';
4
- import { type ActionInput, type AdminContext, type BackendEndpointResponse, type BackendMutationEndpoints, type BackendQueryEndpoints } from '../types';
5
- import { type QueryModifier } from '../actions';
6
- type EndpointQuery<E extends BackendEndpoint> = E extends BackendMutationEndpoints ? UseMutationReturnType<BackendEndpointResponse<E>, ApiException, ActionInput<E>, unknown> : E extends BackendQueryEndpoints ? UseQueryReturnType<BackendEndpointResponse<E>, ApiException> : never;
7
- export type ContextQuery<C extends AdminContextKey = AdminContextKey.Dynamic> = UseQueryReturnType<AdminContext<C>, ApiException>;
8
- export type ResolvedQuery<E extends BackendEndpoint = BackendEndpoint> = E extends BackendEndpoint ? EndpointQuery<E> : never;
9
- export type RegisterQuery = {
10
- <E extends BackendEndpoint, Q extends ResolvedQuery<E> = ResolvedQuery<E>>(endpoint: E, query: Q, arg3?: never): Q;
11
- <E extends BackendEndpoint, Q extends ResolvedQuery<E> = ResolvedQuery<E>>(endpoint: E, modifier: QueryModifier<E>, query: Q): Q;
12
- };
13
- export {};
@@ -1,25 +0,0 @@
1
- import { type OneOrMore, type PromiseOr } from '@myparcel-dev/ts-utils';
2
- import { type ActionParameters, type AnyActionDefinition, type ResolvedAction } from '../types';
3
- import { type AdminAction } from '../data';
4
- export declare const useActionStore: import("pinia").StoreDefinition<"actions", import("pinia")._UnwrapAll<Pick<{
5
- get: (action: string | AdminAction) => ResolvedAction | undefined;
6
- register: (action: OneOrMore<AnyActionDefinition>) => void;
7
- dispatch: <A extends string>(action: A, parameters?: ActionParameters<A>) => PromiseOr<void>;
8
- registerOrderActions: () => void;
9
- registerModalActions: () => void;
10
- registerWebhookActions: () => void;
11
- }, never>>, Pick<{
12
- get: (action: string | AdminAction) => ResolvedAction | undefined;
13
- register: (action: OneOrMore<AnyActionDefinition>) => void;
14
- dispatch: <A extends string>(action: A, parameters?: ActionParameters<A>) => PromiseOr<void>;
15
- registerOrderActions: () => void;
16
- registerModalActions: () => void;
17
- registerWebhookActions: () => void;
18
- }, never>, Pick<{
19
- get: (action: string | AdminAction) => ResolvedAction | undefined;
20
- register: (action: OneOrMore<AnyActionDefinition>) => void;
21
- dispatch: <A extends string>(action: A, parameters?: ActionParameters<A>) => PromiseOr<void>;
22
- registerOrderActions: () => void;
23
- registerModalActions: () => void;
24
- registerWebhookActions: () => void;
25
- }, "get" | "register" | "dispatch" | "registerOrderActions" | "registerModalActions" | "registerWebhookActions">>;
@@ -1,16 +0,0 @@
1
- import { type Ref, type UnwrapNestedRefs } from 'vue';
2
- import { type AdminModalContext } from '../types';
3
- import { type AdminModalKey } from '../data';
4
- type ModalOpenFn = <K extends AdminModalKey>(modal: K, context?: AdminModalContext<K>) => void;
5
- type ModalCloseFn = <K extends AdminModalKey>(modal: K) => void;
6
- type ModalStore = {
7
- loading: Ref<boolean>;
8
- opened: Ref<AdminModalKey | null>;
9
- context: Ref<UnwrapNestedRefs<AdminModalContext>>;
10
- onOpen(callback: ModalOpenFn): void;
11
- onClose(callback: ModalCloseFn): void;
12
- open<K extends AdminModalKey>(modal: K, newContext?: AdminModalContext<K>): void;
13
- close(): void;
14
- };
15
- export declare const useModalStore: import("pinia").StoreDefinition<"modal", import("pinia")._UnwrapAll<Pick<ModalStore, "context" | "loading" | "opened">>, Pick<ModalStore, never>, Pick<ModalStore, "open" | "close" | "onOpen" | "onClose">>;
16
- export {};
@@ -1,60 +0,0 @@
1
- import { type NotificationId, type PdkNotification } from '../types';
2
- import { NotificationSource } from '../data';
3
- export declare const useNotificationStore: import("pinia").StoreDefinition<"notifications", import("pinia")._UnwrapAll<Pick<{
4
- notifications: import("vue").Ref<{
5
- category?: import("../data").NotificationCategory | undefined;
6
- content?: import("@myparcel-dev/ts-utils").OneOrMore<string> | undefined;
7
- dismissible: boolean;
8
- id: string | number;
9
- tags?: Record<string, string> | undefined;
10
- timeout: number | boolean;
11
- title?: string | undefined;
12
- variant: import("@myparcel-dev/pdk-common").Variant;
13
- }[]>;
14
- /**
15
- * Add a notification to the store.
16
- */
17
- add(notification: PdkNotification, tags?: object | Record<string, string>): void;
18
- /**
19
- * Remove one or more notifications from the store by tag or id.
20
- */
21
- remove(input: NotificationId | NotificationSource): void;
22
- }, "notifications">>, Pick<{
23
- notifications: import("vue").Ref<{
24
- category?: import("../data").NotificationCategory | undefined;
25
- content?: import("@myparcel-dev/ts-utils").OneOrMore<string> | undefined;
26
- dismissible: boolean;
27
- id: string | number;
28
- tags?: Record<string, string> | undefined;
29
- timeout: number | boolean;
30
- title?: string | undefined;
31
- variant: import("@myparcel-dev/pdk-common").Variant;
32
- }[]>;
33
- /**
34
- * Add a notification to the store.
35
- */
36
- add(notification: PdkNotification, tags?: object | Record<string, string>): void;
37
- /**
38
- * Remove one or more notifications from the store by tag or id.
39
- */
40
- remove(input: NotificationId | NotificationSource): void;
41
- }, never>, Pick<{
42
- notifications: import("vue").Ref<{
43
- category?: import("../data").NotificationCategory | undefined;
44
- content?: import("@myparcel-dev/ts-utils").OneOrMore<string> | undefined;
45
- dismissible: boolean;
46
- id: string | number;
47
- tags?: Record<string, string> | undefined;
48
- timeout: number | boolean;
49
- title?: string | undefined;
50
- variant: import("@myparcel-dev/pdk-common").Variant;
51
- }[]>;
52
- /**
53
- * Add a notification to the store.
54
- */
55
- add(notification: PdkNotification, tags?: object | Record<string, string>): void;
56
- /**
57
- * Remove one or more notifications from the store by tag or id.
58
- */
59
- remove(input: NotificationId | NotificationSource): void;
60
- }, "add" | "remove">>;
@@ -1,77 +0,0 @@
1
- import { type ComputedRef } from 'vue';
2
- import { type MaybeRef } from '@vueuse/core';
3
- import { AdminContextKey, BackendEndpoint } from '@myparcel-dev/pdk-common';
4
- import { type OneOrMore } from '@myparcel-dev/ts-utils';
5
- import { MutationMode } from '../services';
6
- import { type PlainModifier } from '../actions';
7
- import { type RegisterQuery, type ResolvedQuery } from './types';
8
- export declare const useQueryStore: import("pinia").StoreDefinition<"query", import("pinia")._UnwrapAll<Pick<{
9
- get: <E extends BackendEndpoint>(endpoint: E, modifier?: PlainModifier) => ResolvedQuery<E>;
10
- has: <E_1 extends BackendEndpoint>(endpoint: E_1, modifier?: PlainModifier) => boolean;
11
- register: RegisterQuery;
12
- registerShipmentQueries: (shipmentIds: MaybeRef<OneOrMore<number>>, orderIds?: MaybeRef<OneOrMore<string>>) => void;
13
- /**
14
- * Register queries needed to render any order related component.
15
- */
16
- registerOrderQueries: (orderId?: string | undefined, mode?: MutationMode) => void;
17
- registerProductQueries: (productId?: string | undefined) => void;
18
- /**
19
- * Register context queries. Always includes global and dynamic context.
20
- */
21
- registerContextQueries: <C extends AdminContextKey.OrderData | AdminContextKey.PluginSettingsView | AdminContextKey.ProductData | AdminContextKey.ProductSettingsView | AdminContextKey.Instance>(...keys: C[]) => void;
22
- getQueriesForShipment(id: number): ComputedRef<Record<BackendEndpoint, ResolvedQuery>>;
23
- getQueriesForOrder(externalIdentifier: string): ComputedRef<Record<BackendEndpoint, ResolvedQuery>>;
24
- registerWebhookQueries: () => {
25
- fetchWebhooks: import("@tanstack/vue-query").UseQueryReturnType<import("..").WebhookDefinition[], import("@myparcel-dev/sdk").ApiException>;
26
- createWebhooks: import("@tanstack/vue-query").UseMutationReturnType<any, any, any, any>;
27
- deleteWebhooks: import("@tanstack/vue-query").UseMutationReturnType<import("..").WebhookDefinition[], import("@myparcel-dev/sdk").ApiException, {
28
- hooks: OneOrMore<string>;
29
- }, unknown>;
30
- };
31
- }, never>>, Pick<{
32
- get: <E extends BackendEndpoint>(endpoint: E, modifier?: PlainModifier) => ResolvedQuery<E>;
33
- has: <E_1 extends BackendEndpoint>(endpoint: E_1, modifier?: PlainModifier) => boolean;
34
- register: RegisterQuery;
35
- registerShipmentQueries: (shipmentIds: MaybeRef<OneOrMore<number>>, orderIds?: MaybeRef<OneOrMore<string>>) => void;
36
- /**
37
- * Register queries needed to render any order related component.
38
- */
39
- registerOrderQueries: (orderId?: string | undefined, mode?: MutationMode) => void;
40
- registerProductQueries: (productId?: string | undefined) => void;
41
- /**
42
- * Register context queries. Always includes global and dynamic context.
43
- */
44
- registerContextQueries: <C extends AdminContextKey.OrderData | AdminContextKey.PluginSettingsView | AdminContextKey.ProductData | AdminContextKey.ProductSettingsView | AdminContextKey.Instance>(...keys: C[]) => void;
45
- getQueriesForShipment(id: number): ComputedRef<Record<BackendEndpoint, ResolvedQuery>>;
46
- getQueriesForOrder(externalIdentifier: string): ComputedRef<Record<BackendEndpoint, ResolvedQuery>>;
47
- registerWebhookQueries: () => {
48
- fetchWebhooks: import("@tanstack/vue-query").UseQueryReturnType<import("..").WebhookDefinition[], import("@myparcel-dev/sdk").ApiException>;
49
- createWebhooks: import("@tanstack/vue-query").UseMutationReturnType<any, any, any, any>;
50
- deleteWebhooks: import("@tanstack/vue-query").UseMutationReturnType<import("..").WebhookDefinition[], import("@myparcel-dev/sdk").ApiException, {
51
- hooks: OneOrMore<string>;
52
- }, unknown>;
53
- };
54
- }, never>, Pick<{
55
- get: <E extends BackendEndpoint>(endpoint: E, modifier?: PlainModifier) => ResolvedQuery<E>;
56
- has: <E_1 extends BackendEndpoint>(endpoint: E_1, modifier?: PlainModifier) => boolean;
57
- register: RegisterQuery;
58
- registerShipmentQueries: (shipmentIds: MaybeRef<OneOrMore<number>>, orderIds?: MaybeRef<OneOrMore<string>>) => void;
59
- /**
60
- * Register queries needed to render any order related component.
61
- */
62
- registerOrderQueries: (orderId?: string | undefined, mode?: MutationMode) => void;
63
- registerProductQueries: (productId?: string | undefined) => void;
64
- /**
65
- * Register context queries. Always includes global and dynamic context.
66
- */
67
- registerContextQueries: <C extends AdminContextKey.OrderData | AdminContextKey.PluginSettingsView | AdminContextKey.ProductData | AdminContextKey.ProductSettingsView | AdminContextKey.Instance>(...keys: C[]) => void;
68
- getQueriesForShipment(id: number): ComputedRef<Record<BackendEndpoint, ResolvedQuery>>;
69
- getQueriesForOrder(externalIdentifier: string): ComputedRef<Record<BackendEndpoint, ResolvedQuery>>;
70
- registerWebhookQueries: () => {
71
- fetchWebhooks: import("@tanstack/vue-query").UseQueryReturnType<import("..").WebhookDefinition[], import("@myparcel-dev/sdk").ApiException>;
72
- createWebhooks: import("@tanstack/vue-query").UseMutationReturnType<any, any, any, any>;
73
- deleteWebhooks: import("@tanstack/vue-query").UseMutationReturnType<import("..").WebhookDefinition[], import("@myparcel-dev/sdk").ApiException, {
74
- hooks: OneOrMore<string>;
75
- }, unknown>;
76
- };
77
- }, "get" | "has" | "register" | "registerShipmentQueries" | "registerOrderQueries" | "registerProductQueries" | "registerContextQueries" | "getQueriesForShipment" | "getQueriesForOrder" | "registerWebhookQueries">>;
package/dist/symbols.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { type InjectionKey } from 'vue';
2
- import { type AdminInstance } from './types';
3
- import { type PdkAdmin } from './pdk';
4
- export declare const INJECT_ADMIN_INSTANCE: InjectionKey<AdminInstance>;
5
- export declare const INJECT_GLOBAL_PDK_ADMIN: InjectionKey<PdkAdmin>;
package/dist/testing.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './__tests__';
@@ -1,31 +0,0 @@
1
- import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
2
- import { type ReverseMap } from '@myparcel-dev/ts-utils';
3
- import { type AdminAction } from '../../data';
4
- export type MaybeAdminAction = AdminAction | undefined;
5
- export type PrintAction = AdminAction.ShipmentsPrint | AdminAction.OrdersPrint;
6
- export type OrderAction = AdminAction.OrdersEdit | AdminAction.OrdersExport | AdminAction.OrdersExportPrint | AdminAction.OrdersFetch | AdminAction.OrdersPrint | AdminAction.OrdersUpdate;
7
- export interface AdminActionEndpointMap extends Record<AdminAction, BackendEndpoint> {
8
- [AdminAction.AccountDelete]: BackendEndpoint.DeleteAccount;
9
- [AdminAction.AccountUpdate]: BackendEndpoint.UpdateAccount;
10
- [AdminAction.ContextFetch]: BackendEndpoint.FetchContext;
11
- [AdminAction.DownloadLogs]: BackendEndpoint.DownloadLogs;
12
- [AdminAction.SwitchToAcceptanceApi]: BackendEndpoint.SwitchToAcceptanceApi;
13
- [AdminAction.SwitchToProductionApi]: BackendEndpoint.SwitchToProductionApi;
14
- [AdminAction.OrdersEdit]: BackendEndpoint.UpdateOrders;
15
- [AdminAction.OrdersExportPrint]: BackendEndpoint.ExportOrders;
16
- [AdminAction.OrdersExport]: BackendEndpoint.ExportOrders;
17
- [AdminAction.OrdersFetch]: BackendEndpoint.FetchOrders;
18
- [AdminAction.OrdersPrint]: BackendEndpoint.PrintOrders;
19
- [AdminAction.OrdersUpdate]: BackendEndpoint.UpdateOrders;
20
- [AdminAction.PluginSettingsUpdate]: BackendEndpoint.UpdatePluginSettings;
21
- [AdminAction.ProductSettingsUpdate]: BackendEndpoint.UpdateProductSettings;
22
- [AdminAction.ShipmentsDelete]: BackendEndpoint.DeleteShipments;
23
- [AdminAction.ShipmentsExportReturn]: BackendEndpoint.ExportReturn;
24
- [AdminAction.ShipmentsFetch]: BackendEndpoint.FetchShipments;
25
- [AdminAction.ShipmentsPrint]: BackendEndpoint.PrintShipments;
26
- [AdminAction.ShipmentsUpdate]: BackendEndpoint.UpdateShipments;
27
- [AdminAction.WebhooksCreate]: BackendEndpoint.CreateWebhooks;
28
- [AdminAction.WebhooksDelete]: BackendEndpoint.DeleteWebhooks;
29
- [AdminAction.WebhooksFetch]: BackendEndpoint.FetchWebhooks;
30
- }
31
- export type EndpointAdminActionMap = ReverseMap<AdminActionEndpointMap>;
@@ -1,9 +0,0 @@
1
- import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
2
- /**
3
- * All backend endpoints that are mutations.
4
- */
5
- export type BackendMutationEndpoints = BackendEndpoint.CreateWebhooks | BackendEndpoint.DownloadLogs | BackendEndpoint.SwitchToAcceptanceApi | BackendEndpoint.SwitchToProductionApi | BackendEndpoint.DeleteAccount | BackendEndpoint.DeleteShipments | BackendEndpoint.DeleteWebhooks | BackendEndpoint.ExportOrders | BackendEndpoint.ExportReturn | BackendEndpoint.PrintOrders | BackendEndpoint.PrintShipments | BackendEndpoint.UpdateAccount | BackendEndpoint.UpdateOrders | BackendEndpoint.UpdatePluginSettings | BackendEndpoint.UpdateProductSettings | BackendEndpoint.UpdateShipments;
6
- /**
7
- * All backend endpoints that are queries.
8
- */
9
- export type BackendQueryEndpoints = BackendEndpoint.FetchContext | BackendEndpoint.FetchOrders | BackendEndpoint.FetchProducts | BackendEndpoint.FetchShipments | BackendEndpoint.FetchWebhooks;
@@ -1,4 +0,0 @@
1
- export * from './actions.types';
2
- export * from './endpoints.types';
3
- export * from './parameters.types';
4
- export * from './response.types';
@@ -1,55 +0,0 @@
1
- import { type AdminContextKey, type BackendEndpoint, type LabelFormat, type LabelOutput, type LabelPosition } from '@myparcel-dev/pdk-common';
2
- import { type FormInstance } from '@myparcel-dev/vue-form-builder';
3
- import { type OneOrMore } from '@myparcel-dev/ts-utils';
4
- import { type OrderIds, type ShipmentIds } from '../common.types';
5
- import { type AdminAction } from '../../data';
6
- import { type AdminActionEndpointMap, type MaybeAdminAction } from './actions.types';
7
- type LabelParameters = {
8
- output?: LabelOutput;
9
- format?: LabelFormat;
10
- position?: OneOrMore<LabelPosition>;
11
- };
12
- type OrderIdParameters = {
13
- orderIds?: OrderIds;
14
- };
15
- interface ShipmentIdParameters {
16
- shipmentIds?: ShipmentIds;
17
- }
18
- type FormParameters = {
19
- form: FormInstance;
20
- };
21
- type OptionalFormParameters = {
22
- form?: false | FormInstance;
23
- };
24
- type ProductIdParameters = {
25
- productIds?: OneOrMore<string>;
26
- };
27
- type HooksParameters = {
28
- hooks: OneOrMore<string>;
29
- };
30
- type ContextParameters = {
31
- context?: OneOrMore<AdminContextKey>;
32
- };
33
- export interface EndpointMutationInputMap extends Record<BackendEndpoint, object> {
34
- [BackendEndpoint.FetchContext]: ContextParameters;
35
- [BackendEndpoint.UpdateAccount]: OptionalFormParameters;
36
- [BackendEndpoint.ExportOrders]: OrderIdParameters & OptionalFormParameters;
37
- [BackendEndpoint.FetchOrders]: OrderIdParameters;
38
- [BackendEndpoint.PrintOrders]: OrderIdParameters & LabelParameters & OptionalFormParameters;
39
- [BackendEndpoint.UpdateOrders]: OrderIdParameters & FormParameters;
40
- [BackendEndpoint.DeleteShipments]: OrderIdParameters & ShipmentIdParameters;
41
- [BackendEndpoint.ExportReturn]: OrderIdParameters & ShipmentIdParameters;
42
- [BackendEndpoint.FetchShipments]: OrderIdParameters & ShipmentIdParameters;
43
- [BackendEndpoint.UpdateShipments]: OrderIdParameters & ShipmentIdParameters;
44
- [BackendEndpoint.PrintShipments]: OrderIdParameters & ShipmentIdParameters & OptionalFormParameters & LabelParameters;
45
- [BackendEndpoint.FetchProducts]: ProductIdParameters;
46
- [BackendEndpoint.UpdatePluginSettings]: FormParameters;
47
- [BackendEndpoint.UpdateProductSettings]: ProductIdParameters & FormParameters;
48
- [BackendEndpoint.CreateWebhooks]: HooksParameters;
49
- [BackendEndpoint.DeleteWebhooks]: HooksParameters;
50
- [BackendEndpoint.FetchWebhooks]: never;
51
- }
52
- export type ActionInput<E extends BackendEndpoint> = EndpointMutationInputMap[E];
53
- export type ActionParameters<A extends string | MaybeAdminAction> = A extends AdminAction ? ActionInput<AdminActionEndpointMap[A]> : object;
54
- export type MaybeActionParameters<A extends MaybeAdminAction> = ActionParameters<A> | void;
55
- export {};
@@ -1,7 +0,0 @@
1
- import { type BackendEndpoint, type PdkEndpointResponse } from '@myparcel-dev/pdk-common';
2
- import { type BackendEndpointDefinition } from '../sdk.types';
3
- import { type AdminAction } from '../../data';
4
- import { type AdminActionEndpointMap, type MaybeAdminAction } from './actions.types';
5
- export type BackendEndpointResponse<E extends BackendEndpoint> = PdkEndpointResponse<E, BackendEndpointDefinition>;
6
- export type ActionResponse<A extends MaybeAdminAction> = A extends AdminAction ? BackendEndpointResponse<AdminActionEndpointMap[A]> : void;
7
- export type MaybeActionResponse<A extends MaybeAdminAction> = ActionResponse<A> | void;
@@ -1,45 +0,0 @@
1
- import { type MaybeRef } from '@vueuse/core';
2
- import { type Variant } from '@myparcel-dev/pdk-common';
3
- import { type OneOrMore, type PromiseOr } from '@myparcel-dev/ts-utils';
4
- import { type AdminAction, type AdminIcon } from '../data';
5
- import { type ActionContext, type ActionContextWithResponse, type QueryHandler } from '../actions';
6
- import { type Translation } from './language.types';
7
- import { type ActionParameters, type ActionResponse, type AdminActionEndpointMap, type MaybeAdminAction } from './actions';
8
- interface BaseActionDefinition {
9
- disabled?: MaybeRef<boolean>;
10
- icon?: AdminIcon;
11
- label?: Translation;
12
- notifications?: OneOrMore<Variant>;
13
- standalone?: boolean;
14
- variant?: MaybeRef<Variant | undefined>;
15
- afterHandle?(...args: unknown[]): PromiseOr<unknown>;
16
- beforeHandle?(...args: unknown[]): PromiseOr<unknown>;
17
- handler(...args: unknown[]): PromiseOr<unknown>;
18
- }
19
- export interface NamedActionDefinition<A extends AdminAction = AdminAction> extends BaseActionDefinition {
20
- name: A;
21
- afterHandle?(context: ActionContextWithResponse<A>): PromiseOr<ActionResponse<A>>;
22
- beforeHandle?(context: ActionContext<A>): PromiseOr<ActionParameters<A>>;
23
- handler: QueryHandler<AdminActionEndpointMap[A]>;
24
- }
25
- export interface GenericActionDefinition extends BaseActionDefinition {
26
- name?: never;
27
- id: string;
28
- afterHandle?(context: ActionContextWithResponse): PromiseOr<void>;
29
- beforeHandle?(context: ActionContext): PromiseOr<void>;
30
- handler(context: ActionContext): PromiseOr<void>;
31
- }
32
- export type AnyActionDefinition<A extends MaybeAdminAction = MaybeAdminAction> = A extends AdminAction ? NamedActionDefinition<A> : GenericActionDefinition;
33
- export type ActionDefinition<A extends MaybeAdminAction = MaybeAdminAction> = AnyActionDefinition<A> & {
34
- id: string;
35
- parameters?: ActionParameters<A>;
36
- };
37
- /**
38
- * The final action type that can be executed.
39
- */
40
- export type ResolvedAction = BaseActionDefinition & {
41
- id: string;
42
- standalone?: boolean;
43
- handler(parameters?: ActionParameters<AdminAction> | Record<string, unknown>): PromiseOr<void>;
44
- };
45
- export {};
@@ -1,26 +0,0 @@
1
- import { type Component } from 'vue';
2
- import { type PdkLogger } from '../services';
3
- import { type ADMIN_COMPONENT_PREFIX, type AdminComponent, type AdminView, type optionalAdminActionContainerComponentNames, type optionalAdminComponentNames, type optionalAdminPlainWrapperComponentNames, type requiredAdminComponentNames } from '../data';
4
- import { type AdminContextObject, type AdminInstanceContext } from './context.types';
5
- import { type AdminConfiguration } from './configuration.types';
6
- export type RequiredAdminComponentName = (typeof requiredAdminComponentNames)[number];
7
- export type OptionalAdminComponentName = (typeof optionalAdminComponentNames)[number] | (typeof optionalAdminPlainWrapperComponentNames)[number] | (typeof optionalAdminActionContainerComponentNames)[number];
8
- export type PrefixedAdminComponent<A extends AdminComponent = AdminComponent> = `${typeof ADMIN_COMPONENT_PREFIX}${A}`;
9
- export type AdminComponentMap = Record<RequiredAdminComponentName, Component> & Partial<Record<OptionalAdminComponentName, Component>>;
10
- /**
11
- * Prefer using AdminComponentMap instead to reduce bundle size.
12
- */
13
- export type PrefixedAdminComponentMap = Record<PrefixedAdminComponent<RequiredAdminComponentName>, Component> & Partial<Record<PrefixedAdminComponent<OptionalAdminComponentName>, Component>>;
14
- export type ComponentImportFunction = () => Promise<{
15
- default: Component;
16
- }>;
17
- export interface AdminAppConfig {
18
- appName: string;
19
- config: AdminConfiguration;
20
- context: AdminContextObject;
21
- logger: PdkLogger;
22
- view?: AdminView;
23
- }
24
- export interface AdminInstance extends Omit<AdminAppConfig, 'context'> {
25
- context: Partial<AdminInstanceContext>;
26
- }
@@ -1,53 +0,0 @@
1
- import { type Component } from 'vue';
2
- import { type Variant } from '@myparcel-dev/pdk-common';
3
- import { type OneOrMore } from '@myparcel-dev/ts-utils';
4
- import { type NotificationCategory } from '../data';
5
- import { type Translation } from './language.types';
6
- export type NotificationId = number | string;
7
- export interface PdkNotification {
8
- category?: NotificationCategory;
9
- content?: OneOrMore<string>;
10
- dismissible?: boolean;
11
- /**
12
- * ID of a notification. If not provided, a unique id will be generated. It may be a string, but make sure this string
13
- * does not exist in NotificationCategory.
14
- *
15
- * @see NotificationCategory
16
- */
17
- id?: NotificationId;
18
- /**
19
- * Arbitrary tags that can be set to distinguish notifications from each other.
20
- */
21
- tags?: Record<string, string>;
22
- timeout?: boolean | number;
23
- title?: string;
24
- variant: Variant;
25
- }
26
- export type ResolvedNotification = PdkNotification & {
27
- id: NotificationId;
28
- timeout: boolean | number;
29
- dismissible: boolean;
30
- };
31
- export type NotificationFilter = (notification: ResolvedNotification) => boolean;
32
- export type OrderIds = OneOrMore<string>;
33
- export type ShipmentIds = OneOrMore<string | number>;
34
- export type ArrayItem<T> = T extends (infer U)[] ? U : T;
35
- export interface TabDefinition {
36
- component: string | Component;
37
- description?: Translation;
38
- icon?: string;
39
- label: Translation;
40
- labelSuffix?: string;
41
- name: string;
42
- subtext?: Translation;
43
- }
44
- export type WebhookDefinition = {
45
- connected: boolean;
46
- hook: string;
47
- url: null | string;
48
- };
49
- export type DefaultSlot = {
50
- default(): never;
51
- };
52
- export type PlainComponentProps = {};
53
- export type PlainComponentSlots = DefaultSlot;
@@ -1,107 +0,0 @@
1
- import { type Keyable, type Settings, type ShippingMethodTypeMap, type TriState } from '@myparcel-dev/pdk-common';
2
- import { type OptionsProp, type PdkElementEmits, type PdkElementProps, type SelectOptionValue } from './form.types';
3
- import { type ArrayItem } from './common.types';
4
- /**
5
- * @see AdminComponent.CheckboxGroup
6
- */
7
- export type CheckboxGroupModelValue = string | boolean;
8
- export type CheckboxGroupProps<T extends CheckboxGroupModelValue = CheckboxGroupModelValue> = PdkElementProps<T>;
9
- export type CheckboxGroupEmits<T extends CheckboxGroupModelValue = CheckboxGroupModelValue> = PdkElementEmits<T>;
10
- /**
11
- * @see AdminComponent.CurrencyInput
12
- */
13
- export type CurrencyInputModelValue = string | number;
14
- export type CurrencyInputProps = PdkElementProps<CurrencyInputModelValue>;
15
- export type CurrencyInputEmits = PdkElementEmits<number>;
16
- /**
17
- * @see AdminComponent.CheckboxInput
18
- */
19
- export type CheckboxInputModelValue = Keyable | boolean;
20
- export type CheckboxInputProps<T extends CheckboxInputModelValue = CheckboxInputModelValue> = PdkElementProps<T>;
21
- export type CheckboxInputEmits<T extends CheckboxInputModelValue = CheckboxInputModelValue> = PdkElementEmits<T>;
22
- /**
23
- * @see AdminComponent.CodeEditor
24
- */
25
- export type CodeEditorModelValue = TextInputModelValue;
26
- export type CodeEditorProps = PdkElementProps<CodeEditorModelValue>;
27
- export type CodeEditorEmits = PdkElementEmits<CodeEditorModelValue>;
28
- /**
29
- * @see AdminComponent.DropOffInput
30
- */
31
- export type DropOffInputModelValue = Settings.ModelDropOffPossibilities;
32
- export type DropOffInputProps = PdkElementProps<DropOffInputModelValue>;
33
- export type DropOffInputEmits = PdkElementEmits<DropOffInputModelValue>;
34
- /**
35
- * @see AdminComponent.SelectInput
36
- */
37
- export type SelectInputModelValue = SelectOptionValue;
38
- export type SelectInputProps<T extends SelectInputModelValue = SelectInputModelValue> = PdkElementProps<T, OptionsProp<T>>;
39
- export type SelectInputEmits<T extends SelectInputModelValue = SelectInputModelValue> = PdkElementEmits<T>;
40
- /**
41
- * @see AdminComponent.MultiSelectInput
42
- */
43
- export type MultiSelectInputModelValue = SelectOptionValue[];
44
- export type MultiSelectInputProps<T extends MultiSelectInputModelValue = MultiSelectInputModelValue> = SelectInputProps<ArrayItem<T>>;
45
- export type MultiSelectInputEmits<T extends MultiSelectInputModelValue = MultiSelectInputModelValue> = SelectInputEmits<ArrayItem<T>>;
46
- /**
47
- * @see AdminComponent.NumberInput
48
- */
49
- export type NumberInputModelValue = string | number;
50
- export type NumberInputProps = PdkElementProps<NumberInputModelValue>;
51
- export type NumberInputEmits = PdkElementEmits<number>;
52
- /**
53
- * @see AdminComponent.RadioGroup
54
- */
55
- export type RadioGroupModelValue = Keyable;
56
- export type RadioGroupProps<T extends RadioGroupModelValue = RadioGroupModelValue> = PdkElementProps<T, OptionsProp<T>>;
57
- export type RadioGroupEmits<T extends RadioGroupModelValue = RadioGroupModelValue> = PdkElementEmits<T>;
58
- /**
59
- * @see AdminComponent.RadioInput
60
- */
61
- export type RadioInputModelValue = string | number;
62
- export type RadioInputProps = PdkElementProps<RadioInputModelValue>;
63
- export type RadioInputEmits = PdkElementEmits<string>;
64
- /**
65
- * @see AdminComponent.TextInput
66
- */
67
- export type TextInputModelValue = string;
68
- export type TextInputProps = PdkElementProps<TextInputModelValue>;
69
- export type TextInputEmits = PdkElementEmits<TextInputModelValue>;
70
- /**
71
- * @see AdminComponent.TextArea
72
- */
73
- export type TextAreaModelValue = string;
74
- export type TextAreaProps = PdkElementProps<TextAreaModelValue>;
75
- export type TextAreaEmits = PdkElementEmits<TextAreaModelValue>;
76
- /**
77
- * @see AdminComponent.TimeInput
78
- */
79
- export type TimeInputModelValue = string;
80
- export type TimeInputProps = PdkElementProps<TimeInputModelValue>;
81
- export type TimeInputEmits = PdkElementEmits<TimeInputModelValue>;
82
- /**
83
- * @see AdminComponent.ToggleInput
84
- */
85
- export type ToggleInputModelValue = TriState.On | TriState.Off;
86
- export type ToggleInputProps = PdkElementProps<ToggleInputModelValue>;
87
- export type ToggleInputEmits = PdkElementEmits<ToggleInputModelValue>;
88
- /**
89
- * @see AdminComponent.TriStateInput
90
- */
91
- export type TriStateInputModelValue = TriState;
92
- export type TriStateInputProps = PdkElementProps<TriStateInputModelValue, {
93
- defaultValue?: TriStateInputModelValue;
94
- }>;
95
- export type TriStateInputEmits = PdkElementEmits<TriStateInputModelValue>;
96
- /**
97
- * @see AdminComponent.ShippingMethodsInput
98
- */
99
- export type ShippingMethodsInputModelValue = ShippingMethodTypeMap;
100
- export type ShippingMethodsInputProps<T extends ShippingMethodsInputModelValue = ShippingMethodsInputModelValue> = PdkElementProps<T, OptionsProp<string>>;
101
- export type ShippingMethodsInputEmits<T extends ShippingMethodsInputModelValue = ShippingMethodsInputModelValue> = PdkElementEmits<T>;
102
- /**
103
- * @see AdminComponent.MultiDateInput
104
- */
105
- export type MultiDateInputModelValue = Date[];
106
- export type MultiDateInputProps = PdkElementProps<MultiDateInputModelValue>;
107
- export type MultiDateInputEmits = PdkElementEmits<Date[]>;