@luminocity/lemonate-gateway 8.2.0 → 8.2.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.
- package/dist/index.d.ts +217 -0
- package/dist/lemonate-gateway.cjs.js +5 -5
- package/dist/lemonate-gateway.cjs.js.map +1 -1
- package/dist/lemonate-gateway.esm.js +3 -3
- package/dist/lemonate-gateway.esm.js.map +1 -1
- package/dist/lemonate-gateway.umd.js +5 -5
- package/dist/lemonate-gateway.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { CustomField as CustomField$1, CustomFieldDefinition as CustomFieldDefin
|
|
|
6
6
|
import { WebsocketProvider } from 'y-websocket';
|
|
7
7
|
import * as awarenessProtocol from 'y-protocols/awareness';
|
|
8
8
|
import { CollabDocument } from '@/collabstate/CollabDocument';
|
|
9
|
+
import { ItemCopier } from '@/ItemCopier';
|
|
9
10
|
import { ScriptItem as ScriptItem$1, Script as Script$1 } from '@/repo/Script';
|
|
10
11
|
import { ScriptField as ScriptField$1 } from '@/repo/ScriptField';
|
|
11
12
|
import { TemplateEntry as TemplateEntry$1 } from '@/repo/TemplateEntry';
|
|
@@ -1297,6 +1298,11 @@ type ApiClientOptions = {
|
|
|
1297
1298
|
websocketPath: string;
|
|
1298
1299
|
debug: boolean;
|
|
1299
1300
|
};
|
|
1301
|
+
type ItemCopyResult = {
|
|
1302
|
+
original: string;
|
|
1303
|
+
clone: string;
|
|
1304
|
+
replaced?: string;
|
|
1305
|
+
};
|
|
1300
1306
|
/**
|
|
1301
1307
|
* Class representing an ApiClient.
|
|
1302
1308
|
* @extends EventEmitter
|
|
@@ -1328,6 +1334,7 @@ declare class ApiClient extends EventEmitter {
|
|
|
1328
1334
|
jobManager: JobManager;
|
|
1329
1335
|
serializer: Serializer;
|
|
1330
1336
|
collab: Collab;
|
|
1337
|
+
itemCopier: ItemCopier;
|
|
1331
1338
|
eventBus: typeof eventBus;
|
|
1332
1339
|
api: AxiosInstance;
|
|
1333
1340
|
ws: WebSocket | null;
|
|
@@ -1366,6 +1373,7 @@ declare class ApiClient extends EventEmitter {
|
|
|
1366
1373
|
* @param data - The message to send.
|
|
1367
1374
|
*/
|
|
1368
1375
|
websocketSend(data: string): void;
|
|
1376
|
+
getItemCopier(): ItemCopier;
|
|
1369
1377
|
getCollab(): Collab;
|
|
1370
1378
|
getCollabUrl(): string;
|
|
1371
1379
|
/**
|
|
@@ -1768,6 +1776,14 @@ declare class ApiClient extends EventEmitter {
|
|
|
1768
1776
|
* @returns {Promise<Object>} The item history.
|
|
1769
1777
|
*/
|
|
1770
1778
|
getItemHistory(id: any): Promise<any>;
|
|
1779
|
+
/**
|
|
1780
|
+
* Copies one or more items to a target folder. Returns a list of objects containing clone
|
|
1781
|
+
* @param itemIds array of item IDs to copy
|
|
1782
|
+
* @param targetFolderId target folder id
|
|
1783
|
+
* @param deepCopy should linked items also be copied?
|
|
1784
|
+
* @return Promise<ItemCopyResult[]>
|
|
1785
|
+
*/
|
|
1786
|
+
copyItems(itemIds: string[], targetFolderId: string, deepCopy: boolean, overwrite: boolean): Promise<ItemCopyResult[]>;
|
|
1771
1787
|
/**
|
|
1772
1788
|
* Create a new item.
|
|
1773
1789
|
* @param data - The item data.
|
|
@@ -10401,6 +10417,207 @@ declare function getDatatypes(): ({
|
|
|
10401
10417
|
type: string;
|
|
10402
10418
|
}[];
|
|
10403
10419
|
typeName: string;
|
|
10420
|
+
} | {
|
|
10421
|
+
displayName: string;
|
|
10422
|
+
fields: ({
|
|
10423
|
+
datatype: string;
|
|
10424
|
+
defaultValue: string;
|
|
10425
|
+
displayName: string;
|
|
10426
|
+
name: string;
|
|
10427
|
+
type: string;
|
|
10428
|
+
options?: undefined;
|
|
10429
|
+
minValue?: undefined;
|
|
10430
|
+
if?: undefined;
|
|
10431
|
+
maxValue?: undefined;
|
|
10432
|
+
step?: undefined;
|
|
10433
|
+
info?: undefined;
|
|
10434
|
+
} | {
|
|
10435
|
+
datatype: string;
|
|
10436
|
+
defaultValue: boolean;
|
|
10437
|
+
displayName: string;
|
|
10438
|
+
name: string;
|
|
10439
|
+
type: string;
|
|
10440
|
+
options?: undefined;
|
|
10441
|
+
minValue?: undefined;
|
|
10442
|
+
if?: undefined;
|
|
10443
|
+
maxValue?: undefined;
|
|
10444
|
+
step?: undefined;
|
|
10445
|
+
info?: undefined;
|
|
10446
|
+
} | {
|
|
10447
|
+
datatype: string;
|
|
10448
|
+
defaultValue: {
|
|
10449
|
+
r: number;
|
|
10450
|
+
g: number;
|
|
10451
|
+
b: number;
|
|
10452
|
+
a: number;
|
|
10453
|
+
};
|
|
10454
|
+
displayName: string;
|
|
10455
|
+
name: string;
|
|
10456
|
+
type: string;
|
|
10457
|
+
options?: undefined;
|
|
10458
|
+
minValue?: undefined;
|
|
10459
|
+
if?: undefined;
|
|
10460
|
+
maxValue?: undefined;
|
|
10461
|
+
step?: undefined;
|
|
10462
|
+
info?: undefined;
|
|
10463
|
+
} | {
|
|
10464
|
+
datatype: string;
|
|
10465
|
+
defaultValue: string;
|
|
10466
|
+
displayName: string;
|
|
10467
|
+
name: string;
|
|
10468
|
+
type: string;
|
|
10469
|
+
options: string[];
|
|
10470
|
+
minValue?: undefined;
|
|
10471
|
+
if?: undefined;
|
|
10472
|
+
maxValue?: undefined;
|
|
10473
|
+
step?: undefined;
|
|
10474
|
+
info?: undefined;
|
|
10475
|
+
} | {
|
|
10476
|
+
datatype: string;
|
|
10477
|
+
defaultValue: number;
|
|
10478
|
+
displayName: string;
|
|
10479
|
+
minValue: number;
|
|
10480
|
+
name: string;
|
|
10481
|
+
type: string;
|
|
10482
|
+
if: {
|
|
10483
|
+
FogType: string;
|
|
10484
|
+
$or?: undefined;
|
|
10485
|
+
EnableFogNoise?: undefined;
|
|
10486
|
+
EnableFogHeight?: undefined;
|
|
10487
|
+
EnableFogWidth?: undefined;
|
|
10488
|
+
};
|
|
10489
|
+
options?: undefined;
|
|
10490
|
+
maxValue?: undefined;
|
|
10491
|
+
step?: undefined;
|
|
10492
|
+
info?: undefined;
|
|
10493
|
+
} | {
|
|
10494
|
+
datatype: string;
|
|
10495
|
+
defaultValue: number;
|
|
10496
|
+
displayName: string;
|
|
10497
|
+
minValue: number;
|
|
10498
|
+
maxValue: number;
|
|
10499
|
+
name: string;
|
|
10500
|
+
type: string;
|
|
10501
|
+
step: number;
|
|
10502
|
+
if: {
|
|
10503
|
+
$or: {
|
|
10504
|
+
FogType: string;
|
|
10505
|
+
}[];
|
|
10506
|
+
FogType?: undefined;
|
|
10507
|
+
EnableFogNoise?: undefined;
|
|
10508
|
+
EnableFogHeight?: undefined;
|
|
10509
|
+
EnableFogWidth?: undefined;
|
|
10510
|
+
};
|
|
10511
|
+
options?: undefined;
|
|
10512
|
+
info?: undefined;
|
|
10513
|
+
} | {
|
|
10514
|
+
datatype: string;
|
|
10515
|
+
defaultValue: boolean;
|
|
10516
|
+
displayName: string;
|
|
10517
|
+
name: string;
|
|
10518
|
+
info: string;
|
|
10519
|
+
type: string;
|
|
10520
|
+
options?: undefined;
|
|
10521
|
+
minValue?: undefined;
|
|
10522
|
+
if?: undefined;
|
|
10523
|
+
maxValue?: undefined;
|
|
10524
|
+
step?: undefined;
|
|
10525
|
+
} | {
|
|
10526
|
+
datatype: string;
|
|
10527
|
+
defaultValue: number;
|
|
10528
|
+
displayName: string;
|
|
10529
|
+
minValue: number;
|
|
10530
|
+
name: string;
|
|
10531
|
+
type: string;
|
|
10532
|
+
step: number;
|
|
10533
|
+
if: {
|
|
10534
|
+
EnableFogNoise: boolean;
|
|
10535
|
+
FogType?: undefined;
|
|
10536
|
+
$or?: undefined;
|
|
10537
|
+
EnableFogHeight?: undefined;
|
|
10538
|
+
EnableFogWidth?: undefined;
|
|
10539
|
+
};
|
|
10540
|
+
options?: undefined;
|
|
10541
|
+
maxValue?: undefined;
|
|
10542
|
+
info?: undefined;
|
|
10543
|
+
} | {
|
|
10544
|
+
datatype: string;
|
|
10545
|
+
defaultValue: number;
|
|
10546
|
+
displayName: string;
|
|
10547
|
+
maxValue: number;
|
|
10548
|
+
minValue: number;
|
|
10549
|
+
name: string;
|
|
10550
|
+
type: string;
|
|
10551
|
+
step: number;
|
|
10552
|
+
if: {
|
|
10553
|
+
EnableFogNoise: boolean;
|
|
10554
|
+
FogType?: undefined;
|
|
10555
|
+
$or?: undefined;
|
|
10556
|
+
EnableFogHeight?: undefined;
|
|
10557
|
+
EnableFogWidth?: undefined;
|
|
10558
|
+
};
|
|
10559
|
+
options?: undefined;
|
|
10560
|
+
info?: undefined;
|
|
10561
|
+
} | {
|
|
10562
|
+
datatype: string;
|
|
10563
|
+
defaultValue: number;
|
|
10564
|
+
displayName: string;
|
|
10565
|
+
name: string;
|
|
10566
|
+
type: string;
|
|
10567
|
+
step: number;
|
|
10568
|
+
if: {
|
|
10569
|
+
EnableFogHeight: boolean;
|
|
10570
|
+
FogType?: undefined;
|
|
10571
|
+
$or?: undefined;
|
|
10572
|
+
EnableFogNoise?: undefined;
|
|
10573
|
+
EnableFogWidth?: undefined;
|
|
10574
|
+
};
|
|
10575
|
+
options?: undefined;
|
|
10576
|
+
minValue?: undefined;
|
|
10577
|
+
maxValue?: undefined;
|
|
10578
|
+
info?: undefined;
|
|
10579
|
+
} | {
|
|
10580
|
+
datatype: string;
|
|
10581
|
+
defaultValue: number;
|
|
10582
|
+
displayName: string;
|
|
10583
|
+
name: string;
|
|
10584
|
+
type: string;
|
|
10585
|
+
step: number;
|
|
10586
|
+
if: {
|
|
10587
|
+
EnableFogWidth: boolean;
|
|
10588
|
+
FogType?: undefined;
|
|
10589
|
+
$or?: undefined;
|
|
10590
|
+
EnableFogNoise?: undefined;
|
|
10591
|
+
EnableFogHeight?: undefined;
|
|
10592
|
+
};
|
|
10593
|
+
options?: undefined;
|
|
10594
|
+
minValue?: undefined;
|
|
10595
|
+
maxValue?: undefined;
|
|
10596
|
+
info?: undefined;
|
|
10597
|
+
} | {
|
|
10598
|
+
datatype: string;
|
|
10599
|
+
defaultValue: number;
|
|
10600
|
+
maxValue: number;
|
|
10601
|
+
displayName: string;
|
|
10602
|
+
info: string;
|
|
10603
|
+
name: string;
|
|
10604
|
+
type: string;
|
|
10605
|
+
step: number;
|
|
10606
|
+
options?: undefined;
|
|
10607
|
+
minValue?: undefined;
|
|
10608
|
+
if?: undefined;
|
|
10609
|
+
})[];
|
|
10610
|
+
inputs: {
|
|
10611
|
+
displayName: string;
|
|
10612
|
+
name: string;
|
|
10613
|
+
types: string[];
|
|
10614
|
+
}[];
|
|
10615
|
+
outputs: {
|
|
10616
|
+
displayName: string;
|
|
10617
|
+
name: string;
|
|
10618
|
+
type: string;
|
|
10619
|
+
}[];
|
|
10620
|
+
typeName: string;
|
|
10404
10621
|
} | {
|
|
10405
10622
|
displayName: string;
|
|
10406
10623
|
fields: ({
|