@dcl/asset-packs 2.11.6 → 2.11.8
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/bin/index.js +3666 -7347
- package/catalog.json +11 -4
- package/dist/action-types.js +7 -4
- package/dist/actions.js +4 -4
- package/dist/admin-toolkit-ui/RewardsControl.js +6 -4
- package/dist/admin-toolkit-ui/SmartItemsControl.js +4 -4
- package/dist/admin-toolkit-ui/VideoControl/index.js +2 -2
- package/dist/admin-toolkit-ui/VideoControl/utils.d.ts +2 -4
- package/dist/admin-toolkit-ui/VideoControl/utils.js +6 -3
- package/dist/bin/index.js +3666 -7347
- package/dist/constants.d.ts +23 -0
- package/dist/constants.js +26 -0
- package/dist/definitions.d.ts +90 -86
- package/dist/definitions.js +20 -142
- package/dist/enums.d.ts +19 -59
- package/dist/enums.js +21 -66
- package/dist/trigger-enums.d.ts +36 -0
- package/dist/trigger-enums.js +40 -0
- package/dist/triggers.js +4 -4
- package/dist/types.js +4 -3
- package/dist/versioning/framework.d.ts +20 -0
- package/dist/versioning/framework.js +141 -0
- package/dist/versioning/index.d.ts +5 -0
- package/dist/versioning/index.js +5 -0
- package/dist/versioning/registry.d.ts +135 -0
- package/dist/versioning/registry.js +162 -0
- package/package.json +4 -4
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const BaseComponentNames: {
|
|
2
|
+
readonly ACTION_TYPES: "asset-packs::ActionTypes";
|
|
3
|
+
readonly ACTIONS: "asset-packs::Actions";
|
|
4
|
+
readonly COUNTER: "asset-packs::Counter";
|
|
5
|
+
readonly TRIGGERS: "asset-packs::Triggers";
|
|
6
|
+
readonly STATES: "asset-packs::States";
|
|
7
|
+
readonly COUNTER_BAR: "asset-packs::CounterBar";
|
|
8
|
+
readonly ADMIN_TOOLS: "asset-packs::AdminTools";
|
|
9
|
+
readonly VIDEO_SCREEN: "asset-packs::VideoScreen";
|
|
10
|
+
readonly REWARDS: "asset-packs::Rewards";
|
|
11
|
+
readonly TEXT_ANNOUNCEMENTS: "asset-packs::TextAnnouncements";
|
|
12
|
+
readonly VIDEO_CONTROL_STATE: "asset-packs::VideoControlState";
|
|
13
|
+
readonly SCRIPT: "asset-packs::Script";
|
|
14
|
+
readonly PLACEHOLDER: "asset-packs::Placeholder";
|
|
15
|
+
};
|
|
16
|
+
export declare enum AdminPermissions {
|
|
17
|
+
PUBLIC = "PUBLIC",
|
|
18
|
+
PRIVATE = "PRIVATE"
|
|
19
|
+
}
|
|
20
|
+
export declare enum MediaSource {
|
|
21
|
+
VideoURL = 0,
|
|
22
|
+
LiveStream = 1
|
|
23
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export const BaseComponentNames = {
|
|
2
|
+
ACTION_TYPES: 'asset-packs::ActionTypes',
|
|
3
|
+
ACTIONS: 'asset-packs::Actions',
|
|
4
|
+
COUNTER: 'asset-packs::Counter',
|
|
5
|
+
TRIGGERS: 'asset-packs::Triggers',
|
|
6
|
+
STATES: 'asset-packs::States',
|
|
7
|
+
COUNTER_BAR: 'asset-packs::CounterBar',
|
|
8
|
+
ADMIN_TOOLS: 'asset-packs::AdminTools',
|
|
9
|
+
VIDEO_SCREEN: 'asset-packs::VideoScreen',
|
|
10
|
+
REWARDS: 'asset-packs::Rewards',
|
|
11
|
+
TEXT_ANNOUNCEMENTS: 'asset-packs::TextAnnouncements',
|
|
12
|
+
VIDEO_CONTROL_STATE: 'asset-packs::VideoControlState',
|
|
13
|
+
SCRIPT: 'asset-packs::Script',
|
|
14
|
+
PLACEHOLDER: 'asset-packs::Placeholder',
|
|
15
|
+
};
|
|
16
|
+
export var AdminPermissions;
|
|
17
|
+
(function (AdminPermissions) {
|
|
18
|
+
AdminPermissions["PUBLIC"] = "PUBLIC";
|
|
19
|
+
AdminPermissions["PRIVATE"] = "PRIVATE";
|
|
20
|
+
})(AdminPermissions || (AdminPermissions = {}));
|
|
21
|
+
export var MediaSource;
|
|
22
|
+
(function (MediaSource) {
|
|
23
|
+
MediaSource[MediaSource["VideoURL"] = 0] = "VideoURL";
|
|
24
|
+
MediaSource[MediaSource["LiveStream"] = 1] = "LiveStream";
|
|
25
|
+
})(MediaSource || (MediaSource = {}));
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRztJQUNoQyxZQUFZLEVBQUUsMEJBQTBCO0lBQ3hDLE9BQU8sRUFBRSxzQkFBc0I7SUFDL0IsT0FBTyxFQUFFLHNCQUFzQjtJQUMvQixRQUFRLEVBQUUsdUJBQXVCO0lBQ2pDLE1BQU0sRUFBRSxxQkFBcUI7SUFDN0IsV0FBVyxFQUFFLHlCQUF5QjtJQUN0QyxXQUFXLEVBQUUseUJBQXlCO0lBQ3RDLFlBQVksRUFBRSwwQkFBMEI7SUFDeEMsT0FBTyxFQUFFLHNCQUFzQjtJQUMvQixrQkFBa0IsRUFBRSxnQ0FBZ0M7SUFDcEQsbUJBQW1CLEVBQUUsZ0NBQWdDO0lBQ3JELE1BQU0sRUFBRSxxQkFBcUI7SUFDN0IsV0FBVyxFQUFFLDBCQUEwQjtDQUMvQixDQUFDO0FBRVgsTUFBTSxDQUFOLElBQVksZ0JBR1g7QUFIRCxXQUFZLGdCQUFnQjtJQUMxQixxQ0FBaUIsQ0FBQTtJQUNqQix1Q0FBbUIsQ0FBQTtBQUNyQixDQUFDLEVBSFcsZ0JBQWdCLEtBQWhCLGdCQUFnQixRQUczQjtBQUVELE1BQU0sQ0FBTixJQUFZLFdBR1g7QUFIRCxXQUFZLFdBQVc7SUFDckIscURBQVEsQ0FBQTtJQUNSLHlEQUFVLENBQUE7QUFDWixDQUFDLEVBSFcsV0FBVyxLQUFYLFdBQVcsUUFHdEIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY29uc3QgQmFzZUNvbXBvbmVudE5hbWVzID0ge1xuICBBQ1RJT05fVFlQRVM6ICdhc3NldC1wYWNrczo6QWN0aW9uVHlwZXMnLFxuICBBQ1RJT05TOiAnYXNzZXQtcGFja3M6OkFjdGlvbnMnLFxuICBDT1VOVEVSOiAnYXNzZXQtcGFja3M6OkNvdW50ZXInLFxuICBUUklHR0VSUzogJ2Fzc2V0LXBhY2tzOjpUcmlnZ2VycycsXG4gIFNUQVRFUzogJ2Fzc2V0LXBhY2tzOjpTdGF0ZXMnLFxuICBDT1VOVEVSX0JBUjogJ2Fzc2V0LXBhY2tzOjpDb3VudGVyQmFyJyxcbiAgQURNSU5fVE9PTFM6ICdhc3NldC1wYWNrczo6QWRtaW5Ub29scycsXG4gIFZJREVPX1NDUkVFTjogJ2Fzc2V0LXBhY2tzOjpWaWRlb1NjcmVlbicsXG4gIFJFV0FSRFM6ICdhc3NldC1wYWNrczo6UmV3YXJkcycsXG4gIFRFWFRfQU5OT1VOQ0VNRU5UUzogJ2Fzc2V0LXBhY2tzOjpUZXh0QW5ub3VuY2VtZW50cycsXG4gIFZJREVPX0NPTlRST0xfU1RBVEU6ICdhc3NldC1wYWNrczo6VmlkZW9Db250cm9sU3RhdGUnLFxuICBTQ1JJUFQ6ICdhc3NldC1wYWNrczo6U2NyaXB0JyxcbiAgUExBQ0VIT0xERVI6ICdhc3NldC1wYWNrczo6UGxhY2Vob2xkZXInLFxufSBhcyBjb25zdDtcblxuZXhwb3J0IGVudW0gQWRtaW5QZXJtaXNzaW9ucyB7XG4gIFBVQkxJQyA9ICdQVUJMSUMnLFxuICBQUklWQVRFID0gJ1BSSVZBVEUnLFxufVxuXG5leHBvcnQgZW51bSBNZWRpYVNvdXJjZSB7XG4gIFZpZGVvVVJMLFxuICBMaXZlU3RyZWFtLFxufVxuIl19
|
package/dist/definitions.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Entity, IEngine, ISchema, MaterialComponentDefinitionExtended, PBMaterial, PBVideoPlayer, PBMainCamera, PBVirtualCamera, AnimatorComponentDefinitionExtended, TransformComponentExtended, LastWriteWinElementSetComponentDefinition, PBAvatarAttach, PBVisibilityComponent, PBGltfContainer, PBUiTransform, PBUiText, PBTextShape, PBUiBackground, MeshRendererComponentDefinitionExtended, PBBillboard, NameType, PBTween, PBTweenSequence, PBPointerEvents, PBLightSource, NetworkEntity, SyncComponents, AudioSourceComponentDefinitionExtended, PBUiInput, PBUiInputResult, PBUiCanvasInformation, InputModifierComponentDefinitionExtended, PBSkyboxTime } from '@dcl/ecs';
|
|
2
|
-
import { ComponentName, TweenType, InterpolationType, ActionType,
|
|
2
|
+
import { ComponentName, TweenType, InterpolationType, ActionType, TriggerConditionType, AlignMode, Font, Colliders, ProximityLayer, TextureMovementType, TeleportMode } from './enums';
|
|
3
3
|
export declare const LIVEKIT_STREAM_SRC = "livekit-video://current-stream";
|
|
4
4
|
export declare const VIDEO_URL_TYPE = "https://";
|
|
5
5
|
export * from './enums';
|
|
@@ -10,6 +10,7 @@ export * from './states';
|
|
|
10
10
|
export * from './clone';
|
|
11
11
|
export * from './lww';
|
|
12
12
|
export * from './types';
|
|
13
|
+
export * from './versioning';
|
|
13
14
|
export declare const ActionSchemas: {
|
|
14
15
|
play_animation: ISchema<import("@dcl/ecs").MapResult<{
|
|
15
16
|
animation: ISchema<string>;
|
|
@@ -221,8 +222,8 @@ export type ActionPayload<T extends ActionType = any> = T extends keyof typeof A
|
|
|
221
222
|
export declare function getComponent<T>(componentName: string, engine: IEngine): LastWriteWinElementSetComponentDefinition<T>;
|
|
222
223
|
export declare function getComponents(engine: IEngine): {
|
|
223
224
|
Actions: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
224
|
-
id: ISchema<number>;
|
|
225
|
-
value: ISchema<import("@dcl/ecs").MapResult<{
|
|
225
|
+
readonly id: ISchema<number>;
|
|
226
|
+
readonly value: ISchema<import("@dcl/ecs").MapResult<{
|
|
226
227
|
name: ISchema<string>;
|
|
227
228
|
type: ISchema<string>;
|
|
228
229
|
jsonPayload: ISchema<string>;
|
|
@@ -232,25 +233,25 @@ export declare function getComponents(engine: IEngine): {
|
|
|
232
233
|
}>[]>;
|
|
233
234
|
}>>;
|
|
234
235
|
States: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
235
|
-
id: ISchema<number>;
|
|
236
|
-
value: ISchema<string[]>;
|
|
237
|
-
defaultValue: ISchema<string | undefined>;
|
|
238
|
-
currentValue: ISchema<string | undefined>;
|
|
239
|
-
previousValue: ISchema<string | undefined>;
|
|
236
|
+
readonly id: ISchema<number>;
|
|
237
|
+
readonly value: ISchema<string[]>;
|
|
238
|
+
readonly defaultValue: ISchema<string | undefined>;
|
|
239
|
+
readonly currentValue: ISchema<string | undefined>;
|
|
240
|
+
readonly previousValue: ISchema<string | undefined>;
|
|
240
241
|
}>>;
|
|
241
242
|
Counter: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
242
|
-
id: ISchema<number>;
|
|
243
|
-
value: ISchema<number>;
|
|
243
|
+
readonly id: ISchema<number>;
|
|
244
|
+
readonly value: ISchema<number>;
|
|
244
245
|
}>>;
|
|
245
246
|
Triggers: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
246
|
-
value: ISchema<import("@dcl/ecs").MapResult<{
|
|
247
|
-
type: ISchema<TriggerType>;
|
|
247
|
+
readonly value: ISchema<import("@dcl/ecs").MapResult<{
|
|
248
|
+
type: ISchema<import("./trigger-enums").TriggerType>;
|
|
248
249
|
conditions: ISchema<import("@dcl/ecs").MapResult<{
|
|
249
250
|
id: ISchema<number | undefined>;
|
|
250
251
|
type: ISchema<TriggerConditionType>;
|
|
251
252
|
value: ISchema<string>;
|
|
252
253
|
}>[] | undefined>;
|
|
253
|
-
operation: ISchema<TriggerConditionOperation | undefined>;
|
|
254
|
+
operation: ISchema<import("./trigger-enums").TriggerConditionOperation | undefined>;
|
|
254
255
|
actions: ISchema<import("@dcl/ecs").MapResult<{
|
|
255
256
|
id: ISchema<number | undefined>;
|
|
256
257
|
name: ISchema<string | undefined>;
|
|
@@ -259,19 +260,19 @@ export declare function getComponents(engine: IEngine): {
|
|
|
259
260
|
}>[]>;
|
|
260
261
|
}>>;
|
|
261
262
|
CounterBar: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
262
|
-
primaryColor: ISchema<string | undefined>;
|
|
263
|
-
secondaryColor: ISchema<string | undefined>;
|
|
264
|
-
maxValue: ISchema<number | undefined>;
|
|
263
|
+
readonly primaryColor: ISchema<string | undefined>;
|
|
264
|
+
readonly secondaryColor: ISchema<string | undefined>;
|
|
265
|
+
readonly maxValue: ISchema<number | undefined>;
|
|
265
266
|
}>>;
|
|
266
267
|
AdminTools: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
267
|
-
adminPermissions: ISchema<AdminPermissions>;
|
|
268
|
-
authorizedAdminUsers: ISchema<import("@dcl/ecs").MapResult<{
|
|
268
|
+
readonly adminPermissions: ISchema<import("./constants").AdminPermissions>;
|
|
269
|
+
readonly authorizedAdminUsers: ISchema<import("@dcl/ecs").MapResult<{
|
|
269
270
|
me: ISchema<boolean>;
|
|
270
271
|
sceneOwners: ISchema<boolean>;
|
|
271
272
|
allowList: ISchema<boolean>;
|
|
272
273
|
adminAllowList: ISchema<string[]>;
|
|
273
274
|
}>>;
|
|
274
|
-
moderationControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
275
|
+
readonly moderationControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
275
276
|
isEnabled: ISchema<boolean>;
|
|
276
277
|
kickCoordinates: ISchema<import("@dcl/ecs").MapResult<{
|
|
277
278
|
x: ISchema<number>;
|
|
@@ -280,12 +281,12 @@ export declare function getComponents(engine: IEngine): {
|
|
|
280
281
|
}>>;
|
|
281
282
|
allowNonOwnersManageAdminAllowList: ISchema<boolean>;
|
|
282
283
|
}>>;
|
|
283
|
-
textAnnouncementControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
284
|
+
readonly textAnnouncementControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
284
285
|
isEnabled: ISchema<boolean>;
|
|
285
286
|
playSoundOnEachAnnouncement: ISchema<boolean>;
|
|
286
287
|
showAuthorOnEachAnnouncement: ISchema<boolean>;
|
|
287
288
|
}>>;
|
|
288
|
-
videoControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
289
|
+
readonly videoControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
289
290
|
isEnabled: ISchema<boolean>;
|
|
290
291
|
disableVideoPlayersSound: ISchema<boolean>;
|
|
291
292
|
showAuthorOnVideoPlayers: ISchema<boolean>;
|
|
@@ -295,7 +296,7 @@ export declare function getComponents(engine: IEngine): {
|
|
|
295
296
|
customName: ISchema<string>;
|
|
296
297
|
}>[] | undefined>;
|
|
297
298
|
}>>;
|
|
298
|
-
smartItemsControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
299
|
+
readonly smartItemsControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
299
300
|
isEnabled: ISchema<boolean>;
|
|
300
301
|
linkAllSmartItems: ISchema<boolean>;
|
|
301
302
|
smartItems: ISchema<import("@dcl/ecs").MapResult<{
|
|
@@ -304,7 +305,7 @@ export declare function getComponents(engine: IEngine): {
|
|
|
304
305
|
defaultAction: ISchema<string>;
|
|
305
306
|
}>[] | undefined>;
|
|
306
307
|
}>>;
|
|
307
|
-
rewardsControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
308
|
+
readonly rewardsControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
308
309
|
isEnabled: ISchema<boolean>;
|
|
309
310
|
rewardItems: ISchema<import("@dcl/ecs").MapResult<{
|
|
310
311
|
entity: ISchema<number>;
|
|
@@ -313,42 +314,45 @@ export declare function getComponents(engine: IEngine): {
|
|
|
313
314
|
}>>;
|
|
314
315
|
}>>;
|
|
315
316
|
VideoScreen: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
316
|
-
thumbnail: ISchema<string>;
|
|
317
|
-
defaultMediaSource: ISchema<MediaSource>;
|
|
318
|
-
defaultURL: ISchema<string>;
|
|
317
|
+
readonly thumbnail: ISchema<string>;
|
|
318
|
+
readonly defaultMediaSource: ISchema<import("./constants").MediaSource>;
|
|
319
|
+
readonly defaultURL: ISchema<string>;
|
|
319
320
|
}>>;
|
|
320
321
|
Rewards: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
321
|
-
campaignId: ISchema<string>;
|
|
322
|
-
dispenserKey: ISchema<string>;
|
|
323
|
-
testMode: ISchema<boolean>;
|
|
322
|
+
readonly campaignId: ISchema<string>;
|
|
323
|
+
readonly dispenserKey: ISchema<string>;
|
|
324
|
+
readonly testMode: ISchema<boolean>;
|
|
324
325
|
}>>;
|
|
325
326
|
TextAnnouncements: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
326
|
-
text: ISchema<string>;
|
|
327
|
-
author: ISchema<string | undefined>;
|
|
328
|
-
id: ISchema<string>;
|
|
327
|
+
readonly text: ISchema<string>;
|
|
328
|
+
readonly author: ISchema<string | undefined>;
|
|
329
|
+
readonly id: ISchema<string>;
|
|
329
330
|
}>>;
|
|
330
331
|
VideoControlState: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
331
|
-
endsAt: ISchema<number | undefined>;
|
|
332
|
-
streamKey: ISchema<string | undefined>;
|
|
332
|
+
readonly endsAt: ISchema<number | undefined>;
|
|
333
|
+
readonly streamKey: ISchema<string | undefined>;
|
|
333
334
|
}>>;
|
|
334
335
|
Script: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
335
|
-
value: ISchema<import("@dcl/ecs").MapResult<{
|
|
336
|
+
readonly value: ISchema<import("@dcl/ecs").MapResult<{
|
|
336
337
|
path: ISchema<string>;
|
|
337
338
|
priority: ISchema<number>;
|
|
338
339
|
layout: ISchema<string | undefined>;
|
|
339
340
|
}>[]>;
|
|
340
341
|
}>>;
|
|
342
|
+
Placeholder: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
343
|
+
readonly src: ISchema<string>;
|
|
344
|
+
}>>;
|
|
341
345
|
};
|
|
342
346
|
export declare function createComponents(engine: IEngine): {
|
|
343
|
-
ActionTypes:
|
|
344
|
-
value: ISchema<import("@dcl/ecs").MapResult<{
|
|
347
|
+
ActionTypes: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
348
|
+
readonly value: ISchema<import("@dcl/ecs").MapResult<{
|
|
345
349
|
type: ISchema<string>;
|
|
346
350
|
jsonSchema: ISchema<string>;
|
|
347
351
|
}>[]>;
|
|
348
352
|
}>>;
|
|
349
|
-
Actions:
|
|
350
|
-
id: ISchema<number>;
|
|
351
|
-
value: ISchema<import("@dcl/ecs").MapResult<{
|
|
353
|
+
Actions: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
354
|
+
readonly id: ISchema<number>;
|
|
355
|
+
readonly value: ISchema<import("@dcl/ecs").MapResult<{
|
|
352
356
|
name: ISchema<string>;
|
|
353
357
|
type: ISchema<string>;
|
|
354
358
|
jsonPayload: ISchema<string>;
|
|
@@ -357,19 +361,19 @@ export declare function createComponents(engine: IEngine): {
|
|
|
357
361
|
default: ISchema<boolean | undefined>;
|
|
358
362
|
}>[]>;
|
|
359
363
|
}>>;
|
|
360
|
-
Counter:
|
|
361
|
-
id: ISchema<number>;
|
|
362
|
-
value: ISchema<number>;
|
|
364
|
+
Counter: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
365
|
+
readonly id: ISchema<number>;
|
|
366
|
+
readonly value: ISchema<number>;
|
|
363
367
|
}>>;
|
|
364
|
-
Triggers:
|
|
365
|
-
value: ISchema<import("@dcl/ecs").MapResult<{
|
|
366
|
-
type: ISchema<TriggerType>;
|
|
368
|
+
Triggers: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
369
|
+
readonly value: ISchema<import("@dcl/ecs").MapResult<{
|
|
370
|
+
type: ISchema<import("./trigger-enums").TriggerType>;
|
|
367
371
|
conditions: ISchema<import("@dcl/ecs").MapResult<{
|
|
368
372
|
id: ISchema<number | undefined>;
|
|
369
373
|
type: ISchema<TriggerConditionType>;
|
|
370
374
|
value: ISchema<string>;
|
|
371
375
|
}>[] | undefined>;
|
|
372
|
-
operation: ISchema<TriggerConditionOperation | undefined>;
|
|
376
|
+
operation: ISchema<import("./trigger-enums").TriggerConditionOperation | undefined>;
|
|
373
377
|
actions: ISchema<import("@dcl/ecs").MapResult<{
|
|
374
378
|
id: ISchema<number | undefined>;
|
|
375
379
|
name: ISchema<string | undefined>;
|
|
@@ -377,27 +381,27 @@ export declare function createComponents(engine: IEngine): {
|
|
|
377
381
|
basicViewId: ISchema<string | undefined>;
|
|
378
382
|
}>[]>;
|
|
379
383
|
}>>;
|
|
380
|
-
States:
|
|
381
|
-
id: ISchema<number>;
|
|
382
|
-
value: ISchema<string[]>;
|
|
383
|
-
defaultValue: ISchema<string | undefined>;
|
|
384
|
-
currentValue: ISchema<string | undefined>;
|
|
385
|
-
previousValue: ISchema<string | undefined>;
|
|
386
|
-
}>>;
|
|
387
|
-
CounterBar:
|
|
388
|
-
primaryColor: ISchema<string | undefined>;
|
|
389
|
-
secondaryColor: ISchema<string | undefined>;
|
|
390
|
-
maxValue: ISchema<number | undefined>;
|
|
391
|
-
}>>;
|
|
392
|
-
AdminTools:
|
|
393
|
-
adminPermissions: ISchema<AdminPermissions>;
|
|
394
|
-
authorizedAdminUsers: ISchema<import("@dcl/ecs").MapResult<{
|
|
384
|
+
States: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
385
|
+
readonly id: ISchema<number>;
|
|
386
|
+
readonly value: ISchema<string[]>;
|
|
387
|
+
readonly defaultValue: ISchema<string | undefined>;
|
|
388
|
+
readonly currentValue: ISchema<string | undefined>;
|
|
389
|
+
readonly previousValue: ISchema<string | undefined>;
|
|
390
|
+
}>>;
|
|
391
|
+
CounterBar: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
392
|
+
readonly primaryColor: ISchema<string | undefined>;
|
|
393
|
+
readonly secondaryColor: ISchema<string | undefined>;
|
|
394
|
+
readonly maxValue: ISchema<number | undefined>;
|
|
395
|
+
}>>;
|
|
396
|
+
AdminTools: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
397
|
+
readonly adminPermissions: ISchema<import("./constants").AdminPermissions>;
|
|
398
|
+
readonly authorizedAdminUsers: ISchema<import("@dcl/ecs").MapResult<{
|
|
395
399
|
me: ISchema<boolean>;
|
|
396
400
|
sceneOwners: ISchema<boolean>;
|
|
397
401
|
allowList: ISchema<boolean>;
|
|
398
402
|
adminAllowList: ISchema<string[]>;
|
|
399
403
|
}>>;
|
|
400
|
-
moderationControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
404
|
+
readonly moderationControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
401
405
|
isEnabled: ISchema<boolean>;
|
|
402
406
|
kickCoordinates: ISchema<import("@dcl/ecs").MapResult<{
|
|
403
407
|
x: ISchema<number>;
|
|
@@ -406,12 +410,12 @@ export declare function createComponents(engine: IEngine): {
|
|
|
406
410
|
}>>;
|
|
407
411
|
allowNonOwnersManageAdminAllowList: ISchema<boolean>;
|
|
408
412
|
}>>;
|
|
409
|
-
textAnnouncementControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
413
|
+
readonly textAnnouncementControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
410
414
|
isEnabled: ISchema<boolean>;
|
|
411
415
|
playSoundOnEachAnnouncement: ISchema<boolean>;
|
|
412
416
|
showAuthorOnEachAnnouncement: ISchema<boolean>;
|
|
413
417
|
}>>;
|
|
414
|
-
videoControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
418
|
+
readonly videoControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
415
419
|
isEnabled: ISchema<boolean>;
|
|
416
420
|
disableVideoPlayersSound: ISchema<boolean>;
|
|
417
421
|
showAuthorOnVideoPlayers: ISchema<boolean>;
|
|
@@ -421,7 +425,7 @@ export declare function createComponents(engine: IEngine): {
|
|
|
421
425
|
customName: ISchema<string>;
|
|
422
426
|
}>[] | undefined>;
|
|
423
427
|
}>>;
|
|
424
|
-
smartItemsControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
428
|
+
readonly smartItemsControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
425
429
|
isEnabled: ISchema<boolean>;
|
|
426
430
|
linkAllSmartItems: ISchema<boolean>;
|
|
427
431
|
smartItems: ISchema<import("@dcl/ecs").MapResult<{
|
|
@@ -430,7 +434,7 @@ export declare function createComponents(engine: IEngine): {
|
|
|
430
434
|
defaultAction: ISchema<string>;
|
|
431
435
|
}>[] | undefined>;
|
|
432
436
|
}>>;
|
|
433
|
-
rewardsControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
437
|
+
readonly rewardsControl: ISchema<import("@dcl/ecs").MapResult<{
|
|
434
438
|
isEnabled: ISchema<boolean>;
|
|
435
439
|
rewardItems: ISchema<import("@dcl/ecs").MapResult<{
|
|
436
440
|
entity: ISchema<number>;
|
|
@@ -438,34 +442,34 @@ export declare function createComponents(engine: IEngine): {
|
|
|
438
442
|
}>[] | undefined>;
|
|
439
443
|
}>>;
|
|
440
444
|
}>>;
|
|
441
|
-
Rewards:
|
|
442
|
-
campaignId: ISchema<string>;
|
|
443
|
-
dispenserKey: ISchema<string>;
|
|
444
|
-
testMode: ISchema<boolean>;
|
|
445
|
+
Rewards: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
446
|
+
readonly campaignId: ISchema<string>;
|
|
447
|
+
readonly dispenserKey: ISchema<string>;
|
|
448
|
+
readonly testMode: ISchema<boolean>;
|
|
445
449
|
}>>;
|
|
446
|
-
TextAnnouncements:
|
|
447
|
-
text: ISchema<string>;
|
|
448
|
-
author: ISchema<string | undefined>;
|
|
449
|
-
id: ISchema<string>;
|
|
450
|
+
TextAnnouncements: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
451
|
+
readonly text: ISchema<string>;
|
|
452
|
+
readonly author: ISchema<string | undefined>;
|
|
453
|
+
readonly id: ISchema<string>;
|
|
450
454
|
}>>;
|
|
451
|
-
VideoControlState:
|
|
452
|
-
endsAt: ISchema<number | undefined>;
|
|
453
|
-
streamKey: ISchema<string | undefined>;
|
|
455
|
+
VideoControlState: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
456
|
+
readonly endsAt: ISchema<number | undefined>;
|
|
457
|
+
readonly streamKey: ISchema<string | undefined>;
|
|
454
458
|
}>>;
|
|
455
|
-
VideoScreen:
|
|
456
|
-
thumbnail: ISchema<string>;
|
|
457
|
-
defaultMediaSource: ISchema<MediaSource>;
|
|
458
|
-
defaultURL: ISchema<string>;
|
|
459
|
+
VideoScreen: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
460
|
+
readonly thumbnail: ISchema<string>;
|
|
461
|
+
readonly defaultMediaSource: ISchema<import("./constants").MediaSource>;
|
|
462
|
+
readonly defaultURL: ISchema<string>;
|
|
459
463
|
}>>;
|
|
460
|
-
Script:
|
|
461
|
-
value: ISchema<import("@dcl/ecs").MapResult<{
|
|
464
|
+
Script: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
465
|
+
readonly value: ISchema<import("@dcl/ecs").MapResult<{
|
|
462
466
|
path: ISchema<string>;
|
|
463
467
|
priority: ISchema<number>;
|
|
464
468
|
layout: ISchema<string | undefined>;
|
|
465
469
|
}>[]>;
|
|
466
470
|
}>>;
|
|
467
|
-
Placeholder:
|
|
468
|
-
src: ISchema<string>;
|
|
471
|
+
Placeholder: LastWriteWinElementSetComponentDefinition<import("@dcl/ecs").MapResult<{
|
|
472
|
+
readonly src: ISchema<string>;
|
|
469
473
|
}>>;
|
|
470
474
|
};
|
|
471
475
|
export type EngineComponents = {
|