@bytexbyte/ike-app-api 1.0.39 → 1.0.41
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/lib/Product/index.d.ts +4 -5
- package/package.json +1 -1
package/lib/Product/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import BxBApi from '@bytexbyte/bxb-api';
|
|
2
|
-
import Decimal from 'decimal.js';
|
|
3
2
|
import { Product } from './type';
|
|
4
3
|
declare class IKEAppProductApi extends BxBApi {
|
|
5
4
|
constructor({ host, onSuccess, onError }: {
|
|
@@ -9,15 +8,15 @@ declare class IKEAppProductApi extends BxBApi {
|
|
|
9
8
|
});
|
|
10
9
|
getProductByMacAddress(form: {
|
|
11
10
|
macAddress: string;
|
|
12
|
-
longitude: number;
|
|
13
|
-
latitude: number;
|
|
11
|
+
longitude: number | null;
|
|
12
|
+
latitude: number | null;
|
|
14
13
|
}): Promise<Product | {
|
|
15
14
|
error: 'Token is not exist.' | 'Digital customization is not exist.';
|
|
16
15
|
}>;
|
|
17
16
|
getIsSmokeFreeByMacAddress(form: {
|
|
18
17
|
macAddress: string;
|
|
19
|
-
longitude:
|
|
20
|
-
latitude:
|
|
18
|
+
longitude: number | null;
|
|
19
|
+
latitude: number | null;
|
|
21
20
|
}): Promise<{
|
|
22
21
|
isSmokeFree: boolean;
|
|
23
22
|
} | {
|