@dcl/schemas 2.2.2-20211124181718.commit-a8f6f19 → 2.2.2-20211125150359.commit-1d0a8ae
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/dapps/bid.js +15 -15
- package/dist/dapps/body-shape.js +1 -1
- package/dist/dapps/chain-id.js +1 -1
- package/dist/dapps/chain-name.js +1 -1
- package/dist/dapps/collection.js +12 -12
- package/dist/dapps/contract.js +4 -4
- package/dist/dapps/item.d.ts.map +1 -1
- package/dist/dapps/item.js +18 -18
- package/dist/dapps/item.js.map +1 -1
- package/dist/dapps/listing-status.js +1 -1
- package/dist/dapps/meta-transactions.d.ts.map +1 -1
- package/dist/dapps/meta-transactions.js +3 -3
- package/dist/dapps/meta-transactions.js.map +1 -1
- package/dist/dapps/mint.js +13 -13
- package/dist/dapps/network.js +1 -1
- package/dist/dapps/nft-category.js +1 -1
- package/dist/dapps/nft.js +43 -43
- package/dist/dapps/order.js +12 -12
- package/dist/dapps/rarity.js +4 -4
- package/dist/dapps/sale-type.js +1 -1
- package/dist/dapps/sale.js +12 -12
- package/dist/dapps/wearable-category.js +1 -1
- package/dist/dapps/wearable-gender.js +1 -1
- package/dist/dapps/world.d.ts +1 -1
- package/dist/dapps/world.d.ts.map +1 -1
- package/dist/dapps/world.js +22 -22
- package/dist/dapps/world.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/misc/index.d.ts +1 -1
- package/dist/misc/index.d.ts.map +1 -1
- package/dist/misc/index.js +1 -1
- package/dist/misc/index.js.map +1 -1
- package/dist/platform/profile/avatar.d.ts +2 -2
- package/dist/platform/profile/avatar.d.ts.map +1 -1
- package/dist/platform/profile/avatar.js +10 -3
- package/dist/platform/profile/avatar.js.map +1 -1
- package/dist/platform/profile/profile.d.ts +2 -2
- package/dist/platform/profile/profile.d.ts.map +1 -1
- package/dist/platform/profile/profile.js.map +1 -1
- package/dist/platform/scene/feature-toggles.d.ts +1 -1
- package/dist/platform/scene/feature-toggles.d.ts.map +1 -1
- package/dist/platform/scene/feature-toggles.js +2 -2
- package/dist/platform/scene/feature-toggles.js.map +1 -1
- package/dist/platform/scene/scene-parcels.d.ts +1 -1
- package/dist/platform/scene/scene-parcels.d.ts.map +1 -1
- package/dist/platform/scene/scene-parcels.js +11 -10
- package/dist/platform/scene/scene-parcels.js.map +1 -1
- package/dist/platform/scene/scene.d.ts +5 -5
- package/dist/platform/scene/scene.d.ts.map +1 -1
- package/dist/platform/scene/scene.js +39 -39
- package/dist/platform/scene/scene.js.map +1 -1
- package/dist/platform/scene/source.d.ts +2 -2
- package/dist/platform/scene/source.d.ts.map +1 -1
- package/dist/platform/scene/source.js +21 -21
- package/dist/platform/scene/source.js.map +1 -1
- package/dist/platform/scene/spawn-point.d.ts +1 -1
- package/dist/platform/scene/spawn-point.d.ts.map +1 -1
- package/dist/platform/scene/spawn-point.js +31 -34
- package/dist/platform/scene/spawn-point.js.map +1 -1
- package/dist/platform/wearables/i18n.d.ts.map +1 -1
- package/dist/platform/wearables/i18n.js +3 -3
- package/dist/platform/wearables/i18n.js.map +1 -1
- package/dist/platform/wearables/locale.d.ts.map +1 -1
- package/dist/platform/wearables/locale.js +1 -1
- package/dist/platform/wearables/locale.js.map +1 -1
- package/dist/platform/wearables/metrics.d.ts.map +1 -1
- package/dist/platform/wearables/metrics.js +15 -8
- package/dist/platform/wearables/metrics.js.map +1 -1
- package/dist/platform/wearables/representation.d.ts.map +1 -1
- package/dist/platform/wearables/representation.js +9 -3
- package/dist/platform/wearables/representation.js.map +1 -1
- package/dist/platform/wearables/wearable-body-shape.d.ts.map +1 -1
- package/dist/platform/wearables/wearable-body-shape.js +1 -1
- package/dist/platform/wearables/wearable-body-shape.js.map +1 -1
- package/dist/platform/wearables/wearable.d.ts.map +1 -1
- package/dist/platform/wearables/wearable.js +6 -6
- package/dist/platform/wearables/wearable.js.map +1 -1
- package/dist/schemas.d.ts +35 -4
- package/dist/sdk/project/asset-json.d.ts +22 -0
- package/dist/sdk/project/asset-json.d.ts.map +1 -0
- package/dist/sdk/project/asset-json.js +45 -0
- package/dist/sdk/project/asset-json.js.map +1 -0
- package/dist/sdk/project/asset-wearable-gender.d.ts +11 -0
- package/dist/sdk/project/asset-wearable-gender.d.ts.map +1 -0
- package/dist/sdk/project/asset-wearable-gender.js +18 -0
- package/dist/sdk/project/asset-wearable-gender.js.map +1 -0
- package/dist/sdk/project/index.d.ts +1 -0
- package/dist/sdk/project/index.d.ts.map +1 -1
- package/dist/sdk/project/index.js +1 -0
- package/dist/sdk/project/index.js.map +1 -1
- package/dist/sdk/project/type.d.ts +1 -1
- package/dist/sdk/project/type.d.ts.map +1 -1
- package/dist/sdk/project/type.js +1 -1
- package/dist/sdk/project/type.js.map +1 -1
- package/dist/sdk/ws/index.d.ts +4 -4
- package/dist/sdk/ws/index.d.ts.map +1 -1
- package/dist/sdk/ws/scene-update.d.ts +1 -1
- package/dist/sdk/ws/scene-update.d.ts.map +1 -1
- package/dist/sdk/ws/scene-update.js +10 -10
- package/dist/sdk/ws/scene-update.js.map +1 -1
- package/dist/sdk/ws/update.d.ts +1 -1
- package/dist/sdk/ws/update.d.ts.map +1 -1
- package/dist/sdk/ws/update.js +5 -5
- package/dist/sdk/ws/update.js.map +1 -1
- package/dist/validation.d.ts +2 -2
- package/dist/validation.d.ts.map +1 -1
- package/dist/validation.js.map +1 -1
- package/package.json +5 -2
package/dist/schemas.d.ts
CHANGED
|
@@ -16,6 +16,36 @@ declare type Actions = typeof SCENE_UPDATE | typeof UPDATE;
|
|
|
16
16
|
|
|
17
17
|
export { Ajv }
|
|
18
18
|
|
|
19
|
+
/** @alpha */
|
|
20
|
+
declare type AssetJson = {
|
|
21
|
+
id: string;
|
|
22
|
+
assetType: string;
|
|
23
|
+
name: string;
|
|
24
|
+
description: string;
|
|
25
|
+
thumbnail: string;
|
|
26
|
+
model: string;
|
|
27
|
+
category: WearableCategory;
|
|
28
|
+
rarity: Rarity;
|
|
29
|
+
bodyShape: AssetWearableGender;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/** @alpha */
|
|
33
|
+
declare namespace AssetJson {
|
|
34
|
+
const schema: JSONSchema<AssetJson>;
|
|
35
|
+
const validate: ValidateFunction<AssetJson>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare enum AssetWearableGender {
|
|
39
|
+
MALE = "male",
|
|
40
|
+
FEMALE = "female",
|
|
41
|
+
BOTH = "both"
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare namespace AssetWearableGender {
|
|
45
|
+
const schema: JSONSchema<AssetWearableGender>;
|
|
46
|
+
const validate: ValidateFunction<AssetWearableGender>;
|
|
47
|
+
}
|
|
48
|
+
|
|
19
49
|
/**
|
|
20
50
|
* Avatar represents a profile avatar
|
|
21
51
|
* @alpha
|
|
@@ -263,7 +293,7 @@ export declare namespace EthAddress {
|
|
|
263
293
|
}
|
|
264
294
|
|
|
265
295
|
/** @alpha */
|
|
266
|
-
export declare type FeatureToggles = Record<string,
|
|
296
|
+
export declare type FeatureToggles = Record<string, 'enabled' | 'disabled'>;
|
|
267
297
|
|
|
268
298
|
/** @alpha */
|
|
269
299
|
export declare namespace FeatureToggles {
|
|
@@ -814,7 +844,8 @@ declare namespace sdk {
|
|
|
814
844
|
SceneUpdate,
|
|
815
845
|
UPDATE,
|
|
816
846
|
Update,
|
|
817
|
-
ProjectType
|
|
847
|
+
ProjectType,
|
|
848
|
+
AssetJson
|
|
818
849
|
}
|
|
819
850
|
}
|
|
820
851
|
export { sdk }
|
|
@@ -854,7 +885,7 @@ export declare type Source = {
|
|
|
854
885
|
x: number;
|
|
855
886
|
y: number;
|
|
856
887
|
};
|
|
857
|
-
rotation?:
|
|
888
|
+
rotation?: 'north' | 'east' | 'south' | 'west';
|
|
858
889
|
layout?: {
|
|
859
890
|
rows: number;
|
|
860
891
|
cols: number;
|
|
@@ -911,7 +942,7 @@ export declare interface ValidateFunction<T = unknown> {
|
|
|
911
942
|
* Validates a type with a schema in a functional way.
|
|
912
943
|
* @public
|
|
913
944
|
*/
|
|
914
|
-
export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>,
|
|
945
|
+
export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>, 'validate'>, value: T): boolean;
|
|
915
946
|
|
|
916
947
|
/**
|
|
917
948
|
* World Range
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { WearableCategory } from './../../dapps/wearable-category';
|
|
2
|
+
import { JSONSchema, ValidateFunction } from '../../validation';
|
|
3
|
+
import { Rarity } from './../../dapps/rarity';
|
|
4
|
+
import { AssetWearableGender } from './asset-wearable-gender';
|
|
5
|
+
/** @alpha */
|
|
6
|
+
export declare type AssetJson = {
|
|
7
|
+
id: string;
|
|
8
|
+
assetType: string;
|
|
9
|
+
name: string;
|
|
10
|
+
description: string;
|
|
11
|
+
thumbnail: string;
|
|
12
|
+
model: string;
|
|
13
|
+
category: WearableCategory;
|
|
14
|
+
rarity: Rarity;
|
|
15
|
+
bodyShape: AssetWearableGender;
|
|
16
|
+
};
|
|
17
|
+
/** @alpha */
|
|
18
|
+
export declare namespace AssetJson {
|
|
19
|
+
const schema: JSONSchema<AssetJson>;
|
|
20
|
+
const validate: ValidateFunction<AssetJson>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=asset-json.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-json.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/asset-json.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAC7C,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAE7D,aAAa;AACb,oBAAY,SAAS,GAAG;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IAEjB,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IAEnB,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;IAEb,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,mBAAmB,CAAA;CAC/B,CAAA;AAED,aAAa;AACb,yBAAiB,SAAS,CAAC;IAClB,MAAM,MAAM,EAAE,UAAU,CAAC,SAAS,CA+BxC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,SAAS,CAA6B,CAAA;CAC/E"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssetJson = void 0;
|
|
4
|
+
const type_1 = require("./../project/type");
|
|
5
|
+
const wearable_category_1 = require("./../../dapps/wearable-category");
|
|
6
|
+
const validation_1 = require("../../validation");
|
|
7
|
+
const rarity_1 = require("./../../dapps/rarity");
|
|
8
|
+
const asset_wearable_gender_1 = require("./asset-wearable-gender");
|
|
9
|
+
/** @alpha */
|
|
10
|
+
var AssetJson;
|
|
11
|
+
(function (AssetJson) {
|
|
12
|
+
AssetJson.schema = {
|
|
13
|
+
type: 'object',
|
|
14
|
+
properties: {
|
|
15
|
+
id: {
|
|
16
|
+
description: 'The ID that you will replace in your collection. Also this ID is used for develop purpose, to identify in the kernel.',
|
|
17
|
+
type: 'string'
|
|
18
|
+
},
|
|
19
|
+
assetType: type_1.ProjectType.schema,
|
|
20
|
+
name: {
|
|
21
|
+
description: '',
|
|
22
|
+
type: 'string'
|
|
23
|
+
},
|
|
24
|
+
description: {
|
|
25
|
+
description: 'A short text that describes the wearable.`',
|
|
26
|
+
type: 'string'
|
|
27
|
+
},
|
|
28
|
+
thumbnail: {
|
|
29
|
+
description: 'A preview image of your item.',
|
|
30
|
+
type: 'string'
|
|
31
|
+
},
|
|
32
|
+
model: {
|
|
33
|
+
description: 'The main file that should be loaded as wearable.',
|
|
34
|
+
type: 'string'
|
|
35
|
+
},
|
|
36
|
+
category: wearable_category_1.WearableCategory.schema,
|
|
37
|
+
rarity: rarity_1.Rarity.schema,
|
|
38
|
+
bodyShape: asset_wearable_gender_1.AssetWearableGender.schema
|
|
39
|
+
},
|
|
40
|
+
additionalProperties: false,
|
|
41
|
+
required: ['category', 'rarity', 'bodyShape', 'thumbnail', 'model']
|
|
42
|
+
};
|
|
43
|
+
AssetJson.validate = (0, validation_1.generateValidator)(AssetJson.schema);
|
|
44
|
+
})(AssetJson = exports.AssetJson || (exports.AssetJson = {}));
|
|
45
|
+
//# sourceMappingURL=asset-json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-json.js","sourceRoot":"","sources":["../../../src/sdk/project/asset-json.ts"],"names":[],"mappings":";;;AAAA,4CAA+C;AAC/C,uEAAkE;AAClE,iDAIyB;AACzB,iDAA6C;AAC7C,mEAA6D;AAkB7D,aAAa;AACb,IAAiB,SAAS,CAmCzB;AAnCD,WAAiB,SAAS;IACX,gBAAM,GAA0B;QAC3C,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,WAAW,EACT,uHAAuH;gBACzH,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE,kBAAW,CAAC,MAAM;YAC7B,IAAI,EAAE;gBACJ,WAAW,EAAE,EAAE;gBACf,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE;gBACX,WAAW,EAAE,4CAA4C;gBACzD,IAAI,EAAE,QAAQ;aACf;YACD,SAAS,EAAE;gBACT,WAAW,EAAE,+BAA+B;gBAC5C,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,WAAW,EAAE,kDAAkD;gBAC/D,IAAI,EAAE,QAAQ;aACf;YACD,QAAQ,EAAE,oCAAgB,CAAC,MAAM;YACjC,MAAM,EAAE,eAAM,CAAC,MAAM;YACrB,SAAS,EAAE,2CAAmB,CAAC,MAAM;SACtC;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,CAAC;KACpE,CAAA;IAEY,kBAAQ,GAAgC,IAAA,8BAAiB,EAAC,UAAA,MAAM,CAAC,CAAA;AAChF,CAAC,EAnCgB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAmCzB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSONSchema, ValidateFunction } from '../../validation';
|
|
2
|
+
export declare enum AssetWearableGender {
|
|
3
|
+
MALE = "male",
|
|
4
|
+
FEMALE = "female",
|
|
5
|
+
BOTH = "both"
|
|
6
|
+
}
|
|
7
|
+
export declare namespace AssetWearableGender {
|
|
8
|
+
const schema: JSONSchema<AssetWearableGender>;
|
|
9
|
+
const validate: ValidateFunction<AssetWearableGender>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=asset-wearable-gender.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-wearable-gender.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/asset-wearable-gender.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAEzB,oBAAY,mBAAmB;IAC7B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CACd;AAED,yBAAiB,mBAAmB,CAAC;IAC5B,MAAM,MAAM,EAAE,UAAU,CAAC,mBAAmB,CAGlD,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,mBAAmB,CAChC,CAAA;CAC5B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssetWearableGender = void 0;
|
|
4
|
+
const validation_1 = require("../../validation");
|
|
5
|
+
var AssetWearableGender;
|
|
6
|
+
(function (AssetWearableGender) {
|
|
7
|
+
AssetWearableGender["MALE"] = "male";
|
|
8
|
+
AssetWearableGender["FEMALE"] = "female";
|
|
9
|
+
AssetWearableGender["BOTH"] = "both";
|
|
10
|
+
})(AssetWearableGender = exports.AssetWearableGender || (exports.AssetWearableGender = {}));
|
|
11
|
+
(function (AssetWearableGender) {
|
|
12
|
+
AssetWearableGender.schema = {
|
|
13
|
+
type: 'string',
|
|
14
|
+
enum: Object.values(AssetWearableGender)
|
|
15
|
+
};
|
|
16
|
+
AssetWearableGender.validate = (0, validation_1.generateValidator)(AssetWearableGender.schema);
|
|
17
|
+
})(AssetWearableGender = exports.AssetWearableGender || (exports.AssetWearableGender = {}));
|
|
18
|
+
//# sourceMappingURL=asset-wearable-gender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-wearable-gender.js","sourceRoot":"","sources":["../../../src/sdk/project/asset-wearable-gender.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAEzB,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,oCAAa,CAAA;IACb,wCAAiB,CAAA;IACjB,oCAAa,CAAA;AACf,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B;AAED,WAAiB,mBAAmB;IACrB,0BAAM,GAAoC;QACrD,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC;KACzC,CAAA;IAEY,4BAAQ,GACnB,IAAA,8BAAiB,EAAC,oBAAA,MAAM,CAAC,CAAA;AAC7B,CAAC,EARgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAQnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA"}
|
|
@@ -11,4 +11,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./type"), exports);
|
|
14
|
+
__exportStar(require("./asset-json"), exports);
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/project/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAsB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/project/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/type.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAGzB,oBAAY,WAAW;IACrB,KAAK,UAAU;IACf,UAAU,eAAe;IACzB,mBAAmB,wBAAwB;CAC5C;AAGD,yBAAiB,WAAW,CAAC;IACpB,MAAM,MAAM,EAAE,UAAU,CAAC,WAAW,CAG1C,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,WAAW,CACxB,CAAA;CAC5B"}
|
package/dist/sdk/project/type.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/sdk/project/type.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"type.js","sourceRoot":"","sources":["../../../src/sdk/project/type.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAEzB,eAAe;AACf,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,8BAAe,CAAA;IACf,wCAAyB,CAAA;IACzB,0DAA2C,CAAA;AAC7C,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAED,eAAe;AACf,WAAiB,WAAW;IACb,kBAAM,GAA4B;QAC7C,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,CAAC,WAAW,CAAC;KACpB,CAAA;IAEY,oBAAQ,GACnB,IAAA,8BAAiB,EAAC,YAAA,MAAM,CAAC,CAAA;AAC7B,CAAC,EARgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQ3B"}
|
package/dist/sdk/ws/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { SCENE_UPDATE, SceneUpdate } from
|
|
2
|
-
import { UPDATE, Update } from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
1
|
+
import { SCENE_UPDATE, SceneUpdate } from './scene-update';
|
|
2
|
+
import { UPDATE, Update } from './update';
|
|
3
|
+
export * from './scene-update';
|
|
4
|
+
export * from './update';
|
|
5
5
|
/** @internal */
|
|
6
6
|
export declare type Actions = typeof SCENE_UPDATE | typeof UPDATE;
|
|
7
7
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/ws/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/ws/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC1D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEzC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AAExB,gBAAgB;AAChB,oBAAY,OAAO,GAAG,OAAO,YAAY,GAAG,OAAO,MAAM,CAAA;AAEzD,gBAAgB;AAChB,oBAAY,QAAQ,GAAG,WAAW,GAAG,MAAM,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-update.d.ts","sourceRoot":"","sources":["../../../src/sdk/ws/scene-update.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"scene-update.d.ts","sourceRoot":"","sources":["../../../src/sdk/ws/scene-update.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAEzB,gBAAgB;AAChB,eAAO,MAAM,YAAY,iBAAiB,CAAA;AAE1C,gBAAgB;AAChB,oBAAY,WAAW,GAAG;IACxB,IAAI,EAAE,OAAO,YAAY,CAAA;IACzB,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAA;QACf,SAAS,EAAE,MAAM,CAAA;KAClB,CAAA;CACF,CAAA;AAED,gBAAgB;AAChB,yBAAiB,WAAW,CAAC;IACpB,MAAM,MAAM,EAAE,UAAU,CAAC,WAAW,CAsB1C,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,WAAW,CACxB,CAAA;CAC5B"}
|
|
@@ -3,32 +3,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SceneUpdate = exports.SCENE_UPDATE = void 0;
|
|
4
4
|
const validation_1 = require("../../validation");
|
|
5
5
|
/** @internal */
|
|
6
|
-
exports.SCENE_UPDATE =
|
|
6
|
+
exports.SCENE_UPDATE = 'SCENE_UPDATE';
|
|
7
7
|
/** @internal */
|
|
8
8
|
var SceneUpdate;
|
|
9
9
|
(function (SceneUpdate) {
|
|
10
10
|
SceneUpdate.schema = {
|
|
11
|
-
type:
|
|
11
|
+
type: 'object',
|
|
12
12
|
properties: {
|
|
13
13
|
type: {
|
|
14
|
-
type:
|
|
14
|
+
type: 'string',
|
|
15
15
|
enum: [exports.SCENE_UPDATE]
|
|
16
16
|
},
|
|
17
17
|
payload: {
|
|
18
|
-
type:
|
|
18
|
+
type: 'object',
|
|
19
19
|
properties: {
|
|
20
20
|
sceneId: {
|
|
21
|
-
type:
|
|
21
|
+
type: 'string'
|
|
22
22
|
},
|
|
23
23
|
sceneType: {
|
|
24
|
-
type:
|
|
25
|
-
}
|
|
24
|
+
type: 'string'
|
|
25
|
+
}
|
|
26
26
|
},
|
|
27
27
|
additionalProperties: false,
|
|
28
|
-
required: [
|
|
29
|
-
}
|
|
28
|
+
required: ['sceneId', 'sceneType']
|
|
29
|
+
}
|
|
30
30
|
},
|
|
31
|
-
required: [
|
|
31
|
+
required: ['payload', 'type']
|
|
32
32
|
};
|
|
33
33
|
SceneUpdate.validate = (0, validation_1.generateValidator)(SceneUpdate.schema);
|
|
34
34
|
})(SceneUpdate = exports.SceneUpdate || (exports.SceneUpdate = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene-update.js","sourceRoot":"","sources":["../../../src/sdk/ws/scene-update.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"scene-update.js","sourceRoot":"","sources":["../../../src/sdk/ws/scene-update.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAEzB,gBAAgB;AACH,QAAA,YAAY,GAAG,cAAc,CAAA;AAW1C,gBAAgB;AAChB,IAAiB,WAAW,CA2B3B;AA3BD,WAAiB,WAAW;IACb,kBAAM,GAA4B;QAC7C,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,oBAAY,CAAC;aACrB;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,OAAO,EAAE;wBACP,IAAI,EAAE,QAAQ;qBACf;oBACD,SAAS,EAAE;wBACT,IAAI,EAAE,QAAQ;qBACf;iBACF;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC;aACnC;SACF;QACD,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC;KAC9B,CAAA;IAEY,oBAAQ,GACnB,IAAA,8BAAiB,EAAC,YAAA,MAAM,CAAC,CAAA;AAC7B,CAAC,EA3BgB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QA2B3B"}
|
package/dist/sdk/ws/update.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/sdk/ws/update.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/sdk/ws/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,gBAAgB,EACjB,MAAM,kBAAkB,CAAA;AAEzB,4BAA4B;AAC5B,eAAO,MAAM,MAAM,WAAW,CAAA;AAE9B,4BAA4B;AAC5B,oBAAY,MAAM,GAAG;IACnB,IAAI,EAAE,OAAO,MAAM,CAAA;CACpB,CAAA;AAED,4BAA4B;AAC5B,yBAAiB,MAAM,CAAC;IACf,MAAM,MAAM,EAAE,UAAU,CAAC,MAAM,CASrC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,MAAM,CAA6B,CAAA;CAC5E"}
|
package/dist/sdk/ws/update.js
CHANGED
|
@@ -3,19 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Update = exports.UPDATE = void 0;
|
|
4
4
|
const validation_1 = require("../../validation");
|
|
5
5
|
/** @internal @deprecated */
|
|
6
|
-
exports.UPDATE =
|
|
6
|
+
exports.UPDATE = 'update';
|
|
7
7
|
/** @internal @deprecated */
|
|
8
8
|
var Update;
|
|
9
9
|
(function (Update) {
|
|
10
10
|
Update.schema = {
|
|
11
|
-
type:
|
|
11
|
+
type: 'object',
|
|
12
12
|
properties: {
|
|
13
13
|
type: {
|
|
14
|
-
type:
|
|
14
|
+
type: 'string',
|
|
15
15
|
enum: [exports.UPDATE]
|
|
16
|
-
}
|
|
16
|
+
}
|
|
17
17
|
},
|
|
18
|
-
required: [
|
|
18
|
+
required: ['type']
|
|
19
19
|
};
|
|
20
20
|
Update.validate = (0, validation_1.generateValidator)(Update.schema);
|
|
21
21
|
})(Update = exports.Update || (exports.Update = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/sdk/ws/update.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/sdk/ws/update.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AAEzB,4BAA4B;AACf,QAAA,MAAM,GAAG,QAAQ,CAAA;AAO9B,4BAA4B;AAC5B,IAAiB,MAAM,CAatB;AAbD,WAAiB,MAAM;IACR,aAAM,GAAuB;QACxC,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,cAAM,CAAC;aACf;SACF;QACD,QAAQ,EAAE,CAAC,MAAM,CAAC;KACnB,CAAA;IAEY,eAAQ,GAA6B,IAAA,8BAAiB,EAAC,OAAA,MAAM,CAAC,CAAA;AAC7E,CAAC,EAbgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAatB"}
|
package/dist/validation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Ajv, { ErrorObject, JSONSchemaType } from
|
|
1
|
+
import Ajv, { ErrorObject, JSONSchemaType } from 'ajv';
|
|
2
2
|
export { Ajv };
|
|
3
3
|
/**
|
|
4
4
|
* This type is a subset of AJV's ValidateFunction, it exists to make
|
|
@@ -32,5 +32,5 @@ export declare function generateValidator<T>(schema: JSONSchema<T>): ValidateFun
|
|
|
32
32
|
* Validates a type with a schema in a functional way.
|
|
33
33
|
* @public
|
|
34
34
|
*/
|
|
35
|
-
export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>,
|
|
35
|
+
export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>, 'validate'>, value: T): boolean;
|
|
36
36
|
//# sourceMappingURL=validation.d.ts.map
|
package/dist/validation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACtD,OAAO,EAAE,GAAG,EAAE,CAAA;AAEd;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,OAAO;IAC3C,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,IAAI,CAAC,CAAA;IAChD,MAAM,CAAC,EAAE,IAAI,GAAG,WAAW,EAAE,CAAA;CAC9B;AAED;;;GAGG;AACH,oBAAY,UAAU,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;AAE7C;;;GAGG;AACH,oBAAY,mBAAmB,CAAC,CAAC,IAAI;IACnC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;IACrB,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC9B,CAAA;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,KAAK,CAAA;AACtD,OAAO,EAAE,GAAG,EAAE,CAAA;AAEd;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC,GAAG,OAAO;IAC3C,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,GAAG,GAAG,IAAI,IAAI,CAAC,CAAA;IAChD,MAAM,CAAC,EAAE,IAAI,GAAG,WAAW,EAAE,CAAA;CAC9B;AAED;;;GAGG;AACH,oBAAY,UAAU,CAAC,CAAC,IAAI,cAAc,CAAC,CAAC,CAAC,CAAA;AAE7C;;;GAGG;AACH,oBAAY,mBAAmB,CAAC,CAAC,IAAI;IACnC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;IACrB,QAAQ,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;CAC9B,CAAA;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,GACpB,gBAAgB,CAAC,CAAC,CAAC,CAGrB;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,OAAO,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,EACjD,KAAK,EAAE,CAAC,WAGT"}
|
package/dist/validation.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsD;AAC7C,cADF,aAAG,CACE;AA4BZ;;;GAGG;AACH,SAAgB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"validation.js","sourceRoot":"","sources":["../src/validation.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAsD;AAC7C,cADF,aAAG,CACE;AA4BZ;;;GAGG;AACH,SAAgB,iBAAiB,CAC/B,MAAqB;IAErB,MAAM,GAAG,GAAG,IAAI,aAAG,EAAE,CAAA;IACrB,OAAO,GAAG,CAAC,OAAO,CAAI,MAAM,CAAC,CAAA;AAC/B,CAAC;AALD,8CAKC;AAED;;;GAGG;AACH,SAAgB,YAAY,CAC1B,OAAiD,EACjD,KAAQ;IAER,OAAO,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAChC,CAAC;AALD,oCAKC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.2.2-
|
|
2
|
+
"version": "2.2.2-20211125150359.commit-1d0a8ae",
|
|
3
3
|
"name": "@dcl/schemas",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "./dist/index.d.ts",
|
|
@@ -7,10 +7,13 @@
|
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc -p tsconfig.json",
|
|
9
9
|
"test": "mocha",
|
|
10
|
+
"lint": "eslint . --ext .ts",
|
|
11
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
10
12
|
"check-api": "api-extractor run --typescript-compiler-folder ./node_modules/typescript",
|
|
11
13
|
"refresh-api": "api-extractor run --local --verbose --diagnostics --typescript-compiler-folder ./node_modules/typescript"
|
|
12
14
|
},
|
|
13
15
|
"devDependencies": {
|
|
16
|
+
"@dcl/eslint-config": "^1.0.0",
|
|
14
17
|
"@microsoft/api-extractor": "^7.18.19",
|
|
15
18
|
"@types/mocha": "^8.2.0",
|
|
16
19
|
"@types/node": "^14.14.25",
|
|
@@ -25,5 +28,5 @@
|
|
|
25
28
|
"files": [
|
|
26
29
|
"dist"
|
|
27
30
|
],
|
|
28
|
-
"commit": "
|
|
31
|
+
"commit": "1d0a8ae0b295cdce71bf20d9398e96ef862626bf"
|
|
29
32
|
}
|