@cpzxrobot/sdk 1.3.33 → 1.3.35
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/company_gateway.ts +1 -1
- package/dist/company_gateway.js +1 -1
- package/dist/index.js +3 -0
- package/index.ts +4 -0
- package/package.json +1 -1
- package/types.d.ts +1 -1
package/company_gateway.ts
CHANGED
|
@@ -60,7 +60,7 @@ export class CompanyGateway extends Object {
|
|
|
60
60
|
var selectedFarm = await this.context.user.getSelectedFarm();
|
|
61
61
|
companyId = selectedFarm.id;
|
|
62
62
|
}
|
|
63
|
-
return axios.get(`/api/v2/company/${companyId}/attribute
|
|
63
|
+
return axios.get(`/api/v2/company/${companyId}/attribute?key=${key}`);
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
get department() {
|
package/dist/company_gateway.js
CHANGED
|
@@ -52,7 +52,7 @@ class CompanyGateway extends Object {
|
|
|
52
52
|
var selectedFarm = await this.context.user.getSelectedFarm();
|
|
53
53
|
companyId = selectedFarm.id;
|
|
54
54
|
}
|
|
55
|
-
return axios.get(`/api/v2/company/${companyId}/attribute
|
|
55
|
+
return axios.get(`/api/v2/company/${companyId}/attribute?key=${key}`);
|
|
56
56
|
}
|
|
57
57
|
get department() {
|
|
58
58
|
return {
|
package/dist/index.js
CHANGED
package/index.ts
CHANGED
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -428,7 +428,7 @@ class Cpzxrobot {
|
|
|
428
428
|
// setTitle: (title: string) => void;
|
|
429
429
|
// saveBase64: (base64: string, filename: string) => void;
|
|
430
430
|
// saveBlob: (blob: Blob, filename: string) => void;
|
|
431
|
-
|
|
431
|
+
scanQrcode: () => Promise<string>;
|
|
432
432
|
// vibrate: (time?: number) => void;
|
|
433
433
|
// reloadGroup: (key: string) => void;
|
|
434
434
|
// getGeo: () => Promise<{ lat: number; lng: number }>;
|