@shipengine/elements 1.8.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.
- package/address-8f8119f4.js +1 -0
- package/carrier-2abb4760.js +1 -0
- package/carrier-logo-1b6c767e.js +1 -0
- package/components.js +1 -0
- package/constants.js +1 -0
- package/elements.js +1 -0
- package/extensions.js +1 -0
- package/feature-flags-3e03717c.js +1 -0
- package/formatString-413ec7c7.js +1 -0
- package/hooks.js +1 -0
- package/index.js +1 -25578
- package/money-fbc4d0b3.js +1 -0
- package/package.json +47 -5
- package/payment-method-settings-element-595cc38d.js +1 -0
- package/phone-87dd7bd8.js +1 -0
- package/schemas.js +1 -0
- package/shipment-90d35708.js +1 -0
- package/src/components/address-preference-context/address-preference-context.d.ts +5 -2
- package/src/components/carrier-icon/carrier-icon.d.ts +9 -9
- package/src/components/carrier-logo/carrier-logo.d.ts +2 -1
- package/src/components/field/date-picker/date-picker.d.ts +1 -1
- package/src/components/field/rate-card/rate-card.d.ts +2 -1
- package/src/components/field/rate-card/rate-card.styles.d.ts +0 -1
- package/src/components/field/rate-select/rate-select.d.ts +6 -1
- package/src/components/fund-and-purchase/fund-and-purchase.d.ts +4 -1
- package/src/components/here-map/here-map.d.ts +16 -0
- package/src/components/here-map/here-map.styles.d.ts +23 -0
- package/src/components/index.d.ts +1 -0
- package/src/components/modal/modal.d.ts +2 -1
- package/src/components/rate-details/index.d.ts +1 -0
- package/src/components/rate-details/rate-details.d.ts +17 -0
- package/src/components/rate-details/rate-details.styles.d.ts +23 -0
- package/src/components/search-bar/index.d.ts +1 -0
- package/src/components/search-bar/search-bar.d.ts +8 -0
- package/src/components/service-point-display/operating-hours.d.ts +6 -0
- package/src/components/service-point-display/operating-hours.styles.d.ts +44 -0
- package/src/components/service-point-display/service-point-display.d.ts +6 -6
- package/src/components/service-point-display/service-point-display.styles.d.ts +13 -19
- package/src/components/service-points/service-points.d.ts +2 -1
- package/src/components/tabs/tabs.d.ts +5 -1
- package/src/components/tabs/tabs.styles.d.ts +3 -2
- package/src/components/templates/index.d.ts +1 -1
- package/src/components/templates/label/label.styles.d.ts +21 -1
- package/src/components/templates/product-form/product-form-schema.d.ts +12 -0
- package/src/components/templates/pudo-rate-tabs/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/pudo-list-view/pudo-list-view.d.ts +5 -0
- package/src/components/templates/pudo-rate-tabs/pudo-map-view/pudo-map-view.d.ts +15 -0
- package/src/components/templates/pudo-rate-tabs/pudo-rate-tabs.d.ts +17 -15
- package/src/components/templates/rate-form/rate-form.d.ts +10 -2
- package/src/components/templates/register-funding-source-carrier-form/index.d.ts +2 -0
- package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.d.ts +13 -0
- package/src/components/templates/register-funding-source-carrier-form/register-funding-source-carrier-form.styles.d.ts +25 -0
- 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
- package/src/components/templates/shipment/shipment.d.ts +2 -1
- package/src/elements/external-carriers/external-carriers.d.ts +74 -4
- package/src/elements/label-layout/label-layout-element.d.ts +49 -3
- package/src/elements/labels-grid/labels-grid.d.ts +49 -3
- package/src/elements/manage-funding/manage-funding-element.d.ts +49 -3
- package/src/elements/manage-warehouses/manage-warehouses.d.ts +49 -3
- package/src/elements/payment-method-settings/payment-method-settings-element.d.ts +49 -3
- package/src/elements/purchase-label/configure-shipment.d.ts +2 -1
- package/src/elements/purchase-label/hooks/use-rates-form.d.ts +5 -0
- package/src/elements/purchase-label/purchase-label.d.ts +49 -3
- package/src/elements/shipengine-carriers/shipengine-carriers.d.ts +49 -3
- package/src/elements/shipments-grid/shipments-grid.d.ts +49 -3
- package/src/elements/theme-creator/theme-creator.d.ts +49 -3
- package/src/elements/theme-creator/themeData/themeData.d.ts +0 -1
- package/src/elements/unit-settings/unit-settings-element.d.ts +49 -3
- package/src/elements/vat-settings/vat-settings-element.d.ts +49 -3
- package/src/elements/view-shipment/view-shipment.d.ts +80 -27
- package/src/elements/void-label/components/actions/actions.d.ts +3 -3
- package/src/elements/void-label/void-label.d.ts +55 -4
- package/src/elements/wallet-history/wallet-history-element.d.ts +49 -3
- package/src/factories/shipengine/label.d.ts +2 -0
- package/src/features/external-carriers/external-carriers.d.ts +2 -1
- package/src/features/shipengine-carriers/hooks/index.d.ts +2 -1
- package/src/features/shipengine-carriers/hooks/use-carrier-metadata.d.ts +2 -13
- package/src/features/shipengine-carriers/hooks/{use-list-connected-carriers.d.ts → use-list-funding-source-carriers.d.ts} +3 -3
- package/src/features/shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts +9 -7
- package/src/hooks/here-map/init.d.ts +6 -0
- package/src/hooks/here-map/use-here-map-ui.d.ts +10 -0
- package/src/hooks/here-map/use-here-map.d.ts +5 -0
- package/src/hooks/options/use-service-points.d.ts +5 -3
- package/src/locales/en/index.d.ts +49 -3
- package/src/testing/test-utils.d.ts +1 -0
- package/src/types/carrier-metadata.d.ts +7 -11
- package/src/types/index.d.ts +0 -1
- package/src/utilities/date.d.ts +1 -2
- package/src/utilities/feature-flags.d.ts +2 -2
- package/src/utilities/shipengine/carrier.d.ts +8 -0
- package/src/workflows/account-settings/account-settings.d.ts +49 -3
- package/src/workflows/connect-carrier/connect-carrier.d.ts +49 -3
- package/src/workflows/manage-wallet-workflow/manage-wallet-workflow.d.ts +49 -3
- package/src/workflows/onboarding/components/carrier-recovery-form/carrier-recovery-form.d.ts +3 -4
- package/src/workflows/onboarding/components/funding-and-carrier-connection-step/use-funding-and-carrier-connection-step.d.ts +1 -2
- package/src/workflows/onboarding/components/terms-agreement-step/use-terms-agreement-step.d.ts +1 -6
- package/src/workflows/onboarding/onboarding.d.ts +50 -4
- package/story-notes-ce2d8cca.js +1 -0
- package/suspend-text-c8c7b6b6.js +1 -0
- package/types.js +1 -0
- package/use-page-layout-93ffae78.js +1 -0
- package/use-scrub-errors-2c4db406.js +1 -0
- package/use-toggle-838d2ebd.js +1 -0
- package/utilities.js +1 -0
- package/validation-b941a548.js +1 -0
- package/wallet-form-3981400b.js +1 -0
- package/wallet-history-5b34c856.js +1 -0
- package/warehouse-form-c0b3ea78.js +34 -0
- package/warehouses-dfcdce23.js +1 -0
- package/workflows.js +1 -0
- package/zod-60def96c.js +1 -0
- package/index.cjs +0 -25795
- package/src/components/templates/add-carrier-form/add-carrier-form-test.d.ts +0 -1
- package/src/components/templates/add-carrier-form/add-carrier-form.d.ts +0 -10
- package/src/components/templates/add-carrier-form/index.d.ts +0 -2
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/index.d.ts +0 -1
- package/src/components/templates/pudo-rate-tabs/service-points-search-bar/service-points-search-bar.d.ts +0 -6
- package/src/types/patch.d.ts +0 -2
|
@@ -56,6 +56,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
56
56
|
schedulePickup: string;
|
|
57
57
|
showItems: string;
|
|
58
58
|
void: string;
|
|
59
|
+
download: string;
|
|
59
60
|
};
|
|
60
61
|
fields: {
|
|
61
62
|
dimensions: string;
|
|
@@ -75,6 +76,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
75
76
|
multipleShippingServices: string;
|
|
76
77
|
sections: {
|
|
77
78
|
labels: string;
|
|
79
|
+
shipmentSummary: string;
|
|
78
80
|
};
|
|
79
81
|
noLabels: string;
|
|
80
82
|
};
|
|
@@ -164,8 +166,48 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
164
166
|
};
|
|
165
167
|
};
|
|
166
168
|
"register-carrier": {
|
|
167
|
-
formTitle:
|
|
168
|
-
|
|
169
|
+
formTitle: {
|
|
170
|
+
default: string;
|
|
171
|
+
new: string;
|
|
172
|
+
edit: string;
|
|
173
|
+
};
|
|
174
|
+
notifications: {
|
|
175
|
+
error: {
|
|
176
|
+
title: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
"rate-details": {
|
|
181
|
+
total: string;
|
|
182
|
+
subtotal: string;
|
|
183
|
+
registerVat: string;
|
|
184
|
+
concepts: {
|
|
185
|
+
confirmation: string;
|
|
186
|
+
uncategorized: string;
|
|
187
|
+
shipping: string;
|
|
188
|
+
insurance: string;
|
|
189
|
+
confirm: string;
|
|
190
|
+
discount: string;
|
|
191
|
+
fuel_charge: string;
|
|
192
|
+
additional_fees: string;
|
|
193
|
+
tariff: string;
|
|
194
|
+
tax: string;
|
|
195
|
+
delivery: string;
|
|
196
|
+
handling: string;
|
|
197
|
+
special_goods: string;
|
|
198
|
+
pickup: string;
|
|
199
|
+
location_fee: string;
|
|
200
|
+
oversize: string;
|
|
201
|
+
returns: string;
|
|
202
|
+
notifications: string;
|
|
203
|
+
tip: string;
|
|
204
|
+
duties_and_taxes: string;
|
|
205
|
+
brokerage_fee: string;
|
|
206
|
+
admin_fee: string;
|
|
207
|
+
adjustment: string;
|
|
208
|
+
auctane_service_fee: string;
|
|
209
|
+
product_price: string;
|
|
210
|
+
};
|
|
169
211
|
};
|
|
170
212
|
"purchase-label": {
|
|
171
213
|
title: string;
|
|
@@ -278,7 +320,10 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
278
320
|
today: string;
|
|
279
321
|
viewMap: string;
|
|
280
322
|
otherLocations: string;
|
|
281
|
-
|
|
323
|
+
noServicePointsForService: string;
|
|
324
|
+
error: string;
|
|
325
|
+
paperless: string;
|
|
326
|
+
localTimeDisclaimer: string;
|
|
282
327
|
};
|
|
283
328
|
shipToAddressFormFields: string;
|
|
284
329
|
sections: {
|
|
@@ -782,6 +827,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
782
827
|
gram: string;
|
|
783
828
|
kilogram: string;
|
|
784
829
|
};
|
|
830
|
+
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
785
831
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
786
832
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
787
833
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
|
|
@@ -56,6 +56,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
56
56
|
schedulePickup: string;
|
|
57
57
|
showItems: string;
|
|
58
58
|
void: string;
|
|
59
|
+
download: string;
|
|
59
60
|
};
|
|
60
61
|
fields: {
|
|
61
62
|
dimensions: string;
|
|
@@ -75,6 +76,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
75
76
|
multipleShippingServices: string;
|
|
76
77
|
sections: {
|
|
77
78
|
labels: string;
|
|
79
|
+
shipmentSummary: string;
|
|
78
80
|
};
|
|
79
81
|
noLabels: string;
|
|
80
82
|
};
|
|
@@ -164,8 +166,48 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
164
166
|
};
|
|
165
167
|
};
|
|
166
168
|
"register-carrier": {
|
|
167
|
-
formTitle:
|
|
168
|
-
|
|
169
|
+
formTitle: {
|
|
170
|
+
default: string;
|
|
171
|
+
new: string;
|
|
172
|
+
edit: string;
|
|
173
|
+
};
|
|
174
|
+
notifications: {
|
|
175
|
+
error: {
|
|
176
|
+
title: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
"rate-details": {
|
|
181
|
+
total: string;
|
|
182
|
+
subtotal: string;
|
|
183
|
+
registerVat: string;
|
|
184
|
+
concepts: {
|
|
185
|
+
confirmation: string;
|
|
186
|
+
uncategorized: string;
|
|
187
|
+
shipping: string;
|
|
188
|
+
insurance: string;
|
|
189
|
+
confirm: string;
|
|
190
|
+
discount: string;
|
|
191
|
+
fuel_charge: string;
|
|
192
|
+
additional_fees: string;
|
|
193
|
+
tariff: string;
|
|
194
|
+
tax: string;
|
|
195
|
+
delivery: string;
|
|
196
|
+
handling: string;
|
|
197
|
+
special_goods: string;
|
|
198
|
+
pickup: string;
|
|
199
|
+
location_fee: string;
|
|
200
|
+
oversize: string;
|
|
201
|
+
returns: string;
|
|
202
|
+
notifications: string;
|
|
203
|
+
tip: string;
|
|
204
|
+
duties_and_taxes: string;
|
|
205
|
+
brokerage_fee: string;
|
|
206
|
+
admin_fee: string;
|
|
207
|
+
adjustment: string;
|
|
208
|
+
auctane_service_fee: string;
|
|
209
|
+
product_price: string;
|
|
210
|
+
};
|
|
169
211
|
};
|
|
170
212
|
"purchase-label": {
|
|
171
213
|
title: string;
|
|
@@ -278,7 +320,10 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
278
320
|
today: string;
|
|
279
321
|
viewMap: string;
|
|
280
322
|
otherLocations: string;
|
|
281
|
-
|
|
323
|
+
noServicePointsForService: string;
|
|
324
|
+
error: string;
|
|
325
|
+
paperless: string;
|
|
326
|
+
localTimeDisclaimer: string;
|
|
282
327
|
};
|
|
283
328
|
shipToAddressFormFields: string;
|
|
284
329
|
sections: {
|
|
@@ -782,6 +827,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
782
827
|
gram: string;
|
|
783
828
|
kilogram: string;
|
|
784
829
|
};
|
|
830
|
+
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
785
831
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
786
832
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
787
833
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { SE } from "@shipengine/alchemy";
|
|
3
3
|
import { ShipmentFeatures } from "../../components/templates/shipment";
|
|
4
|
+
import { VatSettingsFeatures } from "../../features";
|
|
4
5
|
/**
|
|
5
6
|
* # View Shipment Component Props
|
|
6
7
|
*
|
|
@@ -12,7 +13,7 @@ export type ComponentProps = {
|
|
|
12
13
|
/**
|
|
13
14
|
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
14
15
|
*/
|
|
15
|
-
features?: ShipmentFeatures;
|
|
16
|
+
features?: ShipmentFeatures & VatSettingsFeatures;
|
|
16
17
|
/**
|
|
17
18
|
* `onClickPrintLabel` is a callback function that will be invoked when the user clicks the
|
|
18
19
|
* `Print Label` button.
|
|
@@ -145,6 +146,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
145
146
|
schedulePickup: string;
|
|
146
147
|
showItems: string;
|
|
147
148
|
void: string;
|
|
149
|
+
download: string;
|
|
148
150
|
};
|
|
149
151
|
fields: {
|
|
150
152
|
dimensions: string;
|
|
@@ -156,14 +158,17 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
156
158
|
shipDate: string;
|
|
157
159
|
shipTo: string;
|
|
158
160
|
warehouse: string;
|
|
159
|
-
weight: string;
|
|
161
|
+
weight: string; /**
|
|
162
|
+
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
163
|
+
*/
|
|
160
164
|
insuredValue: string;
|
|
161
165
|
deliveryConfirmation: string;
|
|
162
166
|
};
|
|
163
167
|
highVolumeForms: string;
|
|
164
168
|
multipleShippingServices: string;
|
|
165
169
|
sections: {
|
|
166
|
-
labels: string;
|
|
170
|
+
labels: string;
|
|
171
|
+
shipmentSummary: string; /**
|
|
167
172
|
* `onClickVoidLabel` is a callback function that will be invoked when the user clicks the
|
|
168
173
|
* `Void Label` button.
|
|
169
174
|
*/
|
|
@@ -222,10 +227,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
222
227
|
};
|
|
223
228
|
carriers: {
|
|
224
229
|
title: string;
|
|
225
|
-
/**
|
|
226
|
-
* `onClickPrintLabel` is a callback function that will be invoked when the user clicks the
|
|
227
|
-
* `Print Label` button.
|
|
228
|
-
*/
|
|
229
230
|
subtitle: string;
|
|
230
231
|
};
|
|
231
232
|
notifications: {
|
|
@@ -260,8 +261,51 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
260
261
|
};
|
|
261
262
|
};
|
|
262
263
|
"register-carrier": {
|
|
263
|
-
formTitle:
|
|
264
|
-
|
|
264
|
+
formTitle: {
|
|
265
|
+
default: string;
|
|
266
|
+
new: string;
|
|
267
|
+
edit: string;
|
|
268
|
+
};
|
|
269
|
+
notifications: {
|
|
270
|
+
error: {
|
|
271
|
+
title: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
"rate-details": {
|
|
276
|
+
total: string;
|
|
277
|
+
subtotal: string;
|
|
278
|
+
registerVat: string;
|
|
279
|
+
concepts: {
|
|
280
|
+
confirmation: string;
|
|
281
|
+
uncategorized: string;
|
|
282
|
+
shipping: string;
|
|
283
|
+
insurance: string;
|
|
284
|
+
confirm: string;
|
|
285
|
+
discount: string;
|
|
286
|
+
fuel_charge: string;
|
|
287
|
+
additional_fees: string;
|
|
288
|
+
tariff: string;
|
|
289
|
+
tax: string;
|
|
290
|
+
delivery: string;
|
|
291
|
+
handling: string;
|
|
292
|
+
special_goods: string;
|
|
293
|
+
pickup: string;
|
|
294
|
+
location_fee: string;
|
|
295
|
+
oversize: string;
|
|
296
|
+
returns: string;
|
|
297
|
+
notifications: string;
|
|
298
|
+
tip: string;
|
|
299
|
+
duties_and_taxes: string;
|
|
300
|
+
brokerage_fee: string;
|
|
301
|
+
admin_fee: string; /**
|
|
302
|
+
* `onClickPrintLabel` is a callback function that will be invoked when the user clicks the
|
|
303
|
+
* `Print Label` button.
|
|
304
|
+
*/
|
|
305
|
+
adjustment: string;
|
|
306
|
+
auctane_service_fee: string;
|
|
307
|
+
product_price: string;
|
|
308
|
+
};
|
|
265
309
|
};
|
|
266
310
|
"purchase-label": {
|
|
267
311
|
title: string;
|
|
@@ -281,9 +325,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
281
325
|
insufficientBalanceCTA: string;
|
|
282
326
|
};
|
|
283
327
|
cta: {
|
|
284
|
-
addPackageDetails: string;
|
|
285
|
-
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
286
|
-
*/
|
|
328
|
+
addPackageDetails: string;
|
|
287
329
|
};
|
|
288
330
|
errorMessages: {
|
|
289
331
|
customsItemsRequired: string;
|
|
@@ -376,7 +418,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
376
418
|
today: string;
|
|
377
419
|
viewMap: string;
|
|
378
420
|
otherLocations: string;
|
|
379
|
-
|
|
421
|
+
noServicePointsForService: string;
|
|
422
|
+
error: string;
|
|
423
|
+
paperless: string;
|
|
424
|
+
localTimeDisclaimer: string;
|
|
380
425
|
};
|
|
381
426
|
shipToAddressFormFields: string;
|
|
382
427
|
sections: {
|
|
@@ -472,22 +517,30 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
472
517
|
error: {
|
|
473
518
|
title: string;
|
|
474
519
|
message: string;
|
|
475
|
-
};
|
|
520
|
+
}; /**
|
|
521
|
+
* # View Shipment Component Props
|
|
522
|
+
*
|
|
523
|
+
* - These are the base props that will be passed into the `<ViewShipment />` component.
|
|
524
|
+
*
|
|
525
|
+
* @see {@link ViewShipment.Component | This prop types usage in the `<ViewShipment />` component}
|
|
526
|
+
*/
|
|
476
527
|
isEnabledCTA: string;
|
|
477
528
|
isEnabled: string;
|
|
478
529
|
isLoading: string;
|
|
479
530
|
lowBalancePurchaseThreshold: string;
|
|
480
|
-
/**
|
|
531
|
+
maximumPurchasesPerDay: string; /**
|
|
481
532
|
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
482
533
|
*/
|
|
483
|
-
maximumPurchasesPerDay: string;
|
|
484
534
|
purchaseAmount: string;
|
|
485
535
|
readSettings: string;
|
|
486
536
|
};
|
|
487
537
|
addFunds: {
|
|
488
538
|
custom: string;
|
|
489
539
|
error: {
|
|
490
|
-
title: string;
|
|
540
|
+
title: string; /**
|
|
541
|
+
* `onClickPurchaseLabel` is a callback function that will be invoked when the user clicks the
|
|
542
|
+
* `Purchase Label` button.
|
|
543
|
+
*/
|
|
491
544
|
message: string;
|
|
492
545
|
};
|
|
493
546
|
isLoading: string;
|
|
@@ -538,9 +591,6 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
538
591
|
};
|
|
539
592
|
units: {
|
|
540
593
|
title: string;
|
|
541
|
-
/**
|
|
542
|
-
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
543
|
-
*/
|
|
544
594
|
dimensions: {
|
|
545
595
|
title: string;
|
|
546
596
|
standard: string;
|
|
@@ -596,9 +646,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
596
646
|
registrationForm: {
|
|
597
647
|
error: string;
|
|
598
648
|
title: string;
|
|
599
|
-
betaWarning: string;
|
|
600
|
-
* `features` is a set of feature flags you would like to enable or disable in this component.
|
|
601
|
-
*/
|
|
649
|
+
betaWarning: string;
|
|
602
650
|
};
|
|
603
651
|
search: string;
|
|
604
652
|
settingsModal: {
|
|
@@ -642,10 +690,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
642
690
|
addressLine2: string;
|
|
643
691
|
cityLocality: string;
|
|
644
692
|
stateProvince: string;
|
|
645
|
-
postalCode: string;
|
|
646
|
-
* `onClickPrintLabel` is a callback function that will be invoked when the user clicks the
|
|
647
|
-
* `Print Label` button.
|
|
648
|
-
*/
|
|
693
|
+
postalCode: string;
|
|
649
694
|
phone: string;
|
|
650
695
|
email: string;
|
|
651
696
|
addressResidentialIndicator: string;
|
|
@@ -753,6 +798,13 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
753
798
|
invalidNameOrCompany: string;
|
|
754
799
|
parsingFailure: string;
|
|
755
800
|
incompleteLabelPurchaseRequirements: string;
|
|
801
|
+
/**
|
|
802
|
+
* # View Shipment Element Props
|
|
803
|
+
*
|
|
804
|
+
* - These are the base props that will be passed into the `<ViewShipment />` element.
|
|
805
|
+
*
|
|
806
|
+
* @see {@link ViewShipment.Element | See the full type that `typeof Element` will return}
|
|
807
|
+
*/
|
|
756
808
|
shipmentCancelled: string;
|
|
757
809
|
unableToLoad: {
|
|
758
810
|
accountSettings: string;
|
|
@@ -891,6 +943,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
891
943
|
gram: string;
|
|
892
944
|
kilogram: string;
|
|
893
945
|
};
|
|
946
|
+
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
894
947
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
895
948
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
896
949
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SE } from "@shipengine/alchemy";
|
|
2
2
|
export type ActionsProps = {
|
|
3
|
-
onComplete
|
|
4
|
-
onSubmit
|
|
5
|
-
onViewShipment
|
|
3
|
+
onComplete?: (request: SE.VoidRequest, shipment: SE.SalesOrderShipment) => void;
|
|
4
|
+
onSubmit?: () => Promise<void>;
|
|
5
|
+
onViewShipment?: (shipment: SE.SalesOrderShipment) => void;
|
|
6
6
|
shipment: SE.SalesOrderShipment;
|
|
7
7
|
voidRequest?: SE.VoidRequest;
|
|
8
8
|
};
|
|
@@ -154,6 +154,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
154
154
|
schedulePickup: string;
|
|
155
155
|
showItems: string;
|
|
156
156
|
void: string;
|
|
157
|
+
download: string;
|
|
157
158
|
};
|
|
158
159
|
fields: {
|
|
159
160
|
dimensions: string;
|
|
@@ -168,11 +169,14 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
168
169
|
weight: string;
|
|
169
170
|
insuredValue: string;
|
|
170
171
|
deliveryConfirmation: string;
|
|
171
|
-
};
|
|
172
|
+
}; /**
|
|
173
|
+
* `labelId` is the unique identifier for the label you wish to void.
|
|
174
|
+
*/
|
|
172
175
|
highVolumeForms: string;
|
|
173
176
|
multipleShippingServices: string;
|
|
174
177
|
sections: {
|
|
175
178
|
labels: string;
|
|
179
|
+
shipmentSummary: string;
|
|
176
180
|
};
|
|
177
181
|
noLabels: string;
|
|
178
182
|
};
|
|
@@ -280,8 +284,51 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
280
284
|
};
|
|
281
285
|
};
|
|
282
286
|
"register-carrier": {
|
|
283
|
-
formTitle:
|
|
284
|
-
|
|
287
|
+
formTitle: {
|
|
288
|
+
default: string;
|
|
289
|
+
new: string;
|
|
290
|
+
edit: string;
|
|
291
|
+
};
|
|
292
|
+
notifications: {
|
|
293
|
+
error: {
|
|
294
|
+
title: string;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
"rate-details": {
|
|
299
|
+
total: string;
|
|
300
|
+
subtotal: string;
|
|
301
|
+
registerVat: string;
|
|
302
|
+
concepts: {
|
|
303
|
+
confirmation: string;
|
|
304
|
+
uncategorized: string;
|
|
305
|
+
shipping: string;
|
|
306
|
+
insurance: string;
|
|
307
|
+
confirm: string;
|
|
308
|
+
discount: string;
|
|
309
|
+
fuel_charge: string;
|
|
310
|
+
additional_fees: string;
|
|
311
|
+
tariff: string;
|
|
312
|
+
tax: string;
|
|
313
|
+
delivery: string;
|
|
314
|
+
handling: string;
|
|
315
|
+
special_goods: string;
|
|
316
|
+
pickup: string;
|
|
317
|
+
location_fee: string;
|
|
318
|
+
oversize: string;
|
|
319
|
+
returns: string;
|
|
320
|
+
notifications: string;
|
|
321
|
+
tip: string;
|
|
322
|
+
duties_and_taxes: string;
|
|
323
|
+
brokerage_fee: string;
|
|
324
|
+
admin_fee: string;
|
|
325
|
+
adjustment: string;
|
|
326
|
+
auctane_service_fee: string; /**
|
|
327
|
+
* `onComplete` is a callback function that will be invoked when the request to void a given
|
|
328
|
+
* shipping label is completed.
|
|
329
|
+
*/
|
|
330
|
+
product_price: string;
|
|
331
|
+
};
|
|
285
332
|
};
|
|
286
333
|
"purchase-label": {
|
|
287
334
|
title: string;
|
|
@@ -394,7 +441,10 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
394
441
|
today: string;
|
|
395
442
|
viewMap: string;
|
|
396
443
|
otherLocations: string;
|
|
397
|
-
|
|
444
|
+
noServicePointsForService: string;
|
|
445
|
+
error: string;
|
|
446
|
+
paperless: string;
|
|
447
|
+
localTimeDisclaimer: string;
|
|
398
448
|
};
|
|
399
449
|
shipToAddressFormFields: string;
|
|
400
450
|
sections: {
|
|
@@ -898,6 +948,7 @@ export declare const Element: ({ resources, ...props }: ComponentProps & {
|
|
|
898
948
|
gram: string;
|
|
899
949
|
kilogram: string;
|
|
900
950
|
};
|
|
951
|
+
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
901
952
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
902
953
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
903
954
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
|
|
@@ -56,6 +56,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
56
56
|
schedulePickup: string;
|
|
57
57
|
showItems: string;
|
|
58
58
|
void: string;
|
|
59
|
+
download: string;
|
|
59
60
|
};
|
|
60
61
|
fields: {
|
|
61
62
|
dimensions: string;
|
|
@@ -75,6 +76,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
75
76
|
multipleShippingServices: string;
|
|
76
77
|
sections: {
|
|
77
78
|
labels: string;
|
|
79
|
+
shipmentSummary: string;
|
|
78
80
|
};
|
|
79
81
|
noLabels: string;
|
|
80
82
|
};
|
|
@@ -164,8 +166,48 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
164
166
|
};
|
|
165
167
|
};
|
|
166
168
|
"register-carrier": {
|
|
167
|
-
formTitle:
|
|
168
|
-
|
|
169
|
+
formTitle: {
|
|
170
|
+
default: string;
|
|
171
|
+
new: string;
|
|
172
|
+
edit: string;
|
|
173
|
+
};
|
|
174
|
+
notifications: {
|
|
175
|
+
error: {
|
|
176
|
+
title: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
"rate-details": {
|
|
181
|
+
total: string;
|
|
182
|
+
subtotal: string;
|
|
183
|
+
registerVat: string;
|
|
184
|
+
concepts: {
|
|
185
|
+
confirmation: string;
|
|
186
|
+
uncategorized: string;
|
|
187
|
+
shipping: string;
|
|
188
|
+
insurance: string;
|
|
189
|
+
confirm: string;
|
|
190
|
+
discount: string;
|
|
191
|
+
fuel_charge: string;
|
|
192
|
+
additional_fees: string;
|
|
193
|
+
tariff: string;
|
|
194
|
+
tax: string;
|
|
195
|
+
delivery: string;
|
|
196
|
+
handling: string;
|
|
197
|
+
special_goods: string;
|
|
198
|
+
pickup: string;
|
|
199
|
+
location_fee: string;
|
|
200
|
+
oversize: string;
|
|
201
|
+
returns: string;
|
|
202
|
+
notifications: string;
|
|
203
|
+
tip: string;
|
|
204
|
+
duties_and_taxes: string;
|
|
205
|
+
brokerage_fee: string;
|
|
206
|
+
admin_fee: string;
|
|
207
|
+
adjustment: string;
|
|
208
|
+
auctane_service_fee: string;
|
|
209
|
+
product_price: string;
|
|
210
|
+
};
|
|
169
211
|
};
|
|
170
212
|
"purchase-label": {
|
|
171
213
|
title: string;
|
|
@@ -278,7 +320,10 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
278
320
|
today: string;
|
|
279
321
|
viewMap: string;
|
|
280
322
|
otherLocations: string;
|
|
281
|
-
|
|
323
|
+
noServicePointsForService: string;
|
|
324
|
+
error: string;
|
|
325
|
+
paperless: string;
|
|
326
|
+
localTimeDisclaimer: string;
|
|
282
327
|
};
|
|
283
328
|
shipToAddressFormFields: string;
|
|
284
329
|
sections: {
|
|
@@ -782,6 +827,7 @@ export declare const Element: ({ resources, ...props }: object & {
|
|
|
782
827
|
gram: string;
|
|
783
828
|
kilogram: string;
|
|
784
829
|
};
|
|
830
|
+
ZnVuZGluZ19zb3VyY2VfaWQgbXVzdCBiZSBhbiBpbnRlZ2Vy: string;
|
|
785
831
|
T25seSByZXNpZGVudGlhbCBkZWxpdmVyeSBhZGRyZXNzZXMgYXJlIGFsbG93ZWQgZm9yIFVQUyBHcm91bmQgU2F2ZXIu: string;
|
|
786
832
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkMTAwLgo=": string;
|
|
787
833
|
"VGhlIHNlbGVjdGVkIHNlcnZpY2UgaW5jbHVkZXMgaW5zdXJhbmNlIGZvciBhbiBpbnN1cmVkIGFtb3VudCB1cCB0byAkNTAuCg==": string;
|
|
@@ -2,7 +2,9 @@ import { Factory } from "fishery";
|
|
|
2
2
|
import { SE } from "@shipengine/alchemy";
|
|
3
3
|
export type LabelTransientParams = {
|
|
4
4
|
carrier: SE.Carrier;
|
|
5
|
+
rateDetails?: SE.RateDetail[];
|
|
5
6
|
shipment: SE.SalesOrderShipment;
|
|
7
|
+
shippingRuleId?: string;
|
|
6
8
|
};
|
|
7
9
|
/**
|
|
8
10
|
* @category Factories
|
|
@@ -6,5 +6,6 @@ export type ExternalCarriersProps = {
|
|
|
6
6
|
* new carriers may not be added by this element.
|
|
7
7
|
*/
|
|
8
8
|
features?: ExternalCarriersFeatures;
|
|
9
|
+
isModalFullScreen?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare const ExternalCarriers: ({ features }: ExternalCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare const ExternalCarriers: ({ features, isModalFullScreen, }: ExternalCarriersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
carrierCodes?: CarrierConnection["carrierCode"][];
|
|
4
|
-
countryCode?: string;
|
|
5
|
-
};
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*
|
|
9
|
-
* # Carrier Metadata Hook
|
|
10
|
-
*
|
|
11
|
-
* @category Hooks
|
|
12
|
-
*/
|
|
13
|
-
export declare const useCarrierMetadata: ({ carrierCodes, countryCode }: CarrierMetadataHook) => import("../../../types").CarrierMetadata[];
|
|
1
|
+
import { CarrierMetadata } from "../../../types";
|
|
2
|
+
export declare const useCarrierMetadata: () => CarrierMetadata;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CarrierMetadataFromFundingSource } from "../../../types";
|
|
2
2
|
export type ConnectedCarrierMetadata = {
|
|
3
|
-
carrier:
|
|
3
|
+
carrier: CarrierMetadataFromFundingSource;
|
|
4
4
|
isConnected: boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const useListFundingSourceCarriers: () => {
|
|
7
7
|
data: ConnectedCarrierMetadata[];
|
|
8
8
|
error: import("@shipengine/alchemy").CodedError[] | null;
|
|
9
9
|
isLoading: boolean;
|
package/src/features/shipengine-carriers/shipengine-carriers-row/shipengine-carriers-row.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ConnectedCarrierMetadata } from "../hooks/use-list-
|
|
1
|
+
import { SE } from "@shipengine/alchemy";
|
|
2
|
+
import { RegisterFundingSourceCarrierPayload } from "../../../components/templates";
|
|
3
|
+
import { ConnectedCarrierMetadata } from "../hooks/use-list-funding-source-carriers";
|
|
4
4
|
export type ShipEngineCarriersRowProps = {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
address?: SE.Address;
|
|
6
|
+
carrierToConnect?: string;
|
|
7
|
+
fundingSourceCarrier: ConnectedCarrierMetadata;
|
|
8
|
+
registerCarrier: (payload?: RegisterFundingSourceCarrierPayload) => Promise<void>;
|
|
9
|
+
setCarrierToConnect: (carrierCode: string) => void;
|
|
8
10
|
};
|
|
9
|
-
export declare const ShipEngineCarriersRow: ({
|
|
11
|
+
export declare const ShipEngineCarriersRow: ({ fundingSourceCarrier: { carrier, isConnected }, registerCarrier, address, carrierToConnect, setCarrierToConnect, }: ShipEngineCarriersRowProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="heremaps" />
|
|
2
|
+
import { HereTokenResponse } from "@shipengine/alchemy";
|
|
3
|
+
export declare const initHerePlatform: (token: HereTokenResponse) => H.service.Platform;
|
|
4
|
+
export declare const initDefaultLayers: (platform: H.service.Platform) => Record<string, any>;
|
|
5
|
+
export declare const initInteractiveBehaviors: (map: H.Map) => H.mapevents.Behavior;
|
|
6
|
+
export declare const initDefaultUI: (map: H.Map, zoomControlPosition: H.ui.LayoutAlignment | undefined, defaultLayers: Record<string, any>, showZoomControl: boolean, showMapSettingsControl?: boolean, showScaleBarControl?: boolean, locale?: string) => H.ui.UI;
|