@dcl/schemas 19.1.0 → 19.1.1-20251001173322.commit-a2edd85
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/platform/item/emote/adr287/emote-data-adr287.d.ts +4 -1
- package/dist/platform/item/emote/adr287/emote-data-adr287.d.ts.map +1 -1
- package/dist/platform/item/emote/adr287/emote-data-adr287.js +64 -19
- package/dist/platform/item/emote/adr287/emote-data-adr287.js.map +1 -1
- package/dist/platform/item/emote/emote.d.ts.map +1 -1
- package/dist/platform/item/emote/emote.js +74 -73
- package/dist/platform/item/emote/emote.js.map +1 -1
- package/dist/schemas.d.ts +4 -1
- package/package.json +2 -2
|
@@ -11,22 +11,25 @@ export declare namespace ArmatureId {
|
|
|
11
11
|
}
|
|
12
12
|
export type EmoteClip = {
|
|
13
13
|
animation: string;
|
|
14
|
-
loop: boolean;
|
|
15
14
|
};
|
|
16
15
|
export declare namespace EmoteClip {
|
|
17
16
|
const schema: JSONSchema<EmoteClip>;
|
|
18
17
|
const validate: ValidateFunction<EmoteClip>;
|
|
19
18
|
}
|
|
20
19
|
export type StartAnimation = {
|
|
20
|
+
loop: boolean;
|
|
21
21
|
[ArmatureId.Armature]: EmoteClip;
|
|
22
22
|
[ArmatureId.Armature_Prop]?: EmoteClip;
|
|
23
|
+
audio?: string;
|
|
23
24
|
};
|
|
24
25
|
export declare namespace StartAnimation {
|
|
25
26
|
const schema: JSONSchema<StartAnimation>;
|
|
26
27
|
}
|
|
27
28
|
export type OutcomeGroup = {
|
|
28
29
|
title: string;
|
|
30
|
+
loop: boolean;
|
|
29
31
|
clips: Partial<Record<ArmatureId, EmoteClip>>;
|
|
32
|
+
audio?: string;
|
|
30
33
|
};
|
|
31
34
|
export declare namespace OutcomeGroup {
|
|
32
35
|
const schema: JSONSchema<OutcomeGroup>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emote-data-adr287.d.ts","sourceRoot":"","sources":["../../../../../src/platform/item/emote/adr287/emote-data-adr287.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,oBAAY,UAAU;IACpB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CAClC;AAED,yBAAiB,UAAU,CAAC;IACnB,MAAM,MAAM,EAAE,UAAU,CAAC,UAAU,CAGzC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAiC,CAAA;CACpF;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"emote-data-adr287.d.ts","sourceRoot":"","sources":["../../../../../src/platform/item/emote/adr287/emote-data-adr287.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyB,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC5F,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,oBAAY,UAAU;IACpB,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CAClC;AAED,yBAAiB,UAAU,CAAC;IACnB,MAAM,MAAM,EAAE,UAAU,CAAC,UAAU,CAGzC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAiC,CAAA;CACpF;AAED,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,yBAAiB,SAAS,CAAC;IAClB,MAAM,MAAM,EAAE,UAAU,CAAC,SAAS,CAgBxC,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,SAAS,CAAiC,CAAA;CACnF;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAA;IACb,CAAC,UAAU,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAA;IAChC,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,SAAS,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,yBAAiB,cAAc,CAAC;IACvB,MAAM,MAAM,EAAE,UAAU,CAAC,cAAc,CA8B7C,CAAA;CACF;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAA;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,yBAAiB,YAAY,CAAC;IACrB,MAAM,MAAM,EAAE,UAAU,CAAC,YAAY,CAyC3C,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,YAAY,CAAiC,CAAA;CACtF;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG;IAC7C,cAAc,EAAE,cAAc,CAAA;IAC9B,iBAAiB,EAAE,OAAO,CAAA;IAC1B,QAAQ,EAAE,YAAY,EAAE,CAAA;CACzB,CAAA;AAED,yBAAiB,eAAe,CAAC;IACxB,MAAM,MAAM,EAAE,UAAU,CAAC,eAAe,CA+B9C,CAAA;IAEM,MAAM,QAAQ,EAAE,gBAAgB,CAAC,eAAe,CAAiC,CAAA;CACzF"}
|
|
@@ -23,14 +23,17 @@ var EmoteClip;
|
|
|
23
23
|
properties: {
|
|
24
24
|
animation: {
|
|
25
25
|
type: 'string',
|
|
26
|
-
minLength: 1
|
|
27
|
-
|
|
28
|
-
loop: {
|
|
29
|
-
type: 'boolean'
|
|
26
|
+
minLength: 1,
|
|
27
|
+
errorMessage: 'animation must be a non-empty string (GLB clip name)'
|
|
30
28
|
}
|
|
31
29
|
},
|
|
32
|
-
required: ['animation'
|
|
33
|
-
additionalProperties: false
|
|
30
|
+
required: ['animation'],
|
|
31
|
+
additionalProperties: false,
|
|
32
|
+
errorMessage: {
|
|
33
|
+
required: {
|
|
34
|
+
animation: 'animation is required (GLB clip name)'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
34
37
|
};
|
|
35
38
|
EmoteClip.validate = (0, validation_1.generateLazyValidator)(EmoteClip.schema);
|
|
36
39
|
})(EmoteClip = exports.EmoteClip || (exports.EmoteClip = {}));
|
|
@@ -39,11 +42,26 @@ var StartAnimation;
|
|
|
39
42
|
StartAnimation.schema = {
|
|
40
43
|
type: 'object',
|
|
41
44
|
properties: {
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
loop: {
|
|
46
|
+
type: 'boolean',
|
|
47
|
+
errorMessage: 'startAnimation.loop must be a boolean'
|
|
48
|
+
},
|
|
49
|
+
[ArmatureId.Armature]: Object.assign(Object.assign({}, EmoteClip.schema), { errorMessage: 'startAnimation.Armature is required and must contain valid animation data' }),
|
|
50
|
+
[ArmatureId.Armature_Prop]: Object.assign(Object.assign({}, EmoteClip.schema), { nullable: true, errorMessage: 'startAnimation.Armature_Prop must contain valid animation data when provided' }),
|
|
51
|
+
audio: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
nullable: true,
|
|
54
|
+
errorMessage: 'audio must be a string (audio clip filename) when provided'
|
|
55
|
+
}
|
|
44
56
|
},
|
|
45
|
-
required: [ArmatureId.Armature],
|
|
46
|
-
additionalProperties: true
|
|
57
|
+
required: ['loop', ArmatureId.Armature],
|
|
58
|
+
additionalProperties: true,
|
|
59
|
+
errorMessage: {
|
|
60
|
+
required: {
|
|
61
|
+
loop: 'startAnimation.loop is required',
|
|
62
|
+
[ArmatureId.Armature]: 'startAnimation.Armature is required'
|
|
63
|
+
}
|
|
64
|
+
}
|
|
47
65
|
};
|
|
48
66
|
})(StartAnimation = exports.StartAnimation || (exports.StartAnimation = {}));
|
|
49
67
|
var OutcomeGroup;
|
|
@@ -53,20 +71,38 @@ var OutcomeGroup;
|
|
|
53
71
|
properties: {
|
|
54
72
|
title: {
|
|
55
73
|
type: 'string',
|
|
56
|
-
minLength: 1
|
|
74
|
+
minLength: 1,
|
|
75
|
+
errorMessage: 'outcome.title must be a non-empty string'
|
|
76
|
+
},
|
|
77
|
+
loop: {
|
|
78
|
+
type: 'boolean',
|
|
79
|
+
errorMessage: 'outcome.loop must be a boolean'
|
|
57
80
|
},
|
|
58
81
|
clips: {
|
|
59
82
|
type: 'object',
|
|
60
83
|
properties: Object.values(ArmatureId).reduce((properties, armature) => {
|
|
61
|
-
properties[armature] = Object.assign(Object.assign({}, EmoteClip.schema), { nullable: true });
|
|
84
|
+
properties[armature] = Object.assign(Object.assign({}, EmoteClip.schema), { nullable: true, errorMessage: `outcome.clips.${armature} must contain valid animation data when provided` });
|
|
62
85
|
return properties;
|
|
63
86
|
}, {}),
|
|
64
87
|
additionalProperties: true,
|
|
65
|
-
minProperties: 1
|
|
88
|
+
minProperties: 1,
|
|
89
|
+
errorMessage: 'outcome.clips must contain at least one armature animation'
|
|
90
|
+
},
|
|
91
|
+
audio: {
|
|
92
|
+
type: 'string',
|
|
93
|
+
nullable: true,
|
|
94
|
+
errorMessage: 'audio must be a string (audio clip filename) when provided'
|
|
66
95
|
}
|
|
67
96
|
},
|
|
68
|
-
required: ['title', 'clips'],
|
|
69
|
-
additionalProperties: false
|
|
97
|
+
required: ['title', 'loop', 'clips'],
|
|
98
|
+
additionalProperties: false,
|
|
99
|
+
errorMessage: {
|
|
100
|
+
required: {
|
|
101
|
+
title: 'outcome.title is required',
|
|
102
|
+
loop: 'outcome.loop is required',
|
|
103
|
+
clips: 'outcome.clips is required'
|
|
104
|
+
}
|
|
105
|
+
}
|
|
70
106
|
};
|
|
71
107
|
OutcomeGroup.validate = (0, validation_1.generateLazyValidator)(OutcomeGroup.schema);
|
|
72
108
|
})(OutcomeGroup = exports.OutcomeGroup || (exports.OutcomeGroup = {}));
|
|
@@ -76,16 +112,25 @@ var EmoteDataADR287;
|
|
|
76
112
|
type: 'object',
|
|
77
113
|
properties: Object.assign(Object.assign({}, emote_data_adr74_1.EmoteDataADR74.schema.properties), {
|
|
78
114
|
// Add ADR287-specific properties
|
|
79
|
-
startAnimation: StartAnimation.schema, randomizeOutcomes: {
|
|
80
|
-
type: 'boolean'
|
|
115
|
+
startAnimation: Object.assign(Object.assign({}, StartAnimation.schema), { errorMessage: 'emoteDataADR287.startAnimation is required and must contain valid start animation data' }), randomizeOutcomes: {
|
|
116
|
+
type: 'boolean',
|
|
117
|
+
errorMessage: 'emoteDataADR287.randomizeOutcomes must be a boolean'
|
|
81
118
|
}, outcomes: {
|
|
82
119
|
type: 'array',
|
|
83
120
|
items: OutcomeGroup.schema,
|
|
84
121
|
minItems: 1,
|
|
85
|
-
maxItems: 3
|
|
122
|
+
maxItems: 3,
|
|
123
|
+
errorMessage: 'emoteDataADR287.outcomes must be an array with 1-3 outcome groups'
|
|
86
124
|
} }),
|
|
87
125
|
required: [...emote_data_adr74_1.EmoteDataADR74.schema.required, 'startAnimation', 'randomizeOutcomes', 'outcomes'],
|
|
88
|
-
additionalProperties: true
|
|
126
|
+
additionalProperties: true,
|
|
127
|
+
errorMessage: {
|
|
128
|
+
required: {
|
|
129
|
+
startAnimation: 'emoteDataADR287.startAnimation is required for ADR287 emotes',
|
|
130
|
+
randomizeOutcomes: 'emoteDataADR287.randomizeOutcomes is required for ADR287 emotes',
|
|
131
|
+
outcomes: 'emoteDataADR287.outcomes is required for ADR287 emotes'
|
|
132
|
+
}
|
|
133
|
+
}
|
|
89
134
|
};
|
|
90
135
|
EmoteDataADR287.validate = (0, validation_1.generateLazyValidator)(EmoteDataADR287.schema);
|
|
91
136
|
})(EmoteDataADR287 = exports.EmoteDataADR287 || (exports.EmoteDataADR287 = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emote-data-adr287.js","sourceRoot":"","sources":["../../../../../src/platform/item/emote/adr287/emote-data-adr287.ts"],"names":[],"mappings":";;;AAAA,uDAA4F;AAC5F,gEAA0D;AAE1D,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,6CAA+B,CAAA;IAC/B,+CAAiC,CAAA;AACnC,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAED,WAAiB,UAAU;IACZ,iBAAM,GAA2B;QAC5C,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;KAChC,CAAA;IAEY,mBAAQ,GAAiC,IAAA,kCAAqB,EAAC,WAAA,MAAM,CAAC,CAAA;AACrF,CAAC,EAPgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAO1B;
|
|
1
|
+
{"version":3,"file":"emote-data-adr287.js","sourceRoot":"","sources":["../../../../../src/platform/item/emote/adr287/emote-data-adr287.ts"],"names":[],"mappings":";;;AAAA,uDAA4F;AAC5F,gEAA0D;AAE1D,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,6CAA+B,CAAA;IAC/B,+CAAiC,CAAA;AACnC,CAAC,EAJW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAIrB;AAED,WAAiB,UAAU;IACZ,iBAAM,GAA2B;QAC5C,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC;KAChC,CAAA;IAEY,mBAAQ,GAAiC,IAAA,kCAAqB,EAAC,WAAA,MAAM,CAAC,CAAA;AACrF,CAAC,EAPgB,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAO1B;AAMD,IAAiB,SAAS,CAoBzB;AApBD,WAAiB,SAAS;IACX,gBAAM,GAA0B;QAC3C,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,SAAS,EAAE,CAAC;gBACZ,YAAY,EAAE,sDAAsD;aACrE;SACF;QACD,QAAQ,EAAE,CAAC,WAAW,CAAC;QACvB,oBAAoB,EAAE,KAAK;QAC3B,YAAY,EAAE;YACZ,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;CAAE,CAAA;AAE7G,aAAa;AACb,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG,WAAW,CAAA;AAE5C,aAAa;AACb,yBAAiB,KAAK,CAAC;IACd,MAAM,MAAM,EAAE,UAAU,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"emote.d.ts","sourceRoot":"","sources":["../../../../src/platform/item/emote/emote.ts"],"names":[],"mappings":"AACA,OAAO,EAAyB,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,EAAE,QAAQ,EAA0D,MAAM,cAAc,CAAA;AAC/F,OAAO,EAAsB,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACrE,OAAO,EAAmC,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAE5D,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,CAAC,aAAa,GAAG,eAAe,CAAC,GAAG;IAAE,cAAc,EAAE,cAAc,CAAA;CAAE,CAAA;AAC1G,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,CAAC,aAAa,GAAG,eAAe,CAAC,GAAG;IAAE,eAAe,EAAE,eAAe,CAAA;CAAE,CAAA;AAE7G,aAAa;AACb,MAAM,MAAM,KAAK,GAAG,UAAU,GAAG,WAAW,CAAA;AAE5C,aAAa;AACb,yBAAiB,KAAK,CAAC;IACd,MAAM,MAAM,EAAE,UAAU,CAAC,KAAK,CA2FpC,CAAA;IAcM,MAAM,QAAQ,uDAKnB,CAAA;CACH"}
|
|
@@ -16,84 +16,85 @@ var Emote;
|
|
|
16
16
|
properties: Object.assign(Object.assign(Object.assign(Object.assign({}, base_item_1.baseItemProperties), standard_props_1.standardProperties), third_party_props_1.schema.properties), { emoteDataADR74: emote_data_adr74_1.EmoteDataADR74.schema, emoteDataADR287: emote_data_adr287_1.EmoteDataADR287.schema }),
|
|
17
17
|
additionalProperties: true,
|
|
18
18
|
required: [...base_item_1.requiredBaseItemProps],
|
|
19
|
-
|
|
19
|
+
allOf: [
|
|
20
20
|
{
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// Emotes of ADR74 must be standard XOR thirdparty
|
|
24
|
-
oneOf: [
|
|
25
|
-
{
|
|
26
|
-
required: ['id', 'i18n'],
|
|
27
|
-
prohibited: ['merkleProof', 'content', 'collectionAddress', 'rarity'],
|
|
28
|
-
_isBaseEmote: true
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
required: ['collectionAddress', 'rarity'],
|
|
32
|
-
prohibited: ['merkleProof', 'content'],
|
|
33
|
-
errorMessage: 'standard properties conditions are not met'
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
required: [
|
|
37
|
-
'merkleProof',
|
|
38
|
-
/* MerkleProof emote required Keys (might be redundant) */
|
|
39
|
-
'content',
|
|
40
|
-
'id',
|
|
41
|
-
'name',
|
|
42
|
-
'description',
|
|
43
|
-
'i18n',
|
|
44
|
-
'image',
|
|
45
|
-
'thumbnail',
|
|
46
|
-
'emoteDataADR74'
|
|
47
|
-
],
|
|
48
|
-
_isThirdParty: true,
|
|
49
|
-
prohibited: ['collectionAddress', 'rarity'],
|
|
50
|
-
errorMessage: 'thirdparty properties conditions are not met'
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
errorMessage: {
|
|
54
|
-
oneOf: 'emote should have either standard or thirdparty properties'
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
required: ['emoteDataADR287'],
|
|
59
|
-
prohibited: ['emoteDataADR74'],
|
|
60
|
-
// Emotes of ADR287 must be standard XOR thirdparty
|
|
61
|
-
oneOf: [
|
|
62
|
-
{
|
|
63
|
-
required: ['id', 'i18n'],
|
|
64
|
-
prohibited: ['merkleProof', 'content', 'collectionAddress', 'rarity'],
|
|
65
|
-
_isBaseEmote: true
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
required: ['collectionAddress', 'rarity'],
|
|
69
|
-
prohibited: ['merkleProof', 'content'],
|
|
70
|
-
errorMessage: 'standard properties conditions are not met'
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
required: [
|
|
74
|
-
'merkleProof',
|
|
75
|
-
/* MerkleProof emote required Keys (might be redundant) */
|
|
76
|
-
'content',
|
|
77
|
-
'id',
|
|
78
|
-
'name',
|
|
79
|
-
'description',
|
|
80
|
-
'i18n',
|
|
81
|
-
'image',
|
|
82
|
-
'thumbnail',
|
|
83
|
-
'emoteDataADR287'
|
|
84
|
-
],
|
|
85
|
-
_isThirdParty: true,
|
|
86
|
-
prohibited: ['collectionAddress', 'rarity'],
|
|
87
|
-
errorMessage: 'thirdparty properties conditions are not met'
|
|
88
|
-
}
|
|
89
|
-
],
|
|
90
|
-
errorMessage: {
|
|
91
|
-
oneOf: 'emote should have either standard or thirdparty properties'
|
|
21
|
+
not: {
|
|
22
|
+
required: ['emoteDataADR74', 'emoteDataADR287']
|
|
92
23
|
}
|
|
93
24
|
}
|
|
94
25
|
],
|
|
26
|
+
if: { required: ['emoteDataADR287'] },
|
|
27
|
+
then: {
|
|
28
|
+
prohibited: ['emoteDataADR74'],
|
|
29
|
+
// ADR287: standard XOR thirdparty
|
|
30
|
+
oneOf: [
|
|
31
|
+
{
|
|
32
|
+
required: ['id', 'i18n'],
|
|
33
|
+
prohibited: ['merkleProof', 'content', 'collectionAddress', 'rarity'],
|
|
34
|
+
_isBaseEmote: true
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
required: ['collectionAddress', 'rarity'],
|
|
38
|
+
prohibited: ['merkleProof', 'content'],
|
|
39
|
+
errorMessage: 'standard properties conditions are not met'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
required: [
|
|
43
|
+
'merkleProof',
|
|
44
|
+
'content',
|
|
45
|
+
'id',
|
|
46
|
+
'name',
|
|
47
|
+
'description',
|
|
48
|
+
'i18n',
|
|
49
|
+
'image',
|
|
50
|
+
'thumbnail',
|
|
51
|
+
'emoteDataADR287'
|
|
52
|
+
],
|
|
53
|
+
_isThirdParty: true,
|
|
54
|
+
prohibited: ['collectionAddress', 'rarity'],
|
|
55
|
+
errorMessage: 'thirdparty properties conditions are not met'
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
errorMessage: { oneOf: 'emote should have either standard or thirdparty properties' }
|
|
59
|
+
},
|
|
60
|
+
else: {
|
|
61
|
+
required: ['emoteDataADR74'],
|
|
62
|
+
prohibited: ['emoteDataADR287'],
|
|
63
|
+
// ADR74: standard XOR thirdparty
|
|
64
|
+
oneOf: [
|
|
65
|
+
{
|
|
66
|
+
required: ['id', 'i18n'],
|
|
67
|
+
prohibited: ['merkleProof', 'content', 'collectionAddress', 'rarity'],
|
|
68
|
+
_isBaseEmote: true
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
required: ['collectionAddress', 'rarity'],
|
|
72
|
+
prohibited: ['merkleProof', 'content'],
|
|
73
|
+
errorMessage: 'standard properties conditions are not met'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
required: [
|
|
77
|
+
'merkleProof',
|
|
78
|
+
'content',
|
|
79
|
+
'id',
|
|
80
|
+
'name',
|
|
81
|
+
'description',
|
|
82
|
+
'i18n',
|
|
83
|
+
'image',
|
|
84
|
+
'thumbnail',
|
|
85
|
+
'emoteDataADR74'
|
|
86
|
+
],
|
|
87
|
+
_isThirdParty: true,
|
|
88
|
+
prohibited: ['collectionAddress', 'rarity'],
|
|
89
|
+
errorMessage: 'thirdparty properties conditions are not met'
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
errorMessage: { oneOf: 'emote should have either standard or thirdparty properties' }
|
|
93
|
+
},
|
|
95
94
|
errorMessage: {
|
|
96
|
-
|
|
95
|
+
if: 'emote should have either "emoteDataADR74" or "emoteDataADR287" (but not both) and match its schema',
|
|
96
|
+
then: 'emote should have "emoteDataADR287" and match its schema',
|
|
97
|
+
else: 'emote should have "emoteDataADR74" and match its schema'
|
|
97
98
|
}
|
|
98
99
|
};
|
|
99
100
|
const _isThirdPartyKeywordDef = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emote.js","sourceRoot":"","sources":["../../../../src/platform/item/emote/emote.ts"],"names":[],"mappings":";;;AAAA,0BAAyD;AACzD,oDAAuE;AACvE,4CAA+F;AAC/F,sDAAqE;AACrE,4DAAuF;AACvF,+DAAyD;AACzD,kEAA4D;AAQ5D,aAAa;AACb,IAAiB,KAAK,
|
|
1
|
+
{"version":3,"file":"emote.js","sourceRoot":"","sources":["../../../../src/platform/item/emote/emote.ts"],"names":[],"mappings":";;;AAAA,0BAAyD;AACzD,oDAAuE;AACvE,4CAA+F;AAC/F,sDAAqE;AACrE,4DAAuF;AACvF,+DAAyD;AACzD,kEAA4D;AAQ5D,aAAa;AACb,IAAiB,KAAK,CAgHrB;AAhHD,WAAiB,KAAK;IACP,YAAM,GAAsB;QACvC,IAAI,EAAE,QAAQ;QACd,UAAU,8DACL,8BAAkB,GAClB,mCAAkB,GAClB,0BAAqB,CAAC,UAAU,KACnC,cAAc,EAAE,iCAAc,CAAC,MAAM,EACrC,eAAe,EAAE,mCAAe,CAAC,MAAM,GACxC;QACD,oBAAoB,EAAE,IAAI;QAC1B,QAAQ,EAAE,CAAC,GAAG,iCAAqB,CAAC;QACpC,KAAK,EAAE;YACL;gBACE,GAAG,EAAE;oBACH,QAAQ,EAAE,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;iBAChD;aACF;SACF;QACD,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,iBAAiB,CAAC,EAAE;QACrC,IAAI,EAAE;YACJ,UAAU,EAAE,CAAC,gBAAgB,CAAC;YAC9B,kCAAkC;YAClC,KAAK,EAAE;gBACL;oBACE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,CAAC;oBACxB,UAAU,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,mBAAmB,EAAE,QAAQ,C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EAAE,4DAA4D,EAAE;SACtF;QACD,YAAY,EAAE;YACZ,EAAE,EAAE,oGAAoG;YACxG,IAAI,EAAE,0DAA0D;YAChE,IAAI,EAAE,yDAAyD;SAChE;KACF,CAAA;IAED,MAAM,uBAAuB,GAAG;QAC9B,OAAO,EAAE,eAAe;QACxB,QAAQ,EAAE,CAAC,MAAe,EAAE,IAAS,EAAE,EAAE,CAAC,CAAC,MAAM,IAAI,IAAA,gBAAY,EAAC,IAAI,CAAC;QACvE,MAAM,EAAE,KAAK;KACd,CAAA;IAED,MAAM,sBAAsB,GAAG;QAC7B,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,CAAC,MAAe,EAAE,IAAS,EAAE,EAAE,CAAC,CAAC,MAAM,IAAI,IAAA,uBAAW,EAAC,IAAI,CAAC;QACtE,MAAM,EAAE,KAAK;KACd,CAAA;IAEY,cAAQ,GAAG,IAAA,kCAAqB,EAAC,MAAA,MAAM,EAAE;QACpD,uBAAuB;QACvB,sBAAsB;QACtB,gBAAY,CAAC,sBAAsB;QACnC,YAAQ,CAAC,gBAAgB;KAC1B,CAAC,CAAA;AACJ,CAAC,EAhHgB,KAAK,GAAL,aAAK,KAAL,aAAK,QAgHrB"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -1126,7 +1126,6 @@ export declare namespace EmoteCategory {
|
|
|
1126
1126
|
|
|
1127
1127
|
export declare type EmoteClip = {
|
|
1128
1128
|
animation: string;
|
|
1129
|
-
loop: boolean;
|
|
1130
1129
|
};
|
|
1131
1130
|
|
|
1132
1131
|
export declare namespace EmoteClip {
|
|
@@ -2703,7 +2702,9 @@ export declare enum OrderSortBy {
|
|
|
2703
2702
|
|
|
2704
2703
|
export declare type OutcomeGroup = {
|
|
2705
2704
|
title: string;
|
|
2705
|
+
loop: boolean;
|
|
2706
2706
|
clips: Partial<Record<ArmatureId, EmoteClip>>;
|
|
2707
|
+
audio?: string;
|
|
2707
2708
|
};
|
|
2708
2709
|
|
|
2709
2710
|
export declare namespace OutcomeGroup {
|
|
@@ -3800,8 +3801,10 @@ export declare type StandardProps = {
|
|
|
3800
3801
|
};
|
|
3801
3802
|
|
|
3802
3803
|
export declare type StartAnimation = {
|
|
3804
|
+
loop: boolean;
|
|
3803
3805
|
[ArmatureId.Armature]: EmoteClip;
|
|
3804
3806
|
[ArmatureId.Armature_Prop]?: EmoteClip;
|
|
3807
|
+
audio?: string;
|
|
3805
3808
|
};
|
|
3806
3809
|
|
|
3807
3810
|
export declare namespace StartAnimation {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "19.1.
|
|
2
|
+
"version": "19.1.1-20251001173322.commit-a2edd85",
|
|
3
3
|
"name": "@dcl/schemas",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"typings": "./dist/index.d.ts",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"files": [
|
|
46
46
|
"dist"
|
|
47
47
|
],
|
|
48
|
-
"commit": "
|
|
48
|
+
"commit": "a2edd85e3a84e20a0f5023adaf237aff04932f9b"
|
|
49
49
|
}
|