@shipengine/elements 0.21.3 → 0.21.5

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 (133) hide show
  1. package/index.cjs +787 -1057
  2. package/index.js +694 -955
  3. package/package.json +2 -6
  4. package/src/components/error-fallback/error-fallback.d.ts +9 -0
  5. package/src/components/error-fallback/index.d.ts +1 -0
  6. package/src/components/field/money-input/hooks/use-utils.d.ts +1 -1
  7. package/src/components/field/money-input/money-input.d.ts +1 -1
  8. package/src/components/field/rate-card/cost-breakdown/cost-breakdown.d.ts +1 -1
  9. package/src/components/field/rate-card/rate-card.d.ts +1 -2
  10. package/src/components/history/history-card/history-card.d.ts +1 -1
  11. package/src/components/index.d.ts +1 -1
  12. package/src/components/items-breakdown/items-breakdown.d.ts +1 -1
  13. package/src/components/label-layout/label-layout-purchase.d.ts +1 -1
  14. package/src/components/label-layout/label-layout-settings.d.ts +1 -1
  15. package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +1 -1
  16. package/src/components/templates/address-display/address-display.d.ts +1 -1
  17. package/src/components/templates/address-form/address-form.d.ts +1 -1
  18. package/src/components/templates/address-preference-display/address-preference-display.d.ts +1 -1
  19. package/src/components/templates/address-preference-select/address-preference-select.d.ts +1 -1
  20. package/src/components/templates/carrier-recovery-form/carrier-recovery-form.d.ts +1 -1
  21. package/src/components/templates/carrier-terms-form/carrier-terms-form.d.ts +1 -1
  22. package/src/components/templates/customs-item-form/customs-item-form.d.ts +1 -1
  23. package/src/components/templates/customs-items-display/customs-items-display.d.ts +1 -1
  24. package/src/components/templates/label/label.d.ts +1 -1
  25. package/src/components/templates/list-carriers/list-carriers.d.ts +2 -2
  26. package/src/components/templates/list-carriers-row/list-carriers-row.d.ts +2 -2
  27. package/src/components/templates/manage-warehouses/manage-warehouses.d.ts +1 -1
  28. package/src/components/templates/onboarding/onboarding.d.ts +1 -1
  29. package/src/components/templates/rate-form/rate-form.d.ts +1 -1
  30. package/src/components/templates/shipment/shipment.d.ts +1 -1
  31. package/src/components/templates/shipment-form/shipment-form.d.ts +1 -1
  32. package/src/components/templates/shipment-form/shipment-schema.d.ts +1 -1
  33. package/src/components/templates/suspend-sales-order/suspend-sales-order.d.ts +1 -1
  34. package/src/components/templates/suspend-shipment/suspend-shipment.d.ts +1 -1
  35. package/src/components/templates/void-label/void-label.d.ts +1 -1
  36. package/src/components/templates/wallet-form/edit-wallet-address-form.d.ts +1 -1
  37. package/src/components/templates/wallet-form/wallet-form.d.ts +1 -1
  38. package/src/components/templates/wallet-form/wallet-schema.d.ts +1 -1
  39. package/src/components/templates/warehouse-display/warehouse-display.d.ts +1 -1
  40. package/src/components/templates/warehouse-form/warehouse-form.d.ts +1 -1
  41. package/src/elements/{components/configure-shipment → configure-shipment}/configure-shipment.d.ts +3 -3
  42. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-address.d.ts +3 -3
  43. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-customs.d.ts +1 -1
  44. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-presets.d.ts +2 -2
  45. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-rates-form.d.ts +1 -1
  46. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-request-rates.d.ts +1 -1
  47. package/src/elements/{components/configure-shipment → configure-shipment}/hooks/use-shipment-form.d.ts +5 -5
  48. package/src/elements/index.d.ts +6 -6
  49. package/src/elements/{components/list-carriers → list-carriers}/hooks/use-list-connected-carriers.d.ts +3 -3
  50. package/src/elements/list-carriers/index.d.ts +1 -0
  51. package/src/elements/list-carriers/list-carriers.d.ts +578 -0
  52. package/src/elements/manage-warehouses/index.d.ts +1 -0
  53. package/src/elements/manage-warehouses/manage-warehouses.d.ts +582 -0
  54. package/src/elements/onboarding/index.d.ts +1 -0
  55. package/src/elements/onboarding/onboarding.d.ts +581 -0
  56. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-configure-shipment.d.ts +1 -1
  57. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-import-sales-order.d.ts +2 -2
  58. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-load-shipment.d.ts +3 -3
  59. package/src/elements/{components/purchase-label → purchase-label}/hooks/use-pending-shipment.d.ts +1 -1
  60. package/src/elements/purchase-label/index.d.ts +1 -0
  61. package/src/elements/{components/purchase-label → purchase-label}/purchase-label-by-sales-order.d.ts +1 -1
  62. package/src/elements/purchase-label/purchase-label.d.ts +584 -0
  63. package/src/elements/view-shipment/index.d.ts +1 -0
  64. package/src/elements/view-shipment/view-shipment.d.ts +590 -0
  65. package/src/elements/void-label/index.d.ts +1 -0
  66. package/src/elements/void-label/void-label.d.ts +585 -0
  67. package/src/factories/shipengine/address.d.ts +1 -1
  68. package/src/factories/shipengine/carrier.d.ts +1 -1
  69. package/src/factories/shipengine/label.d.ts +1 -1
  70. package/src/factories/shipengine/money.d.ts +1 -1
  71. package/src/factories/shipengine/order-source.d.ts +1 -1
  72. package/src/factories/shipengine/package.d.ts +1 -1
  73. package/src/factories/shipengine/resource.d.ts +1 -1
  74. package/src/factories/shipengine/sales-order.d.ts +1 -1
  75. package/src/factories/shipengine/service.d.ts +1 -1
  76. package/src/factories/shipengine/shipment.d.ts +1 -1
  77. package/src/factories/shipengine/wallet-history.d.ts +1 -1
  78. package/src/factories/shipengine/warehouse.d.ts +1 -1
  79. package/src/factories/shipengine/weight.d.ts +1 -1
  80. package/src/hooks/index.d.ts +0 -1
  81. package/src/hooks/options/use-confirmation-options.d.ts +1 -1
  82. package/src/hooks/options/use-customs-contents-options.d.ts +1 -1
  83. package/src/hooks/options/use-customs-non-delivery-options.d.ts +1 -1
  84. package/src/hooks/options/use-insurance-provider-options.d.ts +1 -1
  85. package/src/hooks/options/use-package-options.d.ts +1 -1
  86. package/src/hooks/options/use-rate-options.d.ts +1 -1
  87. package/src/hooks/options/use-service-code-options.d.ts +1 -1
  88. package/src/hooks/options/use-warehouse-options.d.ts +1 -1
  89. package/src/hooks/use-address-validation.d.ts +1 -1
  90. package/src/hooks/use-carrier-metadata.d.ts +1 -1
  91. package/src/hooks/use-elements.d.ts +1 -1
  92. package/src/hooks/use-scrub-errors.d.ts +1 -1
  93. package/src/index.d.ts +0 -2
  94. package/src/mocks/carriers/handlers.d.ts +1 -1
  95. package/src/mocks/warehouses/handlers.d.ts +1 -1
  96. package/src/schemas/shipengine/money.d.ts +1 -1
  97. package/src/types/carrier-metadata.d.ts +1 -1
  98. package/src/types/shipping-preset/shipping-preset.d.ts +1 -1
  99. package/src/utilities/money.d.ts +1 -1
  100. package/src/utilities/rates.d.ts +1 -1
  101. package/src/utilities/shipengine/address.d.ts +1 -1
  102. package/src/utilities/shipengine/dimensions.d.ts +1 -1
  103. package/src/utilities/shipengine/sales-order.d.ts +1 -1
  104. package/src/utilities/shipengine/shipment.d.ts +1 -1
  105. package/src/utilities/shipengine/weight.d.ts +1 -1
  106. package/src/components/error-boundary/error-boundary.d.ts +0 -31
  107. package/src/components/error-boundary/index.d.ts +0 -1
  108. package/src/elements/components/index.d.ts +0 -7
  109. package/src/elements/components/list-carriers/index.d.ts +0 -1
  110. package/src/elements/components/list-carriers/list-carriers.d.ts +0 -1
  111. package/src/elements/components/manage-warehouses/index.d.ts +0 -1
  112. package/src/elements/components/manage-warehouses/manage-warehouses.d.ts +0 -5
  113. package/src/elements/components/onboarding/index.d.ts +0 -1
  114. package/src/elements/components/onboarding/onboarding.d.ts +0 -4
  115. package/src/elements/components/purchase-label/index.d.ts +0 -3
  116. package/src/elements/components/purchase-label/purchase-label.d.ts +0 -6
  117. package/src/elements/components/shipment/index.d.ts +0 -1
  118. package/src/elements/components/shipment/shipment.d.ts +0 -13
  119. package/src/elements/components/void-label/index.d.ts +0 -1
  120. package/src/elements/components/void-label/void-label.d.ts +0 -8
  121. package/src/elements/list-carriers.d.ts +0 -1
  122. package/src/elements/manage-warehouses.d.ts +0 -1
  123. package/src/elements/onboarding.d.ts +0 -1
  124. package/src/elements/purchase-label.d.ts +0 -3
  125. package/src/elements/view-shipment.d.ts +0 -1
  126. package/src/elements/void-label.d.ts +0 -1
  127. package/src/providers/giger-provider.d.ts +0 -8
  128. package/src/providers/index.d.ts +0 -1
  129. package/src/register.d.ts +0 -16
  130. /package/src/elements/{components/configure-shipment → configure-shipment}/hooks/index.d.ts +0 -0
  131. /package/src/elements/{components/configure-shipment → configure-shipment}/index.d.ts +0 -0
  132. /package/src/elements/{components/purchase-label → purchase-label}/hooks/index.d.ts +0 -0
  133. /package/src/elements/{components/purchase-label → purchase-label}/purchase-label-by-shipment.d.ts +0 -0
@@ -0,0 +1,581 @@
1
+ /// <reference types="react" />
2
+ export type ComponentProps = {
3
+ onCompleteOnboarding: () => void;
4
+ };
5
+ export declare const Component: ({ onCompleteOnboarding }: ComponentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export declare const Element: ({ resources, ...props }: ComponentProps & {
7
+ resources?: {
8
+ en: {
9
+ "wallet-history": {
10
+ actions: {
11
+ downloadCsv: string;
12
+ chooseDate: string;
13
+ };
14
+ dateRange: string;
15
+ historyOptions: {
16
+ custom: string;
17
+ last30days: string;
18
+ thisMonth: string;
19
+ lastMonth: string;
20
+ };
21
+ };
22
+ "void-label": {
23
+ actions: {
24
+ complete: string;
25
+ confirmVoid: string;
26
+ viewShipment: string;
27
+ };
28
+ resultMessages: {
29
+ approved: string;
30
+ rejected: string;
31
+ };
32
+ refund_process: string;
33
+ refund_rules: string;
34
+ resultTitles: {
35
+ approved: string;
36
+ rejected: string;
37
+ };
38
+ sections: {
39
+ salesOrder: string;
40
+ };
41
+ };
42
+ "view-shipment": {
43
+ actions: {
44
+ buyAnotherLabel: string;
45
+ hideItems: string;
46
+ printForms: string;
47
+ printLabel: string;
48
+ schedulePickup: string;
49
+ showItems: string;
50
+ void: string;
51
+ };
52
+ fields: {
53
+ dimensions: string;
54
+ estimatedShipping: string;
55
+ items: string;
56
+ orderDate: string;
57
+ orderValue: string;
58
+ requestedShipping: string;
59
+ shipDate: string;
60
+ shipTo: string;
61
+ warehouse: string;
62
+ weight: string;
63
+ insuredValue: string;
64
+ deliveryConfirmation: string;
65
+ };
66
+ highVolumeForms: string;
67
+ multipleShippingServices: string;
68
+ sections: {
69
+ labels: string;
70
+ };
71
+ };
72
+ "register-wallet": {
73
+ sections: {
74
+ setup: {
75
+ title: string;
76
+ subtitle: string;
77
+ descriptionTitle: string;
78
+ description: string;
79
+ };
80
+ billing: {
81
+ title: string;
82
+ cardSubTitle: string;
83
+ addressSubTitle: string;
84
+ info: string;
85
+ };
86
+ carriers: {
87
+ title: string;
88
+ subtitle: string;
89
+ };
90
+ notifications: {
91
+ error: {
92
+ title: string;
93
+ };
94
+ info: {
95
+ title: string;
96
+ description: string;
97
+ };
98
+ poBox: {
99
+ title: string;
100
+ description: string;
101
+ };
102
+ carrier: {
103
+ title: string;
104
+ confirmAddress: string;
105
+ description: string;
106
+ };
107
+ };
108
+ };
109
+ settings: {
110
+ title: string;
111
+ billing: {
112
+ title: string;
113
+ subtitle: string;
114
+ };
115
+ };
116
+ };
117
+ "register-carrier": {
118
+ formTitle: string;
119
+ agreeToTerms: string;
120
+ };
121
+ "purchase-label": {
122
+ actions: {
123
+ calculateRates_one: string;
124
+ calculateRates_other: string;
125
+ hideItems: string;
126
+ purchaseLabel: string;
127
+ purchaseNow: string;
128
+ showItems: string;
129
+ showMoreRates: string;
130
+ showFewerRates: string;
131
+ saveRate: string;
132
+ };
133
+ balance: {
134
+ currentBalance: string;
135
+ insufficientBalanceCTA: string;
136
+ };
137
+ cta: {
138
+ addPackageDetails: string;
139
+ };
140
+ errorMessages: {
141
+ customsItemsRequired: string;
142
+ invalidAddress: string;
143
+ noRates: string;
144
+ salesOrderNotLoaded: string;
145
+ unsupportedAddress: string;
146
+ };
147
+ errorTypes: {
148
+ results: string;
149
+ };
150
+ fields: {
151
+ addOns: string;
152
+ contentDescription: string;
153
+ confirmation: string;
154
+ dimensions: {
155
+ length: string;
156
+ width: string;
157
+ height: string;
158
+ };
159
+ dimensionsGroup: string;
160
+ estimatedShipping: string;
161
+ insurance: string;
162
+ insuranceProvider: string;
163
+ insuredValue: string;
164
+ items: string;
165
+ orderDate: string;
166
+ orderValue: string;
167
+ packageCode: string;
168
+ requestedShipping: string;
169
+ shipDate: string;
170
+ service: string;
171
+ shipTo: string;
172
+ warehouse: string;
173
+ weight: {
174
+ whole: string;
175
+ fractional: string;
176
+ };
177
+ weightGroup: string;
178
+ };
179
+ hints: {
180
+ contentDescription: string;
181
+ };
182
+ loading: {
183
+ calculatingRates: string;
184
+ };
185
+ modes: {
186
+ browseRates: string;
187
+ selectService: string;
188
+ };
189
+ multipleShippingServices: string;
190
+ recommendedRates: {
191
+ recommended: string;
192
+ stayInformed: string;
193
+ };
194
+ schemaErrors: {
195
+ shipFromUnitedStatesOnly: string;
196
+ shipFromAddressRequired: string;
197
+ needToAcknowledge: string;
198
+ };
199
+ rates: {
200
+ uspsMediaMailAcknowledgement: string;
201
+ };
202
+ shipToAddressFormFields: string;
203
+ sections: {
204
+ customsForm: string;
205
+ shipment: string;
206
+ rate_one: string;
207
+ rate_other: string;
208
+ };
209
+ };
210
+ onboarding: {
211
+ inlineTitle: string;
212
+ landing: {
213
+ action: string;
214
+ title: string;
215
+ subtitle: string;
216
+ welcome: string;
217
+ messageLine1: string;
218
+ messageLine2: string;
219
+ };
220
+ steps: {
221
+ login: string;
222
+ carriers: string;
223
+ addresses: string;
224
+ payment: string;
225
+ };
226
+ warehouse: {
227
+ title: string;
228
+ subtitle: string;
229
+ inlineMessage: string;
230
+ };
231
+ success: {
232
+ title: string;
233
+ subtitle: string;
234
+ action: string;
235
+ };
236
+ };
237
+ "manage-defaults": {
238
+ units: {
239
+ title: string;
240
+ dimensions: {
241
+ title: string;
242
+ standard: string;
243
+ metric: string;
244
+ };
245
+ weight: {
246
+ title: string;
247
+ standard: string;
248
+ g: string;
249
+ kg: string;
250
+ };
251
+ };
252
+ label: {
253
+ letter: {
254
+ title: string;
255
+ description: string;
256
+ };
257
+ purchase: {
258
+ title: string;
259
+ description: string;
260
+ };
261
+ thermal: {
262
+ title: string;
263
+ description: string;
264
+ };
265
+ title: string;
266
+ };
267
+ };
268
+ "manage-warehouses": {
269
+ addNew: string;
270
+ editWarehouse: string;
271
+ contactName: string;
272
+ default: string;
273
+ isDefault: string;
274
+ locationName: string;
275
+ residentialAddress: string;
276
+ returnTo: string;
277
+ returnToAddressIsDifferent: string;
278
+ setDefault: string;
279
+ shipFrom: string;
280
+ };
281
+ "manage-funding": {
282
+ actions: {
283
+ addFunds: string;
284
+ addFundsAndPurchase: string;
285
+ addNow: string;
286
+ saveRule: string;
287
+ };
288
+ autoFunding: {
289
+ edit: string;
290
+ editSettings: string;
291
+ error: {
292
+ title: string;
293
+ message: string;
294
+ };
295
+ isEnabledCTA: string;
296
+ isEnabled: string;
297
+ isLoading: string;
298
+ lowBalancePurchaseThreshold: string;
299
+ maximumPurchasesPerDay: string;
300
+ purchaseAmount: string;
301
+ readSettings: string;
302
+ };
303
+ addFunds: {
304
+ custom: string;
305
+ error: {
306
+ title: string;
307
+ message: string;
308
+ };
309
+ isLoading: string;
310
+ labels: {
311
+ amount: string;
312
+ };
313
+ minimumPurchaseAmount: string;
314
+ other: string;
315
+ };
316
+ fundAndPurchase: {
317
+ finalBalance: string;
318
+ insufficientFunds: string;
319
+ insufficientFundsTitle: string;
320
+ negativeBalance: string;
321
+ negativeBalanceTitle: string;
322
+ newBalance: string;
323
+ };
324
+ errors: {
325
+ balanceUnknown: string;
326
+ unableToFindBalance: string;
327
+ };
328
+ currentBalance: string;
329
+ maximumBalanceAmount: string;
330
+ };
331
+ "list-carriers": {
332
+ headers: {
333
+ accountCarriers: string;
334
+ carriers: string;
335
+ settings: string;
336
+ };
337
+ actions: {
338
+ status: {
339
+ connected: string;
340
+ notConnected: string;
341
+ };
342
+ };
343
+ };
344
+ common: {
345
+ actions: {
346
+ add: string;
347
+ cancel: string;
348
+ close: string;
349
+ confirm: string;
350
+ continue: string;
351
+ delete: string;
352
+ edit: string;
353
+ hide: string;
354
+ parse: string;
355
+ purchase: string;
356
+ remove: string;
357
+ save: string;
358
+ skipForNow: string;
359
+ submit: string;
360
+ tryAgain: string;
361
+ };
362
+ address: {
363
+ fields: {
364
+ name: string;
365
+ company: string;
366
+ countryCode: string;
367
+ addressLine1: string;
368
+ addressLine2: string;
369
+ cityLocality: string;
370
+ stateProvince: string;
371
+ postalCode: string;
372
+ phone: string;
373
+ email: string;
374
+ addressResidentialIndicator: string;
375
+ };
376
+ noResults: string;
377
+ subFields: {
378
+ optional: string;
379
+ };
380
+ parserFields: {
381
+ fullAddress: string;
382
+ };
383
+ paste: string;
384
+ preference: {
385
+ confirm: string;
386
+ addressNotValidated: string;
387
+ modified: string;
388
+ title: string;
389
+ originalAddress: string;
390
+ matchedAddress: string;
391
+ unableToValidate: string;
392
+ use: {
393
+ originalAddress: string;
394
+ matchedAddress: string;
395
+ };
396
+ };
397
+ validation: {
398
+ notValidated: string;
399
+ validated: string;
400
+ };
401
+ };
402
+ billing: {
403
+ fields: {
404
+ differentBillingAddress: string;
405
+ name: string;
406
+ cardNumber: string;
407
+ expiration: string;
408
+ cvv: string;
409
+ cvvPlaceholder: string;
410
+ expirationPlaceholder: string;
411
+ cardNumberPlaceholder: string;
412
+ };
413
+ };
414
+ carriers: {
415
+ fields: {
416
+ agreement: string;
417
+ };
418
+ terms: {
419
+ agreeToTerms: string;
420
+ title: string;
421
+ };
422
+ };
423
+ charsetWarnings: {
424
+ name: {
425
+ message: string;
426
+ };
427
+ address: {
428
+ message: string;
429
+ title: string;
430
+ };
431
+ };
432
+ confirmationTypes: {
433
+ adultSignature: string;
434
+ delivery: string;
435
+ deliveryMailed: string;
436
+ directSignature: string;
437
+ none: string;
438
+ signature: string;
439
+ verbalConfirmation: string;
440
+ };
441
+ customs: {
442
+ addDeclaration: string;
443
+ contents: {
444
+ documents: string;
445
+ gift: string;
446
+ merchandise: string;
447
+ returnedGoods: string;
448
+ sample: string;
449
+ };
450
+ declarations: string;
451
+ each: string;
452
+ fields: {
453
+ contentsType: string;
454
+ countryOfOrigin: string;
455
+ description: string;
456
+ harmonizedTariffCode: string;
457
+ ifDeliveryFails: string;
458
+ quantity: string;
459
+ sku: string;
460
+ value: string;
461
+ valueQuantity: string;
462
+ };
463
+ nonDelivery: {
464
+ returnToSender: string;
465
+ treatAsAbandoned: string;
466
+ };
467
+ removeAllDeclarations: string;
468
+ total: string;
469
+ };
470
+ errorMessages: {
471
+ invalidNameOrCompany: string;
472
+ noWarehouses: string;
473
+ unableToLoad: {
474
+ autoFundingSettings: string;
475
+ carrier: string;
476
+ carriers: string;
477
+ salesOrder: string;
478
+ shipment: string;
479
+ warehouses: string;
480
+ };
481
+ unknown: string;
482
+ noRatesAvailable: string;
483
+ };
484
+ errorTypes: {
485
+ accountStatus: string;
486
+ businessRules: string;
487
+ integrations: string;
488
+ purchase: string;
489
+ rateInvalid: string;
490
+ security: string;
491
+ system: string;
492
+ unknown: string;
493
+ validation: string;
494
+ };
495
+ insuranceProviders: {
496
+ carrier: string;
497
+ none: string;
498
+ shipsurance: string;
499
+ thirdParty: string;
500
+ };
501
+ loading: {
502
+ carrier: string;
503
+ carriers: string;
504
+ data: string;
505
+ importingSalesOrder: string;
506
+ onboarding: string;
507
+ salesOrder: string;
508
+ shipment: string;
509
+ warehouses: string;
510
+ };
511
+ months: {
512
+ january: string;
513
+ february: string;
514
+ march: string;
515
+ april: string;
516
+ may: string;
517
+ june: string;
518
+ july: string;
519
+ august: string;
520
+ september: string;
521
+ october: string;
522
+ november: string;
523
+ december: string;
524
+ };
525
+ packageCategories: {
526
+ browseRates: string;
527
+ myCustomPackages: string;
528
+ };
529
+ packageCodes: {
530
+ package: string;
531
+ };
532
+ schema: {
533
+ optionalLabel: string;
534
+ };
535
+ schemaErrors: {
536
+ notAValidPhoneNumber: string;
537
+ mustAgreeToTerms: string;
538
+ group: {
539
+ allMeasurementsOrNone: string;
540
+ };
541
+ invalidAddressName: string;
542
+ invalidAddressPoBox: string;
543
+ invalidCreditCardType: string;
544
+ invalidExpiration: string;
545
+ invalidPostalCode: string;
546
+ invalidStateProvince: string;
547
+ invalidString: string;
548
+ nonnegative: string;
549
+ nonnegativeList: string;
550
+ positive: string;
551
+ positiveList: string;
552
+ required: string;
553
+ requiredList: string;
554
+ tooFewCharacters: string;
555
+ tooManyCharacters: string;
556
+ };
557
+ shippingPresets: {
558
+ apply: string;
559
+ platform: string;
560
+ user: string;
561
+ };
562
+ weight: {
563
+ ounces: string;
564
+ pounds_one: string;
565
+ pounds_other: string;
566
+ };
567
+ units: {
568
+ in: string;
569
+ lbs: string;
570
+ oz: string;
571
+ };
572
+ "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
573
+ "VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
574
+ QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnN1ZmZpY2llbnQgYWNjb3VudCBiYWxhbmNlLiBBY2NvdW50IGV4Y2VwdGlvbiBFeGNlcHRpb24gd2l0aCBjb2RlIDB4MDA1NjAxMDE7IG1vZHVsZSA4NiwgY2F0ZWdvcnkgMSwgaXRlbSAx: string;
575
+ "QWRkcmVzcyBub3QgZm91bmQ=": string;
576
+ QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBVUFMgd2VpZ2h0IGxpbWl0IHBlciBwYWNrYWdlIGlzIDE1MCBsYnMu: string;
577
+ };
578
+ };
579
+ } | undefined;
580
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
581
+ export type ElementProps = React.ComponentProps<typeof Element>;
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  import { ConfigureShipmentProps } from "../../configure-shipment";
3
3
  import { UsePendingShipmentProps } from "./use-pending-shipment";
4
4
  export type UseConfigureShipmentProps = {
@@ -5,7 +5,7 @@ export type UseImportSalesOrderProps = {
5
5
  salesOrderId?: string;
6
6
  };
7
7
  export declare const useImportSalesOrder: ({ externalOrderId, externalOrderNumber, orderSourceCode, salesOrderId, }: UseImportSalesOrderProps) => {
8
- errors: import("@shipengine/react-api").CodedError[] | undefined;
8
+ errors: import("@shipengine/alchemy").CodedError[] | undefined;
9
9
  isLoading: boolean;
10
- salesOrder: import("@shipengine/react-api").SalesOrder | undefined;
10
+ salesOrder: import("@shipengine/alchemy").SalesOrder | undefined;
11
11
  };
@@ -2,8 +2,8 @@ export type UseLoadShipmentProps = {
2
2
  shipmentId: string;
3
3
  };
4
4
  export declare const useLoadShipment: ({ shipmentId }: UseLoadShipmentProps) => {
5
- errors: import("@shipengine/react-api").CodedError[] | undefined;
5
+ errors: import("@shipengine/alchemy").CodedError[] | undefined;
6
6
  isLoading: boolean;
7
- refetchShipment: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<import("@shipengine/react-api").SalesOrderShipment, import("@shipengine/react-api").CodedError[]>>;
8
- shipment: import("@shipengine/react-api").SalesOrderShipment | undefined;
7
+ refetchShipment: <TPageData>(options?: (import("react-query").RefetchOptions & import("react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("react-query").QueryObserverResult<import("@shipengine/alchemy").SalesOrderShipment, import("@shipengine/alchemy").CodedError[]>>;
8
+ shipment: import("@shipengine/alchemy").SalesOrderShipment | undefined;
9
9
  };
@@ -1,4 +1,4 @@
1
- import { SE } from "@shipengine/js-api";
1
+ import { SE } from "@shipengine/alchemy";
2
2
  export type UsePendingShipmentProps = {
3
3
  onLoad?: (salesOrder: SE.SalesOrder, shipments: SE.SalesOrderShipment[], pendingShipment?: SE.SalesOrderShipment) => Promise<void> | void;
4
4
  salesOrder?: SE.SalesOrder;
@@ -0,0 +1 @@
1
+ export * as PurchaseLabel from "./purchase-label";
@@ -1,4 +1,4 @@
1
- import { UseShippingPresetsOptionsProps } from "../../../hooks";
1
+ import { UseShippingPresetsOptionsProps } from "../../hooks";
2
2
  import { ConfigureShipmentProps } from "../configure-shipment";
3
3
  import { UseConfigureShipmentProps, UseImportSalesOrderProps } from "./hooks";
4
4
  export type SalesOrderProps = {