Skip to content
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
6 changes: 3 additions & 3 deletions libs/src/sdk/api/generated/default/models/Activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export interface Activity {
* @type {object}
* @memberof Activity
*/
item_type?: object;
itemType?: object;
/**
*
* @type {object}
Expand Down Expand Up @@ -60,7 +60,7 @@ export function ActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean):
return {

'timestamp': !exists(json, 'timestamp') ? undefined : json['timestamp'],
'item_type': !exists(json, 'item_type') ? undefined : json['item_type'],
'itemType': !exists(json, 'item_type') ? undefined : json['item_type'],
'item': !exists(json, 'item') ? undefined : json['item'],
};
}
Expand All @@ -75,7 +75,7 @@ export function ActivityToJSON(value?: Activity | null): any {
return {

'timestamp': value.timestamp,
'item_type': value.item_type,
'item_type': value.itemType,
'item': value.item,
};
}
Expand Down
16 changes: 8 additions & 8 deletions libs/src/sdk/api/generated/default/models/ConnectedWallets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ export interface ConnectedWallets {
* @type {Array<string>}
* @memberof ConnectedWallets
*/
erc_wallets: Array<string>;
ercWallets: Array<string>;
/**
*
* @type {Array<string>}
* @memberof ConnectedWallets
*/
spl_wallets: Array<string>;
splWallets: Array<string>;
}

/**
* Check if a given object implements the ConnectedWallets interface.
*/
export function instanceOfConnectedWallets(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "erc_wallets" in value;
isInstance = isInstance && "spl_wallets" in value;
isInstance = isInstance && "ercWallets" in value;
isInstance = isInstance && "splWallets" in value;

return isInstance;
}
Expand All @@ -55,8 +55,8 @@ export function ConnectedWalletsFromJSONTyped(json: any, ignoreDiscriminator: bo
}
return {

'erc_wallets': json['erc_wallets'],
'spl_wallets': json['spl_wallets'],
'ercWallets': json['erc_wallets'],
'splWallets': json['spl_wallets'],
};
}

Expand All @@ -69,8 +69,8 @@ export function ConnectedWalletsToJSON(value?: ConnectedWallets | null): any {
}
return {

'erc_wallets': value.erc_wallets,
'spl_wallets': value.spl_wallets,
'erc_wallets': value.ercWallets,
'spl_wallets': value.splWallets,
};
}

6 changes: 3 additions & 3 deletions libs/src/sdk/api/generated/default/models/EncodedUserId.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export interface EncodedUserId {
* @type {string}
* @memberof EncodedUserId
*/
user_id?: string;
userId?: string;
}

/**
Expand All @@ -47,7 +47,7 @@ export function EncodedUserIdFromJSONTyped(json: any, ignoreDiscriminator: boole
}
return {

'user_id': !exists(json, 'user_id') ? undefined : json['user_id'],
'userId': !exists(json, 'user_id') ? undefined : json['user_id'],
};
}

Expand All @@ -60,7 +60,7 @@ export function EncodedUserIdToJSON(value?: EncodedUserId | null): any {
}
return {

'user_id': value.user_id,
'user_id': value.userId,
};
}

32 changes: 16 additions & 16 deletions libs/src/sdk/api/generated/default/models/Favorite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,36 +25,36 @@ export interface Favorite {
* @type {string}
* @memberof Favorite
*/
favorite_item_id: string;
favoriteItemId: string;
/**
*
* @type {string}
* @memberof Favorite
*/
favorite_type: string;
favoriteType: string;
/**
*
* @type {string}
* @memberof Favorite
*/
user_id: string;
userId: string;
/**
*
* @type {string}
* @memberof Favorite
*/
created_at: string;
createdAt: string;
}

/**
* Check if a given object implements the Favorite interface.
*/
export function instanceOfFavorite(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "favorite_item_id" in value;
isInstance = isInstance && "favorite_type" in value;
isInstance = isInstance && "user_id" in value;
isInstance = isInstance && "created_at" in value;
isInstance = isInstance && "favoriteItemId" in value;
isInstance = isInstance && "favoriteType" in value;
isInstance = isInstance && "userId" in value;
isInstance = isInstance && "createdAt" in value;

return isInstance;
}
Expand All @@ -69,10 +69,10 @@ export function FavoriteFromJSONTyped(json: any, ignoreDiscriminator: boolean):
}
return {

'favorite_item_id': json['favorite_item_id'],
'favorite_type': json['favorite_type'],
'user_id': json['user_id'],
'created_at': json['created_at'],
'favoriteItemId': json['favorite_item_id'],
'favoriteType': json['favorite_type'],
'userId': json['user_id'],
'createdAt': json['created_at'],
};
}

Expand All @@ -85,10 +85,10 @@ export function FavoriteToJSON(value?: Favorite | null): any {
}
return {

'favorite_item_id': value.favorite_item_id,
'favorite_type': value.favorite_type,
'user_id': value.user_id,
'created_at': value.created_at,
'favorite_item_id': value.favoriteItemId,
'favorite_type': value.favoriteType,
'user_id': value.userId,
'created_at': value.createdAt,
};
}

32 changes: 16 additions & 16 deletions libs/src/sdk/api/generated/default/models/HistoryResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ export interface HistoryResponse {
* @type {number}
* @memberof HistoryResponse
*/
latest_chain_block: number;
latestChainBlock: number;
/**
*
* @type {number}
* @memberof HistoryResponse
*/
latest_indexed_block: number;
latestIndexedBlock: number;
/**
*
* @type {number}
* @memberof HistoryResponse
*/
latest_chain_slot_plays: number;
latestChainSlotPlays: number;
/**
*
* @type {number}
* @memberof HistoryResponse
*/
latest_indexed_slot_plays: number;
latestIndexedSlotPlays: number;
/**
*
* @type {string}
Expand Down Expand Up @@ -88,10 +88,10 @@ export interface HistoryResponse {
*/
export function instanceOfHistoryResponse(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "latest_chain_block" in value;
isInstance = isInstance && "latest_indexed_block" in value;
isInstance = isInstance && "latest_chain_slot_plays" in value;
isInstance = isInstance && "latest_indexed_slot_plays" in value;
isInstance = isInstance && "latestChainBlock" in value;
isInstance = isInstance && "latestIndexedBlock" in value;
isInstance = isInstance && "latestChainSlotPlays" in value;
isInstance = isInstance && "latestIndexedSlotPlays" in value;
isInstance = isInstance && "signature" in value;
isInstance = isInstance && "timestamp" in value;
isInstance = isInstance && "version" in value;
Expand All @@ -109,10 +109,10 @@ export function HistoryResponseFromJSONTyped(json: any, ignoreDiscriminator: boo
}
return {

'latest_chain_block': json['latest_chain_block'],
'latest_indexed_block': json['latest_indexed_block'],
'latest_chain_slot_plays': json['latest_chain_slot_plays'],
'latest_indexed_slot_plays': json['latest_indexed_slot_plays'],
'latestChainBlock': json['latest_chain_block'],
'latestIndexedBlock': json['latest_indexed_block'],
'latestChainSlotPlays': json['latest_chain_slot_plays'],
'latestIndexedSlotPlays': json['latest_indexed_slot_plays'],
'signature': json['signature'],
'timestamp': json['timestamp'],
'version': VersionMetadataFromJSON(json['version']),
Expand All @@ -129,10 +129,10 @@ export function HistoryResponseToJSON(value?: HistoryResponse | null): any {
}
return {

'latest_chain_block': value.latest_chain_block,
'latest_indexed_block': value.latest_indexed_block,
'latest_chain_slot_plays': value.latest_chain_slot_plays,
'latest_indexed_slot_plays': value.latest_indexed_slot_plays,
'latest_chain_block': value.latestChainBlock,
'latest_indexed_block': value.latestIndexedBlock,
'latest_chain_slot_plays': value.latestChainSlotPlays,
'latest_indexed_slot_plays': value.latestIndexedSlotPlays,
'signature': value.signature,
'timestamp': value.timestamp,
'version': VersionMetadataToJSON(value.version),
Expand Down
40 changes: 20 additions & 20 deletions libs/src/sdk/api/generated/default/models/Playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,31 +62,31 @@ export interface Playlist {
* @type {boolean}
* @memberof Playlist
*/
is_album: boolean;
isAlbum: boolean;
/**
*
* @type {string}
* @memberof Playlist
*/
playlist_name: string;
playlistName: string;
/**
*
* @type {number}
* @memberof Playlist
*/
repost_count: number;
repostCount: number;
/**
*
* @type {number}
* @memberof Playlist
*/
favorite_count: number;
favoriteCount: number;
/**
*
* @type {number}
* @memberof Playlist
*/
total_play_count: number;
totalPlayCount: number;
/**
*
* @type {User}
Expand All @@ -101,11 +101,11 @@ export interface Playlist {
export function instanceOfPlaylist(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "is_album" in value;
isInstance = isInstance && "playlist_name" in value;
isInstance = isInstance && "repost_count" in value;
isInstance = isInstance && "favorite_count" in value;
isInstance = isInstance && "total_play_count" in value;
isInstance = isInstance && "isAlbum" in value;
isInstance = isInstance && "playlistName" in value;
isInstance = isInstance && "repostCount" in value;
isInstance = isInstance && "favoriteCount" in value;
isInstance = isInstance && "totalPlayCount" in value;
isInstance = isInstance && "user" in value;

return isInstance;
Expand All @@ -125,11 +125,11 @@ export function PlaylistFromJSONTyped(json: any, ignoreDiscriminator: boolean):
'description': !exists(json, 'description') ? undefined : json['description'],
'permalink': !exists(json, 'permalink') ? undefined : json['permalink'],
'id': json['id'],
'is_album': json['is_album'],
'playlist_name': json['playlist_name'],
'repost_count': json['repost_count'],
'favorite_count': json['favorite_count'],
'total_play_count': json['total_play_count'],
'isAlbum': json['is_album'],
'playlistName': json['playlist_name'],
'repostCount': json['repost_count'],
'favoriteCount': json['favorite_count'],
'totalPlayCount': json['total_play_count'],
'user': UserFromJSON(json['user']),
};
}
Expand All @@ -147,11 +147,11 @@ export function PlaylistToJSON(value?: Playlist | null): any {
'description': value.description,
'permalink': value.permalink,
'id': value.id,
'is_album': value.is_album,
'playlist_name': value.playlist_name,
'repost_count': value.repost_count,
'favorite_count': value.favorite_count,
'total_play_count': value.total_play_count,
'is_album': value.isAlbum,
'playlist_name': value.playlistName,
'repost_count': value.repostCount,
'favorite_count': value.favoriteCount,
'total_play_count': value.totalPlayCount,
'user': UserToJSON(value.user),
};
}
Expand Down
8 changes: 4 additions & 4 deletions libs/src/sdk/api/generated/default/models/Tip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export interface Tip {
* @type {string}
* @memberof Tip
*/
created_at: string;
createdAt: string;
}

/**
Expand All @@ -59,7 +59,7 @@ export interface Tip {
export function instanceOfTip(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "amount" in value;
isInstance = isInstance && "created_at" in value;
isInstance = isInstance && "createdAt" in value;

return isInstance;
}
Expand All @@ -77,7 +77,7 @@ export function TipFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tip {
'amount': json['amount'],
'sender': !exists(json, 'sender') ? undefined : UserFromJSON(json['sender']),
'receiver': !exists(json, 'receiver') ? undefined : UserFromJSON(json['receiver']),
'created_at': json['created_at'],
'createdAt': json['created_at'],
};
}

Expand All @@ -93,7 +93,7 @@ export function TipToJSON(value?: Tip | null): any {
'amount': value.amount,
'sender': UserToJSON(value.sender),
'receiver': UserToJSON(value.receiver),
'created_at': value.created_at,
'created_at': value.createdAt,
};
}

Loading