@shipengine/elements 1.7.0 → 1.9.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 (147) hide show
  1. package/address-8f8119f4.js +1 -0
  2. package/carrier-2abb4760.js +1 -0
  3. package/carrier-logo-1b6c767e.js +1 -0
  4. package/components.js +1 -0
  5. package/constants.js +1 -0
  6. package/elements.js +1 -0
  7. package/extensions.js +1 -0
  8. package/feature-flags-3e03717c.js +1 -0
  9. package/formatString-413ec7c7.js +1 -0
  10. package/hooks.js +1 -0
  11. package/index.js +1 -25135
  12. package/money-fbc4d0b3.js +1 -0
  13. package/package.json +48 -6
  14. package/payment-method-settings-element-595cc38d.js +1 -0
  15. package/phone-87dd7bd8.js +1 -0
  16. package/schemas.js +1 -0
  17. package/shipment-90d35708.js +1 -0
  18. package/src/components/address-preference-context/address-preference-context.d.ts +5 -2
  19. package/src/components/carrier-icon/carrier-icon.d.ts +9 -9
  20. package/src/components/carrier-logo/carrier-logo.d.ts +2 -1
  21. package/src/components/collapsible-panel/collapsible-panel.styles.d.ts +2 -3
  22. package/src/components/display-term/display-term.d.ts +2 -2
  23. package/src/components/display-term/display-term.styles.d.ts +2 -0
  24. package/src/components/field/date-picker/date-picker.d.ts +1 -1
  25. package/src/components/field/rate-card/rate-card.d.ts +2 -1
  26. package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
  27. package/src/components/field/rate-select/rate-select.d.ts +6 -1
  28. package/src/components/fund-and-purchase/fund-and-purchase.d.ts +4 -1
  29. package/src/components/here-map/here-map.d.ts +16 -0
  30. package/src/components/here-map/here-map.styles.d.ts +23 -0
  31. package/src/components/index.d.ts +7 -5
  32. package/src/components/modal/modal.d.ts +2 -1
  33. package/src/components/rate-details/index.d.ts +1 -0
  34. package/src/components/rate-details/rate-details.d.ts +17 -0
  35. package/src/components/rate-details/rate-details.styles.d.ts +23 -0
  36. package/src/components/search-bar/index.d.ts +1 -0
  37. package/src/components/search-bar/search-bar.d.ts +8 -0
  38. package/src/components/service-point-display/operating-hours.d.ts +6 -0
  39. package/src/components/service-point-display/operating-hours.styles.d.ts +44 -0
  40. package/src/components/service-point-display/service-point-display.d.ts +6 -6
  41. package/src/components/service-point-display/service-point-display.styles.d.ts +13 -19
  42. package/src/components/service-points/service-points.d.ts +2 -1
  43. package/src/components/tabs/tabs.d.ts +5 -1
  44. package/src/components/tabs/tabs.styles.d.ts +3 -2
  45. package/src/components/templates/index.d.ts +1 -1
  46. package/src/components/templates/label/label.styles.d.ts +21 -1
  47. package/src/components/templates/product-form/product-form-schema.d.ts +12 -0
  48. package/src/components/templates/pudo-rate-tabs/index.d.ts +0 -1
  49. package/src/components/templates/pudo-rate-tabs/pudo-list-view/pudo-list-view.d.ts +5 -0
  50. package/src/components/templates/pudo-rate-tabs/pudo-map-view/pudo-map-view.d.ts +15 -0
  51. package/src/components/templates/pudo-rate-tabs/pudo-rate-tabs.d.ts +17 -15
  52. package/src/components/templates/rate-form/rate-form.d.ts +10 -2
  53. package/src/components/templates/register-funding-source-carrier-form/index.d.ts +2 -0
  54. package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.d.ts +13 -0
  55. package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.styles.d.ts +25 -0
  56. package/src/components/templates/{add-carrier-form/add-carrier-form-schema.d.ts → register-funding-source-carrier-form/register-funding-source-carrier-schema.d.ts} +42 -88
  57. package/src/components/templates/shipment/shipment.d.ts +2 -1
  58. package/src/components/templates/wallet-form/wallet-form.d.ts +3 -1
  59. package/src/components/templates/wallet-form/wallet-form.styles.d.ts +3 -0
  60. package/src/components/vat-form/index.d.ts +1 -0
  61. package/src/components/vat-form/vat-form-schema.d.ts +10 -0
  62. package/src/components/vat-form/vat-form.d.ts +6 -0
  63. package/src/components/vat-form/vat-form.styles.d.ts +9 -0
  64. package/src/elements/external-carriers/external-carriers.d.ts +198 -101
  65. package/src/elements/label-layout/label-layout-element.d.ts +150 -77
  66. package/src/elements/labels-grid/labels-grid.d.ts +150 -77
  67. package/src/elements/manage-funding/manage-funding-element.d.ts +150 -77
  68. package/src/elements/manage-warehouses/manage-warehouses.d.ts +150 -77
  69. package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +150 -77
  70. package/src/elements/purchase-label/configure-shipment.d.ts +2 -1
  71. package/src/elements/purchase-label/hooks/use-rates-form.d.ts +5 -0
  72. package/src/elements/purchase-label/purchase-label.d.ts +170 -80
  73. package/src/elements/shipengine-carriers/shipengine-carriers.d.ts +173 -100
  74. package/src/elements/shipments-grid/shipments-grid.d.ts +150 -77
  75. package/src/elements/theme-creator/theme-creator.d.ts +150 -77
  76. package/src/elements/theme-creator/themeData/themeData.d.ts +0 -1
  77. package/src/elements/unit-settings/unit-settings-element.d.ts +150 -77
  78. package/src/elements/vat-settings/index.d.ts +1 -0
  79. package/src/elements/vat-settings/vat-settings-element.d.ts +864 -0
  80. package/src/elements/view-shipment/view-shipment.d.ts +181 -100
  81. package/src/elements/void-label/components/actions/actions.d.ts +3 -3
  82. package/src/elements/void-label/components/message/message.d.ts +3 -2
  83. package/src/elements/void-label/void-label.d.ts +183 -96
  84. package/src/elements/wallet-history/wallet-history-element.d.ts +150 -77
  85. package/src/factories/shipengine/label.d.ts +2 -0
  86. package/src/features/external-carriers/external-carriers.d.ts +2 -1
  87. package/src/features/index.d.ts +5 -4
  88. package/src/features/shipengine-carriers/hooks/index.d.ts +2 -1
  89. package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +2 -13
  90. package/src/features/shipengine-carriers/hooks/{use-list-connected-carriers.d.ts → use-list-funding-source-carriers.d.ts} +3 -3
  91. package/src/features/shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts +9 -7
  92. package/src/features/unit-settings/unit-settings.d.ts +2 -2
  93. package/src/features/unit-settings/use-unit-settings.d.ts +1 -1
  94. package/src/features/vat-settings/index.d.ts +2 -0
  95. package/src/features/vat-settings/use-vat-settings.d.ts +8 -0
  96. package/src/features/vat-settings/vat-settings.d.ts +9 -0
  97. package/src/features/vat-settings/vat-settings.styles.d.ts +29 -0
  98. package/src/hooks/here-map/init.d.ts +6 -0
  99. package/src/hooks/here-map/use-here-map-ui.d.ts +10 -0
  100. package/src/hooks/here-map/use-here-map.d.ts +5 -0
  101. package/src/hooks/index.d.ts +3 -3
  102. package/src/hooks/options/use-service-points.d.ts +5 -3
  103. package/src/locales/en/index.d.ts +150 -77
  104. package/src/testing/test-utils.d.ts +1 -0
  105. package/src/types/carrier-metadata.d.ts +7 -11
  106. package/src/types/index.d.ts +0 -1
  107. package/src/utilities/date.d.ts +1 -2
  108. package/src/utilities/feature-flags.d.ts +12 -2
  109. package/src/utilities/shipengine/carrier.d.ts +8 -0
  110. package/src/utilities/shipengine/index.d.ts +1 -0
  111. package/src/utilities/shipengine/shipment.d.ts +11 -0
  112. package/src/workflows/account-settings/account-settings.d.ts +153 -82
  113. package/src/workflows/connect-carrier/connect-carrier.d.ts +150 -77
  114. package/src/workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts +155 -81
  115. package/src/workflows/onboarding/components/account-registration-form/account-registration-form-schema.d.ts +3 -0
  116. package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.d.ts +3 -4
  117. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/funding-and-carrier-connection-step.d.ts +3 -1
  118. package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +2 -3
  119. package/src/workflows/onboarding/components/onboarding-wizard/onboarding-wizard.d.ts +2 -2
  120. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.d.ts +3 -4
  121. package/src/workflows/onboarding/components/terms-agreement-form/terms-agreement-form.styles.d.ts +6 -7
  122. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.d.ts +3 -4
  123. package/src/workflows/onboarding/components/terms-agreement-step/terms-agreement-step.styles.d.ts +3 -0
  124. package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +5 -10
  125. package/src/workflows/onboarding/onboarding.d.ts +151 -78
  126. package/story-notes-ce2d8cca.js +1 -0
  127. package/suspend-text-c8c7b6b6.js +1 -0
  128. package/types.js +1 -0
  129. package/use-page-layout-93ffae78.js +1 -0
  130. package/use-scrub-errors-2c4db406.js +1 -0
  131. package/use-toggle-838d2ebd.js +1 -0
  132. package/utilities.js +1 -0
  133. package/validation-b941a548.js +1 -0
  134. package/vite.config.d.ts +1 -1
  135. package/wallet-form-3981400b.js +1 -0
  136. package/wallet-history-5b34c856.js +1 -0
  137. package/warehouse-form-c0b3ea78.js +34 -0
  138. package/warehouses-dfcdce23.js +1 -0
  139. package/workflows.js +1 -0
  140. package/zod-60def96c.js +1 -0
  141. package/index.cjs +0 -25349
  142. package/src/components/templates/add-carrier-form/add-carrier-form-test.d.ts +0 -1
  143. package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +0 -10
  144. package/src/components/templates/add-carrier-form/index.d.ts +0 -2
  145. package/src/components/templates/pudo-rate-tabs/service-points-search-bar/index.d.ts +0 -1
  146. package/src/components/templates/pudo-rate-tabs/service-points-search-bar/service-points-search-bar.d.ts +0 -6
  147. package/src/types/patch.d.ts +0 -13
@@ -32,6 +32,7 @@ declare const _default: {
32
32
  resultMessages: {
33
33
  approved: string;
34
34
  rejected: string;
35
+ dpdwallet: string;
35
36
  };
36
37
  refund_process: string;
37
38
  refund_rules: string;
@@ -51,6 +52,7 @@ declare const _default: {
51
52
  schedulePickup: string;
52
53
  showItems: string;
53
54
  void: string;
55
+ download: string;
54
56
  };
55
57
  fields: {
56
58
  dimensions: string;
@@ -70,9 +72,42 @@ declare const _default: {
70
72
  multipleShippingServices: string;
71
73
  sections: {
72
74
  labels: string;
75
+ shipmentSummary: string;
73
76
  };
74
77
  noLabels: string;
75
78
  };
79
+ "vat-settings": {
80
+ addNew: string;
81
+ vatNumber: string;
82
+ vatRegistrationTooltip: string;
83
+ vatFormText: string;
84
+ vatFormRegisterLater: string;
85
+ vatNumberInputHint: string;
86
+ vatNumberInputPlaceholder: string;
87
+ verifiedVat: string;
88
+ vatFormErrors: {
89
+ invalidFieldValue: string;
90
+ verificationFailure: string;
91
+ forbidden: string;
92
+ connectionNotSupported: string;
93
+ genericTitle: string;
94
+ genericText: string;
95
+ };
96
+ };
97
+ "shipengine-carriers": {
98
+ title: string;
99
+ headers: {
100
+ accountCarriers: string;
101
+ carriers: string;
102
+ settings: string;
103
+ };
104
+ actions: {
105
+ status: {
106
+ connected: string;
107
+ notConnected: string;
108
+ };
109
+ };
110
+ };
76
111
  "register-wallet": {
77
112
  sections: {
78
113
  setup: {
@@ -88,6 +123,9 @@ declare const _default: {
88
123
  addressSubTitle: string;
89
124
  info: string;
90
125
  };
126
+ vatSettings: {
127
+ title: string;
128
+ };
91
129
  carriers: {
92
130
  title: string;
93
131
  subtitle: string;
@@ -124,8 +162,48 @@ declare const _default: {
124
162
  };
125
163
  };
126
164
  "register-carrier": {
127
- formTitle: string;
128
- agreeToTerms: string;
165
+ formTitle: {
166
+ default: string;
167
+ new: string;
168
+ edit: string;
169
+ };
170
+ notifications: {
171
+ error: {
172
+ title: string;
173
+ };
174
+ };
175
+ };
176
+ "rate-details": {
177
+ total: string;
178
+ subtotal: string;
179
+ registerVat: string;
180
+ concepts: {
181
+ confirmation: string;
182
+ uncategorized: string;
183
+ shipping: string;
184
+ insurance: string;
185
+ confirm: string;
186
+ discount: string;
187
+ fuel_charge: string;
188
+ additional_fees: string;
189
+ tariff: string;
190
+ tax: string;
191
+ delivery: string;
192
+ handling: string;
193
+ special_goods: string;
194
+ pickup: string;
195
+ location_fee: string;
196
+ oversize: string;
197
+ returns: string;
198
+ notifications: string;
199
+ tip: string;
200
+ duties_and_taxes: string;
201
+ brokerage_fee: string;
202
+ admin_fee: string;
203
+ adjustment: string;
204
+ auctane_service_fee: string;
205
+ product_price: string;
206
+ };
129
207
  };
130
208
  "purchase-label": {
131
209
  title: string;
@@ -214,6 +292,7 @@ declare const _default: {
214
292
  rateSavings: string;
215
293
  upsGroundSaverTermsAcknowledgement: string;
216
294
  dhlExpressTermsAcknowledgement: string;
295
+ noRateService: string;
217
296
  };
218
297
  requirements: {
219
298
  noWarehouse: string;
@@ -237,7 +316,10 @@ declare const _default: {
237
316
  today: string;
238
317
  viewMap: string;
239
318
  otherLocations: string;
240
- noServicePointsFound: string;
319
+ noServicePointsForService: string;
320
+ error: string;
321
+ paperless: string;
322
+ localTimeDisclaimer: string;
241
323
  };
242
324
  shipToAddressFormFields: string;
243
325
  sections: {
@@ -280,6 +362,8 @@ declare const _default: {
280
362
  action: string;
281
363
  };
282
364
  termsAndAgreementLinkText: {
365
+ shipEngineToS: string;
366
+ auctanePrivacyPolicy: string;
283
367
  aHR0cHM6Ly9teWRobC5leHByZXNzLmRobC91cy9lbi9sZWdhbC90ZXJtcy1hbmQtY29uZGl0aW9ucy5odG1s: string;
284
368
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9wcml2YWN5LXBvbGljeQ==": string;
285
369
  "aHR0cHM6Ly93d3cuc3RhbXBzLmNvbS9jb25kaXRpb25zLw==": string;
@@ -304,42 +388,6 @@ declare const _default: {
304
388
  UHVyb2xhdG9yIE1vZGFsaXTDqXMgZXQgY29uZGl0aW9ucyBkZSBzZXJ2aWNl: string;
305
389
  };
306
390
  };
307
- "manage-defaults": {
308
- label: {
309
- title: string;
310
- letter: {
311
- title: string;
312
- description: string;
313
- };
314
- purchase: {
315
- title: string;
316
- description: string;
317
- };
318
- thermal: {
319
- title: string;
320
- description: string;
321
- };
322
- };
323
- status: {
324
- saving: string;
325
- saved: string;
326
- savingFailed: string;
327
- };
328
- units: {
329
- title: string;
330
- dimensions: {
331
- title: string;
332
- standard: string;
333
- metric: string;
334
- };
335
- weight: {
336
- title: string;
337
- standard: string;
338
- g: string;
339
- kg: string;
340
- };
341
- };
342
- };
343
391
  "manage-warehouses": {
344
392
  title: string;
345
393
  addNew: string;
@@ -407,6 +455,42 @@ declare const _default: {
407
455
  currentBalance: string;
408
456
  maximumBalanceAmount: string;
409
457
  };
458
+ "manage-defaults": {
459
+ label: {
460
+ title: string;
461
+ letter: {
462
+ title: string;
463
+ description: string;
464
+ };
465
+ purchase: {
466
+ title: string;
467
+ description: string;
468
+ };
469
+ thermal: {
470
+ title: string;
471
+ description: string;
472
+ };
473
+ };
474
+ status: {
475
+ saving: string;
476
+ saved: string;
477
+ savingFailed: string;
478
+ };
479
+ units: {
480
+ title: string;
481
+ dimensions: {
482
+ title: string;
483
+ standard: string;
484
+ metric: string;
485
+ };
486
+ weight: {
487
+ title: string;
488
+ standard: string;
489
+ g: string;
490
+ kg: string;
491
+ };
492
+ };
493
+ };
410
494
  "list-shipments": {
411
495
  title: string;
412
496
  headers: {
@@ -437,18 +521,31 @@ declare const _default: {
437
521
  };
438
522
  };
439
523
  };
440
- "shipengine-carriers": {
441
- title: string;
442
- headers: {
443
- accountCarriers: string;
444
- carriers: string;
445
- settings: string;
446
- };
524
+ "connect-carrier": {
447
525
  actions: {
448
- status: {
449
- connected: string;
450
- notConnected: string;
451
- };
526
+ cancel: string;
527
+ carrierSettings: string;
528
+ connectCarriers: string;
529
+ disconnect: string;
530
+ disconnectCarrier: string;
531
+ };
532
+ noCarriersDescription: string;
533
+ registrationForm: {
534
+ error: string;
535
+ title: string;
536
+ betaWarning: string;
537
+ };
538
+ search: string;
539
+ settingsModal: {
540
+ closeDialog: string;
541
+ header: string;
542
+ };
543
+ status: {
544
+ connected: string;
545
+ };
546
+ disconnectDropdown: {
547
+ toastTitle: string;
548
+ toastBody: string;
452
549
  };
453
550
  };
454
551
  common: {
@@ -635,6 +732,7 @@ declare const _default: {
635
732
  accountSettings: string;
636
733
  carrier: string;
637
734
  carriers: string;
735
+ carrierServices: string;
638
736
  connectCarrierForm: string;
639
737
  connectingCarriers: string;
640
738
  creatingFundingSource: string;
@@ -725,6 +823,7 @@ declare const _default: {
725
823
  gram: string;
726
824
  kilogram: string;
727
825
  };
826
+ ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
728
827
  T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
729
828
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
730
829
  "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
@@ -737,33 +836,6 @@ declare const _default: {
737
836
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBNaXNzaW5nIG9yIGludmFsaWQgc2hpcCB0byBTdGF0ZVByb3ZpbmNlQ29kZQ==": string;
738
837
  "QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
739
838
  };
740
- "connect-carrier": {
741
- actions: {
742
- cancel: string;
743
- carrierSettings: string;
744
- connectCarriers: string;
745
- disconnect: string;
746
- disconnectCarrier: string;
747
- };
748
- noCarriersDescription: string;
749
- registrationForm: {
750
- error: string;
751
- title: string;
752
- betaWarning: string;
753
- };
754
- search: string;
755
- settingsModal: {
756
- closeDialog: string;
757
- header: string;
758
- };
759
- status: {
760
- connected: string;
761
- };
762
- disconnectDropdown: {
763
- toastTitle: string;
764
- toastBody: string;
765
- };
766
- };
767
839
  "account-settings": {
768
840
  messages: {
769
841
  noFundingSources: string;
@@ -779,6 +851,7 @@ declare const _default: {
779
851
  externalCarriers: string;
780
852
  labelLayout: string;
781
853
  unitSettings: string;
854
+ vatSettings: string;
782
855
  };
783
856
  };
784
857
  };
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { prettyFormat as __ } from "@testing-library/dom/types/pretty-dom";
2
3
  import { UserEvent } from "@testing-library/user-event/dist/types/setup/setup";
3
4
  import { IconNames, Theme } from "@shipengine/giger-theme";
@@ -1,4 +1,4 @@
1
- import { CarrierConnection, SE } from "@shipengine/alchemy";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  /**
3
3
  * @internal
4
4
  *
@@ -21,22 +21,18 @@ export type CarrierTerms = {
21
21
  links: CarrierTerm[];
22
22
  title: string;
23
23
  };
24
- export type CarrierMetadataMapping = {
25
- [countryCode: string]: CarrierMetadata[];
26
- };
27
24
  /**
28
25
  * @internal
29
26
  *
30
27
  * # Carrier Metadata
31
28
  */
32
- export type CarrierMetadata = {
33
- carrierCode: CarrierConnection["carrierCode"];
34
- logo: string;
29
+ export type CarrierWithFriendlyName = {
35
30
  name: string;
36
- optionalFields?: string[];
37
- requiredFields?: string[];
38
- shortname: string;
39
- terms?: CarrierTerms;
31
+ };
32
+ export type CarrierMetadata = Record<string, CarrierWithFriendlyName>;
33
+ export type CarrierMetadataFromFundingSource = {
34
+ carrierProfile: SE.MetadataCarrierProfile;
35
+ friendlyName: string;
40
36
  };
41
37
  /**
42
38
  * @internal
@@ -1,4 +1,3 @@
1
1
  export * from "./carrier-metadata";
2
- export * from "./patch";
3
2
  export * from "./shipping-preset";
4
3
  export * from "./preferred-rates";
@@ -1,4 +1,3 @@
1
- import * as Locales from "date-fns/locale";
2
1
  /**
3
2
  * @internal
4
3
  *
@@ -13,7 +12,7 @@ export declare const formatDate: (date: string, locale?: string) => string;
13
12
  * @param locale string i.e. "en-US"
14
13
  * @returns locale data
15
14
  */
16
- export declare const findDateLocale: (locale?: string) => Locales.Locale;
15
+ export declare const findDateLocale: (locale?: string) => import("date-fns/locale").Locale;
17
16
  /**
18
17
  * @internal
19
18
  * Given a date and a locale, format the date to the locale's date format.
@@ -45,7 +45,7 @@ export declare const featureFlags: {
45
45
  * `CarrierConnections` all scoped feature flags for "Bring your own carrier" connections.
46
46
  */
47
47
  readonly CarrierConnections: {
48
- readonly availableCarrierConnections: readonly ["apc", "asendia", "better_trucks", "canpar", "chronopost", "couriers_please", "courierpost", "dpd", "hermes_germany", "intelliquick_delivery", "lso", "ontrac", "seko", "ups", "yodel"];
48
+ readonly availableCarrierConnections: readonly ["apc", "asendia", "better_trucks", "canpar", "carrier_oauth_demo", "chronopost", "couriers_please", "courierpost", "dpd", "hermes_germany", "intelliquick_delivery", "lso", "ontrac", "seko", "ups", "yodel"];
49
49
  };
50
50
  /**
51
51
  * `ConfigureSalesOrderShipment` all scoped feature flags for the shipment configuration
@@ -161,7 +161,7 @@ export declare const featureFlags: {
161
161
  * `enabledCarriers` is a list of all `carriers` that are enabled for use in ShipEngine
162
162
  * Elements.
163
163
  */
164
- readonly enabledCarriers: readonly ["aramex_au_walleted", "canada_post_walleted", "canpar_walleted", "couriersplease_walleted", "dhl_express_walleted", "dpd_germany_walleted", "dpdwallet", "globalpost", "hermes", "purolator_walleted", "sendle_walleted", "stamps_com", "ups_walleted", "ups", "yodel_walleted"];
164
+ readonly enabledCarriers: readonly ["aramex_au_walleted", "canada_post_walleted", "canpar_walleted", "couriersplease_walleted", "dhl_express_walleted", "dhl_express_worldwide", "dpd_germany_walleted", "dpdwallet", "globalpost", "hermes", "purolator_walleted", "sendle_walleted", "stamps_com", "ups_walleted", "ups", "yodel_walleted"];
165
165
  };
166
166
  /**
167
167
  * All global `presentation` related feature flags.
@@ -173,6 +173,16 @@ export declare const featureFlags: {
173
173
  */
174
174
  readonly poweredByShipEngine: false;
175
175
  };
176
+ /**
177
+ * All global `vatSettings` related feature flags.
178
+ */
179
+ readonly vatSettings: {
180
+ /**
181
+ * `showVatSettings` enables the `vatSettings feature` in AccountSettings/Onboarding/LabelPurchase
182
+ * This flag is meant to be used while development and removed once the feature is live
183
+ */
184
+ readonly showVatSettings: true;
185
+ };
176
186
  };
177
187
  /**
178
188
  * `ViewShipment` all scoped feature flags for the `<ViewShipment />` element.
@@ -23,3 +23,11 @@ export declare const isUpsCarrier: (carrierCode: string) => boolean;
23
23
  * @category Utilities
24
24
  */
25
25
  export declare const getCarrierIdByCarrierCode: (carriers: SE.Carrier[] | undefined, carrierCode: string) => string | undefined;
26
+ /**
27
+ * @internal
28
+ *
29
+ * # Carrier Utilities - getLogoOrIconByCarrierCode
30
+ *
31
+ * @category Utilities
32
+ */
33
+ export declare const getLogoOrIconByCarrierCode: (carrierCode: string, type: "logo" | "icon") => string;
@@ -5,3 +5,4 @@ export * from "./sales-order";
5
5
  export * from "./shipment";
6
6
  export * from "./weight";
7
7
  export * from "./package";
8
+ export * from "./warehouses";
@@ -39,3 +39,14 @@ export declare const getCancelledShipment: (shipments?: SE.SalesOrderShipment[])
39
39
  * @returns latest created shipment whose shipmentStatus matches the param status
40
40
  */
41
41
  export declare const getShipmentByStatus: (status: SE.ShipmentStatus, shipments?: SE.SalesOrderShipment[]) => SE.SalesOrderShipment | undefined;
42
+ /**
43
+ * @internal
44
+ *
45
+ * # Shipment Utilities - map customsItems to products and delete customsItems from the customs object
46
+ *
47
+ * @category Utilities
48
+ * @param shipment
49
+ * @returns the shipment with customsItems moved to products
50
+ * @see https://www.shipengine.com/docs/shipping/international/#the-customs-object:~:text=New%20products%20array%20replaces%20the%20customs_items%20array
51
+ */
52
+ export declare const moveCustomsItemsToProducts: (shipment: SE.SalesOrderShipment) => SE.SalesOrderShipment;