5180 fichiers 38.5 Mo 0 téléchargements 343 vues mis à jour il y a 7 heures ui
nitro-v36-with-renderer-v36 / src / components / catalog / admin / studio / CatalogStudioTypes.ts
CatalogStudioTypes.ts 3.4 Ko Télécharger le fichier
export interface CatalogStudioActor {
    id: number;
    username: string;
}

export interface CatalogStudioPublishedVersion {
    id: number;
    label: string;
    publishedAt: string;
}

export type CatalogStudioCatalogType = 'NORMAL' | 'BUILDER';

export interface CatalogStudioPageSnapshot {
    catalogType: CatalogStudioCatalogType;
    pageId: number;
    parentId: number;
    captionSave: string;
    caption: string;
    pageLayout: string;
    iconColor: number;
    iconImage: number;
    minRank: number;
    orderNum: number;
    visible: boolean;
    enabled: boolean;
    clubOnly: boolean;
    catalogMode: string;
    vipOnly: boolean;
    pageHeadline: string;
    pageTeaser: string;
    pageSpecial: string;
    pageText1: string;
    pageText2: string;
    pageTextDetails: string;
    pageTextTeaser: string;
    roomId: number;
    includes: string;
}

export interface CatalogStudioOfferSnapshot {
    catalogType: CatalogStudioCatalogType;
    offerId: number;
    itemIds: string;
    pageId: number;
    catalogName: string;
    costCredits: number;
    costPoints: number;
    pointsType: number;
    amount: number;
    limitedStack: number;
    orderNumber: number;
    offerIdClient: number;
    songId: number;
    extradata: string;
    haveOffer: boolean;
    clubOnly: boolean;
}

export interface CatalogStudioSession {
    activeVersionId: number;
    draftVersionId: number;
    revision: number;
    activeUpdatedAt: string;
    draftCreatedAt: string;
    pendingCount: number;
    actors: CatalogStudioActor[];
    validationCurrent: boolean;
    validationIssueCount: number;
    publishedVersions: CatalogStudioPublishedVersion[];
    pages: CatalogStudioPageSnapshot[];
    offers: CatalogStudioOfferSnapshot[];
}

export interface CatalogStudioHistoryEntry {
    entityType: string;
    catalogType?: CatalogStudioCatalogType;
    entityId: number;
    operation: string;
}

export interface CatalogStudioHistoryGroup {
    id: number;
    revision: number;
    actorId: number;
    actorName: string;
    summary: string;
    source: string;
    createdAt: string;
    entries: CatalogStudioHistoryEntry[];
}

export interface CatalogStudioValidationIssue {
    code: string;
    entityType: string;
    entityId: number;
    field: string;
    message: string;
}

export interface CatalogStudioValidationState {
    operationId: string;
    success: boolean;
    code: string;
    message: string;
    revision: number;
    current: boolean;
    issues: CatalogStudioValidationIssue[];
    /** When this report reached the client. A report says nothing without the moment it was taken. */
    receivedAt: number;
}

export interface CatalogStudioDocumentResult {
    operationId: string;
    success: boolean;
    code: string;
    message: string;
    revision: number;
    format: string;
    document: string;
    fingerprint: string;
    changedEntities: number;
    changes: Array<{
        entityType: string;
        catalogType: string;
        entityId: number;
        operation: string;
        fields: string[];
    }>;
}

export interface CatalogStudioMutationResult {
    operationId: string;
    action: 'createPage' | 'savePage' | 'createOffer' | 'saveOffer';
    revision: number;
    entityType: 'PAGE' | 'OFFER';
    catalogType: CatalogStudioCatalogType;
    entity: CatalogStudioPageSnapshot | CatalogStudioOfferSnapshot;
    historyGroup: CatalogStudioHistoryGroup;
}
15Sujets
1Dépôts
20Membres
3En ligne
Profile
Inscrit
Dernière visite
Messages
0
Votes positifs
0
Votes négatifs
0

Nous utilisons des cookies pour assurer le bon fonctionnement du site et améliorer votre expérience. en savoir plus

Autoriser