theta-client-react-native 1.0.2 → 1.1.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.
- package/README.md +6 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +34 -0
- package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +311 -9
- package/ios/ThetaClientReactNative.mm +528 -43
- package/lib/commonjs/capture/capture.js +118 -0
- package/lib/commonjs/capture/capture.js.map +1 -0
- package/lib/commonjs/capture/index.js +39 -0
- package/lib/commonjs/capture/index.js.map +1 -0
- package/lib/commonjs/capture/photo-capture.js +64 -0
- package/lib/commonjs/capture/photo-capture.js.map +1 -0
- package/lib/commonjs/capture/video-capture.js +71 -0
- package/lib/commonjs/capture/video-capture.js.map +1 -0
- package/lib/commonjs/index.js +40 -1041
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/theta-repository/access-point.js +23 -0
- package/lib/commonjs/theta-repository/access-point.js.map +1 -0
- package/lib/commonjs/theta-repository/index.js +72 -0
- package/lib/commonjs/theta-repository/index.js.map +1 -0
- package/lib/commonjs/theta-repository/options/index.js +28 -0
- package/lib/commonjs/theta-repository/options/index.js.map +1 -0
- package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js +25 -0
- package/lib/commonjs/theta-repository/options/option-white-balance-auto-strength.js.map +1 -0
- package/lib/commonjs/theta-repository/options/options.js +462 -0
- package/lib/commonjs/theta-repository/options/options.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-files.js +23 -0
- package/lib/commonjs/theta-repository/theta-files.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-info.js +2 -0
- package/lib/commonjs/theta-repository/theta-info.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-meta.js +2 -0
- package/lib/commonjs/theta-repository/theta-meta.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-plugin.js +2 -0
- package/lib/commonjs/theta-repository/theta-plugin.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-repository.js +479 -0
- package/lib/commonjs/theta-repository/theta-repository.js.map +1 -0
- package/lib/commonjs/theta-repository/theta-state.js +120 -0
- package/lib/commonjs/theta-repository/theta-state.js.map +1 -0
- package/lib/module/capture/capture.js +111 -0
- package/lib/module/capture/capture.js.map +1 -0
- package/lib/module/capture/index.js +4 -0
- package/lib/module/capture/index.js.map +1 -0
- package/lib/module/capture/photo-capture.js +56 -0
- package/lib/module/capture/photo-capture.js.map +1 -0
- package/lib/module/capture/video-capture.js +63 -0
- package/lib/module/capture/video-capture.js.map +1 -0
- package/lib/module/index.js +3 -1009
- package/lib/module/index.js.map +1 -1
- package/lib/module/theta-repository/access-point.js +16 -0
- package/lib/module/theta-repository/access-point.js.map +1 -0
- package/lib/module/theta-repository/index.js +7 -0
- package/lib/module/theta-repository/index.js.map +1 -0
- package/lib/module/theta-repository/options/index.js +3 -0
- package/lib/module/theta-repository/options/index.js.map +1 -0
- package/lib/module/theta-repository/options/option-white-balance-auto-strength.js +18 -0
- package/lib/module/theta-repository/options/option-white-balance-auto-strength.js.map +1 -0
- package/lib/module/theta-repository/options/options.js +454 -0
- package/lib/module/theta-repository/options/options.js.map +1 -0
- package/lib/module/theta-repository/theta-files.js +16 -0
- package/lib/module/theta-repository/theta-files.js.map +1 -0
- package/lib/module/theta-repository/theta-info.js +2 -0
- package/lib/module/theta-repository/theta-info.js.map +1 -0
- package/lib/module/theta-repository/theta-meta.js +2 -0
- package/lib/module/theta-repository/theta-meta.js.map +1 -0
- package/lib/module/theta-repository/theta-plugin.js +2 -0
- package/lib/module/theta-repository/theta-plugin.js.map +1 -0
- package/lib/module/theta-repository/theta-repository.js +437 -0
- package/lib/module/theta-repository/theta-repository.js.map +1 -0
- package/lib/module/theta-repository/theta-state.js +113 -0
- package/lib/module/theta-repository/theta-state.js.map +1 -0
- package/lib/typescript/capture/capture.d.ts +71 -0
- package/lib/typescript/capture/capture.d.ts.map +1 -0
- package/lib/typescript/capture/index.d.ts +4 -0
- package/lib/typescript/capture/index.d.ts.map +1 -0
- package/lib/typescript/capture/photo-capture.d.ts +38 -0
- package/lib/typescript/capture/photo-capture.d.ts.map +1 -0
- package/lib/typescript/capture/video-capture.d.ts +43 -0
- package/lib/typescript/capture/video-capture.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +3 -972
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/theta-repository/access-point.d.ts +33 -0
- package/lib/typescript/theta-repository/access-point.d.ts.map +1 -0
- package/lib/typescript/theta-repository/index.d.ts +7 -0
- package/lib/typescript/theta-repository/index.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/index.d.ts +3 -0
- package/lib/typescript/theta-repository/options/index.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts +18 -0
- package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts.map +1 -0
- package/lib/typescript/theta-repository/options/options.d.ts +499 -0
- package/lib/typescript/theta-repository/options/options.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-files.d.ts +32 -0
- package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-info.d.ts +34 -0
- package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-meta.d.ts +38 -0
- package/lib/typescript/theta-repository/theta-meta.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-plugin.d.ts +26 -0
- package/lib/typescript/theta-repository/theta-plugin.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-repository.d.ts +312 -0
- package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -0
- package/lib/typescript/theta-repository/theta-state.d.ts +150 -0
- package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/capture/capture.ts +124 -0
- package/src/capture/index.ts +3 -0
- package/src/capture/photo-capture.ts +62 -0
- package/src/capture/video-capture.ts +69 -0
- package/src/index.tsx +3 -1243
- package/src/theta-repository/access-point.ts +34 -0
- package/src/theta-repository/index.ts +6 -0
- package/src/theta-repository/options/index.ts +2 -0
- package/src/theta-repository/options/option-white-balance-auto-strength.ts +19 -0
- package/src/theta-repository/options/options.ts +554 -0
- package/src/theta-repository/theta-files.ts +34 -0
- package/src/theta-repository/theta-info.ts +35 -0
- package/src/theta-repository/theta-meta.ts +39 -0
- package/src/theta-repository/theta-plugin.ts +25 -0
- package/src/theta-repository/theta-repository.ts +476 -0
- package/src/theta-repository/theta-state.ts +164 -0
- package/theta-client-react-native.podspec +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Static attributes of Theta. */
|
|
2
|
+
export type ThetaInfo = {
|
|
3
|
+
/** Manufacturer name */
|
|
4
|
+
manufacturer: string;
|
|
5
|
+
/** Theta model name */
|
|
6
|
+
model: string;
|
|
7
|
+
/** Theta serial number */
|
|
8
|
+
serialNumber: string;
|
|
9
|
+
/** MAC address of wireless LAN (RICOH THETA V firmware v2.11.1 or later) */
|
|
10
|
+
wlanMacAddress: string | null;
|
|
11
|
+
/** MAC address of Bluetooth (RICOH THETA V firmware v2.11.1 or later) */
|
|
12
|
+
bluetoothMacAddress: string | null;
|
|
13
|
+
/** Theta firmware version */
|
|
14
|
+
firmwareVersion: string;
|
|
15
|
+
supportUrl: string;
|
|
16
|
+
/** true if Theta has GPS. */
|
|
17
|
+
hasGps: boolean;
|
|
18
|
+
/** true if Theta has Gyroscope */
|
|
19
|
+
hasGyro: boolean;
|
|
20
|
+
/** Number of seconds since Theta boot */
|
|
21
|
+
uptime: number;
|
|
22
|
+
/** List of supported APIs */
|
|
23
|
+
api: string[];
|
|
24
|
+
/** Endpoint information */
|
|
25
|
+
endpoints: EndPoint;
|
|
26
|
+
/** List of supported APIs (1: v2.0, 2: v2.1) */
|
|
27
|
+
apiLevel: number[];
|
|
28
|
+
};
|
|
29
|
+
/** endpoint information */
|
|
30
|
+
export type EndPoint = {
|
|
31
|
+
httpPort: number;
|
|
32
|
+
httpUpdatesPort: number;
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=theta-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theta-info.d.ts","sourceRoot":"","sources":["../../../src/theta-repository/theta-info.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,MAAM,MAAM,SAAS,GAAG;IACtB,wBAAwB;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,uBAAuB;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,0BAA0B;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,4EAA4E;IAC5E,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,yEAAyE;IACzE,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,6BAA6B;IAC7B,eAAe,EAAE,MAAM,CAAC;IAExB,UAAU,EAAE,MAAM,CAAC;IACnB,6BAA6B;IAC7B,MAAM,EAAE,OAAO,CAAC;IAChB,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,GAAG,EAAE,MAAM,EAAE,CAAC;IACd,2BAA2B;IAC3B,SAAS,EAAE,QAAQ,CAAC;IACpB,gDAAgD;IAChD,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAEF,2BAA2B;AAC3B,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* exif information
|
|
3
|
+
*/
|
|
4
|
+
export type Exif = {
|
|
5
|
+
/** EXIF Support version */
|
|
6
|
+
exifVersion: string;
|
|
7
|
+
/** File created or updated date and time */
|
|
8
|
+
dateTime: string;
|
|
9
|
+
/** Image width (pixel). Theta X returns null. */
|
|
10
|
+
imageWidth?: number;
|
|
11
|
+
/** Image height (pixel). Theta X returns null. */
|
|
12
|
+
imageLength?: number;
|
|
13
|
+
/** GPS latitude if exists. */
|
|
14
|
+
gpsLatitude?: number;
|
|
15
|
+
/** GPS longitude if exists. */
|
|
16
|
+
gpsLongitude?: number;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Photo sphere XMP metadata of a still image.
|
|
20
|
+
*/
|
|
21
|
+
export type Xmp = {
|
|
22
|
+
/** Compass heading, for the center the image. Theta X returns null. */
|
|
23
|
+
poseHeadingDegrees?: number;
|
|
24
|
+
/** Image width (pixel). */
|
|
25
|
+
fullPanoWidthPixels: number;
|
|
26
|
+
/** Image height (pixel). */
|
|
27
|
+
fullPanoHeightPixels: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* metadata of a still image
|
|
31
|
+
*/
|
|
32
|
+
export type MetaInfo = {
|
|
33
|
+
/** exif information */
|
|
34
|
+
exif?: Exif;
|
|
35
|
+
/** xmp information */
|
|
36
|
+
xmp?: Xmp;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=theta-meta.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theta-meta.d.ts","sourceRoot":"","sources":["../../../src/theta-repository/theta-meta.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,2BAA2B;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,+BAA+B;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG;IAChB,uEAAuE;IACvE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,2BAA2B;IAC3B,mBAAmB,EAAE,MAAM,CAAC;IAC5B,4BAA4B;IAC5B,oBAAoB,EAAE,MAAM,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,uBAAuB;IACvB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,sBAAsB;IACtB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* plugin information used by ThetaRepository.listPlugins().
|
|
3
|
+
*/
|
|
4
|
+
export type PluginInfo = {
|
|
5
|
+
/** Plugin name */
|
|
6
|
+
name: string;
|
|
7
|
+
/** Package name */
|
|
8
|
+
packageName: string;
|
|
9
|
+
/** Plugin version */
|
|
10
|
+
version: string;
|
|
11
|
+
/** Pre-installed plugin or not */
|
|
12
|
+
isPreInstalled: boolean;
|
|
13
|
+
/** Is the plugin running or not */
|
|
14
|
+
isRunning: boolean;
|
|
15
|
+
/** Is the plugin foreground or not */
|
|
16
|
+
isForeground: boolean;
|
|
17
|
+
/** Is the plugin to be started on boot or not */
|
|
18
|
+
isBoot: boolean;
|
|
19
|
+
/** Does the plugin have web server or not */
|
|
20
|
+
hasWebServer: boolean;
|
|
21
|
+
/** Exit status of the plugin */
|
|
22
|
+
exitStatus: string;
|
|
23
|
+
/** Message of the plugin */
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=theta-plugin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theta-plugin.d.ts","sourceRoot":"","sources":["../../../src/theta-repository/theta-plugin.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,cAAc,EAAE,OAAO,CAAC;IACxB,mCAAmC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,YAAY,EAAE,OAAO,CAAC;IACtB,iDAAiD;IACjD,MAAM,EAAE,OAAO,CAAC;IAChB,6CAA6C;IAC7C,YAAY,EAAE,OAAO,CAAC;IACtB,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,4BAA4B;IAC5B,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { AccessPoint, AuthModeEnum } from './access-point';
|
|
2
|
+
import type { FileTypeEnum, ThetaFiles } from './theta-files';
|
|
3
|
+
import type { ThetaState } from './theta-state';
|
|
4
|
+
import type { ThetaInfo } from './theta-info';
|
|
5
|
+
import type { MetaInfo } from './theta-meta';
|
|
6
|
+
import type { PluginInfo } from './theta-plugin';
|
|
7
|
+
import type { OptionNameEnum, Options, CaptureModeEnum } from './options';
|
|
8
|
+
import { PhotoCaptureBuilder, VideoCaptureBuilder } from '../capture';
|
|
9
|
+
/**
|
|
10
|
+
* initialize theta client sdk
|
|
11
|
+
*
|
|
12
|
+
* @function initialize
|
|
13
|
+
* @param {string} endPoint optional endpoint of camera
|
|
14
|
+
* @return promise of boolean result
|
|
15
|
+
**/
|
|
16
|
+
export declare function initialize(endPoint?: string): Promise<boolean>;
|
|
17
|
+
/**
|
|
18
|
+
* Reset all device settings and capture settings.
|
|
19
|
+
* After reset, the camera will be restarted.
|
|
20
|
+
*
|
|
21
|
+
* @function reset
|
|
22
|
+
* @return promise of boolean result
|
|
23
|
+
*/
|
|
24
|
+
export declare function reset(): Promise<boolean>;
|
|
25
|
+
/**
|
|
26
|
+
* Get PhotoCaptureBuilder for take a picture.
|
|
27
|
+
*
|
|
28
|
+
* @function getPhotoCaptureBuilder
|
|
29
|
+
* @return created PhotoCaptureBuilder
|
|
30
|
+
*/
|
|
31
|
+
export declare function getPhotoCaptureBuilder(): PhotoCaptureBuilder;
|
|
32
|
+
/**
|
|
33
|
+
* Get PhotoCapture.Builder for capture video.
|
|
34
|
+
*
|
|
35
|
+
* @function getVideoCaptureBuilder
|
|
36
|
+
* @return created VideoCaptureBuilder instance
|
|
37
|
+
*/
|
|
38
|
+
export declare function getVideoCaptureBuilder(): VideoCaptureBuilder;
|
|
39
|
+
/**
|
|
40
|
+
* Start live preview.
|
|
41
|
+
* preview frame (JPEG DataURL) send THETA_EVENT_NAME event as
|
|
42
|
+
* {
|
|
43
|
+
* "data": "DataURL of JPEG Frame"
|
|
44
|
+
* }
|
|
45
|
+
*
|
|
46
|
+
* @function StartLivePreview
|
|
47
|
+
* @return promise of boolean result
|
|
48
|
+
*/
|
|
49
|
+
export declare function getLivePreview(): Promise<boolean>;
|
|
50
|
+
/**
|
|
51
|
+
* Stop live preview.
|
|
52
|
+
*
|
|
53
|
+
* @function StopLivePreview
|
|
54
|
+
*/
|
|
55
|
+
export declare function stopLivePreview(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Restore setting to THETA
|
|
58
|
+
*
|
|
59
|
+
* @function restoreSettings
|
|
60
|
+
* @return promise of boolean result
|
|
61
|
+
*/
|
|
62
|
+
export declare function restoreSettings(): Promise<boolean>;
|
|
63
|
+
/**
|
|
64
|
+
* Stop running self-timer.
|
|
65
|
+
*
|
|
66
|
+
* @function stopSelfTimer
|
|
67
|
+
* @return promise of boolean result
|
|
68
|
+
*/
|
|
69
|
+
export declare function stopSelfTimer(): Promise<boolean>;
|
|
70
|
+
/**
|
|
71
|
+
* Converts the movie format of a saved movie.
|
|
72
|
+
*
|
|
73
|
+
* @function convertVideoFormats
|
|
74
|
+
* @param {string} fileUrl URL of a saved movie file to convert
|
|
75
|
+
* @param {boolean} toLowResolution If true generates lower resolution
|
|
76
|
+
* video, otherwise same resolution.
|
|
77
|
+
* @param {boolean} applyTopBottomCorrection apply Top/bottom
|
|
78
|
+
* correction. This parameter is ignored on Theta X.
|
|
79
|
+
* @return promise of URL of a converted movie file.
|
|
80
|
+
*/
|
|
81
|
+
export declare function convertVideoFormats(fileUrl: string, toLowResolution: boolean, applyTopBottomCorrection: boolean): Promise<string>;
|
|
82
|
+
/**
|
|
83
|
+
* Cancels the movie format conversion.
|
|
84
|
+
*
|
|
85
|
+
* @function cancelVideoConvert
|
|
86
|
+
* @return promise of boolean result
|
|
87
|
+
*/
|
|
88
|
+
export declare function cancelVideoConvert(): Promise<boolean>;
|
|
89
|
+
/**
|
|
90
|
+
* Turns the wireless LAN off.
|
|
91
|
+
*
|
|
92
|
+
* @function finishWlan
|
|
93
|
+
* @return promise of boolean result
|
|
94
|
+
*/
|
|
95
|
+
export declare function finishWlan(): Promise<boolean>;
|
|
96
|
+
/**
|
|
97
|
+
* Registers identification information (UUID) of a BLE device.
|
|
98
|
+
*
|
|
99
|
+
* @function setBluetoothDevice
|
|
100
|
+
* @param {string} uuid UUID of the BLE device to set.
|
|
101
|
+
* @return promise of String result
|
|
102
|
+
*/
|
|
103
|
+
export declare function setBluetoothDevice(uuid: string): Promise<String>;
|
|
104
|
+
/**
|
|
105
|
+
* Get basic information about Theta.
|
|
106
|
+
*
|
|
107
|
+
* @function getThetaInfo
|
|
108
|
+
* @return promise of ThetaInfo
|
|
109
|
+
**/
|
|
110
|
+
export declare function getThetaInfo(): Promise<ThetaInfo>;
|
|
111
|
+
/**
|
|
112
|
+
* Get current state of Theta.
|
|
113
|
+
*
|
|
114
|
+
* @function getThetaState
|
|
115
|
+
* @return promise of ThetaState
|
|
116
|
+
**/
|
|
117
|
+
export declare function getThetaState(): Promise<ThetaState>;
|
|
118
|
+
/**
|
|
119
|
+
* Lists information of images and videos in Theta.
|
|
120
|
+
*
|
|
121
|
+
* @function listFiles
|
|
122
|
+
* @param {FileTypeEnum} fileType Type of the files to be listed.
|
|
123
|
+
* @param {number} startPosition The position of the first file to be
|
|
124
|
+
* returned in the list. 0 represents the first file. If
|
|
125
|
+
* startPosition is larger than the position of the last file, an
|
|
126
|
+
* empty list is returned.
|
|
127
|
+
* @param {number} entryCount Desired number of entries to return. If
|
|
128
|
+
* entryCount is more than the number of remaining files, just
|
|
129
|
+
* return entries of actual remaining files.
|
|
130
|
+
* @return promise with a list of file information and number of totalEntries.
|
|
131
|
+
* see [camera.listFiles](https://github.com/ricohapi/theta-api-specs/blob/main/theta-web-api-v2.1/commands/camera.list_files.md).
|
|
132
|
+
*/
|
|
133
|
+
export declare function listFiles(fileTypeEnum: FileTypeEnum, startPosition: number | undefined, entryCount: number): Promise<ThetaFiles>;
|
|
134
|
+
/**
|
|
135
|
+
* Delete files in Theta.
|
|
136
|
+
*
|
|
137
|
+
* @function deleteFiles
|
|
138
|
+
* @param {string[]} fileUrls URLs of the file to be deleted.
|
|
139
|
+
* @return promise of boolean result
|
|
140
|
+
*/
|
|
141
|
+
export declare function deleteFiles(fileUrls: string[]): Promise<boolean>;
|
|
142
|
+
/**
|
|
143
|
+
* Delete all files in Theta.
|
|
144
|
+
*
|
|
145
|
+
* @function deleteAllFiles
|
|
146
|
+
* @return promise of boolean result
|
|
147
|
+
*/
|
|
148
|
+
export declare function deleteAllFiles(): Promise<boolean>;
|
|
149
|
+
/**
|
|
150
|
+
* Delete all image files in Theta.
|
|
151
|
+
*
|
|
152
|
+
* @function deleteAllImageFiles
|
|
153
|
+
* @return promise of boolean result
|
|
154
|
+
*/
|
|
155
|
+
export declare function deleteAllImageFiles(): Promise<boolean>;
|
|
156
|
+
/**
|
|
157
|
+
* Delete all video files in Theta.
|
|
158
|
+
*
|
|
159
|
+
* @function deleteAllVideoFiles
|
|
160
|
+
* @return promise of boolean result
|
|
161
|
+
*/
|
|
162
|
+
export declare function deleteAllVideoFiles(): Promise<boolean>;
|
|
163
|
+
/**
|
|
164
|
+
* Acquires the properties and property support specifications for
|
|
165
|
+
* shooting, the camera, etc.
|
|
166
|
+
*
|
|
167
|
+
* @function getOptions
|
|
168
|
+
* @param {OptionNameEnum[]} optionNames List of OptionNameEnum.
|
|
169
|
+
* @return promise of Options acquired
|
|
170
|
+
*/
|
|
171
|
+
export declare function getOptions(optionNames: OptionNameEnum[]): Promise<Options>;
|
|
172
|
+
/**
|
|
173
|
+
* Property settings for shooting, the camera, etc.
|
|
174
|
+
*
|
|
175
|
+
* @function setOptions
|
|
176
|
+
* @param {Options} options Camera setting options.
|
|
177
|
+
* @return promise of boolean result
|
|
178
|
+
*/
|
|
179
|
+
export declare function setOptions(options: Options): Promise<boolean>;
|
|
180
|
+
/**
|
|
181
|
+
* Get metadata of a still image
|
|
182
|
+
*
|
|
183
|
+
* @function getMetadata
|
|
184
|
+
* @param {string} fileUrl URL of a still image file to get metadata
|
|
185
|
+
* @return promise of MetaInfo
|
|
186
|
+
*/
|
|
187
|
+
export declare function getMetadata(fileUrl: string): Promise<MetaInfo>;
|
|
188
|
+
/**
|
|
189
|
+
* Acquires the access point list used in client mode.
|
|
190
|
+
*
|
|
191
|
+
* @function listAccessPoints
|
|
192
|
+
* @return promise of AccessPoint list
|
|
193
|
+
*/
|
|
194
|
+
export declare function listAccessPoints(): Promise<AccessPoint[]>;
|
|
195
|
+
/**
|
|
196
|
+
* Set access point. IP address is set dynamically.
|
|
197
|
+
*
|
|
198
|
+
* @function setAccessPointDynamically
|
|
199
|
+
* @param {string} ssid SSID of the access point.
|
|
200
|
+
* @param {boolean} ssidStealth true if SSID stealth is enabled.
|
|
201
|
+
* @param {AuthModeEnum} authMode Authentication mode.
|
|
202
|
+
* @param {string} password Password. If authMode is "NONE", pass empty String.
|
|
203
|
+
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
204
|
+
* @return promise of boolean result
|
|
205
|
+
*/
|
|
206
|
+
export declare function setAccessPointDynamically(ssid: string, ssidStealth?: boolean, authMode?: AuthModeEnum, password?: string, connectionPriority?: number): Promise<boolean>;
|
|
207
|
+
/**
|
|
208
|
+
* Set access point. IP address is set statically.
|
|
209
|
+
*
|
|
210
|
+
* @function setAccessPointStatically
|
|
211
|
+
* @param {string} ssid SSID of the access point.
|
|
212
|
+
* @param {boolean} ssidStealth True if SSID stealth is enabled.
|
|
213
|
+
* @param {AuthModeEnum} authMode Authentication mode.
|
|
214
|
+
* @param {string} password Password. If authMode is "NONE", pass empty String.
|
|
215
|
+
* @param {number} connectionPriority Connection priority 1 to 5.
|
|
216
|
+
* @param {string} ipAddress IP address assigns to Theta.
|
|
217
|
+
* @param {string} subnetMask Subnet mask.
|
|
218
|
+
* @param {string} defaultGateway Default gateway.
|
|
219
|
+
* @return promise of boolean result
|
|
220
|
+
*/
|
|
221
|
+
export declare function setAccessPointStatically(ssid: string, ssidStealth: boolean | undefined, authMode: AuthModeEnum | undefined, password: string | undefined, connectionPriority: number | undefined, ipAddress: string, subnetMask: string, defaultGateway: string): Promise<boolean>;
|
|
222
|
+
/**
|
|
223
|
+
* Deletes access point information used in client mode.
|
|
224
|
+
*
|
|
225
|
+
* @function deleteAccessPoint
|
|
226
|
+
* @param {string} ssid SSID of the access point to delete.
|
|
227
|
+
* @return promise of boolean result
|
|
228
|
+
*/
|
|
229
|
+
export declare function deleteAccessPoint(ssid: string): Promise<boolean>;
|
|
230
|
+
/**
|
|
231
|
+
* Acquires the shooting properties set by the camera._setMySetting command.
|
|
232
|
+
* Just for Theta V and later.
|
|
233
|
+
*
|
|
234
|
+
* @function getMySetting
|
|
235
|
+
* @param captureMode The target shooting mode
|
|
236
|
+
* @returns Options of my setting
|
|
237
|
+
*/
|
|
238
|
+
export declare function getMySetting(captureMode: CaptureModeEnum): Promise<Options>;
|
|
239
|
+
/**
|
|
240
|
+
* Acquires the shooting properties set by the camera._setMySetting command.
|
|
241
|
+
* Just for Theta S and SC.
|
|
242
|
+
*
|
|
243
|
+
* @function getMySetting
|
|
244
|
+
* @param optionNames List of option names to acquire
|
|
245
|
+
* @returns Options of my setting
|
|
246
|
+
*/
|
|
247
|
+
export declare function getMySettingFromOldModel(optionNames: OptionNameEnum[]): Promise<Options>;
|
|
248
|
+
/**
|
|
249
|
+
* Registers shooting conditions in My Settings
|
|
250
|
+
* @function setMySetting
|
|
251
|
+
* @param captureMode The target shooting mode. RICOH THETA S and SC do not support My Settings in video capture mode.
|
|
252
|
+
* @param options registered to My Settings
|
|
253
|
+
* @returns Promise of boolean result, always true
|
|
254
|
+
*/
|
|
255
|
+
export declare function setMySetting(captureMode: CaptureModeEnum, options: Options): Promise<boolean>;
|
|
256
|
+
/**
|
|
257
|
+
* Delete shooting conditions in My Settings. Supported just by Theta X and Z1.
|
|
258
|
+
* @param captureMode The target shooting mode
|
|
259
|
+
* @returns Promise of boolean result, always true
|
|
260
|
+
*/
|
|
261
|
+
export declare function deleteMySetting(captureMode: CaptureModeEnum): Promise<boolean>;
|
|
262
|
+
/**
|
|
263
|
+
* Acquires a list of installed plugins
|
|
264
|
+
* @function listPlugins
|
|
265
|
+
* @return A list of the plugins installed in Theta.
|
|
266
|
+
*/
|
|
267
|
+
export declare function listPlugins(): Promise<PluginInfo[]>;
|
|
268
|
+
/**
|
|
269
|
+
* Sets the installed plugin for boot. Supported just by Theta V.
|
|
270
|
+
* @function setPlugin
|
|
271
|
+
* @param packageName Package name of the target plugin.
|
|
272
|
+
* @return Promise of boolean result, always true.
|
|
273
|
+
*/
|
|
274
|
+
export declare function setPlugin(packageName: string): Promise<boolean>;
|
|
275
|
+
/**
|
|
276
|
+
* Start the plugin specified by the [packageName].
|
|
277
|
+
* @function startPlugin
|
|
278
|
+
* @param packageName Package name of the target plugin.
|
|
279
|
+
* @return Promise of boolean result, always true.
|
|
280
|
+
*/
|
|
281
|
+
export declare function startPlugin(packageName: string): Promise<boolean>;
|
|
282
|
+
/**
|
|
283
|
+
* Stop the running plugin.
|
|
284
|
+
* @function stopPlugin
|
|
285
|
+
* @return Promise of boolean result, always true.
|
|
286
|
+
*/
|
|
287
|
+
export declare function stopPlugin(): Promise<boolean>;
|
|
288
|
+
/**
|
|
289
|
+
* Acquires the license for the installed plugin.
|
|
290
|
+
* @function getPluginLicense
|
|
291
|
+
* @param packageName Package name of the target plugin.
|
|
292
|
+
* @return Promise of string result, HTML string of the license.
|
|
293
|
+
*/
|
|
294
|
+
export declare function getPluginLicense(packageName: string): Promise<string>;
|
|
295
|
+
/**
|
|
296
|
+
* Return the plugin orders. Supported just by Theta X and Z1.
|
|
297
|
+
* @function getPluginOrders
|
|
298
|
+
* @return Promise of string[] result, list of package names of plugins.
|
|
299
|
+
*/
|
|
300
|
+
export declare function getPluginOrders(): Promise<string[]>;
|
|
301
|
+
/**
|
|
302
|
+
* Sets the plugin orders. Supported just by Theta X and Z1.
|
|
303
|
+
* @function setPluginOrders
|
|
304
|
+
* @param plugins list of package names of plugins.
|
|
305
|
+
* For Z1, list size must be three. No restrictions for the size for X.
|
|
306
|
+
* When not specifying, set an empty string.
|
|
307
|
+
* If an empty string is placed mid-way, it will be moved to the front.
|
|
308
|
+
* Specifying zero package name will result in an error
|
|
309
|
+
* @return Promise of boolean result, always true.
|
|
310
|
+
*/
|
|
311
|
+
export declare function setPluginOrders(plugins: string[]): Promise<boolean>;
|
|
312
|
+
//# sourceMappingURL=theta-repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theta-repository.d.ts","sourceRoot":"","sources":["../../../src/theta-repository/theta-repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,eAAe,EAA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
|
|
|
1
|
+
/** Battery charging state constants */
|
|
2
|
+
export declare const ChargingStateEnum: {
|
|
3
|
+
/** Charging */
|
|
4
|
+
readonly CHARGING: "CHARGING";
|
|
5
|
+
/** Charging completed */
|
|
6
|
+
readonly COMPLETED: "COMPLETED";
|
|
7
|
+
/** Not charging */
|
|
8
|
+
readonly NOT_CHARGING: "NOT_CHARGING";
|
|
9
|
+
};
|
|
10
|
+
/** type definition of ChargingStateEnum */
|
|
11
|
+
export type ChargingStateEnum = typeof ChargingStateEnum[keyof typeof ChargingStateEnum];
|
|
12
|
+
/** Capture Status constants */
|
|
13
|
+
export declare const CaptureStatusEnum: {
|
|
14
|
+
/** Performing continuously shoot */
|
|
15
|
+
readonly SHOOTING: "SHOOTING";
|
|
16
|
+
/** In standby */
|
|
17
|
+
readonly IDLE: "IDLE";
|
|
18
|
+
/** Self-timer is operating */
|
|
19
|
+
readonly SELF_TIMER_COUNTDOWN: "SELF_TIMER_COUNTDOWN";
|
|
20
|
+
/** Performing multi bracket shooting */
|
|
21
|
+
readonly BRACKET_SHOOTING: "BRACKET_SHOOTING";
|
|
22
|
+
/** Converting post file... */
|
|
23
|
+
readonly CONVERTING: "CONVERTING";
|
|
24
|
+
/** Performing timeShift shooting */
|
|
25
|
+
readonly TIME_SHIFT_SHOOTING: "TIME_SHIFT_SHOOTING";
|
|
26
|
+
/** Performing continuous shooting */
|
|
27
|
+
readonly CONTINUOUS_SHOOTING: "CONTINUOUS_SHOOTING";
|
|
28
|
+
/** Waiting for retrospective video... */
|
|
29
|
+
readonly RETROSPECTIVE_IMAGE_RECORDING: "RETROSPECTIVE_IMAGE_RECORDING";
|
|
30
|
+
};
|
|
31
|
+
/** type definition of CaptureStatusEnum */
|
|
32
|
+
export type CaptureStatusEnum = typeof CaptureStatusEnum[keyof typeof CaptureStatusEnum];
|
|
33
|
+
/** Shooting function status constants */
|
|
34
|
+
export declare const ShootingFunctionEnum: {
|
|
35
|
+
/** normal */
|
|
36
|
+
readonly NORMAL: "NORMAL";
|
|
37
|
+
/** selfTimer */
|
|
38
|
+
readonly SELF_TIMER: "SELF_TIMER";
|
|
39
|
+
/** mySetting */
|
|
40
|
+
readonly MY_SETTING: "MY_SETTING";
|
|
41
|
+
};
|
|
42
|
+
/** type definition of ShootingFunctionEnum */
|
|
43
|
+
export type ShootingFunctionEnum = typeof ShootingFunctionEnum[keyof typeof ShootingFunctionEnum];
|
|
44
|
+
/** Microphone option constants */
|
|
45
|
+
export declare const MicrophoneOptionEnum: {
|
|
46
|
+
/** auto */
|
|
47
|
+
readonly AUTO: "AUTO";
|
|
48
|
+
/** built-in microphone */
|
|
49
|
+
readonly INTERNAL: "INTERNAL";
|
|
50
|
+
/** external microphone */
|
|
51
|
+
readonly EXTERNAL: "EXTERNAL";
|
|
52
|
+
};
|
|
53
|
+
/** type definition of MicrophoneOptionEnum */
|
|
54
|
+
export type MicrophoneOptionEnum = typeof MicrophoneOptionEnum[keyof typeof MicrophoneOptionEnum];
|
|
55
|
+
/** Camera error constants */
|
|
56
|
+
export declare const CameraErrorEnum: {
|
|
57
|
+
/** Insufficient memory */
|
|
58
|
+
readonly NO_MEMORY: "NO_MEMORY";
|
|
59
|
+
/** Maximum file number exceeded */
|
|
60
|
+
readonly FILE_NUMBER_OVER: "FILE_NUMBER_OVER";
|
|
61
|
+
/** Camera clock not set */
|
|
62
|
+
readonly NO_DATA_SETTING: "NO_DATE_SETTING";
|
|
63
|
+
/** Includes when the card is removed */
|
|
64
|
+
readonly READ_ERROR: "READ_ERROR";
|
|
65
|
+
/** Unsupported media (SDHC, etc.) */
|
|
66
|
+
readonly NOT_SUPPORTED_MEDIA_TYPE: "NOT_SUPPORTED_MEDIA_TYPE";
|
|
67
|
+
/** FAT32, etc. */
|
|
68
|
+
readonly NOT_SUPPORTED_FILE_SYSTEM: "NOT_SUPPORTED_FILE_SYSTEM";
|
|
69
|
+
/** Error warning while mounting */
|
|
70
|
+
readonly MEDIA_NOT_READY: "MEDIA_NOT_READY";
|
|
71
|
+
/** Battery level warning (firmware update) */
|
|
72
|
+
readonly NOT_ENOUGH_BATTERY: "NOT_ENOUGH_BATTERY";
|
|
73
|
+
/** Firmware file mismatch warning */
|
|
74
|
+
readonly INVALID_FILE: "INVALID_FILE";
|
|
75
|
+
/** Plugin start warning (IoT technical standards compliance) */
|
|
76
|
+
readonly PLUGIN_BOOT_ERROR: "PLUGIN_BOOT_ERROR";
|
|
77
|
+
/**
|
|
78
|
+
* When performing continuous shooting by operating the camera while executing <Delete object>,
|
|
79
|
+
* <Transfer firmware file>, <Install plugin> or <Uninstall plugin> with the WebAPI or MTP.
|
|
80
|
+
*/
|
|
81
|
+
readonly IN_PROGRESS_ERROR: "IN_PROGRESS_ERROR";
|
|
82
|
+
/** Battery inserted + WLAN ON + Video mode + 4K 60fps / 5.7K 10fps / 5.7K 15fps / 5.7K 30fps / 8K 10fps */
|
|
83
|
+
readonly CANNOT_RECORDING: "CANNOT_RECORDING";
|
|
84
|
+
/** Battery inserted AND Specified battery level or lower + WLAN ON + Video mode + 4K 30fps */
|
|
85
|
+
readonly CANNOT_RECORD_LOWBAT: "CANNOT_RECORD_LOWBAT";
|
|
86
|
+
/** Shooting hardware failure */
|
|
87
|
+
readonly CAPTURE_HW_FAILED: "CAPTURE_HW_FAILED";
|
|
88
|
+
/** Software error */
|
|
89
|
+
readonly CAPTURE_SW_FAILED: "CAPTURE_SW_FAILED";
|
|
90
|
+
/** Internal memory access error */
|
|
91
|
+
readonly INTERNAL_MEM_ACCESS_FAIL: "INTERNAL_MEM_ACCESS_FAIL";
|
|
92
|
+
/** Undefined error */
|
|
93
|
+
readonly UNEXPECTED_ERROR: "UNEXPECTED_ERROR";
|
|
94
|
+
/** Charging error */
|
|
95
|
+
readonly BATTERY_CHARGE_FAIL: "BATTERY_CHARGE_FAIL";
|
|
96
|
+
/** (Board) temperature warning */
|
|
97
|
+
readonly HIGH_TEMPERATURE_WARNING: "HIGH_TEMPERATURE_WARNING";
|
|
98
|
+
/** (Board) temperature error */
|
|
99
|
+
readonly HIGH_TEMPERATURE: "HIGH_TEMPERATURE";
|
|
100
|
+
/** Battery temperature error */
|
|
101
|
+
readonly BATTERY_HIGH_TEMPERATURE: "BATTERY_HIGH_TEMPERATURE";
|
|
102
|
+
/** Electronic compass error */
|
|
103
|
+
readonly COMPASS_CALIBRATION: "COMPASS_CALIBRATION";
|
|
104
|
+
};
|
|
105
|
+
/** type definition of CameraErrorEnum */
|
|
106
|
+
export type CameraErrorEnum = typeof CameraErrorEnum[keyof typeof CameraErrorEnum];
|
|
107
|
+
/** Mutable values representing Theta status. */
|
|
108
|
+
export type ThetaState = {
|
|
109
|
+
/** Fingerprint (unique identifier) of the current camera state */
|
|
110
|
+
fingerprint: string;
|
|
111
|
+
/** Battery level between 0.0 and 1.0 */
|
|
112
|
+
batteryLevel: number;
|
|
113
|
+
/** Storage URI */
|
|
114
|
+
storageUri: string | null;
|
|
115
|
+
/** Storage ID */
|
|
116
|
+
storageID: string | null;
|
|
117
|
+
/** Continuously shoots state */
|
|
118
|
+
captureStatus: CaptureStatusEnum;
|
|
119
|
+
/** Recorded time of movie (seconds) */
|
|
120
|
+
recordedTime: number;
|
|
121
|
+
/** Recordable time of movie (seconds) */
|
|
122
|
+
recordableTime: number;
|
|
123
|
+
/** Number of still images captured during continuous shooting, Unit: images */
|
|
124
|
+
capturedPictures: number | null;
|
|
125
|
+
/** Elapsed time for interval composite shooting (sec) */
|
|
126
|
+
compositeShootingElapsedTime: number | null;
|
|
127
|
+
/** URL of the last saved file */
|
|
128
|
+
latestFileUrl: string;
|
|
129
|
+
/** Charging state */
|
|
130
|
+
chargingState: ChargingStateEnum;
|
|
131
|
+
/** API version currently set (1: v2.0, 2: v2.1) */
|
|
132
|
+
apiVersion: number;
|
|
133
|
+
/** Plugin running state (true: running, false: stop) */
|
|
134
|
+
isPluginRunning: boolean | null;
|
|
135
|
+
/** Plugin web server state (true: enabled, false: disabled) */
|
|
136
|
+
isPluginWebServer: boolean | null;
|
|
137
|
+
/** Shooting function status*/
|
|
138
|
+
function: ShootingFunctionEnum;
|
|
139
|
+
/** My setting changed state */
|
|
140
|
+
isMySettingChanged: boolean | null;
|
|
141
|
+
/** Identifies the microphone used while recording video */
|
|
142
|
+
currentMicrophone: MicrophoneOptionEnum | null;
|
|
143
|
+
/** true if record to SD card */
|
|
144
|
+
isSdCard: boolean;
|
|
145
|
+
/** Error information of the camera */
|
|
146
|
+
cameraError: Array<CameraErrorEnum> | null;
|
|
147
|
+
/** true: Battery inserted; false: Battery not inserted */
|
|
148
|
+
isBatteryInsert: boolean | null;
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=theta-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theta-state.d.ts","sourceRoot":"","sources":["../../../src/theta-repository/theta-state.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,eAAO,MAAM,iBAAiB;IAC5B,eAAe;;IAEf,yBAAyB;;IAEzB,mBAAmB;;CAEX,CAAC;AAEX,2CAA2C;AAC3C,MAAM,MAAM,iBAAiB,GAC3B,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE3D,+BAA+B;AAC/B,eAAO,MAAM,iBAAiB;IAC5B,oCAAoC;;IAEpC,iBAAiB;;IAEjB,8BAA8B;;IAE9B,wCAAwC;;IAExC,8BAA8B;;IAE9B,oCAAoC;;IAEpC,qCAAqC;;IAErC,yCAAyC;;CAEjC,CAAC;AAEX,2CAA2C;AAC3C,MAAM,MAAM,iBAAiB,GAC3B,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE3D,yCAAyC;AACzC,eAAO,MAAM,oBAAoB;IAC/B,aAAa;;IAEb,gBAAgB;;IAEhB,gBAAgB;;CAER,CAAC;AAEX,8CAA8C;AAC9C,MAAM,MAAM,oBAAoB,GAC9B,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEjE,kC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