export const meta = { current_page: 1, next_page: null, per_page: 25, prev_page: null, total_pages: 1, total_count: 3, } export const headers = { uid: 'rafaleo@gmail.com', } export const exampleResponseObject = { data: { id: 224, email: 'joffrey.berrier@lecollectionist.com', firstname: 'Joffrey', lastname: 'Berrier', }, headers, } export const exampleResponseObjectWithAttributes = { data: { id: 224, attributes: { firstname: 'Joffrey', lastname: 'Berrier', email: 'joffrey.berrier@lecollectionist.com', }, }, headers, } export const exampleResponseObjectWithIncluded = { data: { id: 224, attributes: { firstname: 'Joffrey', lastname: 'Berrier', email: 'joffrey.berrier@lecollectionist.com', }, }, included: [ { id: 299, type: 'test', attributes: { info: 'test', }, }, ], headers, } export const exampleResponseObjectWithRelationship = { data: { id: 2678, attributes: { name: 'Villa Sigala', }, relationships: { firstPhoto: { data: { id: '99305', type: 'photo', }, }, destination: { data: { id: '434', type: 'destination', }, }, }, }, headers, } export const exampleResponseWithRelationship = { data: [ { id: '2678', type: 'house', attributes: { name: 'Villa Massira', }, relationships: { firstPhoto: { data: { id: '99305', type: 'photo', }, }, destination: { data: { id: '434', type: 'destination', }, }, }, }, { id: '1553', type: 'house', attributes: { name: 'Villa Joy', }, relationships: { firstPhoto: { data: { id: '44226', type: 'photo', }, }, destination: { data: { id: '305', type: 'destination', }, }, }, }, ], } export const exampleResponseWithRelationshipArray = { data: [ { id: '2678', type: 'house', attributes: { name: 'Villa Massira', }, relationships: { firstPhoto: { data: [ { id: '99305', type: 'photo', }, { id: '99304', type: 'photo', }, ], }, destination: { data: [ { id: '434', type: 'destination', }, { id: '435', type: 'destination', }, ], }, }, }, ], } export const exampleResponseWithoutRelationship = { data: [ { id: '2678', type: 'house', attributes: { name: 'Villa Massira', }, }, { id: '1553', type: 'house', attributes: { name: 'Villa Joy', }, }, ], } export const exampleResponseWithoutIdOnRelationship = { data: [ { id: '4085', type: 'contract', attributes: { checkInDate: '2020-07-25', checkOutDate: '2020-08-01', clientFirstname: 'David', clientLastname: 'Blanc', clientUploadYousignFileToken: null, destinationName: 'Cap Ferret', houseBathrooms: 1, houseBedrooms: 1, houseCapacity: 2, houseClusterName: {}, houseCountryName: {}, houseName: 'Villa Les Grives', }, relationships: { house: { data: { id: '542', type: 'house', }, }, houseFirstPhoto: { data: null, }, }, }, ], } // response devise auth export const exampleResponseString = { data: 'wording back', success: true, headers, }