@luminocity/lemonate-gateway 8.2.27 → 8.2.29
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 +78 -51
- package/dist/lemonate-gateway.cjs.js +3 -3
- 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 +3 -3
- package/dist/lemonate-gateway.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,16 +3,10 @@ import * as axios from 'axios';
|
|
|
3
3
|
import { AxiosInstance, ResponseType } from 'axios';
|
|
4
4
|
import WebSocket from 'isomorphic-ws';
|
|
5
5
|
import FormData from 'form-data';
|
|
6
|
-
import { CustomField as CustomField$1, CustomFieldDefinition as CustomFieldDefinition$1 } from '@/repo/CustomField';
|
|
7
6
|
import { WebsocketProvider } from 'y-websocket';
|
|
8
7
|
import * as awarenessProtocol from 'y-protocols/awareness';
|
|
9
|
-
import
|
|
10
|
-
import { ItemCopier } from '@/ItemCopier';
|
|
11
|
-
import { ExecutableExporter } from '@/ExecutableExporter';
|
|
8
|
+
import * as Y from 'yjs';
|
|
12
9
|
import { Buffer as Buffer$1 } from 'buffer';
|
|
13
|
-
import { ScriptItem as ScriptItem$1, Script as Script$1 } from '@/repo/Script';
|
|
14
|
-
import { ScriptField as ScriptField$1 } from '@/repo/ScriptField';
|
|
15
|
-
import { TemplateEntry as TemplateEntry$1 } from '@/repo/TemplateEntry';
|
|
16
10
|
|
|
17
11
|
declare class Snapshot {
|
|
18
12
|
id: string;
|
|
@@ -681,7 +675,7 @@ declare class JobManager {
|
|
|
681
675
|
jobs: Map<string, JobEntry>;
|
|
682
676
|
constructor(apiClient: any);
|
|
683
677
|
getJobs(): JobEntry[];
|
|
684
|
-
execute(type: string, elements: any[], parameters: any[], progressCallback
|
|
678
|
+
execute(type: string, elements: any[], parameters: any[], progressCallback?: Function | undefined, requiredParameters?: any): Promise<JobState>;
|
|
685
679
|
}
|
|
686
680
|
|
|
687
681
|
type PublishedVersion = {
|
|
@@ -791,12 +785,14 @@ declare class Block extends Snapshotable {
|
|
|
791
785
|
isSelected: boolean;
|
|
792
786
|
isExpanded: boolean;
|
|
793
787
|
scripts: Script[];
|
|
788
|
+
subNodeId: string | undefined;
|
|
794
789
|
inputs: any[];
|
|
795
790
|
outputs: any[];
|
|
796
791
|
posX: number;
|
|
797
792
|
posY: number;
|
|
798
793
|
constructor(id?: string | Snapshot | undefined, parent?: Block | undefined, type?: string | undefined, name?: string | undefined, displayName?: string | undefined, item?: PreparedItem | undefined);
|
|
799
794
|
getId(): string;
|
|
795
|
+
setSubNodeId(id: string | undefined): void;
|
|
800
796
|
getPositionInParent(): number;
|
|
801
797
|
refreshFieldDependencies(): void;
|
|
802
798
|
resetFieldValues(withChildren?: boolean): void;
|
|
@@ -955,6 +951,34 @@ declare class Field extends Snapshotable {
|
|
|
955
951
|
rollbackFromSnapshot(snapshot: Snapshot): void;
|
|
956
952
|
}
|
|
957
953
|
|
|
954
|
+
type CustomFieldDefinition = {
|
|
955
|
+
name: string;
|
|
956
|
+
defaultValue: any;
|
|
957
|
+
type: string;
|
|
958
|
+
};
|
|
959
|
+
declare class CustomField extends Snapshotable {
|
|
960
|
+
id: string;
|
|
961
|
+
name: string | undefined;
|
|
962
|
+
displayName: string | undefined;
|
|
963
|
+
value: any;
|
|
964
|
+
type: string | undefined;
|
|
965
|
+
datatype: string | undefined;
|
|
966
|
+
linkableTypes: string[];
|
|
967
|
+
order: number;
|
|
968
|
+
constructor(name?: string | undefined, value?: any | undefined, item?: PreparedItem | undefined);
|
|
969
|
+
getId(): string;
|
|
970
|
+
setName(name: string | undefined): void;
|
|
971
|
+
setType(name: string): void;
|
|
972
|
+
setOrder(order: number): void;
|
|
973
|
+
clone(fieldOverrides?: Map<string, string>): CustomField;
|
|
974
|
+
clearDefinition(): void;
|
|
975
|
+
setDefinition(def: any): void;
|
|
976
|
+
_toBoolean(value: any): any;
|
|
977
|
+
_updateDisplayName(): void;
|
|
978
|
+
createSnapshot(): Snapshot;
|
|
979
|
+
rollbackFromSnapshot(snapshot: Snapshot): void;
|
|
980
|
+
}
|
|
981
|
+
|
|
958
982
|
declare class PreparedItem extends AggregatedItem {
|
|
959
983
|
links?: {
|
|
960
984
|
to: string;
|
|
@@ -966,7 +990,7 @@ declare class PreparedItem extends AggregatedItem {
|
|
|
966
990
|
isDirty: boolean;
|
|
967
991
|
fieldInstances: Field[];
|
|
968
992
|
userFieldInstances: Field[];
|
|
969
|
-
customFieldInstances: CustomField
|
|
993
|
+
customFieldInstances: CustomField[];
|
|
970
994
|
packageContent?: PreparedItem;
|
|
971
995
|
packageType?: string;
|
|
972
996
|
public: boolean;
|
|
@@ -978,8 +1002,8 @@ declare class PreparedItem extends AggregatedItem {
|
|
|
978
1002
|
resultingAcl?: Acl;
|
|
979
1003
|
userData: any;
|
|
980
1004
|
constructor(data: any);
|
|
981
|
-
createCustomFieldInstances(definitions: CustomFieldDefinition
|
|
982
|
-
addCustomField(customField: CustomField
|
|
1005
|
+
createCustomFieldInstances(definitions: CustomFieldDefinition[]): void;
|
|
1006
|
+
addCustomField(customField: CustomField): void;
|
|
983
1007
|
markDirty(): void;
|
|
984
1008
|
makeIdsUnique(): void;
|
|
985
1009
|
clone(makeIdsUnique?: boolean): PreparedItem;
|
|
@@ -1273,6 +1297,9 @@ declare global {
|
|
|
1273
1297
|
}
|
|
1274
1298
|
}
|
|
1275
1299
|
|
|
1300
|
+
declare class CollabDocument extends Y.Doc {
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1276
1303
|
type CollabUser = {
|
|
1277
1304
|
id: string;
|
|
1278
1305
|
key: number;
|
|
@@ -1305,6 +1332,33 @@ declare class Collab {
|
|
|
1305
1332
|
endCollaboration(): void;
|
|
1306
1333
|
}
|
|
1307
1334
|
|
|
1335
|
+
type CopyElement = {
|
|
1336
|
+
_id: string;
|
|
1337
|
+
isFolder: boolean;
|
|
1338
|
+
};
|
|
1339
|
+
type CopyElementTestResult = {
|
|
1340
|
+
_id: string;
|
|
1341
|
+
name: string | undefined;
|
|
1342
|
+
isFolder: boolean;
|
|
1343
|
+
conflicted: boolean;
|
|
1344
|
+
conflictedItemId: string | undefined;
|
|
1345
|
+
data: any;
|
|
1346
|
+
};
|
|
1347
|
+
declare class ItemCopier {
|
|
1348
|
+
apiClient: ApiClient;
|
|
1349
|
+
constructor(apiClient: ApiClient);
|
|
1350
|
+
testCopyItems(elements: CopyElement[], targetFolderId: string): Promise<CopyElementTestResult[]>;
|
|
1351
|
+
copyItems(elements: CopyElementTestResult[], targetFolderId: string, deepCopy?: boolean, overwrite?: boolean): Promise<ItemCopyResult[]>;
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
type Platform = "windows" | "linux" | "macos";
|
|
1355
|
+
declare class ExecutableExporter {
|
|
1356
|
+
apiClient: ApiClient;
|
|
1357
|
+
jobManager: JobManager;
|
|
1358
|
+
constructor(apiClient: ApiClient);
|
|
1359
|
+
executeExport(packageId: string, platform: Platform, destinationFolderId: string, engineVersion: string): Promise<void>;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1308
1362
|
/**
|
|
1309
1363
|
* @fileoverview ApiClient class for handling API interactions with the Lumino cloud service.
|
|
1310
1364
|
* @module ApiClient
|
|
@@ -1333,6 +1387,7 @@ type ApiClientOptions = {
|
|
|
1333
1387
|
storageSizeMib: number;
|
|
1334
1388
|
requestClientId: string | null;
|
|
1335
1389
|
debug: boolean;
|
|
1390
|
+
withCollaboration: boolean;
|
|
1336
1391
|
};
|
|
1337
1392
|
type ItemCopyResult = {
|
|
1338
1393
|
original: string;
|
|
@@ -1373,7 +1428,7 @@ declare class ApiClient extends EventEmitter {
|
|
|
1373
1428
|
attachmentCache: AttachmentCache;
|
|
1374
1429
|
jobManager: JobManager;
|
|
1375
1430
|
serializer: Serializer;
|
|
1376
|
-
collab
|
|
1431
|
+
collab?: Collab;
|
|
1377
1432
|
itemCopier: ItemCopier;
|
|
1378
1433
|
executableExporter: ExecutableExporter;
|
|
1379
1434
|
eventBus: typeof eventBus;
|
|
@@ -1421,7 +1476,7 @@ declare class ApiClient extends EventEmitter {
|
|
|
1421
1476
|
websocketSend(data: string): void;
|
|
1422
1477
|
getItemCopier(): ItemCopier;
|
|
1423
1478
|
getExecutableExporter(): ExecutableExporter;
|
|
1424
|
-
getCollab(): Collab;
|
|
1479
|
+
getCollab(): Collab | undefined;
|
|
1425
1480
|
getCollabUrl(): string;
|
|
1426
1481
|
/**
|
|
1427
1482
|
* Get a new Publisher instance.
|
|
@@ -3980,7 +4035,7 @@ declare class ItemPreparator {
|
|
|
3980
4035
|
setItemFetcher(itemFetcher: Function): void;
|
|
3981
4036
|
setFieldsFromDatatypes(item: PreparedItem): void;
|
|
3982
4037
|
prepare(item: any): Promise<PreparedItem>;
|
|
3983
|
-
createCustomFieldInstances(item: PreparedItem, attributes: Record<string, unknown>, prefix?: string): Promise<CustomField
|
|
4038
|
+
createCustomFieldInstances(item: PreparedItem, attributes: Record<string, unknown>, prefix?: string): Promise<CustomField[]>;
|
|
3984
4039
|
createFieldInstances(item: PreparedItem, fields: any[], attributes: Record<string, unknown>, path: string, attributeSrc: string, doNotFillValues?: boolean): Promise<Field[]>;
|
|
3985
4040
|
getFieldSet(item: PreparedItem, name: string): {
|
|
3986
4041
|
name: string;
|
|
@@ -4165,7 +4220,7 @@ declare class ItemRepo {
|
|
|
4165
4220
|
copyScripts(oldBlock: Block, newBlock: Block, deferInitCall?: boolean): Script[];
|
|
4166
4221
|
updateScriptFieldReferences(oldBlock: Block, newBlock: Block): void;
|
|
4167
4222
|
updateScriptFieldReferencesFromMap(nodeFieldMap: Map<string, string>, block: Block): void;
|
|
4168
|
-
createNewBlock(templateEntry: TemplateEntry, parent: Block, ownerItem: PreparedItem): Promise<Block>;
|
|
4223
|
+
createNewBlock(templateEntry: TemplateEntry, parent: Block, ownerItem: PreparedItem, subNodeId?: string): Promise<Block>;
|
|
4169
4224
|
addBlockToParent(block: Block, parent: Block, item: PreparedItem): Block;
|
|
4170
4225
|
createNewListEntry(templateEntry: TemplateEntry, field: Field, ownerItem: PreparedItem): Promise<any>;
|
|
4171
4226
|
createNewGraphNode(templateEntry: TemplateEntry, graph: Field, x: number, y: number, ownerItem: PreparedItem): Promise<Block>;
|
|
@@ -4342,11 +4397,11 @@ declare class Proxifier {
|
|
|
4342
4397
|
proxyItemField(field: Field, item: any): any;
|
|
4343
4398
|
proxyGraphBlockField(field: Field, block: Block, item: PreparedItem): any;
|
|
4344
4399
|
proxyBlockField(field: Field, block: Block, item: PreparedItem): any;
|
|
4345
|
-
proxyScriptItem(scriptItem: ScriptItem
|
|
4346
|
-
proxyScriptFieldsArray(fields: ScriptField
|
|
4347
|
-
proxyScriptField(field: ScriptField
|
|
4348
|
-
proxyCustomFieldsArray(fields: CustomField
|
|
4349
|
-
proxyCustomField(field: CustomField
|
|
4400
|
+
proxyScriptItem(scriptItem: ScriptItem, script: Script, item: PreparedItem): any;
|
|
4401
|
+
proxyScriptFieldsArray(fields: ScriptField[], script: Script, item: PreparedItem): any[];
|
|
4402
|
+
proxyScriptField(field: ScriptField, script: Script, item: PreparedItem): any;
|
|
4403
|
+
proxyCustomFieldsArray(fields: CustomField[], item: PreparedItem): any[];
|
|
4404
|
+
proxyCustomField(field: CustomField, item: PreparedItem): any;
|
|
4350
4405
|
}
|
|
4351
4406
|
|
|
4352
4407
|
declare const _default: {
|
|
@@ -12254,9 +12309,9 @@ declare class TemplateFactory {
|
|
|
12254
12309
|
private static _instance;
|
|
12255
12310
|
static get instance(): TemplateFactory;
|
|
12256
12311
|
private _existsTemplate;
|
|
12257
|
-
addTemplates(itemType: string, fieldName: string, templates: TemplateEntry
|
|
12258
|
-
getTemplate(itemType: string, fieldName: string, templateName: string): TemplateEntry
|
|
12259
|
-
getTemplates(itemType: string, fieldName: string): TemplateEntry
|
|
12312
|
+
addTemplates(itemType: string, fieldName: string, templates: TemplateEntry[]): void;
|
|
12313
|
+
getTemplate(itemType: string, fieldName: string, templateName: string): TemplateEntry | undefined;
|
|
12314
|
+
getTemplates(itemType: string, fieldName: string): TemplateEntry[];
|
|
12260
12315
|
}
|
|
12261
12316
|
|
|
12262
12317
|
declare class LinkableItemsCache {
|
|
@@ -12270,33 +12325,5 @@ declare class LinkableItemsCache {
|
|
|
12270
12325
|
loadLinkableItems(item: any, field: Field): Promise<any[] | undefined>;
|
|
12271
12326
|
}
|
|
12272
12327
|
|
|
12273
|
-
type CustomFieldDefinition = {
|
|
12274
|
-
name: string;
|
|
12275
|
-
defaultValue: any;
|
|
12276
|
-
type: string;
|
|
12277
|
-
};
|
|
12278
|
-
declare class CustomField extends Snapshotable {
|
|
12279
|
-
id: string;
|
|
12280
|
-
name: string | undefined;
|
|
12281
|
-
displayName: string | undefined;
|
|
12282
|
-
value: any;
|
|
12283
|
-
type: string | undefined;
|
|
12284
|
-
datatype: string | undefined;
|
|
12285
|
-
linkableTypes: string[];
|
|
12286
|
-
order: number;
|
|
12287
|
-
constructor(name?: string | undefined, value?: any | undefined, item?: PreparedItem | undefined);
|
|
12288
|
-
getId(): string;
|
|
12289
|
-
setName(name: string | undefined): void;
|
|
12290
|
-
setType(name: string): void;
|
|
12291
|
-
setOrder(order: number): void;
|
|
12292
|
-
clone(fieldOverrides?: Map<string, string>): CustomField;
|
|
12293
|
-
clearDefinition(): void;
|
|
12294
|
-
setDefinition(def: any): void;
|
|
12295
|
-
_toBoolean(value: any): any;
|
|
12296
|
-
_updateDisplayName(): void;
|
|
12297
|
-
createSnapshot(): Snapshot;
|
|
12298
|
-
rollbackFromSnapshot(snapshot: Snapshot): void;
|
|
12299
|
-
}
|
|
12300
|
-
|
|
12301
12328
|
export { AccessDeniedException, AggregatedItem, ApiClient, ApiGateway, Block, CustomField, EventEmitter, Field, InvalidArgumentException, InvalidStateException, Item, ItemCache$1 as ItemCache, ItemRepo, ItemVisibility, LinkableItemsCache, LoaderException, Package as PackageTools, PreparedItem, Profiler, Proxifier, ProxyEvent, QuotaExceededException, Script, ScriptField, Snapshot, Storage, Template, TemplateFactory, ThumbCache, UndoManager, eventBus, getDatatypeByName, getDatatypes, hasPermission, profileAsyncBlock, profileBlock, _default as tools, verifyAcl };
|
|
12302
12329
|
export type { Acl, Attachments, BaseBlogArticle, ConversationEntry, CustomFieldDefinition, FolderListingOptions, FolderListingWithOptions, ItemOptions, ItemQueryOptions, ItemQueryWithOptions, ItemWithOptions, JobState, Me, ProgressCallback$1 as ProgressCallback, UserInfo };
|