@dcl/schemas 2.2.2-20211123201233.commit-b75c7e0 → 2.2.2
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 +16 -16
- package/dist/dapps/bid.js.map +1 -1
- package/dist/dapps/body-shape.js +2 -2
- package/dist/dapps/body-shape.js.map +1 -1
- package/dist/dapps/chain-id.js +2 -2
- package/dist/dapps/chain-id.js.map +1 -1
- package/dist/dapps/chain-name.js +2 -2
- package/dist/dapps/chain-name.js.map +1 -1
- package/dist/dapps/collection.js +13 -13
- package/dist/dapps/collection.js.map +1 -1
- package/dist/dapps/contract.js +5 -5
- package/dist/dapps/contract.js.map +1 -1
- package/dist/dapps/item.d.ts.map +1 -1
- package/dist/dapps/item.js +19 -19
- package/dist/dapps/item.js.map +1 -1
- package/dist/dapps/listing-status.js +2 -2
- package/dist/dapps/listing-status.js.map +1 -1
- package/dist/dapps/meta-transactions.d.ts.map +1 -1
- package/dist/dapps/meta-transactions.js +4 -4
- package/dist/dapps/meta-transactions.js.map +1 -1
- package/dist/dapps/mint.js +14 -14
- package/dist/dapps/mint.js.map +1 -1
- package/dist/dapps/network.js +2 -2
- package/dist/dapps/network.js.map +1 -1
- package/dist/dapps/nft-category.js +2 -2
- package/dist/dapps/nft-category.js.map +1 -1
- package/dist/dapps/nft.js +44 -44
- package/dist/dapps/nft.js.map +1 -1
- package/dist/dapps/order.js +13 -13
- package/dist/dapps/order.js.map +1 -1
- package/dist/dapps/rarity.js +5 -5
- package/dist/dapps/rarity.js.map +1 -1
- package/dist/dapps/sale-type.js +2 -2
- package/dist/dapps/sale-type.js.map +1 -1
- package/dist/dapps/sale.js +13 -13
- package/dist/dapps/sale.js.map +1 -1
- package/dist/dapps/store.d.ts +20 -0
- package/dist/dapps/store.d.ts.map +1 -0
- package/dist/dapps/store.js +57 -0
- package/dist/dapps/store.js.map +1 -0
- package/dist/dapps/wearable-category.js +2 -2
- package/dist/dapps/wearable-category.js.map +1 -1
- package/dist/dapps/wearable-gender.js +2 -2
- package/dist/dapps/wearable-gender.js.map +1 -1
- package/dist/dapps/world.d.ts +1 -1
- package/dist/dapps/world.d.ts.map +1 -1
- package/dist/dapps/world.js +23 -23
- package/dist/dapps/world.js.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.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 +4 -4
- 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 +13 -6
- 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 +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 +3 -3
- 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 +12 -11
- 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 +40 -40
- 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 +22 -22
- 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 +32 -35
- 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 +4 -4
- 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 +2 -2
- 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 +16 -9
- 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 +10 -4
- 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 +2 -2
- 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 +7 -7
- package/dist/platform/wearables/wearable.js.map +1 -1
- package/dist/schemas.d.ts +115 -6
- package/dist/sdk/index.d.ts +2 -7
- package/dist/sdk/index.d.ts.map +1 -1
- package/dist/sdk/index.js +12 -2
- package/dist/sdk/index.js.map +1 -1
- 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 +3 -0
- package/dist/sdk/project/index.d.ts.map +1 -0
- package/dist/sdk/project/index.js +15 -0
- package/dist/sdk/project/index.js.map +1 -0
- package/dist/sdk/project/type.d.ts +11 -0
- package/dist/sdk/project/type.d.ts.map +1 -0
- package/dist/sdk/project/type.js +20 -0
- package/dist/sdk/project/type.js.map +1 -0
- 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 +11 -11
- 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 +6 -6
- package/dist/sdk/ws/update.js.map +1 -1
- package/dist/tsdoc-metadata.json +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 +8 -5
|
@@ -14,7 +14,7 @@ var Wearable;
|
|
|
14
14
|
type: 'object',
|
|
15
15
|
properties: {
|
|
16
16
|
id: {
|
|
17
|
-
type: 'string'
|
|
17
|
+
type: 'string'
|
|
18
18
|
},
|
|
19
19
|
descriptions: {
|
|
20
20
|
type: 'array',
|
|
@@ -22,7 +22,7 @@ var Wearable;
|
|
|
22
22
|
minItems: 1
|
|
23
23
|
},
|
|
24
24
|
collectionAddress: {
|
|
25
|
-
type: 'string'
|
|
25
|
+
type: 'string'
|
|
26
26
|
},
|
|
27
27
|
rarity: rarity_1.Rarity.schema,
|
|
28
28
|
names: {
|
|
@@ -59,10 +59,10 @@ var Wearable;
|
|
|
59
59
|
required: ['replaces', 'hides', 'tags', 'representations', 'category']
|
|
60
60
|
},
|
|
61
61
|
thumbnail: {
|
|
62
|
-
type: 'string'
|
|
62
|
+
type: 'string'
|
|
63
63
|
},
|
|
64
64
|
image: {
|
|
65
|
-
type: 'string'
|
|
65
|
+
type: 'string'
|
|
66
66
|
},
|
|
67
67
|
metrics: {
|
|
68
68
|
...metrics_1.Metrics.schema,
|
|
@@ -78,10 +78,10 @@ var Wearable;
|
|
|
78
78
|
'names',
|
|
79
79
|
'data',
|
|
80
80
|
'thumbnail',
|
|
81
|
-
'image'
|
|
82
|
-
]
|
|
81
|
+
'image'
|
|
82
|
+
]
|
|
83
83
|
};
|
|
84
|
-
const schemaValidator = validation_1.generateValidator(Wearable.schema);
|
|
84
|
+
const schemaValidator = (0, validation_1.generateValidator)(Wearable.schema);
|
|
85
85
|
Wearable.validate = (wearable) => schemaValidator(wearable) &&
|
|
86
86
|
validateDuplicatedLocales(wearable.descriptions) &&
|
|
87
87
|
validateDuplicatedLocales(wearable.names);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wearable.js","sourceRoot":"","sources":["../../../src/platform/wearables/wearable.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"wearable.js","sourceRoot":"","sources":["../../../src/platform/wearables/wearable.ts"],"names":[],"mappings":";;;AAAA,iDAIyB;AACzB,+CAA2C;AAC3C,qEAAgE;AAChE,iCAA6B;AAC7B,qDAAyD;AACzD,uCAAmC;AAqBnC,aAAa;AACb,IAAiB,QAAQ,CAuFxB;AAvFD,WAAiB,QAAQ;IACV,eAAM,GAAyB;QAC1C,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,EAAE,EAAE;gBACF,IAAI,EAAE,QAAQ;aACf;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,WAAI,CAAC,MAAM;gBAClB,QAAQ,EAAE,CAAC;aACZ;YACD,iBAAiB,EAAE;gBACjB,IAAI,EAAE,QAAQ;aACf;YACD,MAAM,EAAE,eAAM,CAAC,MAAM;YACrB,KAAK,EAAE;gBACL,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,WAAI,CAAC,MAAM;gBAClB,QAAQ,EAAE,CAAC;aACZ;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,UAAU,EAAE;oBACV,QAAQ,EAAE;wBACR,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,oCAAgB,CAAC,MAAM;qBAC/B;oBACD,KAAK,EAAE;wBACL,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,oCAAgB,CAAC,MAAM;qBAC/B;oBACD,IAAI,EAAE;wBACJ,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE;4BACL,IAAI,EAAE,QAAQ;4BACd,SAAS,EAAE,CAAC;yBACb;qBACF;oBACD,eAAe,EAAE;wBACf,IAAI,EAAE,OAAO;wBACb,KAAK,EAAE,uCAAsB,CAAC,MAAM;wBACpC,QAAQ,EAAE,CAAC;qBACZ;oBACD,QAAQ,EAAE,oCAAgB,CAAC,MAAM;iBAClC;gBACD,oBAAoB,EAAE,KAAK;gBAC3B,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,CAAC;aACvE;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;aACf;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;aACf;YACD,OAAO,EAAE;gBACP,GAAG,iBAAO,CAAC,MAAM;gBACjB,QAAQ,EAAE,IAAI;aACf;SACF;QACD,oBAAoB,EAAE,KAAK;QAC3B,QAAQ,EAAE;YACR,IAAI;YACJ,cAAc;YACd,mBAAmB;YACnB,QAAQ;YACR,OAAO;YACP,MAAM;YACN,WAAW;YACX,OAAO;SACR;KACF,CAAA;IAED,MAAM,eAAe,GAA+B,IAAA,8BAAiB,EAAC,SAAA,MAAM,CAAC,CAAA;IAChE,iBAAQ,GAA+B,CAClD,QAAa,EACS,EAAE,CACxB,eAAe,CAAC,QAAQ,CAAC;QACzB,yBAAyB,CAAC,QAAQ,CAAC,YAAY,CAAC;QAChD,yBAAyB,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;IAE3C,iEAAiE;IACjE,MAAM,yBAAyB,GAAG,CAAC,KAAa,EAAE,EAAE,CAClD,KAAK,CAAC,KAAK,CACT,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,CAClB,KAAK,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC,KAAK,KAAK,CAC1D,CAAA;AACL,CAAC,EAvFgB,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAuFxB"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -10,8 +10,42 @@ export declare type AbstractTypedSchema<T> = {
|
|
|
10
10
|
schema: JSONSchema<T>;
|
|
11
11
|
validate: ValidateFunction<T>;
|
|
12
12
|
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
declare type Actions = typeof SCENE_UPDATE | typeof UPDATE;
|
|
16
|
+
|
|
13
17
|
export { Ajv }
|
|
14
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
|
+
|
|
15
49
|
/**
|
|
16
50
|
* Avatar represents a profile avatar
|
|
17
51
|
* @alpha
|
|
@@ -259,7 +293,7 @@ export declare namespace EthAddress {
|
|
|
259
293
|
}
|
|
260
294
|
|
|
261
295
|
/** @alpha */
|
|
262
|
-
export declare type FeatureToggles = Record<string,
|
|
296
|
+
export declare type FeatureToggles = Record<string, 'enabled' | 'disabled'>;
|
|
263
297
|
|
|
264
298
|
/** @alpha */
|
|
265
299
|
export declare namespace FeatureToggles {
|
|
@@ -412,6 +446,9 @@ export declare namespace Locale {
|
|
|
412
446
|
const validate: ValidateFunction<Locale>;
|
|
413
447
|
}
|
|
414
448
|
|
|
449
|
+
/** @internal */
|
|
450
|
+
declare type Messages = SceneUpdate | Update;
|
|
451
|
+
|
|
415
452
|
/**
|
|
416
453
|
* Meta-transaction to be relayed
|
|
417
454
|
* @alpha
|
|
@@ -655,6 +692,17 @@ export declare namespace Profile {
|
|
|
655
692
|
const validate: ValidateFunction<Profile>;
|
|
656
693
|
}
|
|
657
694
|
|
|
695
|
+
declare enum ProjectType {
|
|
696
|
+
SCENE = "scene",
|
|
697
|
+
SMART_ITEM = "smart-item",
|
|
698
|
+
PORTABLE_EXPERIENCE = "portable-experience"
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
declare namespace ProjectType {
|
|
702
|
+
const schema: JSONSchema<ProjectType>;
|
|
703
|
+
const validate: ValidateFunction<ProjectType>;
|
|
704
|
+
}
|
|
705
|
+
|
|
658
706
|
export declare enum Rarity {
|
|
659
707
|
UNIQUE = "unique",
|
|
660
708
|
MYTHIC = "mythic",
|
|
@@ -757,6 +805,9 @@ export declare namespace Scene {
|
|
|
757
805
|
const validate: ValidateFunction<Scene>;
|
|
758
806
|
}
|
|
759
807
|
|
|
808
|
+
/** @internal */
|
|
809
|
+
declare const SCENE_UPDATE = "SCENE_UPDATE";
|
|
810
|
+
|
|
760
811
|
/** @alpha */
|
|
761
812
|
export declare type SceneParcels = {
|
|
762
813
|
base: string;
|
|
@@ -770,11 +821,35 @@ export declare namespace SceneParcels {
|
|
|
770
821
|
const validate: ValidateFunction<SceneParcels>;
|
|
771
822
|
}
|
|
772
823
|
|
|
773
|
-
/** @
|
|
774
|
-
|
|
775
|
-
|
|
824
|
+
/** @internal */
|
|
825
|
+
declare type SceneUpdate = {
|
|
826
|
+
type: typeof SCENE_UPDATE;
|
|
827
|
+
payload: {
|
|
828
|
+
sceneId: string;
|
|
829
|
+
sceneType: string;
|
|
830
|
+
};
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
/** @internal */
|
|
834
|
+
declare namespace SceneUpdate {
|
|
835
|
+
const schema: JSONSchema<SceneUpdate>;
|
|
836
|
+
const validate: ValidateFunction<SceneUpdate>;
|
|
776
837
|
}
|
|
777
838
|
|
|
839
|
+
declare namespace sdk {
|
|
840
|
+
export {
|
|
841
|
+
Actions,
|
|
842
|
+
Messages,
|
|
843
|
+
SCENE_UPDATE,
|
|
844
|
+
SceneUpdate,
|
|
845
|
+
UPDATE,
|
|
846
|
+
Update,
|
|
847
|
+
ProjectType,
|
|
848
|
+
AssetJson
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
export { sdk }
|
|
852
|
+
|
|
778
853
|
declare type SinglePosition = {
|
|
779
854
|
x: number;
|
|
780
855
|
y: number;
|
|
@@ -810,7 +885,7 @@ export declare type Source = {
|
|
|
810
885
|
x: number;
|
|
811
886
|
y: number;
|
|
812
887
|
};
|
|
813
|
-
rotation?:
|
|
888
|
+
rotation?: 'north' | 'east' | 'south' | 'west';
|
|
814
889
|
layout?: {
|
|
815
890
|
rows: number;
|
|
816
891
|
cols: number;
|
|
@@ -838,6 +913,40 @@ export declare namespace SpawnPoint {
|
|
|
838
913
|
const validate: ValidateFunction<SpawnPoint>;
|
|
839
914
|
}
|
|
840
915
|
|
|
916
|
+
export declare type Store = {
|
|
917
|
+
id: string;
|
|
918
|
+
owner: string;
|
|
919
|
+
description: string;
|
|
920
|
+
links: {
|
|
921
|
+
name: string;
|
|
922
|
+
url: string;
|
|
923
|
+
}[];
|
|
924
|
+
images: {
|
|
925
|
+
name: string;
|
|
926
|
+
file: string;
|
|
927
|
+
}[];
|
|
928
|
+
version: number;
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
export declare namespace Store {
|
|
932
|
+
const schema: JSONSchema<Store>;
|
|
933
|
+
const validate: ValidateFunction<Store>;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
/** @internal @deprecated */
|
|
937
|
+
declare const UPDATE = "update";
|
|
938
|
+
|
|
939
|
+
/** @internal @deprecated */
|
|
940
|
+
declare type Update = {
|
|
941
|
+
type: typeof UPDATE;
|
|
942
|
+
};
|
|
943
|
+
|
|
944
|
+
/** @internal @deprecated */
|
|
945
|
+
declare namespace Update {
|
|
946
|
+
const schema: JSONSchema<Update>;
|
|
947
|
+
const validate: ValidateFunction<Update>;
|
|
948
|
+
}
|
|
949
|
+
|
|
841
950
|
/**
|
|
842
951
|
* This type is a subset of AJV's ValidateFunction, it exists to make
|
|
843
952
|
* .d.ts bundles smaller and to not expose all of AJV context to the
|
|
@@ -853,7 +962,7 @@ export declare interface ValidateFunction<T = unknown> {
|
|
|
853
962
|
* Validates a type with a schema in a functional way.
|
|
854
963
|
* @public
|
|
855
964
|
*/
|
|
856
|
-
export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>,
|
|
965
|
+
export declare function validateType<T>(theType: Pick<AbstractTypedSchema<T>, 'validate'>, value: T): boolean;
|
|
857
966
|
|
|
858
967
|
/**
|
|
859
968
|
* World Range
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Update, UPDATE } from "./ws/update";
|
|
4
|
-
/** @public */
|
|
5
|
-
export declare namespace sdk {
|
|
6
|
-
export { Messages, Actions, SceneUpdate, SCENE_UPDATE, UPDATE, Update };
|
|
7
|
-
}
|
|
1
|
+
export * from './ws';
|
|
2
|
+
export * from './project';
|
|
8
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/sdk/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAA;AACpB,cAAc,WAAW,CAAA"}
|
package/dist/sdk/index.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
2
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
13
|
+
__exportStar(require("./ws"), exports);
|
|
14
|
+
__exportStar(require("./project"), exports);
|
|
5
15
|
//# sourceMappingURL=index.js.map
|
package/dist/sdk/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sdk/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAoB;AACpB,4CAAyB"}
|
|
@@ -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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/sdk/project/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./type"), exports);
|
|
14
|
+
__exportStar(require("./asset-json"), exports);
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/sdk/project/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAsB;AACtB,+CAA4B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSONSchema, ValidateFunction } from '../../validation';
|
|
2
|
+
export declare enum ProjectType {
|
|
3
|
+
SCENE = "scene",
|
|
4
|
+
SMART_ITEM = "smart-item",
|
|
5
|
+
PORTABLE_EXPERIENCE = "portable-experience"
|
|
6
|
+
}
|
|
7
|
+
export declare namespace ProjectType {
|
|
8
|
+
const schema: JSONSchema<ProjectType>;
|
|
9
|
+
const validate: ValidateFunction<ProjectType>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectType = void 0;
|
|
4
|
+
const validation_1 = require("../../validation");
|
|
5
|
+
/* @internal */
|
|
6
|
+
var ProjectType;
|
|
7
|
+
(function (ProjectType) {
|
|
8
|
+
ProjectType["SCENE"] = "scene";
|
|
9
|
+
ProjectType["SMART_ITEM"] = "smart-item";
|
|
10
|
+
ProjectType["PORTABLE_EXPERIENCE"] = "portable-experience";
|
|
11
|
+
})(ProjectType = exports.ProjectType || (exports.ProjectType = {}));
|
|
12
|
+
/* @internal */
|
|
13
|
+
(function (ProjectType) {
|
|
14
|
+
ProjectType.schema = {
|
|
15
|
+
type: 'string',
|
|
16
|
+
enum: [ProjectType]
|
|
17
|
+
};
|
|
18
|
+
ProjectType.validate = (0, validation_1.generateValidator)(ProjectType.schema);
|
|
19
|
+
})(ProjectType = exports.ProjectType || (exports.ProjectType = {}));
|
|
20
|
+
//# sourceMappingURL=type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,33 +3,33 @@ 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
|
-
SceneUpdate.validate = validation_1.generateValidator(SceneUpdate.schema);
|
|
33
|
+
SceneUpdate.validate = (0, validation_1.generateValidator)(SceneUpdate.schema);
|
|
34
34
|
})(SceneUpdate = exports.SceneUpdate || (exports.SceneUpdate = {}));
|
|
35
35
|
//# sourceMappingURL=scene-update.js.map
|
|
@@ -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,20 +3,20 @@ 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
|
-
Update.validate = validation_1.generateValidator(Update.schema);
|
|
20
|
+
Update.validate = (0, validation_1.generateValidator)(Update.schema);
|
|
21
21
|
})(Update = exports.Update || (exports.Update = {}));
|
|
22
22
|
//# sourceMappingURL=update.js.map
|
|
@@ -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/tsdoc-metadata.json
CHANGED
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"}
|