connectbase-client 0.6.18 → 0.6.20
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/dist/connect-base.umd.js +2 -2
- package/dist/index.d.mts +471 -2
- package/dist/index.d.ts +471 -2
- package/dist/index.js +463 -2
- package/dist/index.mjs +462 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -602,7 +602,8 @@ declare class DatabaseAPI {
|
|
|
602
602
|
*/
|
|
603
603
|
createData(tableId: string, data: CreateDataRequest): Promise<DataItem>;
|
|
604
604
|
/**
|
|
605
|
-
* 데이터 수정
|
|
605
|
+
* 데이터 수정 (부분 업데이트)
|
|
606
|
+
* 제공된 필드만 수정되고, 기존 필드는 유지됩니다.
|
|
606
607
|
*/
|
|
607
608
|
updateData(tableId: string, dataId: string, data: UpdateDataRequest): Promise<DataItem>;
|
|
608
609
|
/**
|
|
@@ -3994,6 +3995,469 @@ declare class AdsAPI {
|
|
|
3994
3995
|
getAdMobReportSummary(): Promise<AdMobReportSummary>;
|
|
3995
3996
|
}
|
|
3996
3997
|
|
|
3998
|
+
/**
|
|
3999
|
+
* Native Bridge API
|
|
4000
|
+
*
|
|
4001
|
+
* 웹, 모바일(React Native), 데스크톱(Electron)에서 동일한 API로
|
|
4002
|
+
* 네이티브 기능을 사용할 수 있는 크로스 플랫폼 유틸리티
|
|
4003
|
+
*
|
|
4004
|
+
* @example
|
|
4005
|
+
* ```typescript
|
|
4006
|
+
* import ConnectBase from 'connectbase-client'
|
|
4007
|
+
*
|
|
4008
|
+
* const cb = new ConnectBase({ apiKey: 'your-api-key' })
|
|
4009
|
+
*
|
|
4010
|
+
* // 플랫폼 감지
|
|
4011
|
+
* const platform = cb.native.getPlatform() // 'web' | 'mobile' | 'desktop'
|
|
4012
|
+
*
|
|
4013
|
+
* // 크로스 플랫폼 클립보드
|
|
4014
|
+
* await cb.native.clipboard.writeText('Hello')
|
|
4015
|
+
*
|
|
4016
|
+
* // 크로스 플랫폼 파일 저장
|
|
4017
|
+
* await cb.native.filesystem.saveFile('Hello World', 'hello.txt')
|
|
4018
|
+
* ```
|
|
4019
|
+
*/
|
|
4020
|
+
declare global {
|
|
4021
|
+
interface Window {
|
|
4022
|
+
NativeBridge?: NativeBridgeInterface;
|
|
4023
|
+
ReactNativeWebView?: unknown;
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
interface NativeBridgeInterface {
|
|
4027
|
+
platform?: 'electron' | 'react-native' | 'ios' | 'android';
|
|
4028
|
+
camera?: {
|
|
4029
|
+
takePicture: (options?: CameraOptions) => Promise<ImageResult>;
|
|
4030
|
+
pickImage: (options?: PickImageOptions) => Promise<ImageResult[]>;
|
|
4031
|
+
};
|
|
4032
|
+
push?: {
|
|
4033
|
+
getToken: () => Promise<{
|
|
4034
|
+
token: string;
|
|
4035
|
+
}>;
|
|
4036
|
+
requestPermission: () => Promise<{
|
|
4037
|
+
granted: boolean;
|
|
4038
|
+
}>;
|
|
4039
|
+
scheduleLocal: (options: LocalNotificationOptions) => Promise<{
|
|
4040
|
+
notificationId: string;
|
|
4041
|
+
}>;
|
|
4042
|
+
};
|
|
4043
|
+
location?: {
|
|
4044
|
+
getCurrentPosition: (options?: LocationOptions) => Promise<Position>;
|
|
4045
|
+
watchPosition: (options?: LocationOptions) => Promise<{
|
|
4046
|
+
watchId: string;
|
|
4047
|
+
}>;
|
|
4048
|
+
stopWatch: (watchId: string) => Promise<{
|
|
4049
|
+
stopped: boolean;
|
|
4050
|
+
}>;
|
|
4051
|
+
};
|
|
4052
|
+
biometric?: {
|
|
4053
|
+
isAvailable: () => Promise<BiometricInfo>;
|
|
4054
|
+
authenticate: (options?: BiometricOptions) => Promise<BiometricResult>;
|
|
4055
|
+
};
|
|
4056
|
+
secureStore?: {
|
|
4057
|
+
setItem: (key: string, value: string) => Promise<{
|
|
4058
|
+
success: boolean;
|
|
4059
|
+
}>;
|
|
4060
|
+
getItem: (key: string) => Promise<{
|
|
4061
|
+
value: string | null;
|
|
4062
|
+
}>;
|
|
4063
|
+
deleteItem: (key: string) => Promise<{
|
|
4064
|
+
success: boolean;
|
|
4065
|
+
}>;
|
|
4066
|
+
};
|
|
4067
|
+
admob?: {
|
|
4068
|
+
showInterstitial: () => Promise<{
|
|
4069
|
+
shown: boolean;
|
|
4070
|
+
}>;
|
|
4071
|
+
showRewarded: () => Promise<{
|
|
4072
|
+
rewarded: boolean;
|
|
4073
|
+
}>;
|
|
4074
|
+
};
|
|
4075
|
+
app?: {
|
|
4076
|
+
getVersion: () => Promise<string>;
|
|
4077
|
+
getName: () => Promise<string>;
|
|
4078
|
+
getPath: (name: string) => Promise<string | null>;
|
|
4079
|
+
quit: () => Promise<void>;
|
|
4080
|
+
};
|
|
4081
|
+
system?: {
|
|
4082
|
+
getInfo: () => Promise<SystemInfo>;
|
|
4083
|
+
getMemory: () => Promise<MemoryInfo>;
|
|
4084
|
+
getCPU: () => Promise<CPUInfo>;
|
|
4085
|
+
};
|
|
4086
|
+
window?: {
|
|
4087
|
+
minimize: () => Promise<void>;
|
|
4088
|
+
maximize: () => Promise<void>;
|
|
4089
|
+
unmaximize: () => Promise<void>;
|
|
4090
|
+
isMaximized: () => Promise<boolean>;
|
|
4091
|
+
close: () => Promise<void>;
|
|
4092
|
+
setTitle: (title: string) => Promise<void>;
|
|
4093
|
+
setSize: (width: number, height: number) => Promise<void>;
|
|
4094
|
+
getSize: () => Promise<[number, number]>;
|
|
4095
|
+
setPosition: (x: number, y: number) => Promise<void>;
|
|
4096
|
+
getPosition: () => Promise<[number, number]>;
|
|
4097
|
+
center: () => Promise<void>;
|
|
4098
|
+
setFullScreen: (flag: boolean) => Promise<void>;
|
|
4099
|
+
isFullScreen: () => Promise<boolean>;
|
|
4100
|
+
setAlwaysOnTop: (flag: boolean) => Promise<void>;
|
|
4101
|
+
};
|
|
4102
|
+
clipboard?: {
|
|
4103
|
+
readText: () => Promise<string>;
|
|
4104
|
+
writeText: (text: string) => Promise<void>;
|
|
4105
|
+
readHTML: () => Promise<string>;
|
|
4106
|
+
writeHTML: (html: string) => Promise<void>;
|
|
4107
|
+
readImage: () => Promise<string | null>;
|
|
4108
|
+
writeImage: (dataURL: string) => Promise<void>;
|
|
4109
|
+
clear: () => Promise<void>;
|
|
4110
|
+
};
|
|
4111
|
+
shell?: {
|
|
4112
|
+
openExternal: (url: string) => Promise<{
|
|
4113
|
+
success: boolean;
|
|
4114
|
+
error?: string;
|
|
4115
|
+
}>;
|
|
4116
|
+
openPath: (path: string) => Promise<{
|
|
4117
|
+
success: boolean;
|
|
4118
|
+
error?: string;
|
|
4119
|
+
}>;
|
|
4120
|
+
showItemInFolder: (path: string) => Promise<{
|
|
4121
|
+
success: boolean;
|
|
4122
|
+
}>;
|
|
4123
|
+
beep: () => Promise<void>;
|
|
4124
|
+
};
|
|
4125
|
+
notification?: {
|
|
4126
|
+
show: (options: NotificationOptions) => Promise<{
|
|
4127
|
+
success: boolean;
|
|
4128
|
+
}>;
|
|
4129
|
+
isSupported: () => Promise<boolean>;
|
|
4130
|
+
};
|
|
4131
|
+
filesystem?: {
|
|
4132
|
+
showOpenDialog?: (options?: OpenDialogOptions) => Promise<OpenDialogResult>;
|
|
4133
|
+
showSaveDialog?: (options?: SaveDialogOptions) => Promise<SaveDialogResult>;
|
|
4134
|
+
readFile: (path: string, encoding?: string) => Promise<{
|
|
4135
|
+
success: boolean;
|
|
4136
|
+
content?: string;
|
|
4137
|
+
error?: string;
|
|
4138
|
+
}>;
|
|
4139
|
+
writeFile: (path: string, content: string, encoding?: string) => Promise<{
|
|
4140
|
+
success: boolean;
|
|
4141
|
+
error?: string;
|
|
4142
|
+
}>;
|
|
4143
|
+
exists: (path: string) => Promise<boolean>;
|
|
4144
|
+
stat: (path: string) => Promise<FileStats>;
|
|
4145
|
+
readDir: (path: string) => Promise<{
|
|
4146
|
+
success: boolean;
|
|
4147
|
+
entries?: DirEntry[];
|
|
4148
|
+
error?: string;
|
|
4149
|
+
}>;
|
|
4150
|
+
mkdir: (path: string) => Promise<{
|
|
4151
|
+
success: boolean;
|
|
4152
|
+
error?: string;
|
|
4153
|
+
}>;
|
|
4154
|
+
remove: (path: string) => Promise<{
|
|
4155
|
+
success: boolean;
|
|
4156
|
+
error?: string;
|
|
4157
|
+
}>;
|
|
4158
|
+
copy: (src: string, dest: string) => Promise<{
|
|
4159
|
+
success: boolean;
|
|
4160
|
+
error?: string;
|
|
4161
|
+
}>;
|
|
4162
|
+
move: (src: string, dest: string) => Promise<{
|
|
4163
|
+
success: boolean;
|
|
4164
|
+
error?: string;
|
|
4165
|
+
}>;
|
|
4166
|
+
pickDocument?: (options?: PickDocumentOptions) => Promise<DocumentResult>;
|
|
4167
|
+
saveToGallery?: (uri: string) => Promise<{
|
|
4168
|
+
uri: string;
|
|
4169
|
+
}>;
|
|
4170
|
+
};
|
|
4171
|
+
onDeepLink?: (callback: (url: string) => void) => () => void;
|
|
4172
|
+
}
|
|
4173
|
+
type Platform = 'web' | 'mobile' | 'desktop';
|
|
4174
|
+
interface CameraOptions {
|
|
4175
|
+
quality?: number;
|
|
4176
|
+
base64?: boolean;
|
|
4177
|
+
}
|
|
4178
|
+
interface PickImageOptions extends CameraOptions {
|
|
4179
|
+
multiple?: boolean;
|
|
4180
|
+
}
|
|
4181
|
+
interface ImageResult {
|
|
4182
|
+
uri: string;
|
|
4183
|
+
base64?: string;
|
|
4184
|
+
width: number;
|
|
4185
|
+
height: number;
|
|
4186
|
+
}
|
|
4187
|
+
interface LocalNotificationOptions {
|
|
4188
|
+
title: string;
|
|
4189
|
+
body: string;
|
|
4190
|
+
data?: Record<string, unknown>;
|
|
4191
|
+
trigger?: {
|
|
4192
|
+
seconds: number;
|
|
4193
|
+
} | null;
|
|
4194
|
+
}
|
|
4195
|
+
interface LocationOptions {
|
|
4196
|
+
accuracy?: 'low' | 'medium' | 'high';
|
|
4197
|
+
distanceInterval?: number;
|
|
4198
|
+
}
|
|
4199
|
+
interface Position {
|
|
4200
|
+
latitude: number;
|
|
4201
|
+
longitude: number;
|
|
4202
|
+
altitude: number | null;
|
|
4203
|
+
accuracy: number;
|
|
4204
|
+
timestamp: number;
|
|
4205
|
+
}
|
|
4206
|
+
interface BiometricInfo {
|
|
4207
|
+
available: boolean;
|
|
4208
|
+
hasHardware: boolean;
|
|
4209
|
+
isEnrolled: boolean;
|
|
4210
|
+
supportedTypes: number[];
|
|
4211
|
+
}
|
|
4212
|
+
interface BiometricOptions {
|
|
4213
|
+
promptMessage?: string;
|
|
4214
|
+
cancelLabel?: string;
|
|
4215
|
+
disableDeviceFallback?: boolean;
|
|
4216
|
+
}
|
|
4217
|
+
interface BiometricResult {
|
|
4218
|
+
success: boolean;
|
|
4219
|
+
error?: string;
|
|
4220
|
+
}
|
|
4221
|
+
interface SystemInfo {
|
|
4222
|
+
platform: string;
|
|
4223
|
+
arch: string;
|
|
4224
|
+
version: string;
|
|
4225
|
+
hostname: string;
|
|
4226
|
+
homeDir: string;
|
|
4227
|
+
tmpDir: string;
|
|
4228
|
+
cpuCount: number;
|
|
4229
|
+
totalMemory: number;
|
|
4230
|
+
freeMemory: number;
|
|
4231
|
+
}
|
|
4232
|
+
interface MemoryInfo {
|
|
4233
|
+
total: number;
|
|
4234
|
+
free: number;
|
|
4235
|
+
used: number;
|
|
4236
|
+
usagePercent: string;
|
|
4237
|
+
}
|
|
4238
|
+
interface CPUInfo {
|
|
4239
|
+
model: string;
|
|
4240
|
+
count: number;
|
|
4241
|
+
speed: number;
|
|
4242
|
+
}
|
|
4243
|
+
interface NotificationOptions {
|
|
4244
|
+
title: string;
|
|
4245
|
+
body: string;
|
|
4246
|
+
icon?: string;
|
|
4247
|
+
silent?: boolean;
|
|
4248
|
+
}
|
|
4249
|
+
interface OpenDialogOptions {
|
|
4250
|
+
title?: string;
|
|
4251
|
+
defaultPath?: string;
|
|
4252
|
+
filters?: Array<{
|
|
4253
|
+
name: string;
|
|
4254
|
+
extensions: string[];
|
|
4255
|
+
}>;
|
|
4256
|
+
properties?: Array<'openFile' | 'openDirectory' | 'multiSelections'>;
|
|
4257
|
+
message?: string;
|
|
4258
|
+
}
|
|
4259
|
+
interface OpenDialogResult {
|
|
4260
|
+
canceled: boolean;
|
|
4261
|
+
filePaths: string[];
|
|
4262
|
+
}
|
|
4263
|
+
interface SaveDialogOptions {
|
|
4264
|
+
title?: string;
|
|
4265
|
+
defaultPath?: string;
|
|
4266
|
+
filters?: Array<{
|
|
4267
|
+
name: string;
|
|
4268
|
+
extensions: string[];
|
|
4269
|
+
}>;
|
|
4270
|
+
message?: string;
|
|
4271
|
+
}
|
|
4272
|
+
interface SaveDialogResult {
|
|
4273
|
+
canceled: boolean;
|
|
4274
|
+
filePath?: string;
|
|
4275
|
+
}
|
|
4276
|
+
interface FileStats {
|
|
4277
|
+
success: boolean;
|
|
4278
|
+
isFile?: boolean;
|
|
4279
|
+
isDirectory?: boolean;
|
|
4280
|
+
size?: number;
|
|
4281
|
+
created?: Date;
|
|
4282
|
+
modified?: Date;
|
|
4283
|
+
accessed?: Date;
|
|
4284
|
+
error?: string;
|
|
4285
|
+
}
|
|
4286
|
+
interface DirEntry {
|
|
4287
|
+
name: string;
|
|
4288
|
+
isFile: boolean;
|
|
4289
|
+
isDirectory: boolean;
|
|
4290
|
+
}
|
|
4291
|
+
interface PickDocumentOptions {
|
|
4292
|
+
type?: string;
|
|
4293
|
+
}
|
|
4294
|
+
interface DocumentResult {
|
|
4295
|
+
uri: string;
|
|
4296
|
+
name: string;
|
|
4297
|
+
size: number;
|
|
4298
|
+
mimeType: string;
|
|
4299
|
+
}
|
|
4300
|
+
/**
|
|
4301
|
+
* Native API - 크로스 플랫폼 네이티브 기능
|
|
4302
|
+
*/
|
|
4303
|
+
declare class NativeAPI {
|
|
4304
|
+
/**
|
|
4305
|
+
* 현재 플랫폼 감지
|
|
4306
|
+
*/
|
|
4307
|
+
getPlatform(): Platform;
|
|
4308
|
+
/**
|
|
4309
|
+
* 특정 네이티브 기능 지원 여부 확인
|
|
4310
|
+
*/
|
|
4311
|
+
hasFeature(feature: keyof NativeBridgeInterface): boolean;
|
|
4312
|
+
/**
|
|
4313
|
+
* NativeBridge 직접 접근 (고급 사용자용)
|
|
4314
|
+
*/
|
|
4315
|
+
get bridge(): NativeBridgeInterface | undefined;
|
|
4316
|
+
/**
|
|
4317
|
+
* 크로스 플랫폼 클립보드 API
|
|
4318
|
+
*/
|
|
4319
|
+
clipboard: {
|
|
4320
|
+
/**
|
|
4321
|
+
* 텍스트 복사
|
|
4322
|
+
*/
|
|
4323
|
+
writeText: (text: string) => Promise<void>;
|
|
4324
|
+
/**
|
|
4325
|
+
* 텍스트 읽기
|
|
4326
|
+
*/
|
|
4327
|
+
readText: () => Promise<string>;
|
|
4328
|
+
/**
|
|
4329
|
+
* HTML 복사 (데스크톱 전용)
|
|
4330
|
+
*/
|
|
4331
|
+
writeHTML: (html: string) => Promise<void>;
|
|
4332
|
+
/**
|
|
4333
|
+
* 이미지 복사 (데스크톱 전용, Data URL)
|
|
4334
|
+
*/
|
|
4335
|
+
writeImage: (dataURL: string) => Promise<void>;
|
|
4336
|
+
/**
|
|
4337
|
+
* 이미지 읽기 (데스크톱 전용, Data URL 반환)
|
|
4338
|
+
*/
|
|
4339
|
+
readImage: () => Promise<string | null>;
|
|
4340
|
+
};
|
|
4341
|
+
/**
|
|
4342
|
+
* 크로스 플랫폼 파일 시스템 API
|
|
4343
|
+
*/
|
|
4344
|
+
filesystem: {
|
|
4345
|
+
/**
|
|
4346
|
+
* 파일 선택 다이얼로그 (데스크톱) 또는 파일 input (웹)
|
|
4347
|
+
*/
|
|
4348
|
+
pickFile: (options?: {
|
|
4349
|
+
accept?: string;
|
|
4350
|
+
multiple?: boolean;
|
|
4351
|
+
filters?: Array<{
|
|
4352
|
+
name: string;
|
|
4353
|
+
extensions: string[];
|
|
4354
|
+
}>;
|
|
4355
|
+
}) => Promise<File[] | null>;
|
|
4356
|
+
/**
|
|
4357
|
+
* 파일 저장
|
|
4358
|
+
*/
|
|
4359
|
+
saveFile: (content: string | Blob, filename: string, options?: {
|
|
4360
|
+
filters?: Array<{
|
|
4361
|
+
name: string;
|
|
4362
|
+
extensions: string[];
|
|
4363
|
+
}>;
|
|
4364
|
+
}) => Promise<boolean>;
|
|
4365
|
+
/**
|
|
4366
|
+
* 파일 읽기 (데스크톱/모바일)
|
|
4367
|
+
*/
|
|
4368
|
+
readFile: (path: string) => Promise<string | null>;
|
|
4369
|
+
/**
|
|
4370
|
+
* 파일 존재 확인 (데스크톱/모바일)
|
|
4371
|
+
*/
|
|
4372
|
+
exists: (path: string) => Promise<boolean>;
|
|
4373
|
+
};
|
|
4374
|
+
/**
|
|
4375
|
+
* 크로스 플랫폼 카메라/이미지 API
|
|
4376
|
+
*/
|
|
4377
|
+
camera: {
|
|
4378
|
+
/**
|
|
4379
|
+
* 카메라로 사진 촬영 (모바일) 또는 파일 선택 (웹/데스크톱)
|
|
4380
|
+
*/
|
|
4381
|
+
takePicture: (options?: CameraOptions) => Promise<ImageResult | null>;
|
|
4382
|
+
/**
|
|
4383
|
+
* 갤러리에서 이미지 선택
|
|
4384
|
+
*/
|
|
4385
|
+
pickImage: (options?: PickImageOptions) => Promise<ImageResult[] | null>;
|
|
4386
|
+
};
|
|
4387
|
+
/**
|
|
4388
|
+
* 크로스 플랫폼 위치 API
|
|
4389
|
+
*/
|
|
4390
|
+
location: {
|
|
4391
|
+
/**
|
|
4392
|
+
* 현재 위치 가져오기
|
|
4393
|
+
*/
|
|
4394
|
+
getCurrentPosition: (options?: LocationOptions) => Promise<Position>;
|
|
4395
|
+
};
|
|
4396
|
+
/**
|
|
4397
|
+
* 크로스 플랫폼 알림 API
|
|
4398
|
+
*/
|
|
4399
|
+
notification: {
|
|
4400
|
+
/**
|
|
4401
|
+
* 알림 표시
|
|
4402
|
+
*/
|
|
4403
|
+
show: (options: NotificationOptions) => Promise<boolean>;
|
|
4404
|
+
/**
|
|
4405
|
+
* 알림 권한 요청
|
|
4406
|
+
*/
|
|
4407
|
+
requestPermission: () => Promise<boolean>;
|
|
4408
|
+
};
|
|
4409
|
+
/**
|
|
4410
|
+
* 크로스 플랫폼 셸 API
|
|
4411
|
+
*/
|
|
4412
|
+
shell: {
|
|
4413
|
+
/**
|
|
4414
|
+
* 외부 URL 열기
|
|
4415
|
+
*/
|
|
4416
|
+
openExternal: (url: string) => Promise<boolean>;
|
|
4417
|
+
};
|
|
4418
|
+
/**
|
|
4419
|
+
* 데스크톱 전용 창 제어 API
|
|
4420
|
+
*/
|
|
4421
|
+
window: {
|
|
4422
|
+
minimize: () => Promise<void>;
|
|
4423
|
+
maximize: () => Promise<void>;
|
|
4424
|
+
unmaximize: () => Promise<void>;
|
|
4425
|
+
close: () => Promise<void>;
|
|
4426
|
+
isMaximized: () => Promise<boolean>;
|
|
4427
|
+
setTitle: (title: string) => Promise<void>;
|
|
4428
|
+
setFullScreen: (flag: boolean) => Promise<void>;
|
|
4429
|
+
};
|
|
4430
|
+
/**
|
|
4431
|
+
* 데스크톱 전용 시스템 정보 API
|
|
4432
|
+
*/
|
|
4433
|
+
system: {
|
|
4434
|
+
getInfo: () => Promise<SystemInfo | null>;
|
|
4435
|
+
getMemory: () => Promise<MemoryInfo | null>;
|
|
4436
|
+
};
|
|
4437
|
+
/**
|
|
4438
|
+
* 모바일 전용 생체인증 API
|
|
4439
|
+
*/
|
|
4440
|
+
biometric: {
|
|
4441
|
+
isAvailable: () => Promise<BiometricInfo | null>;
|
|
4442
|
+
authenticate: (options?: BiometricOptions) => Promise<BiometricResult | null>;
|
|
4443
|
+
};
|
|
4444
|
+
/**
|
|
4445
|
+
* 모바일 전용 보안 저장소 API
|
|
4446
|
+
*/
|
|
4447
|
+
secureStore: {
|
|
4448
|
+
setItem: (key: string, value: string) => Promise<boolean>;
|
|
4449
|
+
getItem: (key: string) => Promise<string | null>;
|
|
4450
|
+
deleteItem: (key: string) => Promise<boolean>;
|
|
4451
|
+
};
|
|
4452
|
+
/**
|
|
4453
|
+
* 모바일 전용 AdMob API
|
|
4454
|
+
*/
|
|
4455
|
+
admob: {
|
|
4456
|
+
showInterstitial: () => Promise<boolean>;
|
|
4457
|
+
showRewarded: () => Promise<boolean>;
|
|
4458
|
+
};
|
|
4459
|
+
}
|
|
4460
|
+
|
|
3997
4461
|
/**
|
|
3998
4462
|
* WebTransport-based Game Client
|
|
3999
4463
|
*
|
|
@@ -4277,6 +4741,11 @@ declare class ConnectBase {
|
|
|
4277
4741
|
* 광고 API (Google AdSense)
|
|
4278
4742
|
*/
|
|
4279
4743
|
readonly ads: AdsAPI;
|
|
4744
|
+
/**
|
|
4745
|
+
* 네이티브 브릿지 API (크로스 플랫폼)
|
|
4746
|
+
* 웹, 모바일(React Native), 데스크톱(Electron)에서 동일한 API로 네이티브 기능 사용
|
|
4747
|
+
*/
|
|
4748
|
+
readonly native: NativeAPI;
|
|
4280
4749
|
constructor(config?: ConnectBaseConfig);
|
|
4281
4750
|
/**
|
|
4282
4751
|
* 수동으로 토큰 설정 (기존 토큰으로 세션 복원 시)
|
|
@@ -4292,4 +4761,4 @@ declare class ConnectBase {
|
|
|
4292
4761
|
updateConfig(config: Partial<ConnectBaseConfig>): void;
|
|
4293
4762
|
}
|
|
4294
4763
|
|
|
4295
|
-
export { type AdReportResponse, type AdReportSummary, AdsAPI, type AggregateResult, type AggregateStage, ApiError, type ApiKeyItem, type AppStatsResponse, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchSetPageMetaRequest, type BillingCycle, type BillingKeyResponse, type BulkCreateResponse, type BulkError, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type Channel, type ChannelMembership, type ChargeWithBillingKeyRequest, type ChargeWithBillingKeyResponse, type ChatMessage, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateColumnRequest, type CreateDataRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreateRelationRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, type DailyReport, type DataItem, type DataType, type DeleteWhereResponse, type DeviceInfo, type EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type FetchApiKeysResponse, type FetchDataResponse, type FetchFilesResponse, type FileItem, GameAPI, type GameAction, type GameClientConfig, type GameConnectionState, type GameConnectionStatus, type GameDelta, type GameEventHandlers, type GamePlayer, GameRoom, type GameRoomConfig, type GameRoomInfo, GameRoomTransport, type GameServerMessage, type GameServerMessageType, type GameState, type GameTransportConfig, type GenerateUploadURLByPathRequest, type GenerateUploadURLRequest, type GenerateUploadURLResponse, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GeoWithin, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, type GuestMemberSignInResponse, type HistoryResponse, type ICEServer, type ICEServersResponse, type IndexAnalysis, type IndexRecommendation, type InitUploadResponse, type InvokeFunctionRequest, type InvokeFunctionResponse, type IssueBillingKeyRequest, type IssueBillingKeyResponse, type JoinQueueRequest, type JoinRoomRequest, type JoinRoomResponse, type ListBillingKeysResponse, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchmakingTicket, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MessageHandler, type MoveFileRequest, type OAuthCallbackResponse, type OAuthProvider, type PageMetaResponse, type PauseSubscriptionRequest, type PaymentDetail, type PaymentStatus, type PeerInfo, type PlayerEvent, type Playlist, type PlaylistItem, type PongMessage, type PopulateOption, type PreparePaymentRequest, type PreparePaymentResponse, type PushPlatform, type QualityProgress, type QueryOptions, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type RetentionPolicy, type RoomInfo, type RoomStats, type RoomsResponse, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type ServerMessage, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type StateChange, type StateChangeHandler, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, type StreamURLResponse, type SubscribeOptions, type SubscribeTopicRequest, type SubscribedData, type Subscription, type SubscriptionPaymentResponse, type SubscriptionPaymentStatus, type SubscriptionResponse, type SubscriptionStatus, type SuperChat, type TTLConfig, type TableIndex, type TableRelation, type TableSchema, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type UpdateApiKeyRequest, type UpdateApiKeyResponse, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateDataRequest, type UpdateLobbyRequest, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoVisibility, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };
|
|
4764
|
+
export { type AdReportResponse, type AdReportSummary, AdsAPI, type AggregateResult, type AggregateStage, ApiError, type ApiKeyItem, type AppStatsResponse, type AtomicOperator, type AtomicOperatorType, AuthError, type AuthSettingsResponse, type BackupInfo, type BatchOperation, type BatchSetPageMetaRequest, type BillingCycle, type BillingKeyResponse, type BiometricInfo, type BiometricResult, type BulkCreateResponse, type BulkError, type CPUInfo, type CancelPaymentRequest, type CancelPaymentResponse, type CancelSubscriptionRequest, type CategoryInfo, type Channel, type ChannelMembership, type ChargeWithBillingKeyRequest, type ChargeWithBillingKeyResponse, type ChatMessage, type ClientMessage, type ColumnSchema, type CommentListResponse, type CompleteUploadRequest, type CompleteUploadResponse, type ConfirmBillingKeyRequest, type ConfirmPaymentRequest, type ConfirmPaymentResponse, ConnectBase, type ConnectBaseConfig, type ConnectedData, type ConnectionState, type CreateApiKeyRequest, type CreateApiKeyResponse, type CreateBackupRequest, type CreateChannelRequest, type CreateColumnRequest, type CreateDataRequest, type CreateFolderRequest, type CreateFolderResponse, type CreateIndexRequest, type CreateLobbyRequest, type CreatePlaylistRequest, type CreateRelationRequest, type CreateSecurityRuleRequest, type CreateSubscriptionRequest, type CreateTableRequest, type CreateTriggerRequest, type DailyReport, type DataItem, type DataType, type DeleteWhereResponse, type DeviceInfo, type EnabledProviderInfo, type EnabledProvidersResponse, type ErrorHandler, type ErrorMessage, type ErrorReport, type ErrorTrackerConfig, type ErrorType, type FetchApiKeysResponse, type FetchDataResponse, type FetchFilesResponse, type FileItem, type FileStats, GameAPI, type GameAction, type GameClientConfig, type GameConnectionState, type GameConnectionStatus, type GameDelta, type GameEventHandlers, type GamePlayer, GameRoom, type GameRoomConfig, type GameRoomInfo, GameRoomTransport, type GameServerMessage, type GameServerMessageType, type GameState, type GameTransportConfig, type GenerateUploadURLByPathRequest, type GenerateUploadURLRequest, type GenerateUploadURLResponse, type GeoNear, type GeoPoint, type GeoPolygon, type GeoQuery, type GeoResponse, type GeoResult, type GeoWithin, type GetAuthorizationURLResponse, type GetFileByPathResponse, type GoogleConnectionStatus, type GuestMemberSignInResponse, type HistoryResponse, type ICEServer, type ICEServersResponse, type ImageResult, type IndexAnalysis, type IndexRecommendation, type InitUploadResponse, type InvokeFunctionRequest, type InvokeFunctionResponse, type IssueBillingKeyRequest, type IssueBillingKeyResponse, type JoinQueueRequest, type JoinRoomRequest, type JoinRoomResponse, type ListBillingKeysResponse, type ListPageMetasResponse, type ListSubscriptionPaymentsRequest, type ListSubscriptionPaymentsResponse, type ListSubscriptionsRequest, type ListSubscriptionsResponse, type LobbyInfo, type LobbyInvite, type LobbyMember, type LobbyVisibility, type MatchmakingTicket, type MemberSignInRequest, type MemberSignInResponse, type MemberSignUpRequest, type MemberSignUpResponse, type MembershipTier, type MemoryInfo, type MessageHandler, type MoveFileRequest, NativeAPI, type OAuthCallbackResponse, type OAuthProvider, type OpenDialogOptions, type OpenDialogResult, type PageMetaResponse, type PauseSubscriptionRequest, type PaymentDetail, type PaymentStatus, type PeerInfo, type Platform, type PlayerEvent, type Playlist, type PlaylistItem, type PongMessage, type PopulateOption, type Position, type PreparePaymentRequest, type PreparePaymentResponse, type PushPlatform, type QualityProgress, type QueryOptions, type RealtimeConnectOptions, type RealtimeMessage, type RegisterDeviceRequest, type RelationType, type RenameFileRequest, type RenameFileResponse, type RetentionPolicy, type RoomInfo, type RoomStats, type RoomsResponse, type SaveDialogOptions, type SaveDialogResult, type SearchOptions, type SearchResponse, type SearchResult, type SecurityRule, type SendOptions, type ServerMessage, type SetPageMetaRequest, type Shorts, type ShortsListResponse, type SignalingMessage, type SignalingMessageType, type SlowQueryInfo, type StateChange, type StateChangeHandler, type StreamDoneCallback, type StreamDoneData, type StreamErrorCallback, type StreamHandlers, type StreamMessage, type StreamOptions, type StreamSession, type StreamTokenCallback, type StreamURLResponse, type SubscribeOptions, type SubscribeTopicRequest, type SubscribedData, type Subscription, type SubscriptionPaymentResponse, type SubscriptionPaymentStatus, type SubscriptionResponse, type SubscriptionStatus, type SuperChat, type SystemInfo, type TTLConfig, type TableIndex, type TableRelation, type TableSchema, type TransactionRead, type TransactionWrite, type TranscodeStatus, type TransportType, type Trigger, type TriggerEvent, type TriggerHandlerType, type UpdateApiKeyRequest, type UpdateApiKeyResponse, type UpdateBillingKeyRequest, type UpdateChannelRequest, type UpdateColumnRequest, type UpdateDataRequest, type UpdateLobbyRequest, type UpdateSecurityRuleRequest, type UpdateSubscriptionRequest, type UpdateTriggerRequest, type UpdateVideoRequest, type UploadByPathOptions, type UploadFileResponse, type UploadOptions, type UploadProgress, type VAPIDPublicKeyResponse, type ValidateResponse, type Video, type VideoComment, type VideoListOptions, type VideoListResponse, VideoProcessingError, type VideoQuality, type VideoStatus, type VideoVisibility, type WaitOptions, type WatchHistoryItem, type WebPushSubscription, type WebRTCConnectOptions, type WebRTCConnectionState, type WebRTCMode, type WhereCondition, type WhereOperator, ConnectBase as default, isWebTransportSupported };
|