Using HP ALM REST API with PHP and cURL with XML format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function MapElementMapperPipe<T>(source: Observable<T>): Observable<MapElement[]> { | |
return new Observable<MapElement[]>(subscriber => { | |
return source.subscribe({ | |
next(value) { | |
const mapElements: MapElement[] = [] | |
Object.keys(value as Object).forEach((type) => { | |
mapElements.push({ | |
name: type, | |
items: (value as any)[type], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type PdfMap = { [key: string]: string | boolean | PdfMap[] } | |
export enum JSONContentType { | |
Heading = "heading", | |
Paragraph = "paragraph", | |
Text = "text", | |
BulletList = "bulletList", | |
OrderedList = "orderedList", | |
ListItem = "listItem", | |
HardBreak = "hardBreak", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { jsPDF } from "jspdf"; | |
export interface Margins { | |
left: number | |
right: number | |
top: number | |
bottom: number | |
} | |
export interface TableColumns { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
AfterViewInit, | |
Component, ElementRef, | |
Input, | |
OnInit, Renderer2, | |
ViewChild, | |
ViewContainterRef | |
} from "@angular/core"; | |
@Component({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
Component, | |
ComponentFactoryResolver, | |
ComponentRef, | |
Directive, ElementRef, | |
Input, OnInit, Renderer2, | |
TemplateRef, | |
ViewContainerRef | |
} from "@angular/core"; |