@shipengine/elements 2.8.1 → 2.9.1

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 (37) hide show
  1. package/actions-menu.js +1 -1
  2. package/package.json +1 -1
  3. package/src/components/field/select/select.d.ts +1 -1
  4. package/src/components/grid-filters/components/index.d.ts +1 -0
  5. package/src/components/grid-filters/components/label-id-filter/index.d.ts +1 -0
  6. package/src/components/grid-filters/components/label-id-filter/label-id-filter-shema.d.ts +9 -0
  7. package/src/components/grid-filters/components/label-id-filter/label-id-filter.d.ts +23 -0
  8. package/src/components/grid-filters/components/label-id-filter/label-id-filter.styles.d.ts +7 -0
  9. package/src/components/grid-filters/grid-filters.d.ts +1 -0
  10. package/src/components/templates/shipment-form/shipment-form.styles.d.ts +10 -0
  11. package/src/elements/label-layout/label-layout-element.d.ts +5 -0
  12. package/src/elements/labels-grid/hooks/use-labels-grid.d.ts +66 -22
  13. package/src/elements/labels-grid/labels-grid.d.ts +12 -9
  14. package/src/elements/manage-carriers/manage-carriers.d.ts +5 -0
  15. package/src/elements/manage-external-carriers/manage-external-carriers.d.ts +5 -0
  16. package/src/elements/manage-funding/manage-funding-element.d.ts +5 -0
  17. package/src/elements/manage-warehouses/manage-warehouses.d.ts +5 -0
  18. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +5 -0
  19. package/src/elements/purchase-label/hooks/use-get-or-create-shipment.d.ts +1 -1
  20. package/src/elements/purchase-label/purchase-label.d.ts +5 -0
  21. package/src/elements/shipment-summary/shipment-summary.d.ts +9 -0
  22. package/src/elements/shipments-grid/shipments-grid.d.ts +30 -17
  23. package/src/elements/theme-creator/theme-creator.d.ts +5 -0
  24. package/src/elements/transaction-history/transaction-history-element.d.ts +5 -0
  25. package/src/elements/unit-settings/unit-settings-element.d.ts +5 -0
  26. package/src/elements/vat-settings/vat-settings-element.d.ts +5 -0
  27. package/src/elements/void-label/void-label.d.ts +5 -0
  28. package/src/hooks/options/use-warehouse-options.d.ts +0 -1
  29. package/src/locales/en/index.d.ts +5 -0
  30. package/src/workflows/account-settings/account-settings.d.ts +5 -0
  31. package/src/workflows/carrier-services/carrier-services.d.ts +5 -0
  32. package/src/workflows/connect-external-carrier/connect-external-carrier.d.ts +5 -0
  33. package/src/workflows/onboarding/onboarding.d.ts +6 -1
  34. package/transaction-history-element.js +1 -1
  35. package/use-scrub-errors.js +1 -1
  36. package/use-unit-settings.js +1 -1
  37. package/usePager.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/elements",
3
- "version": "2.8.1",
3
+ "version": "2.9.1",
4
4
  "peerDependencies": {
5
5
  "@emotion/react": "11.x",
6
6
  "react-i18next": "11.x",
@@ -8,7 +8,7 @@ export type SelectOption = {
8
8
  value: string;
9
9
  };
10
10
  type SelectProps = {
11
- onChange?: (value?: string) => void;
11
+ onSelectChange?: (value?: string) => void;
12
12
  options?: SelectOption[];
13
13
  };
14
14
  export declare const Select: ControlledField<NativeSelectProps, SelectProps>;
@@ -1,2 +1,3 @@
1
1
  export { ShipmentIdFilter } from "./shipment-id-filter";
2
2
  export { CreatedDateFilter } from "./created-date-filter";
3
+ export { LabelIdFilter } from "./label-id-filter";
@@ -0,0 +1 @@
1
+ export { LabelIdFilter } from "./label-id-filter";
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+ export declare const labelIdFormSchema: z.ZodObject<{
3
+ labelId: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ labelId: string;
6
+ }, {
7
+ labelId: string;
8
+ }>;
9
+ export type LabelIdFormFields = z.input<typeof labelIdFormSchema>;
@@ -0,0 +1,23 @@
1
+ import { IGridFilters } from "../../grid-filters";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Label Id Filter Props
6
+ *
7
+ * @see {@link LabelIdFilter | The `<LabelIdFilter />` component}
8
+ */
9
+ type LabelIdFilterProps = {
10
+ filters: IGridFilters;
11
+ onFiltersUpdated: (params: IGridFilters) => void;
12
+ };
13
+ /**
14
+ * @internal
15
+ *
16
+ * # LabelIdFilter
17
+ *
18
+ * - The `<LabelIdFilter />` component handle label id filter used in Labels Grid.
19
+ *
20
+ * @see {@link LabelIdFilterProps | The props for the `<LabelIdFilter />` component}
21
+ */
22
+ export declare const LabelIdFilter: ({ filters, onFiltersUpdated }: LabelIdFilterProps) => import("@emotion/react/jsx-runtime").JSX.Element;
23
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const styles: {
2
+ getButtons: (theme: any) => {
3
+ display: "flex";
4
+ gap: any;
5
+ justifyContent: "flex-end";
6
+ };
7
+ };
@@ -19,6 +19,7 @@ export interface IGridFilters {
19
19
  end: Date;
20
20
  start: Date;
21
21
  }>;
22
+ labelId?: IGridFilter<string>;
22
23
  shipmentId: IGridFilter<string>;
23
24
  }
24
25
  /**
@@ -2,6 +2,16 @@ export declare const styles: {
2
2
  header: {
3
3
  textAlign: "left";
4
4
  };
5
+ shipFromEditButton: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
6
+ border: number;
7
+ fontWeight: number;
8
+ marginTop: number;
9
+ };
10
+ shipFromSelectContainer: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
11
+ display: "flex";
12
+ gap: number;
13
+ justifyContent: "space-between";
14
+ };
5
15
  well: (theme: import("@shipengine/giger-theme/dist/lib/Theme").Theme) => {
6
16
  backgroundColor: string;
7
17
  padding: number;
@@ -552,6 +552,7 @@ export declare const Element: ({ resources, ...props }: object & {
552
552
  shipDate: string;
553
553
  status: string;
554
554
  trackingStatus: string;
555
+ labelId: string;
555
556
  };
556
557
  empty: {
557
558
  title: string;
@@ -805,6 +806,8 @@ export declare const Element: ({ resources, ...props }: object & {
805
806
  rows: string;
806
807
  clearAll: string;
807
808
  shipmentId: string;
809
+ labelId: string;
810
+ labelIdFilter: string;
808
811
  createdDate: string;
809
812
  shipmentIdFilter: string;
810
813
  createdDateFilter: string;
@@ -812,6 +815,7 @@ export declare const Element: ({ resources, ...props }: object & {
812
815
  clear: string;
813
816
  search: string;
814
817
  shipmentIdHint: string;
818
+ labelIdHint: string;
815
819
  dateFilterToday: string;
816
820
  dateFilterLast7Days: string;
817
821
  dateFilterLast30Days: string;
@@ -893,6 +897,7 @@ export declare const Element: ({ resources, ...props }: object & {
893
897
  tooFewCharacters: string;
894
898
  tooManyCharacters: string;
895
899
  requiredShipmentId: string;
900
+ requiredLabelId: string;
896
901
  };
897
902
  shippingPresets: {
898
903
  apply: string;
@@ -1,9 +1,53 @@
1
- /// <reference types="react" />
1
+ import { SE } from "@shipengine/react-api";
2
2
  import { LabelsGridProps } from "../";
3
3
  import { IGridFilters } from "../../../components";
4
- export declare const useLabelsGrid: ({ labelStatus, showShipmentIdFilter }: LabelsGridProps) => {
4
+ export declare const useLabelsGrid: ({ labelStatus, showShipmentIdFilter, showLabelIdFilter, }: Pick<LabelsGridProps, "labelStatus" | "showShipmentIdFilter" | "showLabelIdFilter">) => {
5
5
  clearAllFilters: () => void;
6
6
  filters: IGridFilters;
7
+ getGridData: () => {
8
+ serviceName: string | null | undefined;
9
+ alternativeIdentifiers?: string[] | undefined;
10
+ batchId: string;
11
+ carrierCode: string;
12
+ carrierId: string;
13
+ chargeEvent: SE.LabelChargeEvent;
14
+ createdAt: string;
15
+ displayScheme: SE.LabelDisplayScheme;
16
+ formDownload: SE.LinkedResource;
17
+ insuranceClaim: SE.LinkedResource;
18
+ insuranceCost: SE.Money;
19
+ isInternational: boolean;
20
+ isReturnLabel: boolean;
21
+ labelDownload: SE.Download;
22
+ labelFormat: SE.LabelFormat;
23
+ labelId: string;
24
+ labelImageId: string;
25
+ labelLayout: SE.LabelLayout;
26
+ packageCode: string;
27
+ packages: SE.ShipmentPackage[];
28
+ paperlessDownload: SE.PaperlessDownload | null;
29
+ qrCodeDownload?: SE.LinkedResource | undefined;
30
+ rateDetails: SE.RateDetail[];
31
+ relayPoints: {
32
+ shipFrom: SE.RelayPoint;
33
+ shipTo: SE.RelayPoint;
34
+ };
35
+ requestedComparisonAmount?: SE.Money | undefined;
36
+ rmaNumber: string;
37
+ serviceCode: string;
38
+ shipDate: string;
39
+ shipmentCost: SE.Money;
40
+ shipmentId: string;
41
+ shippingRuleId: string | null;
42
+ shipTo: SE.Address;
43
+ status: SE.LabelStatus;
44
+ trackable: boolean;
45
+ trackingNumber: string;
46
+ trackingStatus: SE.LabelTrackingStatus;
47
+ trackingUrl: string;
48
+ voided: boolean;
49
+ voidedAt: string | null;
50
+ }[];
7
51
  isAnyFilterActive: boolean;
8
52
  isError: boolean;
9
53
  isLoading: boolean;
@@ -13,40 +57,40 @@ export declare const useLabelsGrid: ({ labelStatus, showShipmentIdFilter }: Labe
13
57
  batchId: string;
14
58
  carrierCode: string;
15
59
  carrierId: string;
16
- chargeEvent: import("@shipengine/react-api").LabelChargeEvent;
60
+ chargeEvent: SE.LabelChargeEvent;
17
61
  createdAt: string;
18
- displayScheme: import("@shipengine/react-api").LabelDisplayScheme;
19
- formDownload: import("@shipengine/react-api").LinkedResource;
20
- insuranceClaim: import("@shipengine/react-api").LinkedResource;
21
- insuranceCost: import("@shipengine/react-api").Money;
62
+ displayScheme: SE.LabelDisplayScheme;
63
+ formDownload: SE.LinkedResource;
64
+ insuranceClaim: SE.LinkedResource;
65
+ insuranceCost: SE.Money;
22
66
  isInternational: boolean;
23
67
  isReturnLabel: boolean;
24
- labelDownload: import("@shipengine/react-api").Download;
25
- labelFormat: import("@shipengine/react-api").LabelFormat;
68
+ labelDownload: SE.Download;
69
+ labelFormat: SE.LabelFormat;
26
70
  labelId: string;
27
71
  labelImageId: string;
28
- labelLayout: import("@shipengine/react-api").LabelLayout;
72
+ labelLayout: SE.LabelLayout;
29
73
  packageCode: string;
30
- packages: import("@shipengine/react-api").ShipmentPackage[];
31
- paperlessDownload: import("@shipengine/react-api").PaperlessDownload | null;
32
- qrCodeDownload?: import("@shipengine/react-api").LinkedResource | undefined;
33
- rateDetails: import("@shipengine/react-api").RateDetail[];
74
+ packages: SE.ShipmentPackage[];
75
+ paperlessDownload: SE.PaperlessDownload | null;
76
+ qrCodeDownload?: SE.LinkedResource | undefined;
77
+ rateDetails: SE.RateDetail[];
34
78
  relayPoints: {
35
- shipFrom: import("@shipengine/react-api").RelayPoint;
36
- shipTo: import("@shipengine/react-api").RelayPoint;
79
+ shipFrom: SE.RelayPoint;
80
+ shipTo: SE.RelayPoint;
37
81
  };
38
- requestedComparisonAmount?: import("@shipengine/react-api").Money | undefined;
82
+ requestedComparisonAmount?: SE.Money | undefined;
39
83
  rmaNumber: string;
40
84
  serviceCode: string;
41
85
  shipDate: string;
42
- shipmentCost: import("@shipengine/react-api").Money;
86
+ shipmentCost: SE.Money;
43
87
  shipmentId: string;
44
88
  shippingRuleId: string | null;
45
- shipTo: import("@shipengine/react-api").Address;
46
- status: import("@shipengine/react-api").LabelStatus;
89
+ shipTo: SE.Address;
90
+ status: SE.LabelStatus;
47
91
  trackable: boolean;
48
92
  trackingNumber: string;
49
- trackingStatus: import("@shipengine/react-api").LabelTrackingStatus;
93
+ trackingStatus: SE.LabelTrackingStatus;
50
94
  trackingUrl: string;
51
95
  voided: boolean;
52
96
  voidedAt: string | null;
@@ -64,6 +108,6 @@ export declare const useLabelsGrid: ({ labelStatus, showShipmentIdFilter }: Labe
64
108
  showPagination: boolean;
65
109
  totalElements: number;
66
110
  };
67
- setFilters: import("react").Dispatch<import("react").SetStateAction<IGridFilters>>;
111
+ setFilters: (newFilters: IGridFilters) => void;
68
112
  shouldShowFilters: boolean;
69
113
  };
@@ -30,12 +30,16 @@ export type LabelsGridProps = {
30
30
  * `onRowClick` callback invoked when a row is clicked.
31
31
  */
32
32
  onRowClick?: (label: SE.Label) => void;
33
+ /**
34
+ * `showLabelIdFilter` controls the display of the label Id search filter
35
+ */
36
+ showLabelIdFilter?: boolean;
33
37
  /**
34
38
  * `showShipmentIdFilter` controls the display of the shipmentId search filter
35
39
  */
36
40
  showShipmentIdFilter?: boolean;
37
41
  };
38
- export declare const Component: ({ labelStatus, showShipmentIdFilter, onClickPrintLabel, onClickVoidLabel, onClickPrintForms, onClickViewDetails, onRowClick, }: LabelsGridProps) => import("@emotion/react/jsx-runtime").JSX.Element;
42
+ export declare const Component: ({ labelStatus, showShipmentIdFilter, showLabelIdFilter, onClickPrintLabel, onClickVoidLabel, onClickPrintForms, onClickViewDetails, onRowClick, }: LabelsGridProps) => import("@emotion/react/jsx-runtime").JSX.Element;
39
43
  export declare const Element: ({ resources, ...props }: LabelsGridProps & {
40
44
  resources?: {
41
45
  en: {
@@ -594,6 +598,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
594
598
  shipDate: string;
595
599
  status: string;
596
600
  trackingStatus: string;
601
+ labelId: string;
597
602
  };
598
603
  empty: {
599
604
  title: string;
@@ -605,10 +610,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
605
610
  button: string;
606
611
  };
607
612
  status: {
608
- voided: string; /**
609
- * `labelStatus` is the status of the labels you wish to view.
610
- * If no value is defined, all labels will be rendered.
611
- */
613
+ voided: string;
612
614
  error: string;
613
615
  completed: string;
614
616
  processing: string;
@@ -622,10 +624,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
622
624
  actions: {
623
625
  title: string;
624
626
  print: string;
625
- void: string; /**
626
- * `onClickPrintLabel` is an optional callback function that will be invoked when the user clicks the
627
- * `Print Label` button.
628
- */
627
+ void: string;
629
628
  printForms: string;
630
629
  };
631
630
  errorMessages: {
@@ -856,6 +855,8 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
856
855
  rows: string;
857
856
  clearAll: string;
858
857
  shipmentId: string;
858
+ labelId: string;
859
+ labelIdFilter: string;
859
860
  createdDate: string;
860
861
  shipmentIdFilter: string;
861
862
  createdDateFilter: string;
@@ -863,6 +864,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
863
864
  clear: string;
864
865
  search: string;
865
866
  shipmentIdHint: string;
867
+ labelIdHint: string;
866
868
  dateFilterToday: string;
867
869
  dateFilterLast7Days: string;
868
870
  dateFilterLast30Days: string;
@@ -944,6 +946,7 @@ export declare const Element: ({ resources, ...props }: LabelsGridProps & {
944
946
  tooFewCharacters: string;
945
947
  tooManyCharacters: string;
946
948
  requiredShipmentId: string;
949
+ requiredLabelId: string;
947
950
  };
948
951
  shippingPresets: {
949
952
  apply: string;
@@ -598,6 +598,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
598
598
  shipDate: string;
599
599
  status: string;
600
600
  trackingStatus: string;
601
+ labelId: string;
601
602
  };
602
603
  empty: {
603
604
  title: string;
@@ -873,6 +874,8 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
873
874
  rows: string;
874
875
  clearAll: string;
875
876
  shipmentId: string;
877
+ labelId: string;
878
+ labelIdFilter: string;
876
879
  createdDate: string;
877
880
  shipmentIdFilter: string;
878
881
  createdDateFilter: string;
@@ -880,6 +883,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
880
883
  clear: string;
881
884
  search: string;
882
885
  shipmentIdHint: string;
886
+ labelIdHint: string;
883
887
  dateFilterToday: string;
884
888
  dateFilterLast7Days: string;
885
889
  dateFilterLast30Days: string;
@@ -961,6 +965,7 @@ export declare const Element: ({ resources, ...props }: ShipEngineCarriersProps
961
965
  tooFewCharacters: string;
962
966
  tooManyCharacters: string;
963
967
  requiredShipmentId: string;
968
+ requiredLabelId: string;
964
969
  };
965
970
  shippingPresets: {
966
971
  apply: string;
@@ -619,6 +619,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
619
619
  shipDate: string;
620
620
  status: string;
621
621
  trackingStatus: string;
622
+ labelId: string;
622
623
  };
623
624
  empty: {
624
625
  title: string;
@@ -872,6 +873,8 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
872
873
  rows: string;
873
874
  clearAll: string;
874
875
  shipmentId: string;
876
+ labelId: string;
877
+ labelIdFilter: string;
875
878
  createdDate: string;
876
879
  shipmentIdFilter: string;
877
880
  createdDateFilter: string;
@@ -879,6 +882,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
879
882
  clear: string;
880
883
  search: string;
881
884
  shipmentIdHint: string;
885
+ labelIdHint: string;
882
886
  dateFilterToday: string;
883
887
  dateFilterLast7Days: string;
884
888
  dateFilterLast30Days: string;
@@ -960,6 +964,7 @@ export declare const Element: ({ resources, ...props }: ExternalCarriersProps &
960
964
  tooFewCharacters: string;
961
965
  tooManyCharacters: string;
962
966
  requiredShipmentId: string;
967
+ requiredLabelId: string;
963
968
  };
964
969
  shippingPresets: {
965
970
  apply: string;
@@ -553,6 +553,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
553
553
  shipDate: string;
554
554
  status: string;
555
555
  trackingStatus: string;
556
+ labelId: string;
556
557
  };
557
558
  empty: {
558
559
  title: string;
@@ -806,6 +807,8 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
806
807
  rows: string;
807
808
  clearAll: string;
808
809
  shipmentId: string;
810
+ labelId: string;
811
+ labelIdFilter: string;
809
812
  createdDate: string;
810
813
  shipmentIdFilter: string;
811
814
  createdDateFilter: string;
@@ -813,6 +816,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
813
816
  clear: string;
814
817
  search: string;
815
818
  shipmentIdHint: string;
819
+ labelIdHint: string;
816
820
  dateFilterToday: string;
817
821
  dateFilterLast7Days: string;
818
822
  dateFilterLast30Days: string;
@@ -894,6 +898,7 @@ export declare const Element: ({ resources, ...props }: ManageFundingProps & {
894
898
  tooFewCharacters: string;
895
899
  tooManyCharacters: string;
896
900
  requiredShipmentId: string;
901
+ requiredLabelId: string;
897
902
  };
898
903
  shippingPresets: {
899
904
  apply: string;
@@ -570,6 +570,7 @@ export declare const Element: ({ resources, ...props }: object & {
570
570
  shipDate: string;
571
571
  status: string;
572
572
  trackingStatus: string;
573
+ labelId: string;
573
574
  };
574
575
  empty: {
575
576
  title: string;
@@ -840,6 +841,8 @@ export declare const Element: ({ resources, ...props }: object & {
840
841
  rows: string;
841
842
  clearAll: string;
842
843
  shipmentId: string;
844
+ labelId: string;
845
+ labelIdFilter: string;
843
846
  createdDate: string;
844
847
  shipmentIdFilter: string;
845
848
  createdDateFilter: string;
@@ -847,6 +850,7 @@ export declare const Element: ({ resources, ...props }: object & {
847
850
  clear: string;
848
851
  search: string;
849
852
  shipmentIdHint: string;
853
+ labelIdHint: string;
850
854
  dateFilterToday: string;
851
855
  dateFilterLast7Days: string;
852
856
  dateFilterLast30Days: string;
@@ -928,6 +932,7 @@ export declare const Element: ({ resources, ...props }: object & {
928
932
  tooFewCharacters: string;
929
933
  tooManyCharacters: string;
930
934
  requiredShipmentId: string;
935
+ requiredLabelId: string;
931
936
  };
932
937
  shippingPresets: {
933
938
  apply: string;
@@ -553,6 +553,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
553
553
  shipDate: string;
554
554
  status: string;
555
555
  trackingStatus: string;
556
+ labelId: string;
556
557
  };
557
558
  empty: {
558
559
  title: string;
@@ -806,6 +807,8 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
806
807
  rows: string;
807
808
  clearAll: string;
808
809
  shipmentId: string;
810
+ labelId: string;
811
+ labelIdFilter: string;
809
812
  createdDate: string;
810
813
  shipmentIdFilter: string;
811
814
  createdDateFilter: string;
@@ -813,6 +816,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
813
816
  clear: string;
814
817
  search: string;
815
818
  shipmentIdHint: string;
819
+ labelIdHint: string;
816
820
  dateFilterToday: string;
817
821
  dateFilterLast7Days: string;
818
822
  dateFilterLast30Days: string;
@@ -894,6 +898,7 @@ export declare const Element: ({ resources, ...props }: PaymentMethodSettingsPro
894
898
  tooFewCharacters: string;
895
899
  tooManyCharacters: string;
896
900
  requiredShipmentId: string;
901
+ requiredLabelId: string;
897
902
  };
898
903
  shippingPresets: {
899
904
  apply: string;
@@ -8,6 +8,6 @@ export type UseGetOrCreateShipmentProps = {
8
8
  export declare const useGetOrCreateShipment: ({ externalShipmentId, shipmentId, onShipmentUpdated, }: UseGetOrCreateShipmentProps) => {
9
9
  errors: SE.CodedError[] | undefined;
10
10
  isLoading: boolean;
11
- refetchShipment: <TPageData>(options?: (import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<SE.SalesOrderShipment, SE.CodedError[]>>;
11
+ refetchShipment: () => Promise<void>;
12
12
  shipment: SE.SalesOrderShipment;
13
13
  };
@@ -749,6 +749,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
749
749
  shipDate: string;
750
750
  status: string;
751
751
  trackingStatus: string;
752
+ labelId: string;
752
753
  };
753
754
  empty: {
754
755
  title: string;
@@ -1016,6 +1017,8 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
1016
1017
  rows: string;
1017
1018
  clearAll: string;
1018
1019
  shipmentId: string;
1020
+ labelId: string;
1021
+ labelIdFilter: string;
1019
1022
  createdDate: string;
1020
1023
  shipmentIdFilter: string;
1021
1024
  createdDateFilter: string;
@@ -1023,6 +1026,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
1023
1026
  clear: string;
1024
1027
  search: string;
1025
1028
  shipmentIdHint: string;
1029
+ labelIdHint: string;
1026
1030
  dateFilterToday: string;
1027
1031
  dateFilterLast7Days: string;
1028
1032
  dateFilterLast30Days: string;
@@ -1104,6 +1108,7 @@ export declare const Element: ({ resources, ...props }: ElementProps & {
1104
1108
  tooFewCharacters: string;
1105
1109
  tooManyCharacters: string;
1106
1110
  requiredShipmentId: string;
1111
+ requiredLabelId: string;
1107
1112
  };
1108
1113
  shippingPresets: {
1109
1114
  apply: string;
@@ -650,6 +650,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
650
650
  shipDate: string;
651
651
  status: string;
652
652
  trackingStatus: string;
653
+ labelId: string;
653
654
  };
654
655
  empty: {
655
656
  title: string;
@@ -676,6 +677,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
676
677
  title: string;
677
678
  print: string;
678
679
  void: string;
680
+ /**
681
+ * `onClickPurchaseLabel` is a callback function that will be invoked when the user clicks the
682
+ * `Purchase Label` button.
683
+ */
679
684
  printForms: string;
680
685
  };
681
686
  errorMessages: {
@@ -905,6 +910,8 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
905
910
  rows: string;
906
911
  clearAll: string;
907
912
  shipmentId: string;
913
+ labelId: string;
914
+ labelIdFilter: string;
908
915
  createdDate: string;
909
916
  shipmentIdFilter: string;
910
917
  createdDateFilter: string;
@@ -912,6 +919,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
912
919
  clear: string;
913
920
  search: string;
914
921
  shipmentIdHint: string;
922
+ labelIdHint: string;
915
923
  dateFilterToday: string;
916
924
  dateFilterLast7Days: string;
917
925
  dateFilterLast30Days: string;
@@ -993,6 +1001,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
993
1001
  tooFewCharacters: string;
994
1002
  tooManyCharacters: string;
995
1003
  requiredShipmentId: string;
1004
+ requiredLabelId: string;
996
1005
  };
997
1006
  shippingPresets: {
998
1007
  apply: string;