@dcl/protocol 1.0.0-4427886959.commit-6b9dcb5 → 1.0.0-4440731539.commit-a2174f5
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/out-js/decentraland/common/border_rect.gen.d.ts +54 -0
- package/out-js/decentraland/common/border_rect.gen.js +87 -0
- package/out-js/decentraland/common/border_rect.gen.js.map +1 -0
- package/out-js/decentraland/common/colors.gen.d.ts +82 -0
- package/out-js/decentraland/common/colors.gen.js +152 -0
- package/out-js/decentraland/common/colors.gen.js.map +1 -0
- package/out-js/decentraland/common/texture.gen.d.ts +319 -0
- package/out-js/decentraland/common/texture.gen.js +384 -0
- package/out-js/decentraland/common/texture.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/animator.gen.d.ts +184 -0
- package/out-js/decentraland/sdk/components/animator.gen.js +172 -0
- package/out-js/decentraland/sdk/components/animator.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.d.ts +74 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js +96 -0
- package/out-js/decentraland/sdk/components/audio_source.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.d.ts +56 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js +78 -0
- package/out-js/decentraland/sdk/components/audio_stream.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.d.ts +65 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js +115 -0
- package/out-js/decentraland/sdk/components/avatar_attach.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.d.ts +100 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js +137 -0
- package/out-js/decentraland/sdk/components/avatar_modifier_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.d.ts +192 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js +210 -0
- package/out-js/decentraland/sdk/components/avatar_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/billboard.gen.d.ts +59 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js +114 -0
- package/out-js/decentraland/sdk/components/billboard.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.d.ts +44 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js +59 -0
- package/out-js/decentraland/sdk/components/camera_mode.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.d.ts +84 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js +71 -0
- package/out-js/decentraland/sdk/components/camera_mode_area.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.d.ts +8 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js +39 -0
- package/out-js/decentraland/sdk/components/common/camera_type.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.d.ts +1 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js +6 -0
- package/out-js/decentraland/sdk/components/common/id.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.d.ts +20 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js +111 -0
- package/out-js/decentraland/sdk/components/common/input_action.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.d.ts +23 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js +120 -0
- package/out-js/decentraland/sdk/components/common/texts.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.d.ts +45 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js +58 -0
- package/out-js/decentraland/sdk/components/gltf_container.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/material.gen.d.ts +3452 -0
- package/out-js/decentraland/sdk/components/material.gen.js +437 -0
- package/out-js/decentraland/sdk/components/material.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.d.ts +250 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js +324 -0
- package/out-js/decentraland/sdk/components/mesh_collider.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.d.ts +284 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js +320 -0
- package/out-js/decentraland/sdk/components/mesh_renderer.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.d.ts +114 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js +242 -0
- package/out-js/decentraland/sdk/components/nft_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.d.ts +249 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js +248 -0
- package/out-js/decentraland/sdk/components/pointer_events.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.d.ts +241 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js +99 -0
- package/out-js/decentraland/sdk/components/pointer_events_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.d.ts +43 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js +58 -0
- package/out-js/decentraland/sdk/components/pointer_lock.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast.gen.d.ts +118 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js +127 -0
- package/out-js/decentraland/sdk/components/raycast.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.d.ts +536 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js +243 -0
- package/out-js/decentraland/sdk/components/raycast_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.d.ts +247 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js +274 -0
- package/out-js/decentraland/sdk/components/text_shape.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.d.ts +369 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js +175 -0
- package/out-js/decentraland/sdk/components/ui_background.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.d.ts +115 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js +152 -0
- package/out-js/decentraland/sdk/components/ui_dropdown.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.d.ts +38 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js +58 -0
- package/out-js/decentraland/sdk/components/ui_dropdown_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.d.ts +140 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js +140 -0
- package/out-js/decentraland/sdk/components/ui_input.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.d.ts +38 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js +58 -0
- package/out-js/decentraland/sdk/components/ui_input_result.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.d.ts +95 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js +101 -0
- package/out-js/decentraland/sdk/components/ui_text.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.d.ts +403 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js +1000 -0
- package/out-js/decentraland/sdk/components/ui_transform.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/video_player.gen.d.ts +69 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js +112 -0
- package/out-js/decentraland/sdk/components/video_player.gen.js.map +1 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.d.ts +39 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js +58 -0
- package/out-js/decentraland/sdk/components/visibility_component.gen.js.map +1 -0
- package/out-js/google/protobuf/descriptor.gen.d.ts +87384 -0
- package/out-js/google/protobuf/descriptor.gen.js +2645 -0
- package/out-js/google/protobuf/descriptor.gen.js.map +1 -0
- package/out-js/sdk-components.gen.d.ts +1 -0
- package/out-js/sdk-components.gen.js +6 -0
- package/out-js/sdk-components.gen.js.map +1 -0
- package/out-ts/decentraland/common/border_rect.gen.ts +108 -0
- package/out-ts/decentraland/common/colors.gen.ts +184 -0
- package/out-ts/decentraland/common/texture.gen.ts +454 -0
- package/out-ts/decentraland/sdk/components/animator.gen.ts +229 -0
- package/out-ts/decentraland/sdk/components/audio_source.gen.ts +141 -0
- package/out-ts/decentraland/sdk/components/audio_stream.gen.ts +109 -0
- package/out-ts/decentraland/sdk/components/avatar_attach.gen.ts +147 -0
- package/out-ts/decentraland/sdk/components/avatar_modifier_area.gen.ts +172 -0
- package/out-ts/decentraland/sdk/components/avatar_shape.gen.ts +288 -0
- package/out-ts/decentraland/sdk/components/billboard.gen.ts +140 -0
- package/out-ts/decentraland/sdk/components/camera_mode.gen.ts +81 -0
- package/out-ts/decentraland/sdk/components/camera_mode_area.gen.ts +106 -0
- package/out-ts/decentraland/sdk/components/common/camera_type.gen.ts +36 -0
- package/out-ts/decentraland/sdk/components/common/id.gen.ts +3 -0
- package/out-ts/decentraland/sdk/components/common/input_action.gen.ts +108 -0
- package/out-ts/decentraland/sdk/components/common/texts.gen.ts +117 -0
- package/out-ts/decentraland/sdk/components/gltf_container.gen.ts +82 -0
- package/out-ts/decentraland/sdk/components/material.gen.ts +546 -0
- package/out-ts/decentraland/sdk/components/mesh_collider.gen.ts +403 -0
- package/out-ts/decentraland/sdk/components/mesh_renderer.gen.ts +395 -0
- package/out-ts/decentraland/sdk/components/nft_shape.gen.ts +275 -0
- package/out-ts/decentraland/sdk/components/pointer_events.gen.ts +316 -0
- package/out-ts/decentraland/sdk/components/pointer_events_result.gen.ts +124 -0
- package/out-ts/decentraland/sdk/components/pointer_lock.gen.ts +80 -0
- package/out-ts/decentraland/sdk/components/raycast.gen.ts +159 -0
- package/out-ts/decentraland/sdk/components/raycast_result.gen.ts +315 -0
- package/out-ts/decentraland/sdk/components/text_shape.gen.ts +385 -0
- package/out-ts/decentraland/sdk/components/ui_background.gen.ts +199 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown.gen.ts +194 -0
- package/out-ts/decentraland/sdk/components/ui_dropdown_result.gen.ts +75 -0
- package/out-ts/decentraland/sdk/components/ui_input.gen.ts +182 -0
- package/out-ts/decentraland/sdk/components/ui_input_result.gen.ts +75 -0
- package/out-ts/decentraland/sdk/components/ui_text.gen.ts +140 -0
- package/out-ts/decentraland/sdk/components/ui_transform.gen.ts +1104 -0
- package/out-ts/decentraland/sdk/components/video_player.gen.ts +148 -0
- package/out-ts/decentraland/sdk/components/visibility_component.gen.ts +76 -0
- package/out-ts/google/protobuf/descriptor.gen.ts +2961 -0
- package/out-ts/sdk-components.gen.ts +3 -0
- package/package.json +2 -2
- package/public/sdk-components.proto +33 -0
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TextureUnion = exports.VideoTexture = exports.AvatarTexture = exports.Texture = exports.textureFilterModeToJSON = exports.textureFilterModeFromJSON = exports.TextureFilterMode = exports.textureWrapModeToJSON = exports.textureWrapModeFromJSON = exports.TextureWrapMode = exports.protobufPackage = void 0;
|
|
7
|
+
/* eslint-disable */
|
|
8
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
9
|
+
exports.protobufPackage = "decentraland.common";
|
|
10
|
+
var TextureWrapMode;
|
|
11
|
+
(function (TextureWrapMode) {
|
|
12
|
+
TextureWrapMode[TextureWrapMode["TWM_REPEAT"] = 0] = "TWM_REPEAT";
|
|
13
|
+
TextureWrapMode[TextureWrapMode["TWM_CLAMP"] = 1] = "TWM_CLAMP";
|
|
14
|
+
TextureWrapMode[TextureWrapMode["TWM_MIRROR"] = 2] = "TWM_MIRROR";
|
|
15
|
+
TextureWrapMode[TextureWrapMode["TWM_MIRROR_ONCE"] = 3] = "TWM_MIRROR_ONCE";
|
|
16
|
+
TextureWrapMode[TextureWrapMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
17
|
+
})(TextureWrapMode = exports.TextureWrapMode || (exports.TextureWrapMode = {}));
|
|
18
|
+
function textureWrapModeFromJSON(object) {
|
|
19
|
+
switch (object) {
|
|
20
|
+
case 0:
|
|
21
|
+
case "TWM_REPEAT":
|
|
22
|
+
return TextureWrapMode.TWM_REPEAT;
|
|
23
|
+
case 1:
|
|
24
|
+
case "TWM_CLAMP":
|
|
25
|
+
return TextureWrapMode.TWM_CLAMP;
|
|
26
|
+
case 2:
|
|
27
|
+
case "TWM_MIRROR":
|
|
28
|
+
return TextureWrapMode.TWM_MIRROR;
|
|
29
|
+
case 3:
|
|
30
|
+
case "TWM_MIRROR_ONCE":
|
|
31
|
+
return TextureWrapMode.TWM_MIRROR_ONCE;
|
|
32
|
+
case -1:
|
|
33
|
+
case "UNRECOGNIZED":
|
|
34
|
+
default:
|
|
35
|
+
return TextureWrapMode.UNRECOGNIZED;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
exports.textureWrapModeFromJSON = textureWrapModeFromJSON;
|
|
39
|
+
function textureWrapModeToJSON(object) {
|
|
40
|
+
switch (object) {
|
|
41
|
+
case TextureWrapMode.TWM_REPEAT:
|
|
42
|
+
return "TWM_REPEAT";
|
|
43
|
+
case TextureWrapMode.TWM_CLAMP:
|
|
44
|
+
return "TWM_CLAMP";
|
|
45
|
+
case TextureWrapMode.TWM_MIRROR:
|
|
46
|
+
return "TWM_MIRROR";
|
|
47
|
+
case TextureWrapMode.TWM_MIRROR_ONCE:
|
|
48
|
+
return "TWM_MIRROR_ONCE";
|
|
49
|
+
case TextureWrapMode.UNRECOGNIZED:
|
|
50
|
+
default:
|
|
51
|
+
return "UNRECOGNIZED";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.textureWrapModeToJSON = textureWrapModeToJSON;
|
|
55
|
+
var TextureFilterMode;
|
|
56
|
+
(function (TextureFilterMode) {
|
|
57
|
+
TextureFilterMode[TextureFilterMode["TFM_POINT"] = 0] = "TFM_POINT";
|
|
58
|
+
TextureFilterMode[TextureFilterMode["TFM_BILINEAR"] = 1] = "TFM_BILINEAR";
|
|
59
|
+
TextureFilterMode[TextureFilterMode["TFM_TRILINEAR"] = 2] = "TFM_TRILINEAR";
|
|
60
|
+
TextureFilterMode[TextureFilterMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
61
|
+
})(TextureFilterMode = exports.TextureFilterMode || (exports.TextureFilterMode = {}));
|
|
62
|
+
function textureFilterModeFromJSON(object) {
|
|
63
|
+
switch (object) {
|
|
64
|
+
case 0:
|
|
65
|
+
case "TFM_POINT":
|
|
66
|
+
return TextureFilterMode.TFM_POINT;
|
|
67
|
+
case 1:
|
|
68
|
+
case "TFM_BILINEAR":
|
|
69
|
+
return TextureFilterMode.TFM_BILINEAR;
|
|
70
|
+
case 2:
|
|
71
|
+
case "TFM_TRILINEAR":
|
|
72
|
+
return TextureFilterMode.TFM_TRILINEAR;
|
|
73
|
+
case -1:
|
|
74
|
+
case "UNRECOGNIZED":
|
|
75
|
+
default:
|
|
76
|
+
return TextureFilterMode.UNRECOGNIZED;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.textureFilterModeFromJSON = textureFilterModeFromJSON;
|
|
80
|
+
function textureFilterModeToJSON(object) {
|
|
81
|
+
switch (object) {
|
|
82
|
+
case TextureFilterMode.TFM_POINT:
|
|
83
|
+
return "TFM_POINT";
|
|
84
|
+
case TextureFilterMode.TFM_BILINEAR:
|
|
85
|
+
return "TFM_BILINEAR";
|
|
86
|
+
case TextureFilterMode.TFM_TRILINEAR:
|
|
87
|
+
return "TFM_TRILINEAR";
|
|
88
|
+
case TextureFilterMode.UNRECOGNIZED:
|
|
89
|
+
default:
|
|
90
|
+
return "UNRECOGNIZED";
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.textureFilterModeToJSON = textureFilterModeToJSON;
|
|
94
|
+
function createBaseTexture() {
|
|
95
|
+
return { src: "", wrapMode: undefined, filterMode: undefined };
|
|
96
|
+
}
|
|
97
|
+
exports.Texture = {
|
|
98
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
99
|
+
if (message.src !== "") {
|
|
100
|
+
writer.uint32(10).string(message.src);
|
|
101
|
+
}
|
|
102
|
+
if (message.wrapMode !== undefined) {
|
|
103
|
+
writer.uint32(16).int32(message.wrapMode);
|
|
104
|
+
}
|
|
105
|
+
if (message.filterMode !== undefined) {
|
|
106
|
+
writer.uint32(24).int32(message.filterMode);
|
|
107
|
+
}
|
|
108
|
+
return writer;
|
|
109
|
+
},
|
|
110
|
+
decode(input, length) {
|
|
111
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
112
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
113
|
+
const message = createBaseTexture();
|
|
114
|
+
while (reader.pos < end) {
|
|
115
|
+
const tag = reader.uint32();
|
|
116
|
+
switch (tag >>> 3) {
|
|
117
|
+
case 1:
|
|
118
|
+
message.src = reader.string();
|
|
119
|
+
break;
|
|
120
|
+
case 2:
|
|
121
|
+
message.wrapMode = reader.int32();
|
|
122
|
+
break;
|
|
123
|
+
case 3:
|
|
124
|
+
message.filterMode = reader.int32();
|
|
125
|
+
break;
|
|
126
|
+
default:
|
|
127
|
+
reader.skipType(tag & 7);
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
return message;
|
|
132
|
+
},
|
|
133
|
+
fromJSON(object) {
|
|
134
|
+
return {
|
|
135
|
+
src: isSet(object.src) ? String(object.src) : "",
|
|
136
|
+
wrapMode: isSet(object.wrapMode) ? textureWrapModeFromJSON(object.wrapMode) : undefined,
|
|
137
|
+
filterMode: isSet(object.filterMode) ? textureFilterModeFromJSON(object.filterMode) : undefined,
|
|
138
|
+
};
|
|
139
|
+
},
|
|
140
|
+
toJSON(message) {
|
|
141
|
+
const obj = {};
|
|
142
|
+
message.src !== undefined && (obj.src = message.src);
|
|
143
|
+
message.wrapMode !== undefined &&
|
|
144
|
+
(obj.wrapMode = message.wrapMode !== undefined ? textureWrapModeToJSON(message.wrapMode) : undefined);
|
|
145
|
+
message.filterMode !== undefined &&
|
|
146
|
+
(obj.filterMode = message.filterMode !== undefined ? textureFilterModeToJSON(message.filterMode) : undefined);
|
|
147
|
+
return obj;
|
|
148
|
+
},
|
|
149
|
+
create(base) {
|
|
150
|
+
return exports.Texture.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
151
|
+
},
|
|
152
|
+
fromPartial(object) {
|
|
153
|
+
var _a, _b, _c;
|
|
154
|
+
const message = createBaseTexture();
|
|
155
|
+
message.src = (_a = object.src) !== null && _a !== void 0 ? _a : "";
|
|
156
|
+
message.wrapMode = (_b = object.wrapMode) !== null && _b !== void 0 ? _b : undefined;
|
|
157
|
+
message.filterMode = (_c = object.filterMode) !== null && _c !== void 0 ? _c : undefined;
|
|
158
|
+
return message;
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
function createBaseAvatarTexture() {
|
|
162
|
+
return { userId: "", wrapMode: undefined, filterMode: undefined };
|
|
163
|
+
}
|
|
164
|
+
exports.AvatarTexture = {
|
|
165
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
166
|
+
if (message.userId !== "") {
|
|
167
|
+
writer.uint32(10).string(message.userId);
|
|
168
|
+
}
|
|
169
|
+
if (message.wrapMode !== undefined) {
|
|
170
|
+
writer.uint32(16).int32(message.wrapMode);
|
|
171
|
+
}
|
|
172
|
+
if (message.filterMode !== undefined) {
|
|
173
|
+
writer.uint32(24).int32(message.filterMode);
|
|
174
|
+
}
|
|
175
|
+
return writer;
|
|
176
|
+
},
|
|
177
|
+
decode(input, length) {
|
|
178
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
179
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
180
|
+
const message = createBaseAvatarTexture();
|
|
181
|
+
while (reader.pos < end) {
|
|
182
|
+
const tag = reader.uint32();
|
|
183
|
+
switch (tag >>> 3) {
|
|
184
|
+
case 1:
|
|
185
|
+
message.userId = reader.string();
|
|
186
|
+
break;
|
|
187
|
+
case 2:
|
|
188
|
+
message.wrapMode = reader.int32();
|
|
189
|
+
break;
|
|
190
|
+
case 3:
|
|
191
|
+
message.filterMode = reader.int32();
|
|
192
|
+
break;
|
|
193
|
+
default:
|
|
194
|
+
reader.skipType(tag & 7);
|
|
195
|
+
break;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return message;
|
|
199
|
+
},
|
|
200
|
+
fromJSON(object) {
|
|
201
|
+
return {
|
|
202
|
+
userId: isSet(object.userId) ? String(object.userId) : "",
|
|
203
|
+
wrapMode: isSet(object.wrapMode) ? textureWrapModeFromJSON(object.wrapMode) : undefined,
|
|
204
|
+
filterMode: isSet(object.filterMode) ? textureFilterModeFromJSON(object.filterMode) : undefined,
|
|
205
|
+
};
|
|
206
|
+
},
|
|
207
|
+
toJSON(message) {
|
|
208
|
+
const obj = {};
|
|
209
|
+
message.userId !== undefined && (obj.userId = message.userId);
|
|
210
|
+
message.wrapMode !== undefined &&
|
|
211
|
+
(obj.wrapMode = message.wrapMode !== undefined ? textureWrapModeToJSON(message.wrapMode) : undefined);
|
|
212
|
+
message.filterMode !== undefined &&
|
|
213
|
+
(obj.filterMode = message.filterMode !== undefined ? textureFilterModeToJSON(message.filterMode) : undefined);
|
|
214
|
+
return obj;
|
|
215
|
+
},
|
|
216
|
+
create(base) {
|
|
217
|
+
return exports.AvatarTexture.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
218
|
+
},
|
|
219
|
+
fromPartial(object) {
|
|
220
|
+
var _a, _b, _c;
|
|
221
|
+
const message = createBaseAvatarTexture();
|
|
222
|
+
message.userId = (_a = object.userId) !== null && _a !== void 0 ? _a : "";
|
|
223
|
+
message.wrapMode = (_b = object.wrapMode) !== null && _b !== void 0 ? _b : undefined;
|
|
224
|
+
message.filterMode = (_c = object.filterMode) !== null && _c !== void 0 ? _c : undefined;
|
|
225
|
+
return message;
|
|
226
|
+
},
|
|
227
|
+
};
|
|
228
|
+
function createBaseVideoTexture() {
|
|
229
|
+
return { videoPlayerEntity: 0, wrapMode: undefined, filterMode: undefined };
|
|
230
|
+
}
|
|
231
|
+
exports.VideoTexture = {
|
|
232
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
233
|
+
if (message.videoPlayerEntity !== 0) {
|
|
234
|
+
writer.uint32(8).uint32(message.videoPlayerEntity);
|
|
235
|
+
}
|
|
236
|
+
if (message.wrapMode !== undefined) {
|
|
237
|
+
writer.uint32(16).int32(message.wrapMode);
|
|
238
|
+
}
|
|
239
|
+
if (message.filterMode !== undefined) {
|
|
240
|
+
writer.uint32(24).int32(message.filterMode);
|
|
241
|
+
}
|
|
242
|
+
return writer;
|
|
243
|
+
},
|
|
244
|
+
decode(input, length) {
|
|
245
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
246
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
247
|
+
const message = createBaseVideoTexture();
|
|
248
|
+
while (reader.pos < end) {
|
|
249
|
+
const tag = reader.uint32();
|
|
250
|
+
switch (tag >>> 3) {
|
|
251
|
+
case 1:
|
|
252
|
+
message.videoPlayerEntity = reader.uint32();
|
|
253
|
+
break;
|
|
254
|
+
case 2:
|
|
255
|
+
message.wrapMode = reader.int32();
|
|
256
|
+
break;
|
|
257
|
+
case 3:
|
|
258
|
+
message.filterMode = reader.int32();
|
|
259
|
+
break;
|
|
260
|
+
default:
|
|
261
|
+
reader.skipType(tag & 7);
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
return message;
|
|
266
|
+
},
|
|
267
|
+
fromJSON(object) {
|
|
268
|
+
return {
|
|
269
|
+
videoPlayerEntity: isSet(object.videoPlayerEntity) ? Number(object.videoPlayerEntity) : 0,
|
|
270
|
+
wrapMode: isSet(object.wrapMode) ? textureWrapModeFromJSON(object.wrapMode) : undefined,
|
|
271
|
+
filterMode: isSet(object.filterMode) ? textureFilterModeFromJSON(object.filterMode) : undefined,
|
|
272
|
+
};
|
|
273
|
+
},
|
|
274
|
+
toJSON(message) {
|
|
275
|
+
const obj = {};
|
|
276
|
+
message.videoPlayerEntity !== undefined && (obj.videoPlayerEntity = Math.round(message.videoPlayerEntity));
|
|
277
|
+
message.wrapMode !== undefined &&
|
|
278
|
+
(obj.wrapMode = message.wrapMode !== undefined ? textureWrapModeToJSON(message.wrapMode) : undefined);
|
|
279
|
+
message.filterMode !== undefined &&
|
|
280
|
+
(obj.filterMode = message.filterMode !== undefined ? textureFilterModeToJSON(message.filterMode) : undefined);
|
|
281
|
+
return obj;
|
|
282
|
+
},
|
|
283
|
+
create(base) {
|
|
284
|
+
return exports.VideoTexture.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
285
|
+
},
|
|
286
|
+
fromPartial(object) {
|
|
287
|
+
var _a, _b, _c;
|
|
288
|
+
const message = createBaseVideoTexture();
|
|
289
|
+
message.videoPlayerEntity = (_a = object.videoPlayerEntity) !== null && _a !== void 0 ? _a : 0;
|
|
290
|
+
message.wrapMode = (_b = object.wrapMode) !== null && _b !== void 0 ? _b : undefined;
|
|
291
|
+
message.filterMode = (_c = object.filterMode) !== null && _c !== void 0 ? _c : undefined;
|
|
292
|
+
return message;
|
|
293
|
+
},
|
|
294
|
+
};
|
|
295
|
+
function createBaseTextureUnion() {
|
|
296
|
+
return { tex: undefined };
|
|
297
|
+
}
|
|
298
|
+
exports.TextureUnion = {
|
|
299
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
300
|
+
var _a;
|
|
301
|
+
switch ((_a = message.tex) === null || _a === void 0 ? void 0 : _a.$case) {
|
|
302
|
+
case "texture":
|
|
303
|
+
exports.Texture.encode(message.tex.texture, writer.uint32(10).fork()).ldelim();
|
|
304
|
+
break;
|
|
305
|
+
case "avatarTexture":
|
|
306
|
+
exports.AvatarTexture.encode(message.tex.avatarTexture, writer.uint32(18).fork()).ldelim();
|
|
307
|
+
break;
|
|
308
|
+
case "videoTexture":
|
|
309
|
+
exports.VideoTexture.encode(message.tex.videoTexture, writer.uint32(26).fork()).ldelim();
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
return writer;
|
|
313
|
+
},
|
|
314
|
+
decode(input, length) {
|
|
315
|
+
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
|
|
316
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
317
|
+
const message = createBaseTextureUnion();
|
|
318
|
+
while (reader.pos < end) {
|
|
319
|
+
const tag = reader.uint32();
|
|
320
|
+
switch (tag >>> 3) {
|
|
321
|
+
case 1:
|
|
322
|
+
message.tex = { $case: "texture", texture: exports.Texture.decode(reader, reader.uint32()) };
|
|
323
|
+
break;
|
|
324
|
+
case 2:
|
|
325
|
+
message.tex = { $case: "avatarTexture", avatarTexture: exports.AvatarTexture.decode(reader, reader.uint32()) };
|
|
326
|
+
break;
|
|
327
|
+
case 3:
|
|
328
|
+
message.tex = { $case: "videoTexture", videoTexture: exports.VideoTexture.decode(reader, reader.uint32()) };
|
|
329
|
+
break;
|
|
330
|
+
default:
|
|
331
|
+
reader.skipType(tag & 7);
|
|
332
|
+
break;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return message;
|
|
336
|
+
},
|
|
337
|
+
fromJSON(object) {
|
|
338
|
+
return {
|
|
339
|
+
tex: isSet(object.texture)
|
|
340
|
+
? { $case: "texture", texture: exports.Texture.fromJSON(object.texture) }
|
|
341
|
+
: isSet(object.avatarTexture)
|
|
342
|
+
? { $case: "avatarTexture", avatarTexture: exports.AvatarTexture.fromJSON(object.avatarTexture) }
|
|
343
|
+
: isSet(object.videoTexture)
|
|
344
|
+
? { $case: "videoTexture", videoTexture: exports.VideoTexture.fromJSON(object.videoTexture) }
|
|
345
|
+
: undefined,
|
|
346
|
+
};
|
|
347
|
+
},
|
|
348
|
+
toJSON(message) {
|
|
349
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
350
|
+
const obj = {};
|
|
351
|
+
((_a = message.tex) === null || _a === void 0 ? void 0 : _a.$case) === "texture" &&
|
|
352
|
+
(obj.texture = ((_b = message.tex) === null || _b === void 0 ? void 0 : _b.texture) ? exports.Texture.toJSON((_c = message.tex) === null || _c === void 0 ? void 0 : _c.texture) : undefined);
|
|
353
|
+
((_d = message.tex) === null || _d === void 0 ? void 0 : _d.$case) === "avatarTexture" &&
|
|
354
|
+
(obj.avatarTexture = ((_e = message.tex) === null || _e === void 0 ? void 0 : _e.avatarTexture) ? exports.AvatarTexture.toJSON((_f = message.tex) === null || _f === void 0 ? void 0 : _f.avatarTexture) : undefined);
|
|
355
|
+
((_g = message.tex) === null || _g === void 0 ? void 0 : _g.$case) === "videoTexture" &&
|
|
356
|
+
(obj.videoTexture = ((_h = message.tex) === null || _h === void 0 ? void 0 : _h.videoTexture) ? exports.VideoTexture.toJSON((_j = message.tex) === null || _j === void 0 ? void 0 : _j.videoTexture) : undefined);
|
|
357
|
+
return obj;
|
|
358
|
+
},
|
|
359
|
+
create(base) {
|
|
360
|
+
return exports.TextureUnion.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
361
|
+
},
|
|
362
|
+
fromPartial(object) {
|
|
363
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
364
|
+
const message = createBaseTextureUnion();
|
|
365
|
+
if (((_a = object.tex) === null || _a === void 0 ? void 0 : _a.$case) === "texture" && ((_b = object.tex) === null || _b === void 0 ? void 0 : _b.texture) !== undefined && ((_c = object.tex) === null || _c === void 0 ? void 0 : _c.texture) !== null) {
|
|
366
|
+
message.tex = { $case: "texture", texture: exports.Texture.fromPartial(object.tex.texture) };
|
|
367
|
+
}
|
|
368
|
+
if (((_d = object.tex) === null || _d === void 0 ? void 0 : _d.$case) === "avatarTexture" &&
|
|
369
|
+
((_e = object.tex) === null || _e === void 0 ? void 0 : _e.avatarTexture) !== undefined &&
|
|
370
|
+
((_f = object.tex) === null || _f === void 0 ? void 0 : _f.avatarTexture) !== null) {
|
|
371
|
+
message.tex = { $case: "avatarTexture", avatarTexture: exports.AvatarTexture.fromPartial(object.tex.avatarTexture) };
|
|
372
|
+
}
|
|
373
|
+
if (((_g = object.tex) === null || _g === void 0 ? void 0 : _g.$case) === "videoTexture" &&
|
|
374
|
+
((_h = object.tex) === null || _h === void 0 ? void 0 : _h.videoTexture) !== undefined &&
|
|
375
|
+
((_j = object.tex) === null || _j === void 0 ? void 0 : _j.videoTexture) !== null) {
|
|
376
|
+
message.tex = { $case: "videoTexture", videoTexture: exports.VideoTexture.fromPartial(object.tex.videoTexture) };
|
|
377
|
+
}
|
|
378
|
+
return message;
|
|
379
|
+
},
|
|
380
|
+
};
|
|
381
|
+
function isSet(value) {
|
|
382
|
+
return value !== null && value !== undefined;
|
|
383
|
+
}
|
|
384
|
+
//# sourceMappingURL=texture.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"texture.gen.js","sourceRoot":"","sources":["../../../out-ts/decentraland/common/texture.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,qBAAqB,CAAC;AAErD,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,iEAAc,CAAA;IACd,+DAAa,CAAA;IACb,iEAAc,CAAA;IACd,2EAAmB,CAAA;IACnB,sEAAiB,CAAA;AACnB,CAAC,EANW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM1B;AAED,SAAgB,uBAAuB,CAAC,MAAW;IACjD,QAAQ,MAAM,EAAE;QACd,KAAK,CAAC,CAAC;QACP,KAAK,YAAY;YACf,OAAO,eAAe,CAAC,UAAU,CAAC;QACpC,KAAK,CAAC,CAAC;QACP,KAAK,WAAW;YACd,OAAO,eAAe,CAAC,SAAS,CAAC;QACnC,KAAK,CAAC,CAAC;Q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s/minimal";
|
|
2
|
+
export declare const protobufPackage = "decentraland.sdk.components";
|
|
3
|
+
/**
|
|
4
|
+
* The Animator component is a container for multiple potential animations an Entity can display,
|
|
5
|
+
* separately or at the same time. It can be used to start, stop or blend animations; as well as
|
|
6
|
+
* to inspect their playback state.
|
|
7
|
+
*
|
|
8
|
+
* Animations have a `weight` property, which determines how pronounced the animation will be. This
|
|
9
|
+
* can be adjusted to blend animations together, or gracefully transition from one to the next.
|
|
10
|
+
*/
|
|
11
|
+
export interface PBAnimator {
|
|
12
|
+
/** a collection of animations and their current state */
|
|
13
|
+
states: PBAnimationState[];
|
|
14
|
+
}
|
|
15
|
+
/** AnimationState indicates the status and configuration of one available animation. */
|
|
16
|
+
export interface PBAnimationState {
|
|
17
|
+
/** the identifier for this animation, to use in scene code */
|
|
18
|
+
name: string;
|
|
19
|
+
/** the animation path in the `files` array of the scene manifest */
|
|
20
|
+
clip: string;
|
|
21
|
+
/** whether this animation is currently playing */
|
|
22
|
+
playing?: boolean | undefined;
|
|
23
|
+
/** the "weight" of this animation (see below, default: 1.0) */
|
|
24
|
+
weight?: number | undefined;
|
|
25
|
+
/** the playback speed (default: 1.0) */
|
|
26
|
+
speed?: number | undefined;
|
|
27
|
+
/** whether the animation repeats until stopped (default: true) */
|
|
28
|
+
loop?: boolean | undefined;
|
|
29
|
+
/** whether the Entity is restored to its prior state when done */
|
|
30
|
+
shouldReset?: boolean | undefined;
|
|
31
|
+
}
|
|
32
|
+
export declare const PBAnimator: {
|
|
33
|
+
encode(message: PBAnimator, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimator;
|
|
35
|
+
fromJSON(object: any): PBAnimator;
|
|
36
|
+
toJSON(message: PBAnimator): unknown;
|
|
37
|
+
create<I extends {
|
|
38
|
+
states?: {
|
|
39
|
+
name?: string | undefined;
|
|
40
|
+
clip?: string | undefined;
|
|
41
|
+
playing?: boolean | undefined;
|
|
42
|
+
weight?: number | undefined;
|
|
43
|
+
speed?: number | undefined;
|
|
44
|
+
loop?: boolean | undefined;
|
|
45
|
+
shouldReset?: boolean | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
} & {
|
|
48
|
+
states?: ({
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
clip?: string | undefined;
|
|
51
|
+
playing?: boolean | undefined;
|
|
52
|
+
weight?: number | undefined;
|
|
53
|
+
speed?: number | undefined;
|
|
54
|
+
loop?: boolean | undefined;
|
|
55
|
+
shouldReset?: boolean | undefined;
|
|
56
|
+
}[] & ({
|
|
57
|
+
name?: string | undefined;
|
|
58
|
+
clip?: string | undefined;
|
|
59
|
+
playing?: boolean | undefined;
|
|
60
|
+
weight?: number | undefined;
|
|
61
|
+
speed?: number | undefined;
|
|
62
|
+
loop?: boolean | undefined;
|
|
63
|
+
shouldReset?: boolean | undefined;
|
|
64
|
+
} & {
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
clip?: string | undefined;
|
|
67
|
+
playing?: boolean | undefined;
|
|
68
|
+
weight?: number | undefined;
|
|
69
|
+
speed?: number | undefined;
|
|
70
|
+
loop?: boolean | undefined;
|
|
71
|
+
shouldReset?: boolean | undefined;
|
|
72
|
+
} & { [K in Exclude<keyof I["states"][number], keyof PBAnimationState>]: never; })[] & { [K_1 in Exclude<keyof I["states"], keyof {
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
clip?: string | undefined;
|
|
75
|
+
playing?: boolean | undefined;
|
|
76
|
+
weight?: number | undefined;
|
|
77
|
+
speed?: number | undefined;
|
|
78
|
+
loop?: boolean | undefined;
|
|
79
|
+
shouldReset?: boolean | undefined;
|
|
80
|
+
}[]>]: never; }) | undefined;
|
|
81
|
+
} & { [K_2 in Exclude<keyof I, "states">]: never; }>(base?: I | undefined): PBAnimator;
|
|
82
|
+
fromPartial<I_1 extends {
|
|
83
|
+
states?: {
|
|
84
|
+
name?: string | undefined;
|
|
85
|
+
clip?: string | undefined;
|
|
86
|
+
playing?: boolean | undefined;
|
|
87
|
+
weight?: number | undefined;
|
|
88
|
+
speed?: number | undefined;
|
|
89
|
+
loop?: boolean | undefined;
|
|
90
|
+
shouldReset?: boolean | undefined;
|
|
91
|
+
}[] | undefined;
|
|
92
|
+
} & {
|
|
93
|
+
states?: ({
|
|
94
|
+
name?: string | undefined;
|
|
95
|
+
clip?: string | undefined;
|
|
96
|
+
playing?: boolean | undefined;
|
|
97
|
+
weight?: number | undefined;
|
|
98
|
+
speed?: number | undefined;
|
|
99
|
+
loop?: boolean | undefined;
|
|
100
|
+
shouldReset?: boolean | undefined;
|
|
101
|
+
}[] & ({
|
|
102
|
+
name?: string | undefined;
|
|
103
|
+
clip?: string | undefined;
|
|
104
|
+
playing?: boolean | undefined;
|
|
105
|
+
weight?: number | undefined;
|
|
106
|
+
speed?: number | undefined;
|
|
107
|
+
loop?: boolean | undefined;
|
|
108
|
+
shouldReset?: boolean | undefined;
|
|
109
|
+
} & {
|
|
110
|
+
name?: string | undefined;
|
|
111
|
+
clip?: string | undefined;
|
|
112
|
+
playing?: boolean | undefined;
|
|
113
|
+
weight?: number | undefined;
|
|
114
|
+
speed?: number | undefined;
|
|
115
|
+
loop?: boolean | undefined;
|
|
116
|
+
shouldReset?: boolean | undefined;
|
|
117
|
+
} & { [K_3 in Exclude<keyof I_1["states"][number], keyof PBAnimationState>]: never; })[] & { [K_4 in Exclude<keyof I_1["states"], keyof {
|
|
118
|
+
name?: string | undefined;
|
|
119
|
+
clip?: string | undefined;
|
|
120
|
+
playing?: boolean | undefined;
|
|
121
|
+
weight?: number | undefined;
|
|
122
|
+
speed?: number | undefined;
|
|
123
|
+
loop?: boolean | undefined;
|
|
124
|
+
shouldReset?: boolean | undefined;
|
|
125
|
+
}[]>]: never; }) | undefined;
|
|
126
|
+
} & { [K_5 in Exclude<keyof I_1, "states">]: never; }>(object: I_1): PBAnimator;
|
|
127
|
+
};
|
|
128
|
+
export declare const PBAnimationState: {
|
|
129
|
+
encode(message: PBAnimationState, writer?: _m0.Writer): _m0.Writer;
|
|
130
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PBAnimationState;
|
|
131
|
+
fromJSON(object: any): PBAnimationState;
|
|
132
|
+
toJSON(message: PBAnimationState): unknown;
|
|
133
|
+
create<I extends {
|
|
134
|
+
name?: string | undefined;
|
|
135
|
+
clip?: string | undefined;
|
|
136
|
+
playing?: boolean | undefined;
|
|
137
|
+
weight?: number | undefined;
|
|
138
|
+
speed?: number | undefined;
|
|
139
|
+
loop?: boolean | undefined;
|
|
140
|
+
shouldReset?: boolean | undefined;
|
|
141
|
+
} & {
|
|
142
|
+
name?: string | undefined;
|
|
143
|
+
clip?: string | undefined;
|
|
144
|
+
playing?: boolean | undefined;
|
|
145
|
+
weight?: number | undefined;
|
|
146
|
+
speed?: number | undefined;
|
|
147
|
+
loop?: boolean | undefined;
|
|
148
|
+
shouldReset?: boolean | undefined;
|
|
149
|
+
} & { [K in Exclude<keyof I, keyof PBAnimationState>]: never; }>(base?: I | undefined): PBAnimationState;
|
|
150
|
+
fromPartial<I_1 extends {
|
|
151
|
+
name?: string | undefined;
|
|
152
|
+
clip?: string | undefined;
|
|
153
|
+
playing?: boolean | undefined;
|
|
154
|
+
weight?: number | undefined;
|
|
155
|
+
speed?: number | undefined;
|
|
156
|
+
loop?: boolean | undefined;
|
|
157
|
+
shouldReset?: boolean | undefined;
|
|
158
|
+
} & {
|
|
159
|
+
name?: string | undefined;
|
|
160
|
+
clip?: string | undefined;
|
|
161
|
+
playing?: boolean | undefined;
|
|
162
|
+
weight?: number | undefined;
|
|
163
|
+
speed?: number | undefined;
|
|
164
|
+
loop?: boolean | undefined;
|
|
165
|
+
shouldReset?: boolean | undefined;
|
|
166
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PBAnimationState>]: never; }>(object: I_1): PBAnimationState;
|
|
167
|
+
};
|
|
168
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
169
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
170
|
+
$case: string;
|
|
171
|
+
} ? {
|
|
172
|
+
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
173
|
+
} & {
|
|
174
|
+
$case: T["$case"];
|
|
175
|
+
} : T extends {} ? {
|
|
176
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
177
|
+
} : Partial<T>;
|
|
178
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
179
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
180
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
181
|
+
} & {
|
|
182
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
183
|
+
};
|
|
184
|
+
export {};
|