@ray-js/api 1.7.26 → 1.7.28
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/{AIKit-1.2.0.d.ts → AIKit-1.3.3.d.ts} +4 -0
- package/lib/{AIKit-1.2.0.js → AIKit-1.3.3.js} +12 -0
- package/lib/all-kits.d.ts +1 -1
- package/lib/all-kits.js +1 -1
- package/lib/cloud/index.d.ts +1 -0
- package/lib/cloud/index.js +1 -0
- package/lib/cloud/interface.d.ts +65 -0
- package/lib/cloud/interface.js +3 -1
- package/lib/cloud/petAIPhotos.d.ts +6 -0
- package/lib/cloud/petAIPhotos.js +10 -0
- package/package.json +5 -5
@@ -23,4 +23,8 @@ export declare const ai: {
|
|
23
23
|
petsPictureQualityDetectForImage: typeof ty.ai.petsPictureQualityDetectForImage;
|
24
24
|
petsDetectCreate: typeof ty.ai.petsDetectCreate;
|
25
25
|
petsDetectDestory: typeof ty.ai.petsDetectDestory;
|
26
|
+
createForegroundVideoService: typeof ty.ai.createForegroundVideoService;
|
27
|
+
destroyForegroundVideoService: typeof ty.ai.destroyForegroundVideoService;
|
28
|
+
processForegroundMediaByTemplate: typeof ty.ai.processForegroundMediaByTemplate;
|
29
|
+
processPetForegroundMediaByTemplate: typeof ty.ai.processPetForegroundMediaByTemplate;
|
26
30
|
};
|
@@ -73,5 +73,17 @@ export const ai = {
|
|
73
73
|
}),
|
74
74
|
petsDetectDestory: factory('petsDetectDestory', {
|
75
75
|
"namespace": "ai"
|
76
|
+
}),
|
77
|
+
createForegroundVideoService: factory('createForegroundVideoService', {
|
78
|
+
"namespace": "ai"
|
79
|
+
}),
|
80
|
+
destroyForegroundVideoService: factory('destroyForegroundVideoService', {
|
81
|
+
"namespace": "ai"
|
82
|
+
}),
|
83
|
+
processForegroundMediaByTemplate: factory('processForegroundMediaByTemplate', {
|
84
|
+
"namespace": "ai"
|
85
|
+
}),
|
86
|
+
processPetForegroundMediaByTemplate: factory('processPetForegroundMediaByTemplate', {
|
87
|
+
"namespace": "ai"
|
76
88
|
})
|
77
89
|
};
|
package/lib/all-kits.d.ts
CHANGED
@@ -10,6 +10,6 @@ export * from './OutdoorKit-1.0.4';
|
|
10
10
|
export * from './MediaKit-3.4.1';
|
11
11
|
import * as device from './DeviceKit-4.13.1';
|
12
12
|
export { device };
|
13
|
-
export * from './AIKit-1.
|
13
|
+
export * from './AIKit-1.3.3';
|
14
14
|
export * from './IPCKit-6.4.5';
|
15
15
|
export * from './WearKit-1.1.6';
|
package/lib/all-kits.js
CHANGED
@@ -10,6 +10,6 @@ export * from './OutdoorKit-1.0.4';
|
|
10
10
|
export * from './MediaKit-3.4.1';
|
11
11
|
import * as device from './DeviceKit-4.13.1';
|
12
12
|
export { device };
|
13
|
-
export * from './AIKit-1.
|
13
|
+
export * from './AIKit-1.3.3';
|
14
14
|
export * from './IPCKit-6.4.5';
|
15
15
|
export * from './WearKit-1.1.6';
|
package/lib/cloud/index.d.ts
CHANGED
package/lib/cloud/index.js
CHANGED
package/lib/cloud/interface.d.ts
CHANGED
@@ -1996,4 +1996,69 @@ export type GetMovePointDetails = {
|
|
1996
1996
|
mpId: number;
|
1997
1997
|
};
|
1998
1998
|
export type GetMovePointDetailsRet = Point;
|
1999
|
+
export type AiFilterResult = {
|
2000
|
+
templates: any;
|
2001
|
+
type: string;
|
2002
|
+
style: string;
|
2003
|
+
}[];
|
2004
|
+
type PetType = 'cat' | 'dog';
|
2005
|
+
export type PetAdd = {
|
2006
|
+
petType: PetType;
|
2007
|
+
breedCode: string;
|
2008
|
+
sex: number;
|
2009
|
+
activeness: number;
|
2010
|
+
name: string;
|
2011
|
+
weight: number;
|
2012
|
+
birth: number;
|
2013
|
+
ownerId?: string;
|
2014
|
+
avatar?: string;
|
2015
|
+
timeZone: string;
|
2016
|
+
tuyaAppId: string;
|
2017
|
+
foodId?: number;
|
2018
|
+
rfid?: string;
|
2019
|
+
devIds?: string[];
|
2020
|
+
idPhotos?: IdPhotos[];
|
2021
|
+
features?: Feature[];
|
2022
|
+
dataType: 'ai_pet_center' | string;
|
2023
|
+
};
|
2024
|
+
type IdPhotos = Pick<Images, 'angle' | 'objectKey'> & {
|
2025
|
+
display: string;
|
2026
|
+
};
|
2027
|
+
type Feature = {
|
2028
|
+
category: string;
|
2029
|
+
details: string[];
|
2030
|
+
};
|
2031
|
+
type Images = {
|
2032
|
+
imageDisplayUrl: string;
|
2033
|
+
objectKey: string;
|
2034
|
+
angle: string;
|
2035
|
+
desc: string;
|
2036
|
+
};
|
2037
|
+
export type IFetchPetEatingRecordParams = {
|
2038
|
+
ownerId: string;
|
2039
|
+
uuid: string;
|
2040
|
+
petId?: number;
|
2041
|
+
startTime?: number;
|
2042
|
+
endTime?: number;
|
2043
|
+
pageNo: number;
|
2044
|
+
pageSize: number;
|
2045
|
+
};
|
2046
|
+
export type IEatingRecord = {
|
2047
|
+
recordNo: string;
|
2048
|
+
devId: string;
|
2049
|
+
deviceName: string;
|
2050
|
+
ownerId: string;
|
2051
|
+
roomId: string;
|
2052
|
+
roomName: string;
|
2053
|
+
recordTime: number;
|
2054
|
+
isEncrypted: number;
|
2055
|
+
videoCoverDisplay: string;
|
2056
|
+
videoDisplay: string;
|
2057
|
+
videoDuration: number;
|
2058
|
+
petAction: string;
|
2059
|
+
pets: {
|
2060
|
+
petId: number;
|
2061
|
+
petName: string;
|
2062
|
+
}[];
|
2063
|
+
};
|
1999
2064
|
export {};
|
package/lib/cloud/interface.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/api",
|
3
|
-
"version": "1.7.
|
3
|
+
"version": "1.7.28",
|
4
4
|
"description": "Ray universal api",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -29,8 +29,8 @@
|
|
29
29
|
"watch": "ray start --type=component"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@ray-js/framework": "1.7.
|
33
|
-
"@ray-js/router": "1.7.
|
32
|
+
"@ray-js/framework": "1.7.28",
|
33
|
+
"@ray-js/router": "1.7.28",
|
34
34
|
"base64-browser": "^1.0.1",
|
35
35
|
"query-string": "^7.1.3"
|
36
36
|
},
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"@ray-js/wechat": "^0.3.13"
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
|
-
"@ray-js/cli": "1.7.
|
41
|
+
"@ray-js/cli": "1.7.28",
|
42
42
|
"art-template": "^4.13.4",
|
43
43
|
"fs-extra": "^10.1.0",
|
44
44
|
"miniprogram-api-typings": "^3.12.3",
|
@@ -48,5 +48,5 @@
|
|
48
48
|
"access": "public",
|
49
49
|
"registry": "https://registry.npmjs.org"
|
50
50
|
},
|
51
|
-
"gitHead": "
|
51
|
+
"gitHead": "adb587139fc66934ed4861f60747e8b891f5b29b"
|
52
52
|
}
|