@myparcel-dev/pdk-admin 1.14.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/package.json +5 -5
- package/src/__tests__/__snapshots__/exports.spec.ts.snap +8 -1
- package/src/__tests__/doComponentTestTeardown.ts +2 -0
- package/src/__tests__/mocks/index.ts +1 -1
- package/src/__tests__/mocks/mockDefaultAccount.ts +1 -0
- package/src/__tests__/mocks/mockDefaultGlobalContext.ts +2 -2
- package/src/__tests__/mocks/{mockDefaultPlatform.ts → mockDefaultProposition.ts} +1 -3
- package/src/__tests__/mocks/mockDefaultShop.ts +1 -0
- package/src/__tests__/utils/getActionIds.ts +12 -0
- package/src/__tests__/utils/mockOrderData.ts +20 -0
- package/src/actions/composables/mutations/orders/useExportOrdersMutation.ts +1 -1
- package/src/actions/composables/queries/account/useOrderCapabilitiesQuery.ts +67 -0
- package/src/actions/composables/queries/account/useShipmentCapabilitiesQuery.ts +96 -0
- package/src/actions/definitions/orders.ts +6 -8
- package/src/actions/index.ts +1 -0
- package/src/actions/orderModeActions.spec.ts +150 -0
- package/src/actions/orderModeActions.ts +90 -0
- package/src/components/OrderBox/ShipmentOptionsBox.spec.ts +109 -0
- package/src/components/OrderBox/ShipmentOptionsBox.vue +9 -25
- package/src/components/OrderListItem/OrderModeOrderListItem.spec.ts +125 -0
- package/src/components/OrderListItem/OrderModeOrderListItem.vue +10 -6
- package/src/components/PluginSettings/PluginSettingsForms.vue +7 -4
- package/src/components/common/DeliveryOptionsExcerptCarrierName.vue +3 -3
- package/src/components/modals/ShipmentOptionsModal.spec.ts +79 -0
- package/src/components/modals/ShipmentOptionsModal.vue +4 -21
- package/src/composables/components/useToggleInputContext.ts +2 -2
- package/src/composables/components/useTriStateInputContext.ts +2 -2
- package/src/composables/context/index.ts +1 -0
- package/src/composables/context/useOrderMode.spec.ts +75 -0
- package/src/composables/context/useOrderMode.ts +26 -0
- package/src/composables/language/useLanguage.spec.ts +2 -2
- package/src/composables/shipments/useShipmentData.ts +2 -2
- package/src/data/index.ts +1 -0
- package/src/data/orderMode.spec.ts +22 -0
- package/src/data/orderMode.ts +50 -0
- package/src/forms/form-builder/builders/buildAfterUpdate.spec.ts +5 -8
- package/src/forms/form-builder/operations/executeOperations.spec.ts +4 -7
- package/src/forms/form-builder/operations/executeSetPropOperation.spec.ts +4 -7
- package/src/forms/form-builder/operations/executeSetValueOperation.spec.ts +3 -2
- package/src/forms/form-builder/utils/createValueSetter.ts +21 -8
- package/src/forms/helpers/addCapabilitiesClearNotification.ts +39 -0
- package/src/forms/helpers/getDeliveryTypes.ts +5 -10
- package/src/forms/helpers/getFieldLabel.ts +7 -2
- package/src/forms/helpers/getPackageTypes.ts +7 -12
- package/src/forms/helpers/index.ts +3 -10
- package/src/forms/helpers/useFormCapabilities.spec.ts +227 -0
- package/src/forms/helpers/useFormCapabilities.ts +176 -0
- package/src/forms/pluginSettings/createPluginSettingsForm.ts +2 -2
- package/src/forms/pluginSettings/filterPluginSettingsView.spec.ts +158 -0
- package/src/forms/pluginSettings/filterPluginSettingsView.ts +96 -0
- package/src/forms/pluginSettings/index.ts +1 -0
- package/src/forms/pluginSettings/resolveSettingsValues.spec.ts +62 -0
- package/src/forms/pluginSettings/resolveSettingsValues.ts +16 -0
- package/src/forms/shipmentOptions/createShipmentOptionsForm.spec.ts +108 -0
- package/src/forms/shipmentOptions/createShipmentOptionsForm.ts +114 -52
- package/src/forms/shipmentOptions/field.ts +6 -66
- package/src/forms/shipmentOptions/fieldFactoryRegistry.ts +26 -0
- package/src/forms/shipmentOptions/fields/createCarrierField.ts +119 -30
- package/src/forms/shipmentOptions/fields/createDigitalStampRangeField.ts +3 -3
- package/src/forms/shipmentOptions/fields/createInsuranceField.ts +43 -22
- package/src/forms/shipmentOptions/fields/createPackageTypeField.ts +1 -2
- package/src/forms/shipmentOptions/fields/createShipmentOptionField.spec.ts +177 -0
- package/src/forms/shipmentOptions/fields/createShipmentOptionField.ts +90 -8
- package/src/forms/shipmentOptions/fields/index.ts +0 -9
- package/src/forms/shipmentOptions/useCapabilitiesAutoClear.spec.ts +347 -0
- package/src/forms/shipmentOptions/useCapabilitiesAutoClear.ts +452 -0
- package/src/forms/shipmentOptions/useCapabilitiesWatcher.spec.ts +14 -0
- package/src/forms/shipmentOptions/useCapabilitiesWatcher.ts +29 -0
- package/src/forms/shipmentOptions/wireProxyCapabilities.spec.ts +160 -0
- package/src/forms/shipmentOptions/wireProxyCapabilities.ts +102 -0
- package/src/index.ts +2 -0
- package/src/pdk/instance/plugins/createRegisterComponentsPlugin.ts +2 -0
- package/src/sdk/composables/api/useFetchCarrier.ts +39 -4
- package/src/sdk/composables/usePdkAdminApi.ts +8 -3
- package/src/stores/useActionStore.spec.ts +101 -0
- package/src/stores/useActionStore.ts +4 -28
- package/src/stores/useQueryStore.ts +15 -0
- package/src/types/actions/endpoints.types.ts +2 -1
- package/src/types/sdk.types.ts +54 -1
- package/src/utils/forms/formToBody.ts +2 -1
- package/src/utils/forms/getEnabledValues.spec.ts +66 -0
- package/src/utils/forms/getEnabledValues.ts +25 -0
- package/src/utils/forms/index.ts +1 -0
- package/src/utils/translations/getDynamicTranslation.ts +1 -1
- package/src/views/OrderBox.vue +11 -5
- package/src/views/OrderListItem.spec.ts +71 -0
- package/src/views/OrderListItem.vue +6 -7
- 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/src/forms/helpers/createHasShipmentOptionWatcher.ts +0 -12
- package/src/forms/helpers/getCarrier.ts +0 -11
- package/src/forms/helpers/getInsuranceOptions.ts +0 -23
- package/src/forms/helpers/hasPostNlAgeCheck.ts +0 -11
- package/src/forms/helpers/hasShipmentOption.ts +0 -8
- package/src/forms/helpers/isPackageTypeMailbox.ts +0 -7
- package/src/forms/helpers/isPackageTypePackage.ts +0 -7
- package/src/forms/helpers/isPackageTypePackageOrSmall.ts +0 -7
- package/src/forms/helpers/isPackageTypeSmallPackage.ts +0 -7
- package/src/forms/helpers/setPostNlAgeCheckSubtext.ts +0 -17
- package/src/forms/shipmentOptions/fields/createAgeCheckField.ts +0 -33
- package/src/forms/shipmentOptions/fields/createDirectReturnField.ts +0 -8
- package/src/forms/shipmentOptions/fields/createHideSenderField.ts +0 -8
- package/src/forms/shipmentOptions/fields/createLargeFormatField.ts +0 -8
- package/src/forms/shipmentOptions/fields/createOnlyRecipientField.ts +0 -21
- package/src/forms/shipmentOptions/fields/createPriorityDeliveryField.ts +0 -12
- package/src/forms/shipmentOptions/fields/createReceiptCodeField.ts +0 -21
- package/src/forms/shipmentOptions/fields/createSameDayDeliveryField.ts +0 -8
- package/src/forms/shipmentOptions/fields/createSignatureField.ts +0 -11
package/dist/forms/index.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type Plugin } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type FormInstance } from '@myparcel-dev/vue-form-builder';
|
|
3
|
-
import { type PluginSettingsTabsContext } from './types';
|
|
4
|
-
export declare const createPluginSettingsForm: (id: string, view: Plugin.SettingsView, context: PluginSettingsTabsContext) => FormInstance;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type Plugin } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type TabDefinition } from '../../types';
|
|
3
|
-
import { type PluginSettingsTabsContext } from './types';
|
|
4
|
-
export declare const createPluginSettingsTabs: (view: Plugin.ModelContextPluginSettingsViewContext, context: PluginSettingsTabsContext) => TabDefinition[];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type Component } from 'vue';
|
|
2
|
-
import { type Plugin } from '@myparcel-dev/pdk-common';
|
|
3
|
-
import { type PluginSettingsTabsContext } from './types';
|
|
4
|
-
export declare const createPluginSettingsTabsComponent: (id: string, view: Plugin.SettingsView, context: PluginSettingsTabsContext) => Component;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type AnyElementConfiguration } from '@myparcel-dev/vue-form-builder';
|
|
2
|
-
import { type Plugin } from '@myparcel-dev/pdk-common';
|
|
3
|
-
type GenerateFormFields = (config: {
|
|
4
|
-
fields: null | Plugin.Field[];
|
|
5
|
-
values: Record<string, unknown>;
|
|
6
|
-
}, prefix?: string) => AnyElementConfiguration[];
|
|
7
|
-
export declare const generateFormFields: GenerateFormFields;
|
|
8
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type Plugin } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { type FormInstance } from '@myparcel-dev/vue-form-builder';
|
|
3
|
-
import { type AdminConfiguration, type TabDefinition } from '../../types';
|
|
4
|
-
import { type AdminAction } from '../../data';
|
|
5
|
-
import { type ActionContext } from '../../actions';
|
|
6
|
-
export interface FormTab extends Omit<TabDefinition, 'component'> {
|
|
7
|
-
form: FormInstance;
|
|
8
|
-
}
|
|
9
|
-
export type PluginSettingsTabsContext = {
|
|
10
|
-
pluginSettings: Plugin.ModelContextDynamicContext['pluginSettings'];
|
|
11
|
-
actionContext: ActionContext<AdminAction.PluginSettingsUpdate>;
|
|
12
|
-
config: AdminConfiguration;
|
|
13
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type FormInstance } from '@myparcel-dev/vue-form-builder';
|
|
2
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
3
|
-
import { type Plugin } from '@myparcel-dev/pdk-common';
|
|
4
|
-
export declare const createShipmentOptionsForm: (orders?: OneOrMore<Plugin.ModelPdkOrder>) => FormInstance;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export type FieldName = string;
|
|
2
|
-
export declare const SHIPMENT_OPTIONS = "shipmentOptions";
|
|
3
|
-
export declare const CARRIER = "carrier";
|
|
4
|
-
export declare const LABEL_AMOUNT = "labelAmount";
|
|
5
|
-
export declare const PACKAGE_TYPE = "packageType";
|
|
6
|
-
export declare const DELIVERY_TYPE = "deliveryType";
|
|
7
|
-
export declare const AGE_CHECK = "ageCheck";
|
|
8
|
-
export declare const RECEIPT_CODE = "receiptCode";
|
|
9
|
-
export declare const DIRECT_RETURN = "return";
|
|
10
|
-
export declare const HIDE_SENDER = "hideSender";
|
|
11
|
-
export declare const LARGE_FORMAT = "largeFormat";
|
|
12
|
-
export declare const ONLY_RECIPIENT = "onlyRecipient";
|
|
13
|
-
export declare const SAME_DAY_DELIVERY = "sameDayDelivery";
|
|
14
|
-
export declare const SIGNATURE = "signature";
|
|
15
|
-
export declare const INSURANCE = "insurance";
|
|
16
|
-
export declare const PRIORITY_DELIVERY = "priorityDelivery";
|
|
17
|
-
export declare const MANUAL_WEIGHT = "manualWeight";
|
|
18
|
-
export declare const PROP_OPTIONS = "options";
|
|
19
|
-
export declare const KEY_DESCRIPTION = "description";
|
|
20
|
-
export declare const KEY_SUBTEXT = "subtext";
|
|
21
|
-
export declare const FIELD_CARRIER: FieldName;
|
|
22
|
-
export declare const FIELD_LABEL_AMOUNT: FieldName;
|
|
23
|
-
export declare const FIELD_PACKAGE_TYPE: FieldName;
|
|
24
|
-
export declare const FIELD_DELIVERY_TYPE: FieldName;
|
|
25
|
-
export declare const FIELD_AGE_CHECK: FieldName;
|
|
26
|
-
export declare const FIELD_DIRECT_RETURN: FieldName;
|
|
27
|
-
export declare const FIELD_HIDE_SENDER: FieldName;
|
|
28
|
-
export declare const FIELD_LARGE_FORMAT: FieldName;
|
|
29
|
-
export declare const FIELD_ONLY_RECIPIENT: FieldName;
|
|
30
|
-
export declare const FIELD_SAME_DAY_DELIVERY: FieldName;
|
|
31
|
-
export declare const FIELD_SIGNATURE: FieldName;
|
|
32
|
-
export declare const FIELD_INSURANCE: FieldName;
|
|
33
|
-
export declare const FIELD_PRIORITY_DELIVERY: FieldName;
|
|
34
|
-
export declare const FIELD_MANUAL_WEIGHT: FieldName;
|
|
35
|
-
export declare const FIELD_RECEIPT_CODE: FieldName;
|
|
36
|
-
export declare const ALL_FIELDS: readonly [string, string, string, string, string, string, string, string, string, string, string, string, string, string, string];
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type InteractiveElementConfiguration } from '@myparcel-dev/vue-form-builder';
|
|
2
|
-
import { type Plugin } from '@myparcel-dev/pdk-common';
|
|
3
|
-
import { type ShipmentOptionsRefs } from '../types';
|
|
4
|
-
export declare const createCarrierField: (refs: ShipmentOptionsRefs, inheritedDeliveryOptions: Plugin.ModelContextOrderDataContext['inheritedDeliveryOptions']) => InteractiveElementConfiguration;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type InteractiveElementConfiguration } from '@myparcel-dev/vue-form-builder';
|
|
2
|
-
import { type Plugin } from '@myparcel-dev/pdk-common';
|
|
3
|
-
import { type ShipmentOptionsRefs } from '../types';
|
|
4
|
-
export declare const createDigitalStampRangeField: (refs: ShipmentOptionsRefs, order?: Plugin.ModelContextOrderDataContext) => InteractiveElementConfiguration;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type InteractiveElementConfiguration } from '@myparcel-dev/vue-form-builder';
|
|
2
|
-
import { type ShipmentOptionsRefs } from '../types';
|
|
3
|
-
import { type FieldName } from '../field';
|
|
4
|
-
export declare const createShipmentOptionField: (refs: ShipmentOptionsRefs, fieldName: FieldName, config?: Partial<InteractiveElementConfiguration>) => InteractiveElementConfiguration;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export * from './createAgeCheckField';
|
|
2
|
-
export * from './createCarrierField';
|
|
3
|
-
export * from './createDigitalStampRangeField';
|
|
4
|
-
export * from './createDirectReturnField';
|
|
5
|
-
export * from './createInsuranceField';
|
|
6
|
-
export * from './createLabelAmountField';
|
|
7
|
-
export * from './createLargeFormatField';
|
|
8
|
-
export * from './createOnlyRecipientField';
|
|
9
|
-
export * from './createPackageTypeField';
|
|
10
|
-
export * from './createPriorityDeliveryField';
|
|
11
|
-
export * from './createRef';
|
|
12
|
-
export * from './createSameDayDeliveryField';
|
|
13
|
-
export * from './createShipmentOptionField';
|
|
14
|
-
export * from './createSignatureField';
|
|
15
|
-
export * from './createReceiptCodeField';
|
package/dist/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export type { AnyElementConfiguration, AnyElementInstance, ComponentOrHtmlElement, FormConfiguration, FormInstance, InteractiveElementConfiguration, InteractiveElementInstance, PlainElementConfiguration, PlainElementInstance, ResolvedElementConfiguration, } from '@myparcel-dev/vue-form-builder';
|
|
2
|
-
export * from './actions';
|
|
3
|
-
export * from './deprecated';
|
|
4
|
-
export * from './types';
|
|
5
|
-
export * from './views/integrated';
|
|
6
|
-
export * from '@myparcel-dev/pdk-common';
|
|
7
|
-
export { ActionButton, BulkSelectCheckbox, NotificationContainer, PackageType, PlainElement, ResetButton, ReturnsForm, ShipmentBarcode, ShipmentOptionsForm, ShipmentStatus, StatusIndicator, SubmitButton, TabNavigation, } from './components';
|
|
8
|
-
export { AdminAction, AdminComponent, AdminIcon, AdminInstanceContextKey, AdminModalKey, AdminView, NotificationCategory, allAdminComponentNames, optionalAdminActionContainerComponentNames, optionalAdminComponentNames, optionalAdminPlainWrapperComponentNames, requiredAdminComponentNames, } from './data';
|
|
9
|
-
export { FORM_KEYS, FORM_KEY_ACCOUNT_SETTINGS, FORM_KEY_CHILD_PRODUCT_SETTINGS, FORM_KEY_MODAL, FORM_KEY_MODAL_PRINT_OPTIONS, FORM_KEY_MODAL_RETURN_OPTIONS, FORM_KEY_MODAL_SHIPMENT_OPTIONS, FORM_KEY_PLUGIN_SETTINGS, FORM_KEY_PRODUCT_SETTINGS, resolveFormComponent, } from './forms';
|
|
10
|
-
export { FormHook, useElement, useForm, useFormBuilder } from '@myparcel-dev/vue-form-builder';
|
|
11
|
-
export { INJECT_ADMIN_INSTANCE, INJECT_GLOBAL_PDK_ADMIN } from './symbols';
|
|
12
|
-
export { LogLevel, getActionIdentifier } from './services';
|
|
13
|
-
export { PdkAdmin, createPdkAdmin } from './pdk';
|
|
14
|
-
export { createAdminConfig, createPdkAdminPlugin } from './pdk';
|
|
15
|
-
export { createFormElement } from './utils';
|
|
16
|
-
export { createLogger } from './services';
|
|
17
|
-
export { generateFieldId, prefixComponent } from './utils';
|
|
18
|
-
export { useActionStore, useModalStore, useNotificationStore, useQueryStore } from './stores';
|
|
19
|
-
export { useAdminConfig, useAppInfo, useCheckboxGroupContext, useDropOffInputContext, useDropdownButtonContext, useElementContext, useElementOptions, useFormatter, useGlobalContext, useGlobalPdkAdmin, useInputWithOptionsContext, useLanguage, useLoadMore, useLogger, useModalContext, useModalElementContext, useMultiSelectInputContext, useOrderData, useOrdersData, useProductData, useRadioGroupContext, useSelectInputContext, useShippingMethodsInputContext, useStoreQuery, useTableContext, useToggleInputContext, useTriStateInputContext, useWeekdays, } from './composables';
|
package/dist/pdk/PdkAdmin.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { type App } from 'vue';
|
|
2
|
-
import { type AdminAppConfig, type AdminConfiguration, type AdminContextObject } from '../types';
|
|
3
|
-
import { AdminView } from '../data';
|
|
4
|
-
export declare class PdkAdmin {
|
|
5
|
-
readonly config: AdminConfiguration;
|
|
6
|
-
readonly context: AdminContextObject;
|
|
7
|
-
readonly renderedComponents: string[];
|
|
8
|
-
constructor(config: AdminConfiguration, context: AdminContextObject);
|
|
9
|
-
/**
|
|
10
|
-
* Render a views in given selector.
|
|
11
|
-
*/
|
|
12
|
-
render(view: AdminView, selector: string): Promise<void>;
|
|
13
|
-
protected createApp(view: AdminView, appConfig: AdminAppConfig): Promise<App>;
|
|
14
|
-
/**
|
|
15
|
-
* Create a unique app name for components that are rendered multiple times.
|
|
16
|
-
*/
|
|
17
|
-
protected createAppName(componentName: AdminView, context: AdminContextObject): string;
|
|
18
|
-
}
|
package/dist/pdk/boot.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type InputAdminConfiguration } from '../types';
|
|
2
|
-
import { PdkAdmin } from './PdkAdmin';
|
|
3
|
-
export type CreatePdkAdmin = (configuration?: InputAdminConfiguration) => undefined | PdkAdmin;
|
|
4
|
-
/**
|
|
5
|
-
* Initialize the pdk frontend, parse configuration, and send a boot event that triggers the
|
|
6
|
-
* components to render themselves using the PdkAdmin class.
|
|
7
|
-
*/
|
|
8
|
-
export declare const createPdkAdmin: CreatePdkAdmin;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { type QueryClient } from '@tanstack/vue-query';
|
|
2
|
-
import { type Plugin, type Shipment } from '@myparcel-dev/pdk-common';
|
|
3
|
-
import { type OneOrMore } from '@myparcel-dev/ts-utils';
|
|
4
|
-
export declare const fillShipmentsQueryData: (queryClient: QueryClient, shipments: OneOrMore<Shipment.ModelShipment>, order?: Plugin.ModelPdkOrder) => void;
|
package/dist/pdk/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './PdkAdmin';
|
|
2
|
-
export * from './boot';
|
|
3
|
-
export * from './createAdminConfig';
|
|
4
|
-
export * from './createPdkAdmin';
|
|
5
|
-
export * from './createPdkAdminPlugin';
|
|
6
|
-
export * from './fillShipmentsQueryData';
|
|
7
|
-
export * from './instance';
|
|
8
|
-
export * from './renderMap';
|
|
9
|
-
export * from './sendBootEvent';
|
|
10
|
-
export * from './setupAdminApp';
|
|
11
|
-
export * from './testIdDirective';
|
package/dist/pdk/renderMap.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { type Directive } from 'vue';
|
|
2
|
-
import { type AnyElementInstance } from '@myparcel-dev/vue-form-builder';
|
|
3
|
-
type TestIdBinding = string | string[] | [string, AnyElementInstance];
|
|
4
|
-
export declare const testIdDirective: Directive<Element, TestIdBinding>;
|
|
5
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type AbstractEndpoint, type EndpointResponse, FetchClient, type Options } from '@myparcel-dev/sdk';
|
|
2
|
-
export declare class PdkFetchClient extends FetchClient {
|
|
3
|
-
/**
|
|
4
|
-
* Prepare and execute the final request and handle the response.
|
|
5
|
-
*/
|
|
6
|
-
doRequest<E extends AbstractEndpoint>(endpoint: E, options: Options<E>): Promise<EndpointResponse<E>>;
|
|
7
|
-
/**
|
|
8
|
-
* If the url already contains a query string, append the parameters with an ampersand instead.
|
|
9
|
-
*/
|
|
10
|
-
protected createUrl<E extends AbstractEndpoint>(endpoint: E, options: Options<E>): string;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './useFetchCarrier';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type BackendEndpoint, type ExtractEndpointDefinition } from '@myparcel-dev/pdk-common';
|
|
2
|
-
import { AbstractEndpoint } from '@myparcel-dev/sdk';
|
|
3
|
-
import { type BackendEndpointDefinition } from '../../types';
|
|
4
|
-
export declare abstract class AbstractPdkEndpoint<N extends BackendEndpoint = BackendEndpoint> extends AbstractEndpoint<ExtractEndpointDefinition<N, BackendEndpointDefinition>> {
|
|
5
|
-
readonly name: N | `${N}}`;
|
|
6
|
-
readonly path: string;
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './abstractPdkEndpoint';
|
package/dist/sdk/index.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { type ActionParameters, type AdminInstance, type AnyActionDefinition, type MaybeAdminAction } from '../../types';
|
|
2
|
-
import { type ActionContext } from '../../actions';
|
|
3
|
-
export declare const createActionContext: <A extends MaybeAdminAction>(action: AnyActionDefinition<A>, parameters?: ActionParameters<A>, existingInstance?: AdminInstance) => ActionContext<A>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './getElementContext';
|
package/dist/services/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './actions';
|
|
2
|
-
export * from './addErrorToNotifications';
|
|
3
|
-
export * from './context';
|
|
4
|
-
export * from './createNotification';
|
|
5
|
-
export * from './instantiateAction';
|
|
6
|
-
export * from './instantiateActions';
|
|
7
|
-
export * from './logger';
|
|
8
|
-
export * from './mutations';
|
|
9
|
-
export * from './print';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { type ActionDefinition, type ActionParameters, type AnyActionDefinition, type MaybeAdminAction } from '../types';
|
|
2
|
-
export declare const instantiateAction: <A extends MaybeAdminAction>(action: AnyActionDefinition<A>, parameters?: ActionParameters<A>) => ActionDefinition<A>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { type ActionDefinition, type ActionParameters, type AnyActionDefinition } from '../types';
|
|
2
|
-
import { type AdminAction } from '../data';
|
|
3
|
-
type InstantiateActions = {
|
|
4
|
-
(action: AnyActionDefinition, parameters?: ActionParameters<AdminAction>): ActionDefinition[];
|
|
5
|
-
(actions: AnyActionDefinition[], parameters?: ActionParameters<AdminAction>): ActionDefinition[];
|
|
6
|
-
};
|
|
7
|
-
export declare const instantiateActions: InstantiateActions;
|
|
8
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export declare enum LogLevel {
|
|
2
|
-
Debug = 1,
|
|
3
|
-
Info = 2,
|
|
4
|
-
Warn = 3,
|
|
5
|
-
Error = 4,
|
|
6
|
-
Off = 5
|
|
7
|
-
}
|
|
8
|
-
export interface PdkLogger {
|
|
9
|
-
level: LogLevel;
|
|
10
|
-
scope: string | null;
|
|
11
|
-
debug(...messages: any[]): void;
|
|
12
|
-
error(...messages: any[]): void;
|
|
13
|
-
info(...messages: any[]): void;
|
|
14
|
-
log(level: LogLevel, ...messages: any[]): void;
|
|
15
|
-
setScope(scope: string | null): void;
|
|
16
|
-
warn(...messages: any[]): void;
|
|
17
|
-
}
|
|
18
|
-
export declare const globalLogger: PdkLogger;
|
|
19
|
-
export declare const createLogger: (scope?: string | null, logLevel?: LogLevel | null) => PdkLogger;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './openPdfInNewWindow';
|