@audius/sdk 3.0.11-beta.6 → 3.0.11-beta.7
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.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/legacy.js +2 -2
- package/dist/native-libs.js +2 -2
- package/dist/web-libs.js +2 -2
- package/package.json +2 -2
- package/src/sdk/api/generated/full/apis/SearchApi.ts +10 -0
- package/src/sdk/api/generated/full/apis/TracksApi.ts +137 -2
package/dist/index.cjs.js
CHANGED
|
@@ -63789,9 +63789,9 @@ var getPlatformLocalStorage = function getPlatformLocalStorage() {
|
|
|
63789
63789
|
};
|
|
63790
63790
|
|
|
63791
63791
|
var name = "@audius/sdk";
|
|
63792
|
-
var version = "3.0.11-beta.
|
|
63792
|
+
var version = "3.0.11-beta.7";
|
|
63793
63793
|
var audius = {
|
|
63794
|
-
releaseSHA: "
|
|
63794
|
+
releaseSHA: "3b77629c41f5bac9085df556df1d3a68c3c96134"
|
|
63795
63795
|
};
|
|
63796
63796
|
var description = "Audius SDK";
|
|
63797
63797
|
var keywords = [
|
package/dist/index.esm.js
CHANGED
|
@@ -63623,9 +63623,9 @@ var getPlatformLocalStorage = function getPlatformLocalStorage() {
|
|
|
63623
63623
|
};
|
|
63624
63624
|
|
|
63625
63625
|
var name = "@audius/sdk";
|
|
63626
|
-
var version = "3.0.11-beta.
|
|
63626
|
+
var version = "3.0.11-beta.7";
|
|
63627
63627
|
var audius = {
|
|
63628
|
-
releaseSHA: "
|
|
63628
|
+
releaseSHA: "3b77629c41f5bac9085df556df1d3a68c3c96134"
|
|
63629
63629
|
};
|
|
63630
63630
|
var description = "Audius SDK";
|
|
63631
63631
|
var keywords = [
|
package/dist/legacy.js
CHANGED
|
@@ -63674,9 +63674,9 @@ var getPlatformLocalStorage = function getPlatformLocalStorage() {
|
|
|
63674
63674
|
};
|
|
63675
63675
|
|
|
63676
63676
|
var name = "@audius/sdk";
|
|
63677
|
-
var version = "3.0.11-beta.
|
|
63677
|
+
var version = "3.0.11-beta.7";
|
|
63678
63678
|
var audius = {
|
|
63679
|
-
releaseSHA: "
|
|
63679
|
+
releaseSHA: "3b77629c41f5bac9085df556df1d3a68c3c96134"
|
|
63680
63680
|
};
|
|
63681
63681
|
var description = "Audius SDK";
|
|
63682
63682
|
var keywords = [
|
package/dist/native-libs.js
CHANGED
|
@@ -39697,9 +39697,9 @@ var getPlatformLocalStorage = function getPlatformLocalStorage() {
|
|
|
39697
39697
|
};
|
|
39698
39698
|
|
|
39699
39699
|
var name = "@audius/sdk";
|
|
39700
|
-
var version = "3.0.11-beta.
|
|
39700
|
+
var version = "3.0.11-beta.7";
|
|
39701
39701
|
var audius = {
|
|
39702
|
-
releaseSHA: "
|
|
39702
|
+
releaseSHA: "3b77629c41f5bac9085df556df1d3a68c3c96134"
|
|
39703
39703
|
};
|
|
39704
39704
|
var description = "Audius SDK";
|
|
39705
39705
|
var keywords = [
|
package/dist/web-libs.js
CHANGED
|
@@ -63125,9 +63125,9 @@ var getPlatformLocalStorage = function getPlatformLocalStorage() {
|
|
|
63125
63125
|
};
|
|
63126
63126
|
|
|
63127
63127
|
var name = "@audius/sdk";
|
|
63128
|
-
var version = "3.0.11-beta.
|
|
63128
|
+
var version = "3.0.11-beta.7";
|
|
63129
63129
|
var audius = {
|
|
63130
|
-
releaseSHA: "
|
|
63130
|
+
releaseSHA: "3b77629c41f5bac9085df556df1d3a68c3c96134"
|
|
63131
63131
|
};
|
|
63132
63132
|
var description = "Audius SDK";
|
|
63133
63133
|
var keywords = [
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@audius/sdk",
|
|
3
|
-
"version": "3.0.11-beta.
|
|
3
|
+
"version": "3.0.11-beta.7",
|
|
4
4
|
"audius": {
|
|
5
|
-
"releaseSHA": "
|
|
5
|
+
"releaseSHA": "3b77629c41f5bac9085df556df1d3a68c3c96134"
|
|
6
6
|
},
|
|
7
7
|
"description": "Audius SDK",
|
|
8
8
|
"keywords": [
|
|
@@ -32,6 +32,7 @@ export interface SearchRequest {
|
|
|
32
32
|
limit?: number;
|
|
33
33
|
userId?: string;
|
|
34
34
|
kind?: SearchKindEnum;
|
|
35
|
+
includePurchaseable?: string;
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
export interface SearchAutocompleteRequest {
|
|
@@ -40,6 +41,7 @@ export interface SearchAutocompleteRequest {
|
|
|
40
41
|
limit?: number;
|
|
41
42
|
userId?: string;
|
|
42
43
|
kind?: SearchAutocompleteKindEnum;
|
|
44
|
+
includePurchaseable?: string;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
/**
|
|
@@ -78,6 +80,10 @@ export class SearchApi extends runtime.BaseAPI {
|
|
|
78
80
|
queryParameters['kind'] = params.kind;
|
|
79
81
|
}
|
|
80
82
|
|
|
83
|
+
if (params.includePurchaseable !== undefined) {
|
|
84
|
+
queryParameters['includePurchaseable'] = params.includePurchaseable;
|
|
85
|
+
}
|
|
86
|
+
|
|
81
87
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
82
88
|
|
|
83
89
|
const response = await this.request({
|
|
@@ -130,6 +136,10 @@ export class SearchApi extends runtime.BaseAPI {
|
|
|
130
136
|
queryParameters['kind'] = params.kind;
|
|
131
137
|
}
|
|
132
138
|
|
|
139
|
+
if (params.includePurchaseable !== undefined) {
|
|
140
|
+
queryParameters['includePurchaseable'] = params.includePurchaseable;
|
|
141
|
+
}
|
|
142
|
+
|
|
133
143
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
134
144
|
|
|
135
145
|
const response = await this.request({
|
|
@@ -144,6 +144,23 @@ export interface GetTrendingTracksWithVersionRequest {
|
|
|
144
144
|
time?: GetTrendingTracksWithVersionTimeEnum;
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
+
export interface GetTrendingUSDCPurchaseTracksRequest {
|
|
148
|
+
offset?: number;
|
|
149
|
+
limit?: number;
|
|
150
|
+
userId?: string;
|
|
151
|
+
genre?: string;
|
|
152
|
+
time?: GetTrendingUSDCPurchaseTracksTimeEnum;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export interface GetTrendingUSDCPurchaseTracksWithVersionRequest {
|
|
156
|
+
version: string;
|
|
157
|
+
offset?: number;
|
|
158
|
+
limit?: number;
|
|
159
|
+
userId?: string;
|
|
160
|
+
genre?: string;
|
|
161
|
+
time?: GetTrendingUSDCPurchaseTracksWithVersionTimeEnum;
|
|
162
|
+
}
|
|
163
|
+
|
|
147
164
|
export interface GetUnderTheRadarTracksRequest {
|
|
148
165
|
offset?: number;
|
|
149
166
|
limit?: number;
|
|
@@ -787,7 +804,7 @@ export class TracksApi extends runtime.BaseAPI {
|
|
|
787
804
|
|
|
788
805
|
/**
|
|
789
806
|
* @hidden
|
|
790
|
-
* Gets the top 100 trending (most popular tracks on Audius using a given trending strategy version
|
|
807
|
+
* Gets the top 100 trending (most popular) tracks on Audius using a given trending strategy version
|
|
791
808
|
*/
|
|
792
809
|
async getTrendingTracksWithVersionRaw(params: GetTrendingTracksWithVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FullTracksResponse>> {
|
|
793
810
|
if (params.version === null || params.version === undefined) {
|
|
@@ -829,13 +846,111 @@ export class TracksApi extends runtime.BaseAPI {
|
|
|
829
846
|
}
|
|
830
847
|
|
|
831
848
|
/**
|
|
832
|
-
* Gets the top 100 trending (most popular tracks on Audius using a given trending strategy version
|
|
849
|
+
* Gets the top 100 trending (most popular) tracks on Audius using a given trending strategy version
|
|
833
850
|
*/
|
|
834
851
|
async getTrendingTracksWithVersion(params: GetTrendingTracksWithVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FullTracksResponse> {
|
|
835
852
|
const response = await this.getTrendingTracksWithVersionRaw(params, initOverrides);
|
|
836
853
|
return await response.value();
|
|
837
854
|
}
|
|
838
855
|
|
|
856
|
+
/**
|
|
857
|
+
* @hidden
|
|
858
|
+
* Gets the top trending (most popular) USDC purchase tracks on Audius
|
|
859
|
+
*/
|
|
860
|
+
async getTrendingUSDCPurchaseTracksRaw(params: GetTrendingUSDCPurchaseTracksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FullTracksResponse>> {
|
|
861
|
+
const queryParameters: any = {};
|
|
862
|
+
|
|
863
|
+
if (params.offset !== undefined) {
|
|
864
|
+
queryParameters['offset'] = params.offset;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
if (params.limit !== undefined) {
|
|
868
|
+
queryParameters['limit'] = params.limit;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
if (params.userId !== undefined) {
|
|
872
|
+
queryParameters['user_id'] = params.userId;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
if (params.genre !== undefined) {
|
|
876
|
+
queryParameters['genre'] = params.genre;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
if (params.time !== undefined) {
|
|
880
|
+
queryParameters['time'] = params.time;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
884
|
+
|
|
885
|
+
const response = await this.request({
|
|
886
|
+
path: `/tracks/usdc-purchase`,
|
|
887
|
+
method: 'GET',
|
|
888
|
+
headers: headerParameters,
|
|
889
|
+
query: queryParameters,
|
|
890
|
+
}, initOverrides);
|
|
891
|
+
|
|
892
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FullTracksResponseFromJSON(jsonValue));
|
|
893
|
+
}
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Gets the top trending (most popular) USDC purchase tracks on Audius
|
|
897
|
+
*/
|
|
898
|
+
async getTrendingUSDCPurchaseTracks(params: GetTrendingUSDCPurchaseTracksRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FullTracksResponse> {
|
|
899
|
+
const response = await this.getTrendingUSDCPurchaseTracksRaw(params, initOverrides);
|
|
900
|
+
return await response.value();
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* @hidden
|
|
905
|
+
* Gets the top trending (most popular) USDC purchase tracks on Audius using a given trending strategy version
|
|
906
|
+
*/
|
|
907
|
+
async getTrendingUSDCPurchaseTracksWithVersionRaw(params: GetTrendingUSDCPurchaseTracksWithVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FullTracksResponse>> {
|
|
908
|
+
if (params.version === null || params.version === undefined) {
|
|
909
|
+
throw new runtime.RequiredError('version','Required parameter params.version was null or undefined when calling getTrendingUSDCPurchaseTracksWithVersion.');
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
const queryParameters: any = {};
|
|
913
|
+
|
|
914
|
+
if (params.offset !== undefined) {
|
|
915
|
+
queryParameters['offset'] = params.offset;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
if (params.limit !== undefined) {
|
|
919
|
+
queryParameters['limit'] = params.limit;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
if (params.userId !== undefined) {
|
|
923
|
+
queryParameters['user_id'] = params.userId;
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
if (params.genre !== undefined) {
|
|
927
|
+
queryParameters['genre'] = params.genre;
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
if (params.time !== undefined) {
|
|
931
|
+
queryParameters['time'] = params.time;
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
935
|
+
|
|
936
|
+
const response = await this.request({
|
|
937
|
+
path: `/tracks/usdc-purchase/{version}`.replace(`{${"version"}}`, encodeURIComponent(String(params.version))),
|
|
938
|
+
method: 'GET',
|
|
939
|
+
headers: headerParameters,
|
|
940
|
+
query: queryParameters,
|
|
941
|
+
}, initOverrides);
|
|
942
|
+
|
|
943
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FullTracksResponseFromJSON(jsonValue));
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Gets the top trending (most popular) USDC purchase tracks on Audius using a given trending strategy version
|
|
948
|
+
*/
|
|
949
|
+
async getTrendingUSDCPurchaseTracksWithVersion(params: GetTrendingUSDCPurchaseTracksWithVersionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FullTracksResponse> {
|
|
950
|
+
const response = await this.getTrendingUSDCPurchaseTracksWithVersionRaw(params, initOverrides);
|
|
951
|
+
return await response.value();
|
|
952
|
+
}
|
|
953
|
+
|
|
839
954
|
/**
|
|
840
955
|
* @hidden
|
|
841
956
|
* Gets the tracks found on the \"Under the Radar\" smart playlist
|
|
@@ -1097,6 +1212,26 @@ export const GetTrendingTracksWithVersionTimeEnum = {
|
|
|
1097
1212
|
AllTime: 'allTime'
|
|
1098
1213
|
} as const;
|
|
1099
1214
|
export type GetTrendingTracksWithVersionTimeEnum = typeof GetTrendingTracksWithVersionTimeEnum[keyof typeof GetTrendingTracksWithVersionTimeEnum];
|
|
1215
|
+
/**
|
|
1216
|
+
* @export
|
|
1217
|
+
*/
|
|
1218
|
+
export const GetTrendingUSDCPurchaseTracksTimeEnum = {
|
|
1219
|
+
Week: 'week',
|
|
1220
|
+
Month: 'month',
|
|
1221
|
+
Year: 'year',
|
|
1222
|
+
AllTime: 'allTime'
|
|
1223
|
+
} as const;
|
|
1224
|
+
export type GetTrendingUSDCPurchaseTracksTimeEnum = typeof GetTrendingUSDCPurchaseTracksTimeEnum[keyof typeof GetTrendingUSDCPurchaseTracksTimeEnum];
|
|
1225
|
+
/**
|
|
1226
|
+
* @export
|
|
1227
|
+
*/
|
|
1228
|
+
export const GetTrendingUSDCPurchaseTracksWithVersionTimeEnum = {
|
|
1229
|
+
Week: 'week',
|
|
1230
|
+
Month: 'month',
|
|
1231
|
+
Year: 'year',
|
|
1232
|
+
AllTime: 'allTime'
|
|
1233
|
+
} as const;
|
|
1234
|
+
export type GetTrendingUSDCPurchaseTracksWithVersionTimeEnum = typeof GetTrendingUSDCPurchaseTracksWithVersionTimeEnum[keyof typeof GetTrendingUSDCPurchaseTracksWithVersionTimeEnum];
|
|
1100
1235
|
/**
|
|
1101
1236
|
* @export
|
|
1102
1237
|
*/
|