@dcl/playground-assets 7.0.6-4180146485.commit-9a7dde9 → 7.0.6-4193722527.commit-97eac4a

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/sdk",
3
- "version": "7.0.6-4180146485.commit-9a7dde9",
3
+ "version": "7.0.6-4193722527.commit-97eac4a",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
@@ -57,5 +57,5 @@
57
57
  "displayName": "SDK",
58
58
  "tsconfig": "./tsconfig.json"
59
59
  },
60
- "commit": "9a7dde903f381c1778ec3c7519e4f312ab9b2ee3"
60
+ "commit": "97eac4afc17ec12d3d9da37405d587aa1a4bc9fb"
61
61
  }
@@ -1860,8 +1860,36 @@ export declare interface ISchema<T = any> {
1860
1860
  deserialize(reader: ByteBuffer): T;
1861
1861
  create(): T;
1862
1862
  extend?: (base: Partial<DeepReadonly<T>> | undefined) => T;
1863
+ jsonSchema: JsonSchemaExtended;
1863
1864
  }
1864
1865
 
1866
+ /**
1867
+ * @public
1868
+ */
1869
+ export declare type JsonArray = Array<JsonPrimitive | JsonMap | JsonArray>;
1870
+
1871
+ /**
1872
+ * @public
1873
+ */
1874
+ export declare type JsonMap = {
1875
+ [key: string]: JsonPrimitive | JsonMap | JsonArray;
1876
+ };
1877
+
1878
+ /**
1879
+ * @public
1880
+ */
1881
+ export declare type JsonPrimitive = string | number | boolean | null;
1882
+
1883
+ /**
1884
+ * JsonSchemaExtended must specify the type, and it can has more primitives params.
1885
+ * Functions are not allowed.
1886
+ * @public
1887
+ */
1888
+ export declare type JsonSchemaExtended = {
1889
+ type: 'object' | 'number' | 'integer' | 'string' | 'array' | 'boolean';
1890
+ serializationType: 'boolean' | 'enum-int' | 'enum-string' | 'int8' | 'int16' | 'int32' | 'int64' | 'float32' | 'float64' | 'vector3' | 'color3' | 'quaternion' | 'color4' | 'map' | 'optional' | 'entity' | 'array' | 'utf8-string' | 'protocol-buffer' | 'transform' | 'unknown';
1891
+ } & JsonMap;
1892
+
1865
1893
  /**
1866
1894
  * @hidden
1867
1895
  */
@@ -15372,6 +15372,34 @@
15372
15372
  "endIndex": 6
15373
15373
  }
15374
15374
  },
15375
+ {
15376
+ "kind": "PropertySignature",
15377
+ "canonicalReference": "@dcl/playground-assets!ISchema#jsonSchema:member",
15378
+ "docComment": "",
15379
+ "excerptTokens": [
15380
+ {
15381
+ "kind": "Content",
15382
+ "text": "jsonSchema: "
15383
+ },
15384
+ {
15385
+ "kind": "Reference",
15386
+ "text": "JsonSchemaExtended",
15387
+ "canonicalReference": "@dcl/playground-assets!JsonSchemaExtended:type"
15388
+ },
15389
+ {
15390
+ "kind": "Content",
15391
+ "text": ";"
15392
+ }
15393
+ ],
15394
+ "isReadonly": false,
15395
+ "isOptional": false,
15396
+ "releaseTag": "Public",
15397
+ "name": "jsonSchema",
15398
+ "propertyTypeTokenRange": {
15399
+ "startIndex": 1,
15400
+ "endIndex": 2
15401
+ }
15402
+ },
15375
15403
  {
15376
15404
  "kind": "MethodSignature",
15377
15405
  "canonicalReference": "@dcl/playground-assets!ISchema#serialize:member(1)",
@@ -15442,6 +15470,174 @@
15442
15470
  ],
15443
15471
  "extendsTokenRanges": []
15444
15472
  },
15473
+ {
15474
+ "kind": "TypeAlias",
15475
+ "canonicalReference": "@dcl/playground-assets!JsonArray:type",
15476
+ "docComment": "/**\n * @public\n */\n",
15477
+ "excerptTokens": [
15478
+ {
15479
+ "kind": "Content",
15480
+ "text": "export type JsonArray = "
15481
+ },
15482
+ {
15483
+ "kind": "Reference",
15484
+ "text": "Array",
15485
+ "canonicalReference": "!Array:interface"
15486
+ },
15487
+ {
15488
+ "kind": "Content",
15489
+ "text": "<"
15490
+ },
15491
+ {
15492
+ "kind": "Reference",
15493
+ "text": "JsonPrimitive",
15494
+ "canonicalReference": "@dcl/playground-assets!JsonPrimitive:type"
15495
+ },
15496
+ {
15497
+ "kind": "Content",
15498
+ "text": " | "
15499
+ },
15500
+ {
15501
+ "kind": "Reference",
15502
+ "text": "JsonMap",
15503
+ "canonicalReference": "@dcl/playground-assets!JsonMap:type"
15504
+ },
15505
+ {
15506
+ "kind": "Content",
15507
+ "text": " | "
15508
+ },
15509
+ {
15510
+ "kind": "Reference",
15511
+ "text": "JsonArray",
15512
+ "canonicalReference": "@dcl/playground-assets!JsonArray:type"
15513
+ },
15514
+ {
15515
+ "kind": "Content",
15516
+ "text": ">"
15517
+ },
15518
+ {
15519
+ "kind": "Content",
15520
+ "text": ";"
15521
+ }
15522
+ ],
15523
+ "fileUrlPath": "../ecs/dist/schemas/ISchema.d.ts",
15524
+ "releaseTag": "Public",
15525
+ "name": "JsonArray",
15526
+ "typeTokenRange": {
15527
+ "startIndex": 1,
15528
+ "endIndex": 9
15529
+ }
15530
+ },
15531
+ {
15532
+ "kind": "TypeAlias",
15533
+ "canonicalReference": "@dcl/playground-assets!JsonMap:type",
15534
+ "docComment": "/**\n * @public\n */\n",
15535
+ "excerptTokens": [
15536
+ {
15537
+ "kind": "Content",
15538
+ "text": "export type JsonMap = "
15539
+ },
15540
+ {
15541
+ "kind": "Content",
15542
+ "text": "{\n [key: string]: "
15543
+ },
15544
+ {
15545
+ "kind": "Reference",
15546
+ "text": "JsonPrimitive",
15547
+ "canonicalReference": "@dcl/playground-assets!JsonPrimitive:type"
15548
+ },
15549
+ {
15550
+ "kind": "Content",
15551
+ "text": " | "
15552
+ },
15553
+ {
15554
+ "kind": "Reference",
15555
+ "text": "JsonMap",
15556
+ "canonicalReference": "@dcl/playground-assets!JsonMap:type"
15557
+ },
15558
+ {
15559
+ "kind": "Content",
15560
+ "text": " | "
15561
+ },
15562
+ {
15563
+ "kind": "Reference",
15564
+ "text": "JsonArray",
15565
+ "canonicalReference": "@dcl/playground-assets!JsonArray:type"
15566
+ },
15567
+ {
15568
+ "kind": "Content",
15569
+ "text": ";\n}"
15570
+ },
15571
+ {
15572
+ "kind": "Content",
15573
+ "text": ";"
15574
+ }
15575
+ ],
15576
+ "fileUrlPath": "../ecs/dist/schemas/ISchema.d.ts",
15577
+ "releaseTag": "Public",
15578
+ "name": "JsonMap",
15579
+ "typeTokenRange": {
15580
+ "startIndex": 1,
15581
+ "endIndex": 8
15582
+ }
15583
+ },
15584
+ {
15585
+ "kind": "TypeAlias",
15586
+ "canonicalReference": "@dcl/playground-assets!JsonPrimitive:type",
15587
+ "docComment": "/**\n * @public\n */\n",
15588
+ "excerptTokens": [
15589
+ {
15590
+ "kind": "Content",
15591
+ "text": "export type JsonPrimitive = "
15592
+ },
15593
+ {
15594
+ "kind": "Content",
15595
+ "text": "string | number | boolean | null"
15596
+ },
15597
+ {
15598
+ "kind": "Content",
15599
+ "text": ";"
15600
+ }
15601
+ ],
15602
+ "fileUrlPath": "../ecs/dist/schemas/ISchema.d.ts",
15603
+ "releaseTag": "Public",
15604
+ "name": "JsonPrimitive",
15605
+ "typeTokenRange": {
15606
+ "startIndex": 1,
15607
+ "endIndex": 2
15608
+ }
15609
+ },
15610
+ {
15611
+ "kind": "TypeAlias",
15612
+ "canonicalReference": "@dcl/playground-assets!JsonSchemaExtended:type",
15613
+ "docComment": "/**\n * JsonSchemaExtended must specify the type, and it can has more primitives params. Functions are not allowed.\n *\n * @public\n */\n",
15614
+ "excerptTokens": [
15615
+ {
15616
+ "kind": "Content",
15617
+ "text": "export type JsonSchemaExtended = "
15618
+ },
15619
+ {
15620
+ "kind": "Content",
15621
+ "text": "{\n type: 'object' | 'number' | 'integer' | 'string' | 'array' | 'boolean';\n serializationType: 'boolean' | 'enum-int' | 'enum-string' | 'int8' | 'int16' | 'int32' | 'int64' | 'float32' | 'float64' | 'vector3' | 'color3' | 'quaternion' | 'color4' | 'map' | 'optional' | 'entity' | 'array' | 'utf8-string' | 'protocol-buffer' | 'transform' | 'unknown';\n} & "
15622
+ },
15623
+ {
15624
+ "kind": "Reference",
15625
+ "text": "JsonMap",
15626
+ "canonicalReference": "@dcl/playground-assets!JsonMap:type"
15627
+ },
15628
+ {
15629
+ "kind": "Content",
15630
+ "text": ";"
15631
+ }
15632
+ ],
15633
+ "fileUrlPath": "../ecs/dist/schemas/ISchema.d.ts",
15634
+ "releaseTag": "Public",
15635
+ "name": "JsonSchemaExtended",
15636
+ "typeTokenRange": {
15637
+ "startIndex": 1,
15638
+ "endIndex": 3
15639
+ }
15640
+ },
15445
15641
  {
15446
15642
  "kind": "Namespace",
15447
15643
  "canonicalReference": "@dcl/playground-assets!JSX:namespace",
@@ -1006,9 +1006,28 @@ export interface ISchema<T = any> {
1006
1006
  // (undocumented)
1007
1007
  extend?: (base: Partial<DeepReadonly<T>> | undefined) => T;
1008
1008
  // (undocumented)
1009
+ jsonSchema: JsonSchemaExtended;
1010
+ // (undocumented)
1009
1011
  serialize(value: DeepReadonly<T>, builder: ByteBuffer): void;
1010
1012
  }
1011
1013
 
1014
+ // @public (undocumented)
1015
+ export type JsonArray = Array<JsonPrimitive | JsonMap | JsonArray>;
1016
+
1017
+ // @public (undocumented)
1018
+ export type JsonMap = {
1019
+ [key: string]: JsonPrimitive | JsonMap | JsonArray;
1020
+ };
1021
+
1022
+ // @public (undocumented)
1023
+ export type JsonPrimitive = string | number | boolean | null;
1024
+
1025
+ // @public
1026
+ export type JsonSchemaExtended = {
1027
+ type: 'object' | 'number' | 'integer' | 'string' | 'array' | 'boolean';
1028
+ serializationType: 'boolean' | 'enum-int' | 'enum-string' | 'int8' | 'int16' | 'int32' | 'int64' | 'float32' | 'float64' | 'vector3' | 'color3' | 'quaternion' | 'color4' | 'map' | 'optional' | 'entity' | 'array' | 'utf8-string' | 'protocol-buffer' | 'transform' | 'unknown';
1029
+ } & JsonMap;
1030
+
1012
1031
  // Warning: (tsdoc-undefined-tag) The TSDoc tag "@hidden" is not defined in this configuration
1013
1032
  // Warning: (ae-missing-release-tag) "JSX" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
1014
1033
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/playground-assets",
3
- "version": "7.0.6-4180146485.commit-9a7dde9",
3
+ "version": "7.0.6-4193722527.commit-97eac4a",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "typings": "./dist/index.d.ts",
@@ -17,12 +17,12 @@
17
17
  "author": "Decentraland",
18
18
  "license": "Apache-2.0",
19
19
  "dependencies": {
20
- "@dcl/sdk": "7.0.6-4180146485.commit-9a7dde9"
20
+ "@dcl/sdk": "7.0.6-4193722527.commit-97eac4a"
21
21
  },
22
22
  "minCliVersion": "3.12.3",
23
23
  "files": [
24
24
  "dist",
25
25
  "etc"
26
26
  ],
27
- "commit": "9a7dde903f381c1778ec3c7519e4f312ab9b2ee3"
27
+ "commit": "97eac4afc17ec12d3d9da37405d587aa1a4bc9fb"
28
28
  }