370 lines
9.1 KiB
JavaScript
370 lines
9.1 KiB
JavaScript
const FIRST_EMPLOYEE = {
|
|
"@odata.context": "$metadata#Employees/$entity",
|
|
ID: 1,
|
|
lastName: "Adams",
|
|
firstName: "Andrew",
|
|
city: "Edmonton",
|
|
state: "AB",
|
|
address: "11120 Jasper Ave NW",
|
|
country: "Canada",
|
|
postalCode: "T5K 2N1",
|
|
phone: "+1 (780) 428-9482",
|
|
fax: "+1 (780) 428-3457",
|
|
email: "[email protected]",
|
|
title: "General Manager",
|
|
birthDate: "1962-02-17T21:00:00Z",
|
|
hireDate: "2002-08-13T21:00:00Z",
|
|
reportsTo_ID: null,
|
|
};
|
|
|
|
const SECOND_EMPLOYEE_WITH_EXPANDED_FIELDS = {
|
|
"@odata.context": "$metadata#Employees(subordinates(),reportsTo())/$entity",
|
|
ID: 2,
|
|
lastName: "Edwards",
|
|
firstName: "Nancy",
|
|
city: "Calgary",
|
|
state: "AB",
|
|
address: "825 8 Ave SW",
|
|
country: "Canada",
|
|
postalCode: "T2P 2T3",
|
|
phone: "+1 (403) 262-3443",
|
|
fax: "+1 (403) 262-3322",
|
|
email: "[email protected]",
|
|
title: "Sales Manager",
|
|
birthDate: "1958-12-07T21:00:00Z",
|
|
hireDate: "2002-04-30T21:00:00Z",
|
|
reportsTo_ID: 1,
|
|
reportsTo: {
|
|
ID: 1,
|
|
lastName: "Adams",
|
|
firstName: "Andrew",
|
|
city: "Edmonton",
|
|
state: "AB",
|
|
address: "11120 Jasper Ave NW",
|
|
country: "Canada",
|
|
postalCode: "T5K 2N1",
|
|
phone: "+1 (780) 428-9482",
|
|
fax: "+1 (780) 428-3457",
|
|
email: "[email protected]",
|
|
title: "General Manager",
|
|
birthDate: "1962-02-17T21:00:00Z",
|
|
hireDate: "2002-08-13T21:00:00Z",
|
|
reportsTo_ID: null,
|
|
},
|
|
subordinates: [
|
|
{
|
|
ID: 3,
|
|
lastName: "Peacock",
|
|
firstName: "Jane",
|
|
city: "Calgary",
|
|
state: "AB",
|
|
address: "1111 6 Ave SW",
|
|
country: "Canada",
|
|
postalCode: "T2P 5M5",
|
|
phone: "+1 (403) 262-3443",
|
|
fax: "+1 (403) 262-6712",
|
|
email: "[email protected]",
|
|
title: "Sales Support Agent",
|
|
birthDate: "1973-08-28T21:00:00Z",
|
|
hireDate: "2002-03-31T21:00:00Z",
|
|
reportsTo_ID: 2,
|
|
},
|
|
{
|
|
ID: 4,
|
|
lastName: "Park",
|
|
firstName: "Margaret",
|
|
city: "Calgary",
|
|
state: "AB",
|
|
address: "683 10 Street SW",
|
|
country: "Canada",
|
|
postalCode: "T2P 5G3",
|
|
phone: "+1 (403) 263-4423",
|
|
fax: "+1 (403) 263-4289",
|
|
email: "[email protected]",
|
|
title: "Sales Support Agent",
|
|
birthDate: "1947-09-18T21:00:00Z",
|
|
hireDate: "2003-05-02T21:00:00Z",
|
|
reportsTo_ID: 2,
|
|
},
|
|
{
|
|
ID: 5,
|
|
lastName: "Johnson",
|
|
firstName: "Steve",
|
|
city: "Calgary",
|
|
state: "AB",
|
|
address: "7727B 41 Ave",
|
|
country: "Canada",
|
|
postalCode: "T3B 1Y7",
|
|
phone: "1 (780) 836-9987",
|
|
fax: "1 (780) 836-9543",
|
|
email: "[email protected]",
|
|
title: "Sales Support Agent",
|
|
birthDate: "1965-03-02T21:00:00Z",
|
|
hireDate: "2003-10-16T21:00:00Z",
|
|
reportsTo_ID: 2,
|
|
},
|
|
],
|
|
};
|
|
|
|
const ALL_ALBUMS_WITH_TRACKS_BY_ARTIST = {
|
|
"@odata.context": "$metadata#Albums(tracks())",
|
|
value: [
|
|
{
|
|
ID: 1,
|
|
title: "For Those About To Rock We Salute You",
|
|
artist_ID: 1,
|
|
tracks: [
|
|
{
|
|
ID: 1,
|
|
name: "For Those About To Rock (We Salute You)",
|
|
composer: "Angus Young, Malcolm Young, Brian Johnson",
|
|
milliseconds: 343719,
|
|
bytes: 11170334,
|
|
unitPrice: 0.99,
|
|
album_ID: 1,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 6,
|
|
name: "Put The Finger On You",
|
|
composer: "Angus Young, Malcolm Young, Brian Johnson",
|
|
milliseconds: 205662,
|
|
bytes: 6713451,
|
|
unitPrice: 0.99,
|
|
album_ID: 1,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 7,
|
|
name: "Let's Get It Up",
|
|
composer: "Angus Young, Malcolm Young, Brian Johnson",
|
|
milliseconds: 233926,
|
|
bytes: 7636561,
|
|
unitPrice: 0.99,
|
|
album_ID: 1,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 8,
|
|
name: "Inject The Venom",
|
|
composer: "Angus Young, Malcolm Young, Brian Johnson",
|
|
milliseconds: 210834,
|
|
bytes: 6852860,
|
|
unitPrice: 0.99,
|
|
album_ID: 1,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 9,
|
|
name: "Snowballed",
|
|
composer: "Angus Young, Malcolm Young, Brian Johnson",
|
|
milliseconds: 203102,
|
|
bytes: 6599424,
|
|
unitPrice: 0.99,
|
|
album_ID: 1,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 10,
|
|
name: "Evil Walks",
|
|
composer: "Angus Young, Malcolm Young, Brian Johnson",
|
|
milliseconds: 263497,
|
|
bytes: 8611245,
|
|
unitPrice: 0.99,
|
|
album_ID: 1,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 11,
|
|
name: "C.O.D.",
|
|
composer: "Angus Young, Malcolm Young, Brian Johnson",
|
|
milliseconds: 199836,
|
|
bytes: 6566314,
|
|
unitPrice: 0.99,
|
|
album_ID: 1,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 12,
|
|
name: "Breaking The Rules",
|
|
composer: "Angus Young, Malcolm Young, Brian Johnson",
|
|
milliseconds: 263288,
|
|
bytes: 8596840,
|
|
unitPrice: 0.99,
|
|
album_ID: 1,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 13,
|
|
name: "Night Of The Long Knives",
|
|
composer: "Angus Young, Malcolm Young, Brian Johnson",
|
|
milliseconds: 205688,
|
|
bytes: 6706347,
|
|
unitPrice: 0.99,
|
|
album_ID: 1,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 14,
|
|
name: "Spellbound",
|
|
composer: "Angus Young, Malcolm Young, Brian Johnson",
|
|
milliseconds: 270863,
|
|
bytes: 8817038,
|
|
unitPrice: 0.99,
|
|
album_ID: 1,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
],
|
|
},
|
|
{
|
|
ID: 4,
|
|
title: "Let There Be Rock",
|
|
artist_ID: 1,
|
|
tracks: [
|
|
{
|
|
ID: 15,
|
|
name: "Go Down",
|
|
composer: "AC/DC",
|
|
milliseconds: 331180,
|
|
bytes: 10847611,
|
|
unitPrice: 0.99,
|
|
album_ID: 4,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 16,
|
|
name: "Dog Eat Dog",
|
|
composer: "AC/DC",
|
|
milliseconds: 215196,
|
|
bytes: 7032162,
|
|
unitPrice: 0.99,
|
|
album_ID: 4,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 17,
|
|
name: "Let There Be Rock",
|
|
composer: "AC/DC",
|
|
milliseconds: 366654,
|
|
bytes: 12021261,
|
|
unitPrice: 0.99,
|
|
album_ID: 4,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 18,
|
|
name: "Bad Boy Boogie",
|
|
composer: "AC/DC",
|
|
milliseconds: 267728,
|
|
bytes: 8776140,
|
|
unitPrice: 0.99,
|
|
album_ID: 4,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 19,
|
|
name: "Problem Child",
|
|
composer: "AC/DC",
|
|
milliseconds: 325041,
|
|
bytes: 10617116,
|
|
unitPrice: 0.99,
|
|
album_ID: 4,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 20,
|
|
name: "Overdose",
|
|
composer: "AC/DC",
|
|
milliseconds: 369319,
|
|
bytes: 12066294,
|
|
unitPrice: 0.99,
|
|
album_ID: 4,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 21,
|
|
name: "Hell Ain't A Bad Place To Be",
|
|
composer: "AC/DC",
|
|
milliseconds: 254380,
|
|
bytes: 8331286,
|
|
unitPrice: 0.99,
|
|
album_ID: 4,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
{
|
|
ID: 22,
|
|
name: "Whole Lotta Rosie",
|
|
composer: "AC/DC",
|
|
milliseconds: 323761,
|
|
bytes: 10547154,
|
|
unitPrice: 0.99,
|
|
album_ID: 4,
|
|
mediaType_ID: 1,
|
|
genre_ID: 1,
|
|
},
|
|
],
|
|
},
|
|
],
|
|
};
|
|
|
|
const CUSTOMER_WITH_THEIR_SUPPORT_REP = {
|
|
"@odata.context": "$metadata#Customers(supportRep())/$entity",
|
|
ID: 1,
|
|
lastName: "Gonçalves",
|
|
firstName: "Luís",
|
|
city: "São José dos Campos",
|
|
state: "SP",
|
|
address: "Av. Brigadeiro Faria Lima, 2170",
|
|
country: "Brazil",
|
|
postalCode: "12227-000",
|
|
phone: "+55 (12) 3923-5555",
|
|
fax: "+55 (12) 3923-5566",
|
|
email: "[email protected]",
|
|
company: "Embraer - Empresa Brasileira de Aeronáutica S.A.",
|
|
supportRep_ID: 3,
|
|
supportRep: {
|
|
ID: 3,
|
|
lastName: "Peacock",
|
|
firstName: "Jane",
|
|
city: "Calgary",
|
|
state: "AB",
|
|
address: "1111 6 Ave SW",
|
|
country: "Canada",
|
|
postalCode: "T2P 5M5",
|
|
phone: "+1 (403) 262-3443",
|
|
fax: "+1 (403) 262-6712",
|
|
email: "[email protected]",
|
|
title: "Sales Support Agent",
|
|
birthDate: "1973-08-28T21:00:00Z",
|
|
hireDate: "2002-03-31T21:00:00Z",
|
|
reportsTo_ID: 2,
|
|
},
|
|
};
|
|
|
|
const EIGHTH_ALBUM_TRACKS_COUNT = 3290;
|
|
|
|
module.exports = {
|
|
FIRST_EMPLOYEE,
|
|
SECOND_EMPLOYEE_WITH_EXPANDED_FIELDS,
|
|
ALL_ALBUMS_WITH_TRACKS_BY_ARTIST,
|
|
CUSTOMER_WITH_THEIR_SUPPORT_REP,
|
|
EIGHTH_ALBUM_TRACKS_COUNT,
|
|
};
|