Options
All
  • Public
  • Public/Protected
  • All
Menu

Module src/object/addPropertiesToObjectRecursivelyBasedOnPathMap/tests/mockData

Index

Variables

Object literals

Variables

Const objectPathMap

objectPathMap: Map<string, string> = new Map([['invoice', 'Invoice'],['contact_id', 'ContactID'],['contact', 'Contact'],['invoice_lines', 'InvoiceLine'],['record_tags', 'RecordTag'],['product', 'Product'],])

Object literals

Const baseInvoiceMock

baseInvoiceMock: object

contact_id

contact_id: number = 1

id

id: number = 1

invoice_lines

invoice_lines: ({ id: number; invoice_lines: ({ id: number; invoice_lines: { id: number; product_id: number; product: object }[]; product_id: number; product: object } | { id: number; product_id: number; product: object })[]; product_id: number; product: object } | { product_id: null } | { product: null; product_id: null } | { id: number; product_id: number; product: object })[] = [{id: 1,product_id: 1,product: {id: 1,name: '1080 Poison',price: 30,},invoice_lines: [{id: 11,product_id: 123,product: {id: 123,name: '1080 Poison service fee',price: 10,},invoice_lines: [{id: 111,product_id: 34,product: {id: 34,name: 'Just another nesting',price: 0,},},],},{id: 12,product_id: 1,product: {id: 1,name: '1080 Poison',price: 30,},},],},{product_id: null as null,},{product_id: null as null,product: null as null,},{id: 3,product_id: 2,product: {id: 2,name: 'Collar',price: 12,},},]

record_tags

record_tags: { id: number; name: string }[] = [{id: 1,name: 'Tag 1',},{id: 2,name: 'Tag 2',},]

contact

contact: object

first_name

first_name: string = "John"

id

id: number = 1

last_name

last_name: string = "Doe"

Const targetInvoiceMock

targetInvoiceMock: object

_class

_class: string = "Invoice"

contact_id

contact_id: number = 1

id

id: number = 1

invoice_lines

invoice_lines: ({ _class: string; id: number; invoice_lines: ({ _class: string; id: number; invoice_lines: { _class: string; id: number; product_id: number; product: object }[]; product_id: number; product: object } | { _class: string; id: number; product_id: number; product: object })[]; product_id: number; product: object } | { _class: string; product_id: null } | { _class: string; product: null; product_id: null } | { _class: string; id: number; product_id: number; product: object })[] = [{_class: 'InvoiceLine',id: 1,product_id: 1,product: {_class: 'Product',id: 1,name: '1080 Poison',price: 30,},invoice_lines: [{_class: 'InvoiceLine',id: 11,product_id: 123,product: {_class: 'Product',id: 123,name: '1080 Poison service fee',price: 10,},invoice_lines: [{_class: 'InvoiceLine',id: 111,product_id: 34,product: {_class: 'Product',id: 34,name: 'Just another nesting',price: 0,},},],},{_class: 'InvoiceLine',id: 12,product_id: 1,product: {_class: 'Product',id: 1,name: '1080 Poison',price: 30,},},],},{_class: 'InvoiceLine',product_id: null as null,},{_class: 'InvoiceLine',product_id: null as null,product: null as null,},{_class: 'InvoiceLine',id: 3,product_id: 2,product: {_class: 'Product',id: 2,name: 'Collar',price: 12,},},]

record_tags

record_tags: { _class: string; id: number; name: string }[] = [{_class: 'RecordTag',id: 1,name: 'Tag 1',},{_class: 'RecordTag',id: 2,name: 'Tag 2',},]

contact

contact: object

_class

_class: string = "Contact"

first_name

first_name: string = "John"

id

id: number = 1

last_name

last_name: string = "Doe"

Generated using TypeDoc