@shipengine/elements 0.15.0 → 0.16.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 (207) hide show
  1. package/components/add-funds-form/add-funds-form.d.ts +22 -0
  2. package/components/add-funds-form/add-funds-form.styles.d.ts +6 -0
  3. package/components/add-funds-form/add-funds-schema.d.ts +37 -0
  4. package/components/add-funds-form/index.d.ts +2 -0
  5. package/components/auto-funding-form/auto-funding-form.d.ts +8 -0
  6. package/components/auto-funding-form/auto-funding-form.styles.d.ts +1 -0
  7. package/components/{organisms/auto-funding-form → auto-funding-form}/auto-funding-schema.d.ts +10 -10
  8. package/components/auto-funding-form/index.d.ts +2 -0
  9. package/components/carrier-balance/carrier-balance.d.ts +4 -0
  10. package/components/carrier-balance/carrier-balance.styles.d.ts +1 -0
  11. package/components/carrier-balance/index.d.ts +1 -0
  12. package/components/field/create-field-controller.d.ts +4 -1
  13. package/components/field/credit-card-input/credit-card-input.d.ts +3 -0
  14. package/components/field/credit-card-input/index.d.ts +1 -0
  15. package/components/field/fields.d.ts +1 -0
  16. package/components/field/money-input/hooks/use-utils.d.ts +1 -1
  17. package/components/field/money-input/money-input.d.ts +1 -1
  18. package/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
  19. package/components/form-portal/form-portal.d.ts +18 -0
  20. package/components/form-portal/index.d.ts +1 -0
  21. package/components/fund-and-purchase/fund-and-purchase.d.ts +15 -0
  22. package/components/fund-and-purchase/fund-and-purchase.styles.d.ts +1 -0
  23. package/components/fund-and-purchase/index.d.ts +1 -0
  24. package/components/index.d.ts +10 -0
  25. package/components/inline-label/index.d.ts +1 -0
  26. package/components/inline-label/inline-label.d.ts +6 -0
  27. package/components/items-breakdown/items-breakdown.d.ts +1 -1
  28. package/components/link-action/index.d.ts +1 -0
  29. package/components/link-action/link-action.d.ts +12 -0
  30. package/components/manage-funding/manage-funding.d.ts +4 -0
  31. package/components/portal/portal.d.ts +1 -1
  32. package/components/settings-card/settings-card.d.ts +6 -1
  33. package/components/settings-card/settings-card.styles.d.ts +1 -6
  34. package/components/spread/index.d.ts +1 -0
  35. package/components/spread/spread.d.ts +5 -0
  36. package/components/story-notes/index.d.ts +1 -0
  37. package/components/story-notes/story-notes.d.ts +11 -0
  38. package/components/templates/{billing-form/billing-schema.d.ts → add-carrier-form/add-carrier-form-schema.d.ts} +38 -109
  39. package/components/templates/add-carrier-form/add-carrier-form-test.d.ts +1 -0
  40. package/components/templates/add-carrier-form/add-carrier-form.d.ts +10 -0
  41. package/components/templates/add-carrier-form/index.d.ts +2 -0
  42. package/components/templates/address-display/address-display.d.ts +1 -1
  43. package/components/templates/address-form/address-fields.d.ts +2 -1
  44. package/components/templates/address-form/address-form-schema.d.ts +0 -9
  45. package/components/templates/address-form/address-form.d.ts +2 -2
  46. package/components/templates/address-form/address-schema.d.ts +2 -3
  47. package/components/templates/address-preference-display/address-preference-display.d.ts +1 -1
  48. package/components/templates/carrier-recovery-form/carrier-recovery-form-schema.d.ts +238 -0
  49. package/components/templates/carrier-recovery-form/carrier-recovery-form.d.ts +10 -0
  50. package/components/templates/carrier-recovery-form/carrier-recovery-form.styles.d.ts +1 -0
  51. package/components/templates/carrier-recovery-form/index.d.ts +2 -0
  52. package/components/templates/carrier-terms-form/carrier-terms-form-schema.d.ts +10 -0
  53. package/components/templates/carrier-terms-form/carrier-terms-form.d.ts +6 -0
  54. package/components/templates/carrier-terms-form/carrier-terms-form.styles.d.ts +1 -0
  55. package/components/templates/carrier-terms-form/index.d.ts +1 -0
  56. package/components/templates/customs-item-form/customs-item-form-schema.d.ts +112 -12
  57. package/components/templates/customs-item-form/customs-item-form.d.ts +3 -2
  58. package/components/templates/customs-items-display/customs-items-display.d.ts +1 -1
  59. package/components/templates/display-carrier-terms/display-carrier-terms.d.ts +6 -0
  60. package/components/templates/display-carrier-terms/index.d.ts +1 -0
  61. package/components/templates/edit-billing-form/edit-billing-form.d.ts +6 -0
  62. package/components/templates/edit-billing-form/edit-billing-form.styles.d.ts +1 -0
  63. package/components/templates/edit-billing-form/index.d.ts +1 -0
  64. package/components/templates/index.d.ts +8 -4
  65. package/components/templates/label/label.d.ts +2 -2
  66. package/components/templates/landing-page/index.d.ts +1 -0
  67. package/components/templates/landing-page/landing-page-form-schema.d.ts +10 -0
  68. package/components/templates/landing-page/landing-page-form.d.ts +4 -0
  69. package/components/templates/landing-page/landing-page.d.ts +4 -0
  70. package/components/templates/landing-page/landing-page.styles.d.ts +1 -0
  71. package/components/templates/list-carriers/index.d.ts +1 -0
  72. package/components/templates/list-carriers/list-carriers.d.ts +9 -0
  73. package/components/templates/list-carriers/list-carriers.styles.d.ts +1 -0
  74. package/components/templates/list-carriers-row/index.d.ts +1 -0
  75. package/components/templates/list-carriers-row/list-carriers-row.d.ts +9 -0
  76. package/components/templates/list-carriers-row/list-carriers-row.styles.d.ts +1 -0
  77. package/components/templates/manage-wallet/index.d.ts +1 -0
  78. package/components/templates/manage-wallet/manage-wallet.d.ts +1 -0
  79. package/components/templates/manage-wallet/manage-wallet.styles.d.ts +1 -0
  80. package/components/templates/manage-warehouses/manage-warehouses.d.ts +7 -2
  81. package/components/templates/onboarding/index.d.ts +1 -0
  82. package/components/templates/onboarding/onboarding.d.ts +18 -0
  83. package/components/templates/onboarding/onboarding.styles.d.ts +1 -0
  84. package/components/templates/rate-form/rate-form.d.ts +2 -2
  85. package/components/templates/rate-form/rate-form.styles.d.ts +1 -0
  86. package/components/templates/sales-order/sales-order.d.ts +1 -1
  87. package/components/templates/shipment/shipment.d.ts +1 -1
  88. package/components/templates/shipment-form/shipment-form.d.ts +3 -3
  89. package/components/templates/shipment-form/shipment-schema.d.ts +11 -11
  90. package/components/templates/void-label/void-label.d.ts +1 -1
  91. package/components/templates/wallet-card/index.d.ts +1 -0
  92. package/components/templates/wallet-card/wallet-card.d.ts +4 -0
  93. package/components/templates/wallet-card/wallet-card.styles.d.ts +1 -0
  94. package/components/templates/wallet-form/billing-fields.d.ts +6 -0
  95. package/components/templates/wallet-form/edit-wallet-address-form.d.ts +16 -0
  96. package/components/templates/wallet-form/index.d.ts +4 -0
  97. package/components/templates/wallet-form/wallet-form.d.ts +11 -0
  98. package/components/templates/wallet-form/wallet-form.styles.d.ts +1 -0
  99. package/components/templates/wallet-form/wallet-schema.d.ts +269 -0
  100. package/components/templates/warehouse-display/warehouse-display.d.ts +1 -1
  101. package/components/templates/warehouse-form/index.d.ts +1 -0
  102. package/components/templates/warehouse-form/warehouse-form-schema.d.ts +503 -0
  103. package/components/templates/warehouse-form/warehouse-form.d.ts +10 -0
  104. package/components/templates/warehouse-form/warehouse-form.styles.d.ts +1 -0
  105. package/constants/shipengine/address.d.ts +4 -0
  106. package/elements/components/configure-shipment/configure-shipment.d.ts +1 -1
  107. package/elements/components/configure-shipment/hooks/use-address.d.ts +3 -3
  108. package/elements/components/configure-shipment/hooks/use-customs.d.ts +3 -3
  109. package/elements/components/configure-shipment/hooks/use-presets.d.ts +2 -2
  110. package/elements/components/configure-shipment/hooks/use-rates-form.d.ts +1 -1
  111. package/elements/components/configure-shipment/hooks/use-request-rates.d.ts +2 -2
  112. package/elements/components/configure-shipment/hooks/use-shipment-form.d.ts +6 -6
  113. package/elements/components/index.d.ts +2 -3
  114. package/elements/components/list-carriers/hooks/use-list-connected-carriers.d.ts +11 -0
  115. package/elements/components/list-carriers/index.d.ts +1 -0
  116. package/elements/components/list-carriers/list-carriers.d.ts +1 -0
  117. package/elements/components/onboarding/index.d.ts +1 -0
  118. package/elements/components/onboarding/onboarding.d.ts +4 -0
  119. package/elements/components/sales-order/hooks/use-configure-shipment.d.ts +3 -1
  120. package/elements/components/sales-order/hooks/use-import-sales-order.d.ts +2 -2
  121. package/elements/components/sales-order/hooks/use-pending-shipment.d.ts +1 -1
  122. package/elements/components/sales-order/sales-order.d.ts +1 -1
  123. package/elements/components/shipment/shipment.d.ts +1 -1
  124. package/elements/components/void-label/void-label.d.ts +1 -1
  125. package/elements/index.d.ts +2 -3
  126. package/elements/onboarding.d.ts +1 -0
  127. package/factories/shipengine/address.d.ts +1 -1
  128. package/factories/shipengine/carrier.d.ts +1 -1
  129. package/factories/shipengine/label.d.ts +1 -1
  130. package/factories/shipengine/money.d.ts +1 -1
  131. package/factories/shipengine/order-source.d.ts +10 -2
  132. package/factories/shipengine/package.d.ts +2 -2
  133. package/factories/shipengine/resource.d.ts +1 -1
  134. package/factories/shipengine/sales-order.d.ts +1 -1
  135. package/factories/shipengine/service.d.ts +2 -2
  136. package/factories/shipengine/shipment.d.ts +4 -4
  137. package/factories/shipengine/warehouse.d.ts +1 -1
  138. package/factories/shipengine/weight.d.ts +1 -1
  139. package/hooks/index.d.ts +1 -0
  140. package/hooks/options/use-confirmation-options.d.ts +1 -1
  141. package/hooks/options/use-customs-contents-options.d.ts +1 -1
  142. package/hooks/options/use-customs-non-delivery-options.d.ts +1 -1
  143. package/hooks/options/use-insurance-provider-options.d.ts +2 -2
  144. package/hooks/options/use-package-options.d.ts +2 -2
  145. package/hooks/options/use-rate-options.d.ts +1 -1
  146. package/hooks/options/use-service-code-options.d.ts +1 -1
  147. package/hooks/options/use-warehouse-options.d.ts +1 -1
  148. package/hooks/use-carrier-metadata.d.ts +2 -5
  149. package/hooks/use-nested-form.d.ts +2 -2
  150. package/hooks/use-toggle.d.ts +12 -0
  151. package/index.cjs +20093 -17773
  152. package/index.js +20769 -18460
  153. package/locales/en/index.d.ts +122 -6
  154. package/mocks/browser.d.ts +1 -0
  155. package/mocks/carriers/handlers.d.ts +12 -0
  156. package/mocks/carriers/index.d.ts +1 -0
  157. package/mocks/index.d.ts +2 -0
  158. package/mocks/server.d.ts +2 -0
  159. package/mocks/warehouses/handlers.d.ts +1 -0
  160. package/mocks/warehouses/index.d.ts +1 -0
  161. package/package.json +10 -7
  162. package/register.d.ts +1 -4
  163. package/schemas/shipengine/index.d.ts +0 -1
  164. package/schemas/shipengine/money.d.ts +1 -1
  165. package/testing/index.d.ts +0 -1
  166. package/testing/render.d.ts +5 -0
  167. package/types/carrier-metadata.d.ts +10 -5
  168. package/types/shipping-preset/shipping-preset.d.ts +2 -2
  169. package/utilities/date.d.ts +13 -1
  170. package/utilities/money.d.ts +2 -1
  171. package/utilities/rates.d.ts +2 -2
  172. package/utilities/shipengine/address.d.ts +1 -1
  173. package/utilities/shipengine/dimensions.d.ts +1 -1
  174. package/utilities/shipengine/sales-order.d.ts +1 -1
  175. package/utilities/shipengine/shipment.d.ts +1 -1
  176. package/utilities/shipengine/weight.d.ts +1 -1
  177. package/components/organisms/auto-funding-form/auto-funding-form.d.ts +0 -15
  178. package/components/organisms/auto-funding-form/index.d.ts +0 -1
  179. package/components/organisms/index.d.ts +0 -2
  180. package/components/organisms/manual-funding-form/index.d.ts +0 -2
  181. package/components/organisms/manual-funding-form/manual-funding-form.d.ts +0 -17
  182. package/components/organisms/manual-funding-form/manual-funding-schema.d.ts +0 -27
  183. package/components/templates/add-carriers/add-carriers.d.ts +0 -5
  184. package/components/templates/add-carriers/index.d.ts +0 -1
  185. package/components/templates/agreement-form/agreement-form-schema.d.ts +0 -10
  186. package/components/templates/agreement-form/agreement-form.d.ts +0 -8
  187. package/components/templates/agreement-form/agreement-form.styles.d.ts +0 -1
  188. package/components/templates/agreement-form/index.d.ts +0 -1
  189. package/components/templates/billing-form/billing-form-stories.d.ts +0 -6
  190. package/components/templates/billing-form/billing-form.d.ts +0 -9
  191. package/components/templates/billing-form/index.d.ts +0 -2
  192. package/components/templates/funding-methods/funding-methods.d.ts +0 -17
  193. package/components/templates/funding-methods/index.d.ts +0 -1
  194. package/components/templates/register-wallet/index.d.ts +0 -1
  195. package/components/templates/register-wallet/register-wallet.d.ts +0 -3
  196. package/components/templates/register-wallet/register-wallet.styles.d.ts +0 -6
  197. package/elements/add-carriers.d.ts +0 -1
  198. package/elements/components/add-carriers/add-carriers.d.ts +0 -8
  199. package/elements/components/add-carriers/index.d.ts +0 -1
  200. package/elements/components/manage-funding/manage-funding.d.ts +0 -2
  201. package/elements/components/register-wallet/index.d.ts +0 -1
  202. package/elements/components/register-wallet/register-wallet.d.ts +0 -9
  203. package/elements/register-wallet.d.ts +0 -1
  204. package/schemas/shipengine/address.d.ts +0 -17
  205. package/testing/swr.d.ts +0 -15
  206. /package/{elements/components → components}/manage-funding/index.d.ts +0 -0
  207. /package/elements/{manage-funding.d.ts → list-carriers.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
2
+ export declare const getCustomsItemFormSchema: (shipToCountry?: string) => z.ZodEffects<z.ZodObject<z.extendShape<{
3
3
  countryOfOrigin: z.ZodEnum<["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
4
  customsItemId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
5
5
  description: z.ZodString;
@@ -8,24 +8,112 @@ export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
8
8
  quantity: z.ZodNumber;
9
9
  value: z.ZodObject<{
10
10
  amount: z.ZodNumber;
11
- currency: z.ZodNativeEnum<typeof import("dist/shipengine-types/src").Currency>;
11
+ currency: z.ZodNativeEnum<typeof import("@shipengine/api").Currency>;
12
12
  }, "strip", z.ZodTypeAny, {
13
13
  amount: number;
14
- currency: import("dist/shipengine-types/src").Currency;
14
+ currency: import("@shipengine/api").Currency;
15
15
  }, {
16
16
  amount: number;
17
- currency: import("dist/shipengine-types/src").Currency;
17
+ currency: import("@shipengine/api").Currency;
18
18
  }>;
19
19
  }, "strip", z.ZodTypeAny, {
20
20
  value: {
21
21
  amount: number;
22
- currency: import("dist/shipengine-types/src").Currency;
22
+ currency: import("@shipengine/api").Currency;
23
23
  };
24
24
  quantity: number;
25
25
  }, {
26
26
  value: {
27
27
  amount: number;
28
- currency: import("dist/shipengine-types/src").Currency;
28
+ currency: import("@shipengine/api").Currency;
29
+ };
30
+ quantity: number;
31
+ }>;
32
+ }, {
33
+ harmonizedTariffCode: z.ZodString;
34
+ }>, "strip", z.ZodTypeAny, {
35
+ customsItemId?: string | undefined;
36
+ countryOfOrigin: "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";
37
+ description: string;
38
+ harmonizedTariffCode: string;
39
+ valueQuantity: {
40
+ value: {
41
+ amount: number;
42
+ currency: import("@shipengine/api").Currency;
43
+ };
44
+ quantity: number;
45
+ };
46
+ }, {
47
+ customsItemId?: string | null | undefined;
48
+ countryOfOrigin: "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";
49
+ description: string;
50
+ harmonizedTariffCode: string;
51
+ valueQuantity: {
52
+ value: {
53
+ amount: number;
54
+ currency: import("@shipengine/api").Currency;
55
+ };
56
+ quantity: number;
57
+ };
58
+ }>, {
59
+ quantity: number;
60
+ value: {
61
+ amount: number;
62
+ currency: import("@shipengine/api").Currency;
63
+ };
64
+ customsItemId?: string | undefined;
65
+ harmonizedTariffCode?: string | undefined;
66
+ countryOfOrigin: "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";
67
+ description: string;
68
+ } | {
69
+ quantity: number;
70
+ value: {
71
+ amount: number;
72
+ currency: import("@shipengine/api").Currency;
73
+ };
74
+ customsItemId?: string | undefined;
75
+ countryOfOrigin: "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";
76
+ description: string;
77
+ harmonizedTariffCode: string;
78
+ }, {
79
+ customsItemId?: string | null | undefined;
80
+ countryOfOrigin: "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";
81
+ description: string;
82
+ harmonizedTariffCode: string;
83
+ valueQuantity: {
84
+ value: {
85
+ amount: number;
86
+ currency: import("@shipengine/api").Currency;
87
+ };
88
+ quantity: number;
89
+ };
90
+ }> | z.ZodEffects<z.ZodObject<{
91
+ countryOfOrigin: z.ZodEnum<["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"]>;
92
+ customsItemId: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
93
+ description: z.ZodString;
94
+ harmonizedTariffCode: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodString>>, string | undefined, string | null | undefined>;
95
+ valueQuantity: z.ZodObject<{
96
+ quantity: z.ZodNumber;
97
+ value: z.ZodObject<{
98
+ amount: z.ZodNumber;
99
+ currency: z.ZodNativeEnum<typeof import("@shipengine/api").Currency>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ amount: number;
102
+ currency: import("@shipengine/api").Currency;
103
+ }, {
104
+ amount: number;
105
+ currency: import("@shipengine/api").Currency;
106
+ }>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ value: {
109
+ amount: number;
110
+ currency: import("@shipengine/api").Currency;
111
+ };
112
+ quantity: number;
113
+ }, {
114
+ value: {
115
+ amount: number;
116
+ currency: import("@shipengine/api").Currency;
29
117
  };
30
118
  quantity: number;
31
119
  }>;
@@ -37,7 +125,7 @@ export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
37
125
  valueQuantity: {
38
126
  value: {
39
127
  amount: number;
40
- currency: import("dist/shipengine-types/src").Currency;
128
+ currency: import("@shipengine/api").Currency;
41
129
  };
42
130
  quantity: number;
43
131
  };
@@ -49,7 +137,7 @@ export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
49
137
  valueQuantity: {
50
138
  value: {
51
139
  amount: number;
52
- currency: import("dist/shipengine-types/src").Currency;
140
+ currency: import("@shipengine/api").Currency;
53
141
  };
54
142
  quantity: number;
55
143
  };
@@ -57,12 +145,22 @@ export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
57
145
  quantity: number;
58
146
  value: {
59
147
  amount: number;
60
- currency: import("dist/shipengine-types/src").Currency;
148
+ currency: import("@shipengine/api").Currency;
61
149
  };
62
150
  customsItemId?: string | undefined;
63
151
  harmonizedTariffCode?: string | undefined;
64
152
  countryOfOrigin: "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";
65
153
  description: string;
154
+ } | {
155
+ quantity: number;
156
+ value: {
157
+ amount: number;
158
+ currency: import("@shipengine/api").Currency;
159
+ };
160
+ customsItemId?: string | undefined;
161
+ countryOfOrigin: "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";
162
+ description: string;
163
+ harmonizedTariffCode: string;
66
164
  }, {
67
165
  customsItemId?: string | null | undefined;
68
166
  harmonizedTariffCode?: string | null | undefined;
@@ -71,10 +169,12 @@ export declare const customsItemFormSchema: z.ZodEffects<z.ZodObject<{
71
169
  valueQuantity: {
72
170
  value: {
73
171
  amount: number;
74
- currency: import("dist/shipengine-types/src").Currency;
172
+ currency: import("@shipengine/api").Currency;
75
173
  };
76
174
  quantity: number;
77
175
  };
78
176
  }>;
79
- export type CustomsItemFormFields = z.input<typeof customsItemFormSchema>;
80
- export type CustomsItemFormPayload = z.output<typeof customsItemFormSchema>;
177
+ type CustomsItemSchema = ReturnType<typeof getCustomsItemFormSchema>;
178
+ export type CustomsItemFormFields = z.input<CustomsItemSchema>;
179
+ export type CustomsItemFormPayload = z.output<CustomsItemSchema>;
180
+ export {};
@@ -1,9 +1,10 @@
1
1
  /// <reference types="react" />
2
- import * as SE from "@shipengine/types";
2
+ import { SE } from "@shipengine/api";
3
3
  export type CustomsItemFormProps<T = undefined> = {
4
4
  customsItem?: SE.CustomsItem;
5
5
  onCancel?: () => void;
6
6
  onSubmit: (values: SE.CustomsItem) => Promise<void>;
7
+ shipToCountry?: string;
7
8
  } & ({
8
9
  formId: string;
9
10
  portalRef: React.RefObject<T>;
@@ -11,4 +12,4 @@ export type CustomsItemFormProps<T = undefined> = {
11
12
  formId?: string;
12
13
  portalRef?: never;
13
14
  });
14
- export declare const CustomsItemForm: <T extends Element>({ customsItem, formId, onCancel, onSubmit, portalRef, }: CustomsItemFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
15
+ export declare const CustomsItemForm: <T extends Element>({ customsItem, formId, onCancel, onSubmit, portalRef, shipToCountry, }: CustomsItemFormProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import * as SE from "@shipengine/types";
1
+ import { SE } from "@shipengine/api";
2
2
  type CustomsItemsDisplayProps = {
3
3
  onUpdate: (customsItems: SE.CustomsItem[]) => Promise<void>;
4
4
  shipment: SE.SalesOrderShipment;
@@ -0,0 +1,6 @@
1
+ import { CarrierTerms } from "../../../types";
2
+ interface DisplayCarrierTermsParams {
3
+ carrierTerms: CarrierTerms;
4
+ }
5
+ export declare const DisplayCarrierTerms: (c: DisplayCarrierTermsParams) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./display-carrier-terms";
@@ -0,0 +1,6 @@
1
+ import { WalletFormPayload } from "../wallet-form";
2
+ export type EditBillingFormProps = {
3
+ onCancel: () => void;
4
+ onSubmit: (walletPayload: WalletFormPayload) => void;
5
+ };
6
+ export declare const EditBillingForm: ({ onCancel, onSubmit }: EditBillingFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"boldLink" | "container" | "heading" | "subtitle", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
@@ -0,0 +1 @@
1
+ export * from "./edit-billing-form";
@@ -1,16 +1,20 @@
1
- export * from "./add-carriers";
1
+ export * from "./add-carrier-form";
2
2
  export * from "./address-display";
3
3
  export * from "./address-form";
4
4
  export * from "./address-parser";
5
5
  export * from "./address-preference-display";
6
- export * from "./agreement-form";
6
+ export * from "./carrier-recovery-form";
7
+ export * from "./carrier-terms-form";
7
8
  export * from "./customs-item-form";
8
- export * from "./funding-methods";
9
9
  export * from "./label";
10
+ export * from "./landing-page";
11
+ export * from "./list-carriers";
10
12
  export * from "./manage-warehouses";
13
+ export * from "./onboarding";
11
14
  export * from "./rate-form";
12
- export * from "./register-wallet";
13
15
  export * from "./sales-order";
14
16
  export * from "./shipment-form";
15
17
  export * from "./shipment";
18
+ export * from "./warehouse-form";
16
19
  export * from "./void-label";
20
+ export * from "./wallet-form";
@@ -1,10 +1,10 @@
1
- import * as SE from "@shipengine/types";
1
+ import { SE } from "@shipengine/api";
2
2
  export type LabelProps = {
3
3
  label: SE.Label & {
4
4
  carrier?: SE.Carrier;
5
5
  deliveryConfirmation?: SE.ConfirmationType;
6
6
  insuredValue?: SE.Money;
7
- service?: SE.Service;
7
+ service?: SE.CarrierService;
8
8
  };
9
9
  onClickPrintLabel?: () => void;
10
10
  onClickVoid?: (label: SE.Label) => void;
@@ -0,0 +1 @@
1
+ export * from "./landing-page";
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare const landingPageFormSchema: z.ZodObject<{
3
+ email: z.ZodString;
4
+ }, "strip", z.ZodTypeAny, {
5
+ email: string;
6
+ }, {
7
+ email: string;
8
+ }>;
9
+ export type LandingPageFormFields = z.input<typeof landingPageFormSchema>;
10
+ export type LandingPageFormPayload = z.output<typeof landingPageFormSchema>;
@@ -0,0 +1,4 @@
1
+ export type LandingPageFormProps = {
2
+ onSubmit: (payload: string) => void;
3
+ };
4
+ export declare const LandingPageForm: ({ onSubmit }: LandingPageFormProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export type LandingPageProps = {
2
+ onSubmit: (payload: string) => void;
3
+ };
4
+ export declare const LandingPage: ({ onSubmit }: LandingPageProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"container" | "description" | "header", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
@@ -0,0 +1 @@
1
+ export * from "./list-carriers";
@@ -0,0 +1,9 @@
1
+ import { CarrierConnection, CodedError } from "@shipengine/api";
2
+ import { ConnectedCarrierMetadata } from "../../../elements/components/list-carriers/hooks/use-list-connected-carriers";
3
+ export type ListCarriersProps = {
4
+ carriers?: ConnectedCarrierMetadata[];
5
+ isLoading?: boolean;
6
+ onRegisterCarrier: (payload: CarrierConnection) => Promise<void>;
7
+ registerCarrierErrors?: CodedError[] | null;
8
+ };
9
+ export declare const ListCarriers: ({ carriers, isLoading, onRegisterCarrier, registerCarrierErrors, }: ListCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"listContainer" | "skeletonLogoContainer" | "skeletonRow", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
@@ -0,0 +1 @@
1
+ export * from "./list-carriers-row";
@@ -0,0 +1,9 @@
1
+ import { CodedError } from "@shipengine/api";
2
+ import { ConnectedCarrierMetadata } from "../../../elements/components/list-carriers/hooks/use-list-connected-carriers";
3
+ import { AddCarrierFormPayload } from "../add-carrier-form";
4
+ export type ListCarriersRowProps = {
5
+ connectedCarrier: ConnectedCarrierMetadata;
6
+ registerCarrier: (payload?: AddCarrierFormPayload) => Promise<void>;
7
+ registerCarrierErrors?: CodedError[] | null;
8
+ };
9
+ export declare const ListCarriersRow: ({ connectedCarrier: { carrier, isConnected }, registerCarrier, registerCarrierErrors, }: ListCarriersRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"carrierTypography" | "container" | "loadingButtonContainer" | "logoContainer" | "rowContainer" | "statusChipConnected" | "statusChipNotConnected", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
@@ -0,0 +1 @@
1
+ export * from "./manage-wallet";
@@ -0,0 +1 @@
1
+ export declare const ManageWallet: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"container" | "subtitle" | "headingContainer", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
@@ -1,5 +1,10 @@
1
- import * as SE from "@shipengine/types";
1
+ import { SE } from "@shipengine/api";
2
2
  export type ManageWarehousesProps = {
3
+ errors?: SE.CodedError[];
4
+ onAdd: (payload: Omit<SE.Warehouse, "createdAt" | "warehouseId">) => Promise<void> | void;
5
+ onDelete: (warehouseId: string) => Promise<void> | void;
6
+ onEdit: (payload: Omit<SE.Warehouse, "createdAt" | "warehouseId">, warehouseId: string) => Promise<void> | void;
7
+ onSetDefault: (warehouse: Partial<SE.Warehouse>, warehouseId: string) => Promise<void> | void;
3
8
  warehouses: SE.Warehouse[];
4
9
  };
5
- export declare const ManageWarehouses: ({ warehouses }: ManageWarehousesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export declare const ManageWarehouses: ({ errors, onAdd, onDelete, onEdit, onSetDefault, warehouses, }: ManageWarehousesProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from "./onboarding";
@@ -0,0 +1,18 @@
1
+ import { SE } from "@shipengine/api";
2
+ export type OnboardingProps = {
3
+ carriers: SE.Carrier[];
4
+ createWarehouse: (payload: Partial<SE.Warehouse>) => Promise<SE.Warehouse>;
5
+ isLoadingDhl: boolean;
6
+ isLoadingUps: boolean;
7
+ onCarrierCreated: () => Promise<void>;
8
+ onCompleteOnboarding: () => void;
9
+ onWarehouseCreated: () => Promise<void>;
10
+ registerDhlCarrier: (payload: SE.CarrierConnection) => Promise<void>;
11
+ registerDhlCarrierErrors: SE.CodedError[] | null;
12
+ registerStampsCarrier: (payload: SE.CarrierConnection) => Promise<void>;
13
+ registerStampsCarrierErrors: SE.CodedError[] | null;
14
+ registerUpsCarrier: (payload: SE.CarrierConnection) => Promise<void>;
15
+ registerUpsCarrierErrors: SE.CodedError[] | null;
16
+ warehouses: SE.Warehouse[];
17
+ };
18
+ export declare const Onboarding: ({ carriers, createWarehouse, onCarrierCreated, onWarehouseCreated, isLoadingDhl, isLoadingUps, onCompleteOnboarding, registerDhlCarrier, registerDhlCarrierErrors, registerStampsCarrier, registerStampsCarrierErrors, registerUpsCarrier, registerUpsCarrierErrors, warehouses, }: OnboardingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"lastStep" | "step", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
@@ -1,4 +1,4 @@
1
- import * as SE from "@shipengine/types";
1
+ import { SE } from "@shipengine/api";
2
2
  export type RateFormFeatures = {
3
3
  enableGlobalPostFiltering?: boolean;
4
4
  includeRecommendedRates?: boolean;
@@ -13,7 +13,7 @@ export type RateFormProps = {
13
13
  isLoading?: boolean;
14
14
  labelErrors?: SE.CodedError[];
15
15
  onSave?: (rate: Pick<SE.Rate, "carrierId" | "serviceCode">) => Promise<void> | void;
16
- onSelectRate: (rateId: string) => void;
16
+ onSelectRate?: (rateId: string) => void;
17
17
  onSubmit?: (rateId: string) => Promise<void> | void;
18
18
  rates?: SE.Rate[];
19
19
  shipment?: SE.SalesOrderShipment;
@@ -0,0 +1 @@
1
+ export declare const styles: Record<"fundAndPurchase" | "ratesInterstitial" | "showMoreOrLessRatesButton", import("@emotion/serialize").Interpolation<import("@packlink/brands/dist/js/theme/Theme").Theme>>;
@@ -1,5 +1,5 @@
1
1
  import { WithChildrenCommonProps } from "@packlink/giger";
2
- import * as SE from "@shipengine/types";
2
+ import { SE } from "@shipengine/api";
3
3
  export type SalesOrderProps = WithChildrenCommonProps<{
4
4
  errors?: SE.CodedError[];
5
5
  isLoading?: boolean;
@@ -1,4 +1,4 @@
1
- import * as SE from "@shipengine/types";
1
+ import { SE } from "@shipengine/api";
2
2
  export declare const schedulePickupForCarrier: (carrierCode?: string, plaftformSchedulePickupUrl?: string) => string | undefined;
3
3
  export type ShipmentFeatures = {
4
4
  schedulePickup?: boolean;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import * as SE from "@shipengine/types";
2
+ import { SE } from "@shipengine/api";
3
3
  import { UseShippingPresetsOptionsProps } from "../../../hooks";
4
4
  import { ShippingPreset } from "../../../types";
5
5
  import { AddressParserPayload } from "../address-parser";
@@ -12,7 +12,7 @@ export type ShipmentFormProps = {
12
12
  addressPreference?: AddressPreference;
13
13
  carriers?: SE.Carrier[];
14
14
  charsetWarning?: CharsetWarning;
15
- customPackageTypes?: SE.Package[];
15
+ customPackageTypes?: SE.CustomPackage[];
16
16
  errors?: SE.CodedError[];
17
17
  features?: ShipmentFormFeatures;
18
18
  hydrateRef: React.MutableRefObject<((updatedShipment: SE.SalesOrderShipment) => void) | undefined>;
@@ -27,7 +27,7 @@ export type ShipmentFormProps = {
27
27
  }) => Promise<void> | void;
28
28
  onDirty: () => void;
29
29
  onSubmit: (values: Partial<SE.SalesOrderShipment>) => Promise<SE.SalesOrderShipment | undefined>;
30
- onSubmitParseShipTo: (payload: AddressParserPayload) => Promise<SE.AddressParseResponse | undefined>;
30
+ onSubmitParseShipTo: (payload: AddressParserPayload) => Promise<SE.AddressExtraction | undefined>;
31
31
  onToggleAddressPreferenceDisclosure?: AddressPreferenceDisplayProps["onToggleDisclosure"];
32
32
  onUpdateCustoms?: (customs: SE.Customs) => Promise<SE.SalesOrderShipment | undefined>;
33
33
  salesOrder: SE.SalesOrder;
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import * as SE from "@shipengine/types";
2
+ import { SE } from "@shipengine/api";
3
3
  type GetShipmentSchemaOptions = {
4
4
  allowInternationalShipFrom?: boolean;
5
5
  isCustomsRequired?: boolean;
@@ -57,7 +57,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
57
57
  }[];
58
58
  nonDelivery: SE.CustomsNonDeliveryType;
59
59
  }>>>;
60
- insuranceProvider: z.ZodDefault<z.ZodNativeEnum<typeof SE.InsuranceProvider>>;
60
+ insuranceProvider: z.ZodDefault<z.ZodNativeEnum<typeof SE.InsuranceProviderType>>;
61
61
  packages: z.ZodArray<z.ZodObject<{
62
62
  dimensions: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodObject<{
63
63
  height: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number, number | null | undefined>;
@@ -218,7 +218,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
218
218
  shipmentId?: string | undefined;
219
219
  __mode: "browse_rates";
220
220
  confirmation: SE.ConfirmationType;
221
- insuranceProvider: SE.InsuranceProvider;
221
+ insuranceProvider: SE.InsuranceProviderType;
222
222
  packages: {
223
223
  dimensions?: SE.DimensionsWithUnit | undefined;
224
224
  insuredValue?: {
@@ -248,7 +248,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
248
248
  }[];
249
249
  nonDelivery: SE.CustomsNonDeliveryType;
250
250
  } | null | undefined;
251
- insuranceProvider?: SE.InsuranceProvider | undefined;
251
+ insuranceProvider?: SE.InsuranceProviderType | undefined;
252
252
  service?: {
253
253
  carrierId?: string | null | undefined;
254
254
  serviceCode?: string | null | undefined;
@@ -334,7 +334,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
334
334
  }[];
335
335
  nonDelivery: SE.CustomsNonDeliveryType;
336
336
  }>>>;
337
- insuranceProvider: z.ZodDefault<z.ZodNativeEnum<typeof SE.InsuranceProvider>>;
337
+ insuranceProvider: z.ZodDefault<z.ZodNativeEnum<typeof SE.InsuranceProviderType>>;
338
338
  packages: z.ZodArray<z.ZodObject<{
339
339
  dimensions: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodObject<{
340
340
  height: z.ZodEffects<z.ZodNullable<z.ZodOptional<z.ZodNumber>>, number, number | null | undefined>;
@@ -647,7 +647,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
647
647
  shipmentId?: string | undefined;
648
648
  __mode: "select_service";
649
649
  confirmation: SE.ConfirmationType;
650
- insuranceProvider: SE.InsuranceProvider;
650
+ insuranceProvider: SE.InsuranceProviderType;
651
651
  packages: {
652
652
  dimensions?: SE.DimensionsWithUnit | undefined;
653
653
  insuredValue?: {
@@ -681,7 +681,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
681
681
  }[];
682
682
  nonDelivery: SE.CustomsNonDeliveryType;
683
683
  } | null | undefined;
684
- insuranceProvider?: SE.InsuranceProvider | undefined;
684
+ insuranceProvider?: SE.InsuranceProviderType | undefined;
685
685
  shipmentId?: string | null | undefined;
686
686
  __mode: "select_service";
687
687
  packages: {
@@ -773,7 +773,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
773
773
  shipmentId?: string | undefined;
774
774
  __mode: "browse_rates";
775
775
  confirmation: SE.ConfirmationType;
776
- insuranceProvider: SE.InsuranceProvider;
776
+ insuranceProvider: SE.InsuranceProviderType;
777
777
  shipDate: string;
778
778
  warehouseId: string;
779
779
  } | {
@@ -837,7 +837,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
837
837
  shipmentId?: string | undefined;
838
838
  __mode: "select_service";
839
839
  confirmation: SE.ConfirmationType;
840
- insuranceProvider: SE.InsuranceProvider;
840
+ insuranceProvider: SE.InsuranceProviderType;
841
841
  shipDate: string;
842
842
  warehouseId: string;
843
843
  }, {
@@ -855,7 +855,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
855
855
  }[];
856
856
  nonDelivery: SE.CustomsNonDeliveryType;
857
857
  } | null | undefined;
858
- insuranceProvider?: SE.InsuranceProvider | undefined;
858
+ insuranceProvider?: SE.InsuranceProviderType | undefined;
859
859
  service?: {
860
860
  carrierId?: string | null | undefined;
861
861
  serviceCode?: string | null | undefined;
@@ -905,7 +905,7 @@ export declare const getShipmentSchema: ({ allowInternationalShipFrom, warehouse
905
905
  }[];
906
906
  nonDelivery: SE.CustomsNonDeliveryType;
907
907
  } | null | undefined;
908
- insuranceProvider?: SE.InsuranceProvider | undefined;
908
+ insuranceProvider?: SE.InsuranceProviderType | undefined;
909
909
  shipmentId?: string | null | undefined;
910
910
  __mode: "select_service";
911
911
  packages: {