Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate sdk after ursm code removal #8275

Merged
merged 3 commits into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ models/TrendingIdsResponse.ts
models/TrendingTimesIds.ts
models/UserFull.ts
models/UserManager.ts
models/UserReplicaSet.ts
models/UserSubscribers.ts
models/UsersByContentNode.ts
models/VersionMetadata.ts
models/index.ts
runtime.ts
43 changes: 0 additions & 43 deletions packages/libs/src/sdk/api/generated/full/apis/UsersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import type {
TrackLibraryResponseFull,
TransactionHistoryCountResponse,
TransactionHistoryResponse,
UsersByContentNode,
} from '../models';
import {
CollectionLibraryResponseFullFromJSON,
Expand Down Expand Up @@ -85,8 +84,6 @@ import {
TransactionHistoryCountResponseToJSON,
TransactionHistoryResponseFromJSON,
TransactionHistoryResponseToJSON,
UsersByContentNodeFromJSON,
UsersByContentNodeToJSON,
} from '../models';

export interface BulkGetSubscribersRequest {
Expand Down Expand Up @@ -360,11 +357,6 @@ export interface GetUserLibraryTracksRequest {
encodedDataSignature?: string;
}

export interface GetUserReplicaSetRequest {
id: string;
userId?: string;
}

export interface GetUsersTrackHistoryRequest {
id: string;
offset?: number;
Expand Down Expand Up @@ -1975,41 +1967,6 @@ export class UsersApi extends runtime.BaseAPI {
return await response.value();
}

/**
* @hidden
* Gets the user\'s replica set
*/
async getUserReplicaSetRaw(params: GetUserReplicaSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersByContentNode>> {
if (params.id === null || params.id === undefined) {
throw new runtime.RequiredError('id','Required parameter params.id was null or undefined when calling getUserReplicaSet.');
}

const queryParameters: any = {};

if (params.userId !== undefined) {
queryParameters['user_id'] = params.userId;
}

const headerParameters: runtime.HTTPHeaders = {};

const response = await this.request({
path: `/users/{id}/replica_set`.replace(`{${"id"}}`, encodeURIComponent(String(params.id))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);

return new runtime.JSONApiResponse(response, (jsonValue) => UsersByContentNodeFromJSON(jsonValue));
}

/**
* Gets the user\'s replica set
*/
async getUserReplicaSet(params: GetUserReplicaSetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsersByContentNode> {
const response = await this.getUserReplicaSetRaw(params, initOverrides);
return await response.value();
}

/**
* @hidden
* Get the tracks the user recently listened to.
Expand Down
2 changes: 0 additions & 2 deletions packages/libs/src/sdk/api/generated/full/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,5 @@ export * from './TrendingIdsResponse';
export * from './TrendingTimesIds';
export * from './UserFull';
export * from './UserManager';
export * from './UserReplicaSet';
export * from './UserSubscribers';
export * from './UsersByContentNode';
export * from './VersionMetadata';