alphatheta-connect 0.15.0
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/LICENSE +21 -0
- package/README.md +166 -0
- package/lib/artwork/index.d.ts +9 -0
- package/lib/artwork/parsers/aiff.d.ts +2 -0
- package/lib/artwork/parsers/flac.d.ts +2 -0
- package/lib/artwork/parsers/id3.d.ts +2 -0
- package/lib/artwork/parsers/index.d.ts +5 -0
- package/lib/artwork/parsers/mp4.d.ts +2 -0
- package/lib/artwork/parsers/utils.d.ts +3 -0
- package/lib/artwork/reader.d.ts +15 -0
- package/lib/artwork/types.d.ts +44 -0
- package/lib/cli/index.d.ts +1 -0
- package/lib/cli.js +11431 -0
- package/lib/cli.js.map +1 -0
- package/lib/constants.d.ts +40 -0
- package/lib/control/index.d.ts +20 -0
- package/lib/db/getArtworkFromFile.d.ts +13 -0
- package/lib/db/getArtworkThumbnail.d.ts +29 -0
- package/lib/db/getFile.d.ts +29 -0
- package/lib/db/getMetadata.d.ts +28 -0
- package/lib/db/getPlaylist.d.ts +26 -0
- package/lib/db/getWaveforms.d.ts +29 -0
- package/lib/db/index.d.ts +70 -0
- package/lib/db/utils.d.ts +7 -0
- package/lib/devices/index.d.ts +66 -0
- package/lib/devices/utils.d.ts +5 -0
- package/lib/entities.d.ts +122 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +13381 -0
- package/lib/index.js.map +1 -0
- package/lib/localdb/database-adapter.d.ts +49 -0
- package/lib/localdb/index.d.ts +104 -0
- package/lib/localdb/onelibrary-schema.d.ts +250 -0
- package/lib/localdb/onelibrary.d.ts +185 -0
- package/lib/localdb/orm.d.ts +60 -0
- package/lib/localdb/rekordbox.d.ts +112 -0
- package/lib/localdb/schema.d.ts +1 -0
- package/lib/localdb/utils.d.ts +5 -0
- package/lib/mixstatus/index.d.ts +109 -0
- package/lib/mixstatus/utils.d.ts +9 -0
- package/lib/network.d.ts +201 -0
- package/lib/nfs/index.d.ts +63 -0
- package/lib/nfs/programs.d.ts +61 -0
- package/lib/nfs/rpc.d.ts +60 -0
- package/lib/nfs/utils.d.ts +4 -0
- package/lib/nfs/xdr.d.ts +17 -0
- package/lib/passive/alphatheta.d.ts +94 -0
- package/lib/passive/devices.d.ts +64 -0
- package/lib/passive/index.d.ts +169 -0
- package/lib/passive/localdb.d.ts +122 -0
- package/lib/passive/pcap-adapter.d.ts +77 -0
- package/lib/passive/position.d.ts +32 -0
- package/lib/passive/remotedb.d.ts +49 -0
- package/lib/passive/status.d.ts +41 -0
- package/lib/remotedb/constants.d.ts +8 -0
- package/lib/remotedb/fields.d.ts +169 -0
- package/lib/remotedb/index.d.ts +160 -0
- package/lib/remotedb/message/index.d.ts +39 -0
- package/lib/remotedb/message/item.d.ts +530 -0
- package/lib/remotedb/message/response.d.ts +18 -0
- package/lib/remotedb/message/types.d.ts +227 -0
- package/lib/remotedb/queries.d.ts +99 -0
- package/lib/remotedb/utils.d.ts +23 -0
- package/lib/status/index.d.ts +39 -0
- package/lib/status/media.d.ts +22 -0
- package/lib/status/position.d.ts +29 -0
- package/lib/status/types.d.ts +170 -0
- package/lib/status/utils.d.ts +19 -0
- package/lib/types.d.ts +457 -0
- package/lib/types.js +274 -0
- package/lib/types.js.map +1 -0
- package/lib/utils/converters.d.ts +17 -0
- package/lib/utils/index.d.ts +28 -0
- package/lib/utils/telemetry.d.ts +82 -0
- package/lib/utils/udp.d.ts +20 -0
- package/lib/virtualcdj/index.d.ts +33 -0
- package/package.json +93 -0
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
import { Field, NumberField, StringField } from "../fields";
|
|
2
|
+
/**
|
|
3
|
+
* Item types associated to the MenuItem message type.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum ItemType {
|
|
6
|
+
Path = 0,
|
|
7
|
+
Folder = 1,
|
|
8
|
+
AlbumTitle = 2,
|
|
9
|
+
Disc = 3,
|
|
10
|
+
TrackTitle = 4,
|
|
11
|
+
Genre = 6,
|
|
12
|
+
Artist = 7,
|
|
13
|
+
Playlist = 8,
|
|
14
|
+
Rating = 10,
|
|
15
|
+
Duration = 11,
|
|
16
|
+
Tempo = 13,
|
|
17
|
+
Label = 14,
|
|
18
|
+
Key = 15,
|
|
19
|
+
BitRate = 16,
|
|
20
|
+
Year = 17,
|
|
21
|
+
Comment = 35,
|
|
22
|
+
HistoryPlaylist = 36,
|
|
23
|
+
OriginalArtist = 40,
|
|
24
|
+
Remixer = 41,
|
|
25
|
+
DateAdded = 46,
|
|
26
|
+
Unknown01 = 47,
|
|
27
|
+
Unknown02 = 42,
|
|
28
|
+
ColorNone = 19,
|
|
29
|
+
ColorPink = 20,
|
|
30
|
+
ColorRed = 21,
|
|
31
|
+
ColorOrange = 22,
|
|
32
|
+
ColorYellow = 23,
|
|
33
|
+
ColorGreen = 24,
|
|
34
|
+
ColorAqua = 25,
|
|
35
|
+
ColorBlue = 26,
|
|
36
|
+
ColorPurple = 27,
|
|
37
|
+
MenuGenre = 128,
|
|
38
|
+
MenuArtist = 129,
|
|
39
|
+
MenuAlbum = 130,
|
|
40
|
+
MenuTrack = 131,
|
|
41
|
+
MenuPlaylist = 132,
|
|
42
|
+
MenuBPM = 133,
|
|
43
|
+
MenuRating = 134,
|
|
44
|
+
MenuYear = 135,
|
|
45
|
+
MenuRemixer = 136,
|
|
46
|
+
MenuLabel = 137,
|
|
47
|
+
MenuOriginal = 138,
|
|
48
|
+
MenuKey = 139,
|
|
49
|
+
MenuColor = 142,
|
|
50
|
+
MenuFolder = 144,
|
|
51
|
+
MenuSearch = 145,
|
|
52
|
+
MenuTime = 146,
|
|
53
|
+
MenuBit = 147,
|
|
54
|
+
MenuFilename = 148,
|
|
55
|
+
MenuHistory = 149,
|
|
56
|
+
MenuAll = 160,
|
|
57
|
+
TrackTitleAlbum = 516,
|
|
58
|
+
TrackTitleGenre = 1540,
|
|
59
|
+
TrackTitleArtist = 1796,
|
|
60
|
+
TrackTitleRating = 2564,
|
|
61
|
+
TrackTitleTime = 2820,
|
|
62
|
+
TrackTitleBPM = 3332,
|
|
63
|
+
TrackTitleLabel = 3588,
|
|
64
|
+
TrackTitleKey = 3844,
|
|
65
|
+
TrackTitleBitRate = 4100,
|
|
66
|
+
TrackTitleColor = 6660,
|
|
67
|
+
TrackTitleComment = 8964,
|
|
68
|
+
TrackTitleOriginalArtist = 10244,
|
|
69
|
+
TrackTitleRemixer = 10500,
|
|
70
|
+
TrackTitleDJPlayCount = 10756,
|
|
71
|
+
MenuTrackTitleDateAdded = 11780
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* All items have 12 arguments of these types
|
|
75
|
+
*/
|
|
76
|
+
type ItemArgs = [
|
|
77
|
+
NumberField,
|
|
78
|
+
NumberField,
|
|
79
|
+
NumberField,
|
|
80
|
+
StringField,
|
|
81
|
+
NumberField,
|
|
82
|
+
StringField,
|
|
83
|
+
NumberField<ItemType>,
|
|
84
|
+
NumberField,
|
|
85
|
+
NumberField,
|
|
86
|
+
NumberField,
|
|
87
|
+
NumberField,
|
|
88
|
+
NumberField
|
|
89
|
+
];
|
|
90
|
+
/**
|
|
91
|
+
* Convert a message item argument lists to a structured intermediate object
|
|
92
|
+
* for more clear access.
|
|
93
|
+
*/
|
|
94
|
+
declare const makeItemData: (args: ItemArgs) => {
|
|
95
|
+
parentId: number;
|
|
96
|
+
mainId: number;
|
|
97
|
+
label1: string;
|
|
98
|
+
label2: string;
|
|
99
|
+
type: ItemType;
|
|
100
|
+
artworkId: number;
|
|
101
|
+
};
|
|
102
|
+
type ItemData = ReturnType<typeof makeItemData>;
|
|
103
|
+
/**
|
|
104
|
+
* Maps item types to structured objects
|
|
105
|
+
*/
|
|
106
|
+
declare const transformItem: {
|
|
107
|
+
0: (a: ItemData) => {
|
|
108
|
+
path: string;
|
|
109
|
+
};
|
|
110
|
+
4: (a: ItemData) => {
|
|
111
|
+
id: number;
|
|
112
|
+
title: string;
|
|
113
|
+
artworkId: number;
|
|
114
|
+
};
|
|
115
|
+
2: (a: ItemData) => {
|
|
116
|
+
id: number;
|
|
117
|
+
name: string;
|
|
118
|
+
};
|
|
119
|
+
7: (a: ItemData) => {
|
|
120
|
+
id: number;
|
|
121
|
+
name: string;
|
|
122
|
+
};
|
|
123
|
+
6: (a: ItemData) => {
|
|
124
|
+
id: number;
|
|
125
|
+
name: string;
|
|
126
|
+
};
|
|
127
|
+
14: (a: ItemData) => {
|
|
128
|
+
id: number;
|
|
129
|
+
name: string;
|
|
130
|
+
};
|
|
131
|
+
15: (a: ItemData) => {
|
|
132
|
+
id: number;
|
|
133
|
+
name: string;
|
|
134
|
+
};
|
|
135
|
+
40: (a: ItemData) => {
|
|
136
|
+
id: number;
|
|
137
|
+
name: string;
|
|
138
|
+
};
|
|
139
|
+
41: (a: ItemData) => {
|
|
140
|
+
id: number;
|
|
141
|
+
name: string;
|
|
142
|
+
};
|
|
143
|
+
16: (a: ItemData) => {
|
|
144
|
+
bitrate: number;
|
|
145
|
+
};
|
|
146
|
+
35: (a: ItemData) => {
|
|
147
|
+
comment: string;
|
|
148
|
+
};
|
|
149
|
+
17: (a: ItemData) => {
|
|
150
|
+
year: number;
|
|
151
|
+
};
|
|
152
|
+
10: (a: ItemData) => {
|
|
153
|
+
rating: number;
|
|
154
|
+
};
|
|
155
|
+
13: (a: ItemData) => {
|
|
156
|
+
bpm: number;
|
|
157
|
+
};
|
|
158
|
+
11: (a: ItemData) => {
|
|
159
|
+
duration: number;
|
|
160
|
+
};
|
|
161
|
+
47: (_: ItemData) => null;
|
|
162
|
+
42: (_: ItemData) => null;
|
|
163
|
+
19: (a: ItemData) => {
|
|
164
|
+
id: number;
|
|
165
|
+
name: string;
|
|
166
|
+
};
|
|
167
|
+
20: (a: ItemData) => {
|
|
168
|
+
id: number;
|
|
169
|
+
name: string;
|
|
170
|
+
};
|
|
171
|
+
21: (a: ItemData) => {
|
|
172
|
+
id: number;
|
|
173
|
+
name: string;
|
|
174
|
+
};
|
|
175
|
+
22: (a: ItemData) => {
|
|
176
|
+
id: number;
|
|
177
|
+
name: string;
|
|
178
|
+
};
|
|
179
|
+
23: (a: ItemData) => {
|
|
180
|
+
id: number;
|
|
181
|
+
name: string;
|
|
182
|
+
};
|
|
183
|
+
24: (a: ItemData) => {
|
|
184
|
+
id: number;
|
|
185
|
+
name: string;
|
|
186
|
+
};
|
|
187
|
+
25: (a: ItemData) => {
|
|
188
|
+
id: number;
|
|
189
|
+
name: string;
|
|
190
|
+
};
|
|
191
|
+
26: (a: ItemData) => {
|
|
192
|
+
id: number;
|
|
193
|
+
name: string;
|
|
194
|
+
};
|
|
195
|
+
27: (a: ItemData) => {
|
|
196
|
+
id: number;
|
|
197
|
+
name: string;
|
|
198
|
+
};
|
|
199
|
+
1: (a: ItemData) => {
|
|
200
|
+
id: number;
|
|
201
|
+
name: string;
|
|
202
|
+
};
|
|
203
|
+
8: (a: ItemData) => {
|
|
204
|
+
id: number;
|
|
205
|
+
name: string;
|
|
206
|
+
};
|
|
207
|
+
3: (a: ItemData) => {
|
|
208
|
+
parentId: number;
|
|
209
|
+
mainId: number;
|
|
210
|
+
label1: string;
|
|
211
|
+
label2: string;
|
|
212
|
+
type: ItemType;
|
|
213
|
+
artworkId: number;
|
|
214
|
+
};
|
|
215
|
+
36: (a: ItemData) => {
|
|
216
|
+
parentId: number;
|
|
217
|
+
mainId: number;
|
|
218
|
+
label1: string;
|
|
219
|
+
label2: string;
|
|
220
|
+
type: ItemType;
|
|
221
|
+
artworkId: number;
|
|
222
|
+
};
|
|
223
|
+
46: (a: ItemData) => {
|
|
224
|
+
parentId: number;
|
|
225
|
+
mainId: number;
|
|
226
|
+
label1: string;
|
|
227
|
+
label2: string;
|
|
228
|
+
type: ItemType;
|
|
229
|
+
artworkId: number;
|
|
230
|
+
};
|
|
231
|
+
128: (a: ItemData) => {
|
|
232
|
+
parentId: number;
|
|
233
|
+
mainId: number;
|
|
234
|
+
label1: string;
|
|
235
|
+
label2: string;
|
|
236
|
+
type: ItemType;
|
|
237
|
+
artworkId: number;
|
|
238
|
+
};
|
|
239
|
+
129: (a: ItemData) => {
|
|
240
|
+
parentId: number;
|
|
241
|
+
mainId: number;
|
|
242
|
+
label1: string;
|
|
243
|
+
label2: string;
|
|
244
|
+
type: ItemType;
|
|
245
|
+
artworkId: number;
|
|
246
|
+
};
|
|
247
|
+
130: (a: ItemData) => {
|
|
248
|
+
parentId: number;
|
|
249
|
+
mainId: number;
|
|
250
|
+
label1: string;
|
|
251
|
+
label2: string;
|
|
252
|
+
type: ItemType;
|
|
253
|
+
artworkId: number;
|
|
254
|
+
};
|
|
255
|
+
131: (a: ItemData) => {
|
|
256
|
+
parentId: number;
|
|
257
|
+
mainId: number;
|
|
258
|
+
label1: string;
|
|
259
|
+
label2: string;
|
|
260
|
+
type: ItemType;
|
|
261
|
+
artworkId: number;
|
|
262
|
+
};
|
|
263
|
+
132: (a: ItemData) => {
|
|
264
|
+
parentId: number;
|
|
265
|
+
mainId: number;
|
|
266
|
+
label1: string;
|
|
267
|
+
label2: string;
|
|
268
|
+
type: ItemType;
|
|
269
|
+
artworkId: number;
|
|
270
|
+
};
|
|
271
|
+
133: (a: ItemData) => {
|
|
272
|
+
parentId: number;
|
|
273
|
+
mainId: number;
|
|
274
|
+
label1: string;
|
|
275
|
+
label2: string;
|
|
276
|
+
type: ItemType;
|
|
277
|
+
artworkId: number;
|
|
278
|
+
};
|
|
279
|
+
134: (a: ItemData) => {
|
|
280
|
+
parentId: number;
|
|
281
|
+
mainId: number;
|
|
282
|
+
label1: string;
|
|
283
|
+
label2: string;
|
|
284
|
+
type: ItemType;
|
|
285
|
+
artworkId: number;
|
|
286
|
+
};
|
|
287
|
+
135: (a: ItemData) => {
|
|
288
|
+
parentId: number;
|
|
289
|
+
mainId: number;
|
|
290
|
+
label1: string;
|
|
291
|
+
label2: string;
|
|
292
|
+
type: ItemType;
|
|
293
|
+
artworkId: number;
|
|
294
|
+
};
|
|
295
|
+
136: (a: ItemData) => {
|
|
296
|
+
parentId: number;
|
|
297
|
+
mainId: number;
|
|
298
|
+
label1: string;
|
|
299
|
+
label2: string;
|
|
300
|
+
type: ItemType;
|
|
301
|
+
artworkId: number;
|
|
302
|
+
};
|
|
303
|
+
137: (a: ItemData) => {
|
|
304
|
+
parentId: number;
|
|
305
|
+
mainId: number;
|
|
306
|
+
label1: string;
|
|
307
|
+
label2: string;
|
|
308
|
+
type: ItemType;
|
|
309
|
+
artworkId: number;
|
|
310
|
+
};
|
|
311
|
+
138: (a: ItemData) => {
|
|
312
|
+
parentId: number;
|
|
313
|
+
mainId: number;
|
|
314
|
+
label1: string;
|
|
315
|
+
label2: string;
|
|
316
|
+
type: ItemType;
|
|
317
|
+
artworkId: number;
|
|
318
|
+
};
|
|
319
|
+
139: (a: ItemData) => {
|
|
320
|
+
parentId: number;
|
|
321
|
+
mainId: number;
|
|
322
|
+
label1: string;
|
|
323
|
+
label2: string;
|
|
324
|
+
type: ItemType;
|
|
325
|
+
artworkId: number;
|
|
326
|
+
};
|
|
327
|
+
142: (a: ItemData) => {
|
|
328
|
+
parentId: number;
|
|
329
|
+
mainId: number;
|
|
330
|
+
label1: string;
|
|
331
|
+
label2: string;
|
|
332
|
+
type: ItemType;
|
|
333
|
+
artworkId: number;
|
|
334
|
+
};
|
|
335
|
+
144: (a: ItemData) => {
|
|
336
|
+
parentId: number;
|
|
337
|
+
mainId: number;
|
|
338
|
+
label1: string;
|
|
339
|
+
label2: string;
|
|
340
|
+
type: ItemType;
|
|
341
|
+
artworkId: number;
|
|
342
|
+
};
|
|
343
|
+
145: (a: ItemData) => {
|
|
344
|
+
parentId: number;
|
|
345
|
+
mainId: number;
|
|
346
|
+
label1: string;
|
|
347
|
+
label2: string;
|
|
348
|
+
type: ItemType;
|
|
349
|
+
artworkId: number;
|
|
350
|
+
};
|
|
351
|
+
146: (a: ItemData) => {
|
|
352
|
+
parentId: number;
|
|
353
|
+
mainId: number;
|
|
354
|
+
label1: string;
|
|
355
|
+
label2: string;
|
|
356
|
+
type: ItemType;
|
|
357
|
+
artworkId: number;
|
|
358
|
+
};
|
|
359
|
+
147: (a: ItemData) => {
|
|
360
|
+
parentId: number;
|
|
361
|
+
mainId: number;
|
|
362
|
+
label1: string;
|
|
363
|
+
label2: string;
|
|
364
|
+
type: ItemType;
|
|
365
|
+
artworkId: number;
|
|
366
|
+
};
|
|
367
|
+
148: (a: ItemData) => {
|
|
368
|
+
parentId: number;
|
|
369
|
+
mainId: number;
|
|
370
|
+
label1: string;
|
|
371
|
+
label2: string;
|
|
372
|
+
type: ItemType;
|
|
373
|
+
artworkId: number;
|
|
374
|
+
};
|
|
375
|
+
149: (a: ItemData) => {
|
|
376
|
+
parentId: number;
|
|
377
|
+
mainId: number;
|
|
378
|
+
label1: string;
|
|
379
|
+
label2: string;
|
|
380
|
+
type: ItemType;
|
|
381
|
+
artworkId: number;
|
|
382
|
+
};
|
|
383
|
+
160: (a: ItemData) => {
|
|
384
|
+
parentId: number;
|
|
385
|
+
mainId: number;
|
|
386
|
+
label1: string;
|
|
387
|
+
label2: string;
|
|
388
|
+
type: ItemType;
|
|
389
|
+
artworkId: number;
|
|
390
|
+
};
|
|
391
|
+
516: (a: ItemData) => {
|
|
392
|
+
parentId: number;
|
|
393
|
+
mainId: number;
|
|
394
|
+
label1: string;
|
|
395
|
+
label2: string;
|
|
396
|
+
type: ItemType;
|
|
397
|
+
artworkId: number;
|
|
398
|
+
};
|
|
399
|
+
1540: (a: ItemData) => {
|
|
400
|
+
parentId: number;
|
|
401
|
+
mainId: number;
|
|
402
|
+
label1: string;
|
|
403
|
+
label2: string;
|
|
404
|
+
type: ItemType;
|
|
405
|
+
artworkId: number;
|
|
406
|
+
};
|
|
407
|
+
1796: (a: ItemData) => {
|
|
408
|
+
parentId: number;
|
|
409
|
+
mainId: number;
|
|
410
|
+
label1: string;
|
|
411
|
+
label2: string;
|
|
412
|
+
type: ItemType;
|
|
413
|
+
artworkId: number;
|
|
414
|
+
};
|
|
415
|
+
2564: (a: ItemData) => {
|
|
416
|
+
parentId: number;
|
|
417
|
+
mainId: number;
|
|
418
|
+
label1: string;
|
|
419
|
+
label2: string;
|
|
420
|
+
type: ItemType;
|
|
421
|
+
artworkId: number;
|
|
422
|
+
};
|
|
423
|
+
2820: (a: ItemData) => {
|
|
424
|
+
parentId: number;
|
|
425
|
+
mainId: number;
|
|
426
|
+
label1: string;
|
|
427
|
+
label2: string;
|
|
428
|
+
type: ItemType;
|
|
429
|
+
artworkId: number;
|
|
430
|
+
};
|
|
431
|
+
3332: (a: ItemData) => {
|
|
432
|
+
parentId: number;
|
|
433
|
+
mainId: number;
|
|
434
|
+
label1: string;
|
|
435
|
+
label2: string;
|
|
436
|
+
type: ItemType;
|
|
437
|
+
artworkId: number;
|
|
438
|
+
};
|
|
439
|
+
3588: (a: ItemData) => {
|
|
440
|
+
parentId: number;
|
|
441
|
+
mainId: number;
|
|
442
|
+
label1: string;
|
|
443
|
+
label2: string;
|
|
444
|
+
type: ItemType;
|
|
445
|
+
artworkId: number;
|
|
446
|
+
};
|
|
447
|
+
3844: (a: ItemData) => {
|
|
448
|
+
parentId: number;
|
|
449
|
+
mainId: number;
|
|
450
|
+
label1: string;
|
|
451
|
+
label2: string;
|
|
452
|
+
type: ItemType;
|
|
453
|
+
artworkId: number;
|
|
454
|
+
};
|
|
455
|
+
4100: (a: ItemData) => {
|
|
456
|
+
parentId: number;
|
|
457
|
+
mainId: number;
|
|
458
|
+
label1: string;
|
|
459
|
+
label2: string;
|
|
460
|
+
type: ItemType;
|
|
461
|
+
artworkId: number;
|
|
462
|
+
};
|
|
463
|
+
6660: (a: ItemData) => {
|
|
464
|
+
parentId: number;
|
|
465
|
+
mainId: number;
|
|
466
|
+
label1: string;
|
|
467
|
+
label2: string;
|
|
468
|
+
type: ItemType;
|
|
469
|
+
artworkId: number;
|
|
470
|
+
};
|
|
471
|
+
8964: (a: ItemData) => {
|
|
472
|
+
parentId: number;
|
|
473
|
+
mainId: number;
|
|
474
|
+
label1: string;
|
|
475
|
+
label2: string;
|
|
476
|
+
type: ItemType;
|
|
477
|
+
artworkId: number;
|
|
478
|
+
};
|
|
479
|
+
10244: (a: ItemData) => {
|
|
480
|
+
parentId: number;
|
|
481
|
+
mainId: number;
|
|
482
|
+
label1: string;
|
|
483
|
+
label2: string;
|
|
484
|
+
type: ItemType;
|
|
485
|
+
artworkId: number;
|
|
486
|
+
};
|
|
487
|
+
10500: (a: ItemData) => {
|
|
488
|
+
parentId: number;
|
|
489
|
+
mainId: number;
|
|
490
|
+
label1: string;
|
|
491
|
+
label2: string;
|
|
492
|
+
type: ItemType;
|
|
493
|
+
artworkId: number;
|
|
494
|
+
};
|
|
495
|
+
10756: (a: ItemData) => {
|
|
496
|
+
parentId: number;
|
|
497
|
+
mainId: number;
|
|
498
|
+
label1: string;
|
|
499
|
+
label2: string;
|
|
500
|
+
type: ItemType;
|
|
501
|
+
artworkId: number;
|
|
502
|
+
};
|
|
503
|
+
11780: (a: ItemData) => {
|
|
504
|
+
parentId: number;
|
|
505
|
+
mainId: number;
|
|
506
|
+
label1: string;
|
|
507
|
+
label2: string;
|
|
508
|
+
type: ItemType;
|
|
509
|
+
artworkId: number;
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
/**
|
|
513
|
+
* Represents a generic Item, specialized to a specific item by providing a
|
|
514
|
+
* ItemType to the template.
|
|
515
|
+
*/
|
|
516
|
+
export type Item<T extends ItemType> = ReturnType<(typeof transformItem)[T]> & {
|
|
517
|
+
type: T;
|
|
518
|
+
};
|
|
519
|
+
/**
|
|
520
|
+
* Maps ItemTypes to Items
|
|
521
|
+
*/
|
|
522
|
+
export type Items = {
|
|
523
|
+
[T in keyof typeof transformItem]: Item<T>;
|
|
524
|
+
};
|
|
525
|
+
/**
|
|
526
|
+
* Translate a list of fields for an item response into a structure object,
|
|
527
|
+
* making items more clear to work with.
|
|
528
|
+
*/
|
|
529
|
+
export declare const fieldsToItem: (args: Field[]) => Items[ItemType];
|
|
530
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Field } from "../fields";
|
|
2
|
+
import { BeatGrid, CueAndLoop, WaveformDetailed, WaveformHD, WaveformPreview } from "../../types";
|
|
3
|
+
export declare const responseTransform: {
|
|
4
|
+
readonly 16384: (args: Field[]) => {
|
|
5
|
+
itemsAvailable: number;
|
|
6
|
+
};
|
|
7
|
+
readonly 16387: (_args: Field[]) => null;
|
|
8
|
+
readonly 16385: (_args: Field[]) => null;
|
|
9
|
+
readonly 16897: (_args: Field[]) => null;
|
|
10
|
+
readonly 16641: (args: Field[]) => import("./item").Items[import("./item").ItemType];
|
|
11
|
+
readonly 16386: (args: Field[]) => Buffer;
|
|
12
|
+
readonly 17922: (args: Field[]) => BeatGrid;
|
|
13
|
+
readonly 18178: (args: Field[]) => CueAndLoop[];
|
|
14
|
+
readonly 17410: (args: Field[]) => WaveformPreview;
|
|
15
|
+
readonly 18946: (args: Field[]) => WaveformDetailed;
|
|
16
|
+
readonly 20226: (args: Field[]) => WaveformHD;
|
|
17
|
+
readonly 19970: (args: Field[]) => CueAndLoop[];
|
|
18
|
+
};
|