@dcl/sdk 7.0.0-2536021667.commit-17c845c

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.
Files changed (45) hide show
  1. package/LICENSE +201 -0
  2. package/dist/ecs7/index.d.ts +1721 -0
  3. package/dist/ecs7/index.js +6173 -0
  4. package/dist/ecs7/index.min.js +1 -0
  5. package/dist/ecs7/index.min.js.map +1 -0
  6. package/dist/ecs7/proto-definitions/AudioSource.proto +13 -0
  7. package/dist/ecs7/proto-definitions/AudioStream.proto +10 -0
  8. package/dist/ecs7/proto-definitions/BoxShape.proto +11 -0
  9. package/dist/ecs7/proto-definitions/CylinderShape.proto +12 -0
  10. package/dist/ecs7/proto-definitions/NFTShape.proto +16 -0
  11. package/dist/ecs7/proto-definitions/PlaneShape.proto +11 -0
  12. package/dist/ecs7/proto-definitions/README.md +32 -0
  13. package/dist/ecs7/proto-definitions/SphereShape.proto +10 -0
  14. package/dist/ecs7/proto-definitions/TextShape.proto +33 -0
  15. package/dist/ecs7/proto-definitions/Transform.md +25 -0
  16. package/dist/ecs7/proto-definitions/common/Color3.proto +8 -0
  17. package/dist/ecs7/proto-definitions/common/id.md +2 -0
  18. package/dist/ecs7/proto-definitions/common/id.proto +7 -0
  19. package/package.json +42 -0
  20. package/src/cli/mock-catalyst/index.js +170 -0
  21. package/src/cli/setupUtils.js +345 -0
  22. package/src/cli/wearables.js +145 -0
  23. package/src/setupExport.js +43 -0
  24. package/src/setupProxy.js +165 -0
  25. package/types/@decentraland/CommunicationsController/index.d.ts +7 -0
  26. package/types/@decentraland/EnvironmentAPI/index.d.ts +45 -0
  27. package/types/@decentraland/EthereumController/index.d.ts +47 -0
  28. package/types/@decentraland/Identity/index.d.ts +42 -0
  29. package/types/@decentraland/ParcelIdentity/index.d.ts +49 -0
  30. package/types/@decentraland/Players/index.d.ts +47 -0
  31. package/types/@decentraland/PortableExperiences/index.d.ts +39 -0
  32. package/types/@decentraland/RestrictedActions/index.d.ts +41 -0
  33. package/types/@decentraland/SignedFetch/index.d.ts +16 -0
  34. package/types/@decentraland/SocialController/index.d.ts +1 -0
  35. package/types/@decentraland/web3-provider/index.d.ts +7 -0
  36. package/types/dcl/decentraland-ecs.api.json +61732 -0
  37. package/types/dcl/decentraland-ecs.api.md +2717 -0
  38. package/types/ecs7/index.d.ts +1721 -0
  39. package/types/ecs7-env/es2015.iterable.d.ts +486 -0
  40. package/types/ecs7-env/es2015.symbol.d.ts +46 -0
  41. package/types/ecs7-env/index.d.ts +19 -0
  42. package/types/env/es5.d.ts +4565 -0
  43. package/types/env/index.d.ts +411 -0
  44. package/types/tsconfig.ecs7.json +27 -0
  45. package/types/tsconfig.ecs7.strict.json +13 -0
@@ -0,0 +1,486 @@
1
+ /// <reference no-default-lib="true"/>
2
+ /// <reference lib="es2015.symbol" />
3
+
4
+ interface SymbolConstructor {
5
+ /**
6
+ * A method that returns the default iterator for an object. Called by the semantics of the
7
+ * for-of statement.
8
+ */
9
+ readonly iterator: unique symbol;
10
+ }
11
+
12
+ interface IteratorYieldResult<TYield> {
13
+ done?: false;
14
+ value: TYield;
15
+ }
16
+
17
+ interface IteratorReturnResult<TReturn> {
18
+ done: true;
19
+ value: TReturn;
20
+ }
21
+
22
+ type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
23
+
24
+ interface Iterator<T, TReturn = any, TNext = undefined> {
25
+ // NOTE: 'next' is defined using a tuple to ensure we report the correct assignability errors in all places.
26
+ next(...args: [] | [TNext]): IteratorResult<T, TReturn>;
27
+ return?(value?: TReturn): IteratorResult<T, TReturn>;
28
+ throw?(e?: any): IteratorResult<T, TReturn>;
29
+ }
30
+
31
+ interface Iterable<T> {
32
+ [Symbol.iterator](): Iterator<T>;
33
+ }
34
+
35
+ interface IterableIterator<T> extends Iterator<T> {
36
+ [Symbol.iterator](): IterableIterator<T>;
37
+ }
38
+
39
+ interface Array<T> {
40
+ /** Iterator */
41
+ [Symbol.iterator](): IterableIterator<T>;
42
+
43
+ /**
44
+ * Returns an iterable of key, value pairs for every entry in the array
45
+ */
46
+ entries(): IterableIterator<[number, T]>;
47
+
48
+ /**
49
+ * Returns an iterable of keys in the array
50
+ */
51
+ keys(): IterableIterator<number>;
52
+
53
+ /**
54
+ * Returns an iterable of values in the array
55
+ */
56
+ values(): IterableIterator<T>;
57
+ }
58
+
59
+ interface ArrayConstructor {
60
+ /**
61
+ * Creates an array from an iterable object.
62
+ * @param iterable An iterable object to convert to an array.
63
+ */
64
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
65
+
66
+ /**
67
+ * Creates an array from an iterable object.
68
+ * @param iterable An iterable object to convert to an array.
69
+ * @param mapfn A mapping function to call on every element of the array.
70
+ * @param thisArg Value of 'this' used to invoke the mapfn.
71
+ */
72
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
73
+ }
74
+
75
+ interface ReadonlyArray<T> {
76
+ /** Iterator of values in the array. */
77
+ [Symbol.iterator](): IterableIterator<T>;
78
+
79
+ /**
80
+ * Returns an iterable of key, value pairs for every entry in the array
81
+ */
82
+ entries(): IterableIterator<[number, T]>;
83
+
84
+ /**
85
+ * Returns an iterable of keys in the array
86
+ */
87
+ keys(): IterableIterator<number>;
88
+
89
+ /**
90
+ * Returns an iterable of values in the array
91
+ */
92
+ values(): IterableIterator<T>;
93
+ }
94
+
95
+ interface IArguments {
96
+ /** Iterator */
97
+ [Symbol.iterator](): IterableIterator<any>;
98
+ }
99
+
100
+ interface Map<K, V> {
101
+ /** Returns an iterable of entries in the map. */
102
+ [Symbol.iterator](): IterableIterator<[K, V]>;
103
+
104
+ /**
105
+ * Returns an iterable of key, value pairs for every entry in the map.
106
+ */
107
+ entries(): IterableIterator<[K, V]>;
108
+
109
+ /**
110
+ * Returns an iterable of keys in the map
111
+ */
112
+ keys(): IterableIterator<K>;
113
+
114
+ /**
115
+ * Returns an iterable of values in the map
116
+ */
117
+ values(): IterableIterator<V>;
118
+ }
119
+
120
+ interface ReadonlyMap<K, V> {
121
+ /** Returns an iterable of entries in the map. */
122
+ [Symbol.iterator](): IterableIterator<[K, V]>;
123
+
124
+ /**
125
+ * Returns an iterable of key, value pairs for every entry in the map.
126
+ */
127
+ entries(): IterableIterator<[K, V]>;
128
+
129
+ /**
130
+ * Returns an iterable of keys in the map
131
+ */
132
+ keys(): IterableIterator<K>;
133
+
134
+ /**
135
+ * Returns an iterable of values in the map
136
+ */
137
+ values(): IterableIterator<V>;
138
+ }
139
+
140
+ interface MapConstructor {
141
+ new <K, V>(iterable: Iterable<readonly [K, V]>): Map<K, V>;
142
+ }
143
+
144
+ interface WeakMap<K extends object, V> { }
145
+
146
+ interface WeakMapConstructor {
147
+ new <K extends object, V>(iterable: Iterable<readonly [K, V]>): WeakMap<K, V>;
148
+ }
149
+
150
+ interface Set<T> {
151
+ /** Iterates over values in the set. */
152
+ [Symbol.iterator](): IterableIterator<T>;
153
+ /**
154
+ * Returns an iterable of [v,v] pairs for every value `v` in the set.
155
+ */
156
+ entries(): IterableIterator<[T, T]>;
157
+ /**
158
+ * Despite its name, returns an iterable of the values in the set.
159
+ */
160
+ keys(): IterableIterator<T>;
161
+
162
+ /**
163
+ * Returns an iterable of values in the set.
164
+ */
165
+ values(): IterableIterator<T>;
166
+ }
167
+
168
+ interface ReadonlySet<T> {
169
+ /** Iterates over values in the set. */
170
+ [Symbol.iterator](): IterableIterator<T>;
171
+
172
+ /**
173
+ * Returns an iterable of [v,v] pairs for every value `v` in the set.
174
+ */
175
+ entries(): IterableIterator<[T, T]>;
176
+
177
+ /**
178
+ * Despite its name, returns an iterable of the values in the set.
179
+ */
180
+ keys(): IterableIterator<T>;
181
+
182
+ /**
183
+ * Returns an iterable of values in the set.
184
+ */
185
+ values(): IterableIterator<T>;
186
+ }
187
+
188
+ interface SetConstructor {
189
+ new <T>(iterable?: Iterable<T> | null): Set<T>;
190
+ }
191
+
192
+ interface WeakSet<T extends object> { }
193
+
194
+ interface WeakSetConstructor {
195
+ new <T extends object = object>(iterable: Iterable<T>): WeakSet<T>;
196
+ }
197
+
198
+ interface Promise<T> { }
199
+
200
+ interface PromiseConstructor {
201
+ /**
202
+ * Creates a Promise that is resolved with an array of results when all of the provided Promises
203
+ * resolve, or rejected when any Promise is rejected.
204
+ * @param values An iterable of Promises.
205
+ * @returns A new Promise.
206
+ */
207
+ all<T>(values: Iterable<T | PromiseLike<T>>): Promise<T[]>;
208
+
209
+ /**
210
+ * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
211
+ * or rejected.
212
+ * @param values An iterable of Promises.
213
+ * @returns A new Promise.
214
+ */
215
+ race<T>(values: Iterable<T>): Promise<T extends PromiseLike<infer U> ? U : T>;
216
+
217
+ /**
218
+ * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved
219
+ * or rejected.
220
+ * @param values An iterable of Promises.
221
+ * @returns A new Promise.
222
+ */
223
+ race<T>(values: Iterable<T | PromiseLike<T>>): Promise<T>;
224
+ }
225
+
226
+ interface String {
227
+ /** Iterator */
228
+ [Symbol.iterator](): IterableIterator<string>;
229
+ }
230
+
231
+ interface Int8Array {
232
+ [Symbol.iterator](): IterableIterator<number>;
233
+ /**
234
+ * Returns an array of key, value pairs for every entry in the array
235
+ */
236
+ entries(): IterableIterator<[number, number]>;
237
+ /**
238
+ * Returns an list of keys in the array
239
+ */
240
+ keys(): IterableIterator<number>;
241
+ /**
242
+ * Returns an list of values in the array
243
+ */
244
+ values(): IterableIterator<number>;
245
+ }
246
+
247
+ interface Int8ArrayConstructor {
248
+ new (elements: Iterable<number>): Int8Array;
249
+
250
+ /**
251
+ * Creates an array from an array-like or iterable object.
252
+ * @param arrayLike An array-like or iterable object to convert to an array.
253
+ * @param mapfn A mapping function to call on every element of the array.
254
+ * @param thisArg Value of 'this' used to invoke the mapfn.
255
+ */
256
+ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int8Array;
257
+ }
258
+
259
+ interface Uint8Array {
260
+ [Symbol.iterator](): IterableIterator<number>;
261
+ /**
262
+ * Returns an array of key, value pairs for every entry in the array
263
+ */
264
+ entries(): IterableIterator<[number, number]>;
265
+ /**
266
+ * Returns an list of keys in the array
267
+ */
268
+ keys(): IterableIterator<number>;
269
+ /**
270
+ * Returns an list of values in the array
271
+ */
272
+ values(): IterableIterator<number>;
273
+ }
274
+
275
+ interface Uint8ArrayConstructor {
276
+ new (elements: Iterable<number>): Uint8Array;
277
+
278
+ /**
279
+ * Creates an array from an array-like or iterable object.
280
+ * @param arrayLike An array-like or iterable object to convert to an array.
281
+ * @param mapfn A mapping function to call on every element of the array.
282
+ * @param thisArg Value of 'this' used to invoke the mapfn.
283
+ */
284
+ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8Array;
285
+ }
286
+
287
+ interface Uint8ClampedArray {
288
+ [Symbol.iterator](): IterableIterator<number>;
289
+ /**
290
+ * Returns an array of key, value pairs for every entry in the array
291
+ */
292
+ entries(): IterableIterator<[number, number]>;
293
+
294
+ /**
295
+ * Returns an list of keys in the array
296
+ */
297
+ keys(): IterableIterator<number>;
298
+
299
+ /**
300
+ * Returns an list of values in the array
301
+ */
302
+ values(): IterableIterator<number>;
303
+ }
304
+
305
+ interface Uint8ClampedArrayConstructor {
306
+ new (elements: Iterable<number>): Uint8ClampedArray;
307
+
308
+
309
+ /**
310
+ * Creates an array from an array-like or iterable object.
311
+ * @param arrayLike An array-like or iterable object to convert to an array.
312
+ * @param mapfn A mapping function to call on every element of the array.
313
+ * @param thisArg Value of 'this' used to invoke the mapfn.
314
+ */
315
+ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint8ClampedArray;
316
+ }
317
+
318
+ interface Int16Array {
319
+ [Symbol.iterator](): IterableIterator<number>;
320
+ /**
321
+ * Returns an array of key, value pairs for every entry in the array
322
+ */
323
+ entries(): IterableIterator<[number, number]>;
324
+
325
+ /**
326
+ * Returns an list of keys in the array
327
+ */
328
+ keys(): IterableIterator<number>;
329
+
330
+ /**
331
+ * Returns an list of values in the array
332
+ */
333
+ values(): IterableIterator<number>;
334
+ }
335
+
336
+ interface Int16ArrayConstructor {
337
+ new (elements: Iterable<number>): Int16Array;
338
+
339
+ /**
340
+ * Creates an array from an array-like or iterable object.
341
+ * @param arrayLike An array-like or iterable object to convert to an array.
342
+ * @param mapfn A mapping function to call on every element of the array.
343
+ * @param thisArg Value of 'this' used to invoke the mapfn.
344
+ */
345
+ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int16Array;
346
+ }
347
+
348
+ interface Uint16Array {
349
+ [Symbol.iterator](): IterableIterator<number>;
350
+ /**
351
+ * Returns an array of key, value pairs for every entry in the array
352
+ */
353
+ entries(): IterableIterator<[number, number]>;
354
+ /**
355
+ * Returns an list of keys in the array
356
+ */
357
+ keys(): IterableIterator<number>;
358
+ /**
359
+ * Returns an list of values in the array
360
+ */
361
+ values(): IterableIterator<number>;
362
+ }
363
+
364
+ interface Uint16ArrayConstructor {
365
+ new (elements: Iterable<number>): Uint16Array;
366
+
367
+ /**
368
+ * Creates an array from an array-like or iterable object.
369
+ * @param arrayLike An array-like or iterable object to convert to an array.
370
+ * @param mapfn A mapping function to call on every element of the array.
371
+ * @param thisArg Value of 'this' used to invoke the mapfn.
372
+ */
373
+ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint16Array;
374
+ }
375
+
376
+ interface Int32Array {
377
+ [Symbol.iterator](): IterableIterator<number>;
378
+ /**
379
+ * Returns an array of key, value pairs for every entry in the array
380
+ */
381
+ entries(): IterableIterator<[number, number]>;
382
+ /**
383
+ * Returns an list of keys in the array
384
+ */
385
+ keys(): IterableIterator<number>;
386
+ /**
387
+ * Returns an list of values in the array
388
+ */
389
+ values(): IterableIterator<number>;
390
+ }
391
+
392
+ interface Int32ArrayConstructor {
393
+ new (elements: Iterable<number>): Int32Array;
394
+
395
+ /**
396
+ * Creates an array from an array-like or iterable object.
397
+ * @param arrayLike An array-like or iterable object to convert to an array.
398
+ * @param mapfn A mapping function to call on every element of the array.
399
+ * @param thisArg Value of 'this' used to invoke the mapfn.
400
+ */
401
+ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Int32Array;
402
+ }
403
+
404
+ interface Uint32Array {
405
+ [Symbol.iterator](): IterableIterator<number>;
406
+ /**
407
+ * Returns an array of key, value pairs for every entry in the array
408
+ */
409
+ entries(): IterableIterator<[number, number]>;
410
+ /**
411
+ * Returns an list of keys in the array
412
+ */
413
+ keys(): IterableIterator<number>;
414
+ /**
415
+ * Returns an list of values in the array
416
+ */
417
+ values(): IterableIterator<number>;
418
+ }
419
+
420
+ interface Uint32ArrayConstructor {
421
+ new (elements: Iterable<number>): Uint32Array;
422
+
423
+ /**
424
+ * Creates an array from an array-like or iterable object.
425
+ * @param arrayLike An array-like or iterable object to convert to an array.
426
+ * @param mapfn A mapping function to call on every element of the array.
427
+ * @param thisArg Value of 'this' used to invoke the mapfn.
428
+ */
429
+ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Uint32Array;
430
+ }
431
+
432
+ interface Float32Array {
433
+ [Symbol.iterator](): IterableIterator<number>;
434
+ /**
435
+ * Returns an array of key, value pairs for every entry in the array
436
+ */
437
+ entries(): IterableIterator<[number, number]>;
438
+ /**
439
+ * Returns an list of keys in the array
440
+ */
441
+ keys(): IterableIterator<number>;
442
+ /**
443
+ * Returns an list of values in the array
444
+ */
445
+ values(): IterableIterator<number>;
446
+ }
447
+
448
+ interface Float32ArrayConstructor {
449
+ new (elements: Iterable<number>): Float32Array;
450
+
451
+ /**
452
+ * Creates an array from an array-like or iterable object.
453
+ * @param arrayLike An array-like or iterable object to convert to an array.
454
+ * @param mapfn A mapping function to call on every element of the array.
455
+ * @param thisArg Value of 'this' used to invoke the mapfn.
456
+ */
457
+ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float32Array;
458
+ }
459
+
460
+ interface Float64Array {
461
+ [Symbol.iterator](): IterableIterator<number>;
462
+ /**
463
+ * Returns an array of key, value pairs for every entry in the array
464
+ */
465
+ entries(): IterableIterator<[number, number]>;
466
+ /**
467
+ * Returns an list of keys in the array
468
+ */
469
+ keys(): IterableIterator<number>;
470
+ /**
471
+ * Returns an list of values in the array
472
+ */
473
+ values(): IterableIterator<number>;
474
+ }
475
+
476
+ interface Float64ArrayConstructor {
477
+ new (elements: Iterable<number>): Float64Array;
478
+
479
+ /**
480
+ * Creates an array from an array-like or iterable object.
481
+ * @param arrayLike An array-like or iterable object to convert to an array.
482
+ * @param mapfn A mapping function to call on every element of the array.
483
+ * @param thisArg Value of 'this' used to invoke the mapfn.
484
+ */
485
+ from(arrayLike: Iterable<number>, mapfn?: (v: number, k: number) => number, thisArg?: any): Float64Array;
486
+ }
@@ -0,0 +1,46 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
8
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
9
+ MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ See the Apache Version 2.0 License for specific language governing permissions
11
+ and limitations under the License.
12
+ ***************************************************************************** */
13
+
14
+
15
+
16
+ /// <reference no-default-lib="true"/>
17
+
18
+
19
+ interface SymbolConstructor {
20
+ /**
21
+ * A reference to the prototype.
22
+ */
23
+ readonly prototype: Symbol;
24
+
25
+ /**
26
+ * Returns a new unique Symbol value.
27
+ * @param description Description of the new Symbol object.
28
+ */
29
+ (description?: string | number): symbol;
30
+
31
+ /**
32
+ * Returns a Symbol object from the global symbol registry matching the given key if found.
33
+ * Otherwise, returns a new symbol with this key.
34
+ * @param key key to search for.
35
+ */
36
+ for(key: string): symbol;
37
+
38
+ /**
39
+ * Returns a key from the global symbol registry matching the given Symbol if found.
40
+ * Otherwise, returns a undefined.
41
+ * @param sym Symbol to find the key for.
42
+ */
43
+ keyFor(sym: symbol): string | undefined;
44
+ }
45
+
46
+ declare var Symbol: SymbolConstructor;
@@ -0,0 +1,19 @@
1
+ /*! *****************************************************************************
2
+ Copyright (c) Microsoft Corporation. All rights reserved.
3
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
+ this file except in compliance with the License. You may obtain a copy of the
5
+ License at http://www.apache.org/licenses/LICENSE-2.0
6
+ THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
7
+ KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
8
+ WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
9
+ MERCHANTABLITY OR NON-INFRINGEMENT.
10
+ See the Apache Version 2.0 License for specific language governing permissions
11
+ and limitations under the License.
12
+ ***************************************************************************** */
13
+
14
+
15
+
16
+ /// <reference no-default-lib="true"/>
17
+
18
+
19
+ /// <reference lib="es2015.iterable" />