@shipengine/react-api 0.23.3 → 1.0.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/index.js +16 -1559
  2. package/index.mjs +4732 -1377
  3. package/package.json +2 -8
  4. package/shipengine-api-react/src/hooks/index.d.ts +32 -0
  5. package/{hooks/account-settings → shipengine-api-react/src/hooks}/use-get-account-settings.d.ts +1 -1
  6. package/shipengine-api-react/src/hooks/use-get-shipment.d.ts +6 -0
  7. package/shipengine-api-react/src/hooks/use-get-wallet-transaction-history.d.ts +5 -0
  8. package/shipengine-api-react/src/hooks/use-list-warehouses.d.ts +7 -0
  9. package/shipengine-api-react/src/hooks/use-shipengine.d.ts +1 -0
  10. package/shipengine-api-react/src/hooks/use-update-billing.d.ts +8 -0
  11. package/{index.d.ts → shipengine-api-react/src/index.d.ts} +0 -1
  12. package/{providers → shipengine-api-react/src/providers}/shipengine.d.ts +2 -3
  13. package/hooks/account-settings/index.d.ts +0 -2
  14. package/hooks/account-settings/use-update-account-settings.d.ts +0 -5
  15. package/hooks/addresses/index.d.ts +0 -2
  16. package/hooks/carriers/index.d.ts +0 -12
  17. package/hooks/carriers/use-get-countries-by-carrier.d.ts +0 -5
  18. package/hooks/carriers/use-get-currencies-by-carrier.d.ts +0 -5
  19. package/hooks/carriers/use-get-package-rating-group-by-carrier.d.ts +0 -5
  20. package/hooks/carriers/use-get-services-by-carrier.d.ts +0 -7
  21. package/hooks/carriers/use-get-wallet-history.d.ts +0 -10
  22. package/hooks/carriers/use-get-zones-by-carrier.d.ts +0 -4
  23. package/hooks/custom-packages/index.d.ts +0 -1
  24. package/hooks/funding-sources/index.d.ts +0 -6
  25. package/hooks/funding-sources/use-create-funding-source.d.ts +0 -7
  26. package/hooks/funding-sources/use-funding-sources-add-funds.d.ts +0 -7
  27. package/hooks/funding-sources/use-get-funding-source-by-id.d.ts +0 -4
  28. package/hooks/funding-sources/use-list-funding-sources.d.ts +0 -4
  29. package/hooks/funding-sources/use-register-carrier.d.ts +0 -5
  30. package/hooks/funding-sources/use-update-funding-source.d.ts +0 -12
  31. package/hooks/index.d.ts +0 -15
  32. package/hooks/insurance/index.d.ts +0 -1
  33. package/hooks/labels/index.d.ts +0 -4
  34. package/hooks/order-sources/index.d.ts +0 -2
  35. package/hooks/rate-cards/index.d.ts +0 -8
  36. package/hooks/rate-cards/use-create-rate-card.d.ts +0 -6
  37. package/hooks/rate-cards/use-delete-rate-card.d.ts +0 -4
  38. package/hooks/rate-cards/use-download-rate-card.d.ts +0 -5
  39. package/hooks/rate-cards/use-get-rate-card-by-id.d.ts +0 -5
  40. package/hooks/rate-cards/use-list-rate-cards.d.ts +0 -5
  41. package/hooks/rate-cards/use-publish-rate-card.d.ts +0 -5
  42. package/hooks/rate-cards/use-update-rate-card.d.ts +0 -6
  43. package/hooks/rate-cards/use-upload-rate-card.d.ts +0 -9
  44. package/hooks/rates/index.d.ts +0 -1
  45. package/hooks/sales-orders/index.d.ts +0 -3
  46. package/hooks/sales-orders-shipment/index.d.ts +0 -4
  47. package/hooks/shipments/index.d.ts +0 -4
  48. package/hooks/shipments/use-create-shipment.d.ts +0 -10
  49. package/hooks/shipments/use-get-shipment-rates.d.ts +0 -6
  50. package/hooks/shipments/use-get-shipment.d.ts +0 -6
  51. package/hooks/shipments/use-list-shipments.d.ts +0 -7
  52. package/hooks/warehouses/index.d.ts +0 -4
  53. package/hooks/warehouses/use-list-warehouses.d.ts +0 -10
  54. /package/{hooks/carriers → shipengine-api-react/src/hooks}/use-add-funds.d.ts +0 -0
  55. /package/{hooks/rates → shipengine-api-react/src/hooks}/use-calculate-rates.d.ts +0 -0
  56. /package/{hooks/carriers → shipengine-api-react/src/hooks}/use-connect-carrier.d.ts +0 -0
  57. /package/{hooks/labels → shipengine-api-react/src/hooks}/use-create-label.d.ts +0 -0
  58. /package/{hooks/sales-orders-shipment → shipengine-api-react/src/hooks}/use-create-sales-order-shipment.d.ts +0 -0
  59. /package/{hooks/warehouses → shipengine-api-react/src/hooks}/use-create-warehouse.d.ts +0 -0
  60. /package/{hooks/warehouses → shipengine-api-react/src/hooks}/use-delete-warehouse.d.ts +0 -0
  61. /package/{hooks/carriers → shipengine-api-react/src/hooks}/use-get-auto-funding-configuration.d.ts +0 -0
  62. /package/{hooks/carriers → shipengine-api-react/src/hooks}/use-get-carrier-by-id.d.ts +0 -0
  63. /package/{hooks/insurance → shipengine-api-react/src/hooks}/use-get-insurance-account.d.ts +0 -0
  64. /package/{hooks/labels → shipengine-api-react/src/hooks}/use-get-label.d.ts +0 -0
  65. /package/{hooks/sales-orders-shipment → shipengine-api-react/src/hooks}/use-get-sales-order-shipment.d.ts +0 -0
  66. /package/{hooks/sales-orders → shipengine-api-react/src/hooks}/use-get-sales-order.d.ts +0 -0
  67. /package/{hooks/carriers → shipengine-api-react/src/hooks}/use-list-carriers.d.ts +0 -0
  68. /package/{hooks/custom-packages → shipengine-api-react/src/hooks}/use-list-custom-package-types.d.ts +0 -0
  69. /package/{hooks/labels → shipengine-api-react/src/hooks}/use-list-labels.d.ts +0 -0
  70. /package/{hooks/order-sources → shipengine-api-react/src/hooks}/use-list-order-sources.d.ts +0 -0
  71. /package/{hooks/sales-orders-shipment → shipengine-api-react/src/hooks}/use-list-sales-order-shipments.d.ts +0 -0
  72. /package/{hooks/sales-orders → shipengine-api-react/src/hooks}/use-list-sales-orders.d.ts +0 -0
  73. /package/{hooks/sales-orders → shipengine-api-react/src/hooks}/use-notify-sales-order.d.ts +0 -0
  74. /package/{hooks/addresses → shipengine-api-react/src/hooks}/use-parse-address.d.ts +0 -0
  75. /package/{hooks/order-sources → shipengine-api-react/src/hooks}/use-refresh-order-source.d.ts +0 -0
  76. /package/{hooks/carriers → shipengine-api-react/src/hooks}/use-update-auto-funding.d.ts +0 -0
  77. /package/{hooks/sales-orders-shipment → shipengine-api-react/src/hooks}/use-update-sales-order-shipment.d.ts +0 -0
  78. /package/{hooks/warehouses → shipengine-api-react/src/hooks}/use-update-warehouse.d.ts +0 -0
  79. /package/{hooks/addresses → shipengine-api-react/src/hooks}/use-validate-addresses.d.ts +0 -0
  80. /package/{hooks/labels → shipengine-api-react/src/hooks}/use-void-label.d.ts +0 -0
  81. /package/{providers → shipengine-api-react/src/providers}/index.d.ts +0 -0
  82. /package/{utilities → shipengine-api-react/src/utilities}/delay.d.ts +0 -0
  83. /package/{utilities → shipengine-api-react/src/utilities}/error.d.ts +0 -0
  84. /package/{utilities → shipengine-api-react/src/utilities}/index.d.ts +0 -0
  85. /package/{utilities → shipengine-api-react/src/utilities}/logger.d.ts +0 -0
  86. /package/{utilities → shipengine-api-react/src/utilities}/retry.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipengine/react-api",
3
- "version": "0.23.3",
3
+ "version": "1.0.0-next.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -14,11 +14,5 @@
14
14
  "entryPoint": "./src/index.ts",
15
15
  "readmeFile": "./README.md",
16
16
  "tsconfig": "./tsconfig.lib.json"
17
- },
18
- "peerDependencies": {
19
- "@shipengine/js-api": "0.x",
20
- "react": "18.x",
21
- "react-dom": "18.x",
22
- "react-query": "3.x"
23
17
  }
24
- }
18
+ }
@@ -0,0 +1,32 @@
1
+ export * from "./use-add-funds";
2
+ export * from "./use-calculate-rates";
3
+ export * from "./use-update-auto-funding";
4
+ export * from "./use-connect-carrier";
5
+ export * from "./use-create-label";
6
+ export * from "./use-create-sales-order-shipment";
7
+ export * from "./use-create-warehouse";
8
+ export * from "./use-delete-warehouse";
9
+ export * from "./use-get-auto-funding-configuration";
10
+ export * from "./use-get-carrier-by-id";
11
+ export * from "./use-get-insurance-account";
12
+ export * from "./use-get-label";
13
+ export * from "./use-get-account-settings";
14
+ export * from "./use-get-wallet-transaction-history";
15
+ export * from "./use-get-sales-order";
16
+ export * from "./use-get-sales-order-shipment";
17
+ export * from "./use-list-carriers";
18
+ export * from "./use-list-labels";
19
+ export * from "./use-list-order-sources";
20
+ export * from "./use-list-custom-package-types";
21
+ export * from "./use-list-sales-orders";
22
+ export * from "./use-list-sales-order-shipments";
23
+ export * from "./use-list-warehouses";
24
+ export * from "./use-notify-sales-order";
25
+ export * from "./use-parse-address";
26
+ export * from "./use-refresh-order-source";
27
+ export * from "./use-update-billing";
28
+ export * from "./use-update-sales-order-shipment";
29
+ export * from "./use-update-warehouse";
30
+ export * from "./use-validate-addresses";
31
+ export * from "./use-void-label";
32
+ export * from "./use-get-shipment";
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * @see [https://github.com/ShipEngine/shipengine-api-definition/pull/58/files#diff-775a1c7e38ec7549a98ad8c00e18cb9fc5b4c87ddeb1d496ca3525f48c7381e0
5
5
  */
6
- export declare const useGetAccountSettings: () => import("react-query").UseQueryResult<import("@shipengine/js-api").AccountSettings, import("@shipengine/js-api").CodedError[]>;
6
+ export declare const useGetAccountSettings: () => import("react-query").UseQueryResult<import("@shipengine/js-api").Settings, import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-orders/)
5
+ */
6
+ export declare const useGetShipment: (shipmentId: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").SalesOrderShipment, import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1,5 @@
1
+ import { WalletTransactionHistory } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ */
5
+ export declare const useGetWalletTransactionHistory: () => WalletTransactionHistory;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @category ShipEngine API Hooks
3
+ *
4
+ * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-warehouses/)
5
+ * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/list_warehouses)
6
+ */
7
+ export declare const useListWarehouses: () => import("react-query").UseQueryResult<import("@shipengine/js-api").Warehouse[], import("@shipengine/js-api").CodedError[]>;
@@ -0,0 +1 @@
1
+ export declare const useShipEngine: () => import("../providers").ShipEngineContextValue;
@@ -0,0 +1,8 @@
1
+ import { SE } from "@shipengine/js-api";
2
+ /**
3
+ * @category ShipEngine API Hooks
4
+ */
5
+ export declare const useUpdateBilling: () => import("react-query").UseMutationResult<{}, SE.CodedError[], {
6
+ address: SE.Address;
7
+ creditCard: SE.CreditCard;
8
+ }, unknown>;
@@ -1,4 +1,3 @@
1
1
  export * from "./hooks";
2
2
  export * from "./providers";
3
3
  export * from "./utilities";
4
- export * from "@shipengine/js-api";
@@ -4,10 +4,9 @@ export interface ShipEngineContextValue {
4
4
  client: ShipEngineAPI;
5
5
  }
6
6
  export declare const ShipEngineContext: import("react").Context<ShipEngineContextValue | undefined>;
7
- export type ShipEngineProps = {
7
+ export type ShipEngineProviderProps = {
8
8
  children: React.ReactNode;
9
9
  getToken: () => Promise<string> | string;
10
10
  headers?: AxiosRequestHeaders;
11
11
  } & ShipEngineAPIConfig;
12
- export declare const ShipEngine: ({ baseURL, children, headers, getToken }: ShipEngineProps) => JSX.Element;
13
- export declare const useShipEngine: () => ShipEngineContextValue;
12
+ export declare const ShipEngineProvider: ({ baseURL, children, headers, getToken, }: ShipEngineProviderProps) => JSX.Element;
@@ -1,2 +0,0 @@
1
- export * from "./use-get-account-settings";
2
- export * from "./use-update-account-settings";
@@ -1,5 +0,0 @@
1
- import { SE } from "@shipengine/js-api";
2
- /**
3
- * @category ShipEngine API Hooks
4
- * */
5
- export declare const useUpdateAccountSettings: () => import("react-query").UseMutationResult<SE.AccountSettings, SE.CodedError[], Partial<SE.AccountSettings>, unknown>;
@@ -1,2 +0,0 @@
1
- export * from "./use-parse-address";
2
- export * from "./use-validate-addresses";
@@ -1,12 +0,0 @@
1
- export * from "./use-add-funds";
2
- export * from "./use-connect-carrier";
3
- export * from "./use-get-auto-funding-configuration";
4
- export * from "./use-get-carrier-by-id";
5
- export * from "./use-get-countries-by-carrier";
6
- export * from "./use-get-currencies-by-carrier";
7
- export * from "./use-get-package-rating-group-by-carrier";
8
- export * from "./use-get-services-by-carrier";
9
- export * from "./use-get-wallet-history";
10
- export * from "./use-list-carriers";
11
- export * from "./use-update-auto-funding";
12
- export * from "./use-get-zones-by-carrier";
@@ -1,5 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- */
5
- export declare const useGetCountriesByCarrier: (carrierId?: string) => import("react-query").UseQueryResult<string[], import("@shipengine/js-api").CodedError[]>;
@@ -1,5 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- */
5
- export declare const useGetCurrenciesByCarrier: (carrierId?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").Currency[], import("@shipengine/js-api").CodedError[]>;
@@ -1,5 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- */
5
- export declare const useGetPackageRatingGroupByCarrier: (carrierId?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").PackageRatingType[], import("@shipengine/js-api").CodedError[]>;
@@ -1,7 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-carrier-services/)
5
- * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/list_carrier_services)
6
- */
7
- export declare const useGetServicesByCarrier: (carrierId?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").CarrierService[], import("@shipengine/js-api").CodedError[]>;
@@ -1,10 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- * @see https://react-query-v3.tanstack.com/guides/paginated-queries
5
- */
6
- export declare const useGetWalletHistory: ({ enabled, page, range, }: {
7
- enabled: boolean;
8
- page: number;
9
- range: [Date, Date];
10
- }) => import("react-query").UseQueryResult<import("@shipengine/js-api").WalletTransactionHistory, import("@shipengine/js-api").CodedError[]>;
@@ -1,4 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- */
4
- export declare const useGetZonesByCarrier: (carrierId?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").CarrierZone[], import("@shipengine/js-api").CodedError[]>;
@@ -1 +0,0 @@
1
- export * from "./use-list-custom-package-types";
@@ -1,6 +0,0 @@
1
- export * from "./use-create-funding-source";
2
- export * from "./use-funding-sources-add-funds";
3
- export * from "./use-get-funding-source-by-id";
4
- export * from "./use-list-funding-sources";
5
- export * from "./use-register-carrier";
6
- export * from "./use-update-funding-source";
@@ -1,7 +0,0 @@
1
- import { SE } from "@shipengine/js-api";
2
- /**
3
- * @category ShipEngine API Hooks
4
- * */
5
- export declare const useCreateFundingSource: () => import("react-query").UseMutationResult<{
6
- fundingSource: SE.FundingSource;
7
- }, SE.CodedError[], SE.CreateFundingSource, unknown>;
@@ -1,7 +0,0 @@
1
- import { SE } from "@shipengine/js-api";
2
- /**
3
- * @category ShipEngine API Hooks
4
- *
5
- * @see [ShipEngine API Reference](https://auctane.atlassian.net/wiki/spaces/~6272e3473d0b58006947a648/pages/3628370266/ShipEngine+Funding+Sources+API#PUT-v1/funding_sources/%7Bfunding_source_id%7D/add_funds)
6
- */
7
- export declare const useFundingSourcesAddFunds: (fundingSourceId: string) => import("react-query").UseMutationResult<SE.AddFundsResponse, SE.CodedError[], SE.Money, unknown>;
@@ -1,4 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- */
4
- export declare const useGetFundingSourceById: (fundingSourceId: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").FundingSource, import("@shipengine/js-api").CodedError[]>;
@@ -1,4 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- */
4
- export declare const useListFundingSources: () => import("react-query").UseQueryResult<import("@shipengine/js-api").FundingSource[], import("@shipengine/js-api").CodedError[]>;
@@ -1,5 +0,0 @@
1
- import { SE } from "@shipengine/js-api";
2
- /**
3
- * @category ShipEngine API Hooks
4
- * */
5
- export declare const useRegisterCarrier: () => import("react-query").UseMutationResult<SE.CarrierRegistrationResponse, SE.CodedError[], SE.CarrierRegistration, unknown>;
@@ -1,12 +0,0 @@
1
- import { SE } from "@shipengine/js-api";
2
- export type UpdateFundingSourceData = {
3
- billingInfo: SE.FundingSourceAddress;
4
- creditCardInfo: SE.CreditCardInfo;
5
- fundingSourceId: string;
6
- };
7
- /**
8
- * @category ShipEngine API Hooks
9
- * */
10
- export declare const useUpdateFundingSource: () => import("react-query").UseMutationResult<{
11
- fundingSource: SE.FundingSource;
12
- }, SE.CodedError[], UpdateFundingSourceData, unknown>;
package/hooks/index.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export * from "./account-settings";
2
- export * from "./addresses";
3
- export * from "./carriers";
4
- export * from "./custom-packages";
5
- export * from "./funding-sources";
6
- export * from "./insurance";
7
- export * from "./labels";
8
- export * from "./order-sources";
9
- export * from "./rate-cards";
10
- export * from "./rates";
11
- export * from "./sales-orders";
12
- export * from "./sales-orders-shipment";
13
- export * from "./shipments";
14
- export * from "./warehouses";
15
- export * from "./rate-cards";
@@ -1 +0,0 @@
1
- export * from "./use-get-insurance-account";
@@ -1,4 +0,0 @@
1
- export * from "./use-create-label";
2
- export * from "./use-get-label";
3
- export * from "./use-list-labels";
4
- export * from "./use-void-label";
@@ -1,2 +0,0 @@
1
- export * from "./use-list-order-sources";
2
- export * from "./use-refresh-order-source";
@@ -1,8 +0,0 @@
1
- export * from "./use-create-rate-card";
2
- export * from "./use-download-rate-card";
3
- export * from "./use-get-rate-card-by-id";
4
- export * from "./use-list-rate-cards";
5
- export * from "./use-publish-rate-card";
6
- export * from "./use-update-rate-card";
7
- export * from "./use-upload-rate-card";
8
- export * from "./use-delete-rate-card";
@@ -1,6 +0,0 @@
1
- import { RateCardInput } from "@shipengine/js-api";
2
- /**
3
- * @category ShipEngine API Hooks
4
- *
5
- */
6
- export declare const useCreateRateCard: () => import("react-query").UseMutationResult<import("@shipengine/js-api").RateCard, import("@shipengine/js-api").CodedError[], RateCardInput, unknown>;
@@ -1,4 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- */
4
- export declare const useDeleteRateCard: () => import("react-query").UseMutationResult<any, import("@shipengine/js-api").CodedError[], string, unknown>;
@@ -1,5 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- */
5
- export declare const useDownloadRateCard: (rateCardId: string) => import("react-query").UseQueryResult<import("axios").AxiosResponse<Blob, any>, import("@shipengine/js-api").CodedError[]>;
@@ -1,5 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- */
5
- export declare const useGetRateCardById: (rateCardId: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").RateCard, import("@shipengine/js-api").CodedError[]>;
@@ -1,5 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- */
5
- export declare const useListRateCards: (carrierIds: string[]) => import("react-query").UseQueryResult<import("@shipengine/js-api").RateCard[], import("@shipengine/js-api").CodedError[]>;
@@ -1,5 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- */
5
- export declare const usePublishRateCard: () => import("react-query").UseMutationResult<import("axios").AxiosResponse<any, any>, import("@shipengine/js-api").CodedError[], string, unknown>;
@@ -1,6 +0,0 @@
1
- import { RateCard } from "@shipengine/js-api";
2
- /**
3
- * @category ShipEngine API Hooks
4
- *
5
- */
6
- export declare const useUpdateRateCard: () => import("react-query").UseMutationResult<RateCard, import("@shipengine/js-api").CodedError[], RateCard, unknown>;
@@ -1,9 +0,0 @@
1
- export type UploadRateCardData = {
2
- file: File;
3
- rateCardId: string;
4
- };
5
- /**
6
- * @category ShipEngine API Hooks
7
- *
8
- */
9
- export declare const useUploadRateCard: () => import("react-query").UseMutationResult<import("@shipengine/js-api").RateCard, import("@shipengine/js-api").CodedError[], UploadRateCardData, unknown>;
@@ -1 +0,0 @@
1
- export * from "./use-calculate-rates";
@@ -1,3 +0,0 @@
1
- export * from "./use-get-sales-order";
2
- export * from "./use-list-sales-orders";
3
- export * from "./use-notify-sales-order";
@@ -1,4 +0,0 @@
1
- export * from "./use-create-sales-order-shipment";
2
- export * from "./use-get-sales-order-shipment";
3
- export * from "./use-list-sales-order-shipments";
4
- export * from "./use-update-sales-order-shipment";
@@ -1,4 +0,0 @@
1
- export * from "./use-create-shipment";
2
- export * from "./use-get-shipment-rates";
3
- export * from "./use-get-shipment";
4
- export * from "./use-list-shipments";
@@ -1,10 +0,0 @@
1
- import { SE } from "@shipengine/js-api";
2
- export type CreateShipmentData = {
3
- warehouseId: string;
4
- } & Partial<Omit<SE.Shipment, "items">>;
5
- /**
6
- * @category ShipEngine API Hooks
7
- *
8
- * @see [ShipEngine Developer Docs](https://shipengine.github.io/shipengine-openapi/#operation/create_shipments)
9
- */
10
- export declare const useCreateShipment: () => import("react-query").UseMutationResult<import("@shipengine/js-api").CreateShipmentResult, SE.CodedError[], CreateShipmentData, unknown>;
@@ -1,6 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- * @see [ShipEngine Developer Docs](https://shipengine.github.io/shipengine-openapi/#operation/list_shipment_rates)
5
- */
6
- export declare const useGetShipmentRates: (shipmentId?: string, createdAtStart?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").ShipmentRateResponse, import("@shipengine/js-api").CodedError[]>;
@@ -1,6 +0,0 @@
1
- /**
2
- * @category ShipEngine API Hooks
3
- *
4
- * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-orders/)
5
- */
6
- export declare const useGetShipment: (shipmentId?: string) => import("react-query").UseQueryResult<import("@shipengine/js-api").SalesOrderShipment, import("@shipengine/js-api").CodedError[]>;
@@ -1,7 +0,0 @@
1
- import { ListShipmentOptions } from "@shipengine/js-api";
2
- /**
3
- * @category ShipEngine API Hooks
4
- */
5
- export declare const useListShipments: (_params?: ListShipmentOptions & {
6
- enabled?: boolean;
7
- }) => import("react-query").UseQueryResult<import("@shipengine/js-api").ListShipmentResult, import("@shipengine/js-api").CodedError[]>;
@@ -1,4 +0,0 @@
1
- export * from "./use-create-warehouse";
2
- export * from "./use-delete-warehouse";
3
- export * from "./use-list-warehouses";
4
- export * from "./use-update-warehouse";
@@ -1,10 +0,0 @@
1
- export type ListWarehouseOptions = {
2
- enabled?: boolean;
3
- };
4
- /**
5
- * @category ShipEngine API Hooks
6
- *
7
- * @see [ShipEngine Developer Docs](https://www.shipengine.com/docs/reference/list-warehouses/)
8
- * @see [ShipEngine API Reference](https://shipengine.github.io/shipengine-openapi/#operation/list_warehouses)
9
- */
10
- export declare const useListWarehouses: (options?: ListWarehouseOptions) => import("react-query").UseQueryResult<import("@shipengine/js-api").Warehouse[], import("@shipengine/js-api").CodedError[]>;