@shipengine/elements-sdk 0.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.d.ts +1 -0
- package/package.json +12 -0
- package/public-sdk.d.ts +40 -0
- package/shipengine-elements-sdk.js +380 -0
- package/shipengine-elements-sdk.mjs +101425 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./public-sdk";
|
package/package.json
ADDED
package/public-sdk.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ISidePanelDefaultHeaderProps, SidePanelProps } from "@packlink/giger";
|
|
2
|
+
import { AlchemyProviderProps } from "@shipengine/alchemy";
|
|
3
|
+
import * as JsApi from "@shipengine/js-api";
|
|
4
|
+
import { AccountSettings, Onboarding, PurchaseLabel, ViewShipment, VoidLabel } from "@shipengine/elements";
|
|
5
|
+
type SidePanelHeaderProps = ISidePanelDefaultHeaderProps & {
|
|
6
|
+
title: string;
|
|
7
|
+
};
|
|
8
|
+
type SidePanelSDKProps = Omit<SidePanelProps, "isOpen">;
|
|
9
|
+
type ElementsSDKOptions = Omit<AlchemyProviderProps, "getToken" | "children">;
|
|
10
|
+
export declare class ElementsSDK {
|
|
11
|
+
#private;
|
|
12
|
+
getClient(token: string, config: JsApi.ShipEngineAPIConfig): {
|
|
13
|
+
readonly token: never;
|
|
14
|
+
readonly accountSettings: Omit<JsApi.AccountSettingsAPI, "client">;
|
|
15
|
+
readonly addresses: Omit<JsApi.AddressesAPI, "client">;
|
|
16
|
+
readonly carriers: Omit<JsApi.CarriersAPI, "client">;
|
|
17
|
+
readonly customPackages: Omit<JsApi.CustomPackagesAPI, "client">;
|
|
18
|
+
readonly fundingSources: Omit<JsApi.FundingSourcesAPI, "client">;
|
|
19
|
+
readonly insurance: Omit<JsApi.InsuranceAPI, "client">;
|
|
20
|
+
readonly labels: Omit<JsApi.LabelsAPI, "client">;
|
|
21
|
+
readonly orderSources: Omit<JsApi.OrderSourcesAPI, "client">;
|
|
22
|
+
readonly rateCards: Omit<JsApi.RateCardsAPI, "client">;
|
|
23
|
+
readonly rates: Omit<JsApi.RatesAPI, "client">;
|
|
24
|
+
readonly salesOrderShipments: Omit<JsApi.SalesOrderShipmentsAPI, "client">;
|
|
25
|
+
readonly salesOrders: Omit<JsApi.SalesOrdersAPI, "client">;
|
|
26
|
+
readonly shipments: Omit<JsApi.ShipmentsAPI, "client">;
|
|
27
|
+
readonly warehouses: Omit<JsApi.WarehousesAPI, "client">;
|
|
28
|
+
};
|
|
29
|
+
constructor(getToken: AlchemyProviderProps["getToken"], options?: ElementsSDKOptions);
|
|
30
|
+
unmount(): void;
|
|
31
|
+
closeSidePanel(): void;
|
|
32
|
+
manageAccountSettings(props: AccountSettings.ComponentProps, sidePanelProps: SidePanelSDKProps, sidePanelHeaderProps: SidePanelHeaderProps): void;
|
|
33
|
+
onboardUser(props: Onboarding.ComponentProps, sidePanelProps: SidePanelSDKProps, sidePanelHeaderProps: SidePanelHeaderProps): void;
|
|
34
|
+
purchaseLabel(props: PurchaseLabel.ComponentProps, sidePanelProps: SidePanelSDKProps, sidePanelHeaderProps: SidePanelHeaderProps): void;
|
|
35
|
+
viewShipment(props: ViewShipment.ComponentProps, sidePanelProps: SidePanelSDKProps, sidePanelHeaderProps: SidePanelHeaderProps): void;
|
|
36
|
+
voidLabel(props: VoidLabel.ComponentProps & {
|
|
37
|
+
labelId: string;
|
|
38
|
+
}, sidePanelProps: SidePanelSDKProps, sidePanelHeaderProps: SidePanelHeaderProps): void;
|
|
39
|
+
}
|
|
40
|
+
export {};
|