@shipengine/elements 2.18.0 → 2.19.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.
Files changed (80) hide show
  1. package/actions-menu.js +5 -5
  2. package/components.js +1 -1
  3. package/elements.js +1 -1
  4. package/hooks.js +1 -1
  5. package/index.js +1 -1
  6. package/package.json +3 -3
  7. package/src/components/add-funds-form/add-funds-form.d.ts +3 -9
  8. package/src/components/button-group/button-group.d.ts +4 -1
  9. package/src/components/date-range-combo/date-range-combo.d.ts +1 -1
  10. package/src/components/field/select/select-with-categories.d.ts +1 -0
  11. package/src/components/fund-and-purchase/fund-and-purchase.d.ts +6 -7
  12. package/src/components/grid-controller/index.d.ts +1 -0
  13. package/src/components/grid-controller/sortable-header.d.ts +20 -0
  14. package/src/components/grid-filters/components/index.d.ts +1 -0
  15. package/src/components/grid-filters/components/tracking-status-filter/index.d.ts +1 -0
  16. package/src/components/grid-filters/components/tracking-status-filter/tracking-status-filter-schema.d.ts +21 -0
  17. package/src/components/grid-filters/components/tracking-status-filter/tracking-status-filter.d.ts +23 -0
  18. package/src/components/grid-filters/components/tracking-status-filter/tracking-status-filter.styles.d.ts +13 -0
  19. package/src/components/grid-filters/grid-filters.d.ts +4 -1
  20. package/src/components/history/history-card/history-card.styles.d.ts +1 -1
  21. package/src/components/ship-from-address-form/ship-from-address-form.d.ts +2 -1
  22. package/src/components/templates/connect-external-carrier-form/connect-external-carrier-form.d.ts +3 -1
  23. package/src/components/templates/connect-external-carrier-form/custom-forms/custom-external-carrier-form.d.ts +10 -0
  24. package/src/components/templates/connect-external-carrier-form/custom-forms/custom-form-fedex.d.ts +6 -0
  25. package/src/components/templates/connect-external-carrier-form/custom-forms/eula-clickwrap.d.ts +11 -0
  26. package/src/components/templates/connect-external-carrier-form/custom-forms/eula-clickwrap.styles.d.ts +20 -0
  27. package/src/components/templates/connect-external-carrier-form/custom-forms/index.d.ts +1 -0
  28. package/src/components/templates/connect-external-carrier-form/index.d.ts +1 -0
  29. package/src/components/templates/rate-form/rate-form.d.ts +4 -2
  30. package/src/components/templates/shipment-form/shipment-form.d.ts +2 -1
  31. package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +9 -54
  32. package/src/elements/labels-grid/labels-grid.d.ts +50 -34
  33. package/src/elements/manage-carriers/manage-carriers.d.ts +49 -49
  34. package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +43 -0
  35. package/src/elements/manage-funding/manage-funding-element.d.ts +24 -2
  36. package/src/elements/manage-warehouses/manage-warehouses.d.ts +21 -0
  37. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +21 -0
  38. package/src/elements/purchase-label/hooks/use-rates-form.d.ts +1 -0
  39. package/src/elements/purchase-label/hooks/use-shipment-form.d.ts +4 -4
  40. package/src/elements/purchase-label/purchase-label.d.ts +26 -5
  41. package/src/elements/select-label-layout/select-label-layout-element.d.ts +21 -0
  42. package/src/elements/shipment-summary/shipment-summary.d.ts +30 -32
  43. package/src/elements/shipments-grid/shipments-grid.d.ts +24 -32
  44. package/src/elements/theme-creator/theme-creator.d.ts +21 -0
  45. package/src/elements/transaction-history/transaction-history-element.d.ts +21 -0
  46. package/src/elements/unit-settings/unit-settings-element.d.ts +21 -0
  47. package/src/elements/vat-settings/vat-settings-element.d.ts +21 -0
  48. package/src/elements/void-label/void-label.d.ts +39 -8
  49. package/src/features/manage-carriers/manage-carriers.d.ts +6 -8
  50. package/src/features/manage-carriers/use-manage-carriers.d.ts +4 -7
  51. package/src/features/manage-funding/manage-funding.d.ts +4 -9
  52. package/src/hooks/index.d.ts +1 -0
  53. package/src/hooks/options/use-date-range-options.d.ts +4 -1
  54. package/src/hooks/options/use-rate-options.d.ts +2 -1
  55. package/src/hooks/use-balance-services.d.ts +22 -0
  56. package/src/hooks/use-helpers.d.ts +4 -0
  57. package/src/locales/en/index.d.ts +21 -0
  58. package/src/utilities/feature-flags/types.d.ts +1 -1
  59. package/src/utilities/shipengine/address.d.ts +1 -1
  60. package/src/utilities/validation.d.ts +19 -0
  61. package/src/workflows/account-settings/account-settings.d.ts +21 -0
  62. package/src/workflows/carrier-services/carrier-services.d.ts +22 -27
  63. package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +32 -24
  64. package/src/workflows/label-workflow/label-workflow.d.ts +21 -0
  65. package/src/workflows/onboarding/onboarding.d.ts +29 -11
  66. package/styles.js +1 -0
  67. package/suspend-text.js +1 -1
  68. package/transaction-history-element.js +1 -1
  69. package/use-balance-services.js +1 -0
  70. package/use-configure-shipment.js +1 -1
  71. package/use-page-layout.js +1 -1
  72. package/use-unit-settings.js +1 -1
  73. package/usePager.js +1 -1
  74. package/utilities.js +1 -1
  75. package/validation.js +1 -1
  76. package/wallet-form.js +1 -1
  77. package/warehouses.js +1 -1
  78. package/workflows.js +1 -1
  79. package/carrier.js +0 -1
  80. package/use-toggle.js +0 -1
@@ -22,6 +22,9 @@ export declare const Element: ({ resources, ...props }: object & {
22
22
  thisMonth: string;
23
23
  lastMonth: string;
24
24
  };
25
+ category: {
26
+ fundsAdded: string;
27
+ };
25
28
  };
26
29
  "void-label": {
27
30
  title: string;
@@ -618,8 +621,10 @@ export declare const Element: ({ resources, ...props }: object & {
618
621
  trackingStatus: {
619
622
  unknown: string;
620
623
  inTransit: string;
624
+ in_transit: string;
621
625
  delivered: string;
622
626
  error: string;
627
+ voided: string;
623
628
  };
624
629
  actions: {
625
630
  title: string;
@@ -639,6 +644,17 @@ export declare const Element: ({ resources, ...props }: object & {
639
644
  connectCarriers: string;
640
645
  disconnect: string;
641
646
  disconnectCarrier: string;
647
+ downloadEula: string;
648
+ };
649
+ customForms: {
650
+ fedex: {
651
+ eulaName: string;
652
+ disclaimerFooter: string;
653
+ };
654
+ };
655
+ eula: {
656
+ toContinue: string;
657
+ iAgree: string;
642
658
  };
643
659
  noCarriersDescription: string;
644
660
  registrationForm: {
@@ -685,6 +701,7 @@ export declare const Element: ({ resources, ...props }: object & {
685
701
  address: {
686
702
  fields: {
687
703
  name: string;
704
+ fullName: string;
688
705
  company: string;
689
706
  county: string;
690
707
  countryCode: string;
@@ -847,6 +864,7 @@ export declare const Element: ({ resources, ...props }: object & {
847
864
  unknown: string;
848
865
  noRatesAvailable: string;
849
866
  refreshAndTryAgain: string;
867
+ updateShipFromAddress: string;
850
868
  windsorFramework: {
851
869
  doNotConform: string;
852
870
  pleaseAddTheFollowingTaxIds: string;
@@ -865,6 +883,7 @@ export declare const Element: ({ resources, ...props }: object & {
865
883
  saveRate: string;
866
884
  security: string;
867
885
  shipmentStatus: string;
886
+ shipFromAddress: string;
868
887
  system: string;
869
888
  unknown: string;
870
889
  validation: string;
@@ -878,6 +897,8 @@ export declare const Element: ({ resources, ...props }: object & {
878
897
  shipmentId: string;
879
898
  labelId: string;
880
899
  labelIdFilter: string;
900
+ filteredTrackingStatus: string;
901
+ more: string;
881
902
  createdDate: string;
882
903
  shipmentIdFilter: string;
883
904
  createdDateFilter: string;
@@ -22,6 +22,9 @@ export declare const Element: ({ resources, ...props }: object & {
22
22
  thisMonth: string;
23
23
  lastMonth: string;
24
24
  };
25
+ category: {
26
+ fundsAdded: string;
27
+ };
25
28
  };
26
29
  "void-label": {
27
30
  title: string;
@@ -618,8 +621,10 @@ export declare const Element: ({ resources, ...props }: object & {
618
621
  trackingStatus: {
619
622
  unknown: string;
620
623
  inTransit: string;
624
+ in_transit: string;
621
625
  delivered: string;
622
626
  error: string;
627
+ voided: string;
623
628
  };
624
629
  actions: {
625
630
  title: string;
@@ -639,6 +644,17 @@ export declare const Element: ({ resources, ...props }: object & {
639
644
  connectCarriers: string;
640
645
  disconnect: string;
641
646
  disconnectCarrier: string;
647
+ downloadEula: string;
648
+ };
649
+ customForms: {
650
+ fedex: {
651
+ eulaName: string;
652
+ disclaimerFooter: string;
653
+ };
654
+ };
655
+ eula: {
656
+ toContinue: string;
657
+ iAgree: string;
642
658
  };
643
659
  noCarriersDescription: string;
644
660
  registrationForm: {
@@ -685,6 +701,7 @@ export declare const Element: ({ resources, ...props }: object & {
685
701
  address: {
686
702
  fields: {
687
703
  name: string;
704
+ fullName: string;
688
705
  company: string;
689
706
  county: string;
690
707
  countryCode: string;
@@ -847,6 +864,7 @@ export declare const Element: ({ resources, ...props }: object & {
847
864
  unknown: string;
848
865
  noRatesAvailable: string;
849
866
  refreshAndTryAgain: string;
867
+ updateShipFromAddress: string;
850
868
  windsorFramework: {
851
869
  doNotConform: string;
852
870
  pleaseAddTheFollowingTaxIds: string;
@@ -865,6 +883,7 @@ export declare const Element: ({ resources, ...props }: object & {
865
883
  saveRate: string;
866
884
  security: string;
867
885
  shipmentStatus: string;
886
+ shipFromAddress: string;
868
887
  system: string;
869
888
  unknown: string;
870
889
  validation: string;
@@ -878,6 +897,8 @@ export declare const Element: ({ resources, ...props }: object & {
878
897
  shipmentId: string;
879
898
  labelId: string;
880
899
  labelIdFilter: string;
900
+ filteredTrackingStatus: string;
901
+ more: string;
881
902
  createdDate: string;
882
903
  shipmentIdFilter: string;
883
904
  createdDateFilter: string;
@@ -109,6 +109,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
109
109
  thisMonth: string;
110
110
  lastMonth: string;
111
111
  };
112
+ category: {
113
+ fundsAdded: string;
114
+ };
112
115
  };
113
116
  "void-label": {
114
117
  title: string;
@@ -744,23 +747,23 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
744
747
  * shipping label is completed.
745
748
  */
746
749
  inTransit: string;
750
+ in_transit: string;
747
751
  delivered: string;
748
752
  error: string;
753
+ voided: string;
749
754
  };
750
755
  actions: {
751
756
  title: string;
752
- print: string;
757
+ print: string; /**
758
+ * `onSuccess` is a callback function that will be invoked when the request to void a given
759
+ * shipping label is successful.
760
+ */
753
761
  void: string;
754
762
  printForms: string;
755
763
  };
756
764
  errorMessages: {
757
765
  title: string;
758
- subtitle: string; /**
759
- * `onViewShipment` is a callback function that will be invoked when the user clicks the
760
- * `View Shipment` button. This will take you back to the
761
- * {@link ShipmentSummary.Element | `Shipment Summary Element`} for the given shipment, where you
762
- * will be able to see the voided label listed.
763
- */
766
+ subtitle: string;
764
767
  };
765
768
  };
766
769
  "connect-carrier": {
@@ -770,6 +773,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
770
773
  connectCarriers: string;
771
774
  disconnect: string;
772
775
  disconnectCarrier: string;
776
+ downloadEula: string;
777
+ };
778
+ customForms: {
779
+ fedex: {
780
+ eulaName: string;
781
+ disclaimerFooter: string;
782
+ };
783
+ };
784
+ eula: {
785
+ toContinue: string;
786
+ iAgree: string;
773
787
  };
774
788
  noCarriersDescription: string;
775
789
  registrationForm: {
@@ -816,6 +830,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
816
830
  address: {
817
831
  fields: {
818
832
  name: string;
833
+ fullName: string;
819
834
  company: string;
820
835
  county: string;
821
836
  countryCode: string;
@@ -828,6 +843,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
828
843
  email: string;
829
844
  addressResidentialIndicator: string;
830
845
  };
846
+ /**
847
+ * `onComplete` is a callback function that will be invoked when the request to void a given
848
+ * shipping label is completed.
849
+ */
831
850
  noResults: string;
832
851
  subFields: {
833
852
  optional: string;
@@ -837,6 +856,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
837
856
  };
838
857
  paste: string;
839
858
  preference: {
859
+ /**
860
+ * `onSuccess` is a callback function that will be invoked when the request to void a given
861
+ * shipping label is successful.
862
+ */
840
863
  confirm: string;
841
864
  addressNotValidated: string;
842
865
  modified: string;
@@ -947,7 +970,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
947
970
  title: string;
948
971
  restriction: string;
949
972
  requirement1: string;
950
- requirement2: string;
973
+ requirement2: string; /**
974
+ * # Void Label Element Props
975
+ *
976
+ * @see {@link VoidLabel.Element | See the full type that `typeof Element` will return}
977
+ */
951
978
  requirement3: string;
952
979
  };
953
980
  };
@@ -978,6 +1005,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
978
1005
  unknown: string;
979
1006
  noRatesAvailable: string;
980
1007
  refreshAndTryAgain: string;
1008
+ updateShipFromAddress: string;
981
1009
  windsorFramework: {
982
1010
  doNotConform: string;
983
1011
  pleaseAddTheFollowingTaxIds: string;
@@ -996,6 +1024,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
996
1024
  saveRate: string;
997
1025
  security: string;
998
1026
  shipmentStatus: string;
1027
+ shipFromAddress: string;
999
1028
  system: string;
1000
1029
  unknown: string;
1001
1030
  validation: string;
@@ -1009,6 +1038,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
1009
1038
  shipmentId: string;
1010
1039
  labelId: string;
1011
1040
  labelIdFilter: string;
1041
+ filteredTrackingStatus: string;
1042
+ more: string;
1012
1043
  createdDate: string;
1013
1044
  shipmentIdFilter: string;
1014
1045
  createdDateFilter: string;
@@ -1,12 +1,10 @@
1
- import { CodedError, Currency } from "@shipengine/react-api";
1
+ import { CodedError, SE } from "@shipengine/react-api";
2
+ export type AddFundsPayload = {
3
+ fundingSourceId: string;
4
+ funds: SE.Money;
5
+ };
2
6
  export type ShipEngineCarriersProps = {
3
- addFunds?: (payload: {
4
- carrierId: string;
5
- funds: {
6
- amount: number;
7
- currency: Currency;
8
- };
9
- }) => Promise<void>;
7
+ addFunds: (payload: AddFundsPayload) => Promise<void>;
10
8
  addFundsError?: CodedError[] | null;
11
9
  isUpdateFundsError?: boolean;
12
10
  isUpdatingFunds?: boolean;
@@ -1,13 +1,10 @@
1
- import { Currency } from "@shipengine/react-api";
1
+ import { SE } from "@shipengine/react-api";
2
2
  export declare const useManageCarriers: () => {
3
3
  addFunds: (payload: {
4
- carrierId: string;
5
- funds: {
6
- amount: number;
7
- currency: Currency;
8
- };
4
+ fundingSourceId: string;
5
+ funds: SE.Money;
9
6
  }) => Promise<void>;
10
- addFundsError: import("@shipengine/react-api").CodedError[] | null;
7
+ addFundsError: SE.CodedError[] | null;
11
8
  isAddFundsSuccess: boolean;
12
9
  isAddingFunds: boolean;
13
10
  isAddingFundsError: boolean;
@@ -1,4 +1,4 @@
1
- import { CodedError, Currency } from "@shipengine/react-api";
1
+ import { CodedError, SE } from "@shipengine/react-api";
2
2
  /**
3
3
  * @namespace ManageFunding
4
4
  *
@@ -15,14 +15,9 @@ import { CodedError, Currency } from "@shipengine/react-api";
15
15
  * @see {@link ManageFundingProps | The props that are passed into the `<ManageFunding />` component}
16
16
  */
17
17
  export type ManageFundingProps = {
18
- addFunds?: (payload: {
19
- carrierId: string;
20
- funds: {
21
- amount: number;
22
- currency: Currency;
23
- };
24
- }) => Promise<void>;
18
+ addFunds?: (payload: SE.Money) => Promise<void>;
25
19
  addFundsError?: CodedError[] | null;
20
+ fundingSource?: SE.FundingSource;
26
21
  onRedirectToOnboarding?: () => void;
27
22
  };
28
- export declare const ManageFunding: ({ onRedirectToOnboarding, addFunds, addFundsError, }: ManageFundingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
23
+ export declare const ManageFunding: ({ onRedirectToOnboarding, addFunds, addFundsError, fundingSource, }: ManageFundingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -12,3 +12,4 @@ export * from "./use-scrub-errors";
12
12
  export * from "./use-toggle";
13
13
  export * from "./use-configure-shipment";
14
14
  export * from "./use-import-sales-order";
15
+ export * from "./use-balance-services";
@@ -5,7 +5,10 @@
5
5
  *
6
6
  * @see {@link DateRangeOption | The `DateRangeOption` that uses this type}
7
7
  */
8
- export type DateRange = [Date, Date];
8
+ export type DateRange = {
9
+ endDate: Date;
10
+ startDate: Date;
11
+ };
9
12
  /**
10
13
  * @internal
11
14
  *
@@ -1,5 +1,6 @@
1
1
  import { SE } from "@shipengine/react-api";
2
2
  import { PreferredRateAcknowledgementMessage, PreferredRatesResponse } from "../../types";
3
+ import { FundingOrigin } from "../use-balance-services";
3
4
  /**
4
5
  * @internal
5
6
  *
@@ -32,4 +33,4 @@ export type RateOption = Omit<SE.Rate, "warningMessages"> & {
32
33
  *
33
34
  * # Rate Options Hook
34
35
  */
35
- export declare const useRateOptions: (rates?: SE.Rate[], preferredRates?: PreferredRatesResponse, carriers?: SE.Carrier[], shipment?: SE.SalesOrderShipment, servicePoints?: SE.ServicePoint[], requireDhlTermsAcknowledgement?: boolean, windsorFrameworkEnabled?: boolean) => RateOption[];
36
+ export declare const useRateOptions: (rates?: SE.Rate[], fundingOrigin?: FundingOrigin, preferredRates?: PreferredRatesResponse, carriers?: SE.Carrier[], shipment?: SE.SalesOrderShipment, servicePoints?: SE.ServicePoint[], requireDhlTermsAcknowledgement?: boolean, windsorFrameworkEnabled?: boolean) => RateOption[];
@@ -0,0 +1,22 @@
1
+ import { CodedError, SE } from "@shipengine/react-api";
2
+ export type FundingOrigin = {
3
+ balance: number;
4
+ currency: SE.Currency;
5
+ id: string;
6
+ };
7
+ export type UseBalanceServicesReturnType = ReturnType<typeof useBalanceServices>;
8
+ /**
9
+ * The `useBalanceServices` hook retrieves and manages balance information for a carrier or funding source. If a funding source cannot be found, the hook will default to using the carrier balance associated with the provided `carrierId` as the primary source of truth.
10
+ *
11
+ * @returns `UseBalanceServicesReturnType`
12
+ */
13
+ export declare const useBalanceServices: () => {
14
+ addFundsMutation: (funds: SE.Money) => Promise<void>;
15
+ errors: {
16
+ addFundsErrors: CodedError[] | undefined;
17
+ fetchBalanceErrors: CodedError[] | undefined;
18
+ };
19
+ fundingOrigin: FundingOrigin | undefined;
20
+ isLoadingBalance: boolean;
21
+ resetAddFundsMutationState: () => void;
22
+ };
@@ -1,4 +1,8 @@
1
1
  export declare const useHelpers: () => {
2
2
  helpersReady: boolean;
3
3
  sellerOnboarded: boolean;
4
+ validateShipFromAddress: (shipFromAddress: import("..").ShipFromAddress) => {
5
+ errors: unknown;
6
+ isValid: boolean;
7
+ };
4
8
  };
@@ -18,6 +18,9 @@ declare const _default: {
18
18
  thisMonth: string;
19
19
  lastMonth: string;
20
20
  };
21
+ category: {
22
+ fundsAdded: string;
23
+ };
21
24
  };
22
25
  "void-label": {
23
26
  title: string;
@@ -614,8 +617,10 @@ declare const _default: {
614
617
  trackingStatus: {
615
618
  unknown: string;
616
619
  inTransit: string;
620
+ in_transit: string;
617
621
  delivered: string;
618
622
  error: string;
623
+ voided: string;
619
624
  };
620
625
  actions: {
621
626
  title: string;
@@ -635,6 +640,17 @@ declare const _default: {
635
640
  connectCarriers: string;
636
641
  disconnect: string;
637
642
  disconnectCarrier: string;
643
+ downloadEula: string;
644
+ };
645
+ customForms: {
646
+ fedex: {
647
+ eulaName: string;
648
+ disclaimerFooter: string;
649
+ };
650
+ };
651
+ eula: {
652
+ toContinue: string;
653
+ iAgree: string;
638
654
  };
639
655
  noCarriersDescription: string;
640
656
  registrationForm: {
@@ -681,6 +697,7 @@ declare const _default: {
681
697
  address: {
682
698
  fields: {
683
699
  name: string;
700
+ fullName: string;
684
701
  company: string;
685
702
  county: string;
686
703
  countryCode: string;
@@ -843,6 +860,7 @@ declare const _default: {
843
860
  unknown: string;
844
861
  noRatesAvailable: string;
845
862
  refreshAndTryAgain: string;
863
+ updateShipFromAddress: string;
846
864
  windsorFramework: {
847
865
  doNotConform: string;
848
866
  pleaseAddTheFollowingTaxIds: string;
@@ -861,6 +879,7 @@ declare const _default: {
861
879
  saveRate: string;
862
880
  security: string;
863
881
  shipmentStatus: string;
882
+ shipFromAddress: string;
864
883
  system: string;
865
884
  unknown: string;
866
885
  validation: string;
@@ -874,6 +893,8 @@ declare const _default: {
874
893
  shipmentId: string;
875
894
  labelId: string;
876
895
  labelIdFilter: string;
896
+ filteredTrackingStatus: string;
897
+ more: string;
877
898
  createdDate: string;
878
899
  shipmentIdFilter: string;
879
900
  createdDateFilter: string;
@@ -144,7 +144,7 @@ export type FilterableLabelColumnConfig = {
144
144
  /**
145
145
  * The name identifying the column
146
146
  */
147
- name: Extract<LabelColumnName, "shipmentId" | "labelId">;
147
+ name: Extract<LabelColumnName, "shipmentId" | "labelId" | "trackingStatus">;
148
148
  nickname?: string;
149
149
  };
150
150
  export type LabelColumnConfig = BaseLabelColumnConfig | FilterableLabelColumnConfig;
@@ -78,7 +78,7 @@ export declare const getDefaultShipFromAddress: (addresses?: ShipFromAddress[])
78
78
  * @internal
79
79
  *
80
80
  * # Address Utilities - getSavedShipFromAddressId
81
- * Gets the address ID of from the shipment if it is a saved address and not a warehouse
81
+ * Gets the address ID of the Ship From Address on the shipment if it is a saved address and not a warehouse
82
82
  *
83
83
  * @category Utilities
84
84
  */
@@ -1,5 +1,6 @@
1
1
  import { Resolver } from "@hookform/resolvers/zod";
2
2
  import { z } from "zod";
3
+ import { ShipFromAddress } from "../types";
3
4
  /**
4
5
  * @internal
5
6
  *
@@ -16,3 +17,21 @@ export declare const errorMap: z.ZodErrorMap;
16
17
  * @category Utilities
17
18
  */
18
19
  export declare const validationResolver: <T extends z.ZodType<any, any, any>>(schema: T, sensitiveValues?: string[]) => ReturnType<Resolver>;
20
+ /**
21
+ * Validates a ship-from address against the shipFromAddressFormSchema.
22
+ *
23
+ * @param shipFromAddress The ship-from address to validate.
24
+ * @returns An object indicating validation status and any error messages.
25
+ *
26
+ * @example
27
+ * const result = validateShipFromAddress(myAddress);
28
+ * if (result.isValid) {
29
+ * console.log("Address is valid.");
30
+ * } else {
31
+ * console.error("Address is invalid:", result.errors);
32
+ * }
33
+ */
34
+ export declare const validateShipFromAddress: (shipFromAddress: ShipFromAddress) => {
35
+ errors: unknown;
36
+ isValid: boolean;
37
+ };
@@ -54,6 +54,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
54
54
  thisMonth: string;
55
55
  lastMonth: string;
56
56
  };
57
+ category: {
58
+ fundsAdded: string;
59
+ };
57
60
  };
58
61
  "void-label": {
59
62
  title: string;
@@ -650,8 +653,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
650
653
  trackingStatus: {
651
654
  unknown: string;
652
655
  inTransit: string;
656
+ in_transit: string;
653
657
  delivered: string;
654
658
  error: string;
659
+ voided: string;
655
660
  };
656
661
  actions: {
657
662
  title: string;
@@ -671,6 +676,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
671
676
  connectCarriers: string;
672
677
  disconnect: string;
673
678
  disconnectCarrier: string;
679
+ downloadEula: string;
680
+ };
681
+ customForms: {
682
+ fedex: {
683
+ eulaName: string;
684
+ disclaimerFooter: string;
685
+ };
686
+ };
687
+ eula: {
688
+ toContinue: string;
689
+ iAgree: string;
674
690
  };
675
691
  noCarriersDescription: string;
676
692
  registrationForm: {
@@ -717,6 +733,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
717
733
  address: {
718
734
  fields: {
719
735
  name: string;
736
+ fullName: string;
720
737
  company: string;
721
738
  county: string;
722
739
  countryCode: string;
@@ -879,6 +896,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
879
896
  unknown: string;
880
897
  noRatesAvailable: string;
881
898
  refreshAndTryAgain: string;
899
+ updateShipFromAddress: string;
882
900
  windsorFramework: {
883
901
  doNotConform: string;
884
902
  pleaseAddTheFollowingTaxIds: string;
@@ -897,6 +915,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
897
915
  saveRate: string;
898
916
  security: string;
899
917
  shipmentStatus: string;
918
+ shipFromAddress: string;
900
919
  system: string;
901
920
  unknown: string;
902
921
  validation: string;
@@ -910,6 +929,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
910
929
  shipmentId: string;
911
930
  labelId: string;
912
931
  labelIdFilter: string;
932
+ filteredTrackingStatus: string;
933
+ more: string;
913
934
  createdDate: string;
914
935
  shipmentIdFilter: string;
915
936
  createdDateFilter: string;