@shipengine/elements 0.34.0 → 0.36.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 (100) hide show
  1. package/index.cjs +2019 -577
  2. package/index.js +2012 -578
  3. package/package.json +1 -1
  4. package/src/components/add-funds-form/add-funds-form.d.ts +20 -2
  5. package/src/components/add-funds-form/add-funds-schema.d.ts +26 -0
  6. package/src/components/address-preference-context/address-preference-context.d.ts +8 -0
  7. package/src/components/auto-funding-form/auto-funding-form.d.ts +22 -0
  8. package/src/components/auto-funding-form/auto-funding-schema.d.ts +17 -0
  9. package/src/components/button-group/button-group.d.ts +29 -0
  10. package/src/components/carrier-balance/carrier-balance.d.ts +23 -0
  11. package/src/components/collapsible-panel/collapsible-panel.d.ts +32 -0
  12. package/src/components/copy/copy-button.d.ts +4 -0
  13. package/src/components/cube/cube.d.ts +16 -0
  14. package/src/components/date-range-combo/date-range-combo.d.ts +14 -0
  15. package/src/components/date-range-select/date-range-select.d.ts +6 -0
  16. package/src/components/error-fallback/error-fallback.d.ts +12 -1
  17. package/src/components/field-label/field-label.d.ts +10 -0
  18. package/src/components/form-portal/form-portal.d.ts +9 -0
  19. package/src/components/fund-and-purchase/fund-and-purchase.d.ts +13 -0
  20. package/src/components/inline-label/inline-label.d.ts +10 -0
  21. package/src/components/items-breakdown/items-breakdown.d.ts +15 -0
  22. package/src/components/label-layout/label-layout.d.ts +5 -0
  23. package/src/components/link-action/link-action.d.ts +10 -0
  24. package/src/components/loader/loader.d.ts +5 -0
  25. package/src/components/manage-funding/manage-funding.d.ts +26 -0
  26. package/src/components/payment-method-settings/payment-method-settings.d.ts +19 -0
  27. package/src/components/portal/portal.d.ts +10 -1
  28. package/src/components/powered-by-shipengine/powered-by-shipengine.d.ts +8 -0
  29. package/src/components/section/section.d.ts +10 -0
  30. package/src/components/spacer/spacer.d.ts +30 -0
  31. package/src/components/spread/spread.d.ts +10 -0
  32. package/src/components/story-notes/story-notes.d.ts +10 -1
  33. package/src/components/templates/rate-form/rate-form.d.ts +2 -2
  34. package/src/components/templates/shipment-form/shipment-form.d.ts +2 -1
  35. package/src/components/templates/shipment-form/shipment-schema.d.ts +179 -17
  36. package/src/components/unit-settings/unit-settings.d.ts +5 -0
  37. package/src/constants/shipengine/address.d.ts +75 -0
  38. package/src/elements/account-settings/account-settings.d.ts +136 -1
  39. package/src/elements/configure-shipment/configure-shipment.d.ts +1 -0
  40. package/src/elements/configure-shipment/hooks/use-rates-form.d.ts +2 -2
  41. package/src/elements/configure-shipment/hooks/use-rates-with-cache.d.ts +1 -1
  42. package/src/elements/configure-shipment/hooks/use-request-rates.d.ts +1 -1
  43. package/src/elements/configure-shipment/hooks/use-shipment-form.d.ts +1 -0
  44. package/src/elements/list-carriers/list-carriers.d.ts +31 -0
  45. package/src/elements/manage-warehouses/manage-warehouses.d.ts +34 -0
  46. package/src/elements/onboarding/onboarding.d.ts +93 -2
  47. package/src/elements/purchase-label/purchase-label.d.ts +191 -7
  48. package/src/elements/shipengine-workflow/label-workflow.d.ts +138 -2
  49. package/src/elements/view-shipment/view-shipment.d.ts +128 -2
  50. package/src/elements/void-label/void-label.d.ts +134 -3
  51. package/src/extensions/zod.d.ts +5 -0
  52. package/src/factories/shipengine/package.d.ts +11 -0
  53. package/src/features/wallet-history/wallet-history.d.ts +5 -0
  54. package/src/hooks/index.d.ts +1 -0
  55. package/src/hooks/options/use-confirmation-options.d.ts +7 -0
  56. package/src/hooks/options/use-country-code-options.d.ts +16 -3
  57. package/src/hooks/options/use-customs-contents-options.d.ts +7 -0
  58. package/src/hooks/options/use-customs-non-delivery-options.d.ts +7 -0
  59. package/src/hooks/options/use-date-range-options.d.ts +22 -1
  60. package/src/hooks/options/use-expiration-month-options.d.ts +7 -0
  61. package/src/hooks/options/use-insurance-provider-options.d.ts +7 -0
  62. package/src/hooks/options/use-package-options.d.ts +7 -0
  63. package/src/hooks/options/use-rate-options.d.ts +11 -1
  64. package/src/hooks/options/use-service-code-options.d.ts +7 -0
  65. package/src/hooks/options/use-shipment-metadata.d.ts +8 -0
  66. package/src/hooks/options/use-shipping-presets-options.d.ts +10 -0
  67. package/src/hooks/options/use-state-code-options.d.ts +7 -0
  68. package/src/hooks/options/use-warehouse-options.d.ts +7 -0
  69. package/src/hooks/use-address-validation.d.ts +7 -0
  70. package/src/hooks/use-black-box-detection.d.ts +17 -1
  71. package/src/hooks/use-carrier-metadata.d.ts +7 -0
  72. package/src/hooks/use-nested-form.d.ts +9 -0
  73. package/src/hooks/use-page-layout.d.ts +25 -1
  74. package/src/hooks/use-root-portal.d.ts +15 -2
  75. package/src/hooks/use-run-once-on-true.d.ts +5 -1
  76. package/src/hooks/use-scrub-errors.d.ts +6 -3
  77. package/src/hooks/use-toggle.d.ts +5 -1
  78. package/src/locales/en/index.d.ts +8 -1
  79. package/src/schemas/shipengine/money.d.ts +4 -0
  80. package/src/schemas/shipengine/phone.d.ts +8 -0
  81. package/src/types/carrier-metadata.d.ts +20 -0
  82. package/src/utilities/create-dictionary.d.ts +4 -0
  83. package/src/utilities/date.d.ts +51 -2
  84. package/src/utilities/error.d.ts +16 -2
  85. package/src/utilities/feature-flags.d.ts +181 -0
  86. package/src/utilities/form-logger.d.ts +4 -0
  87. package/src/utilities/index.d.ts +1 -1
  88. package/src/utilities/money.d.ts +25 -0
  89. package/src/utilities/predicates/isString.d.ts +7 -0
  90. package/src/utilities/rates.d.ts +22 -1
  91. package/src/utilities/shipengine/address.d.ts +31 -0
  92. package/src/utilities/shipengine/carrier.d.ts +21 -0
  93. package/src/utilities/shipengine/dimensions.d.ts +27 -4
  94. package/src/utilities/shipengine/package.d.ts +4 -0
  95. package/src/utilities/shipengine/sales-order.d.ts +26 -0
  96. package/src/utilities/shipengine/shipment.d.ts +12 -0
  97. package/src/utilities/shipengine/weight.d.ts +92 -2
  98. package/src/utilities/string.d.ts +7 -0
  99. package/src/utilities/styles.d.ts +4 -0
  100. package/src/utilities/validation.d.ts +8 -0
@@ -1,17 +1,100 @@
1
1
  /// <reference types="react" />
2
2
  import { SE } from "@shipengine/alchemy";
3
+ /**
4
+ * # Void Label Component Props
5
+ *
6
+ * - These are the base props that will be passed into the `<VoidLabel />` component.
7
+ *
8
+ * @see {@link VoidLabel.Component | This prop types usage in the `<VoidLabel />` component}
9
+ */
3
10
  export type ComponentProps = {
11
+ /**
12
+ * `features` is a set of feature flags you would like to enable or disable in this component.
13
+ */
4
14
  features?: {
5
15
  presentation?: {
6
16
  poweredByShipEngine?: boolean;
7
17
  };
8
18
  };
19
+ /**
20
+ * `labelId` is the unique identifier for the label you wish to void.
21
+ */
9
22
  labelId?: string;
23
+ /**
24
+ * `onComplete` is a callback function that will be invoked when the request to void a given
25
+ * shipping label is completed.
26
+ */
10
27
  onComplete: (request: SE.VoidRequest, shipment: SE.SalesOrderShipment) => void;
28
+ /**
29
+ * `onSuccess` is a callback function that will be invoked when the request to void a given
30
+ * shipping label is successful.
31
+ */
11
32
  onSuccess?: (label: SE.Label, shipment: SE.SalesOrderShipment) => void;
33
+ /**
34
+ * `onViewShipment` is a callback function that will be invoked when the user clicks the
35
+ * `View Shipment` button. This will take you back to the
36
+ * {@link ViewShipment.Element | `View Shipment Element`} for the given shipment, where you
37
+ * will be able to see the voided label listed.
38
+ */
12
39
  onViewShipment: (shipment: SE.SalesOrderShipment) => void;
13
40
  };
41
+ /**
42
+ * # Void Label Component
43
+ *
44
+ * - The `<VoidLabel />` component is used to void a given shipping label. When a label is voided,
45
+ * you then get the option to view the associated shipment via the `View Shipment` Element, or
46
+ * you can purchase another label for the shipment via the `Purchase Label` Element.
47
+ *
48
+ * @param ComponentProps The base props that will be passed into the `<VoidLabel />` component.
49
+ *
50
+ * @returns Element An EmotionJSX.Element that will render the `<VoidLabel />` component
51
+ * with all the appropriate wrappers.
52
+ *
53
+ * @example
54
+ * You can see how the `<Component />` is used in the `createElement` function call below.
55
+ * ```tsx
56
+ * export const Element = alchemy.createElement(Component, ErrorFallback, {
57
+ * css: { height: "100%", maxWidth: "800px", minWidth: "440px", width: "100%" },
58
+ * resources: { en },
59
+ * });
60
+ * ```
61
+ *
62
+ * <br />
63
+ *
64
+ * @see {@link VoidLabel.Element | The **Element** created to render `<VoidLabel />`}
65
+ */
14
66
  export declare const Component: ({ features, labelId, onComplete, onSuccess, onViewShipment, }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
67
+ /**
68
+ * # Registered Void Label Element
69
+ *
70
+ * - This is the registered `<VoidLabel />` element that will be used to render the
71
+ * `<VoidLabel.Element />` component.
72
+ *
73
+ * @param ElementProps The props, callbacks, and resources necessary to render
74
+ * the `<VoidLabel.Element />` component.
75
+ *
76
+ * @example
77
+ * The `<Component />` is the source JSX that is rendered when you make use of the `VoidLabel`
78
+ * Element directly. Here is a brief example of how you would use it within your application.
79
+ * ```tsx
80
+ * <VoidLabel.Element
81
+ * labelId="se-1234567"
82
+ * onComplete={() => console.log('onComplete')}
83
+ * onSuccess={(_, { salesOrderIds: [salesOrderId] }) =>
84
+ * console.log('sales order ID', salesOrderId)
85
+ * }
86
+ * onViewShipment={({ shipmentId }) => {
87
+ * console.log('onViewShipment', shipmentId);
88
+ * }}
89
+ * />
90
+ * ```
91
+ *
92
+ * <br />
93
+ *
94
+ * @see {@link VoidLabel.ComponentProps | The **props** that can be passed into the `<VoidLabel.Element />` component}
95
+ *
96
+ * @see {@link PurchaseLabel.Element | Go back to the frst step in the label purchase workflow `<PurchaseLabel.Element />`}
97
+ */
15
98
  export declare const Element: ({ resources, ...props }: ComponentProps & {
16
99
  resources?: {
17
100
  en: {
@@ -103,7 +186,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
103
186
  notifications: {
104
187
  error: {
105
188
  title: string;
106
- };
189
+ }; /**
190
+ * `labelId` is the unique identifier for the label you wish to void.
191
+ */
107
192
  info: {
108
193
  title: string;
109
194
  description: string;
@@ -218,6 +303,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
218
303
  rates: {
219
304
  uspsMediaMailAcknowledgement: string;
220
305
  uspsFirstClassMailAcknowledgement_leof: string;
306
+ dhlExpressTermsAcknowledgement: string;
221
307
  };
222
308
  shipToAddressFormFields: string;
223
309
  sections: {
@@ -398,7 +484,9 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
398
484
  company: string;
399
485
  countryCode: string;
400
486
  addressLine1: string;
401
- addressLine2: string;
487
+ addressLine2: string; /**
488
+ * `features` is a set of feature flags you would like to enable or disable in this component.
489
+ */
402
490
  cityLocality: string;
403
491
  stateProvince: string;
404
492
  postalCode: string;
@@ -432,6 +520,31 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
432
520
  validated: string;
433
521
  };
434
522
  };
523
+ /**
524
+ * # Void Label Component
525
+ *
526
+ * - The `<VoidLabel />` component is used to void a given shipping label. When a label is voided,
527
+ * you then get the option to view the associated shipment via the `View Shipment` Element, or
528
+ * you can purchase another label for the shipment via the `Purchase Label` Element.
529
+ *
530
+ * @param ComponentProps The base props that will be passed into the `<VoidLabel />` component.
531
+ *
532
+ * @returns Element An EmotionJSX.Element that will render the `<VoidLabel />` component
533
+ * with all the appropriate wrappers.
534
+ *
535
+ * @example
536
+ * You can see how the `<Component />` is used in the `createElement` function call below.
537
+ * ```tsx
538
+ * export const Element = alchemy.createElement(Component, ErrorFallback, {
539
+ * css: { height: "100%", maxWidth: "800px", minWidth: "440px", width: "100%" },
540
+ * resources: { en },
541
+ * });
542
+ * ```
543
+ *
544
+ * <br />
545
+ *
546
+ * @see {@link VoidLabel.Element | The **Element** created to render `<VoidLabel />`}
547
+ */
435
548
  billing: {
436
549
  fields: {
437
550
  differentBillingAddress: string;
@@ -604,11 +717,16 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
604
717
  ounces: string;
605
718
  pounds_one: string;
606
719
  pounds_other: string;
720
+ kilogram: string;
721
+ gram: string;
607
722
  };
608
723
  units: {
609
- in: string;
724
+ inch: string;
610
725
  lbs: string;
611
726
  oz: string;
727
+ centimeter: string;
728
+ gram: string;
729
+ kilogram: string;
612
730
  };
613
731
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
614
732
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
@@ -617,6 +735,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
617
735
  QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
618
736
  UGxlYXNlIGFkZCBhIFN0YW1wcy5jb20gYWNjb3VudCB0byBTaGlwRW5naW5lIGluIG9yZGVyIHRvIGNyZWF0ZSBzaGlwcGluZyBsYWJlbHMu: string;
619
737
  QSBzaGlwcGluZyBlcnJvciBvY2N1cnJlZDogTWlzc2luZyBvciBpbnZhbGlkIHNoaXBwZXIgbnVtYmVy: string;
738
+ QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcHBlciBuYW1l: string;
620
739
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
621
740
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
622
741
  };
@@ -630,10 +749,22 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
630
749
  warehouses: string;
631
750
  carriers: string;
632
751
  labelLayout: string;
752
+ /**
753
+ * # Void Label Component Props
754
+ *
755
+ * - These are the base props that will be passed into the `<VoidLabel />` component.
756
+ *
757
+ * @see {@link VoidLabel.Component | This prop types usage in the `<VoidLabel />` component}
758
+ */
633
759
  unitSettings: string;
634
760
  };
635
761
  };
636
762
  };
637
763
  } | undefined;
638
764
  }) => import("@emotion/react/jsx-runtime").JSX.Element;
765
+ /**
766
+ * # Void Label Element Props
767
+ *
768
+ * @see {@link VoidLabel.Element | See the full type that `typeof Element` will return}
769
+ */
639
770
  export type ElementProps = React.ComponentProps<typeof Element>;
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  declare function nullishDefault<T extends z.ZodTypeAny, U>(this: T, defaultValue: U): z.ZodEffects<z.ZodNullable<z.ZodOptional<T>>, U | NonNullable<T["_output"]>, T["_input"] | null | undefined>;
3
+ /** @internal */
3
4
  declare module "zod" {
4
5
  interface ZodString {
5
6
  nullishDefault: typeof nullishDefault;
@@ -12,6 +13,10 @@ declare module "zod" {
12
13
  }
13
14
  }
14
15
  /**
16
+ * @internal
17
+ *
18
+ * # Form Utilities
19
+ *
15
20
  * @category Form Validation
16
21
  */
17
22
  export declare const extendZod: () => void;
@@ -1,9 +1,20 @@
1
1
  import { Factory } from "fishery";
2
2
  import { SE } from "@shipengine/alchemy";
3
+ /**
4
+ * @internal
5
+ *
6
+ * # Package Transient Params Type
7
+ *
8
+ * @catgory Factories
9
+ */
3
10
  export type PackageTransientParams = {
4
11
  noDimensions?: boolean;
5
12
  };
6
13
  /**
14
+ * @internal
15
+ *
16
+ * # Package Factory
17
+ *
7
18
  * @category Factories
8
19
  */
9
20
  export declare const packageFactory: Factory<SE.CarrierPackage, PackageTransientParams, SE.CarrierPackage>;
@@ -1 +1,6 @@
1
+ /**
2
+ * @namespace WalletHistory
3
+ *
4
+ * # Wallet History
5
+ */
1
6
  export declare const WalletHistory: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -7,3 +7,4 @@ export * from "./use-run-once-on-true";
7
7
  export * from "./use-toggle";
8
8
  export * from "./use-address-validation";
9
9
  export * from "./use-black-box-detection";
10
+ export * from "./use-scrub-errors";
@@ -1,4 +1,11 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Delivery Confirmation Options Hook
6
+ *
7
+ * @category Hooks
8
+ */
2
9
  export declare const useConfirmationOptions: () => {
3
10
  label: string;
4
11
  value: SE.ConfirmationType;
@@ -1,4 +1,17 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * # Country Code Options Hook
5
+ *
6
+ * @category Hooks
7
+ */
1
8
  export declare const useCountryCodeOptions: (domestic?: boolean) => {
2
- label: "Afghanistan" | "Aland Islands" | "Albania" | "Algeria" | "American Samoa" | "Andorra" | "Angola" | "Anguilla" | "Antarctica" | "Antigua Barbuda" | "Argentina" | "Armenia" | "Aruba" | "Australia" | "Austria" | "Azerbaijan" | "Bahamas" | "Bahrain" | "Bangladesh" | "Barbados" | "Belarus" | "Belgium" | "Belize" | "Benin" | "Bermuda" | "Bhutan" | "Bolivia" | "Bonaire, Sint Eustatius And Saba" | "Bosnia and Herzegovina" | "Botswana" | "Brazil" | "British Indian Ocean Territory" | "British Virgin Islands" | "Brunei Darussalam" | "Bulgaria" | "Burkina Faso" | "Burundi" | "Canada" | "Cambodia" | "Cameroon" | "Cape Verde Islands" | "Cayman Islands" | "Central African Republic" | "Chad" | "Chile" | "China" | "Christmas Island" | "Cocos(Keeling) Islands" | "Colombia" | "Comoros" | "Congo" | "Congo, The Democratic Republic of" | "Cook Islands" | "Costa Rica" | "Croatia" | "Cuba" | "Curacao" | "Cyprus" | "Czech Republic" | "Denmark" | "Djibouti" | "Dominica" | "Dominican Republic" | "Ecuador" | "Egypt" | "El Salvador" | "Equatorial Guinea" | "Eritrea" | "Estonia" | "Ethiopia" | "Falkland Islands" | "Faroe Islands" | "Federated States of Micronesia" | "Fiji" | "Finland" | "France" | "French Guiana" | "French Polynesia" | "French Southern Territories" | "Gabon" | "Gambia" | "Georgia" | "Germany" | "Ghana" | "Gibraltar" | "Greece" | "Greenland" | "Grenada" | "Guadeloupe" | "Guam" | "Guatemala" | "Guernsey" | "Guinea" | "Guinea - Bissau" | "Guyana" | "Haiti" | "Holy See" | "Honduras" | "Hong Kong" | "Hungary" | "Iceland" | "India" | "Indonesia" | "Iran" | "Iraq" | "Ireland" | "Isle of Man" | "Israel" | "Italy" | "Ivory Coast" | "Jamaica" | "Japan" | "Jersey" | "Jordan" | "Kazakhstan" | "Kenya" | "Kiribati" | "Korea, Republic of" | "Kuwait" | "Kyrgyzstan" | "Laos" | "Latvia" | "Lebanon" | "Lesotho" | "Liberia" | "Libya" | "Liechtenstein" | "Lithuania" | "Luxembourg" | "Macao" | "Macedonia" | "Madagascar" | "Malawi" | "Malaysia" | "Maldives" | "Mali" | "Malta" | "Marshall Islands" | "Martinique" | "Mauritania" | "Mauritius0" | "Mayotte" | "Mexico" | "Moldova" | "Monaco" | "Mongolia" | "Montenegro" | "Montserrat" | "Morocco" | "Mozambique" | "Myanmar" | "Namibia" | "Nauru" | "Nepal" | "Netherlands" | "Netherlands Antilles" | "New Caledonia" | "New Zealand" | "Nicaragua" | "Niger" | "Nigeria" | "Niue" | "Norfolk Island" | "North Korea" | "Northern Mariana Islands" | "Norway" | "Oman" | "Pakistan" | "Palau" | "Palestinian Territory" | "Panama" | "Papua New Guinea" | "Paraguay" | "Peru" | "Philippines" | "Pitcairn Island" | "Poland" | "Portugal" | "Puerto Rico" | "Qatar" | "Reunion" | "Romania" | "Russia" | "Rwanda" | "Saint Barthelemy" | "Saint Helena" | "Saint Kitts and Nevis" | "Saint Lucia" | "Saint Martin" | "Saint Pierre and Miquelon" | "Saint Vincent & the Grenadines" | "Samoa" | "San Marino" | "Sao Tome and Principe" | "Saudi Arabia" | "Senegal" | "Serbia" | "Seychelles" | "Sierra Leone" | "Singapore" | "Sint Maarten(Dutch)" | "Slovakia" | "Slovenia" | "Solomon Islands" | "Somalia" | "South Africa" | "South Georgia & the South Sandwich Islands" | "South Sudan" | "Spain" | "Sri Lanka" | "Sudan" | "Suriname" | "Svalbard & Jan Mayen Islands" | "Swaziland" | "Sweden" | "Switzerland" | "Syria" | "Taiwan" | "Tajikistan" | "Tanzania" | "Thailand" | "Timor - Leste(formerly East Timor)" | "Togo" | "Tokelau" | "Tonga" | "Trinidad and Tobago" | "Tunisia" | "Turkey" | "Turkmenistan" | "Turks and Caicos Islands" | "Tuvalu" | "Uganda" | "Ukraine" | "United Arab Emirates" | "United Kingdom" | "United States Virgin Islands" | "U.S. Minor Outlying Islands" | "United States of America" | "Uruguay" | "Uzbekistan" | "Vanuatu" | "Venezuela" | "Vietnam" | "Wallis and Futuna Islands" | "Western Sahara" | "Yemen" | "Zambia" | "Zimbabwe";
3
- value: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
4
- }[];
9
+ countryCodeOptions: {
10
+ label: "Afghanistan" | "Aland Islands" | "Albania" | "Algeria" | "American Samoa" | "Andorra" | "Angola" | "Anguilla" | "Antarctica" | "Antigua Barbuda" | "Argentina" | "Armenia" | "Aruba" | "Australia" | "Austria" | "Azerbaijan" | "Bahamas" | "Bahrain" | "Bangladesh" | "Barbados" | "Belarus" | "Belgium" | "Belize" | "Benin" | "Bermuda" | "Bhutan" | "Bolivia" | "Bonaire, Sint Eustatius And Saba" | "Bosnia and Herzegovina" | "Botswana" | "Brazil" | "British Indian Ocean Territory" | "British Virgin Islands" | "Brunei Darussalam" | "Bulgaria" | "Burkina Faso" | "Burundi" | "Canada" | "Cambodia" | "Cameroon" | "Cape Verde Islands" | "Cayman Islands" | "Central African Republic" | "Chad" | "Chile" | "China" | "Christmas Island" | "Cocos(Keeling) Islands" | "Colombia" | "Comoros" | "Congo" | "Congo, The Democratic Republic of" | "Cook Islands" | "Costa Rica" | "Croatia" | "Cuba" | "Curacao" | "Cyprus" | "Czech Republic" | "Denmark" | "Djibouti" | "Dominica" | "Dominican Republic" | "Ecuador" | "Egypt" | "El Salvador" | "Equatorial Guinea" | "Eritrea" | "Estonia" | "Ethiopia" | "Falkland Islands" | "Faroe Islands" | "Federated States of Micronesia" | "Fiji" | "Finland" | "France" | "French Guiana" | "French Polynesia" | "French Southern Territories" | "Gabon" | "Gambia" | "Georgia" | "Germany" | "Ghana" | "Gibraltar" | "Greece" | "Greenland" | "Grenada" | "Guadeloupe" | "Guam" | "Guatemala" | "Guernsey" | "Guinea" | "Guinea - Bissau" | "Guyana" | "Haiti" | "Holy See" | "Honduras" | "Hong Kong" | "Hungary" | "Iceland" | "India" | "Indonesia" | "Iran" | "Iraq" | "Ireland" | "Isle of Man" | "Israel" | "Italy" | "Ivory Coast" | "Jamaica" | "Japan" | "Jersey" | "Jordan" | "Kazakhstan" | "Kenya" | "Kiribati" | "Korea, Republic of" | "Kuwait" | "Kyrgyzstan" | "Laos" | "Latvia" | "Lebanon" | "Lesotho" | "Liberia" | "Libya" | "Liechtenstein" | "Lithuania" | "Luxembourg" | "Macao" | "Macedonia" | "Madagascar" | "Malawi" | "Malaysia" | "Maldives" | "Mali" | "Malta" | "Marshall Islands" | "Martinique" | "Mauritania" | "Mauritius0" | "Mayotte" | "Mexico" | "Moldova" | "Monaco" | "Mongolia" | "Montenegro" | "Montserrat" | "Morocco" | "Mozambique" | "Myanmar" | "Namibia" | "Nauru" | "Nepal" | "Netherlands" | "Netherlands Antilles" | "New Caledonia" | "New Zealand" | "Nicaragua" | "Niger" | "Nigeria" | "Niue" | "Norfolk Island" | "North Korea" | "Northern Mariana Islands" | "Norway" | "Oman" | "Pakistan" | "Palau" | "Palestinian Territory" | "Panama" | "Papua New Guinea" | "Paraguay" | "Peru" | "Philippines" | "Pitcairn Island" | "Poland" | "Portugal" | "Puerto Rico" | "Qatar" | "Reunion" | "Romania" | "Russia" | "Rwanda" | "Saint Barthelemy" | "Saint Helena" | "Saint Kitts and Nevis" | "Saint Lucia" | "Saint Martin" | "Saint Pierre and Miquelon" | "Saint Vincent & the Grenadines" | "Samoa" | "San Marino" | "Sao Tome and Principe" | "Saudi Arabia" | "Senegal" | "Serbia" | "Seychelles" | "Sierra Leone" | "Singapore" | "Sint Maarten(Dutch)" | "Slovakia" | "Slovenia" | "Solomon Islands" | "Somalia" | "South Africa" | "South Georgia & the South Sandwich Islands" | "South Sudan" | "Spain" | "Sri Lanka" | "Sudan" | "Suriname" | "Svalbard & Jan Mayen Islands" | "Swaziland" | "Sweden" | "Switzerland" | "Syria" | "Taiwan" | "Tajikistan" | "Tanzania" | "Thailand" | "Timor - Leste(formerly East Timor)" | "Togo" | "Tokelau" | "Tonga" | "Trinidad and Tobago" | "Tunisia" | "Turkey" | "Turkmenistan" | "Turks and Caicos Islands" | "Tuvalu" | "Uganda" | "Ukraine" | "United Arab Emirates" | "United Kingdom" | "United States Virgin Islands" | "U.S. Minor Outlying Islands" | "United States of America" | "Uruguay" | "Uzbekistan" | "Vanuatu" | "Venezuela" | "Vietnam" | "Wallis and Futuna Islands" | "Western Sahara" | "Yemen" | "Zambia" | "Zimbabwe";
11
+ value: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
12
+ }[];
13
+ defaultCountryCodeOption: {
14
+ label: "Afghanistan" | "Aland Islands" | "Albania" | "Algeria" | "American Samoa" | "Andorra" | "Angola" | "Anguilla" | "Antarctica" | "Antigua Barbuda" | "Argentina" | "Armenia" | "Aruba" | "Australia" | "Austria" | "Azerbaijan" | "Bahamas" | "Bahrain" | "Bangladesh" | "Barbados" | "Belarus" | "Belgium" | "Belize" | "Benin" | "Bermuda" | "Bhutan" | "Bolivia" | "Bonaire, Sint Eustatius And Saba" | "Bosnia and Herzegovina" | "Botswana" | "Brazil" | "British Indian Ocean Territory" | "British Virgin Islands" | "Brunei Darussalam" | "Bulgaria" | "Burkina Faso" | "Burundi" | "Canada" | "Cambodia" | "Cameroon" | "Cape Verde Islands" | "Cayman Islands" | "Central African Republic" | "Chad" | "Chile" | "China" | "Christmas Island" | "Cocos(Keeling) Islands" | "Colombia" | "Comoros" | "Congo" | "Congo, The Democratic Republic of" | "Cook Islands" | "Costa Rica" | "Croatia" | "Cuba" | "Curacao" | "Cyprus" | "Czech Republic" | "Denmark" | "Djibouti" | "Dominica" | "Dominican Republic" | "Ecuador" | "Egypt" | "El Salvador" | "Equatorial Guinea" | "Eritrea" | "Estonia" | "Ethiopia" | "Falkland Islands" | "Faroe Islands" | "Federated States of Micronesia" | "Fiji" | "Finland" | "France" | "French Guiana" | "French Polynesia" | "French Southern Territories" | "Gabon" | "Gambia" | "Georgia" | "Germany" | "Ghana" | "Gibraltar" | "Greece" | "Greenland" | "Grenada" | "Guadeloupe" | "Guam" | "Guatemala" | "Guernsey" | "Guinea" | "Guinea - Bissau" | "Guyana" | "Haiti" | "Holy See" | "Honduras" | "Hong Kong" | "Hungary" | "Iceland" | "India" | "Indonesia" | "Iran" | "Iraq" | "Ireland" | "Isle of Man" | "Israel" | "Italy" | "Ivory Coast" | "Jamaica" | "Japan" | "Jersey" | "Jordan" | "Kazakhstan" | "Kenya" | "Kiribati" | "Korea, Republic of" | "Kuwait" | "Kyrgyzstan" | "Laos" | "Latvia" | "Lebanon" | "Lesotho" | "Liberia" | "Libya" | "Liechtenstein" | "Lithuania" | "Luxembourg" | "Macao" | "Macedonia" | "Madagascar" | "Malawi" | "Malaysia" | "Maldives" | "Mali" | "Malta" | "Marshall Islands" | "Martinique" | "Mauritania" | "Mauritius0" | "Mayotte" | "Mexico" | "Moldova" | "Monaco" | "Mongolia" | "Montenegro" | "Montserrat" | "Morocco" | "Mozambique" | "Myanmar" | "Namibia" | "Nauru" | "Nepal" | "Netherlands" | "Netherlands Antilles" | "New Caledonia" | "New Zealand" | "Nicaragua" | "Niger" | "Nigeria" | "Niue" | "Norfolk Island" | "North Korea" | "Northern Mariana Islands" | "Norway" | "Oman" | "Pakistan" | "Palau" | "Palestinian Territory" | "Panama" | "Papua New Guinea" | "Paraguay" | "Peru" | "Philippines" | "Pitcairn Island" | "Poland" | "Portugal" | "Puerto Rico" | "Qatar" | "Reunion" | "Romania" | "Russia" | "Rwanda" | "Saint Barthelemy" | "Saint Helena" | "Saint Kitts and Nevis" | "Saint Lucia" | "Saint Martin" | "Saint Pierre and Miquelon" | "Saint Vincent & the Grenadines" | "Samoa" | "San Marino" | "Sao Tome and Principe" | "Saudi Arabia" | "Senegal" | "Serbia" | "Seychelles" | "Sierra Leone" | "Singapore" | "Sint Maarten(Dutch)" | "Slovakia" | "Slovenia" | "Solomon Islands" | "Somalia" | "South Africa" | "South Georgia & the South Sandwich Islands" | "South Sudan" | "Spain" | "Sri Lanka" | "Sudan" | "Suriname" | "Svalbard & Jan Mayen Islands" | "Swaziland" | "Sweden" | "Switzerland" | "Syria" | "Taiwan" | "Tajikistan" | "Tanzania" | "Thailand" | "Timor - Leste(formerly East Timor)" | "Togo" | "Tokelau" | "Tonga" | "Trinidad and Tobago" | "Tunisia" | "Turkey" | "Turkmenistan" | "Turks and Caicos Islands" | "Tuvalu" | "Uganda" | "Ukraine" | "United Arab Emirates" | "United Kingdom" | "United States Virgin Islands" | "U.S. Minor Outlying Islands" | "United States of America" | "Uruguay" | "Uzbekistan" | "Vanuatu" | "Venezuela" | "Vietnam" | "Wallis and Futuna Islands" | "Western Sahara" | "Yemen" | "Zambia" | "Zimbabwe";
15
+ value: "AF" | "AX" | "AL" | "DZ" | "AS" | "AD" | "AO" | "AI" | "AQ" | "AG" | "AR" | "AM" | "AW" | "AU" | "AT" | "AZ" | "BS" | "BH" | "BD" | "BB" | "BY" | "BE" | "BZ" | "BJ" | "BM" | "BT" | "BO" | "BQ" | "BA" | "BW" | "BR" | "IO" | "VG" | "BN" | "BG" | "BF" | "BI" | "CA" | "KH" | "CM" | "CV" | "KY" | "CF" | "TD" | "CL" | "CN" | "CX" | "CC" | "CO" | "KM" | "CG" | "CD" | "CK" | "CR" | "HR" | "CU" | "CW" | "CY" | "CZ" | "DK" | "DJ" | "DM" | "DO" | "EC" | "EG" | "SV" | "GQ" | "ER" | "EE" | "ET" | "FK" | "FO" | "FM" | "FJ" | "FI" | "FR" | "GF" | "PF" | "TF" | "GA" | "GM" | "GE" | "DE" | "GH" | "GI" | "GR" | "GL" | "GD" | "GP" | "GU" | "GT" | "GG" | "GN" | "GW" | "GY" | "HT" | "VA" | "HN" | "HK" | "HU" | "IS" | "IN" | "ID" | "IR" | "IQ" | "IE" | "IM" | "IL" | "IT" | "CI" | "JM" | "JP" | "JE" | "JO" | "KZ" | "KE" | "KI" | "KR" | "KW" | "KG" | "LA" | "LV" | "LB" | "LS" | "LR" | "LY" | "LI" | "LT" | "LU" | "MO" | "MK" | "MG" | "MW" | "MY" | "MV" | "ML" | "MT" | "MH" | "MQ" | "MR" | "MU" | "YT" | "MX" | "MD" | "MC" | "MN" | "ME" | "MS" | "MA" | "MZ" | "MM" | "NA" | "NR" | "NP" | "NL" | "AN" | "NC" | "NZ" | "NI" | "NE" | "NG" | "NU" | "NF" | "KP" | "MP" | "NO" | "OM" | "PK" | "PW" | "PS" | "PA" | "PG" | "PY" | "PE" | "PH" | "PN" | "PL" | "PT" | "PR" | "QA" | "RE" | "RO" | "RU" | "RW" | "BL" | "SH" | "KN" | "LC" | "MF" | "PM" | "VC" | "WS" | "SM" | "ST" | "SA" | "SN" | "RS" | "SC" | "SL" | "SG" | "SX" | "SK" | "SI" | "SB" | "SO" | "ZA" | "GS" | "SS" | "ES" | "LK" | "SD" | "SR" | "SJ" | "SZ" | "SE" | "CH" | "SY" | "TW" | "TJ" | "TZ" | "TH" | "TL" | "TG" | "TK" | "TO" | "TT" | "TN" | "TR" | "TM" | "TC" | "TV" | "UG" | "UA" | "AE" | "GB" | "VI" | "UM" | "US" | "UY" | "UZ" | "VU" | "VE" | "VN" | "WF" | "EH" | "YE" | "ZM" | "ZW";
16
+ } | undefined;
17
+ };
@@ -1,4 +1,11 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Customs Contents Options Hook
6
+ *
7
+ * @category Hooks
8
+ */
2
9
  export declare const useCustomsContentsOptions: () => {
3
10
  label: string;
4
11
  value: SE.CustomsContentsType;
@@ -1,4 +1,11 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Customs Non-Delivery Options Hooks
6
+ *
7
+ * @category Hooks
8
+ */
2
9
  export declare const useCustomsNonDeliveryOptions: () => {
3
10
  label: string;
4
11
  value: SE.CustomsNonDeliveryType;
@@ -1,4 +1,19 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * # Date Range Type
5
+ *
6
+ * @see {@link DateRangeOption | The `DateRangeOption` that uses this type}
7
+ */
1
8
  export type DateRange = [Date, Date];
9
+ /**
10
+ * @internal
11
+ *
12
+ * # Date Range Option Type
13
+ *
14
+ * @see {@link DateRange | The `DateRange` type}
15
+ * @see {@link useDateRangeOptions | The hook that uses this type}
16
+ */
2
17
  export type DateRangeOption = {
3
18
  label: string;
4
19
  } & ({
@@ -9,6 +24,12 @@ export type DateRangeOption = {
9
24
  value: "last30days" | "thisMonth" | "lastMonth";
10
25
  });
11
26
  /**
12
- * A curated list of date range options relative to the immediate date
27
+ * @internal
28
+ *
29
+ * # Date Range Options Hook
30
+ *
31
+ * A curated list of date range options relative to the immediate date.
32
+ *
33
+ * @see {@link DateRangeOption | The `DateRangeOption` type used in this hook}
13
34
  */
14
35
  export declare const useDateRangeOptions: () => [DateRangeOption[], Record<"custom" | "last30days" | "thisMonth" | "lastMonth", DateRangeOption>];
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * # Expiration Month Options Hook
5
+ *
6
+ * @cateogry Hooks
7
+ */
1
8
  export declare const useExpirationMonthOptions: () => {
2
9
  label: string;
3
10
  value: string;
@@ -3,6 +3,13 @@ interface InsuranceFeatures {
3
3
  includeShipsuranceInsurance?: boolean;
4
4
  includeThirdPartyInsurance?: boolean;
5
5
  }
6
+ /**
7
+ * @internal
8
+ *
9
+ * # Insurance Provider Options Hook
10
+ *
11
+ * @category Hooks
12
+ */
6
13
  export declare const useInsuranceProviderOptions: (insuranceAccount?: SE.InsuranceAccount, features?: InsuranceFeatures) => {
7
14
  label: string;
8
15
  value: SE.InsuranceProviderType;
@@ -1,3 +1,10 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
2
  import { SelectCategory } from "../../components/field/select";
3
+ /**
4
+ * @internal
5
+ *
6
+ * # Package Options Hook
7
+ *
8
+ * @category Hooks
9
+ */
3
10
  export declare const usePackageOptions: (carriers?: SE.Carrier[], customPackageTypes?: SE.CustomPackage[], shipment?: SE.SalesOrderShipment) => SelectCategory[] | undefined;
@@ -1,8 +1,18 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Rate Options Hook - Rate Option Type
6
+ */
2
7
  export type RateOption = Omit<SE.Rate, "warningMessages"> & {
3
8
  balance?: number;
4
9
  messages: string[];
5
10
  requiresAcknowledgement?: boolean;
6
11
  requiresFundedAmount?: boolean;
7
12
  };
8
- export declare const useRateOptions: (rates?: SE.Rate[], carriers?: SE.Carrier[], shipment?: SE.SalesOrderShipment, enableGlobalPostFiltering?: boolean) => RateOption[];
13
+ /**
14
+ * @internal
15
+ *
16
+ * # Rate Options Hook
17
+ */
18
+ export declare const useRateOptions: (rates?: SE.Rate[], carriers?: SE.Carrier[], shipment?: SE.SalesOrderShipment, enableGlobalPostFiltering?: boolean, requireDhlTermsAcknowledgement?: boolean) => RateOption[];
@@ -1,3 +1,10 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
2
  import { SelectCategory } from "../../components/field/select";
3
+ /**
4
+ * @internal
5
+ *
6
+ * # Service Code Options Hook
7
+ *
8
+ * @category Hooks
9
+ */
3
10
  export declare const useServiceCodeOptions: (carriers?: SE.Carrier[], shipment?: SE.SalesOrderShipment) => SelectCategory[];
@@ -1,5 +1,13 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Shipment Metadata Hook
6
+ *
7
+ * @category Hooks
8
+ */
2
9
  export declare const useShipmentMetadata: (shipment?: SE.SalesOrderShipment) => {
10
+ hasAllZeroMeasurements: boolean;
3
11
  isContentDescriptionRequired: boolean;
4
12
  isCustomsRequired: boolean;
5
13
  isInternational: boolean;
@@ -1,5 +1,10 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
2
  import { ShippingPreset } from "../../types";
3
+ /**
4
+ * @internal
5
+ *
6
+ * # Shipping Preset Options Props
7
+ */
3
8
  export type UseShippingPresetsOptionsProps = {
4
9
  platform?: {
5
10
  domestic: ShippingPreset[];
@@ -10,6 +15,11 @@ export type UseShippingPresetsOptionsProps = {
10
15
  international: ShippingPreset[];
11
16
  };
12
17
  };
18
+ /**
19
+ * @internal
20
+ *
21
+ * # Shipping Preset Options Component
22
+ */
13
23
  export declare const useShippingPresetsOptions: ({ platform, user }?: UseShippingPresetsOptionsProps, shipment?: SE.SalesOrderShipment) => {
14
24
  categoryName: string;
15
25
  options: {
@@ -1,3 +1,10 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * # State Code Options Hook
5
+ *
6
+ * @category Hooks
7
+ */
1
8
  export declare const useStateCodeOptions: (domestic?: boolean) => {
2
9
  label: "Alabama" | "Alaska" | "American Samoa" | "Arizona" | "Arkansas" | "Armed Forces Americas" | "Armed Forces Europe" | "Armed Forces Pacific" | "California" | "Colorado" | "Connecticut" | "Delaware" | "District of Columbia" | "Florida" | "Georgia" | "Guam" | "Hawaii" | "Idaho" | "Illinois" | "Indiana" | "Iowa" | "Kansas" | "Kentucky" | "Louisiana" | "Maine" | "Maryland" | "Massachusetts" | "Michigan" | "Minnesota" | "Mississippi" | "Missouri" | "Montana" | "Nebraska" | "Nevada" | "New Hampshire" | "New Jersey" | "New Mexico" | "New York" | "North Carolina" | "North Dakota" | "Ohio" | "Oklahoma" | "Oregon" | "Pennsylvania" | "Puerto Rico" | "Rhode Island" | "South Carolina" | "South Dakota" | "Tennessee" | "Texas" | "Utah" | "Vermont" | "Virgin Islands" | "Virginia" | "Washington" | "West Virginia" | "Wisconsin" | "Wyoming" | "Northern Mariana Islands" | "U.S. Minor Outlying Islands";
3
10
  value: "AL" | "AK" | "AS" | "AZ" | "AR" | "AA" | "AE" | "AP" | "CA" | "CO" | "CT" | "DE" | "DC" | "FL" | "GA" | "GU" | "HI" | "ID" | "IL" | "IN" | "IA" | "KS" | "KY" | "LA" | "ME" | "MD" | "MA" | "MI" | "MN" | "MS" | "MO" | "MT" | "NE" | "NV" | "NH" | "NJ" | "NM" | "NY" | "NC" | "ND" | "OH" | "OK" | "OR" | "PA" | "PR" | "RI" | "SC" | "SD" | "TN" | "TX" | "UT" | "VT" | "VI" | "VA" | "WA" | "WV" | "WI" | "WY" | "MP" | "UM";
@@ -1,4 +1,11 @@
1
1
  import { SE } from "@shipengine/alchemy";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Warehouse Options Hook
6
+ *
7
+ * @category Hooks
8
+ */
2
9
  export declare const useWarehouseOptions: (warehouses?: SE.Warehouse[]) => {
3
10
  label: string;
4
11
  value: string;
@@ -1,6 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import { SE } from "@shipengine/alchemy";
3
3
  import { Templates } from "../components";
4
+ /**
5
+ * @internal
6
+ *
7
+ * # Address Validation Hook
8
+ *
9
+ * @cateogry Hooks
10
+ */
4
11
  export declare const useAddressValidation: () => {
5
12
  errors: SE.CodedError[] | null;
6
13
  setValidationPreference: import("react").Dispatch<import("react").SetStateAction<Templates.ValidationPreference | undefined>>;
@@ -1,5 +1,19 @@
1
+ /**
2
+ * @internal
3
+ *
4
+ * # Black Box Detection Props
5
+ *
6
+ * @see {@link useBlackboxDetection | The `useBlackboxDetection` hook that uses these props}
7
+ *
8
+ */
1
9
  export type BlackBoxDetectionProps = {
10
+ /**
11
+ * `onError` is a callback function to be invoked when there is an error detecting the black box.
12
+ */
2
13
  onError: () => void;
14
+ /**
15
+ * `onSuccess` is a callback function to be invoked when the black box is successfully detected.
16
+ */
3
17
  onSuccess: (blackbox: string) => void;
4
18
  };
5
19
  type IoBlackBox = () => {
@@ -16,7 +30,9 @@ declare global {
16
30
  let ioGetBlackbox: IoBlackBox | undefined;
17
31
  }
18
32
  /**
19
- * Creates an encoded device fingerprint string - aka black box - containing information about the end-user's computing device such as OS, browser, etc.
33
+ * @internal
34
+ *
35
+ * - Creates an encoded device fingerprint string - aka black box - containing information about the end-user's computing device such as OS, browser, etc.
20
36
  * https://developer.bazaarvoice.com/conversations-api/deprecations/iovation-web#snare_js_only
21
37
  */
22
38
  export declare const useBlackboxDetection: ({ onSuccess, onError }: BlackBoxDetectionProps) => void;
@@ -1,3 +1,10 @@
1
1
  import { CarrierConnection } from "@shipengine/alchemy";
2
2
  import { CarrierMetadata } from "../types";
3
+ /**
4
+ * @internal
5
+ *
6
+ * # Carrier Metadata Hook
7
+ *
8
+ * @category Hooks
9
+ */
3
10
  export declare const useCarrierMetadata: (carrierCodes?: CarrierConnection["carrierCode"][]) => CarrierMetadata[];
@@ -1,10 +1,19 @@
1
1
  import React from "react";
2
+ /**
3
+ * @internal
4
+ *
5
+ * # Nested Form Hook Props
6
+ */
2
7
  export type NestedFormProps<T, U> = {
3
8
  formId: string;
4
9
  onCancel?: () => void;
5
10
  onSubmit: (payload: U) => Promise<void> | void;
6
11
  } & T;
7
12
  /**
13
+ * @internal
14
+ *
15
+ * # Nested Form Hook Component
16
+ *
8
17
  * Returns a nested form element that can be rendered within another form
9
18
  *
10
19
  * Handles closing the form on cancel or submission