@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.
- package/CHANGELOG.md +5 -0
- package/package.json +3 -3
- package/dist/__tests__/doComponentTestSetup.d.ts +0 -2
- package/dist/__tests__/doComponentTestTeardown.d.ts +0 -1
- package/dist/__tests__/index.d.ts +0 -3
- package/dist/__tests__/mocks/index.d.ts +0 -14
- package/dist/__tests__/mocks/mockDefaultAccount.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultAppConfig.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultAppInfo.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultCarriers.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultConfig.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultDynamicContext.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultEndpoints.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultGlobalContext.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultLogger.d.ts +0 -1
- package/dist/__tests__/mocks/mockDefaultPlatform.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultPluginSettings.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultPrintOptionsView.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultShop.d.ts +0 -2
- package/dist/__tests__/mocks/mockDefaultTranslations.d.ts +0 -2
- package/dist/actions/composables/index.d.ts +0 -2
- package/dist/actions/composables/mutations/account/index.d.ts +0 -2
- package/dist/actions/composables/mutations/account/useDeleteAccountMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/account/useUpdateAccountMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/debug/index.d.ts +0 -3
- package/dist/actions/composables/mutations/debug/useDownloadLogsMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/debug/useSwitchToAcceptanceApiMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/debug/useSwitchToProductionApiMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/index.d.ts +0 -7
- package/dist/actions/composables/mutations/orders/index.d.ts +0 -3
- package/dist/actions/composables/mutations/orders/useExportOrdersMutation.d.ts +0 -5
- package/dist/actions/composables/mutations/orders/usePrintOrdersMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/orders/useUpdateOrdersMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/settings/index.d.ts +0 -2
- package/dist/actions/composables/mutations/settings/useUpdatePluginSettingsMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/settings/useUpdateProductSettingsMutation.d.ts +0 -3
- package/dist/actions/composables/mutations/shipments/index.d.ts +0 -4
- package/dist/actions/composables/mutations/shipments/useDeleteShipmentsMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/shipments/useExportReturnMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/shipments/usePrintShipmentsMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/shipments/useUpdateShipmentsMutation.d.ts +0 -4
- package/dist/actions/composables/mutations/usePdkMutation.d.ts +0 -15
- package/dist/actions/composables/mutations/webhooks/index.d.ts +0 -2
- package/dist/actions/composables/mutations/webhooks/useCreateWebhooksMutation.d.ts +0 -1
- package/dist/actions/composables/mutations/webhooks/useDeleteWebhooksMutation.d.ts +0 -3
- package/dist/actions/composables/queries/account/index.d.ts +0 -1
- package/dist/actions/composables/queries/account/useFetchContextQuery.d.ts +0 -3
- package/dist/actions/composables/queries/index.d.ts +0 -6
- package/dist/actions/composables/queries/orders/index.d.ts +0 -1
- package/dist/actions/composables/queries/orders/useFetchOrdersQuery.d.ts +0 -3
- package/dist/actions/composables/queries/products/index.d.ts +0 -1
- package/dist/actions/composables/queries/products/useFetchProductsQuery.d.ts +0 -3
- package/dist/actions/composables/queries/queryKeys.d.ts +0 -2
- package/dist/actions/composables/queries/shipments/index.d.ts +0 -1
- package/dist/actions/composables/queries/shipments/useFetchShipmentsQuery.d.ts +0 -4
- package/dist/actions/composables/queries/webhooks/index.d.ts +0 -1
- package/dist/actions/composables/queries/webhooks/useFetchWebhooksQuery.d.ts +0 -3
- package/dist/actions/defineAction.d.ts +0 -8
- package/dist/actions/definitions/account.d.ts +0 -13
- package/dist/actions/definitions/context.d.ts +0 -6
- package/dist/actions/definitions/debug.d.ts +0 -13
- package/dist/actions/definitions/index.d.ts +0 -8
- package/dist/actions/definitions/modal.d.ts +0 -17
- package/dist/actions/definitions/orders.d.ts +0 -38
- package/dist/actions/definitions/settings.d.ts +0 -2
- package/dist/actions/definitions/shipments.d.ts +0 -15
- package/dist/actions/definitions/webhooks.d.ts +0 -4
- package/dist/actions/executors/createHandlerWithParameters.d.ts +0 -5
- package/dist/actions/executors/createMutationHandler.d.ts +0 -3
- package/dist/actions/executors/createOrdersMutationHandler.d.ts +0 -2
- package/dist/actions/executors/createQueryHandler.d.ts +0 -3
- package/dist/actions/executors/createShipmentsMutationHandler.d.ts +0 -2
- package/dist/actions/executors/doMutate.d.ts +0 -4
- package/dist/actions/executors/executeAction.d.ts +0 -6
- package/dist/actions/executors/executeAfterHandle.d.ts +0 -3
- package/dist/actions/executors/executeBeforeHandle.d.ts +0 -4
- package/dist/actions/executors/executeHandler.d.ts +0 -3
- package/dist/actions/executors/executeNextAction.d.ts +0 -6
- package/dist/actions/executors/index.d.ts +0 -14
- package/dist/actions/executors/resolveOrderParameters.d.ts +0 -3
- package/dist/actions/executors/resolveQuerySuffix.d.ts +0 -3
- package/dist/actions/executors/types.d.ts +0 -19
- package/dist/actions/index.d.ts +0 -6
- package/dist/actions/print/index.d.ts +0 -3
- package/dist/actions/print/openOrPrintPdf.d.ts +0 -3
- package/dist/actions/print/resolvePrintParameters.d.ts +0 -3
- package/dist/actions/print/waitForLabelPrompt.d.ts +0 -3
- package/dist/actions/stopActionHandler.d.ts +0 -2
- package/dist/components/OrderBox/OrderShipmentsTable.vue.d.ts +0 -6
- package/dist/components/OrderBox/OrderShipmentsTableRow.vue.d.ts +0 -21
- package/dist/components/OrderBox/ShipmentOptionsBox.vue.d.ts +0 -2
- package/dist/components/OrderBox/ShipmentTableBox.vue.d.ts +0 -2
- package/dist/components/OrderListItem/OrderModeOrderListItem.vue.d.ts +0 -2
- package/dist/components/OrderListItem/ShipmentLabel.vue.d.ts +0 -15
- package/dist/components/OrderListItem/ShipmentModeOrderListItem.vue.d.ts +0 -2
- package/dist/components/PluginSettings/AccountSettings.vue.d.ts +0 -2
- package/dist/components/PluginSettings/DebugOptions.vue.d.ts +0 -2
- package/dist/components/PluginSettings/EditApiKeyForm.vue.d.ts +0 -7
- package/dist/components/PluginSettings/PluginSettingsForms.vue.d.ts +0 -2
- package/dist/components/PluginSettings/WebhooksStatus.vue.d.ts +0 -2
- package/dist/components/PluginSettings/createUpdateAccountSettingsValidator.d.ts +0 -4
- package/dist/components/common/ActionButton.vue.d.ts +0 -52
- package/dist/components/common/BulkSelectCheckbox.vue.d.ts +0 -22
- package/dist/components/common/CarrierLogo.vue.d.ts +0 -16
- package/dist/components/common/DateRelative.vue.d.ts +0 -16
- package/dist/components/common/DeliveryOptionsDeliveryType.vue.d.ts +0 -16
- package/dist/components/common/DeliveryOptionsExcerpt.vue.d.ts +0 -2
- package/dist/components/common/DeliveryOptionsExcerptCarrierName.vue.d.ts +0 -16
- package/dist/components/common/DeliveryOptionsPackageType.vue.d.ts +0 -16
- package/dist/components/common/DigitalStampWeightRange.vue.d.ts +0 -15
- package/dist/components/common/NotificationContainer.vue.d.ts +0 -19
- package/dist/components/common/PackageType.vue.d.ts +0 -16
- package/dist/components/common/PlainElement.d.ts +0 -2
- package/dist/components/common/ResetButton.vue.d.ts +0 -15
- package/dist/components/common/ReturnsForm.vue.d.ts +0 -14
- package/dist/components/common/ShipmentBarcode.vue.d.ts +0 -15
- package/dist/components/common/ShipmentOptionsForm.vue.d.ts +0 -16
- package/dist/components/common/ShipmentStatus.vue.d.ts +0 -15
- package/dist/components/common/StatusIndicator.vue.d.ts +0 -23
- package/dist/components/common/SubmitButton.vue.d.ts +0 -15
- package/dist/components/common/TabNavigation.vue.d.ts +0 -66
- package/dist/components/common/index.d.ts +0 -20
- package/dist/components/index.d.ts +0 -1
- package/dist/components/modals/PrintOptionsModal.vue.d.ts +0 -2
- package/dist/components/modals/PrintOptionsModalForm.vue.d.ts +0 -2
- package/dist/components/modals/ShipmentOptionsModal.vue.d.ts +0 -2
- package/dist/components/modals/ShipmentOptionsModalForm.vue.d.ts +0 -16
- package/dist/composables/components/index.d.ts +0 -15
- package/dist/composables/components/useBulkSelectCheckbox.d.ts +0 -9
- package/dist/composables/components/useCheckboxGroupContext.d.ts +0 -4
- package/dist/composables/components/useDropOffInputContext.d.ts +0 -13
- package/dist/composables/components/useDropdownButtonContext.d.ts +0 -15
- package/dist/composables/components/useElementContext.d.ts +0 -7
- package/dist/composables/components/useElementOptions.d.ts +0 -6
- package/dist/composables/components/useInputWithOptionsContext.d.ts +0 -10
- package/dist/composables/components/useModalElementContext.d.ts +0 -11
- package/dist/composables/components/useMultiSelectInputContext.d.ts +0 -4
- package/dist/composables/components/useRadioGroupContext.d.ts +0 -10
- package/dist/composables/components/useSelectInputContext.d.ts +0 -4
- package/dist/composables/components/useShippingMethodsInputContext.d.ts +0 -13
- package/dist/composables/components/useTableContext.d.ts +0 -7
- package/dist/composables/components/useToggleInputContext.d.ts +0 -11
- package/dist/composables/components/useTriStateInputContext.d.ts +0 -17
- package/dist/composables/context/index.d.ts +0 -7
- package/dist/composables/context/useAppInfo.d.ts +0 -2
- package/dist/composables/context/useContext.d.ts +0 -3
- package/dist/composables/context/useGlobalContext.d.ts +0 -2
- package/dist/composables/context/useInstanceContext.d.ts +0 -8
- package/dist/composables/context/useModalContext.d.ts +0 -11
- package/dist/composables/context/useModalOrder.d.ts +0 -1
- package/dist/composables/context/usePluginSettings.d.ts +0 -2
- package/dist/composables/formatter/default/createCurrencyFormat.d.ts +0 -1
- package/dist/composables/formatter/default/createLongDateFormat.d.ts +0 -1
- package/dist/composables/formatter/default/createRelativeTimeFormat.d.ts +0 -1
- package/dist/composables/formatter/default/defaultCurrencyFormatters.d.ts +0 -2
- package/dist/composables/formatter/default/defaultDateFormatters.d.ts +0 -4
- package/dist/composables/formatter/default/index.d.ts +0 -6
- package/dist/composables/formatter/default/parseDate.d.ts +0 -1
- package/dist/composables/formatter/formatter.types.d.ts +0 -23
- package/dist/composables/formatter/index.d.ts +0 -4
- package/dist/composables/formatter/useFormatter.d.ts +0 -2
- package/dist/composables/formatter/useLocalizedFormatter.d.ts +0 -2
- package/dist/composables/index.d.ts +0 -17
- package/dist/composables/language/index.d.ts +0 -4
- package/dist/composables/language/resolveTranslatedString.d.ts +0 -3
- package/dist/composables/language/resolveTranslationKey.d.ts +0 -2
- package/dist/composables/language/types.d.ts +0 -1
- package/dist/composables/language/useLanguage.d.ts +0 -23
- package/dist/composables/orders/index.d.ts +0 -3
- package/dist/composables/orders/useOrder.d.ts +0 -3
- package/dist/composables/orders/useOrderData.d.ts +0 -9
- package/dist/composables/orders/useOrdersData.d.ts +0 -3
- package/dist/composables/products/index.d.ts +0 -1
- package/dist/composables/products/useProductData.d.ts +0 -8
- package/dist/composables/shipments/index.d.ts +0 -3
- package/dist/composables/shipments/useShipment.d.ts +0 -3
- package/dist/composables/shipments/useShipmentData.d.ts +0 -12
- package/dist/composables/shipments/useShipmentsData.d.ts +0 -2
- package/dist/composables/useAdminConfig.d.ts +0 -2
- package/dist/composables/useAdminInstance.d.ts +0 -2
- package/dist/composables/useDigitalStampRanges.d.ts +0 -12
- package/dist/composables/useGlobalPdkAdmin.d.ts +0 -2
- package/dist/composables/useLoadMore.d.ts +0 -14
- package/dist/composables/useLoading.d.ts +0 -10
- package/dist/composables/useLogger.d.ts +0 -2
- package/dist/composables/useStoreContextQuery.d.ts +0 -3
- package/dist/composables/useStoreQuery.d.ts +0 -4
- package/dist/composables/useWeekdays.d.ts +0 -9
- package/dist/data/components.d.ts +0 -195
- package/dist/data/constants.d.ts +0 -63
- package/dist/data/endpoints.d.ts +0 -5
- package/dist/data/index.d.ts +0 -4
- package/dist/data/view.d.ts +0 -9
- package/dist/deprecated.d.ts +0 -6
- package/dist/forms/createReturnsForm.d.ts +0 -1
- package/dist/forms/form-builder/builders/buildAfterUpdate.d.ts +0 -3
- package/dist/forms/form-builder/builders/buildFormStateWatcher.d.ts +0 -3
- package/dist/forms/form-builder/builders/index.d.ts +0 -2
- package/dist/forms/form-builder/conditions/index.d.ts +0 -3
- package/dist/forms/form-builder/conditions/validateIfCondition.d.ts +0 -2
- package/dist/forms/form-builder/conditions/validateIfConditions.d.ts +0 -2
- package/dist/forms/form-builder/conditions/validateIsTruthy.d.ts +0 -2
- package/dist/forms/form-builder/index.d.ts +0 -5
- package/dist/forms/form-builder/operations/executeCustomOperationHandlers.d.ts +0 -2
- package/dist/forms/form-builder/operations/executeOperation.d.ts +0 -2
- package/dist/forms/form-builder/operations/executeOperations.d.ts +0 -2
- package/dist/forms/form-builder/operations/executeSetPropOperation.d.ts +0 -2
- package/dist/forms/form-builder/operations/executeSetValueOperation.d.ts +0 -2
- package/dist/forms/form-builder/operations/index.d.ts +0 -5
- package/dist/forms/form-builder/operations/parseBuilders.d.ts +0 -3
- package/dist/forms/form-builder/types/FormCondition.types.d.ts +0 -36
- package/dist/forms/form-builder/types/FormOperations.types.d.ts +0 -16
- package/dist/forms/form-builder/types/SubOperationBuilder.types.d.ts +0 -13
- package/dist/forms/form-builder/types/common.types.d.ts +0 -21
- package/dist/forms/form-builder/types/index.d.ts +0 -4
- package/dist/forms/form-builder/utils/createPropSetter.d.ts +0 -4
- package/dist/forms/form-builder/utils/createValueGetter.d.ts +0 -4
- package/dist/forms/form-builder/utils/createValueSetter.d.ts +0 -4
- package/dist/forms/form-builder/utils/index.d.ts +0 -4
- package/dist/forms/formKeys.d.ts +0 -10
- package/dist/forms/helpers/addBulkEditNotification.d.ts +0 -1
- package/dist/forms/helpers/createDefaultOption.d.ts +0 -3
- package/dist/forms/helpers/createHasShipmentOptionWatcher.d.ts +0 -3
- package/dist/forms/helpers/createLabel.d.ts +0 -1
- package/dist/forms/helpers/defineFormField.d.ts +0 -2
- package/dist/forms/helpers/getCarrier.d.ts +0 -3
- package/dist/forms/helpers/getDeliveryTypes.d.ts +0 -3
- package/dist/forms/helpers/getFieldLabel.d.ts +0 -2
- package/dist/forms/helpers/getFormCarrierName.d.ts +0 -2
- package/dist/forms/helpers/getInsuranceOptions.d.ts +0 -3
- package/dist/forms/helpers/getPackageTypes.d.ts +0 -3
- package/dist/forms/helpers/hasPostNlAgeCheck.d.ts +0 -2
- package/dist/forms/helpers/hasShipmentOption.d.ts +0 -3
- package/dist/forms/helpers/index.d.ts +0 -21
- package/dist/forms/helpers/isPackageTypeMailbox.d.ts +0 -2
- package/dist/forms/helpers/isPackageTypePackage.d.ts +0 -2
- package/dist/forms/helpers/isPackageTypePackageOrSmall.d.ts +0 -2
- package/dist/forms/helpers/isPackageTypeSmallPackage.d.ts +0 -2
- package/dist/forms/helpers/resolveFormComponent.d.ts +0 -3
- package/dist/forms/helpers/setFieldProp.d.ts +0 -8
- package/dist/forms/helpers/setPostNlAgeCheckSubtext.d.ts +0 -2
- package/dist/forms/helpers/triStateFieldIsEnabled.d.ts +0 -2
- package/dist/forms/helpers/updateFieldsDefaults.d.ts +0 -6
- package/dist/forms/index.d.ts +0 -6
- package/dist/forms/pluginSettings/createFormTab.d.ts +0 -3
- package/dist/forms/pluginSettings/createPluginSettingsForm.d.ts +0 -4
- package/dist/forms/pluginSettings/createPluginSettingsTabs.d.ts +0 -4
- package/dist/forms/pluginSettings/createPluginSettingsTabsComponent.d.ts +0 -4
- package/dist/forms/pluginSettings/generateFormFields.d.ts +0 -8
- package/dist/forms/pluginSettings/index.d.ts +0 -6
- package/dist/forms/pluginSettings/types.d.ts +0 -13
- package/dist/forms/shipmentOptions/createShipmentOptionsForm.d.ts +0 -4
- package/dist/forms/shipmentOptions/field.d.ts +0 -36
- package/dist/forms/shipmentOptions/fields/createAgeCheckField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createCarrierField.d.ts +0 -4
- package/dist/forms/shipmentOptions/fields/createDeliveryTypeField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createDigitalStampRangeField.d.ts +0 -4
- package/dist/forms/shipmentOptions/fields/createDirectReturnField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createHideSenderField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createInsuranceField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createLabelAmountField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createLargeFormatField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createOnlyRecipientField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createPackageTypeField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createPriorityDeliveryField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createReceiptCodeField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createRef.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createSameDayDeliveryField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/createShipmentOptionField.d.ts +0 -4
- package/dist/forms/shipmentOptions/fields/createSignatureField.d.ts +0 -3
- package/dist/forms/shipmentOptions/fields/index.d.ts +0 -15
- package/dist/forms/shipmentOptions/index.d.ts +0 -4
- package/dist/forms/shipmentOptions/types.d.ts +0 -2
- package/dist/index.d.ts +0 -19
- package/dist/pdk/PdkAdmin.d.ts +0 -18
- package/dist/pdk/boot.d.ts +0 -3
- package/dist/pdk/createAdminConfig.d.ts +0 -2
- package/dist/pdk/createPdkAdmin.d.ts +0 -8
- package/dist/pdk/createPdkAdminPlugin.d.ts +0 -3
- package/dist/pdk/fillShipmentsQueryData.d.ts +0 -4
- package/dist/pdk/index.d.ts +0 -11
- package/dist/pdk/instance/createInstanceContext.d.ts +0 -5
- package/dist/pdk/instance/createQueryClient.d.ts +0 -2
- package/dist/pdk/instance/index.d.ts +0 -3
- package/dist/pdk/instance/plugins/createContextPlugin.d.ts +0 -2
- package/dist/pdk/instance/plugins/createLoggerPlugin.d.ts +0 -2
- package/dist/pdk/instance/plugins/createRegisterComponentsPlugin.d.ts +0 -5
- package/dist/pdk/instance/plugins/createStorePlugin.d.ts +0 -2
- package/dist/pdk/instance/plugins/createVueQueryPlugin.d.ts +0 -5
- package/dist/pdk/instance/plugins/index.d.ts +0 -6
- package/dist/pdk/instance/plugins/plugins.types.d.ts +0 -3
- package/dist/pdk/renderMap.d.ts +0 -3
- package/dist/pdk/sendBootEvent.d.ts +0 -3
- package/dist/pdk/setupAdminApp.d.ts +0 -3
- package/dist/pdk/testIdDirective.d.ts +0 -5
- package/dist/sdk/PdkFetchClient.d.ts +0 -11
- package/dist/sdk/composables/api/index.d.ts +0 -1
- package/dist/sdk/composables/api/useFetchCarrier.d.ts +0 -2
- package/dist/sdk/composables/index.d.ts +0 -3
- package/dist/sdk/composables/useMyParcelApi.d.ts +0 -5
- package/dist/sdk/composables/usePdkAdminApi.d.ts +0 -6
- package/dist/sdk/endpoints/abstractPdkEndpoint.d.ts +0 -7
- package/dist/sdk/endpoints/index.d.ts +0 -1
- package/dist/sdk/index.d.ts +0 -3
- package/dist/services/actions/createAction.d.ts +0 -4
- package/dist/services/actions/createActionContext.d.ts +0 -3
- package/dist/services/actions/downloadFile.d.ts +0 -4
- package/dist/services/actions/getActionIdentifier.d.ts +0 -2
- package/dist/services/actions/index.d.ts +0 -4
- package/dist/services/addErrorToNotifications.d.ts +0 -2
- package/dist/services/context/getElementContext.d.ts +0 -2
- package/dist/services/context/index.d.ts +0 -1
- package/dist/services/createNotification.d.ts +0 -5
- package/dist/services/index.d.ts +0 -9
- package/dist/services/instantiateAction.d.ts +0 -2
- package/dist/services/instantiateActions.d.ts +0 -8
- package/dist/services/logger.d.ts +0 -19
- package/dist/services/mutations/getCallbackForMutationMode.d.ts +0 -4
- package/dist/services/mutations/getModalMutationOptions.d.ts +0 -2
- package/dist/services/mutations/index.d.ts +0 -3
- package/dist/services/mutations/mutationMode.d.ts +0 -4
- package/dist/services/print/index.d.ts +0 -1
- package/dist/services/print/openPdfInNewWindow.d.ts +0 -4
- package/dist/stores/createQueryCacheKey.d.ts +0 -3
- package/dist/stores/index.d.ts +0 -6
- package/dist/stores/types.d.ts +0 -13
- package/dist/stores/useActionStore.d.ts +0 -25
- package/dist/stores/useModalStore.d.ts +0 -16
- package/dist/stores/useNotificationStore.d.ts +0 -60
- package/dist/stores/useQueryStore.d.ts +0 -77
- package/dist/symbols.d.ts +0 -5
- package/dist/testing.d.ts +0 -1
- package/dist/types/actions/actions.types.d.ts +0 -31
- package/dist/types/actions/endpoints.types.d.ts +0 -9
- package/dist/types/actions/index.d.ts +0 -4
- package/dist/types/actions/parameters.types.d.ts +0 -55
- package/dist/types/actions/response.types.d.ts +0 -7
- package/dist/types/actions.types.d.ts +0 -45
- package/dist/types/admin.types.d.ts +0 -26
- package/dist/types/common.types.d.ts +0 -53
- package/dist/types/components-form.types.d.ts +0 -107
- package/dist/types/components.types.d.ts +0 -273
- package/dist/types/configuration.types.d.ts +0 -95
- package/dist/types/context.types.d.ts +0 -20
- package/dist/types/endpoints.types.d.ts +0 -7
- package/dist/types/form.types.d.ts +0 -39
- package/dist/types/index.d.ts +0 -12
- package/dist/types/language.types.d.ts +0 -9
- package/dist/types/sdk.types.d.ts +0 -155
- package/dist/utils/booleanToTriState.d.ts +0 -2
- package/dist/utils/convertDotNotationToObject.d.ts +0 -1
- package/dist/utils/createAssetUrl.d.ts +0 -1
- package/dist/utils/createClasses.d.ts +0 -8
- package/dist/utils/createObjectWithKeys.d.ts +0 -3
- package/dist/utils/decodeHtmlEntities.d.ts +0 -7
- package/dist/utils/downloadBlob.d.ts +0 -1
- package/dist/utils/downloadFileFromUrl.d.ts +0 -1
- package/dist/utils/encodeArrayParameter.d.ts +0 -2
- package/dist/utils/extendAdminInstance.d.ts +0 -2
- package/dist/utils/fakeLinkClick.d.ts +0 -4
- package/dist/utils/forms/createFormElement.d.ts +0 -3
- package/dist/utils/forms/createShipmentFormName.d.ts +0 -1
- package/dist/utils/forms/formToBody.d.ts +0 -2
- package/dist/utils/forms/generateFieldId.d.ts +0 -3
- package/dist/utils/forms/index.d.ts +0 -4
- package/dist/utils/generateLabelFilename.d.ts +0 -3
- package/dist/utils/getOrderId.d.ts +0 -3
- package/dist/utils/getOrderShipmentIds.d.ts +0 -2
- package/dist/utils/index.d.ts +0 -22
- package/dist/utils/openUrlInNewTab.d.ts +0 -1
- package/dist/utils/prefixComponent.d.ts +0 -3
- package/dist/utils/query/index.d.ts +0 -3
- package/dist/utils/query/setQueryData.d.ts +0 -2
- package/dist/utils/query/setQueryOrder.d.ts +0 -10
- package/dist/utils/query/setQueryShipment.d.ts +0 -3
- package/dist/utils/resolveCarrier.d.ts +0 -1
- package/dist/utils/translations/getDeliveryTypeTranslation.d.ts +0 -2
- package/dist/utils/translations/getDynamicTranslation.d.ts +0 -1
- package/dist/utils/translations/getPackageTypeTranslation.d.ts +0 -2
- package/dist/utils/translations/index.d.ts +0 -4
- package/dist/utils/translations/translateSelectOption.d.ts +0 -3
- package/dist/utils/triStateToBoolean.d.ts +0 -2
- package/dist/utils/unprefixComponent.d.ts +0 -3
- package/dist/utils/validateId.d.ts +0 -2
- package/dist/views/ChildProductSettings.vue.d.ts +0 -2
- package/dist/views/Modals.vue.d.ts +0 -2
- package/dist/views/Notifications.vue.d.ts +0 -2
- package/dist/views/OrderBox.vue.d.ts +0 -2
- package/dist/views/OrderListItem.vue.d.ts +0 -2
- package/dist/views/PluginSettings.vue.d.ts +0 -2
- package/dist/views/ProductSettings.vue.d.ts +0 -35
- package/dist/views/integrated/OrderBoxView.vue.d.ts +0 -12
- package/dist/views/integrated/OrderListItemView.vue.d.ts +0 -12
- package/dist/views/integrated/index.d.ts +0 -7
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
<!-- MONOWEAVE:BELOW -->
|
|
4
4
|
|
|
5
|
+
## [1.14.2](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-admin@1.14.1...@myparcel-dev/pdk-admin@1.14.2) "@myparcel-dev/pdk-admin" (2026-05-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
5
10
|
## [1.14.1](https://github.com/myparcelnl/js-pdk/compare/@myparcel-dev/pdk-admin@1.14.0...@myparcel-dev/pdk-admin@1.14.1) "@myparcel-dev/pdk-admin" (2026-02-16)
|
|
6
11
|
|
|
7
12
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myparcel-dev/pdk-admin",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/myparcelnl/js-pdk.git",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@myparcel-dev/constants": "^2.7.0",
|
|
40
|
-
"@myparcel-dev/pdk-common": "^1.12.
|
|
40
|
+
"@myparcel-dev/pdk-common": "^1.12.1",
|
|
41
41
|
"@myparcel-dev/sdk": "^5.0.0",
|
|
42
42
|
"@myparcel-dev/vue-form-builder": "1.0.0-beta.42.6",
|
|
43
43
|
"@tanstack/vue-query": "~4.43.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"lodash-unified": "^1.0.3",
|
|
48
48
|
"pinia": "^2.0.0",
|
|
49
49
|
"vite": "^5.4.10",
|
|
50
|
-
"vue": "3.
|
|
50
|
+
"vue": "3.5.35",
|
|
51
51
|
"vue-tsc": "^2.0.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const doComponentTestTeardown: () => void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './mockDefaultAccount';
|
|
2
|
-
export * from './mockDefaultAppConfig';
|
|
3
|
-
export * from './mockDefaultAppInfo';
|
|
4
|
-
export * from './mockDefaultCarriers';
|
|
5
|
-
export * from './mockDefaultConfig';
|
|
6
|
-
export * from './mockDefaultDynamicContext';
|
|
7
|
-
export * from './mockDefaultEndpoints';
|
|
8
|
-
export * from './mockDefaultGlobalContext';
|
|
9
|
-
export * from './mockDefaultLogger';
|
|
10
|
-
export * from './mockDefaultPlatform';
|
|
11
|
-
export * from './mockDefaultPluginSettings';
|
|
12
|
-
export * from './mockDefaultPrintOptionsView';
|
|
13
|
-
export * from './mockDefaultShop';
|
|
14
|
-
export * from './mockDefaultTranslations';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const mockDefaultLogger: import("vitest").Mock<() => import("../../services").PdkLogger>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type ResolvedQuery } from '../../../../stores';
|
|
4
|
-
import { MutationMode } from '../../../../services';
|
|
5
|
-
export declare const useExportOrdersMutation: (orderIds?: OneOrMore<string>, mode?: MutationMode) => ResolvedQuery<BackendEndpoint.ExportOrders>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type ResolvedQuery } from '../../../../stores';
|
|
4
|
-
export declare const usePrintOrdersMutation: (orderIds?: OneOrMore<string>) => ResolvedQuery<BackendEndpoint.PrintOrders>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type ResolvedQuery } from '../../../../stores';
|
|
4
|
-
export declare const useUpdateOrdersMutation: (orderIds?: OneOrMore<string>) => ResolvedQuery<BackendEndpoint.UpdateOrders>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type ResolvedQuery } from '../../../../stores';
|
|
4
|
-
export declare const useDeleteShipmentsMutation: (orderIds?: OneOrMore<string>, shipmentIds?: OneOrMore<number>) => ResolvedQuery<BackendEndpoint.DeleteShipments>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type ResolvedQuery } from '../../../../stores';
|
|
4
|
-
export declare const useExportReturnMutation: (orderIds?: OneOrMore<string>, shipmentIds?: OneOrMore<number>) => ResolvedQuery<BackendEndpoint.ExportReturn>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type ResolvedQuery } from '../../../../stores';
|
|
4
|
-
export declare const usePrintShipmentsMutation: (orderIds?: OneOrMore<string>, shipmentIds?: OneOrMore<number>) => ResolvedQuery<BackendEndpoint.PrintShipments>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type ResolvedQuery } from '../../../../stores';
|
|
4
|
-
export declare const useUpdateShipmentsMutation: (orderIds?: OneOrMore<string>, shipmentIds?: OneOrMore<number>) => ResolvedQuery<BackendEndpoint.UpdateShipments>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type MaybeRef } from '@vueuse/core';
|
|
2
|
-
import { type UseMutationOptions, type UseMutationReturnType } from '@tanstack/vue-query';
|
|
3
|
-
import { type MutationFunction } from '@tanstack/query-core';
|
|
4
|
-
import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
5
|
-
import { type ApiException } from '@myparcel-dev/sdk';
|
|
6
|
-
import { type ActionInput, type BackendEndpointResponse } from '../../../types';
|
|
7
|
-
type MaybeRefDeep<T> = MaybeRef<T extends Function ? T : T extends object ? {
|
|
8
|
-
[Property in keyof T]: MaybeRefDeep<T[Property]>;
|
|
9
|
-
} : T>;
|
|
10
|
-
type VueMutationObserverOptions<TData = unknown, TError = unknown, TVariables = void, TContext = unknown> = {
|
|
11
|
-
[Property in keyof UseMutationOptions<TData, TError, TVariables, TContext>]: MaybeRefDeep<UseMutationOptions<TData, TError, TVariables, TContext>[Property]>;
|
|
12
|
-
};
|
|
13
|
-
type UsePdkMutation = <E extends BackendEndpoint, TData extends BackendEndpointResponse<E> = BackendEndpointResponse<E>, TError extends ApiException = ApiException, TVariables extends ActionInput<E> = ActionInput<E>, TContext = unknown>(endpoint: E, mutationFn: MaybeRef<MutationFunction<TData, TVariables>>, options?: MaybeRef<Omit<VueMutationObserverOptions<TData, TError, TVariables, TContext>, 'mutationKey' | 'mutationFn'>>) => UseMutationReturnType<TData, TError, TVariables, TContext>;
|
|
14
|
-
export declare const usePdkMutation: UsePdkMutation;
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useCreateWebhooksMutation: () => import("@tanstack/vue-query").UseMutationReturnType<any, any, any, any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useFetchContextQuery';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { AdminContextKey, BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type ResolvedQuery } from '../../../../stores';
|
|
3
|
-
export declare const useFetchContextQuery: <C extends AdminContextKey = AdminContextKey.Dynamic>(contextKey?: C) => ResolvedQuery<BackendEndpoint.FetchContext>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useFetchOrdersQuery';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useFetchProductsQuery';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useFetchShipmentsQuery';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type ResolvedQuery } from '../../../../stores';
|
|
4
|
-
export declare const useFetchShipmentsQuery: <I extends number>(orderIds?: OneOrMore<string>, shipmentIds?: I) => ResolvedQuery<BackendEndpoint.FetchShipments>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useFetchWebhooksQuery';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type GenericActionDefinition, type NamedActionDefinition } from '../types';
|
|
2
|
-
import { type AdminAction } from '../data';
|
|
3
|
-
type DefineAction = {
|
|
4
|
-
<A extends AdminAction>(input: NamedActionDefinition<A>): NamedActionDefinition<A>;
|
|
5
|
-
<D extends GenericActionDefinition>(input: D): D;
|
|
6
|
-
};
|
|
7
|
-
export declare const defineAction: DefineAction;
|
|
8
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AdminAction } from '../../data';
|
|
2
|
-
/**
|
|
3
|
-
* Update account.
|
|
4
|
-
*/
|
|
5
|
-
export declare const updateAccountAction: import("../..").NamedActionDefinition<AdminAction.AccountUpdate>;
|
|
6
|
-
/**
|
|
7
|
-
* Refresh account.
|
|
8
|
-
*/
|
|
9
|
-
export declare const refreshAccountAction: import("../..").NamedActionDefinition<AdminAction.AccountUpdate>;
|
|
10
|
-
/**
|
|
11
|
-
* Delete account.
|
|
12
|
-
*/
|
|
13
|
-
export declare const deleteAccountAction: import("../..").NamedActionDefinition<AdminAction.AccountDelete>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { AdminAction } from '../../data';
|
|
2
|
-
/**
|
|
3
|
-
* Retrieve context.
|
|
4
|
-
*/
|
|
5
|
-
export declare const fetchDynamicContextAction: import("../..").NamedActionDefinition<AdminAction.ContextFetch>;
|
|
6
|
-
export declare const fetchPluginSettingsViewContextAction: import("../..").NamedActionDefinition<AdminAction.ContextFetch>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AdminAction } from '../../data';
|
|
2
|
-
/**
|
|
3
|
-
* Download zip with logs.
|
|
4
|
-
*/
|
|
5
|
-
export declare const downloadLogsAction: import("../..").NamedActionDefinition<AdminAction.DownloadLogs>;
|
|
6
|
-
/**
|
|
7
|
-
* Switch to acceptance API.
|
|
8
|
-
*/
|
|
9
|
-
export declare const switchToAcceptanceApiAction: import("../..").NamedActionDefinition<AdminAction.SwitchToAcceptanceApi>;
|
|
10
|
-
/**
|
|
11
|
-
* Switch to production API.
|
|
12
|
-
*/
|
|
13
|
-
export declare const switchToProductionApiAction: import("../..").NamedActionDefinition<AdminAction.SwitchToProductionApi>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Close current modal.
|
|
3
|
-
*/
|
|
4
|
-
export declare const modalCloseAction: {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
handler(): void;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Trigger a submit on the form in the current modal context.
|
|
11
|
-
*/
|
|
12
|
-
export declare const modalSubmitFormAction: {
|
|
13
|
-
id: string;
|
|
14
|
-
label: string;
|
|
15
|
-
handler(): Promise<void>;
|
|
16
|
-
afterHandle(context: import("../executors").ActionContextWithResponse<undefined>): Promise<void>;
|
|
17
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { AdminAction, AdminIcon } from '../../data';
|
|
2
|
-
/**
|
|
3
|
-
* Open modal to edit order shipment options.
|
|
4
|
-
*/
|
|
5
|
-
export declare const ordersEditAction: import("../../types").NamedActionDefinition<AdminAction.OrdersEdit>;
|
|
6
|
-
/**
|
|
7
|
-
* Shown only in order mode. Exports entire order.
|
|
8
|
-
*/
|
|
9
|
-
export declare const orderExportAction: import("../../types").NamedActionDefinition<AdminAction.OrdersExport>;
|
|
10
|
-
/**
|
|
11
|
-
* Shown if not in order mode. Exports shipments.
|
|
12
|
-
*/
|
|
13
|
-
export declare const orderExportToShipmentsAction: import("../../types").NamedActionDefinition<AdminAction.OrdersExport>;
|
|
14
|
-
/**
|
|
15
|
-
* Fetch the latest order data from the PDK.
|
|
16
|
-
*/
|
|
17
|
-
export declare const ordersFetchAction: import("../../types").NamedActionDefinition<AdminAction.OrdersFetch>;
|
|
18
|
-
/**
|
|
19
|
-
* Update order data.
|
|
20
|
-
*/
|
|
21
|
-
export declare const ordersUpdateAction: import("../../types").NamedActionDefinition<AdminAction.OrdersUpdate>;
|
|
22
|
-
/**
|
|
23
|
-
* Shown if not in order mode. Exports order and immediately prints shipment labels.
|
|
24
|
-
*/
|
|
25
|
-
export declare const ordersExportPrintShipmentsAction: import("../../types").NamedActionDefinition<AdminAction.OrdersExportPrint>;
|
|
26
|
-
/**
|
|
27
|
-
* Shown if not in order mode. Exports all shipment labels.
|
|
28
|
-
*/
|
|
29
|
-
export declare const ordersPrintAction: import("../../types").NamedActionDefinition<AdminAction.OrdersPrint>;
|
|
30
|
-
/**
|
|
31
|
-
* Shown on orders that have been exported to MyParcel using order mode.
|
|
32
|
-
*/
|
|
33
|
-
export declare const orderViewInBackofficeAction: {
|
|
34
|
-
id: string;
|
|
35
|
-
icon: AdminIcon.External;
|
|
36
|
-
label: string;
|
|
37
|
-
handler(): void;
|
|
38
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AdminAction } from '../../data';
|
|
2
|
-
export declare const shipmentsExportReturnAction: import("../..").NamedActionDefinition<AdminAction.ShipmentsExportReturn>;
|
|
3
|
-
/**
|
|
4
|
-
* Fetch shipments from the MyParcel Api.
|
|
5
|
-
*/
|
|
6
|
-
export declare const shipmentsUpdateAction: import("../..").NamedActionDefinition<AdminAction.ShipmentsUpdate>;
|
|
7
|
-
/**
|
|
8
|
-
* Delete shipments.
|
|
9
|
-
*/
|
|
10
|
-
export declare const shipmentsDeleteAction: import("../..").NamedActionDefinition<AdminAction.ShipmentsDelete>;
|
|
11
|
-
/**
|
|
12
|
-
* Print specific shipments.
|
|
13
|
-
*/
|
|
14
|
-
export declare const shipmentsPrintAction: import("../..").NamedActionDefinition<AdminAction.ShipmentsPrint>;
|
|
15
|
-
export declare const shipmentActions: (import("../..").NamedActionDefinition<AdminAction.ShipmentsDelete> | import("../..").NamedActionDefinition<AdminAction.ShipmentsPrint> | import("../..").NamedActionDefinition<AdminAction.ShipmentsUpdate> | import("../..").NamedActionDefinition<AdminAction.ShipmentsExportReturn>)[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { AdminAction } from '../../data';
|
|
2
|
-
export declare const webhooksFetchAction: import("../..").NamedActionDefinition<AdminAction.WebhooksFetch>;
|
|
3
|
-
export declare const webhooksCreateAction: import("../..").NamedActionDefinition<AdminAction.WebhooksCreate>;
|
|
4
|
-
export declare const webhooksDeleteAction: import("../..").NamedActionDefinition<AdminAction.WebhooksDelete>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type BackendEndpointResponse } from '../../types';
|
|
4
|
-
import { type ActionContext } from './types';
|
|
5
|
-
export declare const createHandlerWithParameters: <E extends BackendEndpoint, Bulk extends boolean = false>(args: OneOrMore<number | string>, endpoint: E, context: ActionContext<E>, allowBulk?: Bulk) => Promise<OneOrMore<BackendEndpointResponse<E>>>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { type QueryHandler } from './types';
|
|
2
|
-
export declare const createOrdersMutationHandler: <E extends import("@myparcel-dev/pdk-common").BackendEndpoint.FetchOrders | import("@myparcel-dev/pdk-common").BackendEndpoint.UpdateOrders | import("@myparcel-dev/pdk-common").BackendEndpoint.ExportOrders | import("@myparcel-dev/pdk-common").BackendEndpoint.PrintOrders>(endpoint: E, allowBulk?: boolean) => QueryHandler<E>;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { type QueryHandler } from './types';
|
|
2
|
-
export declare const createShipmentsMutationHandler: <E extends import("@myparcel-dev/pdk-common").BackendEndpoint.DeleteShipments | import("@myparcel-dev/pdk-common").BackendEndpoint.PrintShipments | import("@myparcel-dev/pdk-common").BackendEndpoint.UpdateShipments | import("@myparcel-dev/pdk-common").BackendEndpoint.FetchShipments | import("@myparcel-dev/pdk-common").BackendEndpoint.ExportReturn>(endpoint: E, allowBulk?: boolean) => QueryHandler<E>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type BackendEndpointResponse } from '../../types';
|
|
3
|
-
import { type ActionContext, type QueryModifier } from './types';
|
|
4
|
-
export declare const doMutate: <E extends BackendEndpoint>(endpoint: E, suffix: QueryModifier<E>, context: ActionContext<E>) => Promise<BackendEndpointResponse<E>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type MaybeActionResponse, type MaybeAdminAction } from '../../types';
|
|
2
|
-
import { type ActionContext } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Execute an AdminAction.
|
|
5
|
-
*/
|
|
6
|
-
export declare const executeAction: <A extends MaybeAdminAction>(context: ActionContext<A>) => Promise<MaybeActionResponse<A>>;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type MaybeActionResponse, type MaybeAdminAction } from '../../types';
|
|
2
|
-
import { type ActionContext } from './types';
|
|
3
|
-
export declare function executeAfterHandle<A extends MaybeAdminAction>(context: ActionContext<A>, response: MaybeActionResponse<A>): Promise<MaybeActionResponse<A>>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { StopActionHandler } from '../stopActionHandler';
|
|
2
|
-
import { type MaybeActionParameters, type MaybeAdminAction } from '../../types';
|
|
3
|
-
import { type ActionContext } from './types';
|
|
4
|
-
export declare function executeBeforeHandle<A extends MaybeAdminAction>(context: ActionContext<A>): Promise<MaybeActionParameters<A> | StopActionHandler>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ActionParameters, type AnyActionDefinition, type MaybeActionResponse, type MaybeAdminAction } from '../../types';
|
|
2
|
-
import { type ActionContextWithResponse } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Used to execute the next action in a chain. Propagates the context to the next action.
|
|
5
|
-
*/
|
|
6
|
-
export declare const executeNextAction: <Next extends MaybeAdminAction, Prev extends MaybeAdminAction>(context: ActionContextWithResponse<Prev>, nextAction: AnyActionDefinition<Next>, parameters?: ActionParameters<Next>) => Promise<MaybeActionResponse<Next>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export * from './createHandlerWithParameters';
|
|
2
|
-
export * from './createMutationHandler';
|
|
3
|
-
export * from './createOrdersMutationHandler';
|
|
4
|
-
export * from './createQueryHandler';
|
|
5
|
-
export * from './createShipmentsMutationHandler';
|
|
6
|
-
export * from './doMutate';
|
|
7
|
-
export * from './executeAction';
|
|
8
|
-
export * from './executeAfterHandle';
|
|
9
|
-
export * from './executeBeforeHandle';
|
|
10
|
-
export * from './executeHandler';
|
|
11
|
-
export * from './executeNextAction';
|
|
12
|
-
export * from './resolveOrderParameters';
|
|
13
|
-
export * from './resolveQuerySuffix';
|
|
14
|
-
export * from './types';
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type BackendEndpoint } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type ActionContext, type PlainModifier, type QueryModifier } from './types';
|
|
3
|
-
export declare const resolveQuerySuffix: <E extends BackendEndpoint>(suffix: QueryModifier<E>, context: ActionContext<E>) => PlainModifier;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { type BackendEndpoint, type Variant } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type OneOrMore, type PromiseOr } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type ActionParameters, type ActionResponse, type AdminInstance, type AnyActionDefinition, type BackendEndpointResponse, type EndpointAdminActionMap, type MaybeAdminAction, type PdkNotification } from '../../types';
|
|
4
|
-
import { type AdminAction } from '../../data';
|
|
5
|
-
export type ResolvedAdminAction<A extends undefined | MaybeAdminAction | BackendEndpoint> = A extends MaybeAdminAction ? A : A extends keyof EndpointAdminActionMap ? EndpointAdminActionMap[A] : never;
|
|
6
|
-
export interface ActionContext<A extends MaybeAdminAction | BackendEndpoint = undefined, R extends ResolvedAdminAction<A> = ResolvedAdminAction<A>> {
|
|
7
|
-
action: AnyActionDefinition<R>;
|
|
8
|
-
instance: AdminInstance;
|
|
9
|
-
notifications: Record<Variant, PdkNotification>;
|
|
10
|
-
parameters: ActionParameters<R>;
|
|
11
|
-
}
|
|
12
|
-
export interface ActionContextWithResponse<A extends MaybeAdminAction = undefined> extends ActionContext<A> {
|
|
13
|
-
response: ActionResponse<A>;
|
|
14
|
-
}
|
|
15
|
-
export type PlainModifier = string | number | undefined;
|
|
16
|
-
type ModifierCallback<A extends AdminAction | BackendEndpoint> = (context: ActionContext<A>) => PlainModifier;
|
|
17
|
-
export type QueryModifier<A extends undefined | AdminAction | BackendEndpoint = AdminAction> = PlainModifier | (A extends BackendEndpoint ? ModifierCallback<A> : never);
|
|
18
|
-
export type QueryHandler<E extends BackendEndpoint = BackendEndpoint> = (context: ActionContext<E>) => PromiseOr<OneOrMore<BackendEndpointResponse<E>> | void>;
|
|
19
|
-
export {};
|