theta-client-react-native 1.1.0 → 1.3.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.
Files changed (233) hide show
  1. package/android/build.gradle +1 -1
  2. package/android/src/main/AndroidManifest.xml +1 -1
  3. package/android/src/main/java/com/ricoh360/thetaclientreactnative/Converter.kt +647 -0
  4. package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +487 -85
  5. package/ios/ThetaClientReactNative.h +6 -0
  6. package/ios/ThetaClientReactNative.mm +1675 -181
  7. package/ios/ThetaClientReactNative.xcodeproj/project.pbxproj +2 -2
  8. package/lib/commonjs/capture/index.js +11 -0
  9. package/lib/commonjs/capture/index.js.map +1 -1
  10. package/lib/commonjs/capture/notify.js +12 -0
  11. package/lib/commonjs/capture/notify.js.map +1 -0
  12. package/lib/commonjs/capture/time-shift-capture.js +135 -0
  13. package/lib/commonjs/capture/time-shift-capture.js.map +1 -0
  14. package/lib/commonjs/theta-repository/access-point.js.map +1 -1
  15. package/lib/commonjs/theta-repository/digest-auth.js +2 -0
  16. package/lib/commonjs/theta-repository/digest-auth.js.map +1 -0
  17. package/lib/commonjs/theta-repository/index.js +37 -4
  18. package/lib/commonjs/theta-repository/index.js.map +1 -1
  19. package/lib/commonjs/theta-repository/options/index.js +198 -0
  20. package/lib/commonjs/theta-repository/options/index.js.map +1 -1
  21. package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js +17 -0
  22. package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -0
  23. package/lib/commonjs/theta-repository/options/option-bitrate.js +64 -0
  24. package/lib/commonjs/theta-repository/options/option-bitrate.js.map +1 -0
  25. package/lib/commonjs/theta-repository/options/option-burst-mode.js +23 -0
  26. package/lib/commonjs/theta-repository/options/option-burst-mode.js.map +1 -0
  27. package/lib/commonjs/theta-repository/options/option-burst-option.js +140 -0
  28. package/lib/commonjs/theta-repository/options/option-burst-option.js.map +1 -0
  29. package/lib/commonjs/theta-repository/options/option-camera-control-source.js +29 -0
  30. package/lib/commonjs/theta-repository/options/option-camera-control-source.js.map +1 -0
  31. package/lib/commonjs/theta-repository/options/option-camera-mode.js +26 -0
  32. package/lib/commonjs/theta-repository/options/option-camera-mode.js.map +1 -0
  33. package/lib/commonjs/theta-repository/options/option-capture-mode.js +30 -0
  34. package/lib/commonjs/theta-repository/options/option-capture-mode.js.map +1 -0
  35. package/lib/commonjs/theta-repository/options/option-continuous-number.js +71 -0
  36. package/lib/commonjs/theta-repository/options/option-continuous-number.js.map +1 -0
  37. package/lib/commonjs/theta-repository/options/option-filter.js +32 -0
  38. package/lib/commonjs/theta-repository/options/option-filter.js.map +1 -0
  39. package/lib/commonjs/theta-repository/options/option-network-type.js +26 -0
  40. package/lib/commonjs/theta-repository/options/option-network-type.js.map +1 -0
  41. package/lib/commonjs/theta-repository/options/option-power-saving.js +24 -0
  42. package/lib/commonjs/theta-repository/options/option-power-saving.js.map +1 -0
  43. package/lib/commonjs/theta-repository/options/option-preset.js +26 -0
  44. package/lib/commonjs/theta-repository/options/option-preset.js.map +1 -0
  45. package/lib/commonjs/theta-repository/options/option-preview-format.js +32 -0
  46. package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -0
  47. package/lib/commonjs/theta-repository/options/option-proxy.js +2 -0
  48. package/lib/commonjs/theta-repository/options/option-proxy.js.map +1 -0
  49. package/lib/commonjs/theta-repository/options/option-shooting-method.js +41 -0
  50. package/lib/commonjs/theta-repository/options/option-shooting-method.js.map +1 -0
  51. package/lib/commonjs/theta-repository/options/option-shutter-speed.js +302 -0
  52. package/lib/commonjs/theta-repository/options/option-shutter-speed.js.map +1 -0
  53. package/lib/commonjs/theta-repository/options/option-time-shift.js +43 -0
  54. package/lib/commonjs/theta-repository/options/option-time-shift.js.map +1 -0
  55. package/lib/commonjs/theta-repository/options/option-wlan-frequency.js +22 -0
  56. package/lib/commonjs/theta-repository/options/option-wlan-frequency.js.map +1 -0
  57. package/lib/commonjs/theta-repository/options/options.js +52 -26
  58. package/lib/commonjs/theta-repository/options/options.js.map +1 -1
  59. package/lib/commonjs/theta-repository/theta-config.js +6 -0
  60. package/lib/commonjs/theta-repository/theta-config.js.map +1 -0
  61. package/lib/commonjs/theta-repository/theta-files.js +33 -1
  62. package/lib/commonjs/theta-repository/theta-files.js.map +1 -1
  63. package/lib/commonjs/theta-repository/theta-info.js +29 -0
  64. package/lib/commonjs/theta-repository/theta-info.js.map +1 -1
  65. package/lib/commonjs/theta-repository/theta-repository.js +56 -8
  66. package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
  67. package/lib/commonjs/theta-repository/theta-timeout.js +2 -0
  68. package/lib/commonjs/theta-repository/theta-timeout.js.map +1 -0
  69. package/lib/module/capture/index.js +1 -0
  70. package/lib/module/capture/index.js.map +1 -1
  71. package/lib/module/capture/notify.js +6 -0
  72. package/lib/module/capture/notify.js.map +1 -0
  73. package/lib/module/capture/time-shift-capture.js +127 -0
  74. package/lib/module/capture/time-shift-capture.js.map +1 -0
  75. package/lib/module/theta-repository/access-point.js.map +1 -1
  76. package/lib/module/theta-repository/digest-auth.js +2 -0
  77. package/lib/module/theta-repository/digest-auth.js.map +1 -0
  78. package/lib/module/theta-repository/index.js +4 -1
  79. package/lib/module/theta-repository/index.js.map +1 -1
  80. package/lib/module/theta-repository/options/index.js +18 -0
  81. package/lib/module/theta-repository/options/index.js.map +1 -1
  82. package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js +10 -0
  83. package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -0
  84. package/lib/module/theta-repository/options/option-bitrate.js +57 -0
  85. package/lib/module/theta-repository/options/option-bitrate.js.map +1 -0
  86. package/lib/module/theta-repository/options/option-burst-mode.js +16 -0
  87. package/lib/module/theta-repository/options/option-burst-mode.js.map +1 -0
  88. package/lib/module/theta-repository/options/option-burst-option.js +133 -0
  89. package/lib/module/theta-repository/options/option-burst-option.js.map +1 -0
  90. package/lib/module/theta-repository/options/option-camera-control-source.js +22 -0
  91. package/lib/module/theta-repository/options/option-camera-control-source.js.map +1 -0
  92. package/lib/module/theta-repository/options/option-camera-mode.js +19 -0
  93. package/lib/module/theta-repository/options/option-camera-mode.js.map +1 -0
  94. package/lib/module/theta-repository/options/option-capture-mode.js +23 -0
  95. package/lib/module/theta-repository/options/option-capture-mode.js.map +1 -0
  96. package/lib/module/theta-repository/options/option-continuous-number.js +64 -0
  97. package/lib/module/theta-repository/options/option-continuous-number.js.map +1 -0
  98. package/lib/module/theta-repository/options/option-filter.js +25 -0
  99. package/lib/module/theta-repository/options/option-filter.js.map +1 -0
  100. package/lib/module/theta-repository/options/option-network-type.js +19 -0
  101. package/lib/module/theta-repository/options/option-network-type.js.map +1 -0
  102. package/lib/module/theta-repository/options/option-power-saving.js +17 -0
  103. package/lib/module/theta-repository/options/option-power-saving.js.map +1 -0
  104. package/lib/module/theta-repository/options/option-preset.js +19 -0
  105. package/lib/module/theta-repository/options/option-preset.js.map +1 -0
  106. package/lib/module/theta-repository/options/option-preview-format.js +25 -0
  107. package/lib/module/theta-repository/options/option-preview-format.js.map +1 -0
  108. package/lib/module/theta-repository/options/option-proxy.js +2 -0
  109. package/lib/module/theta-repository/options/option-proxy.js.map +1 -0
  110. package/lib/module/theta-repository/options/option-shooting-method.js +34 -0
  111. package/lib/module/theta-repository/options/option-shooting-method.js.map +1 -0
  112. package/lib/module/theta-repository/options/option-shutter-speed.js +295 -0
  113. package/lib/module/theta-repository/options/option-shutter-speed.js.map +1 -0
  114. package/lib/module/theta-repository/options/option-time-shift.js +36 -0
  115. package/lib/module/theta-repository/options/option-time-shift.js.map +1 -0
  116. package/lib/module/theta-repository/options/option-wlan-frequency.js +15 -0
  117. package/lib/module/theta-repository/options/option-wlan-frequency.js.map +1 -0
  118. package/lib/module/theta-repository/options/options.js +50 -24
  119. package/lib/module/theta-repository/options/options.js.map +1 -1
  120. package/lib/module/theta-repository/theta-config.js +2 -0
  121. package/lib/module/theta-repository/theta-config.js.map +1 -0
  122. package/lib/module/theta-repository/theta-files.js +32 -0
  123. package/lib/module/theta-repository/theta-files.js.map +1 -1
  124. package/lib/module/theta-repository/theta-info.js +22 -0
  125. package/lib/module/theta-repository/theta-info.js.map +1 -1
  126. package/lib/module/theta-repository/theta-repository.js +54 -9
  127. package/lib/module/theta-repository/theta-repository.js.map +1 -1
  128. package/lib/module/theta-repository/theta-timeout.js +2 -0
  129. package/lib/module/theta-repository/theta-timeout.js.map +1 -0
  130. package/lib/typescript/capture/capture.d.ts +1 -1
  131. package/lib/typescript/capture/capture.d.ts.map +1 -1
  132. package/lib/typescript/capture/index.d.ts +1 -0
  133. package/lib/typescript/capture/index.d.ts.map +1 -1
  134. package/lib/typescript/capture/notify.d.ts +13 -0
  135. package/lib/typescript/capture/notify.d.ts.map +1 -0
  136. package/lib/typescript/capture/time-shift-capture.d.ts +64 -0
  137. package/lib/typescript/capture/time-shift-capture.d.ts.map +1 -0
  138. package/lib/typescript/theta-repository/access-point.d.ts +4 -1
  139. package/lib/typescript/theta-repository/access-point.d.ts.map +1 -1
  140. package/lib/typescript/theta-repository/digest-auth.d.ts +17 -0
  141. package/lib/typescript/theta-repository/digest-auth.d.ts.map +1 -0
  142. package/lib/typescript/theta-repository/index.d.ts +4 -1
  143. package/lib/typescript/theta-repository/index.d.ts.map +1 -1
  144. package/lib/typescript/theta-repository/options/index.d.ts +18 -0
  145. package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
  146. package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts +10 -0
  147. package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts.map +1 -0
  148. package/lib/typescript/theta-repository/options/option-bitrate.d.ts +57 -0
  149. package/lib/typescript/theta-repository/options/option-bitrate.d.ts.map +1 -0
  150. package/lib/typescript/theta-repository/options/option-burst-mode.d.ts +16 -0
  151. package/lib/typescript/theta-repository/options/option-burst-mode.d.ts.map +1 -0
  152. package/lib/typescript/theta-repository/options/option-burst-option.d.ts +153 -0
  153. package/lib/typescript/theta-repository/options/option-burst-option.d.ts.map +1 -0
  154. package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts +22 -0
  155. package/lib/typescript/theta-repository/options/option-camera-control-source.d.ts.map +1 -0
  156. package/lib/typescript/theta-repository/options/option-camera-mode.d.ts +19 -0
  157. package/lib/typescript/theta-repository/options/option-camera-mode.d.ts.map +1 -0
  158. package/lib/typescript/theta-repository/options/option-capture-mode.d.ts +23 -0
  159. package/lib/typescript/theta-repository/options/option-capture-mode.d.ts.map +1 -0
  160. package/lib/typescript/theta-repository/options/option-continuous-number.d.ts +64 -0
  161. package/lib/typescript/theta-repository/options/option-continuous-number.d.ts.map +1 -0
  162. package/lib/typescript/theta-repository/options/option-filter.d.ts +25 -0
  163. package/lib/typescript/theta-repository/options/option-filter.d.ts.map +1 -0
  164. package/lib/typescript/theta-repository/options/option-network-type.d.ts +19 -0
  165. package/lib/typescript/theta-repository/options/option-network-type.d.ts.map +1 -0
  166. package/lib/typescript/theta-repository/options/option-power-saving.d.ts +16 -0
  167. package/lib/typescript/theta-repository/options/option-power-saving.d.ts.map +1 -0
  168. package/lib/typescript/theta-repository/options/option-preset.d.ts +18 -0
  169. package/lib/typescript/theta-repository/options/option-preset.d.ts.map +1 -0
  170. package/lib/typescript/theta-repository/options/option-preview-format.d.ts +25 -0
  171. package/lib/typescript/theta-repository/options/option-preview-format.d.ts.map +1 -0
  172. package/lib/typescript/theta-repository/options/option-proxy.d.ts +23 -0
  173. package/lib/typescript/theta-repository/options/option-proxy.d.ts.map +1 -0
  174. package/lib/typescript/theta-repository/options/option-shooting-method.d.ts +33 -0
  175. package/lib/typescript/theta-repository/options/option-shooting-method.d.ts.map +1 -0
  176. package/lib/typescript/theta-repository/options/option-shutter-speed.d.ts +295 -0
  177. package/lib/typescript/theta-repository/options/option-shutter-speed.d.ts.map +1 -0
  178. package/lib/typescript/theta-repository/options/option-time-shift.d.ts +54 -0
  179. package/lib/typescript/theta-repository/options/option-time-shift.d.ts.map +1 -0
  180. package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts +1 -1
  181. package/lib/typescript/theta-repository/options/option-white-balance-auto-strength.d.ts.map +1 -1
  182. package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts +15 -0
  183. package/lib/typescript/theta-repository/options/option-wlan-frequency.d.ts.map +1 -0
  184. package/lib/typescript/theta-repository/options/options.d.ts +187 -41
  185. package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
  186. package/lib/typescript/theta-repository/theta-config.d.ts +20 -0
  187. package/lib/typescript/theta-repository/theta-config.d.ts.map +1 -0
  188. package/lib/typescript/theta-repository/theta-files.d.ts +66 -3
  189. package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -1
  190. package/lib/typescript/theta-repository/theta-info.d.ts +21 -0
  191. package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -1
  192. package/lib/typescript/theta-repository/theta-repository.d.ts +36 -8
  193. package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
  194. package/lib/typescript/theta-repository/theta-state.d.ts +5 -5
  195. package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -1
  196. package/lib/typescript/theta-repository/theta-timeout.d.ts +22 -0
  197. package/lib/typescript/theta-repository/theta-timeout.d.ts.map +1 -0
  198. package/package.json +1 -1
  199. package/src/capture/capture.ts +1 -1
  200. package/src/capture/index.ts +1 -0
  201. package/src/capture/notify.ts +27 -0
  202. package/src/capture/time-shift-capture.ts +145 -0
  203. package/src/theta-repository/access-point.ts +5 -1
  204. package/src/theta-repository/digest-auth.ts +16 -0
  205. package/src/theta-repository/index.ts +4 -1
  206. package/src/theta-repository/options/index.ts +18 -0
  207. package/src/theta-repository/options/option-ai-auto-thumbnail.ts +11 -0
  208. package/src/theta-repository/options/option-bitrate.ts +59 -0
  209. package/src/theta-repository/options/option-burst-mode.ts +16 -0
  210. package/src/theta-repository/options/option-burst-option.ts +175 -0
  211. package/src/theta-repository/options/option-camera-control-source.ts +24 -0
  212. package/src/theta-repository/options/option-camera-mode.ts +20 -0
  213. package/src/theta-repository/options/option-capture-mode.ts +24 -0
  214. package/src/theta-repository/options/option-continuous-number.ts +65 -0
  215. package/src/theta-repository/options/option-filter.ts +25 -0
  216. package/src/theta-repository/options/option-network-type.ts +20 -0
  217. package/src/theta-repository/options/option-power-saving.ts +18 -0
  218. package/src/theta-repository/options/option-preset.ts +19 -0
  219. package/src/theta-repository/options/option-preview-format.ts +26 -0
  220. package/src/theta-repository/options/option-proxy.ts +22 -0
  221. package/src/theta-repository/options/option-shooting-method.ts +35 -0
  222. package/src/theta-repository/options/option-shutter-speed.ts +360 -0
  223. package/src/theta-repository/options/option-time-shift.ts +59 -0
  224. package/src/theta-repository/options/option-white-balance-auto-strength.ts +1 -1
  225. package/src/theta-repository/options/option-wlan-frequency.ts +16 -0
  226. package/src/theta-repository/options/options.ts +188 -46
  227. package/src/theta-repository/theta-config.ts +20 -0
  228. package/src/theta-repository/theta-files.ts +73 -3
  229. package/src/theta-repository/theta-info.ts +23 -0
  230. package/src/theta-repository/theta-repository.ts +87 -18
  231. package/src/theta-repository/theta-state.ts +5 -5
  232. package/src/theta-repository/theta-timeout.ts +21 -0
  233. package/theta-client-react-native.podspec +1 -1
@@ -1,19 +1,30 @@
1
1
  import { AccessPoint, AuthModeEnum } from './access-point';
2
- import type { FileTypeEnum, ThetaFiles } from './theta-files';
2
+ import type { FileTypeEnum, StorageEnum, ThetaFiles } from './theta-files';
3
3
  import type { ThetaState } from './theta-state';
4
- import type { ThetaInfo } from './theta-info';
4
+ import type { ThetaInfo, ThetaModel } from './theta-info';
5
5
  import type { MetaInfo } from './theta-meta';
6
6
  import type { PluginInfo } from './theta-plugin';
7
- import type { OptionNameEnum, Options, CaptureModeEnum } from './options';
8
- import { PhotoCaptureBuilder, VideoCaptureBuilder } from '../capture';
7
+ import type { OptionNameEnum, Options, CaptureModeEnum, Proxy } from './options';
8
+ import { PhotoCaptureBuilder, VideoCaptureBuilder, TimeShiftCaptureBuilder } from '../capture';
9
+ import type { ThetaConfig } from './theta-config';
10
+ import type { ThetaTimeout } from './theta-timeout';
9
11
  /**
10
12
  * initialize theta client sdk
11
13
  *
12
14
  * @function initialize
13
15
  * @param {string} endPoint optional endpoint of camera
16
+ * @param {ThetaConfig} config Configuration of initialize. If null, get from THETA.
17
+ * @param {ThetaTimeout} timeout Timeout of HTTP call.
14
18
  * @return promise of boolean result
15
19
  **/
16
- export declare function initialize(endPoint?: string): Promise<boolean>;
20
+ export declare function initialize(endPoint?: string, config?: ThetaConfig, timeout?: ThetaTimeout): Promise<boolean>;
21
+ /**
22
+ * Returns whether it is initialized or not.
23
+ *
24
+ * @function isInitialized
25
+ * @return promise of boolean result
26
+ **/
27
+ export declare function isInitialized(): Promise<boolean>;
17
28
  /**
18
29
  * Reset all device settings and capture settings.
19
30
  * After reset, the camera will be restarted.
@@ -29,6 +40,13 @@ export declare function reset(): Promise<boolean>;
29
40
  * @return created PhotoCaptureBuilder
30
41
  */
31
42
  export declare function getPhotoCaptureBuilder(): PhotoCaptureBuilder;
43
+ /**
44
+ * Get TimeShiftCaptureBuilder for time-shift.
45
+ *
46
+ * @function getTimeShiftCaptureBuilder
47
+ * @return created TimeShiftCaptureBuilder
48
+ */
49
+ export declare function getTimeShiftCaptureBuilder(): TimeShiftCaptureBuilder;
32
50
  /**
33
51
  * Get PhotoCapture.Builder for capture video.
34
52
  *
@@ -101,6 +119,13 @@ export declare function finishWlan(): Promise<boolean>;
101
119
  * @return promise of String result
102
120
  */
103
121
  export declare function setBluetoothDevice(uuid: string): Promise<String>;
122
+ /**
123
+ * Returns the connected THETA model.
124
+ *
125
+ * @function getThetaModel
126
+ * @return promise of THETA model
127
+ **/
128
+ export declare function getThetaModel(): Promise<ThetaModel | undefined>;
104
129
  /**
105
130
  * Get basic information about Theta.
106
131
  *
@@ -127,10 +152,11 @@ export declare function getThetaState(): Promise<ThetaState>;
127
152
  * @param {number} entryCount Desired number of entries to return. If
128
153
  * entryCount is more than the number of remaining files, just
129
154
  * return entries of actual remaining files.
155
+ * @param {StorageEnum} storage Desired storage. If omitted, return current storage. (RICOH THETA X Version 2.00.0 or later)
130
156
  * @return promise with a list of file information and number of totalEntries.
131
157
  * see [camera.listFiles](https://github.com/ricohapi/theta-api-specs/blob/main/theta-web-api-v2.1/commands/camera.list_files.md).
132
158
  */
133
- export declare function listFiles(fileTypeEnum: FileTypeEnum, startPosition: number | undefined, entryCount: number): Promise<ThetaFiles>;
159
+ export declare function listFiles(fileTypeEnum: FileTypeEnum, startPosition: number | undefined, entryCount: number, storage?: StorageEnum): Promise<ThetaFiles>;
134
160
  /**
135
161
  * Delete files in Theta.
136
162
  *
@@ -201,9 +227,10 @@ export declare function listAccessPoints(): Promise<AccessPoint[]>;
201
227
  * @param {AuthModeEnum} authMode Authentication mode.
202
228
  * @param {string} password Password. If authMode is "NONE", pass empty String.
203
229
  * @param {number} connectionPriority Connection priority 1 to 5.
230
+ * @param {Proxy} proxy Proxy information to be used for the access point.
204
231
  * @return promise of boolean result
205
232
  */
206
- export declare function setAccessPointDynamically(ssid: string, ssidStealth?: boolean, authMode?: AuthModeEnum, password?: string, connectionPriority?: number): Promise<boolean>;
233
+ export declare function setAccessPointDynamically(ssid: string, ssidStealth?: boolean, authMode?: AuthModeEnum, password?: string, connectionPriority?: number, proxy?: Proxy): Promise<boolean>;
207
234
  /**
208
235
  * Set access point. IP address is set statically.
209
236
  *
@@ -216,9 +243,10 @@ export declare function setAccessPointDynamically(ssid: string, ssidStealth?: bo
216
243
  * @param {string} ipAddress IP address assigns to Theta.
217
244
  * @param {string} subnetMask Subnet mask.
218
245
  * @param {string} defaultGateway Default gateway.
246
+ * @param {Proxy} proxy Proxy information to be used for the access point.
219
247
  * @return promise of boolean result
220
248
  */
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>;
249
+ export declare function setAccessPointStatically(ssid: string, ssidStealth: boolean | undefined, authMode: AuthModeEnum | undefined, password: string | undefined, connectionPriority: number | undefined, ipAddress: string, subnetMask: string, defaultGateway: string, proxy?: Proxy): Promise<boolean>;
222
250
  /**
223
251
  * Deletes access point information used in client mode.
224
252
  *
@@ -1 +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,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGtE;;;;;;IAMI;AACJ,wBAAgB,UAAU,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAK9D;AAED;;;;;;GAMG;AACH,wBAAgB,KAAK,IAAI,OAAO,CAAC,OAAO,CAAC,CAExC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,mBAAmB,CAG5D;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,IAAI,mBAAmB,CAG5D;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC,CAEjD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,SAE9B;AAED;;;;;GAKG;AACH,wBAAgB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,WAAW,EAAE,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,CAE9E;AAED;;;;GAIG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,CAEnD;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE/D;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEjE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAE7C;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAErE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAEnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAEnE"}
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,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,OAAO,KAAK,EACV,cAAc,EACd,OAAO,EACP,eAAe,EACf,KAAK,EACN,MAAM,WAAW,CAAC;AACnB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;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAEjE;AAED;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAAC,OAAO,CAAC,CAE7C;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAErE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAEnD;AAED;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAEnE"}
@@ -8,7 +8,7 @@ export declare const ChargingStateEnum: {
8
8
  readonly NOT_CHARGING: "NOT_CHARGING";
9
9
  };
10
10
  /** type definition of ChargingStateEnum */
11
- export type ChargingStateEnum = typeof ChargingStateEnum[keyof typeof ChargingStateEnum];
11
+ export type ChargingStateEnum = (typeof ChargingStateEnum)[keyof typeof ChargingStateEnum];
12
12
  /** Capture Status constants */
13
13
  export declare const CaptureStatusEnum: {
14
14
  /** Performing continuously shoot */
@@ -29,7 +29,7 @@ export declare const CaptureStatusEnum: {
29
29
  readonly RETROSPECTIVE_IMAGE_RECORDING: "RETROSPECTIVE_IMAGE_RECORDING";
30
30
  };
31
31
  /** type definition of CaptureStatusEnum */
32
- export type CaptureStatusEnum = typeof CaptureStatusEnum[keyof typeof CaptureStatusEnum];
32
+ export type CaptureStatusEnum = (typeof CaptureStatusEnum)[keyof typeof CaptureStatusEnum];
33
33
  /** Shooting function status constants */
34
34
  export declare const ShootingFunctionEnum: {
35
35
  /** normal */
@@ -40,7 +40,7 @@ export declare const ShootingFunctionEnum: {
40
40
  readonly MY_SETTING: "MY_SETTING";
41
41
  };
42
42
  /** type definition of ShootingFunctionEnum */
43
- export type ShootingFunctionEnum = typeof ShootingFunctionEnum[keyof typeof ShootingFunctionEnum];
43
+ export type ShootingFunctionEnum = (typeof ShootingFunctionEnum)[keyof typeof ShootingFunctionEnum];
44
44
  /** Microphone option constants */
45
45
  export declare const MicrophoneOptionEnum: {
46
46
  /** auto */
@@ -51,7 +51,7 @@ export declare const MicrophoneOptionEnum: {
51
51
  readonly EXTERNAL: "EXTERNAL";
52
52
  };
53
53
  /** type definition of MicrophoneOptionEnum */
54
- export type MicrophoneOptionEnum = typeof MicrophoneOptionEnum[keyof typeof MicrophoneOptionEnum];
54
+ export type MicrophoneOptionEnum = (typeof MicrophoneOptionEnum)[keyof typeof MicrophoneOptionEnum];
55
55
  /** Camera error constants */
56
56
  export declare const CameraErrorEnum: {
57
57
  /** Insufficient memory */
@@ -103,7 +103,7 @@ export declare const CameraErrorEnum: {
103
103
  readonly COMPASS_CALIBRATION: "COMPASS_CALIBRATION";
104
104
  };
105
105
  /** type definition of CameraErrorEnum */
106
- export type CameraErrorEnum = typeof CameraErrorEnum[keyof typeof CameraErrorEnum];
106
+ export type CameraErrorEnum = (typeof CameraErrorEnum)[keyof typeof CameraErrorEnum];
107
107
  /** Mutable values representing Theta status. */
108
108
  export type ThetaState = {
109
109
  /** Fingerprint (unique identifier) of the current camera state */
@@ -1 +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,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a client should establish a connection with a server.
8
+ */
9
+ connectTimeout: number;
10
+ /**
11
+ * Specifies a time period (in milliseconds) required to process an HTTP call:
12
+ * from sending a request to receiving first response bytes.
13
+ * To disable this timeout, set its value to 0.
14
+ */
15
+ requestTimeout: number;
16
+ /**
17
+ * Specifies a maximum time (in milliseconds) of inactivity between two data packets
18
+ * when exchanging data with a server.
19
+ */
20
+ socketTimeout: number;
21
+ };
22
+ //# sourceMappingURL=theta-timeout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theta-timeout.d.ts","sourceRoot":"","sources":["../../../src/theta-repository/theta-timeout.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "theta-client-react-native",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "This library provides a way to control RICOH THETA using.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -9,7 +9,7 @@ import type {
9
9
  IsoEnum,
10
10
  Options,
11
11
  WhiteBalanceEnum,
12
- } from 'src/theta-repository/options';
12
+ } from '../theta-repository/options';
13
13
 
14
14
  /**
15
15
  * Capture Builder class
@@ -1,3 +1,4 @@
1
1
  export * from './capture';
2
2
  export * from './photo-capture';
3
3
  export * from './video-capture';
4
+ export * from './time-shift-capture';
@@ -0,0 +1,27 @@
1
+ import {
2
+ EmitterSubscription,
3
+ NativeEventEmitter,
4
+ NativeModules,
5
+ } from 'react-native';
6
+
7
+ export interface BaseNotify {
8
+ name: string;
9
+
10
+ params?: any;
11
+ }
12
+
13
+ export interface CaptureProgressNotify {
14
+ name: string;
15
+ params?: {
16
+ completion: number;
17
+ };
18
+ }
19
+
20
+ export function addNotifyListener(
21
+ callback: (event: BaseNotify) => void
22
+ ): EmitterSubscription {
23
+ const eventEmitter = new NativeEventEmitter(
24
+ NativeModules.ThetaClientReactNative
25
+ );
26
+ return eventEmitter.addListener('ThetaNotify', callback);
27
+ }
@@ -0,0 +1,145 @@
1
+ import type { EmitterSubscription } from 'react-native';
2
+ import { CaptureBuilder } from './capture';
3
+ import { NativeModules } from 'react-native';
4
+ import { BaseNotify, CaptureProgressNotify, addNotifyListener } from './notify';
5
+ import type { TimeShiftIntervalEnum } from '../theta-repository/options';
6
+ const ThetaClientReactNative = NativeModules.ThetaClientReactNative;
7
+
8
+ /**
9
+ * TimeShiftCapture class
10
+ */
11
+ export class TimeShiftCapture {
12
+ eventListener?: EmitterSubscription = undefined;
13
+ notifyList = new Map<string, ((notify: BaseNotify) => void) | undefined>();
14
+
15
+ /**
16
+ * start time-shift
17
+ * @param onProgress the block for time-shift onProgress
18
+ * @return promise of captured file url
19
+ */
20
+ async startCapture(
21
+ onProgress?: (completion?: number) => void
22
+ ): Promise<string> {
23
+ await this.initNotify();
24
+ this.notifyList.set(
25
+ 'TIME-SHIFT-PROGRESS',
26
+ onProgress
27
+ ? (event: CaptureProgressNotify) => {
28
+ onProgress(event.params?.completion);
29
+ }
30
+ : undefined
31
+ );
32
+
33
+ return new Promise<string>(async (resolve, reject) => {
34
+ await ThetaClientReactNative.startTimeShiftCapture()
35
+ .then((result: string) => {
36
+ resolve(result);
37
+ })
38
+ .catch((error: any) => {
39
+ reject(error);
40
+ })
41
+ .finally(() => {
42
+ this.releaseNotify();
43
+ });
44
+ });
45
+ }
46
+
47
+ /**
48
+ * cancel time-shift
49
+ */
50
+ async cancelCapture(): Promise<any> {
51
+ return await ThetaClientReactNative.cancelTimeShiftCapture();
52
+ }
53
+
54
+ async initNotify() {
55
+ this.eventListener = addNotifyListener((notify: BaseNotify) => {
56
+ this.notifyList.get(notify.name)?.(notify as BaseNotify);
57
+ });
58
+ }
59
+
60
+ releaseNotify() {
61
+ this.eventListener?.remove();
62
+ }
63
+ }
64
+
65
+ /**
66
+ * TimeShiftCaptureBuilder class
67
+ */
68
+ export class TimeShiftCaptureBuilder extends CaptureBuilder<TimeShiftCaptureBuilder> {
69
+ interval?: number;
70
+
71
+ /** construct TimeShiftCaptureBuilder instance */
72
+ constructor() {
73
+ super();
74
+
75
+ this.interval = undefined;
76
+ }
77
+
78
+ /**
79
+ * set interval of checking time-shift status command
80
+ * @param timeMillis interval
81
+ * @returns TimeShiftCaptureBuilder
82
+ */
83
+ setCheckStatusCommandInterval(timeMillis: number): TimeShiftCaptureBuilder {
84
+ this.interval = timeMillis;
85
+ return this;
86
+ }
87
+
88
+ /**
89
+ * Set is front first.
90
+ * @param isFrontFirst is front first
91
+ * @returns TimeShiftCaptureBuilder
92
+ */
93
+ setIsFrontFirst(isFrontFirst: boolean): TimeShiftCaptureBuilder {
94
+ this.checkAndInitTimeShiftSetting();
95
+ if (this.options.timeShift != null) {
96
+ this.options.timeShift.isFrontFirst = isFrontFirst;
97
+ }
98
+ return this;
99
+ }
100
+
101
+ /**
102
+ * set time (sec) before 1st lens shooting
103
+ * @param interval 1st interval
104
+ * @returns TimeShiftCaptureBuilder
105
+ */
106
+ setFirstInterval(interval: TimeShiftIntervalEnum): TimeShiftCaptureBuilder {
107
+ this.checkAndInitTimeShiftSetting();
108
+ if (this.options.timeShift != null) {
109
+ this.options.timeShift.firstInterval = interval;
110
+ }
111
+ return this;
112
+ }
113
+
114
+ /**
115
+ * set time (sec) from 1st lens shooting until start of 2nd lens shooting.
116
+ * @param interval 2nd interval
117
+ * @returns TimeShiftCaptureBuilder
118
+ */
119
+ setSecondInterval(interval: TimeShiftIntervalEnum): TimeShiftCaptureBuilder {
120
+ this.checkAndInitTimeShiftSetting();
121
+ if (this.options.timeShift != null) {
122
+ this.options.timeShift.secondInterval = interval;
123
+ }
124
+ return this;
125
+ }
126
+
127
+ private checkAndInitTimeShiftSetting() {
128
+ if (this.options.timeShift == null) {
129
+ this.options.timeShift = {};
130
+ }
131
+ }
132
+
133
+ /**
134
+ * Builds an instance of a TimeShiftCapture that has all the combined
135
+ * parameters of the Options that have been added to the Builder.
136
+ *
137
+ * @return promise of TimeShiftCapture instance
138
+ */
139
+ build(): Promise<TimeShiftCapture> {
140
+ return ThetaClientReactNative.buildTimeShiftCapture(
141
+ this.options,
142
+ this.interval ?? -1
143
+ ).then(() => new TimeShiftCapture());
144
+ }
145
+ }
@@ -1,3 +1,5 @@
1
+ import type { Proxy } from './options';
2
+
1
3
  /**
2
4
  * Enum for authentication mode.
3
5
  */
@@ -11,7 +13,7 @@ export const AuthModeEnum = {
11
13
  } as const;
12
14
 
13
15
  /** type definition of AuthModeEnum */
14
- export type AuthModeEnum = typeof AuthModeEnum[keyof typeof AuthModeEnum];
16
+ export type AuthModeEnum = (typeof AuthModeEnum)[keyof typeof AuthModeEnum];
15
17
 
16
18
  /** Access point information. */
17
19
  export type AccessPoint = {
@@ -31,4 +33,6 @@ export type AccessPoint = {
31
33
  subnetMask?: string;
32
34
  /** Default Gateway. */
33
35
  defaultGateway?: string;
36
+ /** Proxy information to be used when wired LAN is enabled. */
37
+ proxy?: Proxy;
34
38
  };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Authentication information used for client mode
3
+ */
4
+ export type DigestAuth = {
5
+ /**
6
+ * User name
7
+ */
8
+ username: string;
9
+ /**
10
+ * Password
11
+ *
12
+ * If omitted, the default password is used.
13
+ * Default password is "THETA" + "XX" after the beginning of the serial number.
14
+ */
15
+ password?: string;
16
+ };
@@ -1,6 +1,9 @@
1
1
  export * from './access-point';
2
+ export * from './digest-auth';
3
+ export * from './theta-config';
2
4
  export * from './theta-files';
3
5
  export * from './theta-info';
4
6
  export * from './theta-meta';
5
- export * from './theta-state';
6
7
  export * from './theta-repository';
8
+ export * from './theta-state';
9
+ export * from './theta-timeout';
@@ -1,2 +1,20 @@
1
1
  export * from './options';
2
+ export * from './option-ai-auto-thumbnail';
3
+ export * from './option-bitrate';
4
+ export * from './option-burst-mode';
5
+ export * from './option-burst-option';
6
+ export * from './option-camera-control-source';
7
+ export * from './option-camera-mode';
8
+ export * from './option-capture-mode';
9
+ export * from './option-continuous-number';
10
+ export * from './option-filter';
11
+ export * from './option-network-type';
12
+ export * from './option-power-saving';
13
+ export * from './option-preset';
14
+ export * from './option-preview-format';
15
+ export * from './option-proxy';
16
+ export * from './option-shooting-method';
17
+ export * from './option-shutter-speed';
18
+ export * from './option-time-shift';
2
19
  export * from './option-white-balance-auto-strength';
20
+ export * from './option-wlan-frequency';
@@ -0,0 +1,11 @@
1
+ /** AI auto thumbnail setting. */
2
+ export const AiAutoThumbnailEnum = {
3
+ /** ON */
4
+ ON: 'ON',
5
+ /** OFF */
6
+ OFF: 'OFF',
7
+ } as const;
8
+
9
+ /** type definition of AiAutoThumbnailEnum */
10
+ export type AiAutoThumbnailEnum =
11
+ (typeof AiAutoThumbnailEnum)[keyof typeof AiAutoThumbnailEnum];
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Movie bit rate.
3
+ *
4
+ * ### Support value
5
+ * The supported value depends on the shooting mode [CaptureMode].
6
+ *
7
+ * | Shooting mode | Supported value |
8
+ * | ------------- | --------------- |
9
+ * | video | "Fine", "Normal", "Economy"(RICOH THETA X or later) <br/>"2000000"-"120000000" (RICOH THETA X v1.20 or later) |
10
+ * | image | "Auto", "1048576"-"20971520" (RICOH THETA X v1.20 or later) |
11
+ * | _liveStreaming | "Auto" |
12
+ *
13
+ * #### RICOH THETA X
14
+ * | Video mode | Fine<br/>[Mbps] | Normal<br/>[Mbps] | Economy<br/>[Mbps] | Remark |
15
+ * |------------| --------------- | ------------------| ------------------ | ------ |
16
+ * | 2K 30fps | 32 | 16 | 8 | |
17
+ * | 2K 60fps | 64 | 32 | 16 | |
18
+ * | 4K 10fps | 48 | 24 | 12 | |
19
+ * | 4K 15fps | 64 | 32 | 16 | |
20
+ * | 4K 30fps | 100 | 54 | 32 | |
21
+ * | 4K 60fps | 120 | 64 | 32 | |
22
+ * | 5.7K 2fps | 16 | 12 | 8 | firmware v2.00.0 or later |
23
+ * | | 64 | 32 | 16 | firmware v1.40.0 or later (I-frame only)|
24
+ * | | 16 | 8 | 4 | firmware v1.30.0 or earlier |
25
+ * | 5.7K 5fps | 40 | 30 | 20 | firmware v2.00.0 or later |
26
+ * | | 120 | 80 | 40 | firmware v1.40.0 or later (I-frame only)|
27
+ * | | 32 | 16 | 8 | firmware v1.30.0 or earlier |
28
+ * | 5.7K 10fps | 80 | 60 | 40 | firmware v2.00.0 or later |
29
+ * | | 64 | 40 | 20 | firmware v1.40.0 or later |
30
+ * | | 48 | 24 | 12 | firmware v1.30.0 or earlier |
31
+ * | 5.7K 15fps | 64 | 32 | 16 | |
32
+ * | 5.7K 30fps | 120 | 64 | 32 | |
33
+ * | 8K 2fps | 64 | 32 | 16 | firmware v1.40.0 or later (I-frame only)|
34
+ * | | 32 | 16 | 8 | firmware v1.30.0 or earlier (I-frame only)|
35
+ * | 8K 5fps | 120 | 96 | 40 | firmware v1.40.0 or later (I-frame only)|
36
+ * | | 64 | 32 | 16 | firmware v1.30.0 or earlier (I-frame only)|
37
+ * | 8K 10fps | 120 | 96 | 40 | firmware v1.40.0 or later (I-frame only)|
38
+ * | | 120 | 64 | 32 | firmware v1.30.0 or earlier (I-frame only)|
39
+ *
40
+ * For
41
+ * - RICOH THETA X
42
+ * - RICOH THETA Z1
43
+ * - RICOH THETA V firmware v2.50.1 or later
44
+ */
45
+ export const BitrateEnum = {
46
+ /** Auto. */
47
+ AUTO: 'AUTO',
48
+ /** Fine */
49
+ FINE: 'FINE',
50
+ /** Normal */
51
+ NORMAL: 'NORMAL',
52
+ /** Economy */
53
+ ECONOMY: 'ECONOMY',
54
+ } as const;
55
+
56
+ /** type definition of BitrateEnum */
57
+ export type BitrateEnum =
58
+ | (typeof BitrateEnum)[keyof typeof BitrateEnum]
59
+ | number;
@@ -0,0 +1,16 @@
1
+ /**
2
+ * BurstMode setting.
3
+ * When this is set to ON, burst shooting is enabled,
4
+ * and a screen dedicated to burst shooting is displayed in Live View.
5
+ *
6
+ * only For RICOH THETA Z1 firmware v2.10.1 or later
7
+ */
8
+ export const BurstModeEnum = {
9
+ /** BurstMode ON */
10
+ ON: 'ON',
11
+ /** BurstMode OFF */
12
+ OFF: 'OFF',
13
+ } as const;
14
+
15
+ /** Type definition of BurstModeEnum */
16
+ export type BurstModeEnum = (typeof BurstModeEnum)[keyof typeof BurstModeEnum];