// Copyright Abridged, Inc. 2021,2024. All Rights Reserved. // Node module: @collabland/sdk // This file is licensed under the MIT License. // License text available at https://opensource.org/license/mit/ import {model, property} from '@loopback/repository'; import {TokenValue} from './token-value.model.js'; import {TokenBid} from './token-bid.model.js'; /** * The model class is generated from OpenAPI schema - TokenListing * TokenListing */ @model({name: 'TokenListing'}) export class TokenListing { constructor(data?: Partial) { if (data != null && typeof data === 'object') { Object.assign(this, data); } } /** * */ @property({ jsonSchema: { type: 'string', }, }) nftContract?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) tokenId?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) tokenType?: string; /** * */ @property({ jsonSchema: { type: 'string', }, }) seller?: string; /** * */ @property.array(TokenValue, { jsonSchema: { type: 'array', items: { $ref: '#/components/schemas/TokenValue', }, }, }) conditions?: TokenValue[]; /** * */ @property.array(TokenBid, { jsonSchema: { type: 'array', items: { $ref: '#/components/schemas/TokenBid', }, }, }) bids?: TokenBid[]; /** * */ @property({ jsonSchema: { type: 'string', }, }) createdAt?: string; } export interface TokenListingRelations { // describe navigational properties here } export type TokenListingWithRelations = TokenListing & TokenListingRelations;