@shipengine/elements 1.3.2 → 1.5.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.
- package/index.cjs +12553 -8745
- package/index.js +12550 -8752
- package/package.json +5 -4
- package/src/components/carrier-connection-card/carrier-connection-card.d.ts +11 -0
- package/src/components/carrier-connection-card/carrier-connection-card.styles.d.ts +35 -0
- package/src/components/carrier-connection-card/index.d.ts +1 -0
- package/src/components/field/create-field-controller.d.ts +1 -1
- package/src/components/field/input-group/input-group.d.ts +9 -0
- package/src/components/field/input-group/input-group.styles.d.ts +24 -0
- package/src/components/field/rate-card/rate-card.d.ts +4 -1
- package/src/components/field/rate-card/rate-card.styles.d.ts +1 -0
- package/src/components/field/rate-select/rate-select.d.ts +3 -0
- package/src/components/field-label/field-label.d.ts +2 -1
- package/src/components/field-label/field-label.styles.d.ts +9 -0
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +2 -1
- package/src/components/index.d.ts +3 -0
- package/src/components/modal/index.d.ts +2 -0
- package/src/components/modal/modal-container.d.ts +15 -0
- package/src/components/modal/modal.d.ts +9 -0
- package/src/components/modal/modal.styles.d.ts +17 -0
- package/src/components/pager/pager.styles.d.ts +1 -0
- package/src/components/section/section.d.ts +2 -1
- package/src/components/section/section.styles.d.ts +13 -13
- package/src/components/service-point-display/index.d.ts +1 -0
- package/src/components/service-point-display/service-point-display.d.ts +10 -0
- package/src/components/service-point-display/service-point-display.styles.d.ts +43 -0
- package/src/components/service-points/index.d.ts +1 -0
- package/src/components/service-points/service-points.d.ts +8 -0
- package/src/components/service-points/service-points.styles.d.ts +44 -0
- package/src/components/skeleton/index.d.ts +1 -0
- package/src/components/skeleton/skeleton-carrier-row.d.ts +1 -0
- package/src/components/skeleton/skeleton-carrier-row.styles.d.ts +17 -0
- package/src/components/suspend/index.d.ts +1 -0
- package/src/components/suspend/suspend-text.d.ts +5 -0
- package/src/components/tabs/tabs.d.ts +2 -1
- package/src/components/tabs/tabs.styles.d.ts +3 -3
- package/src/components/templates/account-settings/account-settings.d.ts +5 -1
- package/src/components/templates/add-carrier-form/add-carrier-form-schema.d.ts +12 -3
- package/src/components/templates/address-form/address-form-schema.d.ts +24 -0
- package/src/components/templates/address-form/address-schema.d.ts +3 -0
- package/src/components/templates/available-carriers-list/available-carriers-list.d.ts +10 -0
- package/src/components/templates/available-carriers-list/available-carriers-list.styles.d.ts +6 -0
- package/src/components/templates/available-carriers-list/index.d.ts +1 -0
- package/src/components/templates/connect-carrier-form/connect-carrier-form.d.ts +4 -2
- package/src/components/templates/connect-carrier-form/connect-carrier-form.styles.d.ts +0 -1
- package/src/components/templates/connected-carrier-list/connected-carrier-list.d.ts +8 -0
- package/src/components/templates/connected-carrier-list/connected-carrier-list.styles.d.ts +35 -0
- package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.d.ts +8 -0
- package/src/components/templates/connected-carrier-list/connected-carrier-row/connected-carrier-row.styles.d.ts +36 -0
- package/src/components/templates/connected-carrier-list/connected-carrier-row/index.d.ts +1 -0
- package/src/components/templates/connected-carrier-list/index.d.ts +1 -0
- package/src/components/templates/index.d.ts +1 -1
- package/src/components/templates/list-carriers/list-carriers.d.ts +1 -1
- package/src/components/templates/list-carriers/list-carriers.styles.d.ts +0 -15
- package/src/components/templates/product-form/product-form.d.ts +4 -1
- package/src/components/templates/product-form/product-form.styles.d.ts +9 -0
- package/src/components/templates/products-display/products-display.d.ts +2 -1
- package/src/components/templates/pudo-rate-tabs/index.d.ts +2 -0
- package/src/components/templates/pudo-rate-tabs/pudo-rate-tabs.d.ts +22 -0
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/index.d.ts +1 -0
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/service-points-search-bar.d.ts +6 -0
- package/src/components/templates/rate-form/rate-form.d.ts +1 -1
- package/src/components/templates/shipment-form/shipment-form.d.ts +3 -1
- package/src/components/templates/wallet-form/wallet-schema.d.ts +36 -26
- package/src/components/templates/warehouse-form/warehouse-form-schema.d.ts +75 -37
- package/src/components/templates/warehouse-form/warehouse-form.d.ts +2 -1
- package/src/elements/account-settings/account-settings.d.ts +106 -33
- package/src/elements/configure-shipment/configure-shipment.d.ts +1 -0
- package/src/elements/configure-shipment/hooks/use-rates-form.d.ts +1 -1
- package/src/elements/configure-shipment/hooks/use-shipment-form.d.ts +1 -0
- package/src/elements/connect-carrier/connect-carrier.d.ts +141 -3
- package/src/elements/external-carriers/external-carriers.d.ts +34 -0
- package/src/elements/external-carriers/index.d.ts +1 -0
- package/src/elements/index.d.ts +1 -0
- package/src/elements/labels-grid/labels-grid.d.ts +82 -1
- package/src/elements/purchase-label/purchase-label.d.ts +90 -2
- package/src/elements/shipengine-workflow/label-workflow.d.ts +4 -1
- package/src/elements/shipments-grid/shipments-grid.d.ts +82 -1
- package/src/elements/theme-creator/theme-creator.d.ts +82 -1
- package/src/elements/view-shipment/view-shipment.d.ts +82 -1
- package/src/elements/void-label/void-label.d.ts +85 -2
- package/src/factories/shipengine/service-point.d.ts +3 -0
- package/src/hooks/options/index.d.ts +1 -0
- package/src/hooks/options/use-rate-options.d.ts +12 -1
- package/src/hooks/options/use-service-points.d.ts +8 -0
- package/src/hooks/use-nested-form.d.ts +5 -1
- package/src/locales/en/index.d.ts +82 -1
- package/src/utilities/feature-flags.d.ts +16 -1
- package/src/utilities/rates.d.ts +3 -1
- package/src/utilities/shipengine/address.d.ts +9 -0
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form-schema.d.ts +20 -0
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +1 -0
- package/src/workflows/onboarding/onboarding.d.ts +89 -2
|
@@ -321,6 +321,24 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
321
321
|
noCarrier: string;
|
|
322
322
|
noWarehouseOrCarrier: string;
|
|
323
323
|
};
|
|
324
|
+
servicePoints: {
|
|
325
|
+
searchLabel: string;
|
|
326
|
+
noRatesForType: string;
|
|
327
|
+
dropOff: string;
|
|
328
|
+
pickUp: string;
|
|
329
|
+
closed: string;
|
|
330
|
+
hideLocations: string;
|
|
331
|
+
moreLocations: string;
|
|
332
|
+
nearestLocation: string;
|
|
333
|
+
open: string;
|
|
334
|
+
nextOpeningDay: string;
|
|
335
|
+
until: string;
|
|
336
|
+
selected: string;
|
|
337
|
+
selectLocation: string;
|
|
338
|
+
viewMap: string;
|
|
339
|
+
otherLocations: string;
|
|
340
|
+
noServicePointsFound: string;
|
|
341
|
+
};
|
|
324
342
|
shipToAddressFormFields: string;
|
|
325
343
|
sections: {
|
|
326
344
|
customsForm: string;
|
|
@@ -371,11 +389,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
371
389
|
"aHR0cHM6Ly93d3cuZXZyaS5jb20vdGVybXMtYW5kLWNvbmRpdGlvbnM=": string;
|
|
372
390
|
"aHR0cHM6Ly93d3cueW9kZWxkaXJlY3QuY28udWsvY29udGVudC9hYm91dC10ZXJtcw==": string;
|
|
373
391
|
aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
|
|
392
|
+
"aHR0cHM6Ly93d3cuZHBkLmNvLnVrL3N0YW5kYXJkX3Rlcm1zX2FuZF9jb25kaXRpb25zLmpzcA==": string;
|
|
374
393
|
};
|
|
375
394
|
termsAndAgreementTitles: {
|
|
376
395
|
"WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
|
|
377
396
|
"RXZyaSBTZW5kIFRlcm1zICYgQ29uZGl0aW9ucw==": string;
|
|
378
397
|
"VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
|
|
398
|
+
RFBEIFN0YW5kYXJkIFRlcm1zIGFuZCBDb25kaXRpb25z: string;
|
|
379
399
|
};
|
|
380
400
|
};
|
|
381
401
|
"manage-defaults": {
|
|
@@ -481,9 +501,42 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
481
501
|
balanceUnknown: string;
|
|
482
502
|
unableToFindBalance: string;
|
|
483
503
|
};
|
|
504
|
+
byoc: {
|
|
505
|
+
invoiceNotification: string;
|
|
506
|
+
};
|
|
484
507
|
currentBalance: string;
|
|
485
508
|
maximumBalanceAmount: string;
|
|
486
509
|
};
|
|
510
|
+
"list-shipments": {
|
|
511
|
+
title: string;
|
|
512
|
+
headers: {
|
|
513
|
+
created: string;
|
|
514
|
+
download: string;
|
|
515
|
+
shipmentId: string;
|
|
516
|
+
shipDate: string;
|
|
517
|
+
shipTo: string;
|
|
518
|
+
};
|
|
519
|
+
actions: {
|
|
520
|
+
download: {
|
|
521
|
+
pdf: string;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
"list-labels": {
|
|
526
|
+
title: string;
|
|
527
|
+
headers: {
|
|
528
|
+
created: string;
|
|
529
|
+
download: string;
|
|
530
|
+
labelId: string;
|
|
531
|
+
service: string;
|
|
532
|
+
shipTo: string;
|
|
533
|
+
};
|
|
534
|
+
actions: {
|
|
535
|
+
download: {
|
|
536
|
+
pdf: string;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
};
|
|
487
540
|
"list-carriers": {
|
|
488
541
|
title: string;
|
|
489
542
|
headers: {
|
|
@@ -609,8 +662,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
609
662
|
returnedGoods: string;
|
|
610
663
|
sample: string;
|
|
611
664
|
};
|
|
665
|
+
currencyChange: string;
|
|
612
666
|
declarations: string;
|
|
613
|
-
|
|
667
|
+
descriptionTooltip: {
|
|
668
|
+
message: string;
|
|
669
|
+
example1: string;
|
|
670
|
+
example2: string;
|
|
671
|
+
};
|
|
614
672
|
fields: {
|
|
615
673
|
contentsType: string;
|
|
616
674
|
countryOfOrigin: string;
|
|
@@ -642,10 +700,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
642
700
|
connectCarrierForm: string;
|
|
643
701
|
fundingSourceMetadata: string;
|
|
644
702
|
label: string;
|
|
703
|
+
labels: string;
|
|
645
704
|
salesOrder: string;
|
|
646
705
|
shipment: string;
|
|
706
|
+
shipments: string;
|
|
647
707
|
warehouses: string;
|
|
648
708
|
};
|
|
709
|
+
emailIsRequired: string;
|
|
649
710
|
unknown: string;
|
|
650
711
|
noRatesAvailable: string;
|
|
651
712
|
};
|
|
@@ -683,9 +744,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
683
744
|
data: string;
|
|
684
745
|
importingSalesOrder: string;
|
|
685
746
|
label: string;
|
|
747
|
+
labels: string;
|
|
686
748
|
onboarding: string;
|
|
687
749
|
salesOrder: string;
|
|
688
750
|
shipment: string;
|
|
751
|
+
shipments: string;
|
|
689
752
|
warehouses: string;
|
|
690
753
|
};
|
|
691
754
|
months: {
|
|
@@ -721,6 +784,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
721
784
|
};
|
|
722
785
|
invalidAddressName: string;
|
|
723
786
|
invalidAddressNameStrict: string;
|
|
787
|
+
invalidAddressOnboarding: string;
|
|
724
788
|
invalidAddressPoBox: string;
|
|
725
789
|
invalidCreditCardType: string;
|
|
726
790
|
invalidExpirationDate: string;
|
|
@@ -777,10 +841,26 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
777
841
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
778
842
|
};
|
|
779
843
|
"connect-carrier": {
|
|
844
|
+
actions: {
|
|
845
|
+
cancel: string;
|
|
846
|
+
connectCarriers: string;
|
|
847
|
+
disconnect: string;
|
|
848
|
+
disconnectCarrier: string;
|
|
849
|
+
};
|
|
850
|
+
noCarriersDescription: string;
|
|
780
851
|
registrationForm: {
|
|
852
|
+
error: string;
|
|
781
853
|
title: string;
|
|
782
854
|
betaWarning: string;
|
|
783
855
|
};
|
|
856
|
+
search: string;
|
|
857
|
+
settingsModal: {
|
|
858
|
+
closeDialog: string;
|
|
859
|
+
header: string;
|
|
860
|
+
};
|
|
861
|
+
status: {
|
|
862
|
+
connected: string;
|
|
863
|
+
};
|
|
784
864
|
};
|
|
785
865
|
"account-settings": {
|
|
786
866
|
messages: {
|
|
@@ -794,6 +874,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
794
874
|
adjustmentHistory: string;
|
|
795
875
|
warehouses: string;
|
|
796
876
|
carriers: string;
|
|
877
|
+
externalCarriers: string;
|
|
797
878
|
labelLayout: string;
|
|
798
879
|
unitSettings: string;
|
|
799
880
|
};
|
|
@@ -319,6 +319,24 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
319
319
|
noCarrier: string;
|
|
320
320
|
noWarehouseOrCarrier: string;
|
|
321
321
|
};
|
|
322
|
+
servicePoints: {
|
|
323
|
+
searchLabel: string;
|
|
324
|
+
noRatesForType: string;
|
|
325
|
+
dropOff: string;
|
|
326
|
+
pickUp: string;
|
|
327
|
+
closed: string;
|
|
328
|
+
hideLocations: string;
|
|
329
|
+
moreLocations: string;
|
|
330
|
+
nearestLocation: string;
|
|
331
|
+
open: string;
|
|
332
|
+
nextOpeningDay: string;
|
|
333
|
+
until: string;
|
|
334
|
+
selected: string;
|
|
335
|
+
selectLocation: string;
|
|
336
|
+
viewMap: string;
|
|
337
|
+
otherLocations: string;
|
|
338
|
+
noServicePointsFound: string;
|
|
339
|
+
};
|
|
322
340
|
shipToAddressFormFields: string;
|
|
323
341
|
sections: {
|
|
324
342
|
customsForm: string;
|
|
@@ -372,11 +390,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
372
390
|
"aHR0cHM6Ly93d3cuZXZyaS5jb20vdGVybXMtYW5kLWNvbmRpdGlvbnM=": string;
|
|
373
391
|
"aHR0cHM6Ly93d3cueW9kZWxkaXJlY3QuY28udWsvY29udGVudC9hYm91dC10ZXJtcw==": string;
|
|
374
392
|
aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
|
|
393
|
+
"aHR0cHM6Ly93d3cuZHBkLmNvLnVrL3N0YW5kYXJkX3Rlcm1zX2FuZF9jb25kaXRpb25zLmpzcA==": string;
|
|
375
394
|
};
|
|
376
395
|
termsAndAgreementTitles: {
|
|
377
396
|
"WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
|
|
378
397
|
"RXZyaSBTZW5kIFRlcm1zICYgQ29uZGl0aW9ucw==": string;
|
|
379
398
|
"VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
|
|
399
|
+
RFBEIFN0YW5kYXJkIFRlcm1zIGFuZCBDb25kaXRpb25z: string;
|
|
380
400
|
};
|
|
381
401
|
};
|
|
382
402
|
"manage-defaults": {
|
|
@@ -482,9 +502,42 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
482
502
|
balanceUnknown: string;
|
|
483
503
|
unableToFindBalance: string;
|
|
484
504
|
};
|
|
505
|
+
byoc: {
|
|
506
|
+
invoiceNotification: string;
|
|
507
|
+
};
|
|
485
508
|
currentBalance: string;
|
|
486
509
|
maximumBalanceAmount: string;
|
|
487
510
|
};
|
|
511
|
+
"list-shipments": {
|
|
512
|
+
title: string;
|
|
513
|
+
headers: {
|
|
514
|
+
created: string;
|
|
515
|
+
download: string;
|
|
516
|
+
shipmentId: string;
|
|
517
|
+
shipDate: string;
|
|
518
|
+
shipTo: string;
|
|
519
|
+
};
|
|
520
|
+
actions: {
|
|
521
|
+
download: {
|
|
522
|
+
pdf: string;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
"list-labels": {
|
|
527
|
+
title: string;
|
|
528
|
+
headers: {
|
|
529
|
+
created: string;
|
|
530
|
+
download: string;
|
|
531
|
+
labelId: string;
|
|
532
|
+
service: string;
|
|
533
|
+
shipTo: string;
|
|
534
|
+
};
|
|
535
|
+
actions: {
|
|
536
|
+
download: {
|
|
537
|
+
pdf: string;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
};
|
|
488
541
|
"list-carriers": {
|
|
489
542
|
title: string;
|
|
490
543
|
headers: {
|
|
@@ -607,8 +660,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
607
660
|
returnedGoods: string;
|
|
608
661
|
sample: string;
|
|
609
662
|
};
|
|
663
|
+
currencyChange: string;
|
|
610
664
|
declarations: string;
|
|
611
|
-
|
|
665
|
+
descriptionTooltip: {
|
|
666
|
+
message: string;
|
|
667
|
+
example1: string;
|
|
668
|
+
example2: string;
|
|
669
|
+
};
|
|
612
670
|
fields: {
|
|
613
671
|
contentsType: string;
|
|
614
672
|
countryOfOrigin: string;
|
|
@@ -640,10 +698,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
640
698
|
connectCarrierForm: string;
|
|
641
699
|
fundingSourceMetadata: string;
|
|
642
700
|
label: string;
|
|
701
|
+
labels: string;
|
|
643
702
|
salesOrder: string;
|
|
644
703
|
shipment: string;
|
|
704
|
+
shipments: string;
|
|
645
705
|
warehouses: string;
|
|
646
706
|
};
|
|
707
|
+
emailIsRequired: string;
|
|
647
708
|
unknown: string;
|
|
648
709
|
noRatesAvailable: string;
|
|
649
710
|
};
|
|
@@ -681,9 +742,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
681
742
|
data: string;
|
|
682
743
|
importingSalesOrder: string;
|
|
683
744
|
label: string;
|
|
745
|
+
labels: string;
|
|
684
746
|
onboarding: string;
|
|
685
747
|
salesOrder: string;
|
|
686
748
|
shipment: string;
|
|
749
|
+
shipments: string;
|
|
687
750
|
warehouses: string;
|
|
688
751
|
};
|
|
689
752
|
months: {
|
|
@@ -719,6 +782,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
719
782
|
};
|
|
720
783
|
invalidAddressName: string;
|
|
721
784
|
invalidAddressNameStrict: string;
|
|
785
|
+
invalidAddressOnboarding: string;
|
|
722
786
|
invalidAddressPoBox: string;
|
|
723
787
|
invalidCreditCardType: string;
|
|
724
788
|
invalidExpirationDate: string;
|
|
@@ -775,10 +839,26 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
775
839
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
776
840
|
};
|
|
777
841
|
"connect-carrier": {
|
|
842
|
+
actions: {
|
|
843
|
+
cancel: string;
|
|
844
|
+
connectCarriers: string;
|
|
845
|
+
disconnect: string;
|
|
846
|
+
disconnectCarrier: string;
|
|
847
|
+
};
|
|
848
|
+
noCarriersDescription: string;
|
|
778
849
|
registrationForm: {
|
|
850
|
+
error: string;
|
|
779
851
|
title: string;
|
|
780
852
|
betaWarning: string;
|
|
781
853
|
};
|
|
854
|
+
search: string;
|
|
855
|
+
settingsModal: {
|
|
856
|
+
closeDialog: string;
|
|
857
|
+
header: string;
|
|
858
|
+
};
|
|
859
|
+
status: {
|
|
860
|
+
connected: string;
|
|
861
|
+
};
|
|
782
862
|
};
|
|
783
863
|
"account-settings": {
|
|
784
864
|
messages: {
|
|
@@ -792,8 +872,11 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
792
872
|
adjustmentHistory: string;
|
|
793
873
|
warehouses: string;
|
|
794
874
|
carriers: string;
|
|
875
|
+
externalCarriers: string;
|
|
795
876
|
labelLayout: string;
|
|
796
|
-
unitSettings: string;
|
|
877
|
+
unitSettings: string; /**
|
|
878
|
+
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
879
|
+
*/
|
|
797
880
|
};
|
|
798
881
|
};
|
|
799
882
|
};
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
import { PreferredRateAcknowledgementMessage, PreferredRatesResponse } from "../../elements/configure-shipment";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*
|
|
6
|
+
* # Rate Options Hook - PUDO type
|
|
7
|
+
*/
|
|
8
|
+
export declare enum PudoType {
|
|
9
|
+
PICKUP = "pick_up",
|
|
10
|
+
DROPOFF = "drop_off"
|
|
11
|
+
}
|
|
3
12
|
/**
|
|
4
13
|
* @internal
|
|
5
14
|
*
|
|
@@ -8,13 +17,15 @@ import { PreferredRateAcknowledgementMessage, PreferredRatesResponse } from "../
|
|
|
8
17
|
export type RateOption = Omit<SE.Rate, "warningMessages"> & {
|
|
9
18
|
balance?: number;
|
|
10
19
|
messages: string[];
|
|
20
|
+
pudoType?: PudoType;
|
|
11
21
|
rateAcknowledgementMessage?: PreferredRateAcknowledgementMessage;
|
|
12
22
|
requiresAcknowledgement?: boolean;
|
|
13
23
|
requiresFundedAmount?: boolean;
|
|
24
|
+
servicePoints?: SE.ServicePoint[];
|
|
14
25
|
};
|
|
15
26
|
/**
|
|
16
27
|
* @internal
|
|
17
28
|
*
|
|
18
29
|
* # Rate Options Hook
|
|
19
30
|
*/
|
|
20
|
-
export declare const useRateOptions: (rates?: SE.Rate[], preferredRates?: PreferredRatesResponse, carriers?: SE.Carrier[], shipment?: SE.SalesOrderShipment, enableGlobalPostFiltering?: boolean, requireDhlTermsAcknowledgement?: boolean) => RateOption[];
|
|
31
|
+
export declare const useRateOptions: (rates?: SE.Rate[], preferredRates?: PreferredRatesResponse, carriers?: SE.Carrier[], shipment?: SE.SalesOrderShipment, servicePoints?: SE.ServicePoint[], enableGlobalPostFiltering?: boolean, requireDhlTermsAcknowledgement?: boolean) => RateOption[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rate, SE } from "@shipengine/alchemy";
|
|
2
|
+
export declare const useServicePoints: (rates?: Rate[], shipment?: SE.SalesOrderShipment) => {
|
|
3
|
+
fetchServicePointsByPostalCode: (postalCode: string) => void;
|
|
4
|
+
listServicePointsErrors: SE.CodedError[] | null;
|
|
5
|
+
nestedServicePointErrors: SE.CodedError[] | SE.ServicePointCustomError[] | undefined;
|
|
6
|
+
servicePoints: SE.ServicePoint[];
|
|
7
|
+
servicePointsFetching: boolean;
|
|
8
|
+
};
|
|
@@ -9,6 +9,9 @@ export type NestedFormProps<T, U> = {
|
|
|
9
9
|
onCancel?: () => void;
|
|
10
10
|
onSubmit: (payload: U) => Promise<void> | void;
|
|
11
11
|
} & T;
|
|
12
|
+
type HookProps = {
|
|
13
|
+
initialOpenState?: boolean;
|
|
14
|
+
};
|
|
12
15
|
/**
|
|
13
16
|
* @internal
|
|
14
17
|
*
|
|
@@ -28,4 +31,5 @@ export declare const useNestedForm: <T, U>(form: React.FC<NestedFormProps<T, U>>
|
|
|
28
31
|
onSubmit: (payload: U) => Promise<void> | void;
|
|
29
32
|
} & T & {
|
|
30
33
|
portalRef?: undefined;
|
|
31
|
-
}) => readonly [import("@emotion/react/jsx-runtime").JSX.Element, boolean, React.DispatchWithoutAction];
|
|
34
|
+
}, hookProps?: HookProps) => readonly [import("@emotion/react/jsx-runtime").JSX.Element, boolean, React.DispatchWithoutAction];
|
|
35
|
+
export {};
|
|
@@ -218,6 +218,24 @@ declare const _default: {
|
|
|
218
218
|
noCarrier: string;
|
|
219
219
|
noWarehouseOrCarrier: string;
|
|
220
220
|
};
|
|
221
|
+
servicePoints: {
|
|
222
|
+
searchLabel: string;
|
|
223
|
+
noRatesForType: string;
|
|
224
|
+
dropOff: string;
|
|
225
|
+
pickUp: string;
|
|
226
|
+
closed: string;
|
|
227
|
+
hideLocations: string;
|
|
228
|
+
moreLocations: string;
|
|
229
|
+
nearestLocation: string;
|
|
230
|
+
open: string;
|
|
231
|
+
nextOpeningDay: string;
|
|
232
|
+
until: string;
|
|
233
|
+
selected: string;
|
|
234
|
+
selectLocation: string;
|
|
235
|
+
viewMap: string;
|
|
236
|
+
otherLocations: string;
|
|
237
|
+
noServicePointsFound: string;
|
|
238
|
+
};
|
|
221
239
|
shipToAddressFormFields: string;
|
|
222
240
|
sections: {
|
|
223
241
|
customsForm: string;
|
|
@@ -268,11 +286,13 @@ declare const _default: {
|
|
|
268
286
|
"aHR0cHM6Ly93d3cuZXZyaS5jb20vdGVybXMtYW5kLWNvbmRpdGlvbnM=": string;
|
|
269
287
|
"aHR0cHM6Ly93d3cueW9kZWxkaXJlY3QuY28udWsvY29udGVudC9hYm91dC10ZXJtcw==": string;
|
|
270
288
|
aHR0cHM6Ly93d3cuc2hpcHN0YXRpb24uY29tL3Rlcm1zLXNlcnZpY2UtdW5pdGVkLWtpbmdkb20v: string;
|
|
289
|
+
"aHR0cHM6Ly93d3cuZHBkLmNvLnVrL3N0YW5kYXJkX3Rlcm1zX2FuZF9jb25kaXRpb25zLmpzcA==": string;
|
|
271
290
|
};
|
|
272
291
|
termsAndAgreementTitles: {
|
|
273
292
|
"WW9kZWwgRGlyZWN0IC0gVGVybXMgYW5kIENvbmRpdGlvbnMgKOKAnFRlcm1z4oCdKQ==": string;
|
|
274
293
|
"RXZyaSBTZW5kIFRlcm1zICYgQ29uZGl0aW9ucw==": string;
|
|
275
294
|
"VGVybXMgb2YgU2VydmljZSBVbml0ZWQgS2luZ2RvbQ==": string;
|
|
295
|
+
RFBEIFN0YW5kYXJkIFRlcm1zIGFuZCBDb25kaXRpb25z: string;
|
|
276
296
|
};
|
|
277
297
|
};
|
|
278
298
|
"manage-defaults": {
|
|
@@ -372,9 +392,42 @@ declare const _default: {
|
|
|
372
392
|
balanceUnknown: string;
|
|
373
393
|
unableToFindBalance: string;
|
|
374
394
|
};
|
|
395
|
+
byoc: {
|
|
396
|
+
invoiceNotification: string;
|
|
397
|
+
};
|
|
375
398
|
currentBalance: string;
|
|
376
399
|
maximumBalanceAmount: string;
|
|
377
400
|
};
|
|
401
|
+
"list-shipments": {
|
|
402
|
+
title: string;
|
|
403
|
+
headers: {
|
|
404
|
+
created: string;
|
|
405
|
+
download: string;
|
|
406
|
+
shipmentId: string;
|
|
407
|
+
shipDate: string;
|
|
408
|
+
shipTo: string;
|
|
409
|
+
};
|
|
410
|
+
actions: {
|
|
411
|
+
download: {
|
|
412
|
+
pdf: string;
|
|
413
|
+
};
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
"list-labels": {
|
|
417
|
+
title: string;
|
|
418
|
+
headers: {
|
|
419
|
+
created: string;
|
|
420
|
+
download: string;
|
|
421
|
+
labelId: string;
|
|
422
|
+
service: string;
|
|
423
|
+
shipTo: string;
|
|
424
|
+
};
|
|
425
|
+
actions: {
|
|
426
|
+
download: {
|
|
427
|
+
pdf: string;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
};
|
|
378
431
|
"list-carriers": {
|
|
379
432
|
title: string;
|
|
380
433
|
headers: {
|
|
@@ -497,8 +550,13 @@ declare const _default: {
|
|
|
497
550
|
returnedGoods: string;
|
|
498
551
|
sample: string;
|
|
499
552
|
};
|
|
553
|
+
currencyChange: string;
|
|
500
554
|
declarations: string;
|
|
501
|
-
|
|
555
|
+
descriptionTooltip: {
|
|
556
|
+
message: string;
|
|
557
|
+
example1: string;
|
|
558
|
+
example2: string;
|
|
559
|
+
};
|
|
502
560
|
fields: {
|
|
503
561
|
contentsType: string;
|
|
504
562
|
countryOfOrigin: string;
|
|
@@ -530,10 +588,13 @@ declare const _default: {
|
|
|
530
588
|
connectCarrierForm: string;
|
|
531
589
|
fundingSourceMetadata: string;
|
|
532
590
|
label: string;
|
|
591
|
+
labels: string;
|
|
533
592
|
salesOrder: string;
|
|
534
593
|
shipment: string;
|
|
594
|
+
shipments: string;
|
|
535
595
|
warehouses: string;
|
|
536
596
|
};
|
|
597
|
+
emailIsRequired: string;
|
|
537
598
|
unknown: string;
|
|
538
599
|
noRatesAvailable: string;
|
|
539
600
|
};
|
|
@@ -571,9 +632,11 @@ declare const _default: {
|
|
|
571
632
|
data: string;
|
|
572
633
|
importingSalesOrder: string;
|
|
573
634
|
label: string;
|
|
635
|
+
labels: string;
|
|
574
636
|
onboarding: string;
|
|
575
637
|
salesOrder: string;
|
|
576
638
|
shipment: string;
|
|
639
|
+
shipments: string;
|
|
577
640
|
warehouses: string;
|
|
578
641
|
};
|
|
579
642
|
months: {
|
|
@@ -609,6 +672,7 @@ declare const _default: {
|
|
|
609
672
|
};
|
|
610
673
|
invalidAddressName: string;
|
|
611
674
|
invalidAddressNameStrict: string;
|
|
675
|
+
invalidAddressOnboarding: string;
|
|
612
676
|
invalidAddressPoBox: string;
|
|
613
677
|
invalidCreditCardType: string;
|
|
614
678
|
invalidExpirationDate: string;
|
|
@@ -665,10 +729,26 @@ declare const _default: {
|
|
|
665
729
|
"QSBzaGlwcGluZyBjYXJyaWVyIGVycm9yIG9jY3VycmVkOiBJbnZhbGlkIHNvbGQgdG8gc3RhdGUgcHJvdmluY2UgY29kZS4gVmFsaWQgbGVuZ3RoIGlzIDAgdG8gNSBhbHBoYW51bWVyaWM=": string;
|
|
666
730
|
};
|
|
667
731
|
"connect-carrier": {
|
|
732
|
+
actions: {
|
|
733
|
+
cancel: string;
|
|
734
|
+
connectCarriers: string;
|
|
735
|
+
disconnect: string;
|
|
736
|
+
disconnectCarrier: string;
|
|
737
|
+
};
|
|
738
|
+
noCarriersDescription: string;
|
|
668
739
|
registrationForm: {
|
|
740
|
+
error: string;
|
|
669
741
|
title: string;
|
|
670
742
|
betaWarning: string;
|
|
671
743
|
};
|
|
744
|
+
search: string;
|
|
745
|
+
settingsModal: {
|
|
746
|
+
closeDialog: string;
|
|
747
|
+
header: string;
|
|
748
|
+
};
|
|
749
|
+
status: {
|
|
750
|
+
connected: string;
|
|
751
|
+
};
|
|
672
752
|
};
|
|
673
753
|
"account-settings": {
|
|
674
754
|
messages: {
|
|
@@ -682,6 +762,7 @@ declare const _default: {
|
|
|
682
762
|
adjustmentHistory: string;
|
|
683
763
|
warehouses: string;
|
|
684
764
|
carriers: string;
|
|
765
|
+
externalCarriers: string;
|
|
685
766
|
labelLayout: string;
|
|
686
767
|
unitSettings: string;
|
|
687
768
|
};
|
|
@@ -41,6 +41,12 @@
|
|
|
41
41
|
* ```
|
|
42
42
|
*/
|
|
43
43
|
export declare const featureFlags: {
|
|
44
|
+
/**
|
|
45
|
+
* `CarrierConnections` all scoped feature flags for "Bring your own carrier" connections.
|
|
46
|
+
*/
|
|
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"];
|
|
49
|
+
};
|
|
44
50
|
/**
|
|
45
51
|
* `ConfigureSalesOrderShipment` all scoped feature flags for the shipment configuration
|
|
46
52
|
* section of the `<PurchaseLabel />` element.
|
|
@@ -82,6 +88,10 @@ export declare const featureFlags: {
|
|
|
82
88
|
* in the rates form.
|
|
83
89
|
*/
|
|
84
90
|
readonly enableGlobalPostFiltering: false;
|
|
91
|
+
/**
|
|
92
|
+
`enablePudoUI` enables the Pick Up/Drop Off tabs UI in the Rate Form to separate rates with PUDO capability by type.
|
|
93
|
+
*/
|
|
94
|
+
readonly enablePudoUI: false;
|
|
85
95
|
/**
|
|
86
96
|
* `labelLayout` enables the `label layout` section of the `<PurchaseLabel /> element.
|
|
87
97
|
*/
|
|
@@ -105,6 +115,11 @@ export declare const featureFlags: {
|
|
|
105
115
|
* `<PurchaseLabel />` element.
|
|
106
116
|
*/
|
|
107
117
|
readonly shipmentForm: {
|
|
118
|
+
/**
|
|
119
|
+
* `addOns` enables the `Add-Ons` section of the shipment form. This allows users to
|
|
120
|
+
* add additional services to their shipment such as delivery confirmation and insurance.
|
|
121
|
+
*/
|
|
122
|
+
readonly addOns: true;
|
|
108
123
|
/**
|
|
109
124
|
* `browseRates` enables the `browse rates` button in the shipment form. This allows users
|
|
110
125
|
* to browse rates for a shipment with varying shipment configurations. This is useful for
|
|
@@ -146,7 +161,7 @@ export declare const featureFlags: {
|
|
|
146
161
|
* `enabledCarriers` is a list of all `carriers` that are enabled for use in ShipEngine
|
|
147
162
|
* Elements.
|
|
148
163
|
*/
|
|
149
|
-
readonly enabledCarriers: readonly ["stamps_com", "ups_walleted", "dhl_express_walleted", "ups", "hermes", "yodel_walleted"];
|
|
164
|
+
readonly enabledCarriers: readonly ["stamps_com", "ups_walleted", "dhl_express_walleted", "ups", "hermes", "yodel_walleted", "dpdwallet"];
|
|
150
165
|
};
|
|
151
166
|
/**
|
|
152
167
|
* All global `presentation` related feature flags.
|
package/src/utilities/rates.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SE } from "@shipengine/alchemy";
|
|
1
|
+
import { Rate, SE } from "@shipengine/alchemy";
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*
|
|
@@ -29,3 +29,5 @@ export declare const getTotalRateAmount: (rateCosts?: {
|
|
|
29
29
|
* @category Utilities
|
|
30
30
|
*/
|
|
31
31
|
export declare const overrideCarrierCodes: (carrier: string, overrides: object) => never;
|
|
32
|
+
export declare const isPudoEligibleRate: (rate: Rate) => boolean;
|
|
33
|
+
export declare const isCollectionService: (carrier: string, serviceCode: string) => boolean;
|
|
@@ -55,3 +55,12 @@ export declare const isPoBoxAddress: (address: SE.Address) => boolean;
|
|
|
55
55
|
* @category Utilities
|
|
56
56
|
*/
|
|
57
57
|
export declare const isEmptyAddress: (address?: SE.Address) => boolean;
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
*
|
|
61
|
+
* # Address Utilities - addEmailToValidation
|
|
62
|
+
* Even though the documentation says otherwise, the email is dropped from the returned address validation object
|
|
63
|
+
*
|
|
64
|
+
* @category Utilities
|
|
65
|
+
*/
|
|
66
|
+
export declare const addEmailToValidation: (addressValidation: SE.AddressValidation, email?: string) => SE.AddressValidation;
|