@omelhorsite/sdk 0.4.3 → 0.4.4
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/index.js +1 -1
- package/dist/types/resources/admin/identities.d.ts +1 -1
- package/dist/types/resources/admin/jobs.d.ts +1 -1
- package/dist/types/resources/admin/vocalSeparations.d.ts +1 -1
- package/dist/types/resources/library/annotations.d.ts +1 -1
- package/dist/types/resources/library/books.d.ts +1 -1
- package/dist/types/resources/library/shelves.d.ts +1 -1
- package/dist/types/resources/music/artists.d.ts +1 -1
- package/dist/types/resources/music/songs.d.ts +1 -1
- package/dist/types/types.d.ts +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9459,7 +9459,7 @@ function listQuery(params, at, base = {}) {
|
|
|
9459
9459
|
const modifiers = {};
|
|
9460
9460
|
if (at !== undefined)
|
|
9461
9461
|
modifiers["page"] = pageModifier(at.page, at.pageSize);
|
|
9462
|
-
const order = params.order ?? base.order;
|
|
9462
|
+
const order = params.order === null ? undefined : params.order ?? (params.random === true ? undefined : base.order);
|
|
9463
9463
|
if (order !== undefined)
|
|
9464
9464
|
modifiers["order"] = order;
|
|
9465
9465
|
if (params.random === true)
|
|
@@ -43,7 +43,7 @@ export declare const LINKED_IDENTITY_FILTER_COLUMNS: readonly ["user_id"];
|
|
|
43
43
|
/** Filters for {@link LinkedIdentitiesNamespace.list}. */
|
|
44
44
|
export interface ListLinkedIdentitiesParams extends ListParams<(typeof LINKED_IDENTITY_FILTER_COLUMNS)[number]> {
|
|
45
45
|
/** Defaults to `"created_at:desc"`. */
|
|
46
|
-
readonly order?: string;
|
|
46
|
+
readonly order?: string | null;
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* `oms.admin.identities` - the Google, GitHub and Spotify logins linked to
|
|
@@ -20,7 +20,7 @@ export interface ListAdminJobsParams extends ListParams<(typeof ADMIN_JOB_FILTER
|
|
|
20
20
|
/** Exact job type. An array becomes an `IN`. */
|
|
21
21
|
readonly jobType?: string | readonly string[];
|
|
22
22
|
/** Defaults to `"created_at:desc"`. */
|
|
23
|
-
readonly order?: string;
|
|
23
|
+
readonly order?: string | null;
|
|
24
24
|
}
|
|
25
25
|
/** What {@link AdminJobsNamespace.cleanupStuck} answers with. */
|
|
26
26
|
export interface AdminStuckJobCleanup {
|
|
@@ -30,7 +30,7 @@ export interface ListAdminVocalSeparationsParams extends ListParams<(typeof ADMI
|
|
|
30
30
|
/** `exact_search[user_id]`. */
|
|
31
31
|
readonly userId?: Id;
|
|
32
32
|
/** `modifiers[order]`. Defaults to `"created_at:desc"`. */
|
|
33
|
-
readonly order?: string;
|
|
33
|
+
readonly order?: string | null;
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* `oms.admin.vocalSeparations` - **administrators only**. Every separation run
|
|
@@ -16,7 +16,7 @@ export interface ListBookAnnotationsParams extends ListParams<(typeof BOOK_ANNOT
|
|
|
16
16
|
/** Exact kind, or an array of kinds (which becomes `IN (...)`). */
|
|
17
17
|
readonly kind?: BookAnnotationKind | readonly BookAnnotationKind[];
|
|
18
18
|
/** `"column:asc"` / `"column:desc"`. Defaults to `created_at:asc`. */
|
|
19
|
-
readonly order?: string;
|
|
19
|
+
readonly order?: string | null;
|
|
20
20
|
}
|
|
21
21
|
/** Arguments for {@link LibraryAnnotationsNamespace.create}. */
|
|
22
22
|
export interface CreateBookAnnotationInput {
|
|
@@ -97,7 +97,7 @@ export interface ListBooksParams extends BookFilters, ListParams<(typeof BOOK_FI
|
|
|
97
97
|
*/
|
|
98
98
|
readonly tags?: readonly string[];
|
|
99
99
|
/** `"column:asc"` / `"column:desc"`. See {@link LibraryBooksNamespace.list}. */
|
|
100
|
-
readonly order?: string;
|
|
100
|
+
readonly order?: string | null;
|
|
101
101
|
/** Random ordering. Disables the `ETag`, and is not stable across pages. */
|
|
102
102
|
readonly random?: boolean;
|
|
103
103
|
}
|
|
@@ -64,7 +64,7 @@ export interface ListBookShelvesParams extends ListParams<(typeof BOOK_SHELF_FIL
|
|
|
64
64
|
/** Exact ids. An array becomes `IN (...)`. */
|
|
65
65
|
readonly ids?: readonly BookShelfId[];
|
|
66
66
|
/** `"column:asc"` / `"column:desc"`. Defaults to the endpoint's own ordering. */
|
|
67
|
-
readonly order?: string;
|
|
67
|
+
readonly order?: string | null;
|
|
68
68
|
}
|
|
69
69
|
/** Arguments for {@link LibraryShelvesNamespace.create}. */
|
|
70
70
|
export interface CreateBookShelfInput {
|
|
@@ -270,7 +270,7 @@ export interface ListArtistsParams extends ListParams<(typeof ARTIST_FILTER_COLU
|
|
|
270
270
|
* field is computed per response and cannot be sorted on. Sort client-side,
|
|
271
271
|
* or read {@link MusicArtistsNamespace.overview}, which ranks for you.
|
|
272
272
|
*/
|
|
273
|
-
readonly order?: string;
|
|
273
|
+
readonly order?: string | null;
|
|
274
274
|
}
|
|
275
275
|
/** Body accepted by {@link MusicArtistsNamespace.update}. */
|
|
276
276
|
export interface UpdateArtistInput {
|
|
@@ -481,7 +481,7 @@ export interface ListSongsParams extends SongFilters, ListParams<(typeof SONG_FI
|
|
|
481
481
|
* A third `:`-separated segment pins specific values first
|
|
482
482
|
* (`"album:asc:Clube da Esquina,Acabou Chorare"`).
|
|
483
483
|
*/
|
|
484
|
-
readonly order?: string;
|
|
484
|
+
readonly order?: string | null;
|
|
485
485
|
/**
|
|
486
486
|
* `modifiers[random]=true` - shuffle server-side.
|
|
487
487
|
*
|
package/dist/types/types.d.ts
CHANGED
|
@@ -371,8 +371,12 @@ export interface PageParams {
|
|
|
371
371
|
* the wire. See {@link resolvePageSize}.
|
|
372
372
|
*/
|
|
373
373
|
readonly pageSize?: number;
|
|
374
|
-
/**
|
|
375
|
-
|
|
374
|
+
/**
|
|
375
|
+
* `"column:asc"` or `"column:desc"`, sent as `modifiers[order]`. `null` sends
|
|
376
|
+
* none at all, not even a resource's default, which is what a caller relying
|
|
377
|
+
* on the server's own base order wants.
|
|
378
|
+
*/
|
|
379
|
+
readonly order?: string | null;
|
|
376
380
|
}
|
|
377
381
|
/**
|
|
378
382
|
* One page of a listing.
|
package/package.json
CHANGED