@simpoobusiness/sdk 2.0.76 → 2.0.77
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/README.md +9 -2
- package/dist/.tsbuildinfo +1 -1
- package/dist/api/client.d.ts +6 -1
- package/dist/context/SimpooProvider.d.ts +3 -0
- package/dist/embed.d.ts +2 -0
- package/dist/simpoo-sdk.js +20 -20
- package/dist/simpoo-sdk.js.map +1 -1
- package/package.json +1 -1
package/dist/api/client.d.ts
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const ENV_URLS: {
|
|
2
|
+
readonly dev: "https://biz.api.simpoocodes.com/api/v1/outbound";
|
|
3
|
+
readonly prod: "https://api.simpoobusiness.com/api/v1/outbound";
|
|
4
|
+
};
|
|
5
|
+
export type SimpooEnvironment = keyof typeof ENV_URLS;
|
|
6
|
+
export declare const createApiClient: (apiKey: string, env?: SimpooEnvironment) => Axios.AxiosInstance;
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { SimpooEnvironment } from "../api/client";
|
|
2
3
|
interface SDKContextProps {
|
|
3
4
|
apiKey: string;
|
|
5
|
+
env: SimpooEnvironment;
|
|
4
6
|
portalRef: React.RefObject<HTMLDivElement | null>;
|
|
5
7
|
}
|
|
6
8
|
export declare const useSDK: () => SDKContextProps;
|
|
7
9
|
interface SDKProviderProps {
|
|
8
10
|
apiKey: string;
|
|
11
|
+
env?: SimpooEnvironment;
|
|
9
12
|
children: React.ReactNode;
|
|
10
13
|
}
|
|
11
14
|
export declare const SimpooProvider: React.FC<SDKProviderProps>;
|
package/dist/embed.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SimpooEnvironment } from "./api/client";
|
|
1
2
|
import "./styles/tailwind.css";
|
|
2
3
|
/**
|
|
3
4
|
* Initializes the Simpoo SDK with your configuration.
|
|
@@ -7,6 +8,7 @@ import "./styles/tailwind.css";
|
|
|
7
8
|
*/
|
|
8
9
|
export declare function init(config: {
|
|
9
10
|
apiKey: string;
|
|
11
|
+
env?: SimpooEnvironment;
|
|
10
12
|
}): void;
|
|
11
13
|
/**
|
|
12
14
|
* Renders the Inventory widget inside a container.
|