File

C:/GoDev/src/TCSTK-Angular/projects/tibco-tcstk/tc-liveapps-lib/src/lib/models/liveappsdata.ts

Index

Properties

Constructor

constructor(createdBy: string, creationTimestamp: string, createdByDetails: UserInfo, modifiedBy: string, modificationTimestamp: string, modifiedByDetails: UserInfo, lock: boolean, lockType: string, lockedBy: string, msLockExpiry: string, msSystemTime: string, markedForPurge: boolean, applicationId: string, applicationLabel: string, applicationVersion: number, typeId: string, stateColor: string, stateIcon: string, caseTypeColor: string, caseTypeIcon: string, useCaseTypeColor: boolean)
Parameters :
Name Type Optional
createdBy string No
creationTimestamp string No
createdByDetails UserInfo No
modifiedBy string No
modificationTimestamp string No
modifiedByDetails UserInfo No
lock boolean No
lockType string No
lockedBy string No
msLockExpiry string No
msSystemTime string No
markedForPurge boolean No
applicationId string No
applicationLabel string No
applicationVersion number No
typeId string No
stateColor string No
stateIcon string No
caseTypeColor string No
caseTypeIcon string No
useCaseTypeColor boolean No

Properties

Public applicationId
Type : string
Public applicationLabel
Type : string
Public applicationVersion
Type : number
Public caseTypeColor
Type : string
Public caseTypeIcon
Type : string
Public createdBy
Type : string
Public createdByDetails
Type : UserInfo
Public creationTimestamp
Type : string
Public lock
Type : boolean
Public lockedBy
Type : string
Public lockType
Type : string
Public markedForPurge
Type : boolean
Public modificationTimestamp
Type : string
Public modifiedBy
Type : string
Public modifiedByDetails
Type : UserInfo
Public msLockExpiry
Type : string
Public msSystemTime
Type : string
Public stateColor
Type : string
Public stateIcon
Type : string
Public typeId
Type : string
Public useCaseTypeColor
Type : boolean
import {AccessToken, AuthInfo, Deserializable, Claim, DeserializableClass} from '@tibco-tcstk/tc-core-lib';
import {LaProcessSelection} from '../models/tc-case-processes';

export class FormTab extends DeserializableClass implements Deserializable {
  type: string;
  title: string;
  workitemId: number;
  workitemName: string;
  action: LaProcessSelection;
}

export class NoteThread {
  constructor(public threadId: string,
              public showReplies: boolean,
              public showNewReply: boolean,
              public editMode: boolean,
              public newReply: any,
              public thread: Note[],
              public note: Note
  ) {
  }
}

export class CaseRoute {
  public caseRef: string;
  public appId: string;
  public typeId: string;
  public workitemId: number;
  public workitemName: string;
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}

export class NotificationCollection {
  constructor(
    public collectionName: string,
    public lifecycledWithType: string,
    public lifecycledWithId: string
  ) { }
}

export class Notification implements Deserializable {
  entityId: string;
  entityName: string;
  entityType: string;
  id: string;
  notifyCollection: NotificationCollection;
  notifyOnAllReplies: boolean;
  notifyOnUpdate: boolean;
  threadId: string;
  topicId: string;
  type: string;
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}

export class NotificationList implements Deserializable {
  notifications: Notification[];
  deserialize(input: any): this {
    this.notifications = [];
    Object.assign(this.notifications, input);
    return this;
  }
}

export class ThreadList implements Deserializable {
  threads: NoteThread[];
  deserialize(input: any): this {
    this.threads = [];
    Object.assign(this.threads, input);
    return this;
  }
}

export class Metadata {
  constructor(public createdBy:	string,
              public creationTimestamp:	string,
              public createdByDetails: UserInfo,
              public modifiedBy:	string,
              public modificationTimestamp:	string,
              public modifiedByDetails: UserInfo,
              public lock:	boolean,
              public lockType:	string,
              public lockedBy:	string,
              public msLockExpiry:	string,
              public msSystemTime:	string,
              public markedForPurge: boolean,
              public applicationId:	string,
              public applicationLabel: string,
              public applicationVersion: number,
              public typeId: string,
              public stateColor: string,
              public stateIcon: string,
              public caseTypeColor: string,
              public caseTypeIcon: string,
              public useCaseTypeColor: boolean
            ) {
  }
}

export class CaseTypeState implements Deserializable {
  id: string;
  label: string;
  value: string;
  isTerminal: boolean;
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}

export class CaseTypeStatesListList implements  Deserializable {
  casetypes: CaseTypeStatesList[];
  deserialize(input: any): this {
    this.casetypes = [];
    Object.assign(this.casetypes, input);
    return this;
  }
}

export class CaseTypeStatesList implements Deserializable {
  states: CaseTypeState[];
  deserialize(input: any): this {
    this.states = [];
    Object.assign(this.states, input);
    return this;
  }
}

export class CaseInfo implements Deserializable {
    deleted: boolean;
    caseReference: string;
    untaggedCasedata: string;
    untaggedCasedataObj: any;
    casedata: string;
    casedataObj: any;
    summary:  string;
    summaryObj: any;
    metadata: Metadata;
    deserialize(input: any): this {
      Object.assign(this, input);
      this.summaryObj = this.summary ? JSON.parse(this.summary) : undefined;
      this.casedataObj = this.casedata ? JSON.parse(this.casedata) : undefined;
      this.untaggedCasedataObj = this.untaggedCasedata ? JSON.parse(this.untaggedCasedata) : undefined;
      return this;
    }
}

export class CaseInfoList implements Deserializable {

  caseinfos: CaseInfo[];
  casecount: string;
  deserialize(input: any): this {
    this.caseinfos = [];
    Object.assign(this.caseinfos, input);
    this.caseinfos.forEach(function(caseinfo) {
      if (caseinfo.summary) { caseinfo.summaryObj = JSON.parse(caseinfo.summary); }
      if (caseinfo.casedata) { caseinfo.casedataObj = JSON.parse(caseinfo.casedata); }
      if (caseinfo.untaggedCasedata) { caseinfo.untaggedCasedataObj = JSON.parse(caseinfo.untaggedCasedata); }
    })
    return this;
  }
}

export class CaseAttribute {
  isIdentifier: boolean;
  isMandatory: boolean;
  isStructuredType: true;
  label: string;
  name: string;
  type: string;
  maximum: number;
  minimum: number;
}

export class JsonSchema implements Deserializable {
  $schema: string;
  definitions: any[];
  properties: any[];
  type: string;
  required: string[];
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}

export class Process {
  jsonSchema: JsonSchema;
  name: string;
  id: string;
  formTag: string;
  processType: string;
  unsupportedForm: boolean;
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}

export class ProcessId {
  caseIdentifier: string;
  caseReference: string;
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}


export class CaseType {
  actions: Process[];
  applicationId: string;
  applicationInternalName: string;
  applicationName: any;
  applicationVersion: number;
  attributes: CaseAttribute[];
  creators: Process[];
  id:  string;
  isCase: boolean
  label: any;
  name: string;
  states: CaseTypeState[];
  jsonSchema: JsonSchema;
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}

export class CaseTypesList implements Deserializable {
  casetypes: CaseType[];
  deserialize(input: any): this {
    this.casetypes = [];
    Object.assign(this.casetypes, input);
    return this;
  }
}

export class CaseAction implements Deserializable {
  activityName: string;
  activityId: string;
  applicationId: string;
  applicationName: string;
  availableInStates: string[];
  chatBotEnabled: boolean;
  id: string;
  label: string;
  name: string;
  noData: boolean;
  performerPaths: string[];
  roles: string[];
  version: number;
  process: Process;
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}

export class CaseActionsList implements Deserializable {
  actions: CaseAction[];
  deserialize(input: any): this {
    this.actions = [];
    Object.assign(this.actions, input);
    return this;
  }
}

export class CaseCreator implements Deserializable {
  activityName: string;
  activityId: string;
  applicationId: string;
  applicationName: string;
  chatBotEnabled: boolean;
  id: string;
  label: string;
  name: string;
  roles: string[];
  version: number;
  process: Process;
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}

export class CaseCreatorsList implements Deserializable {
  creators: CaseCreator[];
  deserialize(input: any): this {
    this.creators = [];
    Object.assign(this.creators, input);
    return this;
  }
}

export class CaseList implements Deserializable {
  uniqueKey: string;
  maxSize: number;
  caseRefs: string[];
  deserialize(input: any): this {
    this.uniqueKey = input.uniqueKey;
    this.maxSize = input.maxSize;
    this.caseRefs = [];
    Object.assign(this.caseRefs, input.caseRefs);
    return this;
  }
}

export class ApiResponseText implements Deserializable {
  message: string;
  deserialize(input: any) {
    Object.assign(this, input);
    return this;
  }
}

export class ApiResponseError implements Deserializable {
  errorMsg: string;
  errorCode: string;
  contextAttributes: string[];
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}

export class UserInfo implements Deserializable {
  externalId: string;
  firstName: string;
  lastName: string;
  username: string;
  email: string;
  type: string;
  id: string;
  deserialize(input: any) {
    Object.assign(this, input);
    return this;
  }
}

export class UsersInfo implements Deserializable{
  usersInfo: UserInfo[];
  deserialize(input: any): this {
    Object.assign(this, input);
    return this;
  }
}

export class NotesRole implements Deserializable {
  entityId: string;
  entityName: string;
  entityType: string;
  id: string;
  role: string;
  threadId: string;
  deserialize(input: any) {
    Object.assign(this, input);
    return this;
  }
}

export class Thread implements Deserializable {
  acceptedStatusCount: number;
  actionDate: number;
  actionId: string;
  actionType: string;
  answerNoteCount: number;
  answeredStatusCount: number;
  createdById: string;
  createdByName: string;
  createdDate: number;
  id: string;
  informationalNoteCount: number;
  isAbandoned: boolean;
  isLocked: boolean;
  isOrphaned: boolean;
  issueNoteCount: number;
  lifecycledWithId: boolean;
  lifecycledWithType: boolean;
  modifiedById: string;
  modifiedByName: string;
  modifiedDate: number;
  questionNoteCount: number;
  relatedItemCollection: string[];
  relatedItemId: string;
  relatedItemType: string;
  resolutionNoteCount: number;
  resolvedStatusCount: number;
  roles: NotesRole[];
  status: string;
  topLevelNoteId: string;
  topicId: string;
  totalCount: number;
  unacceptedStatusCount: number;
  unansweredStatusCount: number;
  unclassifiedStatusCount: number;
  unresolvedStatusCount: number;
  deserialize(input: any) {
    Object.assign(this, input);
    return this;
  }
}

export class Note implements Deserializable {
  attributes: string[];
  createdById: string;
  createdByName: string;
  createdDate: number;
  descendantModifiedDate: number;
  id: string;
  isDescendantNewOrModified: boolean;
  isHidden: boolean;
  isModified: boolean;
  isNew: boolean;
  level: number;
  modifiedByName: string;
  modifiedDate: number;
  notificationLabel: string;
  notificationUrl: string;
  parentId: string;
  relatedItemCollection: string[];
  relatedItemId: string;
  relatedItemType: string;
  replyAcceptedId: string;
  replyCount: number;
  replyDate: number;
  status: string;
  text: string;
  thread: Thread;
  threadId: string;
  title: string;
  topicId: string;
  type: string;
  editMode: boolean;
  deserialize(input: any) {
    Object.assign(this, input);
    return this;
  }
}

export class NotesList implements Deserializable {
  notes: Note[];
  deserialize(input: any): this {
    this.notes = [];
    Object.assign(this.notes, input);
    return this;
  }
}

export class IconMap {
  constructor(
    public isCaseType: boolean,
    public state: string,
    public fill: string,
    public icon: string
  ) {}
}

export class CardConfig implements Deserializable {
  id: string;
  useCaseTypeColor: boolean;
  stateMap: IconMap[];
  deserialize(input: any): this {
    // this.stateMap = [];
    Object.assign(this, input);
    return this;
  }
}

export class LoginContext implements Deserializable {
  authInfo: AuthInfo;
  accessToken: AccessToken;
  deserialize(input: any) {
    Object.assign(this, input);
    return this;
  }
}

export class CaseSearchResults implements Deserializable {
  caserefs: string[];
  caseinfos: CaseInfo[];
  searchString: string;
  deserialize(input: any) {
    Object.assign(this, input);
    return this;
  }
}

result-matching ""

    No results matching ""