@luminocity/lemonate-gateway 8.2.29 → 8.2.31

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 CHANGED
@@ -765,7 +765,7 @@ declare class Script extends Snapshotable {
765
765
  getId(): string | undefined;
766
766
  makeIdsUnique(map: Map<string, string>, force?: boolean): void;
767
767
  transformNodeIds(map: Map<string, string>): void;
768
- clone(cloneIdMapping?: Map<string, string>): Script;
768
+ clone(cloneIdMapping?: Map<string, string>, props?: Record<string, any>): Script;
769
769
  createFieldsFromDefinition(fieldDefArray?: any[]): void;
770
770
  clearFieldTypes(): void;
771
771
  addField(scriptField: ScriptField): void;
@@ -4217,7 +4217,7 @@ declare class ItemRepo {
4217
4217
  clear(): void;
4218
4218
  removeBlock(block: Block, parent: any): void;
4219
4219
  traverseBlockPairs(b1: Block, b2: Block, func: Function): void;
4220
- copyScripts(oldBlock: Block, newBlock: Block, deferInitCall?: boolean): Script[];
4220
+ copyScripts(oldBlock: Block, newBlock: Block, deferInitCall?: boolean, props?: Record<string, any>): Script[];
4221
4221
  updateScriptFieldReferences(oldBlock: Block, newBlock: Block): void;
4222
4222
  updateScriptFieldReferencesFromMap(nodeFieldMap: Map<string, string>, block: Block): void;
4223
4223
  createNewBlock(templateEntry: TemplateEntry, parent: Block, ownerItem: PreparedItem, subNodeId?: string): Promise<Block>;
@@ -4444,6 +4444,7 @@ declare class ProfilerEntry {
4444
4444
  }
4445
4445
  declare function profileBlock(key: string, func: Function): any;
4446
4446
  declare function profileAsyncBlock(key: string, func: Function): Promise<any>;
4447
+ declare function timeFunc(func: Function, name?: string): any;
4447
4448
  declare class Profiler {
4448
4449
  startTime: number;
4449
4450
  endTime: number;
@@ -12325,5 +12326,5 @@ declare class LinkableItemsCache {
12325
12326
  loadLinkableItems(item: any, field: Field): Promise<any[] | undefined>;
12326
12327
  }
12327
12328
 
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 };
12329
+ 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, timeFunc, _default as tools, verifyAcl };
12329
12330
  export type { Acl, Attachments, BaseBlogArticle, ConversationEntry, CustomFieldDefinition, FolderListingOptions, FolderListingWithOptions, ItemOptions, ItemQueryOptions, ItemQueryWithOptions, ItemWithOptions, JobState, Me, ProgressCallback$1 as ProgressCallback, UserInfo };