theta-client-react-native 1.2.0 → 1.3.1

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 (129) 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 +282 -7
  4. package/android/src/main/java/com/ricoh360/thetaclientreactnative/ThetaClientSdkModule.kt +113 -85
  5. package/ios/ThetaClientReactNative.mm +552 -48
  6. package/ios/ThetaClientReactNative.xcodeproj/project.pbxproj +2 -2
  7. package/lib/commonjs/capture/time-shift-capture.js +44 -0
  8. package/lib/commonjs/capture/time-shift-capture.js.map +1 -1
  9. package/lib/commonjs/theta-repository/options/index.js +96 -8
  10. package/lib/commonjs/theta-repository/options/index.js.map +1 -1
  11. package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js +17 -0
  12. package/lib/commonjs/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -0
  13. package/lib/commonjs/theta-repository/options/option-bitrate.js +64 -0
  14. package/lib/commonjs/theta-repository/options/option-bitrate.js.map +1 -0
  15. package/lib/commonjs/theta-repository/options/option-burst-mode.js +23 -0
  16. package/lib/commonjs/theta-repository/options/option-burst-mode.js.map +1 -0
  17. package/lib/commonjs/theta-repository/options/option-burst-option.js +140 -0
  18. package/lib/commonjs/theta-repository/options/option-burst-option.js.map +1 -0
  19. package/lib/commonjs/theta-repository/options/option-capture-mode.js +30 -0
  20. package/lib/commonjs/theta-repository/options/option-capture-mode.js.map +1 -0
  21. package/lib/commonjs/theta-repository/options/option-continuous-number.js +71 -0
  22. package/lib/commonjs/theta-repository/options/option-continuous-number.js.map +1 -0
  23. package/lib/commonjs/theta-repository/options/option-filter.js +32 -0
  24. package/lib/commonjs/theta-repository/options/option-filter.js.map +1 -0
  25. package/lib/commonjs/theta-repository/options/option-preset.js +26 -0
  26. package/lib/commonjs/theta-repository/options/option-preset.js.map +1 -0
  27. package/lib/commonjs/theta-repository/options/option-preview-format.js.map +1 -1
  28. package/lib/commonjs/theta-repository/options/option-shooting-method.js +1 -1
  29. package/lib/commonjs/theta-repository/options/option-shooting-method.js.map +1 -1
  30. package/lib/commonjs/theta-repository/options/option-time-shift.js.map +1 -1
  31. package/lib/commonjs/theta-repository/options/options.js +22 -24
  32. package/lib/commonjs/theta-repository/options/options.js.map +1 -1
  33. package/lib/commonjs/theta-repository/theta-files.js +21 -1
  34. package/lib/commonjs/theta-repository/theta-files.js.map +1 -1
  35. package/lib/commonjs/theta-repository/theta-info.js +29 -0
  36. package/lib/commonjs/theta-repository/theta-info.js.map +1 -1
  37. package/lib/commonjs/theta-repository/theta-repository.js +17 -0
  38. package/lib/commonjs/theta-repository/theta-repository.js.map +1 -1
  39. package/lib/module/capture/time-shift-capture.js +44 -0
  40. package/lib/module/capture/time-shift-capture.js.map +1 -1
  41. package/lib/module/theta-repository/options/index.js +9 -1
  42. package/lib/module/theta-repository/options/index.js.map +1 -1
  43. package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js +10 -0
  44. package/lib/module/theta-repository/options/option-ai-auto-thumbnail.js.map +1 -0
  45. package/lib/module/theta-repository/options/option-bitrate.js +57 -0
  46. package/lib/module/theta-repository/options/option-bitrate.js.map +1 -0
  47. package/lib/module/theta-repository/options/option-burst-mode.js +16 -0
  48. package/lib/module/theta-repository/options/option-burst-mode.js.map +1 -0
  49. package/lib/module/theta-repository/options/option-burst-option.js +133 -0
  50. package/lib/module/theta-repository/options/option-burst-option.js.map +1 -0
  51. package/lib/module/theta-repository/options/option-capture-mode.js +23 -0
  52. package/lib/module/theta-repository/options/option-capture-mode.js.map +1 -0
  53. package/lib/module/theta-repository/options/option-continuous-number.js +64 -0
  54. package/lib/module/theta-repository/options/option-continuous-number.js.map +1 -0
  55. package/lib/module/theta-repository/options/option-filter.js +25 -0
  56. package/lib/module/theta-repository/options/option-filter.js.map +1 -0
  57. package/lib/module/theta-repository/options/option-preset.js +19 -0
  58. package/lib/module/theta-repository/options/option-preset.js.map +1 -0
  59. package/lib/module/theta-repository/options/option-preview-format.js.map +1 -1
  60. package/lib/module/theta-repository/options/option-shooting-method.js +1 -1
  61. package/lib/module/theta-repository/options/option-shooting-method.js.map +1 -1
  62. package/lib/module/theta-repository/options/option-time-shift.js.map +1 -1
  63. package/lib/module/theta-repository/options/options.js +20 -22
  64. package/lib/module/theta-repository/options/options.js.map +1 -1
  65. package/lib/module/theta-repository/theta-files.js +20 -0
  66. package/lib/module/theta-repository/theta-files.js.map +1 -1
  67. package/lib/module/theta-repository/theta-info.js +22 -0
  68. package/lib/module/theta-repository/theta-info.js.map +1 -1
  69. package/lib/module/theta-repository/theta-repository.js +16 -0
  70. package/lib/module/theta-repository/theta-repository.js.map +1 -1
  71. package/lib/typescript/capture/capture.d.ts +1 -1
  72. package/lib/typescript/capture/capture.d.ts.map +1 -1
  73. package/lib/typescript/capture/time-shift-capture.d.ts +20 -0
  74. package/lib/typescript/capture/time-shift-capture.d.ts.map +1 -1
  75. package/lib/typescript/theta-repository/options/index.d.ts +9 -1
  76. package/lib/typescript/theta-repository/options/index.d.ts.map +1 -1
  77. package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts +10 -0
  78. package/lib/typescript/theta-repository/options/option-ai-auto-thumbnail.d.ts.map +1 -0
  79. package/lib/typescript/theta-repository/options/option-bitrate.d.ts +57 -0
  80. package/lib/typescript/theta-repository/options/option-bitrate.d.ts.map +1 -0
  81. package/lib/typescript/theta-repository/options/option-burst-mode.d.ts +16 -0
  82. package/lib/typescript/theta-repository/options/option-burst-mode.d.ts.map +1 -0
  83. package/lib/typescript/theta-repository/options/option-burst-option.d.ts +153 -0
  84. package/lib/typescript/theta-repository/options/option-burst-option.d.ts.map +1 -0
  85. package/lib/typescript/theta-repository/options/option-capture-mode.d.ts +23 -0
  86. package/lib/typescript/theta-repository/options/option-capture-mode.d.ts.map +1 -0
  87. package/lib/typescript/theta-repository/options/option-continuous-number.d.ts +64 -0
  88. package/lib/typescript/theta-repository/options/option-continuous-number.d.ts.map +1 -0
  89. package/lib/typescript/theta-repository/options/option-filter.d.ts +25 -0
  90. package/lib/typescript/theta-repository/options/option-filter.d.ts.map +1 -0
  91. package/lib/typescript/theta-repository/options/option-power-saving.d.ts.map +1 -1
  92. package/lib/typescript/theta-repository/options/option-preset.d.ts +18 -0
  93. package/lib/typescript/theta-repository/options/option-preset.d.ts.map +1 -0
  94. package/lib/typescript/theta-repository/options/option-preview-format.d.ts.map +1 -1
  95. package/lib/typescript/theta-repository/options/option-shooting-method.d.ts.map +1 -1
  96. package/lib/typescript/theta-repository/options/option-time-shift.d.ts +1 -1
  97. package/lib/typescript/theta-repository/options/option-time-shift.d.ts.map +1 -1
  98. package/lib/typescript/theta-repository/options/options.d.ts +114 -35
  99. package/lib/typescript/theta-repository/options/options.d.ts.map +1 -1
  100. package/lib/typescript/theta-repository/theta-files.d.ts +54 -2
  101. package/lib/typescript/theta-repository/theta-files.d.ts.map +1 -1
  102. package/lib/typescript/theta-repository/theta-info.d.ts +21 -0
  103. package/lib/typescript/theta-repository/theta-info.d.ts.map +1 -1
  104. package/lib/typescript/theta-repository/theta-repository.d.ts +8 -1
  105. package/lib/typescript/theta-repository/theta-repository.d.ts.map +1 -1
  106. package/lib/typescript/theta-repository/theta-state.d.ts +5 -5
  107. package/lib/typescript/theta-repository/theta-state.d.ts.map +1 -1
  108. package/package.json +1 -1
  109. package/src/capture/capture.ts +1 -1
  110. package/src/capture/time-shift-capture.ts +46 -0
  111. package/src/theta-repository/options/index.ts +9 -2
  112. package/src/theta-repository/options/option-ai-auto-thumbnail.ts +11 -0
  113. package/src/theta-repository/options/option-bitrate.ts +59 -0
  114. package/src/theta-repository/options/option-burst-mode.ts +16 -0
  115. package/src/theta-repository/options/option-burst-option.ts +175 -0
  116. package/src/theta-repository/options/option-capture-mode.ts +24 -0
  117. package/src/theta-repository/options/option-continuous-number.ts +65 -0
  118. package/src/theta-repository/options/option-filter.ts +25 -0
  119. package/src/theta-repository/options/option-power-saving.ts +1 -1
  120. package/src/theta-repository/options/option-preset.ts +19 -0
  121. package/src/theta-repository/options/option-preview-format.ts +22 -23
  122. package/src/theta-repository/options/option-shooting-method.ts +24 -25
  123. package/src/theta-repository/options/option-time-shift.ts +47 -47
  124. package/src/theta-repository/options/options.ts +115 -41
  125. package/src/theta-repository/theta-files.ts +60 -3
  126. package/src/theta-repository/theta-info.ts +23 -0
  127. package/src/theta-repository/theta-repository.ts +19 -1
  128. package/src/theta-repository/theta-state.ts +5 -5
  129. package/theta-client-react-native.podspec +1 -1
@@ -1,7 +1,15 @@
1
+ import type { AiAutoThumbnailEnum } from './option-ai-auto-thumbnail';
2
+ import type { BitrateEnum } from './option-bitrate';
3
+ import type { BurstModeEnum } from './option-burst-mode';
4
+ import type { BurstOption } from './option-burst-option';
1
5
  import type { CameraControlSourceEnum } from './option-camera-control-source';
2
6
  import type { CameraModeEnum } from './option-camera-mode';
7
+ import type { CaptureModeEnum } from './option-capture-mode';
8
+ import type { ContinuousNumberEnum } from './option-continuous-number';
9
+ import type { FilterEnum } from './option-filter';
3
10
  import type { NetworkTypeEnum } from './option-network-type';
4
11
  import type { PowerSavingEnum } from './option-power-saving';
12
+ import type { PresetEnum } from './option-preset';
5
13
  import type { PreviewFormatEnum } from './option-preview-format';
6
14
  import type { Proxy } from './option-proxy';
7
15
  import type { ShootingMethodEnum } from './option-shooting-method';
@@ -27,7 +35,7 @@ export const ApertureEnum = {
27
35
  } as const;
28
36
 
29
37
  /** type definition of ApertureEnum */
30
- export type ApertureEnum = typeof ApertureEnum[keyof typeof ApertureEnum];
38
+ export type ApertureEnum = (typeof ApertureEnum)[keyof typeof ApertureEnum];
31
39
 
32
40
  /** BluetoothPower value. */
33
41
  export const BluetoothPowerEnum = {
@@ -39,19 +47,7 @@ export const BluetoothPowerEnum = {
39
47
 
40
48
  /** type definition of BluetoothPowerEnum */
41
49
  export type BluetoothPowerEnum =
42
- typeof BluetoothPowerEnum[keyof typeof BluetoothPowerEnum];
43
-
44
- /** Shooting mode. */
45
- export const CaptureModeEnum = {
46
- /** Still image capture mode */
47
- IMAGE: 'IMAGE',
48
- /** Video capture mode */
49
- VIDEO: 'VIDEO',
50
- } as const;
51
-
52
- /** type definition of CaptureModeEnum */
53
- export type CaptureModeEnum =
54
- typeof CaptureModeEnum[keyof typeof CaptureModeEnum];
50
+ (typeof BluetoothPowerEnum)[keyof typeof BluetoothPowerEnum];
55
51
 
56
52
  /** Exposure compensation (EV). */
57
53
  export const ExposureCompensationEnum = {
@@ -85,7 +81,7 @@ export const ExposureCompensationEnum = {
85
81
 
86
82
  /** type definition of ExposureCompensationEnum */
87
83
  export type ExposureCompensationEnum =
88
- typeof ExposureCompensationEnum[keyof typeof ExposureCompensationEnum];
84
+ (typeof ExposureCompensationEnum)[keyof typeof ExposureCompensationEnum];
89
85
 
90
86
  /** Operating time (sec.) of the self-timer. */
91
87
  export const ExposureDelayEnum = {
@@ -115,7 +111,7 @@ export const ExposureDelayEnum = {
115
111
 
116
112
  /** type definition of ExposureDelayEnum */
117
113
  export type ExposureDelayEnum =
118
- typeof ExposureDelayEnum[keyof typeof ExposureDelayEnum];
114
+ (typeof ExposureDelayEnum)[keyof typeof ExposureDelayEnum];
119
115
 
120
116
  /** Exposure program. The exposure settings that take priority can be selected. */
121
117
  export const ExposureProgramEnum = {
@@ -133,7 +129,7 @@ export const ExposureProgramEnum = {
133
129
 
134
130
  /** type definition of ExposureProgramEnum */
135
131
  export type ExposureProgramEnum =
136
- typeof ExposureProgramEnum[keyof typeof ExposureProgramEnum];
132
+ (typeof ExposureProgramEnum)[keyof typeof ExposureProgramEnum];
137
133
 
138
134
  /** file format type in theta */
139
135
  export const FileFormatTypeEnum = {
@@ -147,7 +143,7 @@ export const FileFormatTypeEnum = {
147
143
 
148
144
  /** type definition of FileFormatTypeEnum */
149
145
  export type FileFormatTypeEnum =
150
- typeof FileFormatTypeEnum[keyof typeof FileFormatTypeEnum];
146
+ (typeof FileFormatTypeEnum)[keyof typeof FileFormatTypeEnum];
151
147
 
152
148
  /** Photo image format */
153
149
  export const PhotoFileFormatEnum = {
@@ -199,24 +195,11 @@ export const VideoFileFormatEnum = {
199
195
 
200
196
  /** type definition of PhotoFileFormatEnum */
201
197
  export type PhotoFileFormatEnum =
202
- typeof PhotoFileFormatEnum[keyof typeof PhotoFileFormatEnum];
198
+ (typeof PhotoFileFormatEnum)[keyof typeof PhotoFileFormatEnum];
203
199
 
204
200
  /** type definition of VideoFileFormatEnum */
205
201
  export type VideoFileFormatEnum =
206
- typeof VideoFileFormatEnum[keyof typeof VideoFileFormatEnum];
207
-
208
- /** Image processing filter. */
209
- export const FilterEnum = {
210
- /** No filter. */
211
- OFF: 'OFF',
212
- /** Noise reduction. */
213
- NOISE_REDUCTION: 'NOISE_REDUCTION',
214
- /** HDR. */
215
- HDR: 'HDR',
216
- } as const;
217
-
218
- /** type definition of FilterEnum */
219
- export type FilterEnum = typeof FilterEnum[keyof typeof FilterEnum];
202
+ (typeof VideoFileFormatEnum)[keyof typeof VideoFileFormatEnum];
220
203
 
221
204
  /** GPS information */
222
205
  export type GpsInfo = {
@@ -240,7 +223,7 @@ export const GpsTagRecordingEnum = {
240
223
 
241
224
  /** type definition of GpsTagRecordingEnum */
242
225
  export type GpsTagRecordingEnum =
243
- typeof GpsTagRecordingEnum[keyof typeof GpsTagRecordingEnum];
226
+ (typeof GpsTagRecordingEnum)[keyof typeof GpsTagRecordingEnum];
244
227
 
245
228
  /** ISO sensitivity. */
246
229
  export const IsoEnum = {
@@ -293,7 +276,7 @@ export const IsoEnum = {
293
276
  } as const;
294
277
 
295
278
  /** type definition IsoEnum */
296
- export type IsoEnum = typeof IsoEnum[keyof typeof IsoEnum];
279
+ export type IsoEnum = (typeof IsoEnum)[keyof typeof IsoEnum];
297
280
 
298
281
  /** ISO sensitivity upper limit when ISO sensitivity is set to automatic. */
299
282
  export const IsoAutoHighLimitEnum = {
@@ -339,7 +322,7 @@ export const IsoAutoHighLimitEnum = {
339
322
 
340
323
  /** type definition of IsoAutoHighLimitEnum */
341
324
  export type IsoAutoHighLimitEnum =
342
- typeof IsoAutoHighLimitEnum[keyof typeof IsoAutoHighLimitEnum];
325
+ (typeof IsoAutoHighLimitEnum)[keyof typeof IsoAutoHighLimitEnum];
343
326
 
344
327
  /** language */
345
328
  export const LanguageEnum = {
@@ -364,7 +347,7 @@ export const LanguageEnum = {
364
347
  } as const;
365
348
 
366
349
  /** type definition of LanguageEnum */
367
- export type LanguageEnum = typeof LanguageEnum[keyof typeof LanguageEnum];
350
+ export type LanguageEnum = (typeof LanguageEnum)[keyof typeof LanguageEnum];
368
351
 
369
352
  /** Maximum recordable time (in seconds) of the camera */
370
353
  export const MaxRecordableTimeEnum = {
@@ -377,12 +360,12 @@ export const MaxRecordableTimeEnum = {
377
360
  /** 7200 seconds for Theta X only */
378
361
  RECORDABLE_TIME_7200: 'RECORDABLE_TIME_7200',
379
362
  /** Just used by getMySetting/setMySetting command */
380
- DO_NOT_UPDATE_MY_SETTING_CONDITION: 'DO_NOT_UPDATE_MY_SETTING_CONDITION'
363
+ DO_NOT_UPDATE_MY_SETTING_CONDITION: 'DO_NOT_UPDATE_MY_SETTING_CONDITION',
381
364
  } as const;
382
365
 
383
366
  /** type definition of MaxRecordableTimeEnum */
384
367
  export type MaxRecordableTimeEnum =
385
- typeof MaxRecordableTimeEnum[keyof typeof MaxRecordableTimeEnum];
368
+ (typeof MaxRecordableTimeEnum)[keyof typeof MaxRecordableTimeEnum];
386
369
 
387
370
  /** Length of standby time before the camera automatically powers OFF. */
388
371
  export const OffDelayEnum = {
@@ -400,7 +383,7 @@ export const OffDelayEnum = {
400
383
 
401
384
  /** type definition of OffDelayEnum */
402
385
  export type OffDelayEnum =
403
- | typeof OffDelayEnum[keyof typeof OffDelayEnum]
386
+ | (typeof OffDelayEnum)[keyof typeof OffDelayEnum]
404
387
  | number;
405
388
 
406
389
  /** Length of standby time before the camera enters the sleep mode. */
@@ -419,7 +402,7 @@ export const SleepDelayEnum = {
419
402
 
420
403
  /** type definition of SleepDelayEnum */
421
404
  export type SleepDelayEnum =
422
- | typeof SleepDelayEnum[keyof typeof SleepDelayEnum]
405
+ | (typeof SleepDelayEnum)[keyof typeof SleepDelayEnum]
423
406
  | number;
424
407
 
425
408
  /** White balance. */
@@ -456,18 +439,36 @@ export type WhiteBalanceEnum =
456
439
 
457
440
  /** Camera setting options name. */
458
441
  export const OptionNameEnum = {
442
+ /** _aiAutoThumbnail */
443
+ AiAutoThumbnail: 'AiAutoThumbnail',
459
444
  /** aperture */
460
445
  Aperture: 'Aperture',
446
+ /** _bitrate*/
447
+ Bitrate: 'Bitrate',
461
448
  /** _bluetoothPower*/
462
449
  BluetoothPower: 'BluetoothPower',
450
+ /** _burstMode*/
451
+ BurstMode: 'BurstMode',
452
+ /** _burstOption*/
453
+ BurstOption: 'BurstOption',
463
454
  /** _cameraControlSource */
464
455
  CameraControlSource: 'CameraControlSource',
465
456
  /** cameraMode */
466
457
  CameraMode: 'CameraMode',
458
+ /** captureInterval */
459
+ CaptureInterval: 'CaptureInterval',
467
460
  /** captureMode */
468
461
  CaptureMode: 'CaptureMode',
462
+ /** captureNumber */
463
+ CaptureNumber: 'CaptureNumber',
469
464
  /** colorTemperature */
470
465
  ColorTemperature: 'ColorTemperature',
466
+ /** _compositeShootingOutputInterval */
467
+ CompositeShootingOutputInterval: 'CompositeShootingOutputInterval',
468
+ /** _compositeShootingTime */
469
+ CompositeShootingTime: 'CompositeShootingTime',
470
+ /** continuousNumber */
471
+ ContinuousNumber: 'ContinuousNumber',
471
472
  /** dateTimeZone */
472
473
  DateTimeZone: 'DateTimeZone',
473
474
  /** exposureCompensation */
@@ -500,6 +501,8 @@ export const OptionNameEnum = {
500
501
  Password: 'Password',
501
502
  /** powerSaving */
502
503
  PowerSaving: 'PowerSaving',
504
+ /** preset */
505
+ Preset: 'Preset',
503
506
  /** previewFormat */
504
507
  PreviewFormat: 'PreviewFormat',
505
508
  /** proxy */
@@ -538,18 +541,87 @@ export type OptionNameEnum =
538
541
 
539
542
  /** camera setting options */
540
543
  export type Options = {
544
+ /** AI auto thumbnail setting. */
545
+ aiAutoThumbnail?: AiAutoThumbnailEnum;
541
546
  /** Aperture value. */
542
547
  aperture?: ApertureEnum;
548
+ /** Bitrate */
549
+ bitrate?: BitrateEnum;
543
550
  /** BluetoothPower */
544
551
  bluetoothPower?: BluetoothPowerEnum;
552
+ /** BurstMode */
553
+ burstMode?: BurstModeEnum;
554
+ /** BurstOption */
555
+ burstOption?: BurstOption;
545
556
  /** camera control source. */
546
557
  cameraControlSource?: CameraControlSourceEnum;
547
558
  /** Camera mode. */
548
559
  cameraMode?: CameraModeEnum;
560
+ /**
561
+ * Shooting interval (sec.) for interval shooting.
562
+ *
563
+ * ### Support value
564
+ * The value that can be set differs depending on the image format ([fileFormat]) to be shot.
565
+ * #### For RICOH THETA X or later
566
+ * | Image format | Image size | Support value |
567
+ * | ------------ | ----------- | ------------- |
568
+ * | JPEG | 11008 x 5504 <br>5504 x 2752 | Minimum value(minInterval):6 <br>Maximum value(maxInterval):3600 |
569
+ *
570
+ * #### For RICOH THETA Z1
571
+ * | Image format | Image size | Support value |
572
+ * | ------------ | ----------- | ------------- |
573
+ * | JPEG | 6720 x 3360 | Minimum value(minInterval):6 <br>Maximum value(maxInterval):3600 |
574
+ * | RAW+ | 6720 x 3360 | Minimum value(minInterval):10 <br>Maximum value(maxInterval):3600 |
575
+ *
576
+ * #### For RICOH THETA V
577
+ * | Image format | Image size | Support value |
578
+ * | ------------ | ----------- | ------------- |
579
+ * | JPEG | 5376 x 2688 | Minimum value(minInterval):4 <br>Maximum value(maxInterval):3600 |
580
+ *
581
+ * #### For RICOH THETA S or SC
582
+ * | Image format | Image size | Support value |
583
+ * | ------------ | ----------- | ------------- |
584
+ * | JPEG | 5376 x 2688 | Minimum value(minInterval):8 <br>Maximum value(maxInterval):3600 |
585
+ * | JPEG | 2048 x 1024 | Minimum value(minInterval):5 <br>Maximum value(maxInterval):3600 |
586
+ */
587
+ captureInterval?: number;
549
588
  /** Shooting mode. */
550
589
  captureMode?: CaptureModeEnum;
590
+ /**
591
+ * Number of shots for interval shooting.
592
+ *
593
+ * ### Support value
594
+ * - 0: Unlimited (_limitless)
595
+ * - 2: Minimum value (minNumber)
596
+ * - 9999: Maximum value (maxNumber)
597
+ */
598
+ captureNumber?: number;
551
599
  /** Color temperature of the camera (Kelvin). */
552
600
  colorTemperature?: number;
601
+ /**
602
+ * In-progress save interval for interval composite shooting (sec).
603
+ *
604
+ * 0 (no saving), 60 to 600. In 60-second units.
605
+ *
606
+ * For
607
+ * RICOH THETA Z1
608
+ * RICOH THETA SC firmware v1.10 or later
609
+ * RICOH THETA S firmware v01.82 or later
610
+ */
611
+ compositeShootingOutputInterval?: number;
612
+ /**
613
+ * Shooting time for interval composite shooting (sec).
614
+ *
615
+ * 600 to 86400. In 600-second units.
616
+ *
617
+ * For
618
+ * RICOH THETA Z1
619
+ * RICOH THETA SC firmware v1.10 or later
620
+ * RICOH THETA S firmware v01.82 or later
621
+ */
622
+ compositeShootingTime?: number;
623
+ /** Number of shots for continuous shooting. */
624
+ continuousNumber?: ContinuousNumberEnum;
553
625
  /** Current system time of RICOH THETA. Setting another options will result in an error. */
554
626
  dateTimeZone?: string;
555
627
  /** Exposure compensation (EV). */
@@ -582,6 +654,8 @@ export type Options = {
582
654
  password?: String;
583
655
  /** Power saving mode */
584
656
  powerSaving?: PowerSavingEnum;
657
+ /** Preset mode */
658
+ preset?: PresetEnum;
585
659
  /** Format of live view */
586
660
  previewFormat?: PreviewFormatEnum;
587
661
  /** Proxy information to be used when wired LAN is enabled. */
@@ -2,14 +2,48 @@
2
2
  export type FileInfo = {
3
3
  /** File name. */
4
4
  name: string;
5
+ /** fileUrl You can get a file using HTTP GET to [fileUrl]. */
6
+ fileUrl: string;
5
7
  /** File size in bytes. */
6
8
  size: number;
9
+ /** File creation or update time with the time zone in the format "YYYY:MM:DD hh:mm:ss+(-)hh:mm". */
10
+ dateTimeZone: string;
7
11
  /** File creation time in the format "YYYY:MM:DD HH:MM:SS". */
8
12
  dateTime: string;
13
+ /** Latitude. */
14
+ lat?: number;
15
+ /** Longitude. */
16
+ lng?: number;
17
+ /** Horizontal size of image (pixels). */
18
+ width?: number;
19
+ /** Vertical size of image (pixels). */
20
+ height?: number;
9
21
  /** You can get a thumbnail image using HTTP GET to [thumbnailUrl]. */
10
22
  thumbnailUrl: string;
11
- /** fileUrl You can get a file using HTTP GET to [fileUrl]. */
12
- fileUrl: string;
23
+ /** Group ID of a still image shot by interval shooting. */
24
+ intervalCaptureGroupId?: string;
25
+ /** Group ID of a still image shot by interval composite shooting. */
26
+ compositeShootingGroupId?: string;
27
+ /** Group ID of a still image shot by multi bracket shooting. */
28
+ autoBracketGroupId?: string;
29
+ /** Video shooting time (sec). */
30
+ recordTime?: number;
31
+ /** Whether or not image processing has been completed. */
32
+ isProcessed?: boolean;
33
+ /** URL of the file being processed. */
34
+ previewUrl?: string;
35
+ /** Codec. (RICOH THETA V or later) */
36
+ codec?: CodecEnum;
37
+ /** Projection type of movie file. (RICOH THETA V or later) */
38
+ projectionType?: ProjectionTypeEnum;
39
+ /** Group ID of continuous shooting. (RICOH THETA X or later) */
40
+ continuousShootingGroupId?: string;
41
+ /** Frame rate. (RICOH THETA X or later) */
42
+ frameRate?: number;
43
+ /** Favorite. (RICOH THETA X or later) */
44
+ favorite?: boolean;
45
+ /** Image description. (RICOH THETA X or later) */
46
+ imageDescription?: string;
13
47
  /** Storage ID. (RICOH THETA X Version 2.00.0 or later) */
14
48
  storageID?: String;
15
49
  };
@@ -46,4 +80,27 @@ export const StorageEnum = {
46
80
  } as const;
47
81
 
48
82
  /** type definition of StorageEnum */
49
- export type StorageEnum = (typeof StorageEnum)[keyof typeof StorageEnum];
83
+ export type StorageEnum = (typeof StorageEnum)[keyof typeof StorageEnum];
84
+
85
+ /** Video codec */
86
+ export const CodecEnum = {
87
+ /** codec H.264/MPEG-4 AVC */
88
+ H264MP4AVC: 'H264MP4AVC',
89
+ } as const;
90
+
91
+ /** type definition of CodecEnum */
92
+ export type CodecEnum = (typeof CodecEnum)[keyof typeof CodecEnum];
93
+
94
+ /** THETA projection type */
95
+ export const ProjectionTypeEnum = {
96
+ /** Equirectangular type */
97
+ EQUIRECTANGULAR: 'EQUIRECTANGULAR',
98
+ /** Dual Fisheye type */
99
+ DUAL_FISHEYE: 'DUAL_FISHEYE',
100
+ /** Dual Fisheye type */
101
+ FISHEYE: 'FISHEYE',
102
+ } as const;
103
+
104
+ /** type definition of ProjectionTypeEnum */
105
+ export type ProjectionTypeEnum =
106
+ (typeof ProjectionTypeEnum)[keyof typeof ProjectionTypeEnum];
@@ -1,3 +1,24 @@
1
+ /** Support THETA model */
2
+ export const ThetaModel = {
3
+ /** THETA S */
4
+ THETA_S: 'THETA_S',
5
+ /** THETA SC */
6
+ THETA_SC: 'THETA_SC',
7
+ /** THETA V */
8
+ THETA_V: 'THETA_V',
9
+ /** THETA Z1 */
10
+ THETA_Z1: 'THETA_Z1',
11
+ /** THETA X */
12
+ THETA_X: 'THETA_X',
13
+ /** THETA SC2 */
14
+ THETA_SC2: 'THETA_SC2',
15
+ /** THETA SC2 for business */
16
+ THETA_SC2_B: 'THETA_SC2_B',
17
+ } as const;
18
+
19
+ /** type definition of ThetaModel */
20
+ export type ThetaModel = (typeof ThetaModel)[keyof typeof ThetaModel];
21
+
1
22
  /** Static attributes of Theta. */
2
23
  export type ThetaInfo = {
3
24
  /** Manufacturer name */
@@ -26,6 +47,8 @@ export type ThetaInfo = {
26
47
  endpoints: EndPoint;
27
48
  /** List of supported APIs (1: v2.0, 2: v2.1) */
28
49
  apiLevel: number[];
50
+ /** THETA model */
51
+ thetaModel?: ThetaModel;
29
52
  };
30
53
 
31
54
  /** endpoint information */
@@ -1,7 +1,7 @@
1
1
  import { AccessPoint, AuthModeEnum } from './access-point';
2
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
7
 
@@ -189,6 +189,24 @@ export function setBluetoothDevice(uuid: string): Promise<String> {
189
189
  return ThetaClientReactNative.setBluetoothDevice(uuid);
190
190
  }
191
191
 
192
+ /**
193
+ * Returns the connected THETA model.
194
+ *
195
+ * @function getThetaModel
196
+ * @return promise of THETA model
197
+ **/
198
+ export function getThetaModel(): Promise<ThetaModel | undefined> {
199
+ return new Promise<ThetaModel | undefined>(async (resolve, reject) => {
200
+ await ThetaClientReactNative.getThetaModel()
201
+ .then((result?: string) => {
202
+ resolve((result as ThetaModel) ?? undefined);
203
+ })
204
+ .catch((error: any) => {
205
+ reject(error);
206
+ });
207
+ });
208
+ }
209
+
192
210
  /**
193
211
  * Get basic information about Theta.
194
212
  *
@@ -10,7 +10,7 @@ export const ChargingStateEnum = {
10
10
 
11
11
  /** type definition of ChargingStateEnum */
12
12
  export type ChargingStateEnum =
13
- typeof ChargingStateEnum[keyof typeof ChargingStateEnum];
13
+ (typeof ChargingStateEnum)[keyof typeof ChargingStateEnum];
14
14
 
15
15
  /** Capture Status constants */
16
16
  export const CaptureStatusEnum = {
@@ -34,7 +34,7 @@ export const CaptureStatusEnum = {
34
34
 
35
35
  /** type definition of CaptureStatusEnum */
36
36
  export type CaptureStatusEnum =
37
- typeof CaptureStatusEnum[keyof typeof CaptureStatusEnum];
37
+ (typeof CaptureStatusEnum)[keyof typeof CaptureStatusEnum];
38
38
 
39
39
  /** Shooting function status constants */
40
40
  export const ShootingFunctionEnum = {
@@ -48,7 +48,7 @@ export const ShootingFunctionEnum = {
48
48
 
49
49
  /** type definition of ShootingFunctionEnum */
50
50
  export type ShootingFunctionEnum =
51
- typeof ShootingFunctionEnum[keyof typeof ShootingFunctionEnum];
51
+ (typeof ShootingFunctionEnum)[keyof typeof ShootingFunctionEnum];
52
52
 
53
53
  /** Microphone option constants */
54
54
  export const MicrophoneOptionEnum = {
@@ -62,7 +62,7 @@ export const MicrophoneOptionEnum = {
62
62
 
63
63
  /** type definition of MicrophoneOptionEnum */
64
64
  export type MicrophoneOptionEnum =
65
- typeof MicrophoneOptionEnum[keyof typeof MicrophoneOptionEnum];
65
+ (typeof MicrophoneOptionEnum)[keyof typeof MicrophoneOptionEnum];
66
66
 
67
67
  /** Camera error constants */
68
68
  export const CameraErrorEnum = {
@@ -117,7 +117,7 @@ export const CameraErrorEnum = {
117
117
 
118
118
  /** type definition of CameraErrorEnum */
119
119
  export type CameraErrorEnum =
120
- typeof CameraErrorEnum[keyof typeof CameraErrorEnum];
120
+ (typeof CameraErrorEnum)[keyof typeof CameraErrorEnum];
121
121
 
122
122
  /** Mutable values representing Theta status. */
123
123
  export type ThetaState = {
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
  s.source_files = "ios/**/*.{h,m,mm}"
18
18
 
19
19
  s.dependency "React-Core"
20
- s.dependency "THETAClient", "1.2.0"
20
+ s.dependency "THETAClient", "1.3.1"
21
21
 
22
22
  # Don't install the dependencies when we run `pod install` in the old architecture.
23
23
  if ENV['RCT_NEW_ARCH_ENABLED'] == '1' then